text
stringlengths 1
22.8M
|
|---|
is a 1993 original video animation of the popular 1970's anime Time Bokan.
This was the last installment of the series to feature the late Kei Tomiyama as the narrator. He was replaced in Time Bokan 2000: Kaitou Kiramekiman by Junpei Takiguchi and Kōichi Yamadera in the 2008 remake of Yatterman. The OVAs were initially licensed by Central Park Media and was released on DVD in 2005. Sentai Filmworks has now licensed the OVA series.
Episodes
There were only two volumes released as listed below.
Cast
Majo, Doronjo, Mujo, Atasha, Milenjo, Munmun, Yanyan: - Noriko Ohara
Glocky, Boyakki, Tobokkee, Sekobicchi, Jurii Kokematsu, Kosuinen, Dasainen - Jōji Yanami
Walther, Tonzura, Donjuro, Twarusky, Alan Sukadon, Kyokantin, Tonmentan - Kazuya Tatekabe
Dokurobe, Dogurobe - Junpei Takiguchi
Gekigasky, Baron Donfanfan, 2-3 - Masayuki Yamamoto
Daiko-kami - Hiroaki Tanabe
Ohana-chan - Kumiko Takizawa
Fortune Teller, Female High Schooler, Orokabu, Oshii Person - Yōko Yano
Salaryman, Monzaemon, Bikkuri Mondo, Ikemasuitachi - Katsumi Suzuki
Koyama Cameraman - Takao Koyama
Narration, Sasayaki Reporter, Tommy Yama, Turnabout King, Buta, Yatterwan FZ - Kei Tomiyama
Ohayashi People - Hiroto Kōmoto, Kahiro Okuya
Gan-chan (Yatterman-1) - Yoshiko Ōta
Ai-chan (Yatterman-2) - Mari Okamoto
Omochama - Reiko Katsura
Ken the Eagle, Tekkaman - Katsuji Mori
Jun the Swan, Tenburu - Kazuko Sugiyama
Polymar - Kazuyuki Sogabe
Casshern - Ikuo Nishikawa
Loliconda, Sailor Munmun, Obanbar - Naoko Matsui
References
External links
New from Japan: Anime Film Reviews
1993 anime OVAs
Anime with original screenplays
Central Park Media
Science fiction anime and manga
Sentai Filmworks
Tatsunoko Production
Time Bokan Series
|
```xml
import {
DEFAULT_KEY_GENERATION_OFFSET,
DEFAULT_SIGNATURE_VERIFICATION_OFFSET,
VERIFICATION_STATUS,
} from 'pmcrypto-v6-canary/lib/constants';
import { captureMessage } from '@proton/shared/lib/helpers/sentry';
import { serverTime } from '../serverTime';
import type { ApiInterface } from '../worker/api';
import type { WorkerVerifyOptions } from '../worker/api.models';
export type CryptoApiInterface = ApiInterface;
const assertNotNull = (value: CryptoApiInterface | null): CryptoApiInterface => {
if (value === null) {
throw new Error('CryptoProxy: endpoint not initialized');
}
return value;
};
let endpoint: CryptoApiInterface | null = null;
let onEndpointRelease: (endpoint?: any) => Promise<void> = async () => {};
interface CryptoProxyInterface extends CryptoApiInterface {
/**
* Set proxy endpoint.
* The provided instance must be already initialised and ready to resolve requests.
* @param endpoint
* @param onRelease - callback called after `this.releaseEndpoint()` is invoked and endpoint is released
*/
setEndpoint<T extends CryptoApiInterface>(endpoint: T, onRelease?: (endpoint: T) => Promise<void>): void;
/**
* Release endpoint. Afterwards, a different one may be set via `setEndpoint()`.
* If a `onRelease` callback was passed to `setEndpoint()`, the callback is called before returning.
* Note that this function does not have any other side effects, e.g. it does not clear the key store automatically.
* Any endpoint-specific clean up logic should be done inside the `onRelease` callback.
*/
releaseEndpoint(): Promise<void>;
}
/**
* Prior to OpenPGP.js v5.4.0, trailing spaces were not properly stripped with \r\n line endings (see path_to_url
* In order to verify the signatures generated over the incorrectly normalised data, we fallback to not normalising the input.
* Currently, this is done inside the CryptoProxy, to transparently track the number of signatures that are affected throughout the apps.
* @param options - verification options, with `date` already set to server time
*/
async function verifyMessageWithFallback<
DataType extends string | Uint8Array,
FormatType extends WorkerVerifyOptions<DataType>['format'] = 'utf8',
>(options: WorkerVerifyOptions<DataType> & { format?: FormatType }) {
const verificationResult = await assertNotNull(endpoint).verifyMessage<DataType, FormatType>(options);
const { textData, stripTrailingSpaces } = options;
if (
verificationResult.verified === VERIFICATION_STATUS.SIGNED_AND_INVALID &&
stripTrailingSpaces &&
textData &&
verificationResult.data !== textData // detect whether some normalisation was applied
) {
const fallbackverificationResult = await assertNotNull(endpoint).verifyMessage<string, FormatType>({
...options,
binaryData: undefined,
stripTrailingSpaces: false,
});
if (fallbackverificationResult.verified === VERIFICATION_STATUS.SIGNED_AND_VALID) {
captureMessage('Fallback verification needed', {
level: 'info',
});
return fallbackverificationResult;
}
// detect whether the message has trailing spaces followed by a mix of \r\n and \n line endings
const legacyRemoveTrailingSpaces = (text: string) => {
return text
.split('\n')
.map((line) => {
let i = line.length - 1;
for (; i >= 0 && (line[i] === ' ' || line[i] === '\t'); i--) {}
return line.substr(0, i + 1);
})
.join('\n');
};
if (textData !== legacyRemoveTrailingSpaces(textData)) {
captureMessage('Fallback verification insufficient', {
level: 'info',
});
}
}
return verificationResult;
}
/**
* CryptoProxy relays crypto requests to the specified endpoint, which is typically a worker(s), except if
* CryptoProxy is already called (also indirectly) from inside a worker.
* In such a case, the endpoint can be set to a `new WorkerApi()` instance, or to tbe worker instance itself,
* provided it implements/extends WorkerApi.
*/
export const CryptoProxy: CryptoProxyInterface = {
setEndpoint(endpointInstance, onRelease = onEndpointRelease) {
if (endpoint) {
throw new Error('already initialised');
}
endpoint = endpointInstance;
onEndpointRelease = onRelease;
},
releaseEndpoint() {
const tmp = endpoint;
endpoint = null;
return onEndpointRelease(assertNotNull(tmp));
},
encryptMessage: async ({ date = serverTime(), ...opts }) =>
assertNotNull(endpoint).encryptMessage({ ...opts, date }),
decryptMessage: async ({ date = new Date(+serverTime() + DEFAULT_SIGNATURE_VERIFICATION_OFFSET), ...opts }) =>
assertNotNull(endpoint).decryptMessage({ ...opts, date }),
signMessage: async ({ date = serverTime(), ...opts }) => assertNotNull(endpoint).signMessage({ ...opts, date }),
verifyMessage: async ({ date = new Date(+serverTime() + DEFAULT_SIGNATURE_VERIFICATION_OFFSET), ...opts }) =>
verifyMessageWithFallback({ ...opts, date }),
verifyCleartextMessage: async ({ date = serverTime(), ...opts }) =>
assertNotNull(endpoint).verifyCleartextMessage({ ...opts, date }),
processMIME: async ({ date = serverTime(), ...opts }) => assertNotNull(endpoint).processMIME({ ...opts, date }),
generateSessionKey: async ({ date = serverTime(), ...opts }) =>
assertNotNull(endpoint).generateSessionKey({ ...opts, date }),
generateSessionKeyForAlgorithm: async (opts) => assertNotNull(endpoint).generateSessionKeyForAlgorithm(opts),
encryptSessionKey: async ({ date = serverTime(), ...opts }) =>
assertNotNull(endpoint).encryptSessionKey({ ...opts, date }),
decryptSessionKey: async ({ date = serverTime(), ...opts }) =>
assertNotNull(endpoint).decryptSessionKey({ ...opts, date }),
importPrivateKey: async (opts) => assertNotNull(endpoint).importPrivateKey(opts),
importPublicKey: async (opts) => assertNotNull(endpoint).importPublicKey(opts),
generateKey: async ({ date = new Date(+serverTime() + DEFAULT_KEY_GENERATION_OFFSET), ...opts }) =>
assertNotNull(endpoint).generateKey({ ...opts, date }),
reformatKey: async ({ privateKey, date = privateKey.getCreationTime(), ...opts }) =>
assertNotNull(endpoint).reformatKey({ ...opts, privateKey, date }),
exportPublicKey: async (opts) => assertNotNull(endpoint).exportPublicKey(opts),
exportPrivateKey: async (opts) => assertNotNull(endpoint).exportPrivateKey(opts),
clearKeyStore: () => assertNotNull(endpoint).clearKeyStore(),
clearKey: async (opts) => assertNotNull(endpoint).clearKey(opts),
replaceUserIDs: async (opts) => assertNotNull(endpoint).replaceUserIDs(opts),
cloneKeyAndChangeUserIDs: async (opts) => assertNotNull(endpoint).cloneKeyAndChangeUserIDs(opts),
generateE2EEForwardingMaterial: async ({ date = serverTime(), ...opts }) =>
assertNotNull(endpoint).generateE2EEForwardingMaterial({ ...opts, date }),
doesKeySupportE2EEForwarding: async ({ date = serverTime(), ...opts }) =>
assertNotNull(endpoint).doesKeySupportE2EEForwarding({ ...opts, date }),
isE2EEForwardingKey: async ({ date = serverTime(), ...opts }) =>
assertNotNull(endpoint).isE2EEForwardingKey({ ...opts, date }),
isRevokedKey: async ({ date = serverTime(), ...opts }) => assertNotNull(endpoint).isRevokedKey({ ...opts, date }),
isExpiredKey: async ({ date = serverTime(), ...opts }) => assertNotNull(endpoint).isExpiredKey({ ...opts, date }),
canKeyEncrypt: async ({ date = serverTime(), ...opts }) => assertNotNull(endpoint).canKeyEncrypt({ ...opts, date }),
getSHA256Fingerprints: async (opts) => assertNotNull(endpoint).getSHA256Fingerprints(opts),
computeHash: async (opts) => assertNotNull(endpoint).computeHash(opts),
computeHashStream: async (opts) => assertNotNull(endpoint).computeHashStream(opts),
computeArgon2: (opts) => assertNotNull(endpoint).computeArgon2(opts),
getArmoredMessage: async (opts) => assertNotNull(endpoint).getArmoredMessage(opts),
getArmoredKeys: async (opts) => assertNotNull(endpoint).getArmoredKeys(opts),
getArmoredSignature: async (opts) => assertNotNull(endpoint).getArmoredSignature(opts),
getSignatureInfo: async (opts) => assertNotNull(endpoint).getSignatureInfo(opts),
getMessageInfo: async (opts) => assertNotNull(endpoint).getMessageInfo(opts),
getKeyInfo: async (opts) => assertNotNull(endpoint).getKeyInfo(opts),
};
```
|
Jiří Říha (born September 18, 1992) is a Czech professional ice hockey player who currently plays with HC VERVA Litvínov in the Czech Extraliga.
References
External links
1992 births
Living people
Czech ice hockey forwards
Czech ice hockey defencemen
HC Bílí Tygři Liberec players
People from Opočno
Ice hockey people from the Hradec Králové Region
|
```xml
import * as React from 'react';
import createSvgIcon from '../utils/createSvgIcon';
const CurrencyIcon = createSvgIcon({
svg: ({ classes }) => (
<svg xmlns="path_to_url" viewBox="0 0 2048 2048" className={classes.svg} focusable="false">
<path d="M512 920q64 32 132 71t124 89 92 115 36 149q0 83-29 158t-80 135-121 99-154 51v133H384v-132q-109-13-204-69T15 1577l98-82q52 63 121 106t150 58v-659q-43-21-88-45t-88-53-80-62-66-74-45-87T0 576q0-83 29-158t80-135 121-99 154-51V0h128v132q109 13 204 69t165 142l-98 82q-52-63-121-106t-150-58v659zM128 576q0 51 25 93t62 78 83 63 86 46V262q-56 12-103 41t-81 70-53 94-19 109zm384 1082q56-12 103-41t81-70 53-94 19-109q0-51-25-94t-62-78-83-62-86-46v594zm1521-17q-57 69-135 110t-170 41q-83 your_sha256_hash6-1-32t-1-32v-32q0-16 2-32h-130V768h143q12-71 35-146t58-146 81-134 105-110 129-76 153-28q92 0 169 41t136 110l-98 82q-38-47-91-76t-116-29q-63 0-116 23t-99 63-80 91-63 108-45 115-28 112h239v128h-254q-1 16-1 32t-1 32v32q0 16 2 32h254v128h-239q10 53 28 111t45 115 62 109 81 91 98 62 117 24q62 0 115-29t92-76l98 82z" />
</svg>
),
displayName: 'CurrencyIcon',
});
export default CurrencyIcon;
```
|
```objective-c
/*===-- llvm-c/DisassemblerTypedefs.h -----------------------------*- C -*-===*\
|* *|
|* Exceptions. *|
|* See path_to_url for license information. *|
|* *|
|*===your_sha256_hash------===*/
#ifndef LLVM_C_DISASSEMBLERTYPES_H
#define LLVM_C_DISASSEMBLERTYPES_H
#include "llvm-c/DataTypes.h"
#ifdef __cplusplus
#include <cstddef>
#else
#include <stddef.h>
#endif
/**
* @addtogroup LLVMCDisassembler
*
* @{
*/
/**
* An opaque reference to a disassembler context.
*/
typedef void *LLVMDisasmContextRef;
/**
* The type for the operand information call back function. This is called to
* get the symbolic information for an operand of an instruction. Typically
* this is from the relocation information, symbol table, etc. That block of
* information is saved when the disassembler context is created and passed to
* the call back in the DisInfo parameter. The instruction containing operand
* is at the PC parameter. For some instruction sets, there can be more than
* one operand with symbolic information. To determine the symbolic operand
* information for each operand, the bytes for the specific operand in the
* instruction are specified by the Offset parameter and its byte widith is the
* OpSize parameter. For instructions sets with fixed widths and one symbolic
* operand per instruction, the Offset parameter will be zero and InstSize
* parameter will be the instruction width. The information is returned in
* TagBuf and is Triple specific with its specific information defined by the
* value of TagType for that Triple. If symbolic information is returned the
* function * returns 1, otherwise it returns 0.
*/
typedef int (*LLVMOpInfoCallback)(void *DisInfo, uint64_t PC, uint64_t Offset,
uint64_t OpSize, uint64_t InstSize,
int TagType, void *TagBuf);
/**
* The initial support in LLVM MC for the most general form of a relocatable
* expression is "AddSymbol - SubtractSymbol + Offset". For some Darwin targets
* this full form is encoded in the relocation information so that AddSymbol and
* SubtractSymbol can be link edited independent of each other. Many other
* platforms only allow a relocatable expression of the form AddSymbol + Offset
* to be encoded.
*
* The LLVMOpInfoCallback() for the TagType value of 1 uses the struct
* LLVMOpInfo1. The value of the relocatable expression for the operand,
* including any PC adjustment, is passed in to the call back in the Value
* field. The symbolic information about the operand is returned using all
* the fields of the structure with the Offset of the relocatable expression
* returned in the Value field. It is possible that some symbols in the
* relocatable expression were assembly temporary symbols, for example
* "Ldata - LpicBase + constant", and only the Values of the symbols without
* symbol names are present in the relocation information. The VariantKind
* type is one of the Target specific #defines below and is used to print
* operands like "_foo@GOT", ":lower16:_foo", etc.
*/
struct LLVMOpInfoSymbol1 {
uint64_t Present; /* 1 if this symbol is present */
const char *Name; /* symbol name if not NULL */
uint64_t Value; /* symbol value if name is NULL */
};
struct LLVMOpInfo1 {
struct LLVMOpInfoSymbol1 AddSymbol;
struct LLVMOpInfoSymbol1 SubtractSymbol;
uint64_t Value;
uint64_t VariantKind;
};
/**
* The operand VariantKinds for symbolic disassembly.
*/
#define LLVMDisassembler_VariantKind_None 0 /* all targets */
/**
* The ARM target VariantKinds.
*/
#define LLVMDisassembler_VariantKind_ARM_HI16 1 /* :upper16: */
#define LLVMDisassembler_VariantKind_ARM_LO16 2 /* :lower16: */
/**
* The ARM64 target VariantKinds.
*/
#define LLVMDisassembler_VariantKind_ARM64_PAGE 1 /* @page */
#define LLVMDisassembler_VariantKind_ARM64_PAGEOFF 2 /* @pageoff */
#define LLVMDisassembler_VariantKind_ARM64_GOTPAGE 3 /* @gotpage */
#define LLVMDisassembler_VariantKind_ARM64_GOTPAGEOFF 4 /* @gotpageoff */
#define LLVMDisassembler_VariantKind_ARM64_TLVP 5 /* @tvlppage */
#define LLVMDisassembler_VariantKind_ARM64_TLVOFF 6 /* @tvlppageoff */
/**
* The type for the symbol lookup function. This may be called by the
* disassembler for things like adding a comment for a PC plus a constant
* offset load instruction to use a symbol name instead of a load address value.
* It is passed the block information is saved when the disassembler context is
* created and the ReferenceValue to look up as a symbol. If no symbol is found
* for the ReferenceValue NULL is returned. The ReferenceType of the
* instruction is passed indirectly as is the PC of the instruction in
* ReferencePC. If the output reference can be determined its type is returned
* indirectly in ReferenceType along with ReferenceName if any, or that is set
* to NULL.
*/
typedef const char *(*LLVMSymbolLookupCallback)(void *DisInfo,
uint64_t ReferenceValue,
uint64_t *ReferenceType,
uint64_t ReferencePC,
const char **ReferenceName);
/**
* The reference types on input and output.
*/
/* No input reference type or no output reference type. */
#define LLVMDisassembler_ReferenceType_InOut_None 0
/* The input reference is from a branch instruction. */
#define LLVMDisassembler_ReferenceType_In_Branch 1
/* The input reference is from a PC relative load instruction. */
#define LLVMDisassembler_ReferenceType_In_PCrel_Load 2
/* The input reference is from an ARM64::ADRP instruction. */
#define LLVMDisassembler_ReferenceType_In_ARM64_ADRP 0x100000001
/* The input reference is from an ARM64::ADDXri instruction. */
#define LLVMDisassembler_ReferenceType_In_ARM64_ADDXri 0x100000002
/* The input reference is from an ARM64::LDRXui instruction. */
#define LLVMDisassembler_ReferenceType_In_ARM64_LDRXui 0x100000003
/* The input reference is from an ARM64::LDRXl instruction. */
#define LLVMDisassembler_ReferenceType_In_ARM64_LDRXl 0x100000004
/* The input reference is from an ARM64::ADR instruction. */
#define LLVMDisassembler_ReferenceType_In_ARM64_ADR 0x100000005
/* The output reference is to as symbol stub. */
#define LLVMDisassembler_ReferenceType_Out_SymbolStub 1
/* The output reference is to a symbol address in a literal pool. */
#define LLVMDisassembler_ReferenceType_Out_LitPool_SymAddr 2
/* The output reference is to a cstring address in a literal pool. */
#define LLVMDisassembler_ReferenceType_Out_LitPool_CstrAddr 3
/* The output reference is to a Objective-C CoreFoundation string. */
#define LLVMDisassembler_ReferenceType_Out_Objc_CFString_Ref 4
/* The output reference is to a Objective-C message. */
#define LLVMDisassembler_ReferenceType_Out_Objc_Message 5
/* The output reference is to a Objective-C message ref. */
#define LLVMDisassembler_ReferenceType_Out_Objc_Message_Ref 6
/* The output reference is to a Objective-C selector ref. */
#define LLVMDisassembler_ReferenceType_Out_Objc_Selector_Ref 7
/* The output reference is to a Objective-C class ref. */
#define LLVMDisassembler_ReferenceType_Out_Objc_Class_Ref 8
/* The output reference is to a C++ symbol name. */
#define LLVMDisassembler_ReferenceType_DeMangled_Name 9
/**
* @}
*/
#endif
```
|
Sarah Jane Olney ( McGibbon, 11 January 1977) is a British politician who has served as the Member of Parliament (MP) for Richmond Park in Greater London since 2019, previously holding the seat from 2016 to 2017. Olney has served as the Liberal Democrat Spokesperson for Treasury since July 2022 and for Business and Industrial Strategy since January 2020.
She was the constituency's MP for six months, from a by-election in December 2016 to the general election in June 2017, before she regained the seat at the 2019 general election, facing off against Zac Goldsmith of the Conservative Party in all three elections. She was the Liberal Democrat Spokesperson for International Trade from January to September 2020 and for Education from May to June 2017. Whilst out of Parliament, she was a financial accountant for Historic Royal Palaces, from 2018 to 2019.
Early life and career
Olney was born in Frimley, Surrey in 1977 to Ian and Rosalyn McGibbon. She was educated at All Hallows Catholic School in Farnham and then studied English Literature and Language at King's College London. She initially worked as a bookseller in Hatchards, Piccadilly, from 1998 to 2000.
Olney became a qualified accountant at the Association of Chartered Certified Accountants in 2016. She worked as an accountant at Barclays, Arts & Business, Distilled Ltd, SCi Sales Group and the National Physical Laboratory in Teddington until she entered politics after the 2015 general election.
Political career
Olney joined the Liberal Democrats in July 2015, soon after the general election, in the realisation that she was a liberal dissatisfied with the direction of the United Kingdom.
On 25 October 2016, Conservative MP Zac Goldsmith announced his resignation from the House of Commons over his objection to his party's support for a third runway at Heathrow Airport, triggering a by-election in his seat of Richmond Park. Goldsmith stood in the by-election as an independent candidate although he remained a Conservative party member with the support of Nigel Farage's UKIP, who along with the Conservative party, did not put forward a candidate. On 30 October 2016, Olney was announced as the Liberal Democrats' candidate for the by-election.
On 1 December 2016, after overturning a majority of over 23,000 votes, Olney was elected as the Member of Parliament (MP) for Richmond Park. She received 20,510 votes (49.6% of total votes), giving her a majority of 1,872 votes (4.5%). She was the only female Liberal Democrat MP in the 2015–2017 parliament. Shortly after her election, Olney ended a radio interview in which she was pressed on her support for a second Brexit referendum. Supporting a second referendum became official Liberal Democrat policy shortly afterwards.
In the run-up to the 2017 general election, Olney was recorded urging Liberal Democrats to vote for Labour MPs in seats where Labour candidates stood a better chance of defeating Conservatives, rather than Liberal Democrat candidates. Olney referred to the Liberal Democrat candidate for Ealing Central and Acton as a "paper candidate" and voiced her support for the incumbent Labour Party MP Rupa Huq. It was reported by the Evening Standard in April 2018 that Olney had been interviewed under caution by the police for allegedly breaking official spending limits in the Richmond Park by-election. The Crown Prosecution Service ruled that there was no evidence, and closed the case.
At the 2017 general election, Olney lost the seat she gained just months earlier to Goldsmith, who stood as the Conservative candidate, polling 45.07% of the vote to Goldsmith's 45.14%, giving Goldsmith a narrow majority of just 45 votes.
On 9 September 2017, it was announced that she would be taking up the post of chief of staff for Liberal Democrat leader Sir Vince Cable.
In 2019, she was officially confirmed as the Liberal Democrat candidate for Richmond Park at the next general election. She regained the seat with a 6% swing to her party and a majority of 7,766 votes, attaining a 53.1% share of the vote.
Views
On the topic of Brexit, Olney voted against the triggering of Article 50, as she had indicated during the by-election campaign that she would do so. She believed that another referendum should have been held once the exact terms of Britain's exit from the EU had been announced. While being interviewed by Julia Hartley-Brewer of talkRADIO, Olney could not defend her party's position on holding a second referendum, and she hung up the call, with a staff member claiming that Olney had another interview scheduled. Olney opposes the building of a third runway at Heathrow Airport.
In May 2021, alongside celebrities and other public figures, Olney was a signatory to an open letter from Stylist magazine which called on the government to address what it described as an "epidemic of male violence" by funding an "ongoing, high-profile, expert-informed awareness campaign on men's violence against women and girls".
Personal life
In 2002, she married Benjamin (Ben) James Olney, a town planner. The couple have a son and a daughter. They have also had another son, who is deceased.
See also
Timeline of Female MPs in the House of Commons of the United Kingdom
References
External links
Richmond Park Liberal Democrats
Appearances on C-SPAN
1977 births
Living people
Alumni of King's College London
British accountants
British women accountants
Liberal Democrats (UK) MPs for English constituencies
Female members of the Parliament of the United Kingdom for English constituencies
21st-century British women politicians
UK MPs 2015–2017
UK MPs 2019–present
21st-century English women
21st-century English people
|
```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 fake
import (
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
labels "k8s.io/apimachinery/pkg/labels"
schema "k8s.io/apimachinery/pkg/runtime/schema"
types "k8s.io/apimachinery/pkg/types"
watch "k8s.io/apimachinery/pkg/watch"
v1alpha1 "k8s.io/client-go/pkg/apis/admissionregistration/v1alpha1"
testing "k8s.io/client-go/testing"
)
// FakeInitializerConfigurations implements InitializerConfigurationInterface
type FakeInitializerConfigurations struct {
Fake *FakeAdmissionregistrationV1alpha1
}
var initializerconfigurationsResource = schema.GroupVersionResource{Group: "admissionregistration.k8s.io", Version: "v1alpha1", Resource: "initializerconfigurations"}
var initializerconfigurationsKind = schema.GroupVersionKind{Group: "admissionregistration.k8s.io", Version: "v1alpha1", Kind: "InitializerConfiguration"}
func (c *FakeInitializerConfigurations) Create(initializerConfiguration *v1alpha1.InitializerConfiguration) (result *v1alpha1.InitializerConfiguration, err error) {
obj, err := c.Fake.
Invokes(testing.NewRootCreateAction(initializerconfigurationsResource, initializerConfiguration), &v1alpha1.InitializerConfiguration{})
if obj == nil {
return nil, err
}
return obj.(*v1alpha1.InitializerConfiguration), err
}
func (c *FakeInitializerConfigurations) Update(initializerConfiguration *v1alpha1.InitializerConfiguration) (result *v1alpha1.InitializerConfiguration, err error) {
obj, err := c.Fake.
Invokes(testing.NewRootUpdateAction(initializerconfigurationsResource, initializerConfiguration), &v1alpha1.InitializerConfiguration{})
if obj == nil {
return nil, err
}
return obj.(*v1alpha1.InitializerConfiguration), err
}
func (c *FakeInitializerConfigurations) Delete(name string, options *v1.DeleteOptions) error {
_, err := c.Fake.
Invokes(testing.NewRootDeleteAction(initializerconfigurationsResource, name), &v1alpha1.InitializerConfiguration{})
return err
}
func (c *FakeInitializerConfigurations) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error {
action := testing.NewRootDeleteCollectionAction(initializerconfigurationsResource, listOptions)
_, err := c.Fake.Invokes(action, &v1alpha1.InitializerConfigurationList{})
return err
}
func (c *FakeInitializerConfigurations) Get(name string, options v1.GetOptions) (result *v1alpha1.InitializerConfiguration, err error) {
obj, err := c.Fake.
Invokes(testing.NewRootGetAction(initializerconfigurationsResource, name), &v1alpha1.InitializerConfiguration{})
if obj == nil {
return nil, err
}
return obj.(*v1alpha1.InitializerConfiguration), err
}
func (c *FakeInitializerConfigurations) List(opts v1.ListOptions) (result *v1alpha1.InitializerConfigurationList, err error) {
obj, err := c.Fake.
Invokes(testing.NewRootListAction(initializerconfigurationsResource, initializerconfigurationsKind, opts), &v1alpha1.InitializerConfigurationList{})
if obj == nil {
return nil, err
}
label, _, _ := testing.ExtractFromListOptions(opts)
if label == nil {
label = labels.Everything()
}
list := &v1alpha1.InitializerConfigurationList{}
for _, item := range obj.(*v1alpha1.InitializerConfigurationList).Items {
if label.Matches(labels.Set(item.Labels)) {
list.Items = append(list.Items, item)
}
}
return list, err
}
// Watch returns a watch.Interface that watches the requested initializerConfigurations.
func (c *FakeInitializerConfigurations) Watch(opts v1.ListOptions) (watch.Interface, error) {
return c.Fake.
InvokesWatch(testing.NewRootWatchAction(initializerconfigurationsResource, opts))
}
// Patch applies the patch and returns the patched initializerConfiguration.
func (c *FakeInitializerConfigurations) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.InitializerConfiguration, err error) {
obj, err := c.Fake.
Invokes(testing.NewRootPatchSubresourceAction(initializerconfigurationsResource, name, data, subresources...), &v1alpha1.InitializerConfiguration{})
if obj == nil {
return nil, err
}
return obj.(*v1alpha1.InitializerConfiguration), err
}
```
|
Gunay İsmayilova (born 8 March 1998) is an Azerbaijani footballer, who plays as a goalkeeper for Amed SFK and the Azerbaijan women's national team.
Club career
İsmayilova played in her country for Fidan F.C. By November 2017, she moved to Turkey, and signed a six-month deal with the Women's First League club Beliktaş J.K. In the second half of the 2017–18 First League, she transferred to Kireçburnu Spor. In November 2021, she left Turkey. Mid October 2022, she moved to Turkey again, and joined the Diyarbakır-based club Amed SFK to play in the 2022–23 Super Leafue. In November 2021, she left Turkey.
International career
She is a member of the Azerbaijan women's national football team.
References
1998 births
Living people
Azerbaijani women's footballers
Women's association football goalkeepers
Azerbaijan women's international footballers
Azerbaijani expatriate women's footballers
Azerbaijani expatriate sportspeople in Turkey
Expatriate women's footballers in Turkey
Beşiktaş J.K. (women's football) players
Kireçburnu Spor players
Turkish Women's Football Super League players
Amed S.K. (women) players
|
James Allen Dotzenrod (born December 4, 1946) is an American politician. He is a member of the North Dakota Senate from the 26th District, serving since 2009. He is a member of the North Dakota Democratic-Nonpartisan League Party. He also served in the Senate from 1978 to 1994.
References
1946 births
21st-century American politicians
Living people
Democratic Party North Dakota state senators
North Dakota State University alumni
People from Breckenridge, Minnesota
|
A total solar eclipse will occur on Tuesday, May 22, 2096. A solar eclipse occurs when the Moon passes between Earth and the Sun, thereby totally or partly obscuring the image of the Sun for a viewer on Earth. A total solar eclipse occurs when the Moon's apparent diameter is larger than the Sun's, blocking all direct sunlight, turning day into darkness. Totality occurs in a narrow path across Earth's surface, with the partial solar eclipse visible over a surrounding region thousands of kilometres wide.
This will be the first eclipse of saros series 139 to exceed series 136 in length of totality. The length of totality for saros 139 is increasing, while that of Saros 136 is decreasing.
The eclipse will begin when the Moon's shadow first reaches Earth in Indonesia, the Philippines and the Western Pacific Ocean, which are west of the International Date Line, in the morning hours of Tuesday, May 22, 2096 and will be seen east of the line in the afternoon hours of Monday, May 21, 2096. It will end as a partial eclipse over the United States West Coast.
Overall, at 6 minutes and 7 seconds, this will be the third longest total solar eclipse of the 21st century. The only two longer eclipses in the century are July 22, 2009 and August 2, 2027. The longest duration of this eclipse on land is not as long however, and it will be seen in Surigao del Sur, the Philippines, for 4 minutes and 38 seconds.
Related eclipses
Solar eclipses 2094–2098
Saros 139
Notes
References
2096 05 22
2096 in science
2096 05 22
2096 05 22
|
```css
---mycustomparser
title: Title
description: Description
---
/* comment */
.something
{}
```
|
American Goddess at the Rape of Nanking: The Courage of Minnie Vautrin is a biographical book about American missionary Minnie Vautrin and her experience of the Nanjing Massacre in 1937–1938. Written by historian Hua-ling Hu and published in 2000, the book recounts how Vautrin saved thousands of lives of women and children during the Nanjing Massacre. A notable source for the book were the diaries that Vautrin kept during the massacre; these were discovered by author Iris Chang during the research for her book The Rape of Nanking.
See also
Finding Iris Chang
The Good Man of Nanking
References
External links
An American hero in Nanking, Asia Times
Diaries of Vautrin, The Nanking Massacre Project, Yale Divinity School Library
2000 non-fiction books
American biographies
Nanjing Massacre books
History books about the Second Sino-Japanese War
|
```c
/*
* buffered I/O
*
* This file is part of FFmpeg.
*
* FFmpeg is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
*
* FFmpeg 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 Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include "libavutil/bprint.h"
#include "libavutil/crc.h"
#include "libavutil/dict.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/log.h"
#include "libavutil/opt.h"
#include "libavutil/avassert.h"
#include "avformat.h"
#include "avio.h"
#include "avio_internal.h"
#include "internal.h"
#include "url.h"
#include <stdarg.h>
#define IO_BUFFER_SIZE 32768
/**
* Do seeks within this distance ahead of the current buffer by skipping
* data instead of calling the protocol seek function, for seekable
* protocols.
*/
#define SHORT_SEEK_THRESHOLD 4096
static void *ff_avio_child_next(void *obj, void *prev)
{
AVIOContext *s = obj;
return prev ? NULL : s->opaque;
}
static const AVClass *ff_avio_child_class_next(const AVClass *prev)
{
return prev ? NULL : &ffurl_context_class;
}
static const AVOption ff_avio_options[] = {
{ NULL },
};
const AVClass ff_avio_class = {
.class_name = "AVIOContext",
.item_name = av_default_item_name,
.version = LIBAVUTIL_VERSION_INT,
.option = ff_avio_options,
.child_next = ff_avio_child_next,
.child_class_next = ff_avio_child_class_next,
};
static void fill_buffer(AVIOContext *s);
static int url_resetbuf(AVIOContext *s, int flags);
int ffio_init_context(AVIOContext *s,
unsigned char *buffer,
int buffer_size,
int write_flag,
void *opaque,
int (*read_packet)(void *opaque, uint8_t *buf, int buf_size),
int (*write_packet)(void *opaque, uint8_t *buf, int buf_size),
int64_t (*seek)(void *opaque, int64_t offset, int whence))
{
s->buffer = buffer;
s->orig_buffer_size =
s->buffer_size = buffer_size;
s->buf_ptr = buffer;
s->opaque = opaque;
s->direct = 0;
url_resetbuf(s, write_flag ? AVIO_FLAG_WRITE : AVIO_FLAG_READ);
s->write_packet = write_packet;
s->read_packet = read_packet;
s->seek = seek;
s->pos = 0;
s->must_flush = 0;
s->eof_reached = 0;
s->error = 0;
s->seekable = seek ? AVIO_SEEKABLE_NORMAL : 0;
s->max_packet_size = 0;
s->update_checksum = NULL;
s->short_seek_threshold = SHORT_SEEK_THRESHOLD;
if (!read_packet && !write_flag) {
s->pos = buffer_size;
s->buf_end = s->buffer + buffer_size;
}
s->read_pause = NULL;
s->read_seek = NULL;
return 0;
}
AVIOContext *avio_alloc_context(
unsigned char *buffer,
int buffer_size,
int write_flag,
void *opaque,
int (*read_packet)(void *opaque, uint8_t *buf, int buf_size),
int (*write_packet)(void *opaque, uint8_t *buf, int buf_size),
int64_t (*seek)(void *opaque, int64_t offset, int whence))
{
AVIOContext *s = av_mallocz(sizeof(AVIOContext));
if (!s)
return NULL;
ffio_init_context(s, buffer, buffer_size, write_flag, opaque,
read_packet, write_packet, seek);
return s;
}
static void writeout(AVIOContext *s, const uint8_t *data, int len)
{
if (s->write_packet && !s->error) {
int ret = s->write_packet(s->opaque, (uint8_t *)data, len);
if (ret < 0) {
s->error = ret;
}
}
s->writeout_count ++;
s->pos += len;
}
static void flush_buffer(AVIOContext *s)
{
if (s->write_flag && s->buf_ptr > s->buffer) {
writeout(s, s->buffer, s->buf_ptr - s->buffer);
if (s->update_checksum) {
s->checksum = s->update_checksum(s->checksum, s->checksum_ptr,
s->buf_ptr - s->checksum_ptr);
s->checksum_ptr = s->buffer;
}
}
s->buf_ptr = s->buffer;
if (!s->write_flag)
s->buf_end = s->buffer;
}
void avio_w8(AVIOContext *s, int b)
{
av_assert2(b>=-128 && b<=255);
*s->buf_ptr++ = b;
if (s->buf_ptr >= s->buf_end)
flush_buffer(s);
}
void ffio_fill(AVIOContext *s, int b, int count)
{
while (count > 0) {
int len = FFMIN(s->buf_end - s->buf_ptr, count);
memset(s->buf_ptr, b, len);
s->buf_ptr += len;
if (s->buf_ptr >= s->buf_end)
flush_buffer(s);
count -= len;
}
}
void avio_write(AVIOContext *s, const unsigned char *buf, int size)
{
if (s->direct && !s->update_checksum) {
avio_flush(s);
writeout(s, buf, size);
return;
}
while (size > 0) {
int len = FFMIN(s->buf_end - s->buf_ptr, size);
memcpy(s->buf_ptr, buf, len);
s->buf_ptr += len;
if (s->buf_ptr >= s->buf_end)
flush_buffer(s);
buf += len;
size -= len;
}
}
void avio_flush(AVIOContext *s)
{
flush_buffer(s);
s->must_flush = 0;
}
int64_t avio_seek(AVIOContext *s, int64_t offset, int whence)
{
int64_t offset1;
int64_t pos;
int force = whence & AVSEEK_FORCE;
int buffer_size;
whence &= ~AVSEEK_FORCE;
if(!s)
return AVERROR(EINVAL);
buffer_size = s->buf_end - s->buffer;
// pos is the absolute position that the beginning of s->buffer corresponds to in the file
pos = s->pos - (s->write_flag ? 0 : buffer_size);
if (whence != SEEK_CUR && whence != SEEK_SET)
return AVERROR(EINVAL);
if (whence == SEEK_CUR) {
offset1 = pos + (s->buf_ptr - s->buffer);
if (offset == 0)
return offset1;
offset += offset1;
}
if (offset < 0)
return AVERROR(EINVAL);
offset1 = offset - pos; // "offset1" is the relative offset from the beginning of s->buffer
if (!s->must_flush && (!s->direct || !s->seek) &&
offset1 >= 0 && offset1 <= buffer_size - s->write_flag) {
/* can do the seek inside the buffer */
s->buf_ptr = s->buffer + offset1;
} else if ((!s->seekable ||
offset1 <= buffer_size + s->short_seek_threshold) &&
!s->write_flag && offset1 >= 0 &&
(!s->direct || !s->seek) &&
(whence != SEEK_END || force)) {
while(s->pos < offset && !s->eof_reached)
fill_buffer(s);
if (s->eof_reached)
return AVERROR_EOF;
s->buf_ptr = s->buf_end - (s->pos - offset);
} else if(!s->write_flag && offset1 < 0 && -offset1 < buffer_size>>1 && s->seek && offset > 0) {
int64_t res;
pos -= FFMIN(buffer_size>>1, pos);
if ((res = s->seek(s->opaque, pos, SEEK_SET)) < 0)
return res;
s->buf_end =
s->buf_ptr = s->buffer;
s->pos = pos;
s->eof_reached = 0;
fill_buffer(s);
return avio_seek(s, offset, SEEK_SET | force);
} else {
int64_t res;
if (s->write_flag) {
flush_buffer(s);
s->must_flush = 1;
}
if (!s->seek)
return AVERROR(EPIPE);
if ((res = s->seek(s->opaque, offset, SEEK_SET)) < 0)
return res;
s->seek_count ++;
if (!s->write_flag)
s->buf_end = s->buffer;
s->buf_ptr = s->buffer;
s->pos = offset;
}
s->eof_reached = 0;
return offset;
}
int64_t avio_skip(AVIOContext *s, int64_t offset)
{
return avio_seek(s, offset, SEEK_CUR);
}
int64_t avio_size(AVIOContext *s)
{
int64_t size;
if (!s)
return AVERROR(EINVAL);
if (!s->seek)
return AVERROR(ENOSYS);
size = s->seek(s->opaque, 0, AVSEEK_SIZE);
if (size < 0) {
if ((size = s->seek(s->opaque, -1, SEEK_END)) < 0)
return size;
size++;
s->seek(s->opaque, s->pos, SEEK_SET);
}
return size;
}
int avio_feof(AVIOContext *s)
{
if(!s)
return 0;
if(s->eof_reached){
s->eof_reached=0;
fill_buffer(s);
}
return s->eof_reached;
}
#if FF_API_URL_FEOF
int url_feof(AVIOContext *s)
{
return avio_feof(s);
}
#endif
void avio_wl32(AVIOContext *s, unsigned int val)
{
avio_w8(s, (uint8_t) val );
avio_w8(s, (uint8_t)(val >> 8 ));
avio_w8(s, (uint8_t)(val >> 16));
avio_w8(s, val >> 24 );
}
void avio_wb32(AVIOContext *s, unsigned int val)
{
avio_w8(s, val >> 24 );
avio_w8(s, (uint8_t)(val >> 16));
avio_w8(s, (uint8_t)(val >> 8 ));
avio_w8(s, (uint8_t) val );
}
int avio_put_str(AVIOContext *s, const char *str)
{
int len = 1;
if (str) {
len += strlen(str);
avio_write(s, (const unsigned char *) str, len);
} else
avio_w8(s, 0);
return len;
}
static inline int put_str16(AVIOContext *s, const char *str, const int be)
{
const uint8_t *q = str;
int ret = 0;
int err = 0;
while (*q) {
uint32_t ch;
uint16_t tmp;
GET_UTF8(ch, *q++, goto invalid;)
PUT_UTF16(ch, tmp, be ? avio_wb16(s, tmp) : avio_wl16(s, tmp);
ret += 2;)
continue;
invalid:
av_log(s, AV_LOG_ERROR, "Invaid UTF8 sequence in avio_put_str16%s\n", be ? "be" : "le");
err = AVERROR(EINVAL);
}
if (be)
avio_wb16(s, 0);
else
avio_wl16(s, 0);
if (err)
return err;
ret += 2;
return ret;
}
#define PUT_STR16(type, big_endian) \
int avio_put_str16 ## type(AVIOContext *s, const char *str) \
{ \
return put_str16(s, str, big_endian); \
}
PUT_STR16(le, 0)
PUT_STR16(be, 1)
#undef PUT_STR16
int ff_get_v_length(uint64_t val)
{
int i = 1;
while (val >>= 7)
i++;
return i;
}
void ff_put_v(AVIOContext *bc, uint64_t val)
{
int i = ff_get_v_length(val);
while (--i > 0)
avio_w8(bc, 128 | (uint8_t)(val >> (7*i)));
avio_w8(bc, val & 127);
}
void avio_wl64(AVIOContext *s, uint64_t val)
{
avio_wl32(s, (uint32_t)(val & 0xffffffff));
avio_wl32(s, (uint32_t)(val >> 32));
}
void avio_wb64(AVIOContext *s, uint64_t val)
{
avio_wb32(s, (uint32_t)(val >> 32));
avio_wb32(s, (uint32_t)(val & 0xffffffff));
}
void avio_wl16(AVIOContext *s, unsigned int val)
{
avio_w8(s, (uint8_t)val);
avio_w8(s, (int)val >> 8);
}
void avio_wb16(AVIOContext *s, unsigned int val)
{
avio_w8(s, (int)val >> 8);
avio_w8(s, (uint8_t)val);
}
void avio_wl24(AVIOContext *s, unsigned int val)
{
avio_wl16(s, val & 0xffff);
avio_w8(s, (int)val >> 16);
}
void avio_wb24(AVIOContext *s, unsigned int val)
{
avio_wb16(s, (int)val >> 8);
avio_w8(s, (uint8_t)val);
}
/* Input stream */
static void fill_buffer(AVIOContext *s)
{
int max_buffer_size = s->max_packet_size ?
s->max_packet_size : IO_BUFFER_SIZE;
uint8_t *dst = s->buf_end - s->buffer + max_buffer_size < s->buffer_size ?
s->buf_end : s->buffer;
int len = s->buffer_size - (dst - s->buffer);
/* can't fill the buffer without read_packet, just set EOF if appropriate */
if (!s->read_packet && s->buf_ptr >= s->buf_end)
s->eof_reached = 1;
/* no need to do anything if EOF already reached */
if (s->eof_reached)
return;
if (s->update_checksum && dst == s->buffer) {
if (s->buf_end > s->checksum_ptr)
s->checksum = s->update_checksum(s->checksum, s->checksum_ptr,
s->buf_end - s->checksum_ptr);
s->checksum_ptr = s->buffer;
}
/* make buffer smaller in case it ended up large after probing */
if (s->read_packet && s->orig_buffer_size && s->buffer_size > s->orig_buffer_size) {
if (dst == s->buffer) {
int ret = ffio_set_buf_size(s, s->orig_buffer_size);
if (ret < 0)
av_log(s, AV_LOG_WARNING, "Failed to decrease buffer size\n");
s->checksum_ptr = dst = s->buffer;
}
av_assert0(len >= s->orig_buffer_size);
len = s->orig_buffer_size;
}
if (s->read_packet)
len = s->read_packet(s->opaque, dst, len);
else
len = 0;
if (len <= 0) {
/* do not modify buffer if EOF reached so that a seek back can
be done without rereading data */
s->eof_reached = 1;
if (len < 0)
s->error = len;
} else {
s->pos += len;
s->buf_ptr = dst;
s->buf_end = dst + len;
s->bytes_read += len;
}
}
unsigned long ff_crc04C11DB7_update(unsigned long checksum, const uint8_t *buf,
unsigned int len)
{
return av_crc(av_crc_get_table(AV_CRC_32_IEEE), checksum, buf, len);
}
unsigned long ff_crcA001_update(unsigned long checksum, const uint8_t *buf,
unsigned int len)
{
return av_crc(av_crc_get_table(AV_CRC_16_ANSI_LE), checksum, buf, len);
}
unsigned long ffio_get_checksum(AVIOContext *s)
{
s->checksum = s->update_checksum(s->checksum, s->checksum_ptr,
s->buf_ptr - s->checksum_ptr);
s->update_checksum = NULL;
return s->checksum;
}
void ffio_init_checksum(AVIOContext *s,
unsigned long (*update_checksum)(unsigned long c, const uint8_t *p, unsigned int len),
unsigned long checksum)
{
s->update_checksum = update_checksum;
if (s->update_checksum) {
s->checksum = checksum;
s->checksum_ptr = s->buf_ptr;
}
}
/* XXX: put an inline version */
int avio_r8(AVIOContext *s)
{
if (s->buf_ptr >= s->buf_end)
fill_buffer(s);
if (s->buf_ptr < s->buf_end)
return *s->buf_ptr++;
return 0;
}
int avio_read(AVIOContext *s, unsigned char *buf, int size)
{
int len, size1;
size1 = size;
while (size > 0) {
len = FFMIN(s->buf_end - s->buf_ptr, size);
if (len == 0 || s->write_flag) {
if((s->direct || size > s->buffer_size) && !s->update_checksum) {
// bypass the buffer and read data directly into buf
if(s->read_packet)
len = s->read_packet(s->opaque, buf, size);
if (len <= 0) {
/* do not modify buffer if EOF reached so that a seek back can
be done without rereading data */
s->eof_reached = 1;
if(len<0)
s->error= len;
break;
} else {
s->pos += len;
s->bytes_read += len;
size -= len;
buf += len;
// reset the buffer
s->buf_ptr = s->buffer;
s->buf_end = s->buffer/* + len*/;
}
} else {
fill_buffer(s);
len = s->buf_end - s->buf_ptr;
if (len == 0)
break;
}
} else {
memcpy(buf, s->buf_ptr, len);
buf += len;
s->buf_ptr += len;
size -= len;
}
}
if (size1 == size) {
if (s->error) return s->error;
if (avio_feof(s)) return AVERROR_EOF;
}
return size1 - size;
}
int ffio_read_size(AVIOContext *s, unsigned char *buf, int size)
{
int ret = avio_read(s, buf, size);
if (ret != size)
return AVERROR_INVALIDDATA;
return ret;
}
int ffio_read_indirect(AVIOContext *s, unsigned char *buf, int size, const unsigned char **data)
{
if (s->buf_end - s->buf_ptr >= size && !s->write_flag) {
*data = s->buf_ptr;
s->buf_ptr += size;
return size;
} else {
*data = buf;
return avio_read(s, buf, size);
}
}
int ffio_read_partial(AVIOContext *s, unsigned char *buf, int size)
{
int len;
if (size < 0)
return -1;
if (s->read_packet && s->write_flag) {
len = s->read_packet(s->opaque, buf, size);
if (len > 0)
s->pos += len;
return len;
}
len = s->buf_end - s->buf_ptr;
if (len == 0) {
/* Reset the buf_end pointer to the start of the buffer, to make sure
* the fill_buffer call tries to read as much data as fits into the
* full buffer, instead of just what space is left after buf_end.
* This avoids returning partial packets at the end of the buffer,
* for packet based inputs.
*/
s->buf_end = s->buf_ptr = s->buffer;
fill_buffer(s);
len = s->buf_end - s->buf_ptr;
}
if (len > size)
len = size;
memcpy(buf, s->buf_ptr, len);
s->buf_ptr += len;
if (!len) {
if (s->error) return s->error;
if (avio_feof(s)) return AVERROR_EOF;
}
return len;
}
unsigned int avio_rl16(AVIOContext *s)
{
unsigned int val;
val = avio_r8(s);
val |= avio_r8(s) << 8;
return val;
}
unsigned int avio_rl24(AVIOContext *s)
{
unsigned int val;
val = avio_rl16(s);
val |= avio_r8(s) << 16;
return val;
}
unsigned int avio_rl32(AVIOContext *s)
{
unsigned int val;
val = avio_rl16(s);
val |= avio_rl16(s) << 16;
return val;
}
uint64_t avio_rl64(AVIOContext *s)
{
uint64_t val;
val = (uint64_t)avio_rl32(s);
val |= (uint64_t)avio_rl32(s) << 32;
return val;
}
unsigned int avio_rb16(AVIOContext *s)
{
unsigned int val;
val = avio_r8(s) << 8;
val |= avio_r8(s);
return val;
}
unsigned int avio_rb24(AVIOContext *s)
{
unsigned int val;
val = avio_rb16(s) << 8;
val |= avio_r8(s);
return val;
}
unsigned int avio_rb32(AVIOContext *s)
{
unsigned int val;
val = avio_rb16(s) << 16;
val |= avio_rb16(s);
return val;
}
int ff_get_line(AVIOContext *s, char *buf, int maxlen)
{
int i = 0;
char c;
do {
c = avio_r8(s);
if (c && i < maxlen-1)
buf[i++] = c;
} while (c != '\n' && c != '\r' && c);
if (c == '\r' && avio_r8(s) != '\n' && !avio_feof(s))
avio_skip(s, -1);
buf[i] = 0;
return i;
}
int avio_get_str(AVIOContext *s, int maxlen, char *buf, int buflen)
{
int i;
if (buflen <= 0)
return AVERROR(EINVAL);
// reserve 1 byte for terminating 0
buflen = FFMIN(buflen - 1, maxlen);
for (i = 0; i < buflen; i++)
if (!(buf[i] = avio_r8(s)))
return i + 1;
buf[i] = 0;
for (; i < maxlen; i++)
if (!avio_r8(s))
return i + 1;
return maxlen;
}
#define GET_STR16(type, read) \
int avio_get_str16 ##type(AVIOContext *pb, int maxlen, char *buf, int buflen)\
{\
char* q = buf;\
int ret = 0;\
if (buflen <= 0) \
return AVERROR(EINVAL); \
while (ret + 1 < maxlen) {\
uint8_t tmp;\
uint32_t ch;\
GET_UTF16(ch, (ret += 2) <= maxlen ? read(pb) : 0, break;)\
if (!ch)\
break;\
PUT_UTF8(ch, tmp, if (q - buf < buflen - 1) *q++ = tmp;)\
}\
*q = 0;\
return ret;\
}\
GET_STR16(le, avio_rl16)
GET_STR16(be, avio_rb16)
#undef GET_STR16
uint64_t avio_rb64(AVIOContext *s)
{
uint64_t val;
val = (uint64_t)avio_rb32(s) << 32;
val |= (uint64_t)avio_rb32(s);
return val;
}
uint64_t ffio_read_varlen(AVIOContext *bc){
uint64_t val = 0;
int tmp;
do{
tmp = avio_r8(bc);
val= (val<<7) + (tmp&127);
}while(tmp&128);
return val;
}
int ffio_fdopen(AVIOContext **s, URLContext *h)
{
uint8_t *buffer;
int buffer_size, max_packet_size;
max_packet_size = h->max_packet_size;
if (max_packet_size) {
buffer_size = max_packet_size; /* no need to bufferize more than one packet */
} else {
buffer_size = IO_BUFFER_SIZE;
}
buffer = av_malloc(buffer_size);
if (!buffer)
return AVERROR(ENOMEM);
*s = avio_alloc_context(buffer, buffer_size, h->flags & AVIO_FLAG_WRITE, h,
(int (*)(void *, uint8_t *, int)) ffurl_read,
(int (*)(void *, uint8_t *, int)) ffurl_write,
(int64_t (*)(void *, int64_t, int)) ffurl_seek);
if (!*s) {
av_free(buffer);
return AVERROR(ENOMEM);
}
(*s)->direct = h->flags & AVIO_FLAG_DIRECT;
(*s)->seekable = h->is_streamed ? 0 : AVIO_SEEKABLE_NORMAL;
(*s)->max_packet_size = max_packet_size;
if(h->prot) {
(*s)->read_pause = (int (*)(void *, int))h->prot->url_read_pause;
(*s)->read_seek = (int64_t (*)(void *, int, int64_t, int))h->prot->url_read_seek;
}
(*s)->av_class = &ff_avio_class;
return 0;
}
int ffio_ensure_seekback(AVIOContext *s, int64_t buf_size)
{
uint8_t *buffer;
int max_buffer_size = s->max_packet_size ?
s->max_packet_size : IO_BUFFER_SIZE;
int filled = s->buf_end - s->buffer;
ptrdiff_t checksum_ptr_offset = s->checksum_ptr ? s->checksum_ptr - s->buffer : -1;
buf_size += s->buf_ptr - s->buffer + max_buffer_size;
if (buf_size < filled || s->seekable || !s->read_packet)
return 0;
av_assert0(!s->write_flag);
buffer = av_malloc(buf_size);
if (!buffer)
return AVERROR(ENOMEM);
memcpy(buffer, s->buffer, filled);
av_free(s->buffer);
s->buf_ptr = buffer + (s->buf_ptr - s->buffer);
s->buf_end = buffer + (s->buf_end - s->buffer);
s->buffer = buffer;
s->buffer_size = buf_size;
if (checksum_ptr_offset >= 0)
s->checksum_ptr = s->buffer + checksum_ptr_offset;
return 0;
}
int ffio_set_buf_size(AVIOContext *s, int buf_size)
{
uint8_t *buffer;
buffer = av_malloc(buf_size);
if (!buffer)
return AVERROR(ENOMEM);
av_free(s->buffer);
s->buffer = buffer;
s->orig_buffer_size =
s->buffer_size = buf_size;
s->buf_ptr = buffer;
url_resetbuf(s, s->write_flag ? AVIO_FLAG_WRITE : AVIO_FLAG_READ);
return 0;
}
static int url_resetbuf(AVIOContext *s, int flags)
{
av_assert1(flags == AVIO_FLAG_WRITE || flags == AVIO_FLAG_READ);
if (flags & AVIO_FLAG_WRITE) {
s->buf_end = s->buffer + s->buffer_size;
s->write_flag = 1;
} else {
s->buf_end = s->buffer;
s->write_flag = 0;
}
return 0;
}
int ffio_rewind_with_probe_data(AVIOContext *s, unsigned char **bufp, int buf_size)
{
int64_t buffer_start;
int buffer_size;
int overlap, new_size, alloc_size;
uint8_t *buf = *bufp;
if (s->write_flag) {
av_freep(bufp);
return AVERROR(EINVAL);
}
buffer_size = s->buf_end - s->buffer;
/* the buffers must touch or overlap */
if ((buffer_start = s->pos - buffer_size) > buf_size) {
av_freep(bufp);
return AVERROR(EINVAL);
}
overlap = buf_size - buffer_start;
new_size = buf_size + buffer_size - overlap;
alloc_size = FFMAX(s->buffer_size, new_size);
if (alloc_size > buf_size)
if (!(buf = (*bufp) = av_realloc_f(buf, 1, alloc_size)))
return AVERROR(ENOMEM);
if (new_size > buf_size) {
memcpy(buf + buf_size, s->buffer + overlap, buffer_size - overlap);
buf_size = new_size;
}
av_free(s->buffer);
s->buf_ptr = s->buffer = buf;
s->buffer_size = alloc_size;
s->pos = buf_size;
s->buf_end = s->buf_ptr + buf_size;
s->eof_reached = 0;
s->must_flush = 0;
return 0;
}
int avio_open(AVIOContext **s, const char *filename, int flags)
{
return avio_open2(s, filename, flags, NULL, NULL);
}
int avio_open2(AVIOContext **s, const char *filename, int flags,
const AVIOInterruptCB *int_cb, AVDictionary **options)
{
URLContext *h;
int err;
err = ffurl_open(&h, filename, flags, int_cb, options);
if (err < 0)
return err;
err = ffio_fdopen(s, h);
if (err < 0) {
ffurl_close(h);
return err;
}
return 0;
}
int ffio_open2_wrapper(struct AVFormatContext *s, AVIOContext **pb, const char *url, int flags,
const AVIOInterruptCB *int_cb, AVDictionary **options)
{
return avio_open2(pb, url, flags, int_cb, options);
}
int avio_close(AVIOContext *s)
{
URLContext *h;
if (!s)
return 0;
avio_flush(s);
h = s->opaque;
av_freep(&s->buffer);
if (s->write_flag)
av_log(s, AV_LOG_DEBUG, "Statistics: %d seeks, %d writeouts\n", s->seek_count, s->writeout_count);
else
av_log(s, AV_LOG_DEBUG, "Statistics: %"PRId64" bytes read, %d seeks\n", s->bytes_read, s->seek_count);
av_free(s);
return ffurl_close(h);
}
int avio_closep(AVIOContext **s)
{
int ret = avio_close(*s);
*s = NULL;
return ret;
}
int avio_printf(AVIOContext *s, const char *fmt, ...)
{
va_list ap;
char buf[4096]; /* update doc entry in avio.h if changed */
int ret;
va_start(ap, fmt);
ret = vsnprintf(buf, sizeof(buf), fmt, ap);
va_end(ap);
avio_write(s, buf, strlen(buf));
return ret;
}
int avio_pause(AVIOContext *s, int pause)
{
if (!s->read_pause)
return AVERROR(ENOSYS);
return s->read_pause(s->opaque, pause);
}
int64_t avio_seek_time(AVIOContext *s, int stream_index,
int64_t timestamp, int flags)
{
URLContext *h = s->opaque;
int64_t ret;
if (!s->read_seek)
return AVERROR(ENOSYS);
ret = s->read_seek(h, stream_index, timestamp, flags);
if (ret >= 0) {
int64_t pos;
s->buf_ptr = s->buf_end; // Flush buffer
pos = s->seek(h, 0, SEEK_CUR);
if (pos >= 0)
s->pos = pos;
else if (pos != AVERROR(ENOSYS))
ret = pos;
}
return ret;
}
int avio_read_to_bprint(AVIOContext *h, AVBPrint *pb, size_t max_size)
{
int ret;
char buf[1024];
while (max_size) {
ret = avio_read(h, buf, FFMIN(max_size, sizeof(buf)));
if (ret == AVERROR_EOF)
return 0;
if (ret <= 0)
return ret;
av_bprint_append_data(pb, buf, ret);
if (!av_bprint_is_complete(pb))
return AVERROR(ENOMEM);
max_size -= ret;
}
return 0;
}
int avio_accept(AVIOContext *s, AVIOContext **c)
{
int ret;
URLContext *sc = s->opaque;
URLContext *cc = NULL;
ret = ffurl_accept(sc, &cc);
if (ret < 0)
return ret;
return ffio_fdopen(c, cc);
}
int avio_handshake(AVIOContext *c)
{
URLContext *cc = c->opaque;
return ffurl_handshake(cc);
}
/* output in a dynamic buffer */
typedef struct DynBuffer {
int pos, size, allocated_size;
uint8_t *buffer;
int io_buffer_size;
uint8_t io_buffer[1];
} DynBuffer;
static int dyn_buf_write(void *opaque, uint8_t *buf, int buf_size)
{
DynBuffer *d = opaque;
unsigned new_size, new_allocated_size;
/* reallocate buffer if needed */
new_size = d->pos + buf_size;
new_allocated_size = d->allocated_size;
if (new_size < d->pos || new_size > INT_MAX/2)
return -1;
while (new_size > new_allocated_size) {
if (!new_allocated_size)
new_allocated_size = new_size;
else
new_allocated_size += new_allocated_size / 2 + 1;
}
if (new_allocated_size > d->allocated_size) {
int err;
if ((err = av_reallocp(&d->buffer, new_allocated_size)) < 0) {
d->allocated_size = 0;
d->size = 0;
return err;
}
d->allocated_size = new_allocated_size;
}
memcpy(d->buffer + d->pos, buf, buf_size);
d->pos = new_size;
if (d->pos > d->size)
d->size = d->pos;
return buf_size;
}
static int dyn_packet_buf_write(void *opaque, uint8_t *buf, int buf_size)
{
unsigned char buf1[4];
int ret;
/* packetized write: output the header */
AV_WB32(buf1, buf_size);
ret = dyn_buf_write(opaque, buf1, 4);
if (ret < 0)
return ret;
/* then the data */
return dyn_buf_write(opaque, buf, buf_size);
}
static int64_t dyn_buf_seek(void *opaque, int64_t offset, int whence)
{
DynBuffer *d = opaque;
if (whence == SEEK_CUR)
offset += d->pos;
else if (whence == SEEK_END)
offset += d->size;
if (offset < 0 || offset > 0x7fffffffLL)
return -1;
d->pos = offset;
return 0;
}
static int url_open_dyn_buf_internal(AVIOContext **s, int max_packet_size)
{
DynBuffer *d;
unsigned io_buffer_size = max_packet_size ? max_packet_size : 1024;
if (sizeof(DynBuffer) + io_buffer_size < io_buffer_size)
return -1;
d = av_mallocz(sizeof(DynBuffer) + io_buffer_size);
if (!d)
return AVERROR(ENOMEM);
d->io_buffer_size = io_buffer_size;
*s = avio_alloc_context(d->io_buffer, d->io_buffer_size, 1, d, NULL,
max_packet_size ? dyn_packet_buf_write : dyn_buf_write,
max_packet_size ? NULL : dyn_buf_seek);
if(!*s) {
av_free(d);
return AVERROR(ENOMEM);
}
(*s)->max_packet_size = max_packet_size;
return 0;
}
int avio_open_dyn_buf(AVIOContext **s)
{
return url_open_dyn_buf_internal(s, 0);
}
int ffio_open_dyn_packet_buf(AVIOContext **s, int max_packet_size)
{
if (max_packet_size <= 0)
return -1;
return url_open_dyn_buf_internal(s, max_packet_size);
}
int avio_close_dyn_buf(AVIOContext *s, uint8_t **pbuffer)
{
DynBuffer *d;
int size;
static const char padbuf[AV_INPUT_BUFFER_PADDING_SIZE] = {0};
int padding = 0;
if (!s) {
*pbuffer = NULL;
return 0;
}
/* don't attempt to pad fixed-size packet buffers */
if (!s->max_packet_size) {
avio_write(s, padbuf, sizeof(padbuf));
padding = AV_INPUT_BUFFER_PADDING_SIZE;
}
avio_flush(s);
d = s->opaque;
*pbuffer = d->buffer;
size = d->size;
av_free(d);
av_free(s);
return size - padding;
}
void ffio_free_dyn_buf(AVIOContext **s)
{
uint8_t *tmp;
if (!*s)
return;
avio_close_dyn_buf(*s, &tmp);
av_free(tmp);
*s = NULL;
}
static int null_buf_write(void *opaque, uint8_t *buf, int buf_size)
{
DynBuffer *d = opaque;
d->pos += buf_size;
if (d->pos > d->size)
d->size = d->pos;
return buf_size;
}
int ffio_open_null_buf(AVIOContext **s)
{
int ret = url_open_dyn_buf_internal(s, 0);
if (ret >= 0) {
AVIOContext *pb = *s;
pb->write_packet = null_buf_write;
}
return ret;
}
int ffio_close_null_buf(AVIOContext *s)
{
DynBuffer *d = s->opaque;
int size;
avio_flush(s);
size = d->size;
av_free(d);
av_free(s);
return size;
}
```
|
Konstantinos Drosatos (Greek: Κωνσταντίνος Δροσάτος), born in Athens, Greece, is a Greek-American molecular biologist, who is the Ohio Eminent Scholar and Professor of Pharmacology and Systems Physiology at the University of Cincinnati College of Medicine in Cincinnati, Ohio, U.S. His parents were Georgios Drosatos and Sofia Drosatou; his family originates in Partheni, Euboea, Greece.
Education and career
Drosatos received his B.Sc. from the department of biology at the Aristotle University of Thessaloniki, Greece in 2000. In 2000, he continued with graduate studies at the Molecular Biology-Biomedicine graduate program of the department of biology and the medical school of the University of Crete. He received his M.Sc. in 2002 and his Ph.D. in molecular biology-biomedicine in 2007. During his graduate studies (2002–2007) he was a visiting research scholar in the laboratory of Vassilis I. Zannis at Boston University Medical School. Following his graduation with a PhD in molecular biology-biomedicine in 2007, he joined the laboratory of Ira J. Goldberg at Columbia University, where he pursued post-doctoral training until 2012, when he was promoted to associate research scientist in the department of medicine at Columbia University. In 2014 he joined the faculty of the Lewis Katz School of Medicine at Temple University as an assistant professor in pharmacology and in 2020, he was promoted to associate professor with tenure in cardiovascular sciences (primary affiliation). In 2022, he was recruited at the University of Cincinnati College of Medicine, which he joined as the Ohio Eminent Scholar and Professor of Pharmacology and Systems Physiology
Research interests
The research in his laboratory focuses on cardiovascular and systemic metabolism and particularly on signaling mechanisms that link cardiac stress in diabetes, sepsis and ischemia with altered myocardial fatty acid metabolism. His published work focuses on the transcriptional regulation of proteins that underlie lipoprotein metabolism, cardiac and systemic fatty acid metabolism, and mitochondrial function. His work has identified the role of Krüppel-like factor 5 (KLF5) in the regulation of cardiac fatty acid metabolism in diabetes and ischemic heart failure, as well as how cardiac lipotoxicity leads to cardiac dysfunction, and the importance of cardiac fatty acid oxidation and mitochondrial integrity for the treatment of cardiac dysfunction in sepsis.
Distinctions and awards
2014 Outstanding Early Career Award recipient, American Heart Association, BCVS Council
2016 Honorary Citizen, Eastern Mani Municipality, Greece
2016 Visiting Professor, UCLA Center for Systems Biomedicine
2017 Early Research Investigator Award, Lewis Katz School of Medicine at Temple University
2017 Elected Fellow (FAHA), American Heart Association
2019 Elected Full Member, Sigma Xi, The Scientific Research Honor Society
Leadership positions
2006–2010 – founding president of the board of directors, Hellenic Bioscientific Association of the USA
2012–2014 – president of the executive board, World Hellenic Biomedical Association
2019–present – vice-president of the executive council, ARISTEiA-Institute for the Advancement of Research & Education in Arts, Sciences & Technology
2020-2021 - Chair-elect of the Mid-career Committee, International Society for Heart Research-North American Section
References
External links
Publications list
Greek scientists
Greek biologists
American scientists
American biologists
Metabolism
Aristotle University of Thessaloniki alumni
University of Crete alumni
Year of birth missing (living people)
Living people
Scientists from Athens
|
```javascript
/**
* 1000
* `path``callback(null, )`
* NOT FOUND`callback()`
*/
function dummyFetch(path, callback) {
setTimeout(() => {
// /success
if (path.startsWith("/success")) {
callback(null, { body: `Response body of ${path}` });
} else {
callback(new Error("NOT FOUND"));
}
}, 1000 * Math.random());
}
dummyFetch("/success/data", (error, response) => {
console.log(error, response);
});
dummyFetch("/failure/data", (error, response) => {
console.log(error, response);
});
// nest
dummyFetch("/success/data", (error, response) => {
console.log(error, response);
// nest
dummyFetch("/failure/data", (error, response) => {
console.log(error, response);
});
});
```
|
```smalltalk
// The .NET Foundation licenses this file to you under the MIT license.
using Microsoft.TemplateEngine.Abstractions;
using Microsoft.TemplateEngine.Utils;
using Newtonsoft.Json.Linq;
namespace Microsoft.TemplateEngine.Cli.PostActionProcessors
{
public abstract class PostActionProcessorBase : IPostActionProcessor
{
public abstract Guid Id { get; }
public bool Process(
IEngineEnvironmentSettings environment,
IPostAction action,
ICreationEffects creationEffects,
ICreationResult templateCreationResult,
string outputBasePath)
{
if (string.IsNullOrWhiteSpace(outputBasePath))
{
throw new ArgumentException($"'{nameof(outputBasePath)}' cannot be null or whitespace.", nameof(outputBasePath));
}
outputBasePath = Path.GetFullPath(outputBasePath);
return ProcessInternal(environment, action, creationEffects, templateCreationResult, outputBasePath);
}
/// <summary>
/// Gets absolute normalized path for a target matching <paramref name="sourcePathGlob"/>.
/// </summary>
protected static IReadOnlyList<string> GetTargetForSource(ICreationEffects2 creationEffects, string sourcePathGlob, string outputBasePath)
{
Glob g = Glob.Parse(sourcePathGlob);
List<string> results = new();
if (creationEffects.FileChanges != null)
{
foreach (IFileChange2 change in creationEffects.FileChanges)
{
if (g.IsMatch(change.SourceRelativePath))
{
results.Add(Path.GetFullPath(change.TargetRelativePath, outputBasePath));
}
}
}
return results;
}
protected static IReadOnlyList<string> GetConfiguredFiles(
IReadOnlyDictionary<string, string> postActionArgs,
ICreationEffects creationEffects,
string argName,
string outputBasePath,
Func<string, bool>? matchCriteria = null)
{
if (creationEffects is not ICreationEffects2 creationEffects2)
{
return new List<string>();
}
if (!postActionArgs.TryGetValue(argName, out string? targetFiles))
{
return new List<string>();
}
if (string.IsNullOrWhiteSpace(targetFiles))
{
return new List<string>();
}
if (TryParseAsJson(targetFiles, out IReadOnlyList<string> paths))
{
return ProcessPaths(paths);
}
return ProcessPaths(targetFiles.Split(new[] { ';' }, StringSplitOptions.RemoveEmptyEntries));
IReadOnlyList<string> ProcessPaths(IReadOnlyList<string> paths)
{
matchCriteria ??= p => true;
return paths
.SelectMany(t => GetTargetForSource(creationEffects2, t, outputBasePath))
.Where(t => matchCriteria(t))
.ToArray();
}
}
protected static IReadOnlyList<string>? GetTargetFilesPaths(
IReadOnlyDictionary<string, string> postActionArgs,
string outputBasePath)
{
postActionArgs.TryGetValue("targetFiles", out string? targetFiles);
if (string.IsNullOrWhiteSpace(targetFiles))
{
return null;
}
// try to parse the argument as json; if it is not valid json, use it as a string
if (TryParseAsJson(targetFiles, out IReadOnlyList<string> paths))
{
return GetFullPaths(paths);
}
return GetFullPaths(targetFiles.Split(new[] { ';' }, StringSplitOptions.RemoveEmptyEntries));
IReadOnlyList<string> GetFullPaths(IEnumerable<string> paths)
{
var fullPaths = paths
.Select(p => Path.GetFullPath(p, outputBasePath))
.ToList();
return fullPaths.AsReadOnly();
}
}
protected abstract bool ProcessInternal(
IEngineEnvironmentSettings environment,
IPostAction action,
ICreationEffects creationEffects,
ICreationResult templateCreationResult,
string outputBasePath);
private static bool TryParseAsJson(string targetFiles, out IReadOnlyList<string> paths)
{
paths = new List<string>();
targetFiles.TryParse(out JToken? config);
if (config is null)
{
return false;
}
if (config.Type == JTokenType.String)
{
paths = config.ToString().Split(new[] { ';' }, StringSplitOptions.RemoveEmptyEntries);
return true;
}
if (config is not JArray arr)
{
return false;
}
var parts = arr
.Where(token => token.Type == JTokenType.String)
.Select(token => token.ToString()).ToList();
if (parts.Count == 0)
{
return false;
}
paths = parts.AsReadOnly();
return true;
}
}
}
```
|
```xml
import React, { Dispatch, SetStateAction, useCallback, useEffect, useRef } from 'react';
import { useDispatch, useSelector } from 'react-redux';
import { useTranslation } from 'react-i18next';
import throttle from 'lodash/throttle';
import Loading from '../ui/Loading';
import Header from './Cells/Header';
import { getLogs } from '../../actions/queryLogs';
import Row from './Cells';
import { isScrolledIntoView } from '../../helpers/helpers';
import { QUERY_LOGS_PAGE_LIMIT } from '../../helpers/constants';
import { RootState } from '../../initialState';
interface InfiniteTableProps {
isLoading: boolean;
items: unknown[];
isSmallScreen: boolean;
setDetailedDataCurrent: Dispatch<SetStateAction<any>>;
setButtonType: (...args: unknown[]) => unknown;
setModalOpened: (...args: unknown[]) => unknown;
}
const InfiniteTable = ({
isLoading,
items,
isSmallScreen,
setDetailedDataCurrent,
setButtonType,
setModalOpened,
}: InfiniteTableProps) => {
const { t } = useTranslation();
const dispatch = useDispatch();
const loader = useRef(null);
const loadingRef = useRef(null);
const isEntireLog = useSelector((state: RootState) => state.queryLogs.isEntireLog);
const processingGetLogs = useSelector((state: RootState) => state.queryLogs.processingGetLogs);
const loading = isLoading || processingGetLogs;
const listener = useCallback(() => {
if (!loadingRef.current && loader.current && isScrolledIntoView(loader.current)) {
dispatch(getLogs());
}
}, []);
useEffect(() => {
loadingRef.current = processingGetLogs;
}, [processingGetLogs]);
useEffect(() => {
listener();
}, [items.length < QUERY_LOGS_PAGE_LIMIT, isEntireLog]);
useEffect(() => {
const THROTTLE_TIME = 100;
const throttledListener = throttle(listener, THROTTLE_TIME);
window.addEventListener('scroll', throttledListener);
return () => {
window.removeEventListener('scroll', throttledListener);
};
}, []);
const renderRow = (row: any, idx: any) => (
<Row
key={idx}
rowProps={row}
isSmallScreen={isSmallScreen}
setDetailedDataCurrent={setDetailedDataCurrent}
setButtonType={setButtonType}
setModalOpened={setModalOpened}
/>
);
const isNothingFound = items.length === 0 && !processingGetLogs;
return (
<div className="logs__table" role="grid">
{loading && <Loading />}
<Header />
{isNothingFound ? (
<label className="logs__no-data">{t('nothing_found')}</label>
) : (
<>
{items.map(renderRow)}
{!isEntireLog && (
<div ref={loader} className="logs__loading text-center">
{t('loading_table_status')}
</div>
)}
</>
)}
</div>
);
};
export default InfiniteTable;
```
|
```java
/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
package com.oracle.svm.graal.hotspot;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.stream.Collectors;
import jdk.graal.compiler.util.ObjectCopier;
import org.graalvm.collections.UnmodifiableEconomicMap;
import org.graalvm.collections.UnmodifiableMapCursor;
import com.oracle.graal.pointsto.api.PointstoOptions;
import com.oracle.svm.core.option.HostedOptionKey;
import com.oracle.svm.core.option.RuntimeOptionKey;
import jdk.graal.compiler.debug.GraalError;
import jdk.graal.compiler.hotspot.HotSpotGraalOptionValues;
import jdk.graal.compiler.options.OptionKey;
import jdk.graal.compiler.options.OptionValues;
import jdk.graal.compiler.hotspot.guestgraal.CompilerConfig;
/**
* Gets the map created in a JVM subprocess by running {@link CompilerConfig}.
*/
public class GetCompilerConfig {
private static final boolean DEBUG = Boolean.getBoolean("debug." + GetCompilerConfig.class.getName());
/**
* Result returned by {@link GetCompilerConfig#from}.
*
* @param encodedConfig the {@linkplain CompilerConfig config} serialized to a string
* @param opens map from a module to the set of packages opened to the module defining
* {@link ObjectCopier}. These packages need to be opened when decoding the returned
* string back to an object.
*/
public record Result(String encodedConfig, Map<String, Set<String>> opens) {
}
/**
* Launches the JVM in {@code javaHome} to run {@link CompilerConfig}.
*
* @param javaHome the value of the {@code java.home} system property reported by a Java
* installation directory that includes the Graal classes in its runtime image
* @param options the options passed to native-image
*/
public static Result from(Path javaHome, OptionValues options) {
Path javaExe = GetJNIConfig.getJavaExe(javaHome);
UnmodifiableEconomicMap<OptionKey<?>, Object> optionsMap = options.getMap();
UnmodifiableMapCursor<OptionKey<?>, Object> entries = optionsMap.getEntries();
Map<String, Set<String>> opens = Map.of(
// Needed to reflect fields like
// java.util.ImmutableCollections.EMPTY
"java.base", Set.of("java.util"));
List<String> command = new ArrayList<>(List.of(
javaExe.toFile().getAbsolutePath(),
"-XX:+UnlockExperimentalVMOptions",
"-XX:+EnableJVMCI",
"-XX:-UseJVMCICompiler", // avoid deadlock with jargraal
"-Djdk.vm.ci.services.aot=true"));
Module module = ObjectCopier.class.getModule();
String target = module.isNamed() ? module.getName() : "ALL-UNNAMED";
for (var e : opens.entrySet()) {
for (String source : e.getValue()) {
command.add("--add-opens=%s/%s=%s".formatted(e.getKey(), source, target));
}
}
// Propagate compiler options
while (entries.advance()) {
OptionKey<?> key = entries.getKey();
if (key instanceof RuntimeOptionKey || key instanceof HostedOptionKey) {
// Ignore Native Image options
continue;
}
if (key.getDescriptor().getDeclaringClass().getModule().equals(PointstoOptions.class.getModule())) {
// Ignore points-to analysis options
continue;
}
command.add("-D%s%s=%s".formatted(HotSpotGraalOptionValues.GRAAL_OPTION_PROPERTY_PREFIX, key.getName(), entries.getValue()));
}
command.add(CompilerConfig.class.getName());
Path encodedConfigPath = Path.of(GetCompilerConfig.class.getSimpleName() + "_" + ProcessHandle.current().pid() + ".txt").toAbsolutePath();
command.add(encodedConfigPath.toString());
String quotedCommand = command.stream().map(e -> e.indexOf(' ') == -1 ? e : '\'' + e + '\'').collect(Collectors.joining(" "));
ProcessBuilder pb = new ProcessBuilder(command);
pb.inheritIO();
Process p;
try {
p = pb.start();
} catch (IOException ex) {
throw new GraalError("Error running command: %s%n%s", quotedCommand, ex);
}
try {
int exitValue = p.waitFor();
if (exitValue != 0) {
throw new GraalError("Command finished with exit value %d: %s", exitValue, quotedCommand);
}
} catch (InterruptedException e) {
throw new GraalError("Interrupted waiting for command: %s", quotedCommand);
}
try {
String encodedConfig = Files.readString(encodedConfigPath);
if (DEBUG) {
System.out.printf("[%d] Executed: %s%n", p.pid(), quotedCommand);
System.out.printf("[%d] Output saved in %s%n", p.pid(), encodedConfigPath);
} else {
Files.deleteIfExists(encodedConfigPath);
}
return new Result(encodedConfig, opens);
} catch (IOException e) {
throw new GraalError(e);
}
}
}
```
|
The Four Deuces were an American rhythm and blues vocal quartet, formed in the mid-1950s in Salinas, California. The band was started by lead singer Luther McDaniel, and recorded several songs before they broke up in 1959. While active, the Four Deuces had moderate but short-lived popularity, mainly along the West Coast, mostly due to the frequent radio airplay of their hit song, "W-P-L-J."
History
The band was formed when Luther McDaniel and a group of army friends from Fort Ord got together and began to sing gospel songs. They soon moved to rhythm and blues, and began to look for a record deal.
Moving to San Francisco, the band came into contact with Ray Dobard and his company, Music City Records. Once in the studio, they recorded "W-P-L-J", and a B-side called "Here Lies My Love." This record was released in February 1956 (see 1956 in music), and received wide radio airplay across the US. Besides in their home territory of San Francisco, the Four Deuces were especially popular in Philadelphia.
The Four Deuces returned to the studio later in the year and released another record, which featured "Down it Went" and "The Goose is Gone", but these were not as popular. The group broke up shortly after.
There has been one more recording released by the group, "Yellow Shoes/Pretty Polly" on Everest Records; however, there is some dispute about the authenticity of the record.
W-P-L-J
The Four Deuces were best known for their song "W-P-L-J", which stands for white port and lemon juice. This later became the jingle for wine producer Italian Swiss Colony.
The Mothers of Invention version
Frank Zappa and The Mothers of Invention covered the song in 1969, releasing it in 1970 on the album Burnt Weeny Sandwich. This version was both a satire of and a homage to the original, and Zappa has conceded admiringly that he could not have written a song any more absurd.
The song prompted a rock radio station in New York then known as WABC-FM to change its call letters to WPLJ on February 14, 1971; it still uses the callsign to this day. A cover of the song by Hall and Oates was the last song played by the station as a commercial outlet on May 31, 2019.
Discography
"W-P-L-J" / "Here Lies My Love" (1956)
"Down it Went" / "The Goose is Gone" (1956)
"Yellow Shoes" / "Pretty Polly" (1959)
See also
Doo-Wop
References
External links
"DooWop Nation" article - "Remembering the Four Deuces"
Doo-wop groups
Vocal quartets
1969 songs
Frank Zappa songs
1969 singles
Song recordings produced by Frank Zappa
|
Salim Mohammed (born 9 September 1946) is a former Trinidad cyclist. He competed in the team pursuit at the 1968 Summer Olympics.
References
1946 births
Living people
Trinidad and Tobago male cyclists
Olympic cyclists for Trinidad and Tobago
Cyclists at the 1968 Summer Olympics
20th-century Trinidad and Tobago people
|
Deaths in October
8: Al Davis
16: Dan Wheldon
23: Marco Simoncelli
31: Flórián Albert Sr.
Current sporting seasons
American football 2011
National Football League
NCAA Division I FBS
NCAA Division I FCS
Australian rules football 2011
Australian Football League
Auto racing 2011
Formula One
Sprint Cup
Nationwide Series
Camping World Truck Series
IRL IndyCar Series
World Rally Championship
WTTC
V8 Supercar
Formula Two
GP2 Series
American Le Mans
FIA GT1 World Championship
World Series by Renault
Deutsche Tourenwagen Masters
Super GT
Baseball 2011
Major League Baseball
Nippon Professional Baseball
Basketball 2011
WNBA
Euroleague
EuroLeague Women
Eurocup
EuroChallenge
Australia
France
Germany
Greece
Israel
Italy
Philippines professional:
Philippine Cup
Philippines collegiate:
NCAA
Russia
Spain
Turkey
Canadian football 2011
Canadian Football League
CIS football
Cricket 2011
Australia:
Sheffield Shield
Ryobi One-Day Cup
Football (soccer) 2011
National teams competitions
2014 FIFA World Cup qualification
UEFA Euro 2012 qualifying
UEFA Women's Euro 2013 qualifying
2012 Africa Cup of Nations qualification
International clubs competitions
UEFA (Europe) Champions League
UEFA Europa League
UEFA Women's Champions League
Copa Sudamericana
AFC (Asia) Champions League
AFC Cup
CAF (Africa) Champions League
CAF Confederation Cup
CONCACAF (North & Central America) Champions League
OFC (Oceania) Champions League
Domestic (national) competitions
Argentina
Australia
Brazil
England
France
Germany
Iran
Italy
Japan
Norway
Portugal
Russia
Scotland
Spain
Major League Soccer (USA & Canada)
MLS Cup Playoffs
Golf 2011
PGA Tour
European Tour
LPGA Tour
Champions Tour
Ice hockey 2011
National Hockey League
Kontinental Hockey League
Czech Extraliga
Elitserien
Canadian Hockey League:
OHL, QMJHL, WHL
NCAA Division I men
NCAA Division I women
Motorcycle racing 2011
Moto GP
Rugby league 2011
Four Nations
Autumn International Series
Super League
NRL
Rugby union 2011
Aviva Premiership
RaboDirect Pro12
Top 14
Currie Cup
Tennis 2011
ATP World Tour
WTA Tour
Volleyball 2011
International clubs competitions
Men's CEV Champions League
Women's CEV Champions League
Winter sports
Alpine Skiing World Cup
ISU Grand Prix
ISU Junior Grand Prix
Short Track Speed Skating World Cup
Snowboard World Cup
Days of the month
October 31, 2011 (Monday)
Gold medal match: 3–0
Nippon Professional Baseball Climax Series:
Central League First Stage Game 3 in Meiji Jingu: Yakult Swallows 3, Yomiuri Giants 1. Swallows win series 2–1.
Major League Baseball news: Tony La Russa, the manager of the World Series-winning St. Louis Cardinals, announces his retirement with immediate effect after 33 years and 2,728 career victories as a manager.
Cricket
West Indies in Bangladesh:
2nd Test in Dhaka, day 3: 355 & 207/3 (71 overs, Darren Bravo 100*); 231 (68 overs). West Indies lead by 331 runs with 7 wickets remaining.
October 30, 2011 (Sunday)
Auto racing
Formula One:
in Greater Noida, India: (1) Sebastian Vettel (Red Bull–Renault) (2) Jenson Button (McLaren–Mercedes) (3) Fernando Alonso (Ferrari)
Drivers' championship standings (after 17 of 19 races): (1) Vettel 374 points (2) Button 240 (3) Alonso 227
Sprint Cup Series – Chase for the Sprint Cup:
Tums Fast Relief 500 in Ridgeway, Virginia (all Chevrolet): (1) Tony Stewart (Stewart Haas Racing) (2) Jimmie Johnson (Hendrick Motorsports) (3) Jeff Gordon (Hendrick Motorsports)
Drivers' championship standings (after 33 of 36 races): (1) Carl Edwards (Ford; Roush Fenway Racing) 2273 points (2) Stewart 2265 (3) Kevin Harvick (Chevrolet; Richard Childress Racing) 2252
Badminton
BWF Super Series:
French Super Series in Paris (CHN unless stated):
Men's singles: Lee Chong Wei def. Kenichi Tago 21–16, 21–11
Women's singles: Wang Xin def. Li Xuerui 21–15, 21–19
Men's doubles: Jung Jae-sung/Lee Yong-dae def. Cai Yun/Fu Haifeng 14–21, 21–15, 21–11
Women's doubles: Wang Xiaoli/Yu Yang def. Tian Qing/Zhao Yunlei 26–24, 21–15
Mixed doubles: Joachim Fischer Nielsen/Christinna Pedersen def. Xu Chen/Ma Jin 21–17, 21–14
Baseball
Nippon Professional Baseball Climax Series:
Pacific League First Stage Game 2 in Sapporo: Saitama Seibu Lions 8, Hokkaido Nippon-Ham Fighters 1. Lions win series 2–0.
Central League First Stage Game 2 in Tokyo: Yomiuri Giants 6, Tokyo Yakult Swallows 2. Series tied 1–1.
Cricket
West Indies in Bangladesh:
2nd Test in Dhaka, day 2: 355 (126.4 overs; Kirk Edwards 121, Shakib Al Hasan 5/63); 204/7 (51 overs; Fidel Edwards 5/58). Bangladesh trail by 151 runs with 3 wickets remaining in the 1st innings.
Equestrianism
Show jumping – World Cup:
Western European League, 3rd competition in Lyon (CSI 5*-W): Rolf-Göran Bengtsson on Casall Katharina Offel on Cathleen Steve Guerdat on Nino des Buissonnets
Standings (after 3 competitions): (1) Pius Schwizer 40 points (2) Bengtsson 27 (3) Maikel van der Vleuten 26
North American League – East Coast, 6th competition in Washington, D.C. (CSI 3*-W): Nick Skelton on Carlo Brianne Goutal on Nice de Prissey Lucy Davis on Nemo
Figure skating
ISU Grand Prix:
Skate Canada International in Mississauga, Ontario, Canada:
Ice dancing: Tessa Virtue/Scott Moir 178.34 points Kaitlyn Weaver/Andrew Poje 155.99 Anna Cappellini/Luca Lanotte 154.87
Standings (after 2 of 6 events): Virtue/Moir & Meryl Davis/Charlie White 15 points (1 event), Nathalie Péchalat/Fabian Bourzat & Weaver/Poje 13 (1), Cappellini/Lanotte & Isabella Tobias/Deividas Stagniūnas 11 (1).
Football (soccer)
CAF Confederation Cup Semifinals second leg (first leg score in parentheses): Maghreb de Fès 1–0 (1–2) Inter Luanda. 2–2 on aggregate; Maghreb de Fès win on away goals.
OFC Champions League group stage Matchday 1:
Group A: Ba 2–1 Mont-Dore
MLS Cup Playoffs Conference Semifinals, first leg:
Western Conference: New York Red Bulls 0–1 Los Angeles Galaxy
Eastern Conference:
Colorado Rapids 0–2 Sporting Kansas City
Philadelphia Union 1–2 Houston Dynamo
Premier League, matchday 28 (team in bold qualify for Champions League):
Molde 2–2 Strømsgodset
Rosenborg 3–6 Brann
Standings: Molde 55 points, Tromsø 47, Rosenborg 46.
Molde win the title for the first time.
Golf
European Tour:
Andalucía Masters in Sotogrande, Spain:
Winner: Sergio García 278 (−6)
García wins for the second consecutive week, for his tenth European Tour title.
Multi-sport events
Pan American Games, day 17 in Guadalajara, Mexico:
Athletics:
Men's marathon: Solonei da Silva 2:16:37 Diego Colorado 2:17:13 Juan Carlos Cardona 2:18:20
Basketball:
Men's tournament:
Rugby sevens:
Men's tournament:
Short track speed skating
World Cup 2 in Saguenay, Canada:
Women's 500m (2): Arianna Fontana 44.279 Martina Valcepina 44.353 Liu Qiuhong 44.419
Standings (after 3 of 8 events): (1) Valcepina 2400 points (2) Marianne St-Gelais 2000 (3) Liu 1608
Women's 1000m: St-Gelais 1:30.710 Elise Christie 1:30.900 Cho Ha-Ri 1:30.908
Standings (after 2 of 8 events): (1) Yui Sakai 1410 points (2) Christie 1128 (3) St-Gelais 1035
Women's 3000m relay: (Fan Kexin, Li Jianrou, Liu, Xiao Han) 4:13.559 (Marie-Eve Drolet, Valérie Maltais, St-Gelais, Caroline Truchon) 4:13.728 (Ayuko Ito, Sakai, Sayuri Shimizu, Marie Yoshida) 4:16.886
Standings (after 2 of 6 events): (1) China 2000 points (2) Canada 1312 (3) 1210
Men's 500m (2): François-Louis Tremblay 41.655 Guillaume Bastille 41.746 Liang Wenhao 41.801
Standings (after 3 of 8 events): (1) Jon Eley 1840 points (2) Charles Hamelin 1600 (3) Tremblay 1262
Men's 1000m: Hamelin 1:28.748 Michael Gilday 1:28.835 Olivier Jean 1:28.979
Standings (after 2 of 8 events): (1) Kwak Yoon-Gy 1512 points (2) Noh Jin-Kyu 1128 (3) Hamelin 1000
Men's 5000m relay: (Kwak, Lee Ho-Suk, Noh, Sin Da Woon) 6:48.401 (Semen Elistratov, Vladimir Grigorev, Evgeny Kozulin, Viacheslav Kurginian) 6:49.808 (Jean, Gilday, Hamelin, Tremblay) 6:55.598
Standings (after 2 of 6 events): (1) Korea & Canada 1640 points (3) Russia & 1210
Tennis
ATP World Tour:
Erste Bank Open in Vienna, Austria:
Final: Jo-Wilfried Tsonga def. Juan Martín del Potro 6–7(5), 6–3, 6–4
Tsonga wins his second title of the year and seventh of his career.
St. Petersburg Open in Saint Petersburg, Russia:
Final: Marin Čilić def. Janko Tipsarević 6–3, 3–6, 6–2
Čilić wins the sixth title of his career.
WTA Tour:
WTA Tour Championships in Istanbul, Turkey:
Final: Petra Kvitová def. Victoria Azarenka 7–5, 4–6, 6–3
Kvitová wins her sixth title of the year and seventh of her career.
October 29, 2011 (Saturday)
Baseball
Nippon Professional Baseball Climax Series:
Pacific League First Stage Game 1 in Sapporo: Saitama Seibu Lions 5, Hokkaido Nippon-Ham Fighters 2 (F/11). Lions lead series 1–0.
Central League First Stage Game 1 in Tokyo: Tokyo Yakult Swallows 3, Yomiuri Giants 2. Swallows lead series 1–0.
Cricket
Pakistan vs Sri Lanka in UAE:
2nd Test in Dubai, day 4: 239 & 257 (109.5 overs; Saeed Ajmal 5/68); 403 & 94/1 (24.1 overs). Pakistan win by 9 wickets; lead 3-match series 1–0.
West Indies in Bangladesh:
2nd Test in Dhaka, day 1: 253/5 (90 overs); .
England in India:
Only T20I in Kolkata: 120/9 (20 overs); 121/4 (18.4 overs). England win by 6 wickets.
Figure skating
ISU Grand Prix:
Skate Canada International in Mississauga, Ontario, Canada:
Ladies: Elizaveta Tuktamysheva 177.38 points Akiko Suzuki 172.26 Ashley Wagner 165.48
Standings (after 2 of 6 events): Alissa Czisny & Tuktamysheva 15 points (1 event), Carolina Kostner & Suzuki 13 (1), Viktoria Helgesson & Wagner 11 (1).
Pairs: Tatiana Volosozhar/Maxim Trankov 201.38 points Sui Wenjing/Han Cong 180.82 Meagan Duhamel/Eric Radford 174.84
Standings (after 2 of 6 events): Aliona Savchenko/Robin Szolkowy & Volosozhar/Trankov 15 points (1 event), Zhang Hao/Zhang Dan & Sui/Han 13 (1), Kirsten Moore-Towers/Dylan Moscovitch & Duhamel/Radford 11 (1).
Men: Patrick Chan 253.74 points Javier Fernández 250.33 Daisuke Takahashi 237.87
Standings (after 2 of 6 events): Kevin van der Perren 16 points, Michal Březina & Chan 15 (1), Denis Ten 14, Fernández 13 (1), Takahiko Kozuka & Takahashi 11 (1).
Football (soccer)
CAF Confederation Cup Semifinals second leg (first leg score in parentheses): Club Africain 0–0 (1–0) Sunshine Stars. Club Africain win 1–0 on aggregate.
AFC Cup Final in Qarshi, Uzbekistan: Nasaf Qarshi 2–1 Al-Kuwait
Nasaf Qarshi win the title for the first time.
OFC Champions League group stage Matchday 1:
Group A: Waitakere United 10–0 Tefana
Group B:
Amicale 1–1 Hekari United
Koloale 1–4 Auckland City
MLS Cup Playoffs Conference Semifinals, first leg:
Western Conference: Real Salt Lake 3–0 Seattle Sounders FC
Premier League, matchday 32 (team in bold qualify for Champions League):
Shakhter 2–0 Astana
Irtysh 2–1 Zhetysu
Standings: Shakhter 42 points, Zhetysu 38, Aktobe 34, Astana 33.
Shakhter win the title for the first time.
Mixed martial arts
UFC 137 in Las Vegas, United States (USA unless stated):
Welterweight bout: Nick Diaz def. B.J. Penn via unanimous decision (29–28, 29–27, 29–28)
Heavyweight bout: Cheick Kongo def. Matt Mitrione via unanimous decision (30–27, 29–27, 29–28)
Heavyweight bout: Roy Nelson def. Mirko Filipović via TKO (punches)
Bantamweight bout: Scott Jorgensen def. Jeff Curran via unanimous decision (29–28, 29–28, 30–27)
Featherweight bout: Hatsu Hioki def. George Roop via split decision (29–28, 28–29, 29–28)
Multi-sport events
Pan American Games, day 16 in Guadalajara, Mexico:
Athletics:
Men's 50 kilometres walk: Horacio Nava 3:48:58 José Ojeda 3:49:16 Jaime Quiyuch 3:50:33
Boxing:
Men's Flyweight: Robeisy Ramírez Dagoberto Agüero Braulio Ávila & Julião Henriques
Men's Lightweight: Yasniel Toledo Robson Conceição Ángel Suárez & Ángel Gutiérrez
Men's Welterweight: Carlos Banteux Óscar Molina Mian Hussain & Myke Carvalho
Men's Light heavyweight: Julio la Cruz Yamaguchi Florentino Armando Pina & Carlos Góngora
Men's Super heavyweight: Ytalo Perea Juan Hiracheta Gerardo Bisbal & Isaia Mena
Women's Flyweight: Mandy Bujold Ingrit Valencia Karlha Magliocco & Pamela Benavídez
Women's Light welterweight: Kiria Tapia Erika Cruz Sandra Bizier & Adela Peralta
Canoeing:
Men's K-1 200 metres: César de Cesare 35.971 Miguel Correa 36.349 Ryan Dolan 36.547
Men's C-1 200 metres: Richard Dalton 40.333 Nivalter Jesus 40.619 Roleysi Baez 41.403
Men's K-2 200 metres: Ryan Cochrane/Hugues Fournel 32.375 Correa/Ruben Resola 32.494 Givago Ribeiro/Gilvan Ribeiro 32.902
Women's K-2 500 metres: Dayexi Gandarela/Yulitza Meneses 1:47.332 Sabrina Ameghino/Alexandra Keresztesi 1:48.005 Margaret Hogan/Kaitlyn McElroy 1:48.718
Women's K-1 200 metres: Carrie Johnson 41.803 Darisleydis Amador 41.840 Ameghino 42.685
Diving:
Men's 10 metre platform: Iván García 553.80 points Rommel Pacheco 508.20 Sebastián Villa 471.05
Women's synchronized 3 metre springboard: Paola Espinosa/Laura Sánchez 338.70 points Jennifer Abel/Émilie Heymans 336.30 Kassidy Cook/Cassidy Krug 319.50
Equestrian:
Individual jumping: Christine McCrea 0.88 penalties Beezie Madden 1.00 Bernardo Alves 2.09
Fencing:
Men's team sabre:
Women's team épée:
Field hockey:
Men's tournament:
Argentina qualify for the 2012 Olympics.
Judo:
Women's 48 kg: Paula Pareto Dayaris Mestre Angela Woosley & Sarah Menezes
Women's 52 kg: Yanet Bermoy Érika Miranda Angelica Delgado & Yulieth Sánchez
Men's 60 kg: Felipe Kitadai Nabor Castillo Aaron Kunihiro & Juan Miguel Postigos
Karate:
Men's 67 kg: Daniel Viveros Dennis Novo Daniel Carrillo & Jean Carlos Peña
Men's 75 kg: Dionicio Gustavo Thomas Scott Lester Zamora & David Dubó
Women's 55 kg: Shannon Nishi Karina Díaz Valéria Kumizaki & Jessy Reyes
Women's 61 kg: Bertha Gutiérrez Alexandra Grande Daniela Suárez & Marisca Verspaget
Volleyball:
Men's tournament:
Water polo:
Men's tournament:
United States qualify for the 2012 Olympics.
Rugby league
Four Nations in England and Wales:
Round one in Leigh: 42–4
Autumn International Series in Perpignan, France: 44–10
Rugby union
Currie Cup Final in Johannesburg: 42–16
The Golden Lions win the title for the tenth time.
Short track speed skating
World Cup 2 in Saguenay, Canada:
Women's 500m (1): Marianne St-Gelais 44.246 Martina Valcepina 44.511 Liu Qiuhong 44.548
Standings (after 2 of 8 events): (1) St-Gelais 2000 points (2) Valcepina 1600 (3) Liu 968
Women's 1500m: Arianna Fontana 2:27.806 Lee Eun-Byul 2:28.896 Cho Ha-Ri 2:28.932
Standings (after 3 of 8 events): (1) Lee 2240 points (2) Katherine Reutter 2000 (3) Valérie Maltais 1312
Men's 500m (1): Olivier Jean 41.874 Charles Hamelin 41.976 Vladimir Grigorev 42.040
Standings (after 2 of 8 events): (1) Hamelin 1600 points (2) Jon Eley 1512 (3) Jean 1000
Men's 1500m: Noh Jin-Kyu 2:17.925 Kwak Yoon-Gy 2:18.008 Yuzo Takamido 2:18.210
Standings (after 3 of 8 events): (1) Noh 2000 points (2) Kwak 1600 (3) Paul Herrmann 1056
Snowboarding
World Cup in London, United Kingdom:
Big Air: Janne Korpi 184.0 points Seppe Smits 182.2 Joris Ouwerkerk 152.8
Freestyle Overall standings: (1) Korpi 2000 points (2) Dimi de Jong 860 (3) Zhang Yiwei & Smits 800
October 28, 2011 (Friday)
Baseball
World Series:
Game 7 in St. Louis: St. Louis Cardinals 6, Texas Rangers 2. Cardinals win series 4–3.
The Cardinals win the World Series for the first time since 2006, and the eleventh time overall.
The Rangers become the first team to lose consecutive World Series since the Atlanta Braves in 1991 and 1992.
Cardinals third baseman David Freese is named series MVP to become the sixth player to win World Series MVP and a League Championship Series MVP in the same postseason.
Cricket
Pakistan vs Sri Lanka in UAE:
2nd Test in Dubai, day 3: 239 & 88/1 (45 overs); 403 (141.1 overs). Sri Lanka trail by 76 runs with 9 wickets remaining.
Australia in South Africa:
3rd ODI in Durban: 222/6 (50 overs); 227/7 (47.3 overs). Australia win by 3 wickets; win 3-match series 2–1.
Multi-sport events
Pan American Games, day 15 in Guadalajara, Mexico:
Athletics:
Women's 3000 metres steeplechase: Sara Hall 10:03.16 Ángela Figueroa 10:10.14 Sabine Heitling 10:10.98
Women's 4 × 100 metres relay: (Ana Cláudia Lemos, Vanda Gomes, Franciela Krasucki, Rosângela Santos) 42.85 (Kenyanna Wilson, Barbara Pierre, Yvette Lewis, Chastity Riggien) 43.10 (Lina Flórez, Jennifer Padilla, Yomara Hinestroza, Norma González) 43.44
Women's 4 × 400 metres relay: (Aymée Martínez, Diosmely Peña, Susana Clement, Daisurami Bonne) 3:28.09 (Joelma Sousa, Geisa Coutinho, Bárbara de Oliveira, Jailma de Lima) 3:29.59 (Princesa Oliveros, Norma González, Evelis Aguilar, Jennifer Padilla) 3:29.94
Women's discus throw: Yarelys Barrios 66.40m Aretha Thurmond 59.53m Denia Caballero 58.63m
Women's triple jump: Caterine Ibargüen 14.92m Yargelis Savigne 14.36m Mabel Gay 14.28m
Men's 110 metres hurdles: Dayron Robles 13.10 Paulo Villar 13.27 Orlando Ortega 13.30
Men's 800 metres: Andy González 1:45.58 Kléberson Davide 1:45.75 Raidel Acea 1:46.23
Men's 3000 metres steeplechase: José Peña 8:48.19 Hudson de Souza 8:48.75 José Alberto Sánchez 8:49.75
Men's 4 × 100 metres relay: (Ailson Feitosa, Sandro Viana, Nilson André, Bruno de Barros) 38.18 (Jason Rogers, Antoine Adams, Delwayne Delaney, Brijesh Lawrence) 38.81 (Calesio Newman, Jeremy Dodson, Rubin Williams, Monzavous Edwards) 39.17
Men's 4 × 400 metres relay: (Noel Ruiz, Yoandri Betanzos, Omar Cisneros, William Collazo) 2:59.43 (Arismendy Peguero, Luguelín Santos, Yoel Tapia, Gustavo Cuesta) 3:00.44 (Arturo Ramírez, Alberto Aguilar, José Acevedo, Omar Longart) 3:00.82
Men's javelin throw: Guillermo Martínez 87.20m Cyrus Hostetler 82.24m Braian Toledo 79.53m
Men's pole vault: Lázaro Borges 5.80m Jeremy Scott 5.60m Giovanni Lanaro 5.50m
Boxing:
Men's Light flyweight: Joselito Velázquez Yosbany Veitia Jantony Ortiz & Juan Medina Herrad
Men's Bantamweight: Lázaro Alvárez Óscar Valdez Ángel Rodríguez & Robenílson Vieira de Jesus
Men's Light welterweight: Roniel Iglesias Valentino Knowles Éverton Lopes & Joelvis Hernández
Men's Middleweight: Emilio Correa Jaime Cortez Juan Carlos Rodríguez & Brody Blair
Men's Heavyweight: Lenier Pero Julio Castillo Yamil Peralta & Anderson Emmanuel
Women's Flyweight: Mary Spencer Yenebier Guillén Pamela Benavídez & Karlha Magliocco
Canoeing:
Men's K-1 1000 metres: Jorge García 3:41.257 Daniel Dal Bo 3:43.038 Philippe Duchesneau 3:44.504
Men's C-1 1000 metres: Everardo Cristóbal 4:03.288 Reydel Ramos 4:03.973 Johnnathan Tafra 4:05.323
Men's K-2 1000 metres: Steven Jorens/Richard Dessureault-Dober 3:17.230 Reinier Torres/García 3:19.158 Pablo de Torres/Roberto Sallette 3:19.599
Men's C-2 1000 metres: Karel Aguilar Chacón/Serguey Torres 3:39.280 Erlon Silva/Ronilson Oliveira 3:40.482 Ronny Ratia/Anderson Ramos 3:40.990
Women's K-1 500 metres: Carrie Johnson 1:54.243 Émilie Fournel 1:54.900 Alexandra Keresztesi 1:55.764
Diving:
Men's synchronized 10 metre platform: Iván García/Germán Sánchez 479.88 points Jeinkler Aguirre/José Guerra 447.57 Kevin Geyson/Eric Sehn 399.93
Women's 3 metre springboard: Laura Sánchez 374.60 points Cassidy Krug 372.65 Paola Espinosa 356.20
Fencing:
Men's team foil:
Women's team sabre:
Field hockey:
Women's tournament:
United States qualify for the 2012 Olympics.
Football:
Men's tournament:
Gymnastics:
Men's horizontal bar: Paul Ruggeri 15.650 points Jossimar Calvo 14.825 Ángel Ramos 14.625
Men's parallel bars: Daniel Corral 15.525 points Jorge Giraldo , Luis Vargas & Ruggeri 14.825
Men's vault: Diego Hypólito 15.875 points Tomás González 15.587 Hugh Smith 15.575
Women's balance beam: Ana Sofía Gómez 14.175 points Kristina Vaculik 13.925 Daniele Hypólito 13.750
Women's floor: Ana Lago 13.800 points Mikaela Gerber 13.775 Hypólito 13.750
Judo:
Women's 57 kg: Yurisleidy Lupetey Rafaela Silva (judoka) Joliane Melançon & Hana Carmichael
Women's 63 kg: Yaritza Abel Karina Acosta Christal Ransom & Stéfanie Tremblay
Men's 66 kg: Leandro Cunha Kenneth Hashimoto Anyelo Gómez & Ricardo Valderrama
Men's 73 kg: Bruno Silva Alejandro Clara Ronald Girones & Nick Tritton
Karate:
Men's 60 kg: Andrés Rendón Norberto Sosa Douglas Brose & Miguel Soffia
Men's 84 kg: César Herrera Jorge Pérez Homero Morales & Alexandru Sorin
Women's 50 kg: Ana Villanueva Gabriela Bruna Jéssica Cândido & Cheili González
Women's 68 kg: Lucélia Ribeiro Yadira Lira Yoly Guillén & Yoandra Moreno
Water polo:
Women's tournament:
United States qualify for the 2012 Olympics.
Rugby league
Four Nations in England and Wales:
Round one in Warrington: 26–12
October 27, 2011 (Thursday)
Baseball
World Series:
Game 6 in St. Louis: St. Louis Cardinals 10, Texas Rangers 9 (F/11). Series tied 3–3.
Basketball
Euroleague Regular Season Matchday 2:
Group A:
Olympiacos 81–74 Fenerbahçe Ülker
SLUC Nancy 87–73 Bilbao Basket
Standings: Caja Laboral 2–0, SLUC Nancy, Bilbao Basket, Bennet Cantù, Olympiacos 1–1, Fenerbahçe Ülker 0–2.
Group C:
Real Madrid 85–78 EA7 Emporio Armani
Maccabi Tel Aviv 70–66 Partizan Mt:s Belgrade
Standings: Real Madrid 2–0, EA7 Emporio Armani, Anadolu Efes, Maccabi Tel Aviv, Spirou Charleroi 1–1, Partizan Mt:s Belgrade 0–2.
Group D:
Galatasaray Medical Park 64–68 UNICS Kazan
Montepaschi Siena 79–57 Union Olimpija Ljubljana
FC Barcelona Regal 88–61 Asseco Prokom Gdynia
Standings: FC Barcelona Regal, Montepaschi Siena 2–0, Galatasaray Medical Park, UNICS Kazan 1–1, Asseco Prokom Gdynia, Union Olimpija Ljubljana 0–2.
Cricket
Pakistan vs Sri Lanka in UAE:
2nd Test in Dubai, day 2: 239; 281/4 (99 overs; Azhar Ali 100). Pakistan lead by 42 runs with 6 wickets remaining in the 1st innings.
Football (soccer)
UEFA Women's Euro 2013 qualifying Matchday 4:
Group 2:
0–4
7–1
Standings (after 4 matches unless stated): Spain 9 points (3 matches), 6 (2), Romania 6, Kazakhstan 4, 3 (3), Turkey 1.
Group 3: 0–4
Standings (after 3 matches unless stated): 13 points (5 matches), 6, 4, 3 (2), Hungary 3 (4), Bulgaria 0.
Group 4: 2–2
Standings (after 4 matches unless stated): 12 points, 6 (3), Scotland 4 (2), Wales 1 (3), 0.
Group 5: 2–2
Standings (after 2 matches unless stated): Finland, , , Belarus 4 points, 0 (4).
Group 6:
3–3
0–0
Standings (after 3 matches unless stated): Netherlands 7 points, England 5, 4, Croatia 1 (2), Slovenia 1.
MLS Cup Playoffs Play-in round: Colorado Rapids 1–0 Columbus Crew
Multi-sport events
Pan American Games, day 14 in Guadalajara, Mexico:
Athletics:
Men's 200 metres: Roberto Skyers 20.37 Lansford Spence 20.38 Bruno de Barros 20.45
Men's 400 metres hurdles: Omar Cisneros 47.99 Isa Phillips 48.82 Félix Sánchez 48.85
Men's 10,000 metres: Marílson Gomes dos Santos 29:00.64 Juan Carlos Romero 29:41.00 Giovani dos Santos 29:51.71
Men's high jump: Donald Thomas 2.32m Diego Ferrín 2.30m Víctor Moya 2.26m
Men's triple jump: Alexis Copello 17.21m Yoandri Betanzos 16.54m Jefferson Sabino 16.51m
Women's 200 metres: Ana Cláudia Lemos 22.76 Simone Facey 22.86 Mariely Sánchez 23.02
Women's 1500 metres: Adriana Muñoz 4:26.09 Rosibel García 4:26.78 Malindi Elmore 4:27.57
Women's 5,000 metres: Marisol Romero 16:24.08 Cruz da Silva 16:29.75 Inés Melchor 16:41.50
Women's shot put: Misleydis González 18.57m Cleopatra Borel-Brown 18.46m Michelle Carter 18.09m
Women's javelin throw: Alicia DeShasier 58.01m Yainelis Ribeaux 56.21m Yanet Cruz 56.19m
Basque pelota:
Women's Paleta Rubber Pairs Trinkete: María García/Verónica Stele María Miranda/Camila Naviliat Ariana Cepeda/Rocio Guillén
Women's Frontenis Pairs 30m Fronton: Paulina Castillo/Guadalupe Hernández Lisandra Lima/Yasmary Medina Johanna Zair/Irina Podversich
Men's Mano Singles Trinkete: Heriberto López Darien Povea Roger Etchevers
Men's Mano Doubles 36m Fronton: Jorge Alcántara/Orlando Díaz José Huarte/Tony Huarte Dariel Leiva/Rubén Moya
Men's Mano Singles 36m Fronton: Fernando Medina Roberto Huarte Henry Despaigne
Men's Frontenis Pairs 30m Fronton: Alberto Rodríguez/Arturo Rodríguez Daniel Alonso/César Arocha Alexis Clementín/Maximiliano Alberdi
Bowling:
Men's individual: Santiago Mejía Chris Barnes Marcelo Suartz & Manuel Fernández
Women's individual: Liz Johnson Jennifer Park Caroline Lagrange & Karen Marcano
Canoeing:
Men's K-4 1000 metres: (Maikel Zulueta, Reinier Torres, Osvaldo Labrada, Jorge García) 3:01.061 (Steven Jorens, Richard Dessureault-Dober, Philippe Duchesneau, Connor Taras) 3:02.653 (Celso de Oliveira, Gilvan Ribeiro, Givago Ribeiro, Roberto Maheler) 3:02.821
Diving:
Men's 3 metre springboard: Yahel Castillo 529.45 points Julián Sánchez 480.65 César Castro 462.15
Women's synchronized 10 metre platform: Paola Espinosa/Tatiana Ortiz 326.31 points Meaghan Benfeito/Roseline Filion 318.66 Yaima Mena/Annia Rivera 269.28
Equestrian:
Team jumping: 2.90 penalties 11.58 13.24
Fencing:
Men's team épée:
Women's team foil:
Football:
Women's tournament:
Gymnastics:
Men's floor: Diego Hypólito 15.800 points Tomás González 15.625 Alexander Rodríguez 14.900
Men's pommel horse: Daniel Corral 15.300 points Jorge Giraldo 14.625 Jorge Peña 14.450
Men's rings: Brandon Wynn 15.625 points Arthur Zanetti 15.600 Chris Maestas 15.550
Women's uneven bars: Bridgette Caquatto 14.525 points Shawn Johnson 14.500 Elsa García & Marisela Cantú 13.625
Women's vault: Brandie Jay 14.337 points García 14.312 Catalina Escobar 14.162
Judo:
Women's 70 kg: Onix Cortés Yuri Alvear María Pérez & Maria Portela
Women's 78 kg: Kayla Harrison Catherine Roberge Yalennis Castillo & Mayra Aguiar
Men's 81 kg: Leandro Guilheiro Gadiel Miranda Emmanuel Lucenti & Antoine Valois
Men's 90 kg: Tiago Camilo Asley González Alexandre Emond & Isao Cárdenas
Karate:
Men's +84 kg: Ángel Aponte Alberto Ramírez Wellington Barbosa & Shaun Dhillon
Women's +68 kg: Maria Castellanos Xunashi Caballero Olivia Grant & Claudia Vera
Roller skating:
Men's 1,000 metres: Pedro Causil 1:25.941 Ezequiel Capellano 1:25.973 Jorge Reyes 1:26.239
Men's 10,000 metres: Jorge Bolaños 22 points Capellano 19 Reyes 10
Women's 1,000 metres: Yersy Puello 1:35.056 Sandra Buelvas 1:35.336 Melisa Bonnet 1:35.439
Women's 10,000 metres: Kelly Martínez 30 points Bonnet 23 Catherine Peñán 10
Weightlifting:
Women's +75 kg: Oliva Nieve 258 kg Yaniuska Espinoza 245 kg Tania Mascorro 244 kg
Men's 105 kg: Jorge Arroyo 395 kg Julio Luna 380 kg Donald Shankle 368 kg
Men's +105 kg: Fernando Reis 410 kg Yoel Morales 393 kg George Kobaladze 393 kg
October 26, 2011 (Wednesday)
Baseball
World Series:
Game 6 in St. Louis: Texas Rangers vs. St. Louis Cardinals — postponed to October 27 due to rain.
Basketball
Euroleague Regular Season Matchday 2:
Group A: Caja Laboral 81–69 Bennet Cantù
Standings: Caja Laboral 2–0, Bilbao Basket 1–0, Bennet Cantù 1–1, Fenerbahçe Ülker, SLUC Nancy, Olympiacos 0–1.
Group B:
CSKA Moscow 94–74 Brose Baskets
KK Zagreb 62–81 Panathinaikos
Standings: Panathinaikos, CSKA Moscow 2–0, Brose Baskets, Unicaja 1–1, Žalgiris Kaunas, KK Zagreb 0–2.
Group C: Anadolu Efes 79–80 Spirou Charleroi
Standings: Real Madrid, EA7 Emporio Armani 1–0, Spirou Charleroi, Anadolu Efes 1–1, Maccabi Tel Aviv, Partizan Mt:s Belgrade 0–1.
NCAA (Philippines) in Quezon City, Philippines:
Men's Finals: San Beda College 57, San Sebastián College-Recoletos 55. San Beda win best-of-3 series 2–0.
San Beda wins their fifth NCAA title in six years, and ties Letran College with the most number of men's titles with 16.
Cricket
Pakistan vs Sri Lanka in UAE:
2nd Test in Dubai, day 1: 239 (79 overs); 42/0 (9 overs). Pakistan trail by 197 runs with 10 wickets remaining in the 1st innings.
Football (soccer)
UEFA Women's Euro 2013 qualifying Matchday 4:
Group 1:
1–1
2–0
4–0
Standings (after 3 matches unless stated): Italy 9 points, Russia, Poland 6, Greece, Macedonia 1 (2), Bosnia and Herzegovina 0.
Group 3:
0–1
0–2
Standings (after 3 matches unless stated): Iceland 13 points (5 matches), Norway 6, Belgium 4, Northern Ireland 3 (2), 0 (2), 0.
Group 4: 5–0
Standings (after 4 matches unless stated): France 12 points, 6 (3), 3 (1), 0 (2), Israel 0.
Group 5: 3–1
Standings (after 1 match unless stated): , Slovakia 4 points (2 matches), , 3, Estonia 0 (4).
Group 7:
3–0
0–3
Standings (after 3 matches unless stated): Denmark 9 points, 4 (2), Austria 4, Portugal 3, Armenia 0.
Copa Sudamericana Round of 16 second leg (first leg scores in parentheses):
Universidad de Chile 1–0 (4–0) Flamengo. Universidad de Chile win 6–0 on points.
Vasco da Gama 8–3 (1–3) Aurora. 3–3 on points; Vasco da Gama win 9–6 on aggregate.
Libertad 2–0 (0–1) São Paulo. 3–3 on points; Libertad win 2–1 on aggregate.
AFC Champions League Semi-finals second leg (first leg scores in parentheses):
Jeonbuk Hyundai Motors 3–2 (2–1) Al-Ittihad. Jeonbuk Hyundai Motors win 5–3 on aggregate.
Al-Sadd 0–1 (2–0) Suwon Samsung Bluewings. Al-Sadd win 2–1 on aggregate.
MLS Cup Playoffs Play-in round: FC Dallas 0–2 New York Red Bulls
Multi-sport events
Pan American Games, day 13 in Guadalajara, Mexico:
Athletics:
Women's 100 metres hurdles: Yvette Lewis 12.82 Angela Whyte 13.09 Lina Flórez 13.09
Women's 400 metres hurdles: Princesa Oliveros 56.26 Lucy Jaramillo 56.95 Yolanda Osana 57.08
Women's 400 metres: Jennifer Padilla 51.53 Daisurami Bonne 51.69 Geisa Coutinho 51.87
Women's long jump: Maurren Maggi 6.94m Shameka Marshall 6.73m Caterine Ibargüen 6.63m
Women's high jump: Lesyani Mayor 1.89m Marielys Rojas 1.89m Romary Rifka 1.89m
Women's heptathlon: Lucimara da Silva 6133 points Yasmiany Pedroso 5710 Francia Manzanillo 5644
Men's 400 metres: Nery Brenes 44.65 Luguelín Santos 44.71 Ramon Miller 45.01
Men's 1500 metres: Leandro de Oliveira 3:53.44 Bayron Piedra 3:53.45 Eduar Villanueva 3:54.06
Men's hammer throw: Kibwe Johnson 79.63m Michael Mai 72.71m Noleysi Bicet 72.57m
Basque pelota:
Men's Paleta Rubber Pairs Trinkete: Facundo Andreasen/Sergio Villegas Carlos Buzzo/Enzo Cazzola Adrián Raya/Guillermo Verdeja
Men's Paleta Leather Pairs 36m Fronton: Rafael Fernández/Azuan Pérez Rodrigo Ledesma/Francisco Mendiburu Luciano Callarelli/Carlos Dorato
Men's Paleta Leather Pairs Trinkete: Cristian Andrés Algarbe/Jorge Villegas Pablo Baldizán/Gastón Dufau Frendy Fernández/Anderson Jardines
Men's Paleta Rubber Pairs 30m Fronton: Fernando Ergueta/Javier Nicosia Jesús Hurtado/Daniel Salvador Rodríguez José Fiffe/Jhoan Torreblanca
Canoeing:
Women's K-4 500 metres: (Kristin Ann Gauthier, Kathleen Fraser, Alexa Irvin, Una Lounder) 1:37.724 (Maricela Montemayor, Karina Alanís, Anais Abraham, Alicia Guluarte) 1:37.799 (Yulitza Meneses, Dayexi Gandarela, Darisleydis Amador, Yusmari Mengana) 1:39.105
Diving:
Women's 10 metre platform: Paola Espinosa 370.60 points Tatiana Ortiz 369.05 Meaghan Benfeito 358.20
Men's synchronized 3 metre springboard: Yahel Castillo/Julián Sánchez 457.32 points Troy Dumais/Kristian Ipsen 411.99 René Hernández/Jorge Pupo 384.33
Fencing:
Women's individual épée: Kelley Hurley Courtney Hurley Yamirka Rodríguez & Elida Agüero
Men's individual sabre: Philippe Beaudry Tim Morehouse Hernán Jansen & Joseph Polossifakis
Gymnastics:
Women's artistic individual all-around: Bridgette Caquatto 55.875 points Ana Sofía Gómez 55.425 Kristina Vaculik 54.775
Men's artistic individual all-around: Jossimar Calvo 86.400 points Jorge Hugo Giraldo 86.200 Tomás González 86.050
Judo:
Women's +78 kg: Idalys Ortiz Melissa Mojica Maria Suelen Altheman & Vanessa Zambotti
Men's 100 kg: Luciano Corrêa Oreydi Despaigne Cristian Schmidt & Sergio García
Men's +100 kg: Óscar Brayson Rafael da Silva Anthony Turner Jr. & Pablo Figueroa
Roller skating:
Men's 300 metres time-trial: Pedro Causil 24.802 Emanuelle Silva 25.102 Juan Cruz Araldi 25.703
Women's 300 metres time-trial: Yersy Puello 26.444 Maria Moya 26.807 Verónica Elías 27.414
Weightlifting:
Women's 69 kg: Mercedes Pérez 232 kg Cinthya Dominguez 226 kg Aremi Fuentes 221 kg
Women's 75 kg: Ubaldina Valoyes 250 kg María Fernanda Valdés 229 kg María Álvarez 228 kg
Men's 94 kg: Javier Vanega 370 kg Herbys Márquez 365 kg Eduardo Guadamud 365 kg
October 25, 2011 (Tuesday)
Basketball
Euroleague Regular Season Matchday 2:
Group B: Unicaja 85–78 (OT) Žalgiris Kaunas
Standings: Brose Baskets, Panathinaikos, CSKA Moscow 1–0, Unicaja 1–1, KK Zagreb 0–1, Žalgiris Kaunas 0–2.
Cricket
West Indies in Bangladesh:
1st Test in Chittagong, day 5: 350/9d & 119/3d (42 overs); 244 (68 overs; Elias Sunny 6/94) & 100/2 (22 overs). Match drawn; 2-match series tied 0–0.
England in India:
5th ODI in Kolkata: 271/8 (50 overs); 176 (37 overs). India win by 95 runs; win 5-match series 5–0.
New Zealand in Zimbabwe:
3rd ODI in Bulawayo: 328/5 (50 overs; Ross Taylor 119, Kane Williamson 100*); 329/9 (49.5 overs). Zimbabwe win by 1 wicket; New Zealand win 3-match series 2–1.
Football (soccer)
Copa Sudamericana Round of 16 second leg (first leg score in parentheses): Santa Fe 4–1 (1–1) Botafogo. Santa Fe win 4–1 on points.
League of Ireland Premier Division, matchday 35 (team in bold qualify for Champions League, teams in italics qualify for Europa League): UCD 1–2 Shamrock Rovers
Standings: Shamrock Rovers 74 points, Sligo Rovers 70, Derry City 67.
Shamrock win the title for the 17th time.
Multi-sport events
Pan American Games, day 12 in Guadalajara, Mexico:
Athletics:
Women's 100 metres: Rosângela Santos 11.22 Barbara Pierre 11.25 Shakera Reece 11.26
Women's 800 metres: Adriana Muñoz 2:04.08 Gabriela Medina 2:04.41 Rosibel García 2:04.45
Men's 100 metres: Lerone Clarke 10.01 Kim Collins 10.04 Emmanuel Callander 10.16
Men's long jump: Víctor Castillo 8.05m Daniel Pineda 7.97m David Registe 7.89m
Men's shot put: Dylan Armstrong 21.30m Carlos Véliz 20.76m Germán Lauro 20.41m
Men's decathlon: Leonel Suárez 8373 points Maurice Smith 8214 Yordanis García 8074
Baseball:
Men's tournament:
Basketball:
Women's tournament:
Bowling:
Women's pairs: Liz Johnson/Kelly Kulick 5257 points Sandra Góngora/Miriam Zetter 4929 Anggie Ramírez/María Rodríguez 4851
Men's pairs: Bill O'Neill/Chris Barnes 5211 points José Lander/Amleto Monacelli 5018 Santiago Mejía/Jaime Andrés Gómez 4856
Fencing:
Women's individual sabre: Mariel Zagunis Alejandra Benítez Yaritza Goulet & Eileen Grench
Men's individual foil: Alex Massialas Felipe Alvear Guilherme Toldo & Antonio Leal
Gymnastics:
Men's artistic team all-around: (Francisco Barretto, Petrix Barbosa, Péricles da Silva, Diego Hypólito, Arthur Zanetti, Sergio Sasaki) 346.100 points (Rafael Morales, Ángel Ramos, Tommy Ramos, Luis Rivera, Alexander Rodríguez, Luis Vargas) 344.850 (Donothan Bailey, Christopher Maestas, Tyler Mizoguchi, Sho Nakamori, Paul Ruggeri, Brandon Wynn) 342.000
Racquetball:
Men's team: &
Women's team: &
Weightlifting:
Women's 63 kg: Christine Girard 238 kg Nísida Palomeque 235 kg Luz Acosta 230 kg
Men's 77 kg: Iván Cambar 338 kg Ricardo Flores 329 kg Chad Vaughn 326 kg
Men's 85 kg: Yoelmis Hernández 363 kg Carlos Andica 362 kg Kendrick Farris 348 kg
October 24, 2011 (Monday)
Baseball
World Series:
Game 5 in Arlington, Texas: Texas Rangers 4, St. Louis Cardinals 2. Rangers lead series 3–2.
Cricket
West Indies in Bangladesh:
1st Test in Chittagong, day 4: 350/9d (122.4 overs); 144/5 (51 overs). West Indies trail by 206 runs with 5 wickets remaining in the 1st innings.
Multi-sport events
Pan American Games, day 11 in Guadalajara, Mexico:
Athletics:
Men's 5000 metres: Juan Luis Barrios 14:13.77 Bayron Piedra 14:15.74 Joilson Silva 14:16.11
Men's discus throw: Jorge Fernández 65.58m Jarred Rome 61.71m Ronald Julião 61.70m
Women's 10,000 metres: Marisol Romero 34:07.24 Cruz da Silva 34:22.44 Yolanda Caballero 34:39.14
Women's hammer throw: Yipsi Moreno 75.62m Sultana Frizell 70.11m Amber Campbell 69.93m
Women's pole vault: Yarisley Silva 4.75m Fabiana Murer 4.70m Becky Holliday 4.30m
Fencing:
Women's individual foil: Lee Kiefer Nzingha Prescod Monica Peterson & Nataly Michel
Men's individual épée: Weston Kelsey Rubén Limardo Silvio Fernández & Reynier Henriquez
Gymnastics:
Women's artistic team all-around: (Bridgette Caquatto, Jessie Deziel, Brandie Jay, Shawn Johnson, Grace McLaughlin, Bridget Sloan) 219.750 points (Talia Chiarelli, Mikaela Gerber, Coralie Leblond, Christine Lee, Dominique Pegg, Kristina Vaculik) 217.450 (Marisela Cantú, Yessenia Estrada, Elsa García, Ana Estefania Lago, Alexa Moreno, Karla Salazar) 214.325
Handball:
Men's tournament:
Argentina qualify for the 2012 Olympics.
Roller skating:
Men's free skating: Marcel Sturmer 134.20 points Daniel Arriola 129.80 Leonardo Parrado 124.80
Women's free skating: Elizabeth Soler 129.30 points Marisol Villarroel 123.70 Talitha Haas 122.70
Weightlifting:
Women's 53 kg: Yudelquis Contreras 206 kg Inmara Henríquez 189 kg Francia Peñuñuri 188 kg
Women's 58 kg: Alexandra Escobar 221 kg Jackelina Heredia 216 kg Lina Rivas 215 kg
Men's 69 kg: Israel José Rubio 318 kg Junior Sánchez 310 kg Doyler Sánchez 310 kg
Wrestling:
Men's Freestyle 60 kg: Franklin Gómez Guillermo Torres Fernando Iglesias & Yowlys Bonne
Men's Freestyle 74 kg: Jordan Burroughs Yunierki Blanco Matthew Gentry & Ricardo Roberty
Men's Freestyle 96 kg: Jake Varner Luis Vivenes Khetag Pliev & Juan Esteban Martínez
October 23, 2011 (Sunday)
Alpine skiing
Men's World Cup in Sölden, Austria:
Giant Slalom: Ted Ligety 2:22.00 Alexis Pinturault 2:22.29 Philipp Schörghofer 2:22.51
Auto racing
Sprint Cup Series – Chase for the Sprint Cup:
Good Sam Club 500 in Talladega, Alabama: (1) Clint Bowyer (Chevrolet; Richard Childress Racing) (2) Jeff Burton (Chevrolet; Richard Childress Racing) (3) Dave Blaney (Chevrolet; Tommy Baldwin Racing)
Drivers' championship standings (after 32 of 36 races): (1) Carl Edwards (Ford; Roush Fenway Racing) 2237 points (2) Matt Kenseth (Ford; Roush Fenway Racing) 2223 (3) Brad Keselowski (Dodge; Penske Racing) 2219
V8 Supercars:
Gold Coast 600 in Surfers Paradise, Queensland (AUS unless stated):
Race 22: (1) Mark Winterbottom/Richard Lyons (Ford Performance Racing; Ford FG Falcon) (2) Jamie Whincup/Sébastien Bourdais (Triple Eight Race Engineering; Holden VE Commodore) (3) Lee Holdsworth/Simon Pagenaud (Garry Rogers Motorsport; Holden VE Commodore)
Drivers' championship standings (after 22 of 28 races): (1) Whincup 2517 points (2) Craig Lowndes (Triple Eight Race Engineering; Holden VE Commodore) 2374 (3) Shane van Gisbergen (Stone Brothers Racing; Ford FG Falcon) 2009
World Rally Championship:
Rally de España in Salou, Spain: (1) Sébastien Loeb /Daniel Elena (Citroën DS3 WRC) (2) Mikko Hirvonen /Jarmo Lehtinen (Ford Fiesta RS WRC) (3) Jari-Matti Latvala /Miikka Anttila (Ford Fiesta RS WRC)
Drivers' championship standings (after 12 of 13 rallies): (1) Loeb 222 points (2) Hirvonen 214 (3) Sébastien Ogier (Citroën DS3 WRC) 193
World Touring Car Championship:
Race of Japan in Suzuka:
Race 1: (1) Alain Menu (Chevrolet; Chevrolet Cruze) (2) Robert Huff (Chevrolet; Chevrolet Cruze) (3) Michel Nykjær (Sunred Engineering; SEAT León)
Race 2: (1) Tom Coronel (ROAL Motorsport; BMW 320 TC) (2) Yvan Muller (Chevrolet; Chevrolet Cruze) (3) Huff
Drivers' championship standings (after 10 of 12 rounds): (1) Muller 363 points (2) Huff 350 (3) Menu 290
Badminton
BWF Super Series:
Denmark Super Series Premier in Odense (CHN unless stated):
Men's singles: Chen Long def. Lee Chong Wei 21–15, 21–18
Women's singles: Wang Xin def. Wang Yihan 21–14, 23–21
Men's doubles: Jung Jae-sung /Lee Yong-dae def. Cai Yun/Fu Haifeng 21–16, 21–17
Women's doubles: Wang Xiaoli/Yu Yang def. Tian Qing/Zhao Yunlei 22–20, 21–16
Mixed doubles: Joachim Fischer Nielsen /Christinna Pedersen def. Xu Chen/Ma Jin 22–20, 21–16
Baseball
World Series:
Game 4 in Arlington, Texas: Texas Rangers 4, St. Louis Cardinals 0. Series tied 2–2.
Cricket
West Indies in Bangladesh:
1st Test in Chittagong, day 3: 255/4 (91 overs); . No play due to rain.
England in India:
4th ODI in Mumbai: 220 (46.1 overs); 223/4 (40.1 overs). India win by 6 wickets; lead 5-match series 4–0.
Australia in South Africa:
2nd ODI in Port Elizabeth: 303/6 (50 overs); 223 (50 overs). South Africa win by 80 runs; 3-match series tied 1–1.
Equestrianism
Show jumping – World Cup Western European League:
2nd competition in Helsinki (CSI 5*-W): Pius Schwizer on Carlina Maikel van der Vleuten on Verdi Malin Baryard-Johnsson on Reveur de Hurtebise
Standings (after 2 competitions): (1) Schwizer 40 points (2) van der Vleuten 26 (3) Angelica Augustsson 18
Figure skating
ISU Grand Prix:
Skate America in Ontario, California, United States:
Pairs: Aliona Savchenko/Robin Szolkowy 183.98 points Zhang Dan/Zhang Hao 178.66 Kirsten Moore-Towers/Dylan Moscovitch 177.43
Ladies: Alissa Czisny 177.48 points Carolina Kostner 177.35 Viktoria Helgesson 145;75
Football (soccer)
UEFA Women's Euro 2013 qualifying Matchday 3:
Group 2: 3–2
Standings (after 3 matches unless stated): Spain, 6 points (2 matches), 4, Switzerland, 3, 1.
A Lyga, matchday 31 (team in bold qualify for Champions League, team in italics qualify for Europa League):
Tauras 0–1 Ekranas
Sūduva 2–0 Žalgiris
Standings: Ekranas 76 points, Žalgiris 69, Sūduva 61.
Ekranas win the title for the fourth successive time and seventh time overall.
Premier League, matchday 29 (team in bold qualify for Champions League):
Neman Grodno 2–2 Gomel
Dinamo Minsk 3–2 Shakhtyor
BATE Borisov 4–2 Torpedo Zhodino
Standings: BATE Borisov 61 points, Shakhtyor 49, Gomel 47, Dinamo Minsk 46.
BATE win the title for the sixth successive time and a record eighth time overall.
Golf
PGA Tour:
Fall Series: Children's Miracle Network Hospitals Classic in Lake Buena Vista, Florida:
Winner: Luke Donald 271 (−17)
Donald wins his fourth PGA Tour title.
European Tour:
Castelló Masters in Castellón, Spain:
Winner: Sergio García 257 (−27)
García wins the tournament for the second time, for his ninth European Tour title and first since 2008.
LPGA Tour:
Sunrise LPGA Taiwan Championship in Yangmei, Taoyuan:
Winner: Yani Tseng 272 (−16)
Tseng wins her seventh title of the year, and twelfth of her career.
Motorcycle racing
Moto GP:
Malaysian Grand Prix in Sepang, Malaysia:
MotoGP: Race cancelled
Marco Simoncelli is killed after an accident on the second lap of the race, which was stopped and later abandoned.
Riders' championship standings (after 17 of 18 races): (1) Casey Stoner (Honda) 325 points (2) Jorge Lorenzo (Yamaha) 260 (3) Andrea Dovizioso (Honda) 212
Moto2: (1) Thomas Lüthi (Suter) (2) Stefan Bradl (Kalex) (3) Pol Espargaró (FTR)
Riders' championship standings (after 16 of 17 races): (1) Bradl 274 points (2) Marc Márquez (Suter) 251 (3) Andrea Iannone (Suter) 172
125cc: (1) Maverick Viñales (Aprilia) (2) Sandro Cortese (Aprilia) (3) Johann Zarco (Derbi)
Riders' championship standings (after 16 of 17 races): (1) Nicolás Terol (Aprilia) 282 points (2) Zarco 262 (3) Cortese 225
Multi-sport events
Pan American Games, day 10 in Guadalajara, Mexico:
Athletics:
Men's 20 kilometres walk: Erick Barrondo 1:21:51 James Rendón 1:22:46 Luis Fernando López 1:22:51
Women's 20 kilometres walk: Jamy Franco 1:32:38 Mirna Ortíz 1:33:37 Ingrid Hernández 1:34:06
Women's marathon: Adriana da Silva 2:36:37 Madaí Pérez 2:38:03 Gladys Tejeda 2:42:09
Equestrian:
Individual eventing: Jessica Phoenix 43.90 penalties Hannah Burnett 45.20 Bruce Davidson 48.90
Team eventing: 138.60 penalties 172.50 209.80
Handball:
Women's tournament:
Brazil qualify for the 2012 Olympics.
Sailing:
Women's sailboard: Patricia Freitas Demita Vega Farrah Hall
Women's Laser Radial class: Cecilia Saroli Tania Calles Paige Railey
Men's sailboard: Ricardo Santos Mariano Reutemann David Mier
Men's Laser class: Julio Alsogaray Matias Del Solar Juan Maegli
Sunfish class: Matheus Dellangnello Paul Foerster Francisco Renna
Snipe class:
Lightning class:
Hobie 16 class:
J/24 class:
Softball:
Women's tournament:
Triathlon:
Men's individual: Reinaldo Colucci 1:48:02 Manuel Huerta 1:48:09 Brent McMahon 1:48:23
Women's individual: Sarah Haskins 1:57:37 Bárbara Riveros Díaz 2:00:23 Pamella Nascimento 2:00:32
Water skiing:
Women's tricks: Whitney McClintock 8390 points María Linares 7400 Regina Jaquess 6090
Women's slalom: Jaquess 39.00 points McClintock 38.50 Karen Stevens 31.50
Women's jump: Jaquess 50.60 points McClintock 50.50 Stevens 41.10
Men's tricks: Javier Andrés Julio 10,140 points Jason McClintock 9880 Felipe Miranda 9430
Men's slalom: Jonathan Travers 44.00 points McClintock 40.50 Carlos Lamadrid 39.00
Men's jump: Freddy Krueger 64.90 points Rodrigo Miranda 64.50 Felipe Miranda 62.70
Weightlifting:
Women's 48 kg: Lely Burgos 170 kg Betsi Rivas 169 kg Katherine Mercado 165 kg
Men's 56 kg: Sergio Álvarez Boulet 267 kg Sergio Rada 266 kg José Lino Montes 262 kg
Men's 62 kg: Óscar Figueroa 312 kg Jesús López 296 kg Diego Salazar 292 kg
Wrestling:
Men's Freestyle 55 kg: Juan Ramírez Beltré Obenson Blanc Steven Takahashi & Juan Carlos Valverde
Men's Freestyle 66 kg: Liván López Pedro Soto Teyon Ware & Yoan Blanco
Men's Freestyle 84 kg: Jacob Herbert Humberto Arencibia Jeffrey Adamson & José Díaz
Men's Freestyle 120 kg: Tervel Dlagnev Sunny Dhinsa Disney Rodríguez & Carlos Félix
Rugby union
World Cup in New Zealand:
Final in Auckland: 8–7
The All Blacks repeat their win over France in the 1987 Final and win the title for the second time.
Short track speed skating
World Cup in Salt Lake City, United States:
Men's 500m: Jon Eley 41.558 Charles Hamelin 41.615 Evgeny Kozulin 41.751
Men's 1500m (2): Noh Jin-Kyu 2:14.238 Kwak Yoon-Gy 2:14.295 J. R. Celski 2:14.343
Standings (after 2 of 8 races): (1) Noh & Hamelin 1000 points (3) Kwak & Lee Ho-Suk 800
Men's 5000m relay: (Michael Gilday, Charles Hamelin, François Hamelin, François-Louis Tremblay) 6:49.723 (Eley, Richard Shoebridge, Paul Stanley, Jack Whelbourne) 6:50.277 (Kwak, Lee Ho-Suk, Lee Jung-Su, Noh) 6:50.311
Women's 500m: Marianne St-Gelais 44.382 Martina Valcepina 45.645 Jessica Smith 50.160
Women's 1500m (2): Katherine Reutter 2:24.005 Lee Eun-Byul 2:24.032 Li Jianrou 2:24.124
Standings (after 2 of 8 races): (1) Reutter 2000 points (2) Lee 1440 (3) Valérie Maltais 800
Women's 3000m relay: (Fan Kexin, Li, Liu Qiuhong, Xiao Han) 4:12.774 (Cho Ha-Ri, Kim Dam Min, Lee, Son Soo-Min) 4:13.294 (Ekaterina Baranok, Olga Belikova, Tatiana Borodulina, Nina Yevteyeva) 4:18.694
Snooker
Players Tour Championship – Event 8: Alex Higgins International Trophy in Killarney, Ireland:
Final: Neil Robertson 4–1 Judd Trump
Robertson wins his ninth professional title.
Order of Merit (after 8 of 12 events): (1) Robertson 25,600 (2) Ronnie O'Sullivan 24,600 (3) Trump 18,900
Tennis
ATP World Tour:
If Stockholm Open in Stockholm, Sweden:
Final: Gaël Monfils def. Jarkko Nieminen 7–5, 3–6, 6–2
Monfils wins his fourth ATP Tour title.
Kremlin Cup in Moscow, Russia:
Final: Janko Tipsarević def. Viktor Troicki 6–4, 6–2
Tipsarević wins his second ATP Tour title.
WTA Tour:
Kremlin Cup in Moscow, Russia:
Final: Dominika Cibulková def. Kaia Kanepi 3–6, 7–6(1), 7–5
Cibulková wins her first WTA Tour title.
BGL Luxembourg Open in Luxembourg City, Luxembourg:
Final: Victoria Azarenka def. Monica Niculescu 6–2, 6–2
Azarenka wins her eighth WTA Tour title.
October 22, 2011 (Saturday)
Alpine skiing
Women's World Cup in Sölden, Austria:
Giant Slalom: Lindsey Vonn 2:24.43 Viktoria Rebensburg 2:24.47 Elisabeth Görgl 2:24.83
Vonn becomes the fifth woman to win a World Cup race in all five disciplines.
Auto racing
V8 Supercars:
Gold Coast 600 in Surfers Paradise, Queensland (AUS unless stated):
Race 21: (1) Jamie Whincup/Sébastien Bourdais (Triple Eight Race Engineering; Holden VE Commodore) (2) Will Davison/Mika Salo (Ford Performance Racing; Ford FG Falcon) (3) Mark Winterbottom/Richard Lyons (Ford Performance Racing; Ford FG Falcon)
Drivers' championship standings (after 21 of 28 races): (1) Whincup 2379 points (2) Craig Lowndes (Triple Eight Race Engineering; Holden VE Commodore) 2329 (3) Shane van Gisbergen (Stone Brothers Racing; Ford FG Falcon) 1952
Baseball
World Series:
Game 3 in Arlington, Texas: St. Louis Cardinals 16, Texas Rangers 7. Cardinals lead series 2–1.
Cardinals first baseman Albert Pujols becomes only the third player to hit three home runs in a World Series game, joining Babe Ruth (1926, Game 4 & 1928, Game 4) and Reggie Jackson (1977, Game 6).
Cricket
Pakistan vs Sri Lanka in UAE:
1st Test in Abu Dhabi, day 5: 197 & 483 (168 overs; Kumar Sangakkara 211, Prasanna Jayawardene 120); 511/6d & 21/1 (10 overs). Match drawn; 3-match series tied 0–0.
West Indies in Bangladesh:
1st Test in Chittagong, day 2: 255/4 (91 overs); . No play due to rain.
New Zealand in Zimbabwe:
2nd ODI in Harare: 259/8 (50 overs; Brendan Taylor 107*); 261/6 (48.2 overs; Martin Guptill 105). New Zealand win by 4 wickets; lead 3-match series 2–0.
Figure skating
ISU Grand Prix:
Skate America in Ontario, California, United States:
Men: Michal Březina 216.00 points Kevin van der Perren 212.48 Takahiko Kozuka 212.09
Ice Dance: Meryl Davis/Charlie White 178.07 points Nathalie Péchalat/Fabian Bourzat 156.29 Isabella Tobias/Deividas Stagniūnas 132.58
Football (soccer)
UEFA Women's Euro 2013 qualifying Matchday 3:
Group 1:
4–1
0–9
2–0
Standings (after 2 matches unless stated): Italy, Russia 6 points, Poland 3, Greece 0 (1), Bosnia and Herzegovina 0, Macedonia 0 (1).
Group 2:
0–0
0–3
Standings (after 3 matches unless stated): Germany 6 points (2 matches), Kazakhstan 4, 3 (1), 3 (2), Romania 3, Turkey 1.
Group 3:
0–1
0–1
Standings (after 2 matches unless stated): Iceland 10 points (4 matches), 4, 3, Northern Ireland 3 (1), Bulgaria 0, Hungary 0 (3).
Group 4:
2–0
1–4
Standings (after 3 matches unless stated): France 9 points, Republic of Ireland 6, 3 (1), Wales 0 (2), Israel 0.
Group 5:
0–0
6–0
Standings (after 1 match unless stated): Ukraine 4 points (2 matches), Finland, 3, Slovakia 1, Estonia 0 (3).
Group 6:
0–3
1–2
Standings (after 2 matches unless stated): Netherlands 6 points, 4, Serbia 4 (3), Croatia 0 (1), Slovenia 0.
Group 7:
1–0
3–0
Standings (after 2 matches): Denmark 6 points, Czech Republic 4, Portugal 3, Austria 1, 0.
2012 CAF Women's Pre-Olympic Tournament Final Round second leg (first leg score in parentheses): 2–1 (1–2) . 3–3 on aggregate; Cameroon win 4–3 on penalties, and qualify for the 2012 Olympics.
Premier League, matchday 26 (team in bold qualify for Champions League):
Mika 1–0 Gandzasar
Ararat 1–2 Ulisses
Shirak 0–0 Pyunik
Standings: Ulisses 52 points, Gandzasar, Pyunik 42.
Ulisses win the title for the first time.
Horse racing
Cox Plate in Melbourne: Pinker Pinker (trainer: Greg Eurell, jockey: Craig Williams) Jimmy Choux (trainer: John Bary, jockey: Jonathan Riddell) Rekindled Interest (trainer: Jim Conlan, jockey: Dwayne Dunn)
Multi-sport events
Pan American Games, day 9 in Guadalajara, Mexico:
Archery:
Men's individual: Brady Ellison Crispin Duenas Daniel Pineda
Women's individual: Alejandra Valencia Miranda Leek Aída Román
Beach volleyball:
Men's tournament: Alison Cerutti/Emanuel Rego Igor Hernández/Farid Mussa Santiago Etchegaray/Pablo Suárez
Cycling:
Men's road race: Marc de Maar 3:40:53 Miguel Ubeto 3:40:53 Arnold Alcolea 3:41:48
Women's road race (all CUB): Arlenis Sierra 2:18:10 Yumari González 2:18:23 Yudelmis Domínguez 2:18:23
Racquetball:
Women's singles: Paola Longoria Rhonda Rajsich Cheryl Gudinas & María Vargas
Women's doubles: Samantha Salas/Longoria Aimee Ruiz/Rajsich Angela Grisar/Carla Muñoz & Maria Córdova/Maria Muñoz
Men's singles: R. O. Carson Gilberto Mejía Álvaro Beltrán & Vincent Gagnon
Men's doubles: Javier Moreno/Beltrán Jorge Hirsekorn/César Castillo Kris Odegard/Tim Landeryou & Chris Crowther/Shane Vanderson
Shooting:
Men's 25 metre rapid fire pistol: Emil Milev 603 points Juan Pérez 591 Franco Di Mauro 590
Men's skeet: Vincent Hancock 147 points Guillermo Torres 145 Juan Miguel Rodríguez 142
Women's 50 metre rifle three positions: Dianelys Pérez 671.6 points Eglis de la Cruz 670.3 Sarah Beard 667.4
Swimming:
Men's marathon 10 kilometres: Richard Weinberger 1:57:31.0 Arthur Frayler 1:57:31.3 Guillermo Bertola 1:57:33.9
Women's marathon 10 kilometres: Cecilia Biagioli 2:04:11.5 Poliana Okimoto 2:05:51.3 Christine Jennings 2:05:52.2
Tennis:
Men's singles: Robert Farah Maksoud Rogério Dutra da Silva Víctor Estrella
Men's doubles: Juan Sebastián Cabal/Farah Maksoud Julio César Campozano/Roberto Quiroz Nicholas Monroe/Greg Ouellette
Water skiing:
Women's overall: Regina Jaquess 2955.7 points Whitney McClintock 2809.6 Karen Stevens 1862.8
Men's wakeboard: Andrew Adkison 80.00 points Aaron Rathy 72.67 Marcelo Giardi 65.90
Men's overall: Javier Andrés Julio 2870.7 points Felipe Miranda 2800.8 Rodrigo Miranda 2591.1
Wrestling:
Women's Freestyle 48 kg: Carol Huynh Clarissa Chun Carolina Castillo & Patricia Bermúdez
Women's Freestyle 55 kg: Helen Maroulis Tonya Verbeek Joice da Silva & Lissette Antes
Women's Freestyle 63 kg: Katerina Vidiaux Elena Pirozhkov Luz Vázquez & Sandra Roa
Women's Freestyle 72 kg: Lisset Hechevarría Aline Ferreira Jaramit Weffer & Elsa Sánchez
Short track speed skating
World Cup in Salt Lake City, United States:
Men's 1000m: Kwak Yoon-Gy 1:25.996 Noh Jin-Kyu 1:26.596 François-Louis Tremblay 1:26.869
Men's 1500m (1): Charles Hamelin 2:16.630 Lee Ho-Suk 2:16.842 Lee Jung-Su 2:17.021
Women's 1000m: Yui Sakai 1:31.260 Lana Gehring 1:31.278 Alyson Dudek 1:31.494
Women's 1500m (1): Katherine Reutter 2:24.433 Valérie Maltais 2:24.519 Lee Eun-Byul 2:24.606
October 21, 2011 (Friday)
Basketball
Euroleague, Regular Season Matchday 1:
Group A: Bilbao Basket 76–61 Olympiacos
Cricket
Pakistan vs Sri Lanka in UAE:
1st Test in Abu Dhabi, day 4: 197 & 298/5 (101 overs; Kumar Sangakkara 161*); 511/6d. Sri Lanka trail by 16 runs with 5 wickets remaining.
West Indies in Bangladesh:
1st Test in Chittagong, day 1: 255/4 (91 overs); .
Multi-sport events
Pan American Games, day 8 in Guadalajara, Mexico:
Archery:
Men's team:
Women's team:
Beach volleyball:
Women's tournament: Larissa França/Juliana Felisberta Mayra García/Bibiana Candelas Yarleen Santiago/Yamileska Yantín
Cycling:
Men's BMX: Connor Fields 34.245 Nick Long 34.907 Andrés Jiménez 35.323
Women's BMX: Mariana Pajón 40.118 Arielle Martin 42.659 María Díaz 42.971
Shooting:
Men's 50 metre rifle three positions: Jason Parker 1249.1 points Matthew Wallace 1247.0 Bruno Heck 1245.0
Women's skeet: Kim Rhode 98 points Francisca Crovetto 89 Melisa Gil 88
Squash:
Men's team: &
Women's team: &
Swimming:
Women's 50 metre freestyle: Lara Jackson 25.09 Graciele Herrmann 25.23 Madison Kennedy 25.24
Women's 4 × 100 metre medley relay: (Rachel Bootsma, Ann Chandler, Claire Donahue, Amanda Kendall) 4:01.00 (Gabrielle Soucisse, Ashley McGregor, Erin Miller, Jen Beckberger) 4:07.04 (Fabíola Molina, Tatiane Sakemi, Dayanara de Paula, Tatiana Lemos) 4:07.12
Men's 200 metre backstroke: Thiago Pereira 1:57.19 Omar Pinzón 1:58.31 Ryan Murphy 1:58.50
Men's 4 × 100 metre medley relay: (Guilherme Guido, Felipe França Silva, Gabriel Mangabeira, César Cielo) 3:34.58 (Eugene Godsoe, Marcus Titus, Chris Brady, Scot Robison) 3:37.17 (Federico Grabich, Lucas Peralta, Marcos Barale, Lucas Del Piccolo) 3:44.51
Synchronized swimming:
Women's team: (Marie-Pier Boudreau Gagnon, Jo-Annie Fortin, Chloé Isaac, Stéphanie Leclair, Tracy Little, Élise Marcotte, Karine Thomas, Valérie Welsh) 190.388 points (Morgan Fuller, Megan Hansley, Mary Killman, Mariya Koroleva, Michelle Moore, Leah Pinette, Lyssa Wallace, Alison Williams) 179.588 (Giovana Stephan, Joseane Costa, Lara Teixeira, Lorena Molinos, Maria Bruno, Maria Pereira, Nayara Figueira, Pamela Nogueira, Jéssica Gonçalves) 176.425
Tennis:
Women's singles: Irina Falconi Monica Puig Christina McHale
Women's doubles: María Irigoyen/Florencia Molinero Falconi/McHale Catalina Castaño/Mariana Duque
Mixed doubles: Ana Paula de la Peña/Santiago González Andrea Koch Benvenuto/Guillermo Rivera Aránguiz Ana Clara Duarte/Rogério Dutra da Silva
Wrestling:
Men's Greco-Roman 60 kg: Luis Liendo Joe Betterman Hanser Meoque & Jansel Ramírez
Men's Greco-Roman 74 kg: Jorgisbell Álvarez Ben Provisor Juan Ángel Escobar & Hansel Mercedes
Men's Greco-Roman 96 kg: Yunior Estrada Raúl Andrés Angulo Yuri Maier & Erwin Caraballo
Rugby union
World Cup in New Zealand:
Bronze Final in Auckland: 18–21
October 20, 2011 (Thursday)
Baseball
World Series:
Game 2 in St. Louis: Texas Rangers 2, St. Louis Cardinals 1. Series tied 1–1.
Major League Baseball awards:
Roberto Clemente Award: David Ortiz, Boston Red Sox
Basketball
Euroleague, Regular Season Matchday 1:
Group B:
Panathinaikos 98–77 Unicaja
Brose Baskets 96–65 KK Zagreb
Group C:
Partizan Mt:s Belgrade 73–84 Anadolu Efes
Spirou Charleroi 76–100 Real Madrid
EA7 Emporio Armani 89–82 Maccabi Tel Aviv
Group D: Union Olimpija Ljubljana 64–86 FC Barcelona Regal
Cricket
Pakistan vs Sri Lanka in UAE:
1st Test in Abu Dhabi, day 3: 197 & 47/1 (11 overs); 511/6d (174.4 overs; Taufeeq Umar 236). Sri Lanka trail by 267 runs with 9 wickets remaining.
England in India:
3rd ODI in Mohali: 298/4 (50 overs); 300/5 (49.2 overs). India win by 5 wickets; lead 5-match series 3–0.
New Zealand in Zimbabwe:
1st ODI in Harare: 231/6 (50 overs; Brendan Taylor 128*); 232/1 (43.3 overs; Rob Nicol 108*). New Zealand win by 9 wickets; lead 3-match series 1–0.
Nicol becomes the seventh player to hit a century in his first ODI appearance.
Football (soccer)
UEFA Europa League group stage Matchday 3 (team in bold advances to Round of 32):
Group A:
Tottenham Hotspur 1–0 Rubin Kazan
P.A.O.K. 2–1 Shamrock Rovers
Standings (after 3 matches): Tottenham Hotspur 7 points, P.A.O.K. 5, Rubin Kazan 4, Shamrock Rovers 0.
Group B:
Standard Liège 0–0 Vorskla Poltava
Hannover 96 2–2 Copenhagen
Standings (after 3 matches): Standard Liège, Hannover 96 5 points, Copenhagen 4, Vorskla Poltava 1.
Group C:
Rapid București 0–1 Legia Warsaw
Hapoel Tel Aviv 0–1 PSV Eindhoven
Standings (after 3 matches): PSV Eindhoven 9 points, Legia Warsaw 6, Rapid București 3, Hapoel Tel Aviv 0.
Group D:
Sporting CP 2–0 Vaslui
Zürich 1–1 Lazio
Standings (after 3 matches): Sporting CP 9 points, Lazio, Vaslui, Zürich 2.
Group E:
Stoke City 3–0 Maccabi Tel Aviv
Dynamo Kyiv 1–0 Beşiktaş
Standings (after 3 matches): Stoke City 7 points, Dynamo Kyiv 5, Beşiktaş 3, Maccabi Tel Aviv 1.
Group F:
Athletic Bilbao 2–2 Red Bull Salzburg
Slovan Bratislava 0–0 Paris Saint-Germain
Standings (after 3 matches): Athletic Bilbao 7 points, Paris Saint-Germain, Red Bull Salzburg 4, Slovan Bratislava 1.
Group G:
Malmö FF 1–4 Metalist Kharkiv
AZ 2–2 Austria Wien
Standings (after 3 matches): Metalist Kharkiv 7 points, AZ 5, Austria Wien 4, Malmö FF 0.
Group H:
Maribor 1–1 Braga
Club Brugge 1–2 Birmingham City
Standings (after 3 matches): Birmingham City, Club Brugge 6 points, Braga 4, Maribor 1.
Group I:
Rennes 1–1 Celtic
Udinese 2–0 Atlético Madrid
Standings (after 3 matches): Udinese 7 points, Atlético Madrid 4, Rennes, Celtic 2.
Group J:
AEK Larnaca 0–5 Schalke 04
Maccabi Haifa 5–0 Steaua București
Standings (after 3 matches): Schalke 04 7 points, Maccabi Haifa 6, Steaua București 2, AEK Larnaca 1.
Group K:
Odense 1–4 Twente
Wisła Kraków 1–0 Fulham
Standings (after 3 matches): Twente 7 points, Fulham 4, Odense, Wisła Kraków 3.
Group L:
Lokomotiv Moscow 3–1 AEK Athens
Sturm Graz 0–2 Anderlecht
Standings (after 3 matches): Anderlecht 9 points, Lokomotiv Moscow 6, Sturm Graz 3, AEK Athens 0.
Copa Sudamericana Round of 16 second leg (first leg scores in parentheses):
Vélez Sarsfield 1–1 (2–0) Universidad Católica. Vélez Sársfield win 4–1 on points.
Universitario 1–1 (1–1) Godoy Cruz. 2–2 on points, 2–2 on aggregate; Universitario win 3–2 on penalties.
CONCACAF Champions League Group Stage Matchday 6 (teams in bold advance to Championship round):
Group A: Motagua 0–1 Los Angeles Galaxy
Final standings: Los Angeles Galaxy, Morelia, Alajuelense 12 points, Motagua 0.
Group B: Isidro Metapán 3–2 Real España
Final standings: Santos Laguna 13 points, Isidro Metapán 9, Colorado Rapids 7, Real España 5.
Multi-sport events
Pan American Games, day 7 in Guadalajara, Mexico:
Badminton:
Men's singles: Kevin Cordón Osleni Guerrero Daniel Paiola & Charles Pyne
Women's singles: Michelle Li Joycelyn Ko Victoria Montero & Claudia Rivero
Mixed doubles: Grace Gao/Toby Ng Halim Ho/Eva Lee Claudia Rivero/Rodrigo Pacheco & Howard Bach/Paula Lynn Obañana
Cycling:
Men's Keirin: Fabián Puerta Hersony Canelón Leandro Botasso
Women's Keirin: Daniela Larreal Luz Gaxiola Dana Feiss
Women's Omnium: Angie González 14 points Sofía Arreola 17 Marlies Mejías 24
Shooting:
Men's double trap: Walton Eller 195 points José Torres 185 Luiz Fernando da Graça 182
Swimming:
Men's 50 metre freestyle: César Cielo 21.58 Bruno Fratus 22.05 Hanser García 22.15
Men's 100 metre butterfly: Albert Subirats 52.37 Eugene Godsoe 52.67 Chris Brady 52.95
Women's 200 metre backstroke: Elizabeth Pelton 2:08.99 Bonnie Brandon 2:12.57 Fernanda González 2:13.56
Women's 200 metre breaststroke: Ashley McGregor 2:28.04 Haley Spencer 2:29.30 Michelle McKeehan 2:30.51
Synchronized swimming:
Women's duet: Élise Marcotte/Marie-Pier Boudreau Gagnon 188.988 points Mary Killman/Mariya Koroleva 179.463 Lara Teixeira/Nayara Figueira 177.413
Table tennis:
Men's singles: Liu Song Marcos Madrid Lin Ju & Alberto Mino
Women's singles: Zhang Mo Wu Xue Lily Zhang & Ariel Hsing
Volleyball:
Women's tournament:
Wrestling:
Men's Greco-Roman 55 kg: Gustavo Balart Jorge Cardozo Juan Carlos López & Francisco Encarnación
Men's Greco-Roman 66 kg: Pedro Isaac Anyelo Mota Ulises Barragán & Glenn Garrison
Men's Greco-Roman 84 kg: Pablo Shorey Cristhian Mosquera José Arias & Yorgen Cova
Men's Greco-Roman 120 kg: Mijaín López Rafael Barreno Ramón García & Victor Asprilla
October 19, 2011 (Wednesday)
Baseball
World Series:
Game 1 in St. Louis: St. Louis Cardinals 3, Texas Rangers 2. Cardinals lead series 1–0.
Basketball
Euroleague, Regular Season Matchday 1:
Group A:
Fenerbahçe Ülker 66–69 Caja Laboral
NGC Cantù 80–69 SLUC Nancy
Group D:
UNICS Kazan 71–79 Montepaschi Siena
Asseco Prokom Gdynia 72–76 Galatasaray
Cricket
Pakistan vs Sri Lanka in UAE:
1st Test in Abu Dhabi, day 2: 197; 259/1 (98 overs; Taufeeq Umar 109*). Pakistan lead by 62 runs with 9 wickets remaining in the 1st innings.
Australia in South Africa:
1st ODI in Centurion: 183/4 (29/29 overs); 129 (22 overs). Australia win by 93 runs (D/L); lead 3-match series 1–0.
Football (soccer)
UEFA Champions League group stage Matchday 3:
Group E:
Bayer Leverkusen 2–1 Valencia
Chelsea 5–0 Genk
Standings (after 3 matches): Chelsea 7 points, Bayer Leverkusen 6, Valencia 2, Genk 1.
Group F:
Marseille 0–1 Arsenal
Olympiacos 3–1 Borussia Dortmund
Standings (after 3 matches): Arsenal 7 points, Marseille 6, Olympiacos 3, Borussia Dortmund 1.
Group G:
Shakhtar Donetsk 2–2 Zenit St. Petersburg
Porto 1–1 APOEL
Standings (after 3 matches): APOEL 5 points, Zenit St. Petersburg, Porto 4, Shakhtar Donetsk 2.
Group H:
Milan 2–0 BATE Borisov
Barcelona 2–0 Viktoria Plzeň
Standings (after 3 matches): Milan, Barcelona 7 points, BATE Borisov, Viktoria Plzeň 1.
Copa Sudamericana Round of 16:
First leg:
Flamengo 0–4 Universidad de Chile
São Paulo 1–0 Libertad
Second leg (first leg score in parentheses): Arsenal 3–2 (0–0) Olimpia. Arsenal win 4–1 on points.
AFC Champions League Semi-finals first leg:
Suwon Samsung Bluewings 0–2 Al-Sadd
Al-Ittihad 2–3 Jeonbuk Hyundai Motors
CONCACAF Champions League Group Stage Matchday 6 (teams in bold advance to Championship round):
Group B: Santos Laguna 2–0 Colorado Rapids
Standings: Santos Laguna 13 points (6 matches), Colorado Rapids 7 (6), Isidro Metapán 6 (5), Real España 5 (5).
Group C: UNAM 1–0 Tauro
Final standings: UNAM 11 points, , Toronto FC 10, FC Dallas 7, Tauro 5.
Group D: Herediano 4–1 Comunicaciones
Final standings: Monterrey 12 points, Seattle Sounders 10, Comunicaciones 7, Herediano 6.
Multi-sport events
Pan American Games, day 6 in Guadalajara, Mexico:
Badminton:
Men's doubles: Howard Bach/Tony Gunawan Halim Ho/Sattawat Pongnairat Andrés López/Lino Muñoz & Adrian Liu/Derrick Ng
Women's doubles: Alex Bruce/Michelle Li Iris Wang/Rena Wang Grace Gao/Joycelyn Ko & Eva Lee/Paula Lynn Obañana
Cycling:
Men's sprint: Hersony Canelón Fabián Puerta Njisane Phillip
Men's Omnium: Juan Esteban Arango 13 points Luis Mansilla 20 Walter Pérez 28
Equestrian:
Individual dressage (all USA): Steffen Peters 82.690% Heather Blitz 81.917 Marisa Festerling 77.545%
Rowing:
Women's lightweight single sculls: Jennifer Goldsack 7:48.77 Fabiana Beltrame 7:55.42 Yaima Velázquez 8:02.59
Men's lightweight coxless four: (Liosbel Hernández, Liosmel Ramos, Manuel Suárez, Wilber Turro) 6:06.06 (Diego Gallina, Pablo Mahnic, Nicolai Fernández, Carlo Lauro) 6:06.21 (Rodrigo Muñoz, Fabián Oyarzún, Fernando Miralles, Félipe Leal) 6:06.36
Women's quadruple sculls: (Milka Kraljev, Maria Abalo, Maria Best, Maria Rohner) 6:34.46 (Audra Vair, Isolda Penney, Barbara McCord, Melanie Kok) 6:37.68 (Chelsea Smith, Michelle Sechser, Megan Walsh, Catherine Reddick) 6:39.36
Men's eight: (Derek Johnson, Jason Read, Robert Otto, Joseph Spencer, Stephen Kasprzyk, Blaise Didier, Matthew Wheeler, Michael Gennaro, Marcus McElhenney) 5:39.32 (Steven Van Knotsenburg, Peter McClelland, Josh Morris, Benjamin de Wit, Kai Langerfeld, David Wakulich, Blake Parsons, Spencer Crowley, Mark Laidlaw) 5:41.01 (Diego López, Mariano Sosa, Joaquín Iwan, Ariel Suárez, Rodrigo Murillo, Sebastián Fernández, Agustín Silvestro, Sebastián Claus, Joel Infante) 5:41.77
Men's single sculls: Ángel Fournier 7:02.94 Patrick Loliger 7:05.28 Emilio Torres 7:07.03
Shooting:
Men's 50 metre rifle prone: Michael McPhail 693.2 points Alex Suligoy 691.5 Jason Parker 690.8
Men's trap: Jean Pierre Brol 146 points Danilo Caro 145 Roberto Schmits 143
Women's 25 metre pistol: Ana Luiza Mello 773.9 points Sandra Uptagrafft 769.8 Maribel Piñeda 768.8
Swimming:
Men's 200 metre individual medley: Thiago Pereira 1:58.07 Conor Dwyer 1:58.64 Henrique Rodrigues 2:03.41
Men's 4 × 200 metre freestyle relay: (Dwyer, Scot Robison, Charles Houchin, Matthew Patton) 7:15.07 (André Schultz, Nicolas Oliveira, Leonardo de Deus, Pereira) 7:21.96 (Daniele Tirabassi, Cristián Quintero, Crox Acuña, Marcos Lavado) 7:23.41
Women's 100 metre freestyle: Amanda Kendall 54.75 Erika Erndl 55.04 Arlene Semeco 55.43
Women's 200 metre butterfly: Kim Vandenberg 2:10.54 Lyndsay DePaul 2:12.34 Rita Medrano 2:12.43
Women's 800 metre freestyle: Kristel Köbrich 8:34.71 Ashley Twichell 8:38.38 Andreina Pinto 8:44.55
October 18, 2011 (Tuesday)
Baseball
Nippon Professional Baseball news: The Chunichi Dragons clinch their second consecutive Central League title with a 3–3 draw against the Yokohama BayStars, and earn a one-win and home field advantage for Climax Series Final Stage.
Cricket
Pakistan vs Sri Lanka in UAE:
1st Test in Abu Dhabi, day 1: 197 (74.1 overs, Junaid Khan 5/38); 27/0 (8 overs). Pakistan trail by 170 runs with 10 wickets remaining in the 1st innings.
West Indies in Bangladesh:
3rd ODI in Chittagong: 61 (22 overs); 62/2 (20 overs). Bangladesh win by 8 wickets; West Indies win 3-match series 2–1.
Football (soccer)
UEFA Champions League group stage Matchday 3:
Group A:
Napoli 1–1 Bayern Munich
Manchester City 2–1 Villarreal
Standings (after 3 matches): Bayern Munich 7 points, Napoli 5, Manchester City 4, Villarreal 0.
Group B:
CSKA Moscow 3–0 Trabzonspor
Lille 0–1 Internazionale
Standings (after 3 matches): Internazionale 6 points, CSKA Moscow, Trabzonspor 4, Lille 2.
Group C:
Oțelul Galați 0–2 Manchester United
Basel 0–2 Benfica
Standings (after 3 matches): Benfica 7 points, Manchester United 5, Basel 4, Oțelul Galați 0.
Group D:
Real Madrid 4–0 Lyon
Dinamo Zagreb 0–2 Ajax
Standings (after 3 matches): Real Madrid 9 points, Ajax, Lyon 4, Dinamo Zagreb 0.
AFC Cup Semi-finals second leg (first leg scores in parentheses):
Al-Kuwait 3–3 (2–0) Arbil. Al-Kuwait win 5–3 on aggregate.
Al-Wehdat 1–1 (0–1) Nasaf Qarshi. Nasaf Qarshi win 2–1 on aggregate.
CONCACAF Champions League Group Stage Matchday 6 (teams in bold advance to Championship round):
Group A: Morelia 2–1 Alajuelense
Standings: Morelia, Alajuelense 12 points (6 matches), Los Angeles Galaxy 9 (5), Motagua 0 (5).
Group C: FC Dallas 0–3 Toronto FC
Standings: Toronto FC 10 points (6 matches), UNAM 8 (5), FC Dallas 7 (6), Tauro 5 (5).
Group D: Seattle Sounders 1–2 Monterrey
Standings: Monterrey 12 points (6 matches), Seattle Sounders 10 (6), Comunicaciones 7 (5), Herediano 3 (5).
Multi-sport events
Pan American Games, day 5 in Guadalajara, Mexico:
Cycling:
Women's team pursuit: (Laura Brown, Jasmin Glaesser, Stephanie Roorda) 3:21.448 (Yudelmis Domínguez, Yoanka González, Dalila Rodríguez) 3:25.335 (María Luisa Calle, Sérika Gulumá, Lorena Vargas) 3:26.888
Women's sprint: Lisandra Guerra Daniela Larreal Diana García
Gymnastics:
Women's rhythmic individual club: Cynthia Valdez 25.775 points Angélica Kvieczynski 25.150 Mariam Chamilova 24.525
Women's rhythmic individual ribbon: Julie Zetlin 25.775 points Valdez 25.075 Ana Carrasco 24.600
Women's rhythmic group 3 ribbons + 2 hoops: 24.775 points 24.650 24.625
Men's trampoline: Keegan Soehn 55.535 points Rafael Andrade 52.265 José Alberto Vargas 21.130
Women's trampoline: Rosannagh MacLennan 53.975 points Dakota Earnest 51.060 Alaina Williams 48.380
Rowing:
Women's single sculls: Margot Shumway 7:53.05 Maria Best 7:55.55 Isolda Penney 8:06.88
Men's lightweight double sculls: Alan Armenta/Gerardo Sánchez 6:24.52 Yunior Pérez/Eyder Batista 6:27.07 Travis King/Terence McKall 6:29.27
Women's lightweight double sculls: Analicia Ramírez/Lila Pérez Rul 7:16.04 Yaima Velázquez/Yoslaine Domínguez 7:17.77 Michelle Sechser/Chelsea Smith 7:18.88
Men's coxless pair: Michael Gennaro/Robert Otto 6:47.07 João Borges Junior/Alexis Mestre 6:48.74 Peter McClelland/Steven Van Knotsenburg 6:50.80
Men's quadruple sculls: (Alejandro Cucchietti, Santiago Fernández, Cristian Rosso, Ariel Suárez) 5:51.20 (Janier Concepción, Yoennis Hernández, Eduardo Rubio, Adrian Oquendo) 5:51.69 (Horacio Rangel, Edgar Valenzuela, Patrick Loliger, Santiago Santaella) 5:59.58
Shooting:
Men's 50 metre pistol: Sergio Sánchez 648.9 points Daryl Szarenski 640.0 Júlio Almeida 639.9
Women's trap: Miranda Wilder 87 points Lindsay Boddez 86 Kayle Browning 85
Swimming:
Men's 200 metre freestyle: Brett Fraser 1:47.18 Shaune Fraser 1:48.29 Ben Hockin 1:48.48
Men's 200 metre breaststroke: Sean Mahoney 2:11.62 Clark Burckle 2:12.60 Thiago Pereira 2:13.58
Men's 1500 metre freestyle: Arthur Frayler 15:19.59 Ryan Feeley 15:22.19 Juan Martín Pereyra 15:26.20
Women's 200 metre individual medley: Julia Smit 2:13.73 Alia Atkinson 2:14.75 Joanna Maranhão 2:15.08
Women's 4 × 200 metre freestyle relay: (Catherine Breed, Elizabeth Felton, Chelsea Nauta, Amanda Kendall) 8:01.18 (Maranhão, Jéssica Cavalheiro, Manuella Lyrio, Tatiana Lemos) 8:09.89 (Liliana Ibáñez, Patricia Castañeda Miyamoto, Fernanda González, Susana Escobar) 8:12.19
Taekwondo:
Women's +67 kg: Glenhis Hernández Nikki Martínez Guadalupe Ruiz & Lauren Hamon
Men's +80 kg: Robelis Despaigne Juan Carlos Díaz François Coulombe & Stephen Lambdin
Surfing
Men's World Tour:
Rip Curl Pro in Peniche, Portugal: (1) Adriano De Souza (2) Kelly Slater (3) Taj Burrow & Bede Durbidge
Standings (after 9 of 11 events): (1) Slater 58,150 points (2) Owen Wright 45,650 (3) De Souza 42,450
October 17, 2011 (Monday)
Basketball
Euroleague Group B: Žalgiris 74–87 CSKA Moscow
Cricket
England in India:
2nd ODI in Delhi: 237 (48.2 overs); 238/2 (36.4 overs; Virat Kohli 112*). India win by 8 wickets; lead 5-match series 2–0.
New Zealand in Zimbabwe:
2nd T20I in Harare: 187/3 (18/18 overs); 154 (16.5 overs). New Zealand win by 34 runs (D/L); win 2-match series 2–0.
Multi-sport events
Pan American Games, day 4 in Guadalajara, Mexico:
Cycling:
Men's team pursuit: (Juan Arango, Edwin Ávila, Arles Castro, Weimar Roldán) 3:59.236 (Antonio Cabrera, Gonzalo Miranda, Pablo Seisdedos, Luis Sepúlveda) overlapped (Maximiliano Almada, Marcos Crespo, Walter Pérez, Eduardo Sepúlveda) overlapped
Men's team sprint: (Hersony Canelón, César Marcano, Ángel Pulgar) 43.188 (Michael Blatchford, Dean Tracy, James Watkins) 44.036 (Jonathan Marín, Fabián Puerta, Christian Tamayo) 45.080
Women's team sprint: Daniela Larreal/Mariestela Vilera 33.611 Diana García/Juliana Gaviria 34.049 Nancy Contreras/Luz Gaxiola 34.617
Gymnastics:
Women's rhythmic individual ball: Julie Zetlin 24.950 points Cynthia Valdez 24.825 Angélica Kvieczynski 24.700
Women's rhythmic individual hoop: Valdez 25.800 points Zetlin 25.500 Kvieczynski 25.000
Women's rhythmic group 5 balls: 25.050 points 24.850 24.625
Rowing:
Men's double sculls: Cristian Rosso/Ariel Suárez 6:26.55 Janier Concepción/Yoennis Hernández 6:32.54 César Amaris/José Güipe 6:36.81
Men's coxless four: (Sebastián Fernández, Joaquín Iwan, Rodrigo Murillo, Agustín Silvestro) 6:04.41 (David Wakulich, Kai Langerfeld, Blake Parsons, Spencer Crowley) 6:05.65 (Yenser Basilio, Dionnis Carrion, Jorber Avila, Solaris Freire) 6:06.51
Women's double sculls: Yariulvis Cobas/Aimeé Hernández 7:13.76 Megan Walsh/Catherine Reddick 7:14.34 Barbara McCord/Audra Vair 7:16.29
Women's coxless pair: Maria Abalo/Maria Best 7:24.57 Monica George/Megan Smith 7:29.05 Sarah Bonikowsky/Sandra Kisil 7:32.74
Shooting:
Men's 10 metre air rifle: Matthew Rawlings 696.7 points Jonathan Hall 696.6 Gonzalo Moncada 688.9
Women's 10 metre air rifle: Emily Caruso 497.8 points Eglis de la Cruz 497.3 Rosa Peña 494.7
Squash:
Men's singles: Miguel Rodríguez César Salazar Shawn Delierre & Arturo Salazar
Men's doubles: Arturo Salazar/Eric Gálvez Chris Gordon/Julian Illingworth Esteban Casarino/Nicolás Caballero & Hernán D'Arcangelo/Roberto Pezzota
Women's singles: Samantha Terán Samantha Cornett Miranda Ranieri & Nicolette Fernandes
Women's doubles: Terán/Nayelly Hernández Catalina Peláez/Silvia Angulo Ranieri/Stephanie Edmison & Olivia Blatchford/Maria Ubina
Swimming:
Men's 100 metre backstroke: Thiago Pereira 54.56 Eugene Godsoe 54.61 Guilherme Guido 54.81
Men's 200 metre butterfly: Leonardo de Deus 1:57.92 Daniel Madwed 1:58.52 Kaio de Almeida 1:58.78
Women's 100 metre breaststroke: Ann Chandler 1:07.90 Ashley Wanland 1:08.55 Ashley McGregor 1:08.96
Women's 400 metre freestyle: Gillian Ryan 4:11.58 Andreina Pinto 4:11.81 Kristel Köbrich 4:13.31
Table tennis:
Men's team: &
Women's team: &
Taekwondo:
Women's 67 kg: Melissa Pagnotta Paige McPherson Katherine Rodríguez & Taimi Castellanos
Men's 80 kg: Sebastián Crismanich Carlos Vásquez Stuardo Solórzano & Uriel Adriano
October 16, 2011 (Sunday)
Auto racing
Formula One:
in Yeongam, South Korea: (1) Sebastian Vettel (Red Bull–Renault) (2) Lewis Hamilton (McLaren–Mercedes) (3) Mark Webber (Red Bull-Renault)
Drivers' championship standings (after 16 of 19 races): (1) Vettel 349 points (2) Jenson Button (McLaren-Mercedes) 222 (3) Fernando Alonso (Ferrari) 212
Constructors' championship standings: (1) Red Bull 558 points (2) McLaren 418 (3) Ferrari 310
Red Bull win their second consecutive title.
IndyCar Series:
IZOD IndyCar World Championships in Las Vegas, Nevada: No official results
2005 and 2011 Indianapolis 500 winner Dan Wheldon is killed in a multiple-car crash on lap 11 of the race, which was stopped and later abandoned.
Final drivers' championship standings: (1) Dario Franchitti (Chip Ganassi Racing) 573 points (2) Will Power (Team Penske) 555 (3) Scott Dixon (Chip Ganassi Racing) 518
Franchitti wins his third consecutive title, and a record fourth in five years.
Baseball
Major League Baseball postseason:
National League Championship Series Game 6 in Milwaukee: St. Louis Cardinals 12, Milwaukee Brewers 6. Cardinals win series 4–2.
The Cardinals win their first NLCS since 2006, and their 18th NL pennant overall. Cardinals third baseman David Freese is named series MVP after hitting .545 with three home runs and nine RBIs in six games.
Cricket
Australia in South Africa:
2nd T20I in Johannesburg: 147/8 (20 overs); 148/7 (19.1 overs). South Africa win by 3 wickets; 2-match series drawn 1–1.
Equestrianism
Eventing – Étoiles de Pau in Pau (CCI 4*): William Fox-Pitt on Oslo Andrew Nicholson on Mr Cruise Control Fox-Pitt on Lionheart
Show jumping – World Cup Western European League:
1st competition in Oslo (CSI 5*-W): Pius Schwizer on Carlina Philipp Weishaupt on Souvenir Luciana Diniz on Winningmood
Fencing
World Championships in Catania, Italy:
Women's team épée:
Men's team foil:
Football (soccer)
CAF Champions League Semifinals second leg (first leg score in parentheses): Enyimba 0–0 (0–1) Wydad Casablanca. Wydad Casablanca win 1–0 on aggregate.
CAF Confederation Cup Semifinals first leg: Inter Luanda 2–1 Maghreb de Fès
Premier League, matchday 26 (team in bold qualify for Champions League, teams in italics qualify for Europa League):
NSÍ Runavík 1–2 B36 Tórshavn
EB/Streymur 1–0 B71 Sandoy
Standings: B36 64 points, EB/Streymur 60, Víkingur 56, NSÍ 38.
B36 win the title for the ninth time.
Golf
PGA Tour
Fall Series: McGladrey Classic in Sea Island, Georgia:
Winner: Ben Crane 265 (−15)PO
Crane defeats Webb Simpson on the second playoff hole to win his fourth PGA Tour title.
European Tour:
Portugal Masters in Vilamoura, Portugal:
Winner: Tom Lewis 267 (−21)
In his third professional tournament, Lewis wins his first European Tour title.
LPGA Tour:
Sime Darby LPGA Malaysia in Kuala Lumpur:
Winner: Na Yeon Choi 269 (−15)
Choi wins her fifth LPGA Tour title.
Champions Tour:
AT&T Championship in San Antonio:
Winner: Fred Couples 193 (−23)
Couples wins his sixth Champions Tour title.
Gymnastics
World Artistic Gymnastics Championships in Tokyo, Japan:
Men:
Vault: Yang Hak-Seon 16.566 points Anton Golotsutskov 16.366 Makoto Okiguchi 16.291
Parallel bars: Danell Leyva 15.633 points Vasileios Tsolakidis & Zhang Chenglong 15.533
Horizontal bar: Zou Kai 16.441 points Zhang 16.366 Kōhei Uchimura 16.333
Zou wins his second title of the championships, second horizontal bar title and fifth world title overall.
Women:
Balance beam: Sui Lu 15.866 points Yao Jinnan 15.233 Jordyn Wieber 15.133
Floor: Ksenia Afanasyeva 15.133 points Sui 15.066 Aly Raisman 15.000
Afanasyeva wins her second world title.
Motorcycle racing
Moto GP:
Australian Grand Prix in Phillip Island, Australia:
MotoGP (all Honda): (1) Casey Stoner (2) Marco Simoncelli (3) Andrea Dovizioso
Riders' championship standings (after 16 of 18 races): (1) Stoner 325 points (2) Jorge Lorenzo (Yamaha) 260 (3) Dovizioso 212
Stoner wins his second world title.
Moto2: (1) Alex de Angelis (Motobi) (2) Stefan Bradl (Kalex) (3) Marc Márquez (Suter)
Riders' championship standings (after 15 of 17 races): (1) Bradl 254 points (2) Márquez 251 (3) Andrea Iannone (Suter) 165
125cc: (1) Sandro Cortese (Aprilia) (2) Luis Salom (Aprilia) (3) Johann Zarco (Derbi)
Riders' championship standings (after 15 of 17 races): (1) Nicolás Terol (Aprilia) 271 points (2) Zarco 246 (3) Cortese 205
Superbike:
Portimão World Championship round in Portimão, Portugal:
Race 1: (1) Carlos Checa (Ducati 1098R) (2) Sylvain Guintoli (Ducati 1098R) (3) Jonathan Rea (Honda CBR1000RR)
Race 2: (1) Marco Melandri (Yamaha YZF-R1) (2) Eugene Laverty (Yamaha YZF-R1) (3) Rea
Final riders' championship standings: (1) Checa 505 points (2) Melandri 395 (3) Max Biaggi (Aprilia RSV4) 303
Supersport:
Portimão World Championship round in Portimão, Portugal: (1) Chaz Davies (Yamaha YZF-R6) (2) David Salom (Kawasaki Ninja ZX-6R) (3) James Ellison (Honda CBR600RR)
Final riders' championship standings: (1) Davies 206 points (2) Salom 156 (3) Fabien Foret (Honda CBR600RR) 148
Multi-sport events
Pan American Games, day 3 in Guadalajara, Mexico:
Cycling:
Men's road time trial: Marlon Pérez Arango 49:56.93 Matías Médici 50:00.98 Carlos Oyarzun 50:27.60
Women's road time trial: María Calle 28:04.82 Evelyn García 28:13.76 Laura Brown 28:24.00
Equestrian:
Team dressage: (Steffen Peters, Heather Blitz, Cesar Parra, Marisa Festerling) 75.754% (Thomas Dvorak, Crystal Kroetch, Tina Irwin, Roberta Byng-Morris) 70.413% (Marco Bernal, Constanza Jaramillo, Juan Mauricio Sanchez, Maria Garcia) 69.614%
Gymnastics:
Women's rhythmic group all-around: 48.575 points 47.950 47.175
Modern pentathlon:
Men's modern pentathlon: Óscar Soto 5728 points Andrei Gheorghe 5672 Esteban Bustos 5656
Shooting:
Men's 10 metre air pistol: Daryl Szarenski 681.7 points Roger Daniel 676.1 Júlio Almeida 675.2
Women's 10 metre air pistol: Dorothy Ludwig 476.8 points Maribel Pineda 476.7 Sandra Uptagrafft 476.3
Swimming:
Women's 100 metre backstroke: Rachel Bootsma 1:00.37 Elizabeth Pelton 1:01.12 Fernanda González 1:02.00
Men's 100 metre freestyle: César Cielo 47.84 Hanser García 48.34 Shaune Fraser 48.63
Women's 200 metre freestyle: Catherine Breed 2:00.08 Chelsea Nauta 2:00.62 Andreina Pinto 2:00.79
Men's 100 metre breaststroke: Felipe França Silva 1:00.34 Felipe Lima 1:00.99 Marcus Titus 1:01.12
Men's 4 × 100 metre freestyle relay: (Bruno Fratus, Nicholas Santos, Cielo, Nicolas Oliveira) 3:14.65 (Will Copeland, Chris Brady, Bobby Savulich, Scot Robison) 3:15.62 (Octavio Alesi, Crox Acuña, Cristian Quintero, Albert Subirats) 3:19.92
Taekwondo:
Men's 68 kg: Jhohanny Jean Ángel Mora Mario Guerra & Terrence Jennings
Women's 57 kg: Irma Contreras Doris Patiño Yeny Contreras & Nicole Palma
Rugby league
Autumn International Series:
26–6 in Glasgow, Scotland
Rugby union
World Cup in New Zealand:
Semifinals in Auckland: 6–20
The All Blacks advance to the final for the third time, and will play in a repeat of the 1987 Final at the same venue.
Tennis
ATP World Tour:
Shanghai Rolex Masters in Shanghai, China:
Final: Andy Murray def. David Ferrer 7–5, 6–4
Murray wins a title for the third consecutive week, for his fifth title of the year and 21st of his career.
Murray's victory also moves him into third place in the ATP rankings, ahead of Roger Federer , who is ranked outside the top three for the first time since July 2003.
WTA Tour:
Generali Ladies Linz in Linz, Austria:
Final: Petra Kvitová def. Dominika Cibulková 6–4, 6–1
Kvitová wins her fifth title of the year, and sixth of her career.
HP Open in Osaka, Japan:
Final: Marion Bartoli def. Samantha Stosur 6–3, 6–1
Bartoli wins the seventh title of her career.
October 15, 2011 (Saturday)
Auto racing
Sprint Cup Series – Chase for the Sprint Cup:
Bank of America 500 in Concord, North Carolina: (1) Matt Kenseth (Ford; Roush Fenway Racing) (2) Kyle Busch (Toyota; Joe Gibbs Racing) (3) Carl Edwards (Ford; Roush Fenway Racing)
Drivers' championship standings (after 31 of 36 races): (1) Edwards 2203 points (2) Kevin Harvick (Chevrolet; Richard Childress Racing) 2198 (3) Kenseth 2196
Baseball
World Cup in Panama:
7th place game in Santiago de Veraguas: 3–8
5th place game in Chitré: 3–2
Bronze medal game in Panama City: – — cancelled due to rain
Final in Panama City: 2–1
The Netherlands become the first European nation to win the World Cup since Great Britain in 1938.
Major League Baseball postseason:
American League Championship Series Game 6 in Arlington, Texas: Texas Rangers 15, Detroit Tigers 5. Rangers win series 4–2.
The Rangers win the ALCS for the second successive year. Rangers outfielder Nelson Cruz is named series MVP with a postseason series record six home runs and 13 RBIs in six games.
Cricket
West Indies in Bangladesh:
2nd ODI in Dhaka: 220 (48.5 overs); 221/2 (42.4 overs). West Indies win by 8 wickets; lead 3-match series 2–0.
New Zealand in Zimbabwe:
1st T20I in Harare: 123/8 (20 overs); 127/0 (13.3 overs). New Zealand win by 10 wickets; lead 2-match series 1–0.
Cycling
UCI World Tour:
Giro di Lombardia: Oliver Zaugg () 6h 20' 02" Dan Martin () + 8" Joaquim Rodríguez () + 8"
Final World Tour standings: (1) Philippe Gilbert () 718 points (2) Cadel Evans () 574 (3) Alberto Contador () 471
Fencing
World Championships in Catania, Italy:
Men's team épée:
Women's team sabre:
Figure skating
ISU Junior Grand Prix (skaters in bold qualify for Final):
JGP Tallinn Cup in Tallinn, Estonia:
Ladies: Gracie Gold 172.69 points Risa Shoji 157.83 Samantha Cesario 145.96
Final standings: Yulia Lipnitskaya & Polina Shelepen 30 points, Vanessa Lam , Shoji & Li Zijun 26, Polina Korobeynikova , Cesario & Polina Agafonova 22.
Ice Dance: Anna Yanovskaia/Sergei Mozgov 142.72 points Irina Shtork/Taavi Rand 126.51 Evgenia Kosigina/Nikolai Moroshkin 123.48
Final standings: Victoria Sinitsina/Ruslan Zhiganshin & Alexandra Stepanova/Ivan Bukin 30 points, Yanovskaia/Mozgov, Maria Nosulia/Evgen Kholoniuk & Anastasia Galyeta/Alexei Shumski 26, Alexandra Aldridge/Daniel Eaton , Lauri Bonacorsi/Travis Mager , Valeria Zenkova/Valerie Sinitsin & Kosigina/Moroshkin 24.
Football (soccer)
CAF Champions League Semifinals second leg (first leg score in parentheses): Espérance ST 2–0 (1–0) Al-Hilal. Espérance ST win 3–0 on aggregate.
CAF Confederation Cup Semifinals first leg: Sunshine Stars 0–1 Club Africain
Gymnastics
World Artistic Gymnastics Championships in Tokyo, Japan:
Men:
Floor: Kōhei Uchimura 15.633 points Zou Kai 15.500 Diego Hypólito & Alexander Shatilov 14.466
Uchimura wins his second title of the championships and fourth title overall.
Pommel horse: Krisztián Berki 15.833 points Cyril Tommasone 15.266 Louis Smith 15.066
Berki wins the pommel horse title for the second successive time.
Rings: Chen Yibing 15.800 points Arthur Nabarrete Zanetti 15.600 Koji Yamamuro 15.500
Chen wins his second title of the championships, fourth rings title and eighth world title overall.
Women:
Vault: McKayla Maroney 15.300 points Oksana Chusovitina 14.733 Phan Thị Hà Thanh 14.666
Maroney wins her second title of the championships.
Uneven bars: Viktoria Komova 15.500 points Tatiana Nabieva 15.000 Huang Qiushuang 14.833
Multi-sport events
Pan American Games, day 2 in Guadalajara, Mexico:
Cycling:
Men's cross-country: Hector Páez 1:31:12 Max Plaxton 1:31:29 Jeremiah Bishop 1:32:41
Women's cross-country: Heather Irmiger 1:34:09 Laura Morfin 1:35:54 Amanda Sin 1:37:14
Gymnastics:
Women's rhythmic individual all-around: Julie Zetlin 100.850 points Cynthia Valdez 100.325 Angélica Kvieczynski 98.200
Modern pentathlon:
Women's modern pentathlon: Margaux Isaksen 5356 points Yane Marques 5260 Tamara Vega 4956
Swimming:
Women's 100 metre butterfly: Claire Donahue 58.73 Daynara de Paula 59.30 Elaine Breeden 59.81
Women's 400 metre individual medley: Julia Smit 4:46.15 Joanna Maranhão 4:46.33 Allysa Vavra 4:48.05
Women's 4 × 100 metre freestyle relay: (Madison Kennedy, Elizabeth Pelton, Amanda Kendall, Erika Erndl) 3:40.66 (Michelle Lenhardt, Tatiana Lemos, Flávia Delaroli, de Paula) 3:44.62 (Jen Beckberger, Caroline Lapierre, Ashley McGregor, Paige Schultz) 3:48.37
Men's 400 metre freestyle: Charles Houchin 3:50.95 Matthew Patton 3:51.25 Cristian Quintero 3:52.51
Men's 400 metre individual medley: Thiago Pereira 4:16.68 Conor Dwyer 4:18.22 Robert Margalis 4:24.88
Taekwondo:
Women's 49 kg: Ivett Gonda Lizbeth Díez Canseco Jannet Alegria & Deireanne Morales
Men's 58 kg: Gabriel Mercedes Damián Villa Frank Díaz & Marcio Ferreira
Rugby union
World Cup in New Zealand:
Semifinals in Auckland: 8–9
France advance to the final for the third time.
October 14, 2011 (Friday)
Auto racing
Nationwide Series:
Dollar General 300 in Concord, North Carolina: (1) Carl Edwards (Ford; Roush Fenway Racing) (2) Kyle Busch (Toyota; Joe Gibbs Racing) (3) Trevor Bayne (Ford; Roush Fenway Racing)
Drivers' championship standings (after 31 of 34 races): (1) Ricky Stenhouse Jr. (Ford; Roush Fenway Racing) 1100 points (2) Elliott Sadler (Chevrolet; Kevin Harvick Incorporated) 1085 (3) Aric Almirola (Chevrolet; JR Motorsports) 1013
Baseball
World Cup in Panama (teams in bold advance to Final):
Group 3 (F/7 unless stated):
In Aguadulce:
1–3
4–7
2–12
In Panama City:
4–5 (F/8)
2–8
7–2
Final standings: Netherlands, Cuba 6–1, Canada, United States 4–3, Australia 3–4, South Korea, Panama 2–5, Venezuela 1–6.
Major League Baseball postseason:
National League Championship Series Game 5 in St. Louis: St. Louis Cardinals 7, Milwaukee Brewers 1. Cardinals lead series 3–2.
Cricket
England in India:
1st ODI in Hyderabad: 300/7 (50 overs); 174 (36.1 overs). India win by 126 runs; lead 5-match series 1–0.
Fencing
World Championships in Catania, Italy:
Women's team foil: (Inna Deriglazova, Aida Shanayeva, Larisa Korobeynikova, Yevgeniya Lamonova) (Arianna Errigo, Valentina Vezzali, Elisa Di Francisca, Ilaria Salvatori) (Lee Hye-Sun, Nam Hyun-Hee, Jeon Hee-Sook, Jung Gil-Ok)
Shanayeva wins her second team title and third world title overall.
Men's team sabre: (Nikolay Kovalev, Reshetnikov Veniamin, Aleksey Yakimenko, Pavel Bykov) (Valery Pryiemka, Aliaksandr Buikevich, Dmitri Lapkes, Aliaksei Likhacheuski) (Diego Occhuizzi, Aldo Montano, Gianpiero Pastore, Luigi Tarantino)
Figure skating
ISU Junior Grand Prix (skaters in bold qualify for the Final):
JGP Tallinn Cup in Tallinn, Estonia:
Pairs: Katherine Bobak/Ian Beharry 147.72 points Britney Simpson/Matthew Blackmer 141.28 Jessica Calalang/Zack Sidhu 139.32
Final standings: Sui Wenjing/Han Cong 30 points, Simpson/Blackmer & Bobak/Beharry 28, Yu Xiaoyu/Jin Yang 26, Ekaterina Petaikina/Maxim Kurduykov & Calalang/Sidhu 20.
Men: Joshua Farris 207.67 points Maxim Kovtun 186.87 Shoma Uno 175.15
Final standings: Yan Han & Farris 30 points, Jason Brown , Kovtun & Ryuju Hino 28, Keiji Tanaka 24.
Gymnastics
World Artistic Gymnastics Championships in Tokyo, Japan:
Men's all-around: Kōhei Uchimura 93.631 points Philipp Boy 90.530 Kōji Yamamuro 90.255
Uchimura wins the all-around title for the third successive time.
Multi-sport events
The opening ceremony of the Pan American Games is held in Guadalajara, Mexico.
Volleyball
Men's Club World Championship in Doha, Qatar:
3rd place: SESI 1–3 Zenit
Final: Jastrzębski 1–3 Trentino
Trentino win the title for a record third time.
Women's Club World Championship in Doha, Qatar:
3rd place: Sollys Osasco 3–0 Mirador
Final: VakıfBank TT 0–3 Rabita Baku
October 13, 2011 (Thursday)
Baseball
World Cup in Panama (team in bold advances to Final):
Group 3 (F/7 unless stated):
In Aguadulce:
7–0
4–0
4–5
In Santiago de Veraguas:
2–1
2–1 (F/9)
1–4
Standings: Netherlands 5–1, Cuba 4–1, Canada 4–2, United States, Panama 2–3, South Korea, Australia 2–4, Venezuela 1–4.
Major League Baseball postseason:
American League Championship Series Game 5 in Detroit: Detroit Tigers 7, Texas Rangers 5. Rangers lead series 3–2.
National League Championship Series Game 4 in St. Louis: Milwaukee Brewers 4, St. Louis Cardinals 2. Series tied 2–2.
Cricket
West Indies in Bangladesh:
1st ODI in Dhaka: 298/4 (50 overs; Lendl Simmons 122); 258/7 (50 overs). West Indies win by 40 runs; lead 3-match series 1–0.
Australia in South Africa:
1st T20I in Cape Town: 146/7 (20 overs); 147/5 (19.3 overs). Australia win by 5 wickets; lead 2-match series 1–0.
Fencing
World Championships in Catania, Italy (ITA unless stated):
Women's épée: Li Na Sun Yujie Ana Maria Brânză & Anca Măroiu
Li wins her second world title.
Men's foil: Andrea Cassarà Valerio Aspromonte Giorgio Avola & Victor Sintès
Cassarà wins his third world title.
Gymnastics
World Artistic Gymnastics Championships in Tokyo, Japan:
Women's all-around: Jordyn Wieber 59.382 points Viktoria Komova 59.349 Yao Jinnan 58.598
Wieber wins her second title of the championships.
Snowboarding
World Cup in Landgraaf, Netherlands:
Men's slalom: Roland Fischnaller Aaron March Andreas Prommegger
Women's slalom: Fränzi Mägert-Kohli Yekaterina Tudegesheva Marion Kreiner
Volleyball
Men's Club World Championship in Doha, Qatar:
Semifinals:
Jastrzębski 3–2 SESI
Trentino 3–1 Zenit
Women's Club World Championship in Doha, Qatar:
Semifinals:
VakıfBank TT 3–0 Sollys Osasco
Rabita Baku 3–0 Mirador
October 12, 2011 (Wednesday)
Baseball
World Cup in Panama:
Group 3:
In Chitré:
– — match postponed due to rain
– — match postponed due to rain
In Santiago de Veraguas:
1–1 — match suspended in the top of the seventh inning due to rain
– — match postponed due to rain
Standings: Cuba 4–0, Netherlands 3–1, Australia, Panama, Canada 2–2, Venezuela, South Korea, United States 1–3.
Major League Baseball postseason:
American League Championship Series Game 4 in Detroit: Texas Rangers 7, Detroit Tigers 3 (F/11). Rangers lead series 3–1.
National League Championship Series Game 3 in St. Louis: St. Louis Cardinals 4, Milwaukee Brewers 3. Cardinals lead series 2–1.
Cricket
ICC Intercontinental Cup One-Day:
8th Match in Sharjah: 221/8 (50 overs); 152 (44.4 overs). United Arab Emirates win by 69 runs.
Standings (after 4 matches): , 8 points, United Arab Emirates 6, , Afghanistan 4, 2, , 0.
Fencing
World Championships in Catania, Italy:
Men's épée: Paolo Pizzo Bas Verwijlen Fabian Kauter & Park Kyoung-Doo
Women's sabre: Sofiya Velikaya Mariel Zagunis Julia Gavrilova & Olha Kharlan
Velikaya wins her third world title.
Football (soccer)
UEFA Women's Euro 2013 qualifying Group 4: 1–6
Standings (after 2 matches unless stated): 6 points, Scotland 3 (1), 3, 0 (1), Israel 0.
Copa Sudamericana Round of 16 second leg (first leg score in parentheses): Independiente 1–0 (0–2) LDU Quito. 3–3 on points; LDU Quito win 2–1 on aggregate.
Gymnastics
World Artistic Gymnastics Championships in Tokyo, Japan:
Men's team: (Zou Kai, Teng Haibin, Chen Yibing, Zhang Chenglong, Feng Zhe, Yan Mingyong) 275.161 points (Kōhei Uchimura, Kazuhito Tanaka, Kenya Kobayashi, Koji Yamamuro, Makoto Okiguchi, Yūsuke Tanaka) 273.093 (Jake Dalton, Jonathan Horton, Danell Leyva, Steven Legendre, Alex Naddour, John Orozco) 273.083
China win the men's team title for the fifth successive time.
Chen wins his fourth team title and seventh world title overall.
Zou and Teng both win their third team title and fourth world title overall.
Surfing
Men's World Tour:
Quiksilver Pro France in France: (1) Gabriel Medina (2) Julian Wilson (3) Taylor Knox & Jordy Smith
Standings (after 8 of 11 events): (1) Kelly Slater 50,150 points (2) Owen Wright 43,900 (3) Joel Parkinson 35,900
Volleyball
Men's Club World Championship in Doha, Qatar (teams in bold qualify for semifinals):
Pool B: Trentino 3–1 SESI
Final standings: Trentino 9 points, SESI 6, Al-Arabi 2, Al-Ahly 1.
Women's Club World Championship in Doha, Qatar (teams in bold qualify for semifinals):
Pool A: Kenya Prisons 0–3 VakıfBank TT
Final standings: VakıfBank TT 6 points, Mirador 2, Kenya Prisons 1.
Pool B: Rabita Baku 3–2 Sollys Osasco
Final standings: Rabita Baku 5 points, Sollys Osasco 4, Chang 0.
October 11, 2011 (Tuesday)
Baseball
World Cup in Panama:
Group 3:
In Chitré:
5–1
4–11
In Santiago de Veraguas:
0–7
8–7
Standings: Cuba 4–0, Netherlands 3–1, Australia, Panama, Canada 2–2, Venezuela, South Korea, United States 1–3.
Major League Baseball postseason:
American League Championship Series Game 3 in Detroit: Detroit Tigers 5, Texas Rangers 2. Rangers lead series 2–1.
Cricket
West Indies in Bangladesh:
Only T20I in Dhaka: 132/8 (20 overs); 135/7 (19.5 overs). Bangladesh win by 3 wickets.
Fencing
World Championships in Catania, Italy (ITA unless stated):
Women's foil: Valentina Vezzali Elisa Di Francisca Lee Kiefer & Nam Hyun-Hee
Vezzali wins her sixth individual world title and 13th overall.
Men's sabre: Aldo Montano Nicolas Limbach Gu Bon-Gil & Luigi Tarantino
Football (soccer)
UEFA Euro 2012 qualifying, matchday 12 (teams in bold qualify for the Finals, teams in italics advance to the play-offs):
Group A:
3–1
0–0
1–0
Final standings: Germany 30 points, Turkey 17, Belgium 15, Austria 12, Azerbaijan 7, Kazakhstan 4.
Group B:
1–1
2–1
6–0
Final standings: Russia 23 points, Republic of Ireland 21, Armenia 17, Slovakia 15, Macedonia 8, Andorra 0.
Group C:
3–0
1–0
Final standings: Italy 26 points, 16, Serbia 15, Slovenia 14, Northern Ireland 9, 4.
Group D:
1–1
1–1
Final standings: France 21 points, Bosnia and Herzegovina 20, Romania 14, 13, Albania 9, 4.
Group E:
0–0
4–0
3–2
Final standings: Netherlands 27 points, Sweden 24, Hungary 19, Finland 10, Moldova 9, San Marino 0.
Group F:
2–0
1–2
0–2
Final standings: Greece 24 points, Croatia 22, Israel 16, Latvia 11, Georgia 10, Malta 1.
Group G:
0–1
2–0
Final standings: 18 points, Montenegro 12, Switzerland 11, Wales 9, Bulgaria 5.
Group H:
2–1
3–1
Final standings: Denmark 19 points, Portugal, Norway 16, 4, Cyprus 2.
Group I:
1–4
3–1
Final standings: Spain 24 points, Czech Republic 13, Scotland 11, Lithuania 5, 4.
2014 FIFA World Cup qualification – CONMEBOL, matchday 2:
1–2
4–2
1–1
1–0
Standings (after 2 matches unless stated): Uruguay 4 points, Argentina 3, , Colombia 3 (1), Peru, Chile, Venezuela 3, Paraguay 1, Bolivia 0.
2014 FIFA World Cup qualification – AFC third round, matchday 3:
Group A:
0–3
0–1
Standings (after 3 matches): Jordan 9 points, Iraq 6, China PR 3, Singapore 0.
Group B:
2–1
2–2
Standings (after 3 matches): South Korea 7 points, Kuwait 5, Lebanon 4, United Arab Emirates 0.
Group C:
0–1
8–0
Standings (after 3 matches): Japan, Uzbekistan 7 points, North Korea 3, Tajikistan 0.
Group D:
3–0
0–0
Standings (after 3 matches): Australia 9 points, Thailand 4, Saudi Arabia 2, Oman 1.
Group E:
2–3
6–0
Standings (after 3 matches): Iran 7 points, Qatar 5, Bahrain 4, Indonesia 0.
2014 FIFA World Cup qualification – CONCACAF second round, matchday 4 (teams in bold advance to the Third round):
Group A:
1–3
4–0
Standings (after 4 matches): El Salvador 12 points, Suriname 7, Dominican Republic 4, Cayman Islands 0.
Group B:
4–0
1–1
Standings (after 4 matches): Guyana 10 points, Trinidad and Tobago 9, Bermuda 4, Barbados 0.
Group C: 5–1
Standings (after 3 matches unless stated): Panama 9 points, Nicaragua 3, 0 (2).
Group D:
0–0
1–1
Standings (after 4 matches): Canada 10 points, Saint Kitts and Nevis 6, Puerto Rico 3, Saint Lucia 1.
Group E: 3–1
Standings (after 4 matches unless stated): Guatemala 12 points, 3 (3), Belize 3, 3 (3).
Group F:
2–2
10–0
Standings (after 4 matches): Antigua and Barbuda 12 points, Haiti 10, Curaçao 1, U.S. Virgin Islands 0.
Friendly international (top 10 in FIFA World Rankings): 1–2 (7)
Egypt Cup Final: Zamalek 1–2 ENPPI
ENPPI wins the Cup for the second time.
Gymnastics
World Artistic Gymnastics Championships in Tokyo, Japan:
Women's team: (Jordyn Wieber, Aly Raisman, McKayla Maroney, Gabby Douglas, Sabrina Vega, Alicia Sacramone) 179.411 points (Ksenia Afanasyeva, Viktoria Komova, Tatiana Nabieva, Anna Dementyeva, Yulia Belokobylskaya, Yulia Inshina) 175.329 (Yao Jinnan, Tan Sixin, Sui Lu, Huang Qiushuang, Jiang Yuyuan, He Kexin) 172.820
The United States win the women's team title for the third time.
Sacramone, who was retained on the USA roster despite getting injured in training just before the championships, wins her second team title and fourth title overall, and her tenth medal makes her the most decorated American gymnast in World Championships history.
Volleyball
Men's Club World Championship in Doha, Qatar (teams in bold qualify for semifinals):
Pool A: Jastrzębski 3–0 Spartans
Final standings: Jastrzębski 8 points, Zenit 7, Spartans 2, Paykan 1.
Pool B: Trentino 3–0 Al-Arabi
Standings: Trentino, SESI 6 points (2 matches), Al-Arabi 2 (3), Al-Ahly 1 (3).
Women's Club World Championship in Doha, Qatar (teams in bold qualify for semifinals):
Pool B: Rabita Baku 3–1 Chang
Standings: Rabita Baku, Sollys Osasco 3 points (1 match), Chang 0 (2).
October 10, 2011 (Monday)
Australian rules football
AFL Trade Week in Melbourne begins, the only opportunity for clubs to trade players before the 2012 AFL season commences.
Baseball
World Cup in Panama (teams in bold qualify for second round):
Group 1:
In Panama City: 0–5
In Aguadulce: 0–15 (F/6)
Final standings: , 6–1, Panama 5–2, United States 4–3, 3–4, , Chinese Taipei 2–5, Greece 0–7.
Major League Baseball postseason:
American League Championship Series Game 2 in Arlington, Texas: Texas Rangers 7, Detroit Tigers 3 (F/11). Rangers lead series 2–0.
National League Championship Series Game 2 in Milwaukee: St. Louis Cardinals 12, Milwaukee Brewers 3. Series tied 1–1.
Cricket
ICC Intercontinental Cup One-Day:
7th Match in Sharjah: 198 (44.3 overs); 183 (48.3 overs). United Arab Emirates win by 15 runs.
Standings (after 4 matches unless stated): , 8 points, Afghanistan, United Arab Emirates 4 (3), 4, 2, , 0.
Volleyball
Men's Club World Championship in Doha, Qatar (teams in bold qualify for semifinals):
Pool A:
Spartans 3–2 Paykan
Jastrzębski 3–2 Zenit
Standings: Zenit 7 points (3 matches), Jastrzębski 5 (2), Spartans 2 (2), Paykan 1 (3).
Pool B: Al-Ahly 1–3 SESI
Standings: SESI 6 points (2 matches), Trentino 3 (1), Al-Arabi 2 (2), Al-Ahly 1 (3).
Women's Club World Championship in Doha, Qatar:
Pool A: Kenya Prisons 2–3 Mirador
Standings: VakıfBank TT 3 points (1 match), Mirador 2 (2), Kenya Prisons 1 (1).
October 9, 2011 (Sunday)
Athletics
World Marathon Majors:
Chicago Marathon (KEN unless stated):
Men: Moses Mosop 2:05:37 Wesley Korir 2:06:15 Bernard Kipyego 2:06:29
Standings (after 10 of 11 events): (1) Patrick Makau Musyoki 60 points (2) Emmanuel Kipchirchir Mutai 55 (3) Tsegaye Kebede 41
Women: Liliya Shobukhova 2:18:20 Ejegayehu Dibaba 2:22:09 Kayoko Fukushi 2:24:38
Standings (after 10 of 11 events): (1) Shobukhova 90 points (2) Edna Kiplagat 60 (3) Mary Jepkosgei Keitany 35
Shobukhova wins her second consecutive title.
Auto racing
Formula One:
in Suzuka, Japan: (1) Jenson Button (McLaren–Mercedes) (2) Fernando Alonso (Ferrari) (3) Sebastian Vettel (Red Bull–Renault)
Drivers' championship standings (after 15 of 19 races): (1) Vettel 324 points (2) Button 210 (3) Alonso 202
Vettel becomes the ninth driver to win consecutive world titles, and the youngest driver to win two titles.
Sprint Cup Series – Chase for the Sprint Cup:
Hollywood Casino 400 in Kansas City, Kansas: (1) Jimmie Johnson (Chevrolet; Hendrick Motorsports) (2) Kasey Kahne (Toyota; Red Bull Racing Team) (3) Brad Keselowski (Dodge; Penske Racing)
Drivers' championship standings (after 30 of 36 races): (1) Carl Edwards (Ford; Roush Fenway Racing) 2161 points (2) Kevin Harvick (Chevrolet; Richard Childress Racing) 2160 (3) Johnson 2157
V8 Supercars:
Supercheap Auto Bathurst 1000 in Bathurst, New South Wales (AUS unless stated): (1) Garth Tander/Nick Percat (Holden Racing Team; Holden VE Commodore) (2) Craig Lowndes/Mark Skaife (Triple Eight Race Engineering; Holden VE Commodore) (3) Greg Murphy /Allan Simonsen (Kelly Racing; Holden VE Commodore)
Drivers' championship standings (after 20 of 28 races): (1) Lowndes 2329 points (2) Jamie Whincup (Triple Eight Race Engineering; Holden VE Commodore) 2229 (3) Shane van Gisbergen (Stone Brothers Racing; Ford FG Falcon) 1920
Baseball
World Cup in Panama (teams in bold qualify for second round):
Group 1:
In Panama City:
1–6
3–7
In Aguadulce:
4–9
3–1
Standings: Canada, Netherlands 6–1, Panama 5–1, United States 3–3, Puerto Rico 3–4, Japan 2–5, Chinese Taipei 1–5, Greece 0–6.
Group 2:
In Chitre:
9–6
4–5 (F/10)
In Santiago de Veraguas:
7–6 (F/10)
0–6
Final standings: Cuba 7–0, Venezuela, South Korea 5–2, Australia 4–3, Dominican Republic, Italy 3–4, Nicaragua 1–6, Germany 0–7.
Major League Baseball postseason:
American League Championship Series Game 2 in Arlington, Texas: Texas Rangers vs. Detroit Tigers — postponed to October 10 due to inclement weather.
National League Championship Series Game 1 in Milwaukee: Milwaukee Brewers 9, St. Louis Cardinals 6. Brewers lead series 1–0.
Cricket
Champions League Twenty20 Final in Chennai: Mumbai Indians 139 (20 overs); Royal Challengers Bangalore 108 (19.2 overs). Mumbai Indians win by 31 runs.
Cycling
UCI World Tour:
Tour of Beijing, Stage 5: Denis Galimzyanov () 2h 19' 44" Juan José Haedo () s.t. Elia Viviani () s.t.
Final general classification: (1) Tony Martin () 13h 39' 11" (2) David Millar () + 17" (3) Chris Froome () + 26"
World Tour standings (after 25 of 26 races): (1) Philippe Gilbert () 698 points (2) Cadel Evans () 574 (3) Alberto Contador () 471
Field hockey
Oceania Cup in Hobart, Australia:
Men's Game 3: 6–1 . Series tied 1–1; Australia win on goal difference.
Australia win the Cup for the seventh successive time.
Both teams qualify for the 2012 Olympics.
Women's Game 3: 2–4 . Series tied 1–1; New Zealand win on goal difference.
New Zealand win the Cup for the third successive time.
Both teams qualify for the 2012 Olympics.
Football (soccer)
2012 Africa Cup of Nations qualification, matchday 6 (teams in bold qualify for the Finals):
Group D:
3–1
2–0
Final standings: Morocco 11 points, Central African Republic, Algeria 8, Tanzania 5.
Group E: 0–2
Final standings: Senegal 16 points, 11, 7, Mauritius 0.
Group H:
0–1
2–1
Final standings: Côte d'Ivoire 18 points, Rwanda 6, Burundi, Benin 5.
Golf
PGA Tour – Fall Series:
Frys.com Open in San Martin, California:
Winner: Bryce Molder 267 (−17)PO
Molder defeats Briny Baird on the sixth playoff hole, to win his first PGA Tour title.
European Tour:
Madrid Masters in Madrid, Spain:
Winner: Lee Slattery 273 (−15)
Slattery wins his first European Tour title.
LPGA Tour:
LPGA Hana Bank Championship in Incheon, South Korea:
Winner: Yani Tseng 202 (−14)
Tseng wins her sixth title of the year, and eleventh of her career.
Champions Tour:
Insperity Championship in The Woodlands, Texas:
Winner: Brad Faxon 134 (−10)
Faxon wins his first Champions Tour title.
Rugby union
World Cup knockout stage in New Zealand:
Quarter-finals:
In Wellington: 9–11
In Auckland: 33–10
Snooker
Players Tour Championship – Event 7: Kay Suzanne Memorial Trophy in Gloucester, England:
Final: Ronnie O'Sullivan 4–2 Matthew Stevens
O'Sullivan wins his 47th professional title.
Order of Merit (after 7 of 12 events): (1) O'Sullivan 24,400 (2) Neil Robertson 15,600 (3) Judd Trump 13,900
Tennis
ATP World Tour:
China Open in Beijing, China:
Final: Tomáš Berdych def. Marin Čilić 3–6, 6–4, 6–1
Berdych wins his sixth ATP Tour title.
Rakuten Japan Open Tennis Championships in Tokyo, Japan:
Final: Andy Murray def. Rafael Nadal 3–6, 6–2, 6–0
Murray wins his fourth title of the year, and 20th of his career.
WTA Tour:
China Open in Beijing, China:
Final: Agnieszka Radwańska def. Andrea Petkovic 7–5, 0–6, 6–4
Radwańska wins her third title of the year, and seventh of her career.
Volleyball
Men's Club World Championship in Doha, Qatar:
Pool A: Paykan 0–3 Zenit
Standings: Zenit 6 points (2 matches), Jastrzębski 3 (1), Spartans 0 (1), Paykan 0 (2).
Pool B:
Trentino 3–0 Al-Ahly
SESI 3–0 Al-Arabi
Standings: Trentino, SESI 3 points (1 match), Al-Arabi 2 (2), Al-Ahly 1 (2).
Women's Club World Championship in Doha, Qatar:
Pool B: Sollys Osasco 3–1 Chang
October 8, 2011 (Saturday)
Auto racing
Nationwide Series:
Kansas Lottery 300 in Kansas City, Kansas: (1) Brad Keselowski (Dodge; Penske Racing) (2) Carl Edwards (Ford; Roush Fenway Racing) (3) Elliott Sadler (Chevrolet; Kevin Harvick Incorporated)
Drivers' championship standings (after 30 of 34 races): (1) Ricky Stenhouse Jr. (Ford; Roush Fenway Racing) 1064 points (2) Sadler 1044 (3) Reed Sorenson (Dodge; MacDonald Motorsports) 994
Baseball
World Cup in Panama (teams in bold qualify for second round):
Group 1:
In Panama City:
4–5 (F/11)
– — match postponed due to rain
In Aguadulce:
– — match postponed due to rain
6–0
Standings: Panama 5–0, Canada, Netherlands 5–1, United States 3–2, Puerto Rico 3–3, Japan 1–5, Chinese Taipei, Greece 0–5.
Group 2:
In Chitre:
15–0 (F/5)
4–0
In Santiago de Veraguas:
8–2
16–1 (F/6)
Standings: Cuba 6–0, Venezuela, South Korea 4–2, Dominican Republic, Italy, Australia 3–3, Nicaragua 1–5, Germany 0–6.
Major League Baseball postseason:
American League Championship Series Game 1 in Arlington, Texas: Texas Rangers 3, Detroit Tigers 2. Rangers lead series 1–0.
Boxing
World Championships in Baku, Azerbaijan:
Light flyweight: Zou Shiming Shin Jong-Hun Pürevdorjiin Serdamba & David Ayrapetyan
Flyweight: Misha Aloyan Andrew Selby Jasurbek Latipov & Rau'shee Warren
Bantamweight: Lázaro Álvarez Luke Campbell John Joe Nevin & Anvar Yunusov
Lightweight: Vasyl Lomachenko Yasniel Toledo Gani Zhailauov & Domenico Valentino
Light welterweight: Éverton Lopes Denys Berinchyk Vincenzo Mangiacapre & Tom Stalker
Welterweight: Taras Shelestyuk Serik Sapiyev Egidijus Kavaliauskas & Vikas Krishan Yadav
Middleweight: Evhen Khytrov Ryota Murata Esquiva Florentino & Bogdan Juratoni
Light heavyweight: Julio César la Cruz Adilbek Niyazymbetov Egor Mekhontsev & Elshod Rasulov
Heavyweight: Oleksandr Usyk Teymur Mammadov Siarhei Karneyeu & Wang Xuanxuan
Super heavyweight: Magomedrasul Majidov Anthony Joshua Erik Pfeifer & Ivan Dychko
Cricket
ICC Intercontinental Cup, day 4 in Sharjah: 462 & 228 (73 overs); 328 & 131/7 (80 overs). Match drawn.
Standings (after 2 matches): 40 points, United Arab Emirates, Afghanistan 23, 17, , 16, 3, 0.
Champions League Twenty20 Semifinals in Chennai: Mumbai Indians 160/5 (20 overs); Somerset 150/7 (20 overs). Mumbai Indians win by 10 runs.
Cycling
UCI World Tour:
Tour of Beijing, Stage 4: Elia Viviani () 4h 09' 08" Peter Sagan () s.t. Juan José Haedo () s.t.
General classification (after stage 4): (1) Tony Martin () 11h 19' 27" (2) David Millar () + 17" (3) Chris Froome () + 26"
Field hockey
Oceania Cup in Hobart, Australia:
Men's Game 2: 3–3 . New Zealand lead series 1–0.
Women's Game 2: 3–3 . Australia lead series 1–0.
Figure skating
ISU Junior Grand Prix:
JGP Trofeo Walter Lombardi in Milan, Italy (RUS unless stated):
Ice Dance: Alexandra Stepanova/Ivan Bukin 149.98 points Valeria Zenkova/Valerie Sinitsin 130.58 Lauri Bonacorsi/Travis Mager 129.63
Standings (after 6 of 7 events): Victoria Sinitsina/Ruslan Zhiganshin & Stepanova/Bukin 30 points (2 events), Maria Nosulia/Evgen Kholoniuk & Anastasia Galyeta/Alexei Shumski 26 (2), Alexandra Aldridge/Daniel Eaton , Bonacorsi/Mager & Zenkova/Sinitsin 24 (2), Nicole Orford/Thomas Williams 20 (2), Shari Koch/Christian Nüchtern 18 (2)
Ladies: Yulia Lipnitskaya 183.05 points Anna Shershak 150.21 Hannah Miller 146.74
Standings (after 6 of 7 events): Lipnitskaia & Polina Shelepen 30 points (2 events), Vanessa Lam & Li Zijun 26 (2), Polina Korobeynikova & Polina Agafonova 22 (2), Satoko Miyahara 20 (2), Kim Hae-jin & Miu Sato 18 (2)
Football (soccer)
UEFA Euro 2012 qualifying, matchday 11 (team in bold qualifies for the Finals):
Group I: 0–1
Standings (after 7 matches unless stated): 21 points, Scotland 11, 10, 5, Liechtenstein 4 (8).
2012 Africa Cup of Nations qualification, matchday 6 (teams in bold qualify for the Finals):
Group A:
2–2
2–1
Final standings: Mali, Cape Verde 10 points, Zimbabwe 8, Liberia 5.
Group B:
4–2
2–2
Final standings: Guinea 14 points, Nigeria 11, Ethiopia 7, Madagascar 1.
Group C:
0–0
3–0
Final standings: Zambia 13 points, Libya 12, Mozambique 7, Comoros 1.
Group F: 1–1
Final standings: Burkina Faso 10 points, Gambia 4, 3.
Group G:
3–0
0–0
Final standings: Niger, South Africa, Sierra Leone 9 points, Egypt 5.
Group I:
0–0
0–2
Final standings: Ghana 16 points, Sudan 13, Congo 4, Swaziland 1.
Group J:
0–0
0–2
Final standings: Angola 12 points, Uganda 11, Kenya 8, Guinea-Bissau 3.
Group K:
2–2
2–0
Final standings: 17 points, Tunisia 14, Malawi 12, Togo 6, Chad 3.
Mixed martial arts
UFC 136 in Houston, Texas, United States (USA unless stated):
Lightweight Championship bout: Frankie Edgar (c) def. Gray Maynard via TKO (punches)
Featherweight Championship bout: José Aldo (c) def. Kenny Florian via unanimous decision (49–46, 49–46, 49–46)
Middleweight bout: Chael Sonnen def. Brian Stann via submission (arm triangle choke)
Featherweight bout: Nam Phan def. Leonard Garcia via unanimous decision (29–28, 29–28, 29–28)
Lightweight bout: Joe Lauzon def. Melvin Guillard via submission (rear naked choke)
Rugby league
Super League Play-offs:
Grand Final in Manchester: Leeds Rhinos 32–16 St. Helens
Leeds win the Grand Final for a record fifth time.
Rugby union
World Cup knockout stage in New Zealand:
Quarter-finals:
In Wellington: 10–22
In Auckland: 12–19
Volleyball
Men's Club World Championship in Doha, Qatar:
Pool A:
Spartans 0–3 Zenit
Jastrzębski 3–0 Paykan
Pool B: Al-Ahly 2–3 Al-Arabi
Women's Club World Championship in Doha, Qatar:
Pool A: VakıfBank TT 3–0 Mirador
October 7, 2011 (Friday)
Baseball
World Cup in Panama (teams in bold qualify for second round):
Group 1:
In Panama City:
3–1
3–12
In Aguadulce:
10–1
5–7
Standings: Netherlands, Panama 5–0, Canada 4–1, United States 3–2, Puerto Rico 2–3, Japan 1–4, Chinese Taipei, Greece 0–5.
Group 2:
In Chitre:
5–10
1–5
In Santiago de Veraguas:
9–11 (F/11)
6–4
Standings: Cuba 5–0, Venezuela 4–1, South Korea, Italy 3–2, Dominican Republic, Australia 2–3, Nicaragua 1–4, Germany 0–5.
Major League Baseball postseason:
National League Division Series:
Game 5 in Philadelphia: St. Louis Cardinals 1, Philadelphia Phillies 0. Cardinals win series 3–2.
Game 5 in Milwaukee: Milwaukee Brewers 3, Arizona Diamondbacks 2 (F/10). Brewers win series 3–2.
Basketball
WNBA Playoffs:
WNBA Finals Game 3 in Atlanta: Minnesota Lynx 73, Atlanta Dream 67. Lynx win series 3–0.
The Lynx win their first WNBA title.
Cricket
ICC Intercontinental Cup, day 3 in Sharjah: 462 & 212/5 (55 overs); 328 (112.4 overs; Mohammad Nabi 117, Arshad Ali 6/45). United Arab Emirates lead by 346 runs with 5 wickets remaining.
Champions League Twenty20 Semifinals in Bangalore: New South Wales Blues 203/2 (20 overs; David Warner 123*); Royal Challengers Bangalore 204/4 (18.3 overs). Royal Challengers Bangalore win by 6 wickets.
Cycling
UCI World Tour:
Tour of Beijing, Stage 3: Nicolas Roche () 3h 53' 15" Philip Deignan () s.t. Chris Froome () + 1"
General classification (after stage 3): (1) Tony Martin () 7h 10' 19" (2) David Millar () + 17" (3) Froome + 26"
Figure skating
ISU Junior Grand Prix:
JGP Trofeo Walter Lombardi in Milan, Italy:
Men: Yan Han 219.37 points Jason Brown 194.28 Lee June-hyoung 176.48
Standings (after 6 of 7 events): Yan 30 points (2 events), Brown, Ryuju Hino 28 (2), Keiji Tanaka 24 (2), Artur Dmitriev Jr. 22 (2), Zhang He, Lee & Timothy Dolensky 20 (2).
Football (soccer)
UEFA Euro 2012 qualifying, matchday 11 (teams in bold qualify for the Finals, teams in italics qualify for the play-offs):
Group A:
1–4
1–3
4–1
Standings (after 9 matches): Germany 27 points, Belgium 15, Turkey 14, Austria 11, Azerbaijan 7, Kazakhstan 3.
Group B:
4–1
0–1
0–2
Standings (after 9 matches): Russia 20 points, Republic of Ireland 18, Armenia 17, Slovakia 14, Macedonia 7, Andorra 0.
Group C:
1–1
1–2
Standings (after 9 matches unless stated): Italy 23 points, Estonia 16 (10), Serbia 15, 11, Northern Ireland 9, 4 (10).
Group D:
5–0
2–2
3–0
Standings (after 9 matches unless stated): France 20 points, Bosnia and Herzegovina 19, Romania 13, Belarus 13 (10), Albania 8, Luxembourg 4 (10).
Group E:
1–2
1–0
Standings (after 9 matches): Netherlands 27 points, Sweden 21, 18, Finland 9, Moldova 6, 0.
Group F:
2–0
2–0
Standings (after 9 matches): Greece 21 points, Croatia 19, 13, Latvia 11, 10, Malta 1.
Group G:
2–0
2–2
Standings (after 7 matches unless stated): England 18 points (8 matches), Montenegro 12, Switzerland 8, Wales 6, 5.
Group H:
1–4
5–3
Standings (after 7 matches unless stated): Portugal, Denmark 16 points, 13, Iceland 4 (8), Cyprus 2.
Group I: 0–2
Standings (after 7 matches unless stated): Spain 21 points, Czech Republic 10, 8 (6), 5, 4.
2014 FIFA World Cup qualification – CONCACAF second round, matchday 3:
Group A:
1–2
0–1
Standings (after 3 matches): El Salvador 9 points, Suriname 7, Dominican Republic 1, Cayman Islands 0.
Group B:
0–2
2–1
Standings (after 3 matches): Guyana 9 points, Trinidad and Tobago 6, Bermuda 3, Barbados 0.
Group C: 0–5
Standings (after 2 matches): Panama 6 points, 3, Dominica 0.
Group D:
0–7
1–1
Standings (after 3 matches): Canada 9 points, Saint Kitts and Nevis 5, Puerto Rico 2, Saint Lucia 0.
Group E:
0–3
1–4
Standings (after 3 matches): Guatemala 9 points, Grenada, Belize, Saint Vincent and the Grenadines 3.
Group F:
0–7
0–1
Standings (after 3 matches): Haiti, Antigua and Barbuda 9 points, Curaçao, U.S. Virgin Islands 0.
2014 FIFA World Cup qualification – CONMEBOL, matchday 1:
4–2
2–0
4–1
2–0
2012 Africa Cup of Nations qualification, matchday 6 (team in bold qualifies for the Finals):
Group E: 2–3
Standings: 13 points (5 matches), Cameroon 11 (6), Congo DR 7 (6), 0 (5).
Friendly internationals (top 10 in FIFA World Rankings):
0–1 (7)
October 6, 2011 (Thursday)
Baseball
World Cup in Panama (teams in bold qualify for second round):
Group 1:
In Panama City:
5–0
2–6
In Aguadulce:
3–0
4–0
Standings: Netherlands, Canada, Panama 4–0, United States 3–1, Puerto Rico 1–3, Japan, Chinese Taipei, Greece 0–4.
Group 2:
In Chitre:
3–4
7–2
In Santiago de Veraguas:
6–3
4–1
Standings: Cuba 4–0, Italy, Venezuela 3–1, Dominican Republic, South Korea 2–2, Nicaragua, Australia 1–3, Germany 0–4.
Major League Baseball postseason:
American League Division Series Game 5 in New York: Detroit Tigers 3, New York Yankees 2. Tigers win series 3–2.
Cricket
ICC Intercontinental Cup, day 2 in Sharjah: 462 (117.1 overs); 242/3 (74 overs; Mohammad Nabi 108*). Afghanistan trail by 220 runs with 7 wickets remaining in the 1st innings.
Cycling
UCI World Tour:
Tour of Beijing, Stage 2: Heinrich Haussler () 3h 03' 30" Denis Galimzyanov () s.t. Theo Bos () s.t.
General classification (after stage 2): (1) Tony Martin () 3h 17' 03" (2) David Millar () + 17" (3) Alex Dowsett () + 24"
Field hockey
Oceania Cup in Hobart, Australia:
Men's Game 1: 0–3 . New Zealand lead series 1–0.
Women's Game 1: 2–1 . Australia lead series 1–0.
Football (soccer)
UEFA Women's Champions League Round of 32, second leg (first leg scores in parentheses):
Rossiyanka 1–0 (2–0) Twente. Rossiyanka win 3–0 on aggregate.
Valur 0–3 (1–1) Glasgow City. Glasgow City win 4–1 on aggregate.
Brøndby 3–4 (2–0) Standard Liège. Brøndby win 5–4 on aggregate.
Rayo Vallecano 3–0 (4–1) PK-35. Rayo Vallecano win 7–1 on aggregate.
LdB Malmö 5–0 (1–2) Tavagnacco. LdB Malmö win 6–2 on aggregate.
Göteborg 7–0 (4–0) Osijek. Göteborg win 11–0 on aggregate.
October 5, 2011 (Wednesday)
Baseball
World Cup in Panama:
Group 1 in Panama City: 3–7
Standings: , , 3–0, United States 2–1, 1–2, Japan, , 0–3.
Major League Baseball postseason:
National League Division Series:
Game 4 in St. Louis: St. Louis Cardinals 5, Philadelphia Phillies 3. Series tied 2–2.
Game 4 in Phoenix, Arizona: Arizona Diamondbacks 10, Milwaukee Brewers 6. Series tied 2–2.
Basketball
WNBA Playoffs:
WNBA Finals Game 2 in Minneapolis: Minnesota Lynx 101, Atlanta Dream 95. Lynx lead series 2–0.
Cricket
ICC Intercontinental Cup, day 1 in Sharjah: 361/8 (96 overs); .
Cycling
UCI World Tour:
Tour of Beijing, Stage 1: Tony Martin () 13' 33" David Millar () + 17" Alex Dowsett () + 24"
Football (soccer)
UEFA Women's Champions League Round of 32, second leg (first leg scores in parentheses):
Torres 3–2 (2–0) ASA Tel Aviv. Torres win 5–2 on aggregate.
Frankfurt 4–1 (0–1) Stabæk. Frankfurt win 4–2 on aggregate.
Sparta Prague 2–1 (2–2) Apollon Limassol. Sparta Prague win 4–3 on aggregate.
Paris Saint-Germain 3–0 (2–0) Peamount United. Paris Saint-Germain win 5–0 on aggregate.
Energiya Voronezh 4–2 (1–1) Bristol Academy. Energiya Voronezh win 5–3 on aggregate.
Arsenal 6–0 (4–0) Bobruichanka. Arsenal win 10–0 on aggregate.
Lyon 3–0 (9–0) Olimpia Cluj. Lyon win 12–0 on aggregate.
Fortuna Hjørring 2–1 (3–0) YB Frauen. Fortuna Hjørring win 5–1 on aggregate.
Turbine Potsdam 8–2 (6–0) Þór/KA. Turbine Potsdam win 14–2 on aggregate.
Neulengbach 5–0 (1–2) SShVSM-Kairat Almaty. Neulengbach win 6–2 on aggregate.
Copa Sudamericana Round of 16 first leg:
Universidad Católica 0–2 Vélez Sarsfield
Aurora 3–1 Vasco da Gama
October 4, 2011 (Tuesday)
Baseball
World Cup in Panama:
Group 1:
In Panama City:
2–5
4–2
In Aguadulce:
2–12
1–15 (F/7)
Standings: Netherlands, Canada, Panama 3–0, United States 1–1, Puerto Rico 1–2, Japan 0–2, Chinese Taipei, Greece 0–3.
Group 2:
In Chitre:
6–3
8–0
In Santiago de Veraguas:
2–13 (F/7)
14–2 (F/7)
Standings: Cuba 3–0, Dominican Republic, South Korea, Italy, Venezuela 2–1, Nicaragua 1–2, Germany, Australia 0–3.
Major League Baseball postseason:
American League Division Series:
Game 4 in Detroit: New York Yankees 10, Detroit Tigers 1. Series tied 2–2.
Game 4 in St. Petersburg, Florida: Texas Rangers 4, Tampa Bay Rays 3. Rangers win series 3–1.
Rangers third baseman Adrián Beltré becomes only the seventh player to hit three home runs in a playoff game.
National League Division Series:
Game 3 in St. Louis: Philadelphia Phillies 3, St. Louis Cardinals 2. Phillies lead series 2–1.
Game 3 in Phoenix, Arizona: Arizona Diamondbacks 8, Milwaukee Brewers 1. Brewers lead series 2–1.
Football (soccer)
AFC Cup Semi-finals first leg:
Nasaf Qarshi 1–0 Al-Wehdat
Arbil 0–2 Al-Kuwait
Lamar Hunt U.S. Open Cup Final in Seattle: Seattle Sounders FC 2–0 Chicago Fire
Seattle win the Cup for the third successive year and become the first U.S. team to qualify for the 2012–13 CONCACAF Champions League.
October 3, 2011 (Monday)
Baseball
World Cup in Panama:
Group 1:
In Panama City:
1–3
8–4 (F/10)
In Aguadulce:
19–0 (F/5)
8–14
Standings: Netherlands, Panama, Canada 2–0, Puerto Rico 1–1, Japan, United States 0–1, Chinese Taipei, Greece 0–2.
Group 2:
In Chitre:
0–7
5–6 (F/10)
In Santiago de Veraguas:
3–0
2–5
Standings: Cuba, Venezuela 2–0, Dominican Republic, South Korea, Italy, Nicaragua 1–1, Germany, Australia 0–2.
Major League Baseball postseason:
American League Division Series:
Game 3 in St. Petersburg, Florida: Texas Rangers 4, Tampa Bay Rays 3. Rangers lead series 2–1.
Game 3 in Detroit: Detroit Tigers 5, New York Yankees 4. Tigers lead series 2–1.
October 2, 2011 (Sunday)
Auto racing
Sprint Cup Series – Chase for the Sprint Cup:
AAA 400 in Dover, Delaware: (1) Kurt Busch (Dodge; Penske Racing) (2) Jimmie Johnson (Chevrolet; Hendrick Motorsports) (3) Carl Edwards (Ford; Roush Fenway Racing)
Drivers' championship standings (after 29 of 36 races): (1) Kevin Harvick (Chevrolet; Richard Childress Racing) 2122 points (4 wins) (2) Edwards 2122 (1 win) (3) Tony Stewart (Chevrolet; Stewart Haas Racing) 2113
IndyCar Series:
Kentucky Indy 300 in Sparta, Kentucky: (1) Ed Carpenter (Sarah Fisher Racing) (2) Dario Franchitti (Chip Ganassi Racing) (3) Scott Dixon (Chip Ganassi Racing)
Drivers' championship standings (after 17 of 18 races): (1) Franchitti 573 points (2) Will Power (Team Penske) 555 (3) Dixon 518
World Rally Championship:
Rallye de France in Strasbourg, France: (1) Sébastien Ogier /Julien Ingrassia (Citroën DS3 WRC) (2) Dani Sordo /Carlos Del Barrio (Mini John Cooper Works WRC) (3) Mikko Hirvonen /Jarmo Lehtinen (Ford Fiesta RS WRC)
Drivers' championship standings (after 11 of 13 rallies): (1) Sébastien Loeb (Citroën DS3 WRC) & Hirvonen 196 points (3) Ogier 193
Baseball
World Cup in Panama:
Group 1:
In Panama City:
1–9
– — match postponed due to rain
In Aguadulce: 2–1
Group 2:
In Chitre:
0–14 (F/7)
5–4
In Santiago de Veraguas:
4–5
7–0
Major League Baseball postseason:
American League Division Series:
Game 2 in New York: Detroit Tigers 5, New York Yankees 3. Series tied 1–1.
National League Division Series:
Game 2 in Philadelphia: St. Louis Cardinals 5, Philadelphia Phillies 4. Series tied 1–1.
Game 2 in Milwaukee: Milwaukee Brewers 9, Arizona Diamondbacks 4. Brewers lead series 2–0.
Basketball
WNBA Playoffs:
WNBA Finals Game 1 in Minneapolis: Minnesota Lynx 88, Atlanta Dream 74. Lynx lead series 1–0.
FIBA Africa Championship for Women in Bamako, Mali:
Bronze medal game: 71–62
Final: 62–54
Angola win the title for the first time, and qualify for the Olympics.
Mali and Senegal qualify for the World Olympic Qualifying Tournament.
UAAP in San Juan, Philippines:
Women's Finals: Far Eastern University 68, Adamson University 57. FEU win best-of-3 series 2–1.
FEU win their 20th UAAP women's championship.
Football (soccer)
CAF Champions League Semifinals first leg: Al-Hilal 0–1 Espérance ST
Veikkausliiga, matchday 28 (team in bold qualify for Champions League): Mariehamn 0–2 HJK
Standings: HJK 70 points (28 matches), Inter Turku 49 (27), JJK 47 (28).
HJK win the title for the third successive time, and 24th time overall.
Golf
PGA Tour Fall Series:
Justin Timberlake Shriners Hospitals for Children Open in Las Vegas, Nevada:
Winner: Kevin Na 261 (−23)
Na wins his first PGA Tour title.
European Tour:
Alfred Dunhill Links Championship in Angus and Fife, Scotland:
Winner: Michael Hoey 266 (−22)
Hoey wins his third European Tour title.
Champions Tour:
SAS Championship in Cary, North Carolina:
Winner: Kenny Perry 205 (−11)
Perry wins his first Champions Tour title.
Horse racing
Prix de l'Arc de Triomphe in Paris: Danedream (trainer: Peter Schiergen, jockey: Andrasch Starke) Shareta (trainer: Alain de Royer-Dupré, jockey: Thierry Jarnet) Snow Fairy (trainer: Ed Dunlop, jockey: Frankie Dettori)
Motorcycle racing
Moto GP:
Japanese Grand Prix in Motegi, Japan (ESP unless stated):
MotoGP: (1) Dani Pedrosa (Honda) (2) Jorge Lorenzo (Yamaha) (3) Casey Stoner (Honda)
Riders' championship standings (after 15 of 18 rounds): (1) Stoner 300 points (2) Lorenzo 260 (3) Andrea Dovizioso (Honda) 196
Moto2 (all Suter): (1) Andrea Iannone (2) Marc Márquez (3) Thomas Lüthi
Riders' championship standings (after 14 of 17 rounds): (1) Márquez 235 points (2) Stefan Bradl (Kalex) 234 (3) Iannone 157
125cc: (1) Johann Zarco (Derbi) (2) Nicolás Terol (Aprilia) (3) Héctor Faubel (Aprilia)
Riders' championship standings (after 14 of 17 rounds): (1) Terol 261 points (2) Zarco 230 (3) Maverick Viñales (Aprilia) 190
Superbike:
Magny-Cours World Championship round in Magny-Cours, France:
Race 1: (1) Carlos Checa (Ducati 1098R) (2) Marco Melandri (Yamaha YZF-R1) (3) Leon Haslam (BMW S1000RR)
Race 2: (1) Checa (2) Melandri (3) Eugene Laverty (Yamaha YZF-R1)
Riders' championship standings (after 12 of 13 rounds): (1) Checa 467 points (2) Melandri 360 (3) Laverty 283
Supersport:
Magny-Cours World Championship round in Magny-Cours, France: (1) Luca Scassa (Yamaha YZF-R6) (2) Sam Lowes (Honda CBR600RR) (3) Broc Parkes (Kawasaki Ninja ZX-6R)
Riders' championship standings (after 11 of 12 rounds): (1) Chaz Davies (Yamaha YZF-R6) 181 points (2) Fabien Foret (Honda CBR600RR) 144 (3) Parkes & David Salom (Kawasaki Ninja ZX-6R) 136
Rugby league
NRL Grand Final in Sydney: Manly-Warringah Sea Eagles 24–10 New Zealand Warriors
Manly-Warringah win the title for the eighth time.
Rugby union
World Cup in New Zealand (teams in bold advance to the quarterfinals, teams in italics qualify for 2015 World Cup):
Pool A in Wellington: 79–15
Final standings: New Zealand 20 points, 11, 9, Canada 6, 2.
Pool B in Palmerston North: 25–7
Final standings: 18 points, Argentina 14, 11, Georgia 4, 0.
Pool C in Dunedin: 36–6
Final standings: Ireland 17 points, 15, Italy 10, 4, 1.
Pool D in Hamilton: 66–0
Final standings: 18 points, Wales 15, 10, Fiji 5, 0.
Snooker
Players Tour Championship – Event 6: Warsaw Classic in Warsaw, Poland:
Final: Ricky Walden 1–4 Neil Robertson
Robertson wins his eighth professional title.
Order of Merit (after 6 of 12 events): (1) Robertson 15,600 (2) Ronnie O'Sullivan 14,400 (3) Judd Trump 13,300
Tennis
ATP World Tour:
PTT Thailand Open in Bangkok, Thailand:
Final: Andy Murray def. Donald Young 6–2, 6–0
Murray wins his third title of the year, and 19th of his career.
Proton Malaysian Open in Kuala Lumpur, Malaysia:
Final: Janko Tipsarević def. Marcos Baghdatis 6–4, 7–5
Tipsarević wins his first ATP Tour title.
Volleyball
Women's European Championship in Belgrade, Serbia:
Bronze medal match: 2–3
Final: 2–3
Serbia win the title for the first time, and completes a rare "double" with the men's team also winning the European title last month.
Serbia and Germany already qualified for the World Cup.
Women's South American Championship in Callao, Peru:
Bronze medal match: 1–3
Final: 3–0
Brazil win the title for the 17th time and qualify for the World Cup.
October 1, 2011 (Saturday)
Australian rules football
AFL Grand Final in Melbourne: 12.9 (81)–18.11 (119)
Geelong win the title for the ninth time.
Auto racing
Nationwide Series:
OneMain Financial 200 in Dover, Delaware: (1) Carl Edwards (Ford; Roush Fenway Racing) (2) Brad Keselowski (Dodge; Penske Racing) (3) Clint Bowyer (Chevrolet; Kevin Harvick Incorporated)
Drivers' championship standings (after 29 of 34 races): (1) Ricky Stenhouse Jr. (Ford; Roush Fenway Racing) 1025 points (2) Elliott Sadler (Chevrolet; Kevin Harvick Incorporated) 1003 (3) Reed Sorenson (Chevrolet; Turner Motorsports) 976
Baseball
World Cup in Panama:
Group 1 in Panama City: 3–8
Major League Baseball postseason:
American League Division Series:
Game 2 in Arlington, Texas: Texas Rangers 8, Tampa Bay Rays 6. Series tied 1–1.
Game 1 in New York: New York Yankees 9, Detroit Tigers 3. Yankees lead series 1–0.
National League Division Series:
Game 1 in Philadelphia: Philadelphia Phillies 11, St. Louis Cardinals 6. Phillies lead series 1–0.
Game 1 in Milwaukee: Milwaukee Brewers 4, Arizona Diamondbacks 1. Brewers lead series 1–0.
Nippon Professional Baseball news: The Fukuoka SoftBank Hawks clinch their second consecutive Pacific League title with a 3–0 win over the Saitama Seibu Lions, and earn a one-win and home field advantage for Climax Series Final Stage.
Basketball
FIBA Africa Championship for Women in Bamako, Mali:
Semifinals:
51–56
89–63
FIBA Americas Championship for Women in Neiva, Colombia:
Third place game: 59–46
Final: 33–74
Brazil win the title for the fifth time, and qualify for the 2012 Olympics.
Argentina, Canada and Cuba qualify for World Olympic Qualifying Tournament.
UAAP in Quezon City, Philippines:
Men's Finals: Ateneo de Manila University 82, Far Eastern University 69. Ateneo win best-of-3 series 2–0.
Ateneo win their fourth consecutive, seventh UAAP and 21st men's championship.
Figure skating
ISU Junior Grand Prix:
JGP Cup of Austria in Innsbruck, Austria:
Men: Yan Han 205.86 points Gordei Gorshkov 180.25 Keiji Tanaka 173.98
Standings (after 5 of 7 events): Ryuju Hino 28 points (2 events), Tanaka 24 (2), Zhang He & Timothy Dolensky 20 (2), Yan, Joshua Farris , Jason Brown & Maxim Kovtun 15 (1).
Ice Dance: Victoria Sinitsina/Ruslan Zhiganshin 151.10 points Alexandra Aldridge/Daniel Eaton 136.85 Maria Nosulia/Evgen Kholoniuk 128.34
Standings (after 5 of 7 events): Sinitsina/Zhiganshin 30 points (2 events), Nosulia/Kholoniuk & Anastasia Galyeta/Alexei Shumski 26 (2), Aldridge/Eaton 24 (2), Nicole Orford/Thomas Williams 20 (2).
Football (soccer)
CAF Champions League Semifinals first leg: Wydad Casablanca 1–0 Enyimba
Mixed martial arts
UFC Live: Cruz vs. Johnson in Washington, D.C., United States (USA unless stated):
Bantamweight Championship bout: Dominick Cruz (c) def. Demetrious Johnson via unanimous decision (50–45, 49–46, 50–45)
Heavyweight bout: Stefan Struve def. Pat Barry via submission (triangle choke)
Welterweight bout: Anthony Johnson def. Charlie Brenneman via TKO (head kick)
Lightweight bout: Matt Wiman def. Mac Danzig via unanimous decision (29–28, 29–28, 29–28)
Rugby league
Super League Play-offs:
Semi-finals: St. Helens 26–18 Wigan Warriors
Rugby union
World Cup in New Zealand (teams in bold advance to the quarterfinals, teams in italics qualify for 2015 World Cup):
Pool A in Wellington: 14–19
Standings (after 4 matches unless stated): 15 points (3 matches), France 11, Tonga 9, 6 (3), 2.
Pool B in Auckland: 16–12
Standings (after 4 matches unless stated): England 18 points, Scotland 11, 10 (3), 4 (3), 0.
Pool C in Nelson: 68–22
Standings (after 4 matches unless stated): Australia 15 points, 13 (3), 10 (3), 4, Russia 1.
Tennis
WTA Tour:
Toray Pan Pacific Open in Tokyo, Japan:
Final: Agnieszka Radwańska def. Vera Zvonareva 6–3, 6–2
Radwańska wins her sixth WTA Tour title.
Volleyball
Women's European Championship in Belgrade, Serbia:
Semifinals:
3–0
3–2
Germany and Serbia qualify for the FIVB World Cup.
Women's South American Championship in Callao, Peru:
Semifinals:
0–3
3–0
Brazil qualify for the FIVB World Cup.
References
X
|
```python
import pytest
import logging
import time
from helpers.cluster import ClickHouseCluster, run_and_check
cluster = ClickHouseCluster(__file__)
node1 = cluster.add_instance(
"node1", main_configs=["config/text_log.xml"], mem_limit="5g"
)
@pytest.fixture(scope="module")
def started_cluster():
try:
cluster.start()
yield cluster
finally:
cluster.shutdown()
def get_latest_mem_limit():
for _ in range(10):
try:
mem_limit = float(
node1.query(
"""
select extract(message, '\\d+\\.\\d+') from system.text_log
where message like '%Setting max_server_memory_usage was set to%' and
message not like '%like%' order by event_time desc limit 1
"""
).strip()
)
return mem_limit
except Exception:
time.sleep(1)
raise Exception("Cannot get memory limit")
def test_observe_memory_limit(started_cluster):
original_max_mem = get_latest_mem_limit()
logging.debug(f"get original memory limit {original_max_mem}")
run_and_check(["docker", "update", "--memory=10g", node1.docker_id])
for _ in range(30):
time.sleep(10)
new_max_mem = get_latest_mem_limit()
logging.debug(f"get new memory limit {new_max_mem}")
if new_max_mem > original_max_mem:
return
raise Exception("the memory limit does not increase as expected")
def test_memory_usage_doesnt_include_page_cache_size(started_cluster):
try:
# populate page cache with 4GB of data; it might be killed by OOM killer but it is fine
node1.exec_in_container(
["dd", "if=/dev/zero", "of=outputfile", "bs=1M", "count=4K"]
)
except Exception:
pass
observer_refresh_period = int(
node1.query(
"select value from system.server_settings where name = 'cgroups_memory_usage_observer_wait_time'"
).strip()
)
time.sleep(observer_refresh_period + 1)
max_mem_usage_from_cgroup = node1.query(
"""
SELECT max(toUInt64(replaceRegexpAll(message, 'Read current memory usage (\\d+) bytes.*', '\\1'))) AS max_mem
FROM system.text_log
WHERE logger_name = 'CgroupsMemoryUsageObserver' AND message LIKE 'Read current memory usage%bytes%'
"""
).strip()
assert int(max_mem_usage_from_cgroup) < 2 * 2**30
```
|
Peter Gunn is an album by saxophonist/conductor Ted Nash, led by Nash and arranged and produced by Maxwell Davis that was recorded in 1959 and released on the Crown label. The album is not Henry Mancini's popular score of the TV series Peter Gunn, which featured Nash playing "Dreamsville" on the original soundtrack, but a reinterpretation of the compositions issued to take advantage of the popularity of the series and theme.
Reception
The AllMusic review by Stephan Cook noted it: "features some of the best Los Angeles session players of the time ... with brass-heavy, crime jazz tunes like "Fallout!" ... The bulk of the material, though, is in a cool, West Coast jazz vein ... Also included are the kind of sleepy-eyed lounge cuts Mancini excelled at, like "Dreamsville," "A Quiet Gass," and "Soft Sounds." This is an excellent collection and one that ranks with Mancini's other fine film and TV work from the '50s and '60s".
Track listing
All compositions by Henry Mancini
"Peter Gunn" – 2:03
"Sorta Blue" – 2:54
"The Brothers Go to Mothers" – 2:42
"Dreamsville" – 3:38
"Soft Sounds" – 3:34
"Fallout !" – 3:10
"The Floater" – 3:15
"Session at Pete's Pad" – 3:47
"A Profound Gass" – 3:08
"Brief and Breezy" – 3:27
Personnel
Ted Nash - alto saxophone, flute, conductor
Pete Candoli - trumpet (tracks 1, 2, 4, 5 & 8)
Dick Nash – trombone (tracks 1-5 & 8)
Ronnie Lang – baritone saxophone (tracks 1, 2, 4, 5 & 8)
John T. Williams (tracks 1-5 & 8), Russ Freeman (tracks 6, 7, 9 & 10) – piano
Larry Bunker – vibraphone
Tony Rizzi – guitar (tracks 6, 7, 9 & 10)
Cliff Hils (tracks 6, 7, 9 & 10), Rolly Bundock (tracks 1-5 & 8) - bass
Alvin Stoller - drums
Joe Triscari, Larry Sullivan, Uan Rasey - trumpet (tracks 1, 4, 5 & 8)
David Wells, Jimmy Priddy, Karl de Karske – trombone (tracks 1, 4, 5 & 8)
Art Maebe Jr., George Hyde, Jim Decker, Bill Hinshaw – French horn (tracks 1, 4, 5 & 8)
Maxwell Davis – arranger
References
Ted Nash (saxophonist, born 1922) albums
1959 albums
Crown Records albums
Albums recorded at Radio Recorders
|
```xml
<?xml version="1.0" encoding="utf-8"?>
<!--
~
~
~ path_to_url
~
~ Unless required by applicable law or agreed to in writing, software
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-->
<manifest xmlns:android="path_to_url"
package="com.marktony.zhihudaily">
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<application
android:name=".PaperPlaneApp"
android:allowBackup="true"
android:fullBackupContent="true"
android:icon="@mipmap/ic_launcher"
android:roundIcon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity
android:name=".ui.MainActivity"
android:configChanges="orientation|keyboardHidden|screenSize|screenLayout"
android:label="@string/app_name"
android:theme="@style/AppTheme">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<meta-data
android:name="android.app.shortcuts"
android:resource="@xml/shortcuts" />
</activity>
<activity android:name=".details.DetailsActivity"
android:configChanges="orientation|keyboardHidden|screenSize|screenLayout"
android:theme="@style/AppTheme.TranslucentStatus" />
android:configChanges="orientation|keyboardHidden|screenSize|screenLayout"
android:label="@string/open_source_licenses"
android:theme="@style/AppTheme" />
<service android:name=".service.CacheService" />
</application>
</manifest>
```
|
```go
package main
import (
"fmt"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/session"
"github.com/aws/aws-sdk-go/service/iam"
)
// Usage:
// go run iam_deleteaccesskey.go
func main() {
// Initialize a session in us-west-2 that the SDK will use to load
// credentials from the shared credentials file ~/.aws/credentials.
sess, err := session.NewSession(&aws.Config{
Region: aws.String("us-west-2")},
)
// Create a IAM service client.
svc := iam.New(sess)
result, err := svc.DeleteAccessKey(&iam.DeleteAccessKeyInput{
AccessKeyId: aws.String("ACCESS_KEY_ID"),
UserName: aws.String("USER_NAME"),
})
if err != nil {
fmt.Println("Error", err)
return
}
fmt.Println("Success", result)
}
```
|
Lieutenant-Colonel Edward Charles Lentaigne DSO (16 June 1884 – 28 July 1962) was a British Indian Army officer of the 4th Gurkha Rifles.
He married Cecilia Mary Bunbury. His daughter was the medical artist Mollie Lentaigne and his son was second lieutenant John Wilfred O'Neill Lentaigne MC of the Rifle Brigade who died in 1942 at El Alamein during the Second World War.
References
1884 births
1962 deaths
Gurkhas
British Indian Army officers
Indian Army personnel of World War I
Companions of the Distinguished Service Order
Edward Charles
Royal Lincolnshire Regiment officers
Indian Army personnel of World War II
|
Emilie Bydwell (born 31 August 1985 in Toronto, Ontario) is a Canadian American rugby union player.
Bydwell was a 3 time All-American and was also selected as the 2007 Collegiate Player of the Year. Bydwell was named the head coach of the United States women's national rugby sevens team on November 23, 2021.
She made her USA eagles debut against England in August 2008.
Emilie is a lesbian and has been married to Michaela Staniford since 2015. They have a daughter Ollie, born in 2018.
References
External links
1985 births
Living people
21st-century American women
American female rugby union players
Canadian female rugby union players
Lesbian sportswomen
American lesbians
Canadian lesbians
United States women's international rugby union players
American female rugby sevens players
LGBT rugby union players
Canadian LGBT rugby union players
American LGBT rugby union players
Rugby union players from Ontario
Sportspeople from Toronto
American rugby union coaches
Coaches of international rugby sevens teams
Rugby union centres
|
John Reilly (February 22, 1836 – April 19, 1904) was a Democratic member of the U.S. House of Representatives from Pennsylvania.
Biography
John Reilly was born in Abnerville, Indiana County, Pennsylvania. He received home instruction and attended the public schools. He entered the service of the Pennsylvania Railroad, on April 10, 1854. He was appointed superintendent of transportation April 1, 1865. He served until his resignation in 1875, having been elected to Congress. He served as president of the Bells Gap Railroad from 1871 to 1873 and president of the board of city commissioners of Altoona, Pennsylvania, in 1872 and 1873.
Reilly was elected as a Democrat in 1874 to the Forty-fourth Congress. He was an unsuccessful candidate for reelection in 1876. He again served as superintendent of transportation of the Pennsylvania Railroad Company and served from 1877 until his resignation in 1885. He moved to Philadelphia in 1881. He was interested in various business enterprises.
Reilly died in Philadelphia in 1904 and was interred in West Laurel Hill Cemetery in Bala Cynwyd, Pennsylvania.
References
Sources
The Political Graveyard
1836 births
1904 deaths
People from Indiana County, Pennsylvania
Politicians from Altoona, Pennsylvania
19th-century American railroad executives
Burials at West Laurel Hill Cemetery
Democratic Party members of the United States House of Representatives from Pennsylvania
19th-century American politicians
|
In trigonometry, the law of tangents or tangent rule is a statement about the relationship between the tangents of two angles of a triangle and the lengths of the opposing sides.
In Figure 1, , , and are the lengths of the three sides of the triangle, and , , and are the angles opposite those three respective sides. The law of tangents states that
The law of tangents, although not as commonly known as the law of sines or the law of cosines, is equivalent to the law of sines, and can be used in any case where two sides and the included angle, or two angles and a side, are known.
Proof
To prove the law of tangents one can start with the law of sines:
Let
so that
It follows that
Using the trigonometric identity, the factor formula for sines specifically
we get
As an alternative to using the identity for the sum or difference of two sines, one may cite the trigonometric identity
(see tangent half-angle formula).
Application
The law of tangents can be used to compute the missing side and angles of a triangle in which two sides and and the enclosed angle are given. From
one can compute ; together with this yields and ; the remaining side can then be computed using the law of sines. In the time before electronic calculators were available, this method
was preferable to an application of the law of cosines , as this latter law necessitated an additional lookup in a logarithm table, in order to compute the square root. In modern times the law of tangents may have better numerical properties than the law of cosines: If is small, and and are almost equal, then an application of the law of cosines leads to a subtraction of almost equal values, incurring catastrophic cancellation.
Spherical version
On a sphere of unit radius, the sides of the triangle are arcs of great circles. Accordingly, their lengths can be expressed in radians or any other units of angular measure. Let , , be the angles at the three vertices of the triangle and let , , be the respective lengths of the opposite sides. The spherical law of tangents says
History
The law of tangents for planar triangles was described in the 11th century by Ibn Muʿādh al-Jayyānī.
The law of tangents for spherical triangles was described in the 13th century by Persian mathematician Nasir al-Din al-Tusi (1201–1274), who also presented the law of sines for plane triangles in his five-volume work Treatise on the Quadrilateral.
See also
Law of sines
Law of cosines
Law of cotangents
Mollweide's formula
Half-side formula
Tangent half-angle formula
Notes
Trigonometry
Articles containing proofs
Theorems about triangles
|
```smalltalk
//your_sha256_hash--------------
// <auto-generated>
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//
// This template generates PublicResXFileCodeGenerator compatible code plus some
// useful extensions.
//
// The original version provided by ResXResourceManager is restricted to resource key names
// that are valid c# identifiers to keep this template simple (KISS!).
//
// Us it as it is or as a scaffold to generate the code you need.
//
// As long as you have ResXResourceManager running in the background, the generated code
// will be kept up to date.
//
//your_sha256_hash--------------
namespace ResXManager.Properties {
using System;
/// <summary>
/// A strongly-typed resource class, for looking up localized strings, etc.
/// </summary>
// This class was auto-generated by a text template.
// To add or remove a member, edit your .ResX file.
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("ResXResourceManager", "1.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
public class Resources {
private static global::System.Resources.ResourceManager resourceMan;
private static global::System.Globalization.CultureInfo resourceCulture;
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
internal Resources() {
}
/// <summary>
/// Returns the cached ResourceManager instance used by this class.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
public static global::System.Resources.ResourceManager ResourceManager {
get {
if (object.ReferenceEquals(resourceMan, null)) {
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("ResXManager.Properties.Resources", typeof(Resources).Assembly);
resourceMan = temp;
}
return resourceMan;
}
}
/// <summary>
/// Overrides the current thread's CurrentUICulture property for all
/// resource lookups using this strongly typed resource class.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
public static global::System.Globalization.CultureInfo Culture {
get {
return resourceCulture;
}
set {
resourceCulture = value;
}
}
/// <summary>
/// Looks up a localized string similar to "Assembly location: {0}"
/// </summary>
public static string AssemblyLocation {
get {
return ResourceManager.GetString("AssemblyLocation", resourceCulture) ?? string.Empty;
}
}
/// <summary>
/// Looks up a localized string similar to "Dark"
/// </summary>
public static string ColorTheme_Dark {
get {
return ResourceManager.GetString("ColorTheme_Dark", resourceCulture) ?? string.Empty;
}
}
/// <summary>
/// Looks up a localized string similar to "Light"
/// </summary>
public static string ColorTheme_Light {
get {
return ResourceManager.GetString("ColorTheme_Light", resourceCulture) ?? string.Empty;
}
}
/// <summary>
/// Looks up a localized string similar to "System"
/// </summary>
public static string ColorTheme_System {
get {
return ResourceManager.GetString("ColorTheme_System", resourceCulture) ?? string.Empty;
}
}
/// <summary>
/// Looks up a localized string similar to "Color Theme"
/// </summary>
public static string ColorTheme_Title {
get {
return ResourceManager.GetString("ColorTheme_Title", resourceCulture) ?? string.Empty;
}
}
/// <summary>
/// Looks up a localized string similar to "ResX Resource Manager loaded.&#13;&#10;Hom..."
/// </summary>
public static string IntroMessage {
get {
return ResourceManager.GetString("IntroMessage", resourceCulture) ?? string.Empty;
}
}
/// <summary>
/// Looks up a localized string similar to "The project has no resource file for the language ..."
/// </summary>
public static string ProjectHasNoResourceFile {
get {
return ResourceManager.GetString("ProjectHasNoResourceFile", resourceCulture) ?? string.Empty;
}
}
/// <summary>
/// Looks up a localized string similar to "Some files in your project are not writable. You m..."
/// </summary>
public static string ProjectHasReadOnlyFiles {
get {
return ResourceManager.GetString("ProjectHasReadOnlyFiles", resourceCulture) ?? string.Empty;
}
}
/// <summary>
/// Looks up a localized string similar to "Do you want to save the changes?"
/// </summary>
public static string QuerySaveChanges {
get {
return ResourceManager.GetString("QuerySaveChanges", resourceCulture) ?? string.Empty;
}
}
/// <summary>
/// Looks up a localized string similar to "Version: {0}"
/// </summary>
/// <remarks>
/// @Invariant
/// </remarks>
public static string Version {
get {
return ResourceManager.GetString("Version", resourceCulture) ?? string.Empty;
}
}
}
/// <summary>
/// Keys of all available strings in the applications resx-resources.
/// </summary>
[global::System.CodeDom.Compiler.GeneratedCode("ResXResourceManager", "1.0.0.0")]
[global::System.Runtime.CompilerServices.CompilerGenerated]
public enum StringResourceKey
{
/// <summary>
/// Looks up a localized string similar to Assembly location: {0}.
/// </summary>
AssemblyLocation,
/// <summary>
/// Looks up a localized string similar to Dark.
/// </summary>
ColorTheme_Dark,
/// <summary>
/// Looks up a localized string similar to Light.
/// </summary>
ColorTheme_Light,
/// <summary>
/// Looks up a localized string similar to System.
/// </summary>
ColorTheme_System,
/// <summary>
/// Looks up a localized string similar to Color Theme.
/// </summary>
ColorTheme_Title,
/// <summary>
/// Looks up a localized string similar to ResX Resource Manager loaded.&#13;&#10;Hom....
/// </summary>
IntroMessage,
/// <summary>
/// Looks up a localized string similar to The project has no resource file for the language ....
/// </summary>
ProjectHasNoResourceFile,
/// <summary>
/// Looks up a localized string similar to Some files in your project are not writable. You m....
/// </summary>
ProjectHasReadOnlyFiles,
/// <summary>
/// Looks up a localized string similar to Do you want to save the changes?.
/// </summary>
QuerySaveChanges,
/// <summary>
/// Looks up a localized string similar to Version: {0}.
/// </summary>
/// <remarks>
/// @Invariant
/// </remarks>
Version,
}
/// <summary>
/// Specifies a localized description for an object.
/// </summary>
[global::System.CodeDom.Compiler.GeneratedCode("ResXResourceManager", "1.0.0.0")]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
[AttributeUsage(AttributeTargets.All, AllowMultiple=false)]
public sealed class LocalizedDescriptionAttribute : System.ComponentModel.DescriptionAttribute
{
private readonly string _resourceKey;
/// <summary>
/// Initializes a new instance of the <see cref="LocalizedDescriptionAttribute"/> class.
/// </summary>
/// <param name="resourceKey">The resource key of the associated resource.</param>
public LocalizedDescriptionAttribute(StringResourceKey resourceKey)
{
_resourceKey = resourceKey.ToString();
}
/// <summary>
/// Gets the localized description from the resource id stored in this attribute.
/// </summary>
public override string Description
{
get
{
return Resources.ResourceManager.GetString(_resourceKey);
}
}
}
/// <summary>
/// Specifies a localized display name for an object.
/// </summary>
[global::System.CodeDom.Compiler.GeneratedCode("ResXResourceManager", "1.0.0.0")]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
[AttributeUsage(AttributeTargets.All, AllowMultiple=false)]
public sealed class LocalizedDisplayNameAttribute : System.ComponentModel.DisplayNameAttribute
{
private readonly string _resourceKey;
/// <summary>
/// Initializes a new instance of the <see cref="LocalizedDisplayNameAttribute"/> class.
/// </summary>
/// <param name="resourceKey">The resource key of the associated resource.</param>
public LocalizedDisplayNameAttribute(StringResourceKey resourceKey)
{
_resourceKey = resourceKey.ToString();
}
/// <summary>
/// Gets the localized display name from the resource id stored in this attribute.
/// </summary>
public override string DisplayName
{
get
{
return Resources.ResourceManager.GetString(_resourceKey);
}
}
}
/// <summary>
/// Specifies a localized category for an object.
/// </summary>
[global::System.CodeDom.Compiler.GeneratedCode("ResXResourceManager", "1.0.0.0")]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
[AttributeUsage(AttributeTargets.All, AllowMultiple=false)]
public sealed class LocalizedCategoryAttribute : System.ComponentModel.CategoryAttribute
{
/// <summary>
/// Initializes a new instance of the <see cref="LocalizedCategoryAttribute"/> class.
/// </summary>
/// <param name="resourceKey">The resource key of the associated resource.</param>
public LocalizedCategoryAttribute(StringResourceKey resourceKey)
: base(resourceKey.ToString())
{
}
/// <summary>
/// Gets the localized category name from the resource id stored in this attribute.
/// </summary>
protected override string GetLocalizedString(string value)
{
return Resources.ResourceManager.GetString(value);
}
}
/// <summary>
/// Specifies a localized display name for an object.
/// </summary>
[global::System.CodeDom.Compiler.GeneratedCode("ResXResourceManager", "1.0.0.0")]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
[AttributeUsage(AttributeTargets.All, AllowMultiple = true)]
public sealed class LocalizedTextAttribute : global::TomsToolbox.Essentials.TextAttribute
{
// This code is generated by Resources.Designer.t4
// If you get compile errors because you don't use the TomsToolbox.Essentials NuGet package,
// either remove this part in the Resources.Designer.t4 file, or add a reference to the TomsToolbox.Essentials NuGet package.
// Just search for this text and follow the instructions above.
private readonly string _resourceKey;
/// <summary>
/// Initializes a new instance of the <see cref="LocalizedTextAttribute"/> class.
/// </summary>
/// <param name="key">Any user defined key to specify the usage of this text.</param>
/// <param name="resourceKey">The resource key of the associated resource.</param>
public LocalizedTextAttribute(object key, StringResourceKey resourceKey)
: base(key)
{
_resourceKey = resourceKey.ToString();
}
/// <summary>
/// Gets the localized text from the resource id stored in this attribute.
/// </summary>
public override string Text
{
get
{
return Resources.ResourceManager.GetString(_resourceKey);
}
}
}
/// <summary>
/// A localizable version of the <see cref="System.ComponentModel.DataAnnotations.DataTypeAttribute"/> class.
/// </summary>
[global::System.CodeDom.Compiler.GeneratedCode("ResXResourceManager", "1.0.0.0")]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Parameter | AttributeTargets.Property, AllowMultiple = false)]
public class DataTypeAttribute : System.ComponentModel.DataAnnotations.DataTypeAttribute
{
private StringResourceKey _resourceKey;
/// <summary>
/// Initializes a new instance of the <see cref="DataTypeAttribute"/> class.
/// </summary>
public DataTypeAttribute(StringResourceKey resourceKey, System.ComponentModel.DataAnnotations.DataType dataType)
: base(dataType)
{
ResourceKey = resourceKey;
}
/// <summary>
/// Initializes a new instance of the <see cref="DataTypeAttribute"/> class.
/// </summary>
public DataTypeAttribute(StringResourceKey resourceKey, string customDataType)
: base(customDataType)
{
ResourceKey = resourceKey;
}
/// <summary>
/// Gets or sets the resource key.
/// </summary>
public StringResourceKey ResourceKey
{
get
{
return _resourceKey;
}
set
{
_resourceKey = value;
ErrorMessageResourceType = typeof(Resources);
ErrorMessageResourceName = value.ToString();
}
}
}
/// <summary>
/// A localizable version of the <see cref="System.ComponentModel.DataAnnotations.RangeAttribute"/> class.
/// </summary>
[global::System.CodeDom.Compiler.GeneratedCode("ResXResourceManager", "1.0.0.0")]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Parameter | AttributeTargets.Property, AllowMultiple = false)]
public class RangeAttribute : System.ComponentModel.DataAnnotations.RangeAttribute
{
private StringResourceKey _resourceKey;
/// <summary>
/// Initializes a new instance of the <see cref="RangeAttribute"/> class.
/// </summary>
public RangeAttribute(StringResourceKey resourceKey, int minimum, int maximum)
: base(minimum, maximum)
{
ResourceKey = resourceKey;
}
/// <summary>
/// Initializes a new instance of the <see cref="RangeAttribute"/> class.
/// </summary>
public RangeAttribute(StringResourceKey resourceKey, double minimum, double maximum)
: base(minimum, maximum)
{
ResourceKey = resourceKey;
}
/// <summary>
/// Initializes a new instance of the <see cref="RangeAttribute"/> class.
/// </summary>
public RangeAttribute(StringResourceKey resourceKey, Type type, string minimum, string maximum)
: base(type, minimum, maximum)
{
ResourceKey = resourceKey;
}
/// <summary>
/// Gets or sets the resource key.
/// </summary>
public StringResourceKey ResourceKey
{
get
{
return _resourceKey;
}
set
{
_resourceKey = value;
ErrorMessageResourceType = typeof(Resources);
ErrorMessageResourceName = value.ToString();
}
}
}
/// <summary>
/// A localizable version of the <see cref="System.ComponentModel.DataAnnotations.RegularExpressionAttribute"/> class.
/// </summary>
[global::System.CodeDom.Compiler.GeneratedCode("ResXResourceManager", "1.0.0.0")]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Parameter | AttributeTargets.Property, AllowMultiple = false)]
public class RegularExpressionAttribute : System.ComponentModel.DataAnnotations.RegularExpressionAttribute
{
private StringResourceKey _resourceKey;
/// <summary>
/// Initializes a new instance of the <see cref="RegularExpressionAttribute"/> class.
/// </summary>
public RegularExpressionAttribute(StringResourceKey resourceKey, string pattern)
: base(pattern)
{
ResourceKey = resourceKey;
}
/// <summary>
/// Gets or sets the resource key.
/// </summary>
public StringResourceKey ResourceKey
{
get
{
return _resourceKey;
}
set
{
_resourceKey = value;
ErrorMessageResourceType = typeof(Resources);
ErrorMessageResourceName = value.ToString();
}
}
}
/// <summary>
/// A localizable version of the <see cref="System.ComponentModel.DataAnnotations.RequiredAttribute"/> class.
/// </summary>
[global::System.CodeDom.Compiler.GeneratedCode("ResXResourceManager", "1.0.0.0")]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Parameter | AttributeTargets.Property, AllowMultiple = false)]
public class RequiredAttribute : System.ComponentModel.DataAnnotations.RequiredAttribute
{
private StringResourceKey _resourceKey;
/// <summary>
/// Initializes a new instance of the <see cref="RequiredAttribute"/> class.
/// </summary>
public RequiredAttribute(StringResourceKey resourceKey)
: base()
{
ResourceKey = resourceKey;
}
/// <summary>
/// Gets or sets the resource key.
/// </summary>
public StringResourceKey ResourceKey
{
get
{
return _resourceKey;
}
set
{
_resourceKey = value;
ErrorMessageResourceType = typeof(Resources);
ErrorMessageResourceName = value.ToString();
}
}
}
/// <summary>
/// A localizable version of the <see cref="System.ComponentModel.DataAnnotations.StringLengthAttribute"/> class.
/// </summary>
[global::System.CodeDom.Compiler.GeneratedCode("ResXResourceManager", "1.0.0.0")]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Parameter | AttributeTargets.Property, AllowMultiple = false)]
public class StringLengthAttribute : System.ComponentModel.DataAnnotations.StringLengthAttribute
{
private StringResourceKey _resourceKey;
/// <summary>
/// Initializes a new instance of the <see cref="StringLengthAttribute"/> class.
/// </summary>
public StringLengthAttribute(StringResourceKey resourceKey, int maximumLength)
: base(maximumLength)
{
ResourceKey = resourceKey;
}
/// <summary>
/// Gets or sets the resource key.
/// </summary>
public StringResourceKey ResourceKey
{
get
{
return _resourceKey;
}
set
{
_resourceKey = value;
ErrorMessageResourceType = typeof(Resources);
ErrorMessageResourceName = value.ToString();
}
}
}
}
```
|
```html
<html lang="en">
<head>
<title>Readline Init File Syntax - Debugging with GDB</title>
<meta http-equiv="Content-Type" content="text/html">
<meta name="description" content="Debugging with GDB">
<meta name="generator" content="makeinfo 4.11">
<link title="Top" rel="start" href="index.html#Top">
<link rel="up" href="Readline-Init-File.html#Readline-Init-File" title="Readline Init File">
<link rel="next" href="Conditional-Init-Constructs.html#Conditional-Init-Constructs" title="Conditional Init Constructs">
<link href="path_to_url" rel="generator-home" title="Texinfo Homepage">
<!--
Permission is granted to copy, distribute and/or modify this document
any later version published by the Free Software Foundation; with the
Invariant Sections being ``Free Software'' and ``Free Software Needs
Free Documentation'', with the Front-Cover Texts being ``A GNU Manual,''
and with the Back-Cover Texts as in (a) below.
(a) The FSF's Back-Cover Text is: ``You are free to copy and modify
this GNU Manual. Buying copies from GNU Press supports the FSF in
developing GNU and promoting software freedom.''
-->
<meta http-equiv="Content-Style-Type" content="text/css">
<style type="text/css"><!--
pre.display { font-family:inherit }
pre.format { font-family:inherit }
pre.smalldisplay { font-family:inherit; font-size:smaller }
pre.smallformat { font-family:inherit; font-size:smaller }
pre.smallexample { font-size:smaller }
pre.smalllisp { font-size:smaller }
span.sc { font-variant:small-caps }
span.roman { font-family:serif; font-weight:normal; }
span.sansserif { font-family:sans-serif; font-weight:normal; }
--></style>
</head>
<body>
<div class="node">
<p>
<a name="Readline-Init-File-Syntax"></a>
Next: <a rel="next" accesskey="n" href="Conditional-Init-Constructs.html#Conditional-Init-Constructs">Conditional Init Constructs</a>,
Up: <a rel="up" accesskey="u" href="Readline-Init-File.html#Readline-Init-File">Readline Init File</a>
<hr>
</div>
<h4 class="subsection">32.3.1 Readline Init File Syntax</h4>
<p>There are only a few basic constructs allowed in the
Readline init file. Blank lines are ignored.
Lines beginning with a ‘<samp><span class="samp">#</span></samp>’ are comments.
Lines beginning with a ‘<samp><span class="samp">$</span></samp>’ indicate conditional
constructs (see <a href="Conditional-Init-Constructs.html#Conditional-Init-Constructs">Conditional Init Constructs</a>). Other lines
denote variable settings and key bindings.
<dl>
<dt>Variable Settings<dd>You can modify the run-time behavior of Readline by
altering the values of variables in Readline
using the <code>set</code> command within the init file.
The syntax is simple:
<pre class="example"> set <var>variable</var> <var>value</var>
</pre>
<p class="noindent">Here, for example, is how to
change from the default Emacs-like key binding to use
<code>vi</code> line editing commands:
<pre class="example"> set editing-mode vi
</pre>
<p>Variable names and values, where appropriate, are recognized without regard
to case. Unrecognized variable names are ignored.
<p>Boolean variables (those that can be set to on or off) are set to on if
the value is null or empty, <var>on</var> (case-insensitive), or 1. Any other
value results in the variable being set to off.
<p>A great deal of run-time behavior is changeable with the following
variables.
<p><a name="index-variables_002c-readline-3076"></a>
<dl>
<dt><code>bell-style</code><dd><a name="index-bell_002dstyle-3077"></a>Controls what happens when Readline wants to ring the terminal bell.
If set to ‘<samp><span class="samp">none</span></samp>’, Readline never rings the bell. If set to
‘<samp><span class="samp">visible</span></samp>’, Readline uses a visible bell if one is available.
If set to ‘<samp><span class="samp">audible</span></samp>’ (the default), Readline attempts to ring
the terminal's bell.
<br><dt><code>bind-tty-special-chars</code><dd><a name="index-bind_002dtty_002dspecial_002dchars-3078"></a>If set to ‘<samp><span class="samp">on</span></samp>’, Readline attempts to bind the control characters
treated specially by the kernel's terminal driver to their Readline
equivalents.
<br><dt><code>comment-begin</code><dd><a name="index-comment_002dbegin-3079"></a>The string to insert at the beginning of the line when the
<code>insert-comment</code> command is executed. The default value
is <code>"#"</code>.
<br><dt><code>completion-display-width</code><dd><a name="index-completion_002ddisplay_002dwidth-3080"></a>The number of screen columns used to display possible matches
when performing completion.
The value is ignored if it is less than 0 or greater than the terminal
screen width.
A value of 0 will cause matches to be displayed one per line.
The default value is -1.
<br><dt><code>completion-ignore-case</code><dd><a name="index-completion_002dignore_002dcase-3081"></a>If set to ‘<samp><span class="samp">on</span></samp>’, Readline performs filename matching and completion
in a case-insensitive fashion.
The default value is ‘<samp><span class="samp">off</span></samp>’.
<br><dt><code>completion-map-case</code><dd><a name="index-completion_002dmap_002dcase-3082"></a>If set to ‘<samp><span class="samp">on</span></samp>’, and <var>completion-ignore-case</var> is enabled, Readline
treats hyphens (‘<samp><span class="samp">-</span></samp>’) and underscores (‘<samp><span class="samp">_</span></samp>’) as equivalent when
performing case-insensitive filename matching and completion.
<br><dt><code>completion-prefix-display-length</code><dd><a name="index-completion_002dprefix_002ddisplay_002dlength-3083"></a>The length in characters of the common prefix of a list of possible
completions that is displayed without modification. When set to a
value greater than zero, common prefixes longer than this value are
replaced with an ellipsis when displaying possible completions.
<br><dt><code>completion-query-items</code><dd><a name="index-completion_002dquery_002ditems-3084"></a>The number of possible completions that determines when the user is
asked whether the list of possibilities should be displayed.
If the number of possible completions is greater than this value,
Readline will ask the user whether or not he wishes to view
them; otherwise, they are simply listed.
This variable must be set to an integer value greater than or equal to 0.
A negative value means Readline should never ask.
The default limit is <code>100</code>.
<br><dt><code>convert-meta</code><dd><a name="index-convert_002dmeta-3085"></a>If set to ‘<samp><span class="samp">on</span></samp>’, Readline will convert characters with the
eighth bit set to an <span class="sc">ascii</span> key sequence by stripping the eighth
bit and prefixing an <ESC> character, converting them to a
meta-prefixed key sequence. The default value is ‘<samp><span class="samp">on</span></samp>’.
<br><dt><code>disable-completion</code><dd><a name="index-disable_002dcompletion-3086"></a>If set to ‘<samp><span class="samp">On</span></samp>’, Readline will inhibit word completion.
Completion characters will be inserted into the line as if they had
been mapped to <code>self-insert</code>. The default is ‘<samp><span class="samp">off</span></samp>’.
<br><dt><code>editing-mode</code><dd><a name="index-editing_002dmode-3087"></a>The <code>editing-mode</code> variable controls which default set of
key bindings is used. By default, Readline starts up in Emacs editing
mode, where the keystrokes are most similar to Emacs. This variable can be
set to either ‘<samp><span class="samp">emacs</span></samp>’ or ‘<samp><span class="samp">vi</span></samp>’.
<br><dt><code>echo-control-characters</code><dd>When set to ‘<samp><span class="samp">on</span></samp>’, on operating systems that indicate they support it,
readline echoes a character corresponding to a signal generated from the
keyboard. The default is ‘<samp><span class="samp">on</span></samp>’.
<br><dt><code>enable-keypad</code><dd><a name="index-enable_002dkeypad-3088"></a>When set to ‘<samp><span class="samp">on</span></samp>’, Readline will try to enable the application
keypad when it is called. Some systems need this to enable the
arrow keys. The default is ‘<samp><span class="samp">off</span></samp>’.
<br><dt><code>enable-meta-key</code><dd>When set to ‘<samp><span class="samp">on</span></samp>’, Readline will try to enable any meta modifier
key the terminal claims to support when it is called. On many terminals,
the meta key is used to send eight-bit characters.
The default is ‘<samp><span class="samp">on</span></samp>’.
<br><dt><code>expand-tilde</code><dd><a name="index-expand_002dtilde-3089"></a>If set to ‘<samp><span class="samp">on</span></samp>’, tilde expansion is performed when Readline
attempts word completion. The default is ‘<samp><span class="samp">off</span></samp>’.
<br><dt><code>history-preserve-point</code><dd><a name="index-history_002dpreserve_002dpoint-3090"></a>If set to ‘<samp><span class="samp">on</span></samp>’, the history code attempts to place the point (the
current cursor position) at the
same location on each history line retrieved with <code>previous-history</code>
or <code>next-history</code>. The default is ‘<samp><span class="samp">off</span></samp>’.
<br><dt><code>history-size</code><dd><a name="index-history_002dsize-3091"></a>Set the maximum number of history entries saved in the history list. If
set to zero, the number of entries in the history list is not limited.
<br><dt><code>horizontal-scroll-mode</code><dd><a name="index-horizontal_002dscroll_002dmode-3092"></a>This variable can be set to either ‘<samp><span class="samp">on</span></samp>’ or ‘<samp><span class="samp">off</span></samp>’. Setting it
to ‘<samp><span class="samp">on</span></samp>’ means that the text of the lines being edited will scroll
horizontally on a single screen line when they are longer than the width
of the screen, instead of wrapping onto a new screen line. By default,
this variable is set to ‘<samp><span class="samp">off</span></samp>’.
<br><dt><code>input-meta</code><dd><a name="index-input_002dmeta-3093"></a><a name="index-meta_002dflag-3094"></a>If set to ‘<samp><span class="samp">on</span></samp>’, Readline will enable eight-bit input (it
will not clear the eighth bit in the characters it reads),
regardless of what the terminal claims it can support. The
default value is ‘<samp><span class="samp">off</span></samp>’. The name <code>meta-flag</code> is a
synonym for this variable.
<br><dt><code>isearch-terminators</code><dd><a name="index-isearch_002dterminators-3095"></a>The string of characters that should terminate an incremental search without
subsequently executing the character as a command (see <a href="Searching.html#Searching">Searching</a>).
If this variable has not been given a value, the characters <ESC> and
<kbd>C-J</kbd> will terminate an incremental search.
<br><dt><code>keymap</code><dd><a name="index-keymap-3096"></a>Sets Readline's idea of the current keymap for key binding commands.
Acceptable <code>keymap</code> names are
<code>emacs</code>,
<code>emacs-standard</code>,
<code>emacs-meta</code>,
<code>emacs-ctlx</code>,
<code>vi</code>,
<code>vi-move</code>,
<code>vi-command</code>, and
<code>vi-insert</code>.
<code>vi</code> is equivalent to <code>vi-command</code>; <code>emacs</code> is
equivalent to <code>emacs-standard</code>. The default value is <code>emacs</code>.
The value of the <code>editing-mode</code> variable also affects the
default keymap.
<br><dt><code>mark-directories</code><dd>If set to ‘<samp><span class="samp">on</span></samp>’, completed directory names have a slash
appended. The default is ‘<samp><span class="samp">on</span></samp>’.
<br><dt><code>mark-modified-lines</code><dd><a name="index-mark_002dmodified_002dlines-3097"></a>This variable, when set to ‘<samp><span class="samp">on</span></samp>’, causes Readline to display an
asterisk (‘<samp><span class="samp">*</span></samp>’) at the start of history lines which have been modified.
This variable is ‘<samp><span class="samp">off</span></samp>’ by default.
<br><dt><code>mark-symlinked-directories</code><dd><a name="index-mark_002dsymlinked_002ddirectories-3098"></a>If set to ‘<samp><span class="samp">on</span></samp>’, completed names which are symbolic links
to directories have a slash appended (subject to the value of
<code>mark-directories</code>).
The default is ‘<samp><span class="samp">off</span></samp>’.
<br><dt><code>match-hidden-files</code><dd><a name="index-match_002dhidden_002dfiles-3099"></a>This variable, when set to ‘<samp><span class="samp">on</span></samp>’, causes Readline to match files whose
names begin with a ‘<samp><span class="samp">.</span></samp>’ (hidden files) when performing filename
completion.
If set to ‘<samp><span class="samp">off</span></samp>’, the leading ‘<samp><span class="samp">.</span></samp>’ must be
supplied by the user in the filename to be completed.
This variable is ‘<samp><span class="samp">on</span></samp>’ by default.
<br><dt><code>menu-complete-display-prefix</code><dd><a name="index-menu_002dcomplete_002ddisplay_002dprefix-3100"></a>If set to ‘<samp><span class="samp">on</span></samp>’, menu completion displays the common prefix of the
list of possible completions (which may be empty) before cycling through
the list. The default is ‘<samp><span class="samp">off</span></samp>’.
<br><dt><code>output-meta</code><dd><a name="index-output_002dmeta-3101"></a>If set to ‘<samp><span class="samp">on</span></samp>’, Readline will display characters with the
eighth bit set directly rather than as a meta-prefixed escape
sequence. The default is ‘<samp><span class="samp">off</span></samp>’.
<br><dt><code>page-completions</code><dd><a name="index-page_002dcompletions-3102"></a>If set to ‘<samp><span class="samp">on</span></samp>’, Readline uses an internal <code>more</code>-like pager
to display a screenful of possible completions at a time.
This variable is ‘<samp><span class="samp">on</span></samp>’ by default.
<br><dt><code>print-completions-horizontally</code><dd>If set to ‘<samp><span class="samp">on</span></samp>’, Readline will display completions with matches
sorted horizontally in alphabetical order, rather than down the screen.
The default is ‘<samp><span class="samp">off</span></samp>’.
<br><dt><code>revert-all-at-newline</code><dd><a name="index-revert_002dall_002dat_002dnewline-3103"></a>If set to ‘<samp><span class="samp">on</span></samp>’, Readline will undo all changes to history lines
before returning when <code>accept-line</code> is executed. By default,
history lines may be modified and retain individual undo lists across
calls to <code>readline</code>. The default is ‘<samp><span class="samp">off</span></samp>’.
<br><dt><code>show-all-if-ambiguous</code><dd><a name="index-show_002dall_002dif_002dambiguous-3104"></a>This alters the default behavior of the completion functions. If
set to ‘<samp><span class="samp">on</span></samp>’,
words which have more than one possible completion cause the
matches to be listed immediately instead of ringing the bell.
The default value is ‘<samp><span class="samp">off</span></samp>’.
<br><dt><code>show-all-if-unmodified</code><dd><a name="index-show_002dall_002dif_002dunmodified-3105"></a>This alters the default behavior of the completion functions in
a fashion similar to <var>show-all-if-ambiguous</var>.
If set to ‘<samp><span class="samp">on</span></samp>’,
words which have more than one possible completion without any
possible partial completion (the possible completions don't share
a common prefix) cause the matches to be listed immediately instead
of ringing the bell.
The default value is ‘<samp><span class="samp">off</span></samp>’.
<br><dt><code>skip-completed-text</code><dd><a name="index-skip_002dcompleted_002dtext-3106"></a>If set to ‘<samp><span class="samp">on</span></samp>’, this alters the default completion behavior when
inserting a single match into the line. It's only active when
performing completion in the middle of a word. If enabled, readline
does not insert characters from the completion that match characters
after point in the word being completed, so portions of the word
following the cursor are not duplicated.
For instance, if this is enabled, attempting completion when the cursor
is after the ‘<samp><span class="samp">e</span></samp>’ in ‘<samp><span class="samp">Makefile</span></samp>’ will result in ‘<samp><span class="samp">Makefile</span></samp>’
rather than ‘<samp><span class="samp">Makefilefile</span></samp>’, assuming there is a single possible
completion.
The default value is ‘<samp><span class="samp">off</span></samp>’.
<br><dt><code>visible-stats</code><dd><a name="index-visible_002dstats-3107"></a>If set to ‘<samp><span class="samp">on</span></samp>’, a character denoting a file's type
is appended to the filename when listing possible
completions. The default is ‘<samp><span class="samp">off</span></samp>’.
</dl>
<br><dt>Key Bindings<dd>The syntax for controlling key bindings in the init file is
simple. First you need to find the name of the command that you
want to change. The following sections contain tables of the command
name, the default keybinding, if any, and a short description of what
the command does.
<p>Once you know the name of the command, simply place on a line
in the init file the name of the key
you wish to bind the command to, a colon, and then the name of the
command.
There can be no space between the key name and the colon – that will be
interpreted as part of the key name.
The name of the key can be expressed in different ways, depending on
what you find most comfortable.
<p>In addition to command names, readline allows keys to be bound
to a string that is inserted when the key is pressed (a <var>macro</var>).
<dl>
<dt><var>keyname</var>: <var>function-name</var> or <var>macro</var><!-- /@w --><dd><var>keyname</var> is the name of a key spelled out in English. For example:
<pre class="example"> Control-u: universal-argument
Meta-Rubout: backward-kill-word
Control-o: "> output"
</pre>
<p>In the above example, <kbd>C-u</kbd> is bound to the function
<code>universal-argument</code>,
<kbd>M-DEL</kbd> is bound to the function <code>backward-kill-word</code>, and
<kbd>C-o</kbd> is bound to run the macro
expressed on the right hand side (that is, to insert the text
‘<samp><span class="samp">> output</span></samp>’ into the line).
<p>A number of symbolic character names are recognized while
processing this key binding syntax:
<var>DEL</var>,
<var>ESC</var>,
<var>ESCAPE</var>,
<var>LFD</var>,
<var>NEWLINE</var>,
<var>RET</var>,
<var>RETURN</var>,
<var>RUBOUT</var>,
<var>SPACE</var>,
<var>SPC</var>,
and
<var>TAB</var>.
<br><dt>"<var>keyseq</var>": <var>function-name</var> or <var>macro</var><!-- /@w --><dd><var>keyseq</var> differs from <var>keyname</var> above in that strings
denoting an entire key sequence can be specified, by placing
the key sequence in double quotes. Some <span class="sc">gnu</span> Emacs style key
escapes can be used, as in the following example, but the
special character names are not recognized.
<pre class="example"> "\C-u": universal-argument
"\C-x\C-r": re-read-init-file
"\e[11~": "Function Key 1"
</pre>
<p>In the above example, <kbd>C-u</kbd> is again bound to the function
<code>universal-argument</code> (just as it was in the first example),
‘<samp><kbd>C-x</kbd> <kbd>C-r</kbd></samp>’ is bound to the function <code>re-read-init-file</code>,
and ‘<samp><span class="samp"><ESC> <[> <1> <1> <~></span></samp>’ is bound to insert
the text ‘<samp><span class="samp">Function Key 1</span></samp>’.
</dl>
<p>The following <span class="sc">gnu</span> Emacs style escape sequences are available when
specifying key sequences:
<dl>
<dt><kbd>\C-</kbd><dd>control prefix
<br><dt><kbd>\M-</kbd><dd>meta prefix
<br><dt><kbd>\e</kbd><dd>an escape character
<br><dt><kbd>\\</kbd><dd>backslash
<br><dt><kbd>\"</kbd><dd><">, a double quotation mark
<br><dt><kbd>\'</kbd><dd><'>, a single quote or apostrophe
</dl>
<p>In addition to the <span class="sc">gnu</span> Emacs style escape sequences, a second
set of backslash escapes is available:
<dl>
<dt><code>\a</code><dd>alert (bell)
<br><dt><code>\b</code><dd>backspace
<br><dt><code>\d</code><dd>delete
<br><dt><code>\f</code><dd>form feed
<br><dt><code>\n</code><dd>newline
<br><dt><code>\r</code><dd>carriage return
<br><dt><code>\t</code><dd>horizontal tab
<br><dt><code>\v</code><dd>vertical tab
<br><dt><code>\</code><var>nnn</var><dd>the eight-bit character whose value is the octal value <var>nnn</var>
(one to three digits)
<br><dt><code>\x</code><var>HH</var><dd>the eight-bit character whose value is the hexadecimal value <var>HH</var>
(one or two hex digits)
</dl>
<p>When entering the text of a macro, single or double quotes must
be used to indicate a macro definition.
Unquoted text is assumed to be a function name.
In the macro body, the backslash escapes described above are expanded.
Backslash will quote any other character in the macro text,
including ‘<samp><span class="samp">"</span></samp>’ and ‘<samp><span class="samp">'</span></samp>’.
For example, the following binding will make ‘<samp><kbd>C-x</kbd><span class="samp"> \</span></samp>’
insert a single ‘<samp><span class="samp">\</span></samp>’ into the line:
<pre class="example"> "\C-x\\": "\\"
</pre>
</dl>
</body></html>
```
|
M. Diane Koken is an American legal and regulatory consultant who serves as a court-appointed special advocate for children (CASA) in Pennsylvania.
She is also a former Insurance Commissioner of the Pennsylvania Department of Insurance, and currently serves on the boards of multiple organizations across the Commonwealth of Pennsylvania.
Biography
Born in Lancaster, Pennsylvania, Koken graduated from Penn Manor High School, was subsequently awarded a bachelor's degree from Millersville University of Pennsylvania, magna cum laude in 1972, and a Juris Doctor degree from the Charles Widger School of Law at Villanova University in 1975.
She then began her insurance industry career with the Provident Mutual Life Insurance Company of Philadelphia, ultimately working her way up to become vice president, general counsel and corporate secretary.
Koken served as the Insurance Commissioner of the Commonwealth of Pennsylvania from 1997 to 2007. She was appointed acting commissioner by Pennsylvania Governor Tom Ridge in July 2007 and was then confirmed by the Pennsylvania State Senate as commissioner later that same year. During her decade-long tenure, in which she subsequently served under Pennsylvania governors Mark Schweiker and Ed Rendell, and became the second longest-serving insurance commissioner in the state's history (as of 2007), the agency undertook seven thousand field investigations and market-conduct examinations, which resulted in three hundred and seventeen million dollars in civil penalty restitutions and more than sixty-nine million dollars in restitutions paid to consumers who filed insurance-related complaints. In addition, the agency established a consumer liaison unit, significantly increased the number of children enrolled in the Children's Health Insurance Program (CHIP), created a basic health insurance program for low-income adults, and implemented the Mcare malpractice insurance abatement program.
In 2007, Koken was elected to the board of directors of the Nationwide Mutual Insurance Company.
In 2019, she was elected to the boards of directors of the Nationwide Mutual Funds and the Nationwide Variable Insurance Trusts.
Previously appointed as the first chair of the Interstate Insurance Product Regulation Commission, she also served as vice chair of the International Commission on Holocaust Era Insurance Claims and as president of the National Association of Insurance Commissioners. During her tenure with the Holocaust Era Insurance Claims commission, more than fifteen hundred Holocaust victims and their families were assisted with filing insurance claims for property that had been plundered by Nazis during World War II.
A member of the Women's Council of the United Way, she also currently serves on the boards of directors of Capital Blue Cross, The Hershey Company, the Hershey Trust Company, The M.S. Hershey Foundation, and the Milton Hershey School. Appointed to the Milton Hershey School's board in 2016, she has served as the board's chair since 2021.
References
Living people
State cabinet secretaries of Pennsylvania
Year of birth missing (living people)
State insurance commissioners of the United States
|
Emily Alice Lloyd-Pack (born 29 September 1970), known as Emily Lloyd, is a British actress. At the age of 16, she starred in her debut and breakthrough role in the 1987 film Wish You Were Here, for which she received critical acclaim and Best Actress awards from the National Society of Film Critics and the Evening Standard British Film Awards. She subsequently relocated to Manhattan at 17, received numerous film offers, and starred in the 1989 films Cookie and In Country.
Lloyd's mental health began to decline in her late teens, and she missed out on several prominent roles due to a combination of factors. She turned down the lead role in the 1990 film Pretty Woman as she had already agreed to star in Mermaids, from which she was later recast. She was fired from the 1992 film Husbands and Wives as her deteriorating health affected her ability to work, and was also replaced in the 1995 film Tank Girl. In 1997, a journalist said Lloyd was "in danger of becoming better known for the parts she has lost than those she has played". Though she continued to act in films during this time, she was mostly relegated to supporting roles.
Lloyd's mental health continued to deteriorate in later years. While she played the lead role in the 2002 independent film The Honeytrap to critical acclaim, and also performed in theatrical productions, she had difficulty finding work and was diagnosed with several mental health conditions. By 2013, Lloyd's health had stabilised. That same year she published an autobiography, Wish I Was There.
Early life
Lloyd was born in London, the daughter of Sheila Ball (née Mackie, later Lloyd-Pack), a theatrical agent who was a long-time secretary at Harold Pinter's stage agency, and actor Roger Lloyd-Pack. Her grandfather, Charles Lloyd-Pack, was also a stage and film actor. Lloyd's parents separated when she was 18 months old; her father moved out of the family home though Emily continued to live with her mother in Milner Square, Islington. Lloyd-Pack married telephone engineer Martin Ball and had a second daughter, Charlotte, when Lloyd was five; however the couple separated two months after her birth. Her father married Jehane Markham in 2000; they had three sons: Hartley, Louis and Spencer.
Film career
At the age of 15, Lloyd was taking acting lessons at the Italia Conti School in London. In 1986, director David Leland cast her as Lynda, the leading role in his film Wish You Were Here. The film was based loosely on the memoirs of Cynthia Payne. Lloyd's younger half-sister Charlotte played the 11-year-old Lynda in a flashback sequence. Wish You Were Here received an International Federation of Film Critics award at the 1987 Cannes Film Festival, and Lloyd received widespread acclaim for her performance. Roger Ebert said she was the key to the film's performance, calling it "one of the great debut roles for a young actress". Lloyd received the 'Best Actress' award from the National Society of Film Critics in 1987, and also at the 1987 Evening Standard British Film Awards. She was also nominated for the BAFTA Award for Best Actress in a Leading Role in 1988.
Following her success, Steven Spielberg warned her to not get involved in the film industry and to "be a kid and go to Disneyland". Lloyd, however, moved to Manhattan where she was living alone at 17. She received numerous film offers and reportedly beat over 5,000 actresses, including Jodie Foster, for the lead role in the 1989 film Cookie. Lloyd reported that her mental health deteriorated in Manhattan, and began developing a tic, had difficulty concentrating, and was hearing voices. She later said she was aware she needed help but did not know how to go about getting treatment. Her co-star in Cookie, Peter Falk, became so frustrated with her behaviour during filming that he slapped her, after which she slapped him back. Lloyd's performance in Cookie was praised by The New York Times.
Her next role was in the 1989 film In Country opposite Bruce Willis, though the two stars reportedly did not get along during filming. Rick Groen from The Globe and Mail praised Lloyd's performance as "letter perfect – her accent impeccable and her energy immense". Lloyd had to turn down an offer for the lead role in Pretty Woman, as she had already been contracted to star in the 1990 film Mermaids. Lloyd was cast as the daughter of the character played by the film's star, Cher. Cher, however, thought that Lloyd did not look enough like her to portray her daughter and complained about her casting. The original director of the film, Lasse Hallström, was fired at Cher's insistence, and Lloyd was subsequently told she was no longer required. Her part was given to Winona Ryder. Lloyd sued Orion Pictures for breach of contract and received $175,000 in damages.
Her next role was in the 1990 film Chicago Joe and the Showgirl; Roger Ebert commented that Lloyd "shows again, in only her fourth role, what a remarkable new talent she is." Shortly thereafter she began dating musician Gavin Rossdale. According to Lloyd the relationship was troubled, and one night at his apartment alone, she attempted suicide by taking aspirin and slashing her wrists. She was found by one of Rossdale's friends and spent the next six weeks in hospital. She was cast in Woody Allen's 1992 film Husbands and Wives, but was fired by him after two weeks due to her ill health. Allen complained Lloyd was spending too much time in her trailer; Lloyd later stated that was because she was making herself vomit. Later in 1992, she had a supporting role in Robert Redford's A River Runs Through It. The Hollywood Reporter said that Lloyd provided "another memorable performance", while Malcolm Johnson from the Hartford Courant said she and co-star Brad Pitt brought "verve and charm" to the film. In 1995, she was initially cast as the eponymous lead character for the film Tank Girl. The film's director, Rachel Talalay, states she fired Lloyd for refusing to shave her head for the role. Lloyd, who had spent four months training for the film, disputes this, saying she offered to rescheduled her appointment with the film's hair stylist to the following day as the stylist had a dinner date, after which Talalay ostensibly fired her for "being difficult". Lloyd said she was actually fired due to their personality clashes. Lloyd states she "went to pieces" after Tank Girl, believing she was cursed.
In 1996, she appeared in the Sean Bean football film When Saturday Comes, then had a supporting role in the critically acclaimed film Welcome to Sarajevo. In 1997, Lloyd went to India where she took the anti-malaria drug mefloquine, which is contraindicated for people with mental disorders. Lloyd became sick on the trip and was also bitten by a stray dog. Lloyd attributes her subsequent mental breakdown to the combination of the drug and the attack. She lost on the two-week trip, and developed obsessive-compulsive disorder afterward. Despite this, she continued to work in film, appearing in Boogie Boy later that year. In 1998, she appeared in the film Brand New World, her last performance until she played the lead role in the independent thriller The Honeytrap in 2002, for which she received critical acclaim. The following year, she starred in the film Riverworld.
Theatre career
Lloyd made her début on the stage in 1996 as Bella Kooling in Max Klapper at the Electric Cinema. In 1997, she was cast as Eliza Doolittle in the Albery Theatre production of Pygmalion, produced by Bill Kenwright. It was to be her West End debut. Shortly after rehearsals began, the original director Giles Havergal walked out, with reports he found Lloyd impossible to work with. Lloyd later left the production herself, citing an issue with another member of the cast. A journalist from The Independent subsequently commented that Lloyd was "in danger of becoming better known for the parts she has lost than those she has played". In 2003, she appeared as Ophelia in Hamlet at the Shakespeare Festival in Leeds and Brighton. Lloyd spoke positively of her experience in the play, though, according to The Daily Telegraph, one reviewer said her performance left audiences "visibly cringing".
Later life
By 2003, Lloyd was struggling to find acting work. Cassandra Jardine from The Daily Telegraph stated that during an interview Lloyd frequently lost track of her sentences, stared into the distance and made sudden exclamations for no apparent reason. Lloyd attributed her mental state to the mefloquine exacerbating her existing anxiety and depression issues, and attributed her lack of regular acting work to these conditions and the stigma surrounding mental illness. By this time, Lloyd had lost contact with her Hollywood connections, and had had to sell the London apartment she bought with her film earnings. In 2005, she was diagnosed with attention deficit disorder, and told Suzanne Kerrins from the Sunday Mirror that while she did receive film offers, she was focusing on getting better, adding that she sometimes wished she had never been given the role in Wish You Were Here as it had been "both a blessing and a curse". Lloyd said she did not want anybody's sympathy, rather she just wanted "to feel well again".
In April 2013, Lloyd stated that she had been calm and stable for the past few years. She said she had no regrets regarding her life, though wished "that on a few occasions [she'd] been able to enjoy the experiences fully". In May 2013, Lloyd published an autobiography, Wish I Was There. Following the birth of her daughter in 2014, Lloyd stated she was happy and that her mental illness had "faded into the background".
Personal life
Until 2005, Lloyd's only public long-term relationship was with Danny Huston. The couple began dating in 1993 and split in late 1994. In 2013, Lloyd said she had been sexually abused by a family friend when she was five years old, which was a major cause of her anxiety and depression. In October 2014, Lloyd had a daughter, Arrabelle, with her partner, vocalist Christian Jupp.
Filmography
Film
Television
Awards and nominations
References
Bibliography
External links
1970 births
Living people
Actresses from London
Alumni of the Italia Conti Academy of Theatre Arts
British memoirists
British women memoirists
English film actresses
English people of Austrian-Jewish descent
English stage actresses
English television actresses
20th-century English actresses
21st-century English actresses
People with obsessive–compulsive disorder
|
Vezot () is a commune in the Sarthe department in the region of Pays de la Loire in north-western France.
See also
Communes of the Sarthe department
References
Communes of Sarthe
|
```c
/* $OpenBSD: sprintf.c,v 1.19 2017/11/28 06:55:49 tb Exp $ */
/*-
* The Regents of the University of California. All rights reserved.
*
* This code is derived from software contributed to Berkeley by
* Chris Torek.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* 3. Neither the name of the University nor the names of its contributors
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*/
#include <stdio.h>
#include <string.h>
#include <stdarg.h>
#include <limits.h>
#include "local.h"
#if defined(APIWARN)
__warn_references(sprintf,
"sprintf() is often misused, please use snprintf()");
#endif
int
sprintf(char *str, const char *fmt, ...)
{
int ret;
va_list ap;
FILE f;
struct __sfileext fext;
_FILEEXT_SETUP(&f, &fext);
f._file = -1;
f._flags = __SWR | __SSTR;
f._bf._base = f._p = (unsigned char *)str;
f._bf._size = f._w = INT_MAX;
va_start(ap, fmt);
ret = __vfprintf(&f, fmt, ap);
va_end(ap);
*f._p = '\0';
return (ret);
}
```
|
```objective-c
/******************************************************************************
*
*
* 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.
******************************************************************************/
#pragma once
#include "apidefs.h"
#include "stringise.h"
DOCUMENT(R"(The types of several pre-defined and known sections. This allows consumers of the API
to recognise and understand the contents of the section.
Note that sections above the highest value here may be encountered if they were written in a new
version of RenderDoc that addes a new section type. They should be considered equal to
:data:`Unknown` by any processing.
.. data:: Unknown
An unknown section - any custom or non-predefined section will have this type.
.. data:: FrameCapture
This section contains the actual captured frame, in RenderDoc's internal chunked representation.
The contents can be fetched as structured data with or without replaying the frame.
The name for this section will be "renderdoc/internal/framecapture".
.. data:: ResolveDatabase
This section contains platform-specific data used to resolve callstacks.
The name for this section will be "renderdoc/internal/resolvedb".
.. data:: Bookmarks
This section contains a JSON document with bookmarks added to the capture to highlight important
events.
The name for this section will be "renderdoc/ui/bookmarks".
.. data:: Notes
This section contains a JSON document with free-form information added for human consumption, e.g.
details about how the capture was obtained with repro steps in the original program, or with
driver and machine info.
The name for this section will be "renderdoc/ui/notes".
.. data:: ResourceRenames
This section contains a JSON document with custom names applied to resources in the UI, over and
above any friendly names specified in the capture itself.
The name for this section will be "renderdoc/ui/resrenames".
.. data:: AMDRGPProfile
This section contains a .rgp profile from AMD's RGP tool, which can be extracted and loaded.
The name for this section will be "amd/rgp/profile".
.. data:: ExtendedThumbnail
This section contains a thumbnail in format other than JPEG. For example, when it needs to be
lossless.
The name for this section will be "renderdoc/internal/exthumb".
.. data:: EmbeddedLogfile
This section contains the log file at the time of capture, for debugging.
The name for this section will be "renderdoc/internal/logfile".
.. data:: EditedShaders
This section contains any edited shaders.
The name for this section will be "renderdoc/ui/edits".
.. data:: D3D12Core
This section contains an internal copy of D3D12Core for replaying.
The name for this section will be "renderdoc/internal/d3d12core".
.. data:: D3D12SDKLayers
This section contains an internal copy of D3D12SDKLayers for replaying.
The name for this section will be "renderdoc/internal/d3d12sdklayers".
)");
enum class SectionType : uint32_t
{
Unknown = 0,
First = Unknown,
FrameCapture,
ResolveDatabase,
Bookmarks,
Notes,
ResourceRenames,
AMDRGPProfile,
ExtendedThumbnail,
EmbeddedLogfile,
EditedShaders,
D3D12Core,
D3D12SDKLayers,
Count,
};
ITERABLE_OPERATORS(SectionType);
DECLARE_REFLECTION_ENUM(SectionType);
DOCUMENT(R"(Represents the category of debugging variable that a source variable maps to.
.. data:: Undefined
Undefined type.
.. data:: Input
A constant input value, stored globally.
.. data:: Constant
A constant buffer value, stored globally.
.. data:: Sampler
A sampler, stored globally.
.. data:: ReadOnlyResource
A read-only resource, stored globally.
.. data:: ReadWriteResource
A read-write resource, stored globally.
.. data:: Variable
A mutable variable, stored per state.
)");
enum class DebugVariableType : uint8_t
{
Undefined,
Input,
Constant,
Sampler,
ReadOnlyResource,
ReadWriteResource,
Variable,
};
DECLARE_REFLECTION_ENUM(DebugVariableType);
DOCUMENT(R"(Represents the base type of a shader variable in debugging or constant blocks.
.. data:: Float
A single-precision (32-bit) floating point value.
.. data:: Double
A double-precision (64-bit) floating point value.
.. data:: Half
A half-precision (16-bit) floating point value.
.. data:: SInt
A signed 32-bit integer value.
.. data:: UInt
An unsigned 32-bit integer value.
.. data:: SShort
A signed 16-bit integer value.
.. data:: UShort
An unsigned 16-bit integer value.
.. data:: SLong
A signed 64-bit integer value.
.. data:: ULong
An unsigned 64-bit integer value.
.. data:: SByte
A signed 8-bit integer value.
.. data:: UByte
An unsigned 8-bit integer value.
.. data:: Bool
A boolean value.
.. data:: Enum
An enum - each member gives a named value, and the type itself is stored as an integer.
.. data:: Struct
A structure with some number of members.
.. data:: GPUPointer
A 64-bit pointer into GPU-addressable memory. Variables with this type are stored with opaque
contents and should be decoded with :meth:`ShaderVariable.GetPointer`.
.. data:: ConstantBlock
A reference to a constant block bound to the shader. Variables with this type are stored with
opaque contents and should be decoded with :meth:`ShaderVariable.GetBinding`.
.. data:: ReadOnlyResource
A reference to a read only resource bound to the shader. Variables with this type are stored with
opaque contents and should be decoded with :meth:`ShaderVariable.GetBinding`.
.. data:: ReadWriteResource
A reference to a read/write resource bound to the shader. Variables with this type are stored with
opaque contents and should be decoded with :meth:`ShaderVariable.GetBinding`.
.. data:: Sampler
A reference to a sampler bound to the shader. Variables with this type are stored with opaque
contents and should be decoded with :meth:`ShaderVariable.GetBinding`.
.. data:: Unknown
An unknown type.
)");
enum class VarType : uint8_t
{
Float = 0,
Double,
Half,
SInt,
UInt,
SShort,
UShort,
SLong,
ULong,
SByte,
UByte,
Bool,
Enum,
Struct,
GPUPointer,
ConstantBlock,
ReadOnlyResource,
ReadWriteResource,
Sampler,
Unknown = 0xFF,
};
DECLARE_REFLECTION_ENUM(VarType);
DOCUMENT(R"(Get the byte size of a variable type.
:param VarType type: The variable type
:return: The size in bytes of this type
:rtype: int
)");
constexpr uint32_t VarTypeByteSize(VarType type)
{
// temporarily disable clang-format to make this more readable.
// Ideally we'd use a simple switch() but VS2015 doesn't support that :(.
// clang-format off
return (type == VarType::UByte || type == VarType::SByte) ? 1
: (type == VarType::Half || type == VarType::UShort || type == VarType::SShort) ? 2
: (type == VarType::Float || type == VarType::UInt || type == VarType::SInt || type == VarType::Bool || type == VarType::Enum) ? 4
: (type == VarType::Double || type == VarType::ULong || type == VarType::SLong ) ? 8
: 0;
// clang-format on
}
DOCUMENT(R"(Represents the component type of a channel in a texture or element in a structure.
.. data:: Typeless
A component that has no concrete type.
.. data:: Float
An IEEE floating point value of 64-bit, 32-bit or 16-bit size.
.. data:: UNorm
An unsigned normalised floating point value. This is converted by dividing the input value by
the maximum representable unsigned integer value, to produce a value in the range ``[0, 1]``
.. data:: SNorm
A signed normalised floating point value in range. This is converted by dividing the input value
by the maximum representable *positive signed* integer value, to produce a value in the range
``[-1, 1]``. As a special case, the maximum negative signed integer is also mapped to ``-1`` so
there are two representations of -1. This means there is only one ``0`` value and that there is
the same range of available values for positive and negative values.
For example, signed 16-bit integers range from ``-32768`` to ``+32767``. ``-32768`` is mapped to
``-1``, and then any other value is divided by ``32767`` giving an equal set of values in the
range ``[-1, 0]`` as in the range ``[0, 1]``.
.. data:: UInt
An unsigned integer value.
.. data:: SInt
A signed integer value.
.. data:: UScaled
An unsigned scaled floating point value. This is converted from the input unsigned integer without
any normalisation as with :data:`UNorm`, so the resulting values range from ``0`` to the maximum
unsigned integer value ``2^N - 1``.
.. data:: SScaled
A signed scaled floating point value. This is converted from the input unsigned integer without
any normalisation as with :data:`SNorm`, so the resulting values range from the minimum signed
integer value ``-2^(N-1)`` to the maximum signed integer value ``2^(N-1) - 1``.
.. data:: Depth
An opaque value storing depth information, either :data:`floating point <float>` for 32-bit depth
values or else :data:`unsigned normalised <UNorm>` for other bit sizes.
.. data:: UNormSRGB
Similar to :data:`UNorm` normalised between the minimum and maximum unsigned values to ``0.0`` -
``1.0``, but with an sRGB gamma curve applied.
)");
enum class CompType : uint8_t
{
Typeless = 0,
Float,
UNorm,
SNorm,
UInt,
SInt,
UScaled,
SScaled,
Depth,
UNormSRGB,
};
DECLARE_REFLECTION_ENUM(CompType);
DOCUMENT(R"(Get the component type of a variable type.
:param VarType type: The variable type
:return: The base component type of this variable type
:rtype: CompType
)");
constexpr CompType VarTypeCompType(VarType type)
{
// temporarily disable clang-format to make this more readable.
// Ideally we'd use a simple switch() but VS2015 doesn't support that :(.
// clang-format off
return (type == VarType::Double || type == VarType::Float || type == VarType::Half) ? CompType::Float
: (type == VarType::ULong || type == VarType::UInt || type == VarType::UShort ||
type == VarType::UByte || type == VarType::Bool || type == VarType::Enum) ? CompType::UInt
: (type == VarType::SLong || type == VarType::SInt ||
type == VarType::SShort || type == VarType::SByte) ? CompType::SInt
: CompType::Typeless;
// clang-format on
}
DOCUMENT(R"(A single source component for a destination texture swizzle.
.. data:: Red
The Red component.
.. data:: Green
The Green component.
.. data:: Blue
The Blue component.
.. data:: Alpha
The Alpha component.
.. data:: Zero
The fixed value ``0``.
.. data:: One
The fixed value ``1``.
)");
enum class TextureSwizzle : uint8_t
{
Red,
Green,
Blue,
Alpha,
Zero,
One,
};
DECLARE_REFLECTION_ENUM(TextureSwizzle);
DOCUMENT(R"(A texture addressing mode in a single direction (U,V or W).
.. data:: Wrap
The texture is tiled at every multiple of 1.0.
.. data:: Repeat
Alias of :data:`Wrap`.
.. data:: Mirror
The texture is tiled as with :data:`Wrap`, but with the absolute value of the texture co-ordinate.
.. data:: MirrorRepeat
Alias of :data:`Mirror`.
.. data:: MirrorOnce
The texture is mirrored with :data:`Mirror`, but the texture does not tile as with
:data:`ClampEdge`.
.. data:: MirrorClamp
Alias of :data:`MirrorOnce`.
.. data:: ClampEdge
The texture is clamped to the range of ``[0.0, 1.0]`` and the texture value at each end used.
.. data:: ClampBorder
The texture is clamped such that texture co-ordinates outside the range of ``[0.0, 1.0]`` are set
to the border color specified in the sampler.
)");
enum class AddressMode : uint32_t
{
Wrap,
Repeat = Wrap,
Mirror,
MirrorRepeat = Mirror,
MirrorOnce,
MirrorClamp = MirrorOnce,
ClampEdge,
ClampBorder,
};
DECLARE_REFLECTION_ENUM(AddressMode);
DOCUMENT(R"(The color model conversion that a YCbCr sampler uses to convert from YCbCr to RGB.
.. data:: Raw
The input values are not converted at all.
.. data:: RangeOnly
There is no model conversion but the inputs are range expanded as for YCbCr.
.. data:: BT709
The conversion uses the BT.709 color model conversion.
.. data:: BT601
The conversion uses the BT.601 color model conversion.
.. data:: BT2020
The conversion uses the BT.2020 color model conversion.
)");
enum class YcbcrConversion
{
Raw,
RangeOnly,
BT709,
BT601,
BT2020,
};
DECLARE_REFLECTION_ENUM(YcbcrConversion);
DOCUMENT(R"(Specifies the range of encoded values and their interpretation.
.. data:: ITUFull
The full range of input values are valid and interpreted according to ITU "full range" rules.
.. data:: ITUNarrow
A head and foot are reserved in the encoded values, and the remaining values are expanded
according to "narrow range" rules.
)");
enum class YcbcrRange
{
ITUFull,
ITUNarrow,
};
DECLARE_REFLECTION_ENUM(YcbcrRange);
DOCUMENT(R"(Determines where in the pixel downsampled chrome samples are positioned.
.. data:: CositedEven
The chroma samples are positioned exactly in the same place as the even luma co-ordinates.
.. data:: Midpoint
The chrome samples are positioned half way between each even luma sample and the next highest odd
luma sample.
)");
enum class ChromaSampleLocation
{
CositedEven,
Midpoint,
};
DECLARE_REFLECTION_ENUM(ChromaSampleLocation);
DOCUMENT(R"(The type of a resource referred to by binding or API usage.
In some cases there is a little overlap or fudging when mapping API concepts - this is primarily
just intended for e.g. fuzzy user filtering or rough categorisation. Precise mapping would require
API-specific concepts.
.. data:: Unknown
An unknown type of resource.
.. data:: Device
A system-level object, typically unique.
.. data:: Queue
A queue representing the ability to execute commands in a single stream, possibly in parallel to
other queues.
.. data:: CommandBuffer
A recorded set of commands that can then be subsequently executed.
.. data:: Texture
A texture - one- to three- dimensional, possibly with array layers and mip levels. See
:class:`TextureDescription`.
.. data:: Buffer
A linear (possibly typed) view of memory. See :class:`BufferDescription`.
.. data:: View
A particular view into a texture or buffer, e.g. either accessing the underlying resource through
a different type, or only a subset of the resource.
.. data:: Sampler
The information regarding how a texture is accessed including wrapping, minification/magnification
and other information. The precise details are API-specific and listed in the API state when
bound.
.. data:: SwapchainImage
A special class of :data:`Texture` that is owned by the swapchain and is used for presentation.
.. data:: Memory
An object corresponding to an actual memory allocation, which other resources can then be bound
to.
.. data:: Shader
A single shader object for any shader stage. May be bound directly, or used to compose into a
:data:`PipelineState` depending on the API.
.. data:: ShaderBinding
An object that determines some manner of shader binding. Since this varies significantly by API,
different concepts used for shader resource binding fall under this type.
.. data:: PipelineState
A single object containing all information regarding the current GPU pipeline, containing both
shader objects, potentially some shader binding information, and fixed-function state.
.. data:: StateObject
A single object encapsulating some amount of related state that can be set together, instead of
setting each individual state separately.
.. data:: RenderPass
An object related to collecting render pass information together. This may not be an actual
explicit render pass object if it doesn't exist in the API, it may also be a collection of
textures in a framebuffer that are bound together to the API for rendering.
.. data:: Query
A query for retrieving some kind of feedback from the GPU, either as a fixed number or a boolean
value which can be used in predicated rendering.
.. data:: Sync
A synchronisation object used for either synchronisation between GPU and CPU, or GPU-to-GPU work.
.. data:: Pool
An object which pools together other objects in an opaque way, either for runtime allocation and
deallocation, or for caching purposes.
)");
enum class ResourceType : uint32_t
{
Unknown,
Device,
Queue,
CommandBuffer,
Texture,
Buffer,
View,
Sampler,
SwapchainImage,
Memory,
Shader,
ShaderBinding,
PipelineState,
StateObject,
RenderPass,
Query,
Sync,
Pool,
};
DECLARE_REFLECTION_ENUM(ResourceType);
DOCUMENT(R"(The dimensionality of a texture binding.
.. data:: Unknown
An unknown type of texture.
.. data:: Buffer
A texel buffer.
.. data:: Texture1D
A 1D texture.
.. data:: Texture1DArray
A 1D texture array.
.. data:: Texture2D
A 2D texture.
.. data:: TextureRect
A rectangle texture, a legacy format for non-power of two textures.
.. data:: Texture2DArray
A 2D texture array.
.. data:: Texture2DMS
A multi-sampled 2D texture.
.. data:: Texture2DMSArray
A multi-sampled 2D texture array.
.. data:: Texture3D
A 3D texture.
.. data:: TextureCube
A Cubemap texture.
.. data:: TextureCubeArray
A Cubemap texture array.
)");
enum class TextureType : uint32_t
{
Unknown,
First = Unknown,
Buffer,
Texture1D,
Texture1DArray,
Texture2D,
TextureRect,
Texture2DArray,
Texture2DMS,
Texture2DMSArray,
Texture3D,
TextureCube,
TextureCubeArray,
Count,
};
ITERABLE_OPERATORS(TextureType);
DECLARE_REFLECTION_ENUM(TextureType);
DOCUMENT(R"(The type of a shader resource bind.
.. data:: Unknown
An unknown type of binding.
.. data:: ConstantBuffer
A constant or uniform buffer.
.. data:: Sampler
A separate sampler object.
.. data:: ImageSampler
A combined image and sampler object.
.. data:: ReadOnlyImage
An image that can only be sampled from.
.. data:: ReadWriteImage
An image that can be read from and written to arbitrarily.
.. data:: ReadOnlyTBuffer
A texture buffer that can only be read from.
.. data:: ReadWriteTBuffer
A texture buffer that can be read from and written to arbitrarily.
.. data:: ReadOnlyBuffer
A buffer that can only be read from, distinct from :data:`ConstantBuffer`.
.. data:: ReadWriteBuffer
A buffer that can be read from and written to arbitrarily.
.. data:: ReadOnlyResource
A resource that can only be read from
.. data:: ReadWriteResource
A resource that can be read from and written to arbitrarily.
.. data:: InputAttachment
An input attachment for reading from the target currently being written.
)");
enum class BindType : uint32_t
{
Unknown = 0,
ConstantBuffer,
Sampler,
ImageSampler,
ReadOnlyImage,
ReadWriteImage,
ReadOnlyTBuffer,
ReadWriteTBuffer,
ReadOnlyBuffer,
ReadWriteBuffer,
ReadOnlyResource,
ReadWriteResource,
InputAttachment,
};
DECLARE_REFLECTION_ENUM(BindType);
DOCUMENT2(R"(Annotates a particular built-in input or output from a shader with a special meaning to
the hardware or API.
Some of the built-in inputs or outputs can be declared multiple times in arrays or otherwise indexed
to apply to multiple related things - see :data:`ClipDistance`, :data:`CullDistance` and
:data:`ColorOutput`.
.. data:: Undefined
Undefined built-in or no built-in is attached to this shader variable.
.. data:: Position
As an output from the final vertex processing shader stage, this feeds the vertex position to the
rasterized. As an input to the pixel shader stage this receives the position from the rasterizer.
.. data:: PointSize
An output that controls the size of point primitives.
.. data:: ClipDistance
An output for the distance to a user-defined clipping plane. Any pixel with an interpolated value
that is negative will not be rasterized. Typically there can be more than one such output.
.. data:: CullDistance
An output for the distance to a user-defined culling plane. Any primitive with all vertices having
negative values will not be rasterized. Typically there can be more than one such output.
.. data:: RTIndex
An output for selecting the render target index in an array to render to. Available in geometry
shaders and possibly earlier stages depending on hardware/API capability.
.. data:: ViewportIndex
An output for selecting the viewport index to render to. Available in geometry shaders and
possibly earlier stages depending on hardware/API capability.
.. data:: VertexIndex
An input to the vertex shader listing the vertex index. The exact meaning of this index can vary
by API but generally it refers to either a 0-based counter for non-indexed draws, or the index
value for indexed draws. It may or may not be affected by offsets, depending on API semantics.
.. data:: PrimitiveIndex
A built-in indicating which primitive is being processed. This can be read by all primitive stages
after the vertex shader, and written by the geometry shader.
.. data:: InstanceIndex
This built-in is defined similar to :data:`VertexIndex` but for instances within an instanced
drawcall. It counts from 0 and as with :data:`VertexIndex` it may or may not be affected by
drawcall offsets.
.. data:: DispatchSize
An input in compute shaders that gives the number of workgroups executed by the dispatch call.
.. data:: DispatchThreadIndex
An input in compute shaders giving a 3D shared index across all workgroups, such that the index
varies across each thread in the workgroup up to its size, then the indices for workgroup
``(0,0,1)`` begin adjacent to where workgroup ``(0,0,0)`` ended.
This is related to :data:`GroupThreadIndex` and :data:`GroupIndex`.
.. data:: GroupIndex
An input in compute shaders giving a 3D index of this current workgroup amongst all workgroups,
up to the dispatch size.
The index is constant across all threads in the workgroup.
This is related to :data:`GroupThreadIndex` and :data:`DispatchThreadIndex`.
.. data:: GroupSize
The size of a workgroup, giving the number of threads in each dimension.
.. data:: GroupFlatIndex
An input in compute shaders giving a flat 1D index of the thread within the current workgroup.
This index increments first in the ``X`` dimension, then in the ``Y`` dimension, then in the ``Z``
dimension.
.. data:: GroupThreadIndex
An input in compute shaders giving a 3D index of this thread within its workgroup, up to the
workgroup size.
The input does not vary between one thread in a workgroup and the same thread in another
workgroup.
This is related to :data:`GroupIndex` and :data:`DispatchThreadIndex`.
.. data:: GSInstanceIndex
An input to the geometry shader giving the instance being run, if the geometry shader was setup to
be invoked multiple times for each input primitive.
.. data:: OutputControlPointIndex
An input to the tessellation control or hull shader giving the output control point index or patch
vertex being operated on.
.. data:: DomainLocation
An input to the tessellation evaluation or domain shader, giving the normalised location on the
output patch where evaluation is occuring. E.g. for triangle output this is the barycentric
co-ordinates of the output vertex.
.. data:: IsFrontFace
An input to the pixel shader indicating whether or not the contributing triangle was considered
front-facing or not according to the API setup for winding order and backface orientation.
.. data:: MSAACoverage
An input or an output from the pixel shader. As an input, it specifies a bitmask of which samples
in a pixel were covered by the rasterizer. As an output, it specifies which samples in the
destination target should be updated.
)",
R"(
.. data:: MSAASamplePosition
An input to the pixel shader that contains the location of the current sample relative to the
pixel, when running the pixel shader at sample frequency.
.. data:: MSAASampleIndex
An input to the pixel shader that indicates which sample in the range ``0 .. N-1`` is currently
being processed.
.. data:: PatchNumVertices
An input to the tessellation stages, this gives the number of vertices in each patch.
.. data:: OuterTessFactor
An output from the tessellation control or hull shader, this determines the level to which the
outer edge of each primitive is tessellated by the fixed-function tessellator.
It is also available for reading in the tessellation evaluation or domain shader.
.. data:: InsideTessFactor
Related to :data:`OuterTessFactor` this functions in the same way to determine the tessellation
level inside the primitive.
.. data:: ColorOutput
An output from the pixel shader, this determines the color value written to the corresponding
target. There will be as many color output built-ins as there are targets bound.
.. data:: DepthOutput
An output from the pixel shader, writes the depth of this pixel with no restrictions.
Related to :data:`DepthOutputGreaterEqual` and :data:`DepthOutputLessEqual`.
.. data:: DepthOutputGreaterEqual
An output from the pixel shader, writes the depth of this pixel with the restriction that it will
be greater than or equal to the original depth produced by the rasterizer.
Related to :data:`DepthOutput` and :data:`DepthOutputLessEqual`.
.. data:: DepthOutputLessEqual
An output from the pixel shader, writes the depth of this pixel with the restriction that it will
be less than or equal to the original depth produced by the rasterizer.
Related to :data:`DepthOutputGreaterEqual` and :data:`DepthOutput`.
.. data:: BaseVertex
The first vertex processed in this draw, as specified by the ``firstVertex`` / ``baseVertex``
parameter to the draw call.
.. data:: BaseInstance
The first instance processed in this draw call, as specified by the ``firstInstance`` parameter.
.. data:: DrawIndex
For indirect or multi-draw commands, the index of this draw call within the overall draw command.
.. data:: StencilReference
The stencil reference to be used for stenciling operations on this fragment.
.. data:: PointCoord
The fragments co-ordinates within a point primitive being rasterized.
.. data:: IsHelper
Indicates if the current invocation is a helper invocation.
.. data:: SubgroupSize
The number of invocations in a subgroup.
.. data:: NumSubgroups
The number of subgroups in the local workgroup.
.. data:: SubgroupIndexInWorkgroup
The index of the current subgroup within all subgroups in the workgroup, up to
:data:`NumSubgroups` - 1.
.. data:: IndexInSubgroup
The index of the current thread in the current subgroup, up to :data:`SubgroupSize` - 1.
.. data:: SubgroupEqualMask
A bitmask where the bit corresponding to :data:`IndexInSubgroup` is set.
.. data:: SubgroupGreaterEqualMask
A bitmask where all bits greater or equal to the one corresponding to :data:`IndexInSubgroup` are
set.
.. data:: SubgroupGreaterMask
A bitmask where all bits greater than the one corresponding to :data:`IndexInSubgroup` are set.
.. data:: SubgroupLessEqualMask
A bitmask where all bits less or equal to the one corresponding to :data:`IndexInSubgroup` are
set.
.. data:: SubgroupLessMask
A bitmask where all bits less than the one corresponding to :data:`IndexInSubgroup` are set.
.. data:: DeviceIndex
The device index executing the shader, relative to the current device group.
.. data:: IsFullyCovered
Indicates if the current fragment area is fully covered by the generating primitive.
.. data:: FragAreaSize
Gives the dimensions of the area that the fragment covers.
.. data:: FragInvocationCount
Gives the maximum number of invocations for the fragment being covered.
.. data:: PackedFragRate
Contains the packed shading rate, with an API specific packing of X and Y. For example:
1x being 0, 2x being 1, 4x being 2. Then the lower two bits being the Y rate and the next 2 bits
being the X rate.
.. data:: Barycentrics
Contains the barycentric co-ordinates.
.. data:: CullPrimitive
An output to indicate whether or not a primitive should be culled.
)");
enum class ShaderBuiltin : uint32_t
{
Undefined = 0,
First = Undefined,
Position,
PointSize,
ClipDistance,
CullDistance,
RTIndex,
ViewportIndex,
VertexIndex,
PrimitiveIndex,
InstanceIndex,
DispatchSize,
DispatchThreadIndex,
GroupIndex,
GroupSize,
GroupFlatIndex,
GroupThreadIndex,
GSInstanceIndex,
OutputControlPointIndex,
DomainLocation,
IsFrontFace,
MSAACoverage,
MSAASamplePosition,
MSAASampleIndex,
PatchNumVertices,
OuterTessFactor,
InsideTessFactor,
ColorOutput,
DepthOutput,
DepthOutputGreaterEqual,
DepthOutputLessEqual,
BaseVertex,
BaseInstance,
DrawIndex,
StencilReference,
PointCoord,
IsHelper,
SubgroupSize,
NumSubgroups,
SubgroupIndexInWorkgroup,
IndexInSubgroup,
SubgroupEqualMask,
SubgroupGreaterEqualMask,
SubgroupGreaterMask,
SubgroupLessEqualMask,
SubgroupLessMask,
DeviceIndex,
IsFullyCovered,
FragAreaSize,
FragInvocationCount,
PackedFragRate,
Barycentrics,
CullPrimitive,
Count,
};
ITERABLE_OPERATORS(ShaderBuiltin);
DECLARE_REFLECTION_ENUM(ShaderBuiltin);
DOCUMENT(R"(The type of :class:`ReplayOutput` to create
.. data:: Headless
A headless output that does nothing to display to windows but can still be controlled and
queried the same way
.. data:: Texture
An output that is used for displaying textures, thumbnails and pixel context
.. data:: Mesh
An output that will display mesh data previews
)");
enum class ReplayOutputType : uint32_t
{
Headless = 0,
Texture,
Mesh,
};
DECLARE_REFLECTION_ENUM(ReplayOutputType);
DOCUMENT(R"(Describes a particular stage in the geometry transformation pipeline.
.. data:: Unknown
Unknown or invalid stage.
.. data:: VSIn
The inputs to the vertex shader described by the explicit API vertex input bindings.
.. data:: VSOut
The outputs from the vertex shader corresponding one-to-one to the input elements.
.. data:: GSOut
The final output from the last stage in the pipeline, be that tessellation or geometry shader.
This has possibly been expanded/multiplied from the inputs
)");
enum class MeshDataStage : uint32_t
{
Unknown = 0,
VSIn,
VSOut,
GSOut,
};
DECLARE_REFLECTION_ENUM(MeshDataStage);
DOCUMENT(R"(The type of overlay image to render on top of an existing texture view, for debugging
purposes.
In overlays that refer to the 'current pass', for any API that does not have an explicit notion of a
render pass, it is defined as all previous drawcalls that render to the same set of render targets.
Note that this is defined independently from any marker regions.
See :ref:`the documentation for this feature <render-overlay>`.
.. data:: NoOverlay
No overlay should be rendered.
.. data:: Drawcall
An overlay highlighting the area rasterized by the drawcall on screen, no matter what tests or
processes may be discarding the pixels actually rendered.
The rest of the image should be dimmed slightly to make the draw on screen clearer.
.. data:: Wireframe
Similar to the :data:`Drawcall` overlay, this should render over the top of the image, but showing
the wireframe of the object instead of a solid render.
.. data:: Depth
This overlay shows pixels from the object that passed all depth tests in green, and pixels that
failed any depth test in red.
If some pixel is overwritten more than once by the object, if any of the samples passed the result
will be green (i.e. the failure overlay is conservative).
.. data:: Stencil
This overlay shows pixels from the object that passed all stencil tests in green, and pixels that
failed any stencil test in red.
If some pixel is overwritten more than once by the object, if any of the samples passed the result
will be green (i.e. the failure overlay is conservative).
.. data:: BackfaceCull
This overlay shows pixels from the object that passed backface culling in green, and pixels that
were backface culled in red.
If some pixel is overwritten more than once by the object, if any of the samples passed the result
will be green (i.e. the failure overlay is conservative).
.. data:: ViewportScissor
This overlay shows a rectangle on screen corresponding to both the current viewport, and if
enabled the current scissor as well.
.. data:: NaN
This overlay renders the image in greyscale using a simple luminosity calculation, then highlights
any pixels that are ``NaN`` in red, any that are positive or negative infinity in green, and any
that are negative in blue.
.. data:: Clipping
This overlay renders the image in greyscale using a simple luminosity calculation, then highlights
any pixels that are currently above the white point in green and any pixels that are below the
black point in red.
This is relative to the current black and white points used to display the texture.
.. data:: ClearBeforePass
This overlay clears the bound render targets before the current pass, allowing you to see only the
contribution from the current pass.
Note only color targets are cleared, depth-stencil targets are unchanged so any depth or stencil
tests will still pass or fail in the same way.
.. data:: ClearBeforeDraw
This is the same as the :data:`ClearBeforePass` overlay, except it clears before the current
drawcall, not the current pass.
.. data:: QuadOverdrawPass
This overlay shows pixel overdraw using 2x2 rasterized quad granularity instead of single-pixel
overdraw. This represents the number of times the pixel shader was invoked along triangle edges
even if each pixel is only overdrawn once.
The overlay accounts for all draws in the current pass.
.. data:: QuadOverdrawDraw
This is the same as the :data:`QuadOverdrawPass` overlay, except it only shows the overdraw for
the current drawcall, not the current pass.
.. data:: TriangleSizePass
This overlay shows the size of each triangle, starting from triangles with area ``16 (4x4)`` and above
at the lower end to triangles with area ``0.125 (1/8th pixel)`` at the upper end.
The overlay accounts for all draws in the current pass.
.. data:: TriangleSizeDraw
This is similar to the :data:`TriangleSizePass` overlay, except it only shows the triangle size
for the current drawcall, not the current pass.
)");
enum class DebugOverlay : uint32_t
{
NoOverlay = 0,
Drawcall,
Wireframe,
Depth,
Stencil,
BackfaceCull,
ViewportScissor,
NaN,
Clipping,
ClearBeforePass,
ClearBeforeDraw,
QuadOverdrawPass,
QuadOverdrawDraw,
TriangleSizePass,
TriangleSizeDraw,
};
DECLARE_REFLECTION_ENUM(DebugOverlay);
DOCUMENT(R"(The format of an image file
.. data:: DDS
A DDS file
.. data:: PNG
A PNG file
.. data:: JPG
A JPG file
.. data:: BMP
A BMP file
.. data:: TGA
A TGA file
.. data:: HDR
An HDR file
.. data:: EXR
An EXR file
.. data:: Raw
Raw data, just the bytes of the image tightly packed with no metadata or compression/encoding
)");
enum class FileType : uint32_t
{
DDS,
First = DDS,
PNG,
JPG,
BMP,
TGA,
HDR,
EXR,
Raw,
Count,
};
ITERABLE_OPERATORS(FileType);
DECLARE_REFLECTION_ENUM(FileType);
DOCUMENT(R"(What to do with the alpha channel from a texture while saving out to a file.
.. data:: Discard
Completely discard the alpha channel and only write RGB to the file.
.. data:: BlendToColor
Blend to the primary background color using alpha.
.. data:: BlendToCheckerboard
Blend to a checkerboard pattern with the primary and secondary background colors.
.. data:: Preserve
Preserve the alpha channel and save it to the file by itself.
This is only valid for file formats that support alpha channels.
)");
enum class AlphaMapping : uint32_t
{
Discard,
First = Discard,
BlendToColor,
BlendToCheckerboard,
Preserve,
Count,
};
ITERABLE_OPERATORS(AlphaMapping);
DECLARE_REFLECTION_ENUM(AlphaMapping);
DOCUMENT2(R"(A resource format's particular type. This accounts for either block-compressed textures
or formats that don't have equal byte-multiple sizes for each channel.
.. data:: Regular
This format has no special layout, so its format is described by a number of components, a
:class:`CompType` and a byte width per component.
.. data:: Undefined
This format is undefined or unknown, or does not map to any known regular format.
.. data:: BC1
A block-compressed texture in ``BC1`` format (RGB with 1-bit alpha, 0.5 bytes per pixel)
Formerly known as ``DXT1``, commonly used for color maps.
.. data:: BC2
A block-compressed texture in ``BC2`` format (RGB with 4-bit alpha, 1 byte per pixel)
Formerly known as ``DXT3``, rarely used.
.. data:: BC3
A block-compressed texture in ``BC3`` format (RGBA, 1 byte per pixel)
Formerly known as ``DXT5``, commonly used for color + alpha maps, or color with attached
single channel data.
.. data:: BC4
A block-compressed texture in ``BC4`` format (Single channel, 0.5 bytes per pixel)
Commonly used for single component data such as gloss or height data.
.. data:: BC5
A block-compressed texture in ``BC5`` format (Two channels, 1 byte per pixel)
Commonly used for normal maps.
.. data:: BC6
A block-compressed texture in ``BC6`` format (RGB floating point, 1 byte per pixel)
Commonly used for HDR data of all kinds.
.. data:: BC7
A block-compressed texture in ``BC7`` format (RGB or RGBA, 1 byte per pixel)
Commonly used for high quality color maps, with or without alpha.
.. data:: ETC2
A block-compressed texture in ``ETC2`` format (RGB with 1-bit alpha, 0.5 bytes per pixel)
Commonly used on mobile or embedded platforms.
Note that the mode added in ``EAC`` with 1 byte per pixel and full 8-bit alpha is
grouped as ``EAC``, with a component count of 4. See :data:`EAC`.
)",
R"(
.. data:: EAC
A block-compressed texture in ``EAC`` format, expanded from ``ETC2``.
Commonly used on mobile or embedded platforms.
The single and dual channel formats encode 11-bit data with 0.5 bytes per channel (so
the single channel format is 0.5 bytes per pixel total, and the dual channel format is 1 byte per
pixel total). The four channel format is encoded similarly to ETC2 for the base RGB data and
similarly to the single channel format for the alpha, giving 1 byte per pixel total.
See :data:`ETC2`.
.. data:: ASTC
A block-compressed texture in ``ASTC`` format (Representation varies a lot)
The ASTC format encodes each block as 16 bytes, but the block size can vary from 4x4 (so 1 byte
per pixel) up to 12x12 (0.11 bytes per pixel).
Each block can encode between one and three channels of data, either correlated or uncorrelated,
in low or high dynamic range.
Commonly used on mobile or embedded platforms.
.. data:: R10G10B10A2
Each pixel is stored in 32 bits. Red, green and blue are stored in 10-bits each and alpha in 2
bits. The data can either be :data:`unsigned normalised <CompType.UNorm>` or
:data:`unsigned integer <CompType.UInt>`.
.. data:: R11G11B10
Each pixel is stored in 32 bits. Red and green are stored as an 11-bit float with no sign bit,
5-bit exponent and 6-bit mantissa. Blue is stored with 5-bit exponent and 5-bit mantissa.
.. data:: R5G6B5
Each pixel is stored in 16 bits. Red and blue are stored as 5 bits, and green is stored as six.
The data is :data:`unsigned normalised <CompType.UNorm>`.
.. data:: R5G5B5A1
Each pixel is stored in 16 bits. Red, green, and blue are stored as 5 bits, with 1-bit alpha.
The data is :data:`unsigned normalised <CompType.UNorm>`.
.. data:: R9G9B9E5
Each pixel is stored in 32 bits. Red, green, and blue are stored with individual 9-bit mantissas
and a shared 5-bit exponent. There are no sign bits.
.. data:: R4G4B4A4
Each pixel is stored in 16 bits. Red, green, blue, and alpha are stored as 4-bit
:data:`unsigned normalised <CompType.UNorm>` values.
.. data:: R4G4
Each pixel is stored in 8 bits. Red and green are stored as 4-bit
:data:`unsigned normalised <CompType.UNorm>` values.
.. data:: D16S8
Each pixel is considered a packed depth-stencil value with 16 bit normalised depth and 8 bit
stencil.
.. data:: D24S8
Each pixel is considered a packed depth-stencil value with 24 bit normalised depth and 8 bit
stencil.
.. data:: D32S8
Each pixel is considered a packed depth-stencil value with 32 bit floating point depth and 8 bit
stencil.
.. data:: S8
Each pixel is an 8 bit stencil value.
.. data:: YUV8
The pixel data is 8-bit in YUV subsampled format. More information about subsampling setup is
stored separately
.. data:: YUV10
The pixel data is 10-bit in YUV subsampled format. More information about subsampling setup is
stored separately
.. data:: YUV12
The pixel data is 12-bit in YUV subsampled format. More information about subsampling setup is
stored separately
.. data:: YUV16
The pixel data is 16-bit in YUV subsampled format. More information about subsampling setup is
stored separately
.. data:: PVRTC
PowerVR properitary texture compression format.
.. data:: A8
8-bit unsigned normalised alpha - equivalent to standard R8 with a pre-baked swizzle.
)");
enum class ResourceFormatType : uint8_t
{
Regular = 0,
Undefined,
BC1,
BC2,
BC3,
BC4,
BC5,
BC6,
BC7,
ETC2,
EAC,
ASTC,
R10G10B10A2,
R11G11B10,
R5G6B5,
R5G5B5A1,
R9G9B9E5,
R4G4B4A4,
R4G4,
D16S8,
D24S8,
D32S8,
S8,
YUV8,
YUV10,
YUV12,
YUV16,
PVRTC,
A8,
};
DECLARE_REFLECTION_ENUM(ResourceFormatType);
DOCUMENT(R"(An API specific hint for a certain behaviour. A legacy concept in OpenGL that controls
hints to the implementation where there is room for interpretation within the range of valid
behaviour.
.. data:: DontCare
The hinted behaviour can follow any valid path as the implementation decides.
.. data:: Nicest
The hinted behaviour should follow the most correct or highest quality path.
.. data:: Fastest
The hinted behaviour should follow the most efficient path.
)");
enum class QualityHint : uint32_t
{
DontCare,
Nicest,
Fastest,
};
DECLARE_REFLECTION_ENUM(QualityHint);
DOCUMENT(R"(Identifies a GPU vendor.
.. data:: Unknown
A GPU from an unknown vendor
.. data:: ARM
An ARM GPU
.. data:: AMD
An AMD GPU
.. data:: Broadcom
A Broadcom GPU
.. data:: Imagination
An Imagination GPU
.. data:: Intel
An Intel GPU
.. data:: nVidia
An nVidia GPU
.. data:: Qualcomm
A Qualcomm GPU
.. data:: Verisilicon
A Verisilicon or Vivante GPU
.. data:: Software
A software-rendering emulated GPU
)");
enum class GPUVendor : uint32_t
{
Unknown,
ARM,
AMD,
Broadcom,
Imagination,
Intel,
nVidia,
Qualcomm,
Verisilicon,
Software,
};
DECLARE_REFLECTION_ENUM(GPUVendor);
DOCUMENT(R"(Get the GPUVendor for a given PCI Vendor ID.
:param int vendorID: The PCI Vendor ID
:return: The vendor identified
:rtype: GPUVendor
)");
constexpr GPUVendor GPUVendorFromPCIVendor(uint32_t vendorID)
{
// temporarily disable clang-format to make this more readable.
// Ideally we'd use a simple switch() but VS2015 doesn't support that :(.
// clang-format off
return vendorID == 0x13B5 ? GPUVendor::ARM
: vendorID == 0x1002 ? GPUVendor::AMD
: vendorID == 0x1010 ? GPUVendor::Imagination
: vendorID == 0x8086 ? GPUVendor::Intel
: vendorID == 0x10DE ? GPUVendor::nVidia
: vendorID == 0x5143 ? GPUVendor::Qualcomm
: vendorID == 0x1AE0 ? GPUVendor::Software // Google Swiftshader
: vendorID == 0x1414 ? GPUVendor::Software // Microsoft WARP
: GPUVendor::Unknown;
// clang-format on
}
DOCUMENT(R"(Identifies a Graphics API.
.. data:: D3D11
Direct3D 11.
.. data:: D3D12
Direct3D 12.
.. data:: OpenGL
OpenGL.
.. data:: Vulkan
Vulkan.
)");
enum class GraphicsAPI : uint32_t
{
D3D11,
D3D12,
OpenGL,
Vulkan,
};
DECLARE_REFLECTION_ENUM(GraphicsAPI);
DOCUMENT(R"(Check if an API is D3D or not
:param GraphicsAPI api: The graphics API in question
:return: ``True`` if api is a D3D-based API, ``False`` otherwise
:rtype: bool
)");
constexpr inline bool IsD3D(GraphicsAPI api)
{
return api == GraphicsAPI::D3D11 || api == GraphicsAPI::D3D12;
}
DOCUMENT(R"(Identifies a shader encoding used to pass shader code to an API.
.. data:: Unknown
Unknown or unprocessable format.
.. data:: DXBC
DXBC binary shader, used by D3D11 and D3D12.
.. data:: GLSL
GLSL in string format, used by OpenGL.
.. data:: SPIRV
SPIR-V binary shader, used by Vulkan and with an extension by OpenGL.
.. data:: SPIRVAsm
Canonical SPIR-V assembly form, used (indirectly via :data:`SPIRV`) by Vulkan and with an
extension by OpenGL.
.. data:: HLSL
HLSL in string format, used by D3D11, D3D12, and Vulkan/GL via compilation to SPIR-V.
.. data:: DXIL
DXIL binary shader, used by D3D12. Note that although the container is still DXBC format this is
used to distinguish from :data:`DXBC` for compiler I/O matching.
)");
enum class ShaderEncoding : uint32_t
{
Unknown,
First = Unknown,
DXBC,
GLSL,
SPIRV,
SPIRVAsm,
HLSL,
DXIL,
Count,
};
ITERABLE_OPERATORS(ShaderEncoding);
DECLARE_REFLECTION_ENUM(ShaderEncoding);
DOCUMENT(R"(Check whether or not this is a human readable text representation.
:param ShaderEncoding encoding: The encoding to check.
:return: ``True`` if it describes a text representation, ``False`` for a bytecode representation.
:rtype: bool
)");
constexpr inline bool IsTextRepresentation(ShaderEncoding encoding)
{
return encoding == ShaderEncoding::HLSL || encoding == ShaderEncoding::GLSL ||
encoding == ShaderEncoding::SPIRVAsm;
}
DOCUMENT(R"(A primitive topology used for processing vertex data.
.. data:: Unknown
An unknown or undefined topology.
.. data:: PointList
A point list.
.. data:: LineList
A line list.
.. data:: LineStrip
A line strip.
.. data:: LineLoop
A line loop.
.. data:: TriangleList
A triangle list.
.. data:: TriangleStrip
A triangle strip.
.. data:: TriangleFan
A triangle fan.
.. data:: LineList_Adj
A line list with adjacency information.
.. data:: LineStrip_Adj
A line strip with adjacency information.
.. data:: TriangleList_Adj
A triangle list with adjacency information.
.. data:: TriangleStrip_Adj
A triangle strip with adjacency information.
.. data:: PatchList
An alias for :data:`PatchList_1CPs`.
.. data:: PatchList_1CPs
A patch list with 1 control points.
.. data:: PatchList_2CPs
A patch list with 2 control points.
.. data:: PatchList_3CPs
A patch list with 3 control points.
.. data:: PatchList_4CPs
A patch list with 4 control points.
.. data:: PatchList_5CPs
A patch list with 5 control points.
.. data:: PatchList_6CPs
A patch list with 6 control points.
.. data:: PatchList_7CPs
A patch list with 7 control points.
.. data:: PatchList_8CPs
A patch list with 8 control points.
.. data:: PatchList_9CPs
A patch list with 9 control points.
.. data:: PatchList_10CPs
A patch list with 10 control points.
.. data:: PatchList_11CPs
A patch list with 11 control points.
.. data:: PatchList_12CPs
A patch list with 12 control points.
.. data:: PatchList_13CPs
A patch list with 13 control points.
.. data:: PatchList_14CPs
A patch list with 14 control points.
.. data:: PatchList_15CPs
A patch list with 15 control points.
.. data:: PatchList_16CPs
A patch list with 16 control points.
.. data:: PatchList_17CPs
A patch list with 17 control points.
.. data:: PatchList_18CPs
A patch list with 18 control points.
.. data:: PatchList_19CPs
A patch list with 19 control points.
.. data:: PatchList_20CPs
A patch list with 20 control points.
.. data:: PatchList_21CPs
A patch list with 21 control points.
.. data:: PatchList_22CPs
A patch list with 22 control points.
.. data:: PatchList_23CPs
A patch list with 23 control points.
.. data:: PatchList_24CPs
A patch list with 24 control points.
.. data:: PatchList_25CPs
A patch list with 25 control points.
.. data:: PatchList_26CPs
A patch list with 26 control points.
.. data:: PatchList_27CPs
A patch list with 27 control points.
.. data:: PatchList_28CPs
A patch list with 28 control points.
.. data:: PatchList_29CPs
A patch list with 29 control points.
.. data:: PatchList_30CPs
A patch list with 30 control points.
.. data:: PatchList_31CPs
A patch list with 31 control points.
.. data:: PatchList_32CPs
A patch list with 32 control points.
)");
enum class Topology : uint32_t
{
Unknown,
PointList,
LineList,
LineStrip,
LineLoop,
TriangleList,
TriangleStrip,
TriangleFan,
LineList_Adj,
LineStrip_Adj,
TriangleList_Adj,
TriangleStrip_Adj,
PatchList,
PatchList_1CPs = PatchList,
PatchList_2CPs,
PatchList_3CPs,
PatchList_4CPs,
PatchList_5CPs,
PatchList_6CPs,
PatchList_7CPs,
PatchList_8CPs,
PatchList_9CPs,
PatchList_10CPs,
PatchList_11CPs,
PatchList_12CPs,
PatchList_13CPs,
PatchList_14CPs,
PatchList_15CPs,
PatchList_16CPs,
PatchList_17CPs,
PatchList_18CPs,
PatchList_19CPs,
PatchList_20CPs,
PatchList_21CPs,
PatchList_22CPs,
PatchList_23CPs,
PatchList_24CPs,
PatchList_25CPs,
PatchList_26CPs,
PatchList_27CPs,
PatchList_28CPs,
PatchList_29CPs,
PatchList_30CPs,
PatchList_31CPs,
PatchList_32CPs,
};
DECLARE_REFLECTION_ENUM(Topology);
DOCUMENT(R"(Return the patch list ``Topology`` with N control points
``N`` must be between 1 and 32 inclusive.
:param int N: The number of control points in the patch list
:return: The patchlist topology with that number of control points
:rtype: Topology
)");
constexpr inline Topology PatchList_Topology(uint32_t N)
{
return (N < 1 || N > 32) ? Topology::PatchList_1CPs
: Topology(uint32_t(Topology::PatchList_1CPs) + N - 1);
}
DOCUMENT(R"(Return the number of control points in a patch list ``Topology``
``t`` must be a patch list topology, the return value will be between 1 and 32 inclusive
:param Topology topology: The patch list topology
:return: The number of control points in the specified topology
:rtype: int
)");
constexpr inline uint32_t PatchList_Count(Topology topology)
{
return uint32_t(topology) < uint32_t(Topology::PatchList_1CPs)
? 0
: uint32_t(topology) - uint32_t(Topology::PatchList_1CPs) + 1;
}
DOCUMENT(R"(Check whether or not this topology supports primitive restart.
.. note:: This is almost but not quite the same as being a line/triangle strip - triangle fans
also support restart. See also :func:`IsStrip`.
:param Topology topology: The topology to check.
:return: ``True`` if it describes a topology that allows restart, ``False`` for a list.
:rtype: bool
)");
constexpr inline bool SupportsRestart(Topology topology)
{
return topology == Topology::LineStrip || topology == Topology::TriangleStrip ||
topology == Topology::LineStrip_Adj || topology == Topology::TriangleStrip_Adj ||
topology == Topology::TriangleFan;
}
DOCUMENT(R"(Check whether or not this is a strip-type topology.
:param Topology topology: The topology to check.
:return: ``True`` if it describes a strip topology, ``False`` for a list.
:rtype: bool
)");
constexpr inline bool IsStrip(Topology topology)
{
return topology == Topology::LineStrip || topology == Topology::TriangleStrip ||
topology == Topology::LineStrip_Adj || topology == Topology::TriangleStrip_Adj;
}
DOCUMENT(R"(The stage in a pipeline where a shader runs
.. data:: Vertex
The vertex shader.
.. data:: Hull
The hull shader. See also :data:`Tess_Control`.
.. data:: Tess_Control
The tessellation control shader. See also :data:`Hull`.
.. data:: Domain
The domain shader. See also :data:`Tess_Eval`.
.. data:: Tess_Eval
The tessellation evaluation shader. See also :data:`Domain`.
.. data:: Geometry
The geometry shader.
.. data:: Pixel
The pixel shader. See also :data:`Fragment`.
.. data:: Fragment
The fragment shader. See also :data:`Pixel`.
.. data:: Compute
The compute shader.
)");
enum class ShaderStage : uint32_t
{
Vertex = 0,
First = Vertex,
Hull,
Tess_Control = Hull,
Domain,
Tess_Eval = Domain,
Geometry,
Pixel,
Fragment = Pixel,
Compute,
Count,
};
ITERABLE_OPERATORS(ShaderStage);
DECLARE_REFLECTION_ENUM(ShaderStage);
template <typename integer>
constexpr inline ShaderStage StageFromIndex(integer stage)
{
return ShaderStage(stage);
}
DOCUMENT(R"(The type of issue that a debug message is about.
.. data:: Application_Defined
This message was generated by the application.
.. data:: Miscellaneous
This message doesn't fall into any other pre-defined category.
.. data:: Initialization
This message is about initialisation or creation of objects.
.. data:: Cleanup
This message is about cleanup, destruction or shutdown of objects.
.. data:: Compilation
This message is about compilation of shaders.
.. data:: State_Creation
This message is about creating unified state objects.
.. data:: State_Setting
This message is about changing current pipeline state.
.. data:: State_Getting
This message is about fetching or retrieving current pipeline state.
.. data:: Resource_Manipulation
This message is about updating or changing a resource's properties or contents.
.. data:: Execution
This message is about performing work.
.. data:: Shaders
This message is about the use, syntax, binding or linkage of shaders.
.. data:: Deprecated
This message is about the use of deprecated functionality.
.. data:: Undefined
This message is about the use of undefined behaviour.
.. data:: Portability
This message is about behaviour that could be or is not portable between different environments.
.. data:: Performance
This message is about performance problems or pitfalls.
)");
enum class MessageCategory : uint32_t
{
Application_Defined = 0,
Miscellaneous,
Initialization,
Cleanup,
Compilation,
State_Creation,
State_Setting,
State_Getting,
Resource_Manipulation,
Execution,
Shaders,
Deprecated,
Undefined,
Portability,
Performance,
};
DECLARE_REFLECTION_ENUM(MessageCategory);
DOCUMENT(R"(How serious a debug message is
.. data:: High
This message is very serious, indicating a guaranteed problem or major flaw.
.. data:: Medium
This message is somewhat serious, indicating a problem that should be addressed or investigated.
.. data:: Low
This message is not very serious. This indicates something that might indicate a problem.
.. data:: Info
This message is not about a problem but is purely informational.
)");
enum class MessageSeverity : uint32_t
{
High = 0,
Medium,
Low,
Info,
};
DECLARE_REFLECTION_ENUM(MessageSeverity);
DOCUMENT(R"(Where a debug message was reported from
.. data:: API
This message comes from the API's debugging or validation layers.
.. data:: RedundantAPIUse
This message comes from detecting redundant API calls - calls with no side-effect or purpose, e.g.
setting state that is already set.
.. data:: IncorrectAPIUse
This message comes from detecting incorrect use of the API.
.. data:: GeneralPerformance
This message comes from detecting general performance problems that are not hardware or platform
specific.
.. data:: GCNPerformance
This message comes from detecting patterns that will cause performance problems on GCN-based
hardware.
.. data:: RuntimeWarning
This message comes not from inspecting the log but something detected at runtime while in use,
for example exceptions generated during shader debugging.
.. data:: UnsupportedConfiguration
This message comes from replaying a capture in an environment with insufficient capability to
accurately reproduce the API work. Either this means the replay will be wrong, or it may be that
depending on the exact API work some inaccuracies might happen.
)");
enum class MessageSource : uint32_t
{
API = 0,
RedundantAPIUse,
IncorrectAPIUse,
GeneralPerformance,
GCNPerformance,
RuntimeWarning,
UnsupportedConfiguration,
};
DECLARE_REFLECTION_ENUM(MessageSource);
DOCUMENT(R"(How a resource is being used in the pipeline at a particular point.
Note that a resource may be used for more than one thing in one event, see :class:`EventUsage`.
.. data:: Unused
The resource is not being used.
.. data:: VertexBuffer
The resource is being used as a fixed-function vertex buffer input.
.. data:: IndexBuffer
The resource is being used as an index buffer.
.. data:: VS_Constants
The resource is being used for constants in the :data:`vertex shader <ShaderStage.Vertex>`.
.. data:: HS_Constants
The resource is being used for constants in the tessellation control or
:data:`hull shader <ShaderStage.Hull>`.
.. data:: DS_Constants
The resource is being used for constants in the tessellation evaluation or
:data:`domain shader <ShaderStage.Domain>`.
.. data:: GS_Constants
The resource is being used for constants in the :data:`geometry shader <ShaderStage.Geometry>`.
.. data:: PS_Constants
The resource is being used for constants in the :data:`pixel shader <ShaderStage.Pixel>`.
.. data:: CS_Constants
The resource is being used for constants in the :data:`compute shader <ShaderStage.Compute>`.
.. data:: All_Constants
The resource is being used for constants in all shader stages.
.. data:: StreamOut
The resource is being used for stream out/transform feedback storage after geometry processing.
.. data:: VS_Resource
The resource is being used as a read-only resource in the
:data:`vertex shader <ShaderStage.Vertex>`.
.. data:: HS_Resource
The resource is being used as a read-only resource in the tessellation control or
:data:`hull shader <ShaderStage.Hull>`.
.. data:: DS_Resource
The resource is being used as a read-only resource in the tessellation evaluation or
:data:`domain shader <ShaderStage.Domain>`.
.. data:: GS_Resource
The resource is being used as a read-only resource in the
:data:`geometry shader <ShaderStage.Geometry>`.
.. data:: PS_Resource
The resource is being used as a read-only resource in the
:data:`pixel shader <ShaderStage.Pixel>`.
.. data:: CS_Resource
The resource is being used as a read-only resource in the
:data:`compute shader <ShaderStage.Compute>`.
.. data:: All_Resource
The resource is being used as a read-only resource in all shader stages.
.. data:: VS_RWResource
The resource is being used as a read-write resource in the
:data:`vertex shader <ShaderStage.Vertex>`.
.. data:: HS_RWResource
The resource is being used as a read-write resource in the tessellation control or
:data:`hull shader <ShaderStage.Hull>`.
.. data:: DS_RWResource
The resource is being used as a read-write resource in the tessellation evaluation or
:data:`domain shader <ShaderStage.Domain>`.
.. data:: GS_RWResource
The resource is being used as a read-write resource in the
:data:`geometry shader <ShaderStage.Geometry>`.
.. data:: PS_RWResource
The resource is being used as a read-write resource in the
:data:`pixel shader <ShaderStage.Pixel>`.
.. data:: CS_RWResource
The resource is being used as a read-write resource in the
:data:`compute shader <ShaderStage.Compute>`.
.. data:: All_RWResource
The resource is being used as a read-write resource in all shader stages.
.. data:: InputTarget
The resource is being read as an input target for reading from the target currently being written.
.. data:: ColorTarget
The resource is being written to as a color output.
.. data:: DepthStencilTarget
The resource is being written to and tested against as a depth-stencil output.
.. data:: Indirect
The resource is being used for indirect arguments.
.. data:: Clear
The resource is being cleared.
.. data:: Discard
The resource contents are discarded explicitly or implicitly.
.. data:: GenMips
The resource is having mips generated for it.
.. data:: Resolve
The resource is being resolved or blitted, as both source and destination.
.. data:: ResolveSrc
The resource is being resolved or blitted from.
.. data:: ResolveDst
The resource is being resolved or blitted to.
.. data:: Copy
The resource is being copied, as both source and destination.
.. data:: CopySrc
The resource is being copied from.
.. data:: CopyDst
The resource is being copied to.
.. data:: Barrier
The resource is being specified in a barrier, as defined in Vulkan or Direct3D 12.
.. data:: CPUWrite
The resource is written from the CPU, either directly as mapped memory or indirectly via a
synchronous update.
)");
enum class ResourceUsage : uint32_t
{
Unused,
VertexBuffer,
IndexBuffer,
VS_Constants,
HS_Constants,
DS_Constants,
GS_Constants,
PS_Constants,
CS_Constants,
All_Constants,
StreamOut,
VS_Resource,
HS_Resource,
DS_Resource,
GS_Resource,
PS_Resource,
CS_Resource,
All_Resource,
VS_RWResource,
HS_RWResource,
DS_RWResource,
GS_RWResource,
PS_RWResource,
CS_RWResource,
All_RWResource,
InputTarget,
ColorTarget,
DepthStencilTarget,
Indirect,
Clear,
Discard,
GenMips,
Resolve,
ResolveSrc,
ResolveDst,
Copy,
CopySrc,
CopyDst,
Barrier,
CPUWrite,
};
DECLARE_REFLECTION_ENUM(ResourceUsage);
template <typename integer>
constexpr inline ResourceUsage CBUsage(integer stage)
{
return ResourceUsage(uint32_t(ResourceUsage::VS_Constants) + stage);
}
DOCUMENT(R"(Calculate the ``ResourceUsage`` value for constant buffer use at a given shader stage.
:param ShaderStage stage: The shader stage.
:return: The value for constant buffer usage at a given shader stage.
:rtype: ResourceUsage
)");
constexpr inline ResourceUsage CBUsage(ShaderStage stage)
{
return CBUsage(uint32_t(stage));
}
template <typename integer>
constexpr inline ResourceUsage ResUsage(integer stage)
{
return ResourceUsage(uint32_t(ResourceUsage::VS_Resource) + stage);
}
DOCUMENT(R"(Calculate the ``ResourceUsage`` value for read-only resource use at a given shader
stage.
:param ShaderStage stage: The shader stage.
:return: The value for read-only resource usage at a given shader stage.
:rtype: ResourceUsage
)");
constexpr inline ResourceUsage ResUsage(ShaderStage stage)
{
return ResUsage(uint32_t(stage));
}
template <typename integer>
constexpr inline ResourceUsage RWResUsage(integer stage)
{
return ResourceUsage(uint32_t(ResourceUsage::VS_RWResource) + stage);
}
DOCUMENT(R"(Calculate the ``ResourceUsage`` value for read-write resource use at a given shader
stage.
:param ShaderStage stage: The shader stage.
:return: The value for read-write resource usage at a given shader stage.
:rtype: ResourceUsage
)");
constexpr inline ResourceUsage RWResUsage(ShaderStage stage)
{
return RWResUsage(uint32_t(stage));
}
DOCUMENT(R"(What kind of solid shading to use when rendering a mesh.
.. data:: NoSolid
No solid shading should be done.
.. data:: Solid
The mesh should be rendered in a single flat unshaded color.
.. data:: Lit
The mesh should be rendered with face normals generated on the primitives and used for lighting.
.. data:: Secondary
The mesh should be rendered using the secondary element as color.
)");
enum class SolidShade : uint32_t
{
NoSolid = 0,
Solid,
Lit,
Secondary,
Count,
};
DECLARE_REFLECTION_ENUM(SolidShade);
DOCUMENT(R"(The fill mode for polygons.
.. data:: Solid
Polygons are filled in and rasterized solidly.
.. data:: Wireframe
Polygons are rendered only with lines along their edges, forming a wireframe.
.. data:: Point
Only the points at the polygons vertices are rendered.
)");
enum class FillMode : uint32_t
{
Solid = 0,
Wireframe,
Point,
};
DECLARE_REFLECTION_ENUM(FillMode);
DOCUMENT(R"(The culling mode for polygons.
.. data:: NoCull
No polygon culling is performed.
.. data:: Front
Front-facing polygons are culled.
.. data:: Back
Back-facing polygons are culled.
.. data:: FrontAndBack
Both front-facing and back-facing polygons are culled.
)");
enum class CullMode : uint32_t
{
NoCull = 0,
Front,
Back,
FrontAndBack,
};
DECLARE_REFLECTION_ENUM(CullMode);
DOCUMENT(R"(The conservative rasterization mode.
.. data:: Disabled
No conservative rasterization, the default rasterization coverage algorithm is used.
.. data:: Underestimate
Fragments will only be generated if the primitive full covers all parts of the pixel, including
edges and corners.
.. data:: Overestimate
Fragments will be generated if the primitive covers any part of the pixel, including edges and
corners.
)");
enum class ConservativeRaster : uint32_t
{
Disabled = 0,
Underestimate,
Overestimate,
};
DECLARE_REFLECTION_ENUM(ConservativeRaster);
DOCUMENT(R"(A combiner to apply when determining a pixel shading rate.
.. data:: Keep
Keep the first input to the combiner.
.. data:: Passthrough
Keep the first input to the combiner. Alias for :data:`Keep`, for D3D terminology.
.. data:: Replace
Replace with the second input to the combiner.
.. data:: Override
Replace with the second input to the combiner. Alias for :data:`Replace`, for D3D terminology.
.. data:: Min
Use the minimum (finest rate) of the two inputs.
.. data:: Max
Use the maximum (coarsest rate) of the two inputs.
.. data:: Multiply
Multiply the two rates together (e.g. 1x1 and 1x2 = 1x2, 2x2 and 2x2 = 4x4). Note that D3D names
this 'sum' misleadingly.
)");
enum class ShadingRateCombiner : uint32_t
{
Keep,
Passthrough = Keep,
Replace,
Override = Replace,
Min,
Max,
Multiply,
};
DECLARE_REFLECTION_ENUM(ShadingRateCombiner);
DOCUMENT(R"(The line rasterization mode.
.. data:: Default
Default line rasterization mode as defined by the API specification.
.. data:: Rectangular
Lines are rasterized as rectangles extruded from the line.
.. data:: Bresenham
Lines are rasterized according to the bresenham line algorithm.
.. data:: RectangularSmooth
Lines are rasterized as rectangles extruded from the line with coverage falloff.
)");
enum class LineRaster : uint32_t
{
Default = 0,
Rectangular,
Bresenham,
RectangularSmooth,
};
DECLARE_REFLECTION_ENUM(LineRaster);
DOCUMENT(R"(The texture filtering mode for a given direction (minification, magnification, or
between mips).
.. data:: NoFilter
No filtering - this direction is disabled or there is no sampler.
.. data:: Point
Point or nearest filtering - the closest pixel or mip level to the sample location is used.
.. data:: Linear
Linear filtering - a linear interpolation happens between the pixels or mips on either side of the
sample location in each direction.
.. data:: Cubic
Similar to linear filtering but with a cubic curve used for interpolation instead of linear.
.. data:: Anisotropic
This sampler is using anisotropic filtering.
)");
enum class FilterMode : uint32_t
{
NoFilter,
Point,
Linear,
Cubic,
Anisotropic,
};
DECLARE_REFLECTION_ENUM(FilterMode);
DOCUMENT(R"(The function used to process the returned value after interpolation.
.. data:: Normal
No special processing is used, the value is returned directly to the shader.
.. data:: Comparison
The value from interpolation is compared to a reference value and the comparison result is
returned to the shader.
.. data:: Minimum
Instead of interpolating between sample points to retrieve an interpolated value, a min filter is
used instead to find the minimum sample value.
Texels that were weight to 0 during interpolation are not included in the min function.
.. data:: Maximum
Instead of interpolating between sample points to retrieve an interpolated value, a max filter is
used instead to find the maximum sample value.
Texels that were weight to 0 during interpolation are not included in the max function.
)");
enum class FilterFunction : uint32_t
{
Normal,
Comparison,
Minimum,
Maximum,
};
DECLARE_REFLECTION_ENUM(FilterFunction);
DOCUMENT(R"(A comparison function to return a ``bool`` result from two inputs ``A`` and ``B``.
.. data:: Never
``False``
.. data:: AlwaysTrue
``True``
.. data:: Less
``A < B``
.. data:: LessEqual
``A <= B``
.. data:: Greater
``A > B``
.. data:: GreaterEqual
``A >= B``
.. data:: Equal
``A == B``
.. data:: NotEqual
``A != B``
)");
enum class CompareFunction : uint32_t
{
Never,
AlwaysTrue,
Less,
LessEqual,
Greater,
GreaterEqual,
Equal,
NotEqual,
};
DECLARE_REFLECTION_ENUM(CompareFunction);
DOCUMENT(R"(A stencil operation to apply in stencil processing.
.. data:: Keep
Keep the existing value unmodified.
.. data:: Zero
Set the value to ``0``.
.. data:: Replace
Replace the value with the stencil reference value.
.. data:: IncSat
Increment the value but saturate at the maximum representable value (typically ``255``).
.. data:: DecSat
Decrement the value but saturate at ``0``.
.. data:: IncWrap
Increment the value and wrap at the maximum representable value (typically ``255``) to ``0``.
.. data:: DecWrap
Decrement the value and wrap at ``0`` to the maximum representable value (typically ``255``).
.. data:: Invert
Invert the bits in the stencil value (bitwise ``NOT``).
)");
enum class StencilOperation : uint32_t
{
Keep,
Zero,
Replace,
IncSat,
DecSat,
IncWrap,
DecWrap,
Invert,
};
DECLARE_REFLECTION_ENUM(StencilOperation);
DOCUMENT(R"(A multiplier on one component in the blend equation.
.. note:: The "source" value is the value written out by the shader.
The "second source" value is provided when dual source blending is used.
The "destination" value is the value in the target being blended to.
These values are combined using a given blend operation, see :class:`BlendOperation`.
Where a color is referenced, the value depends on where the multiplier appears in the blend
equation. If it is a multiplier on the color component then it refers to the color component. If
it is a multiplier on the alpha component then it refers to the alpha component.
If alpha is referenced explicitly it always refers to alpha, in both color and alpha equations.
.. data:: Zero
The literal value ``0.0``.
.. data:: One
The literal value ``1.0``.
.. data:: SrcCol
The source value's color.
.. data:: InvSrcCol
``1.0`` minus the source value's color.
.. data:: DstCol
The destination value's color.
.. data:: InvDstCol
``1.0`` minus the destination value's color.
.. data:: SrcAlpha
The source value's alpha.
.. data:: InvSrcAlpha
``1.0`` minus the source value's alpha.
.. data:: DstAlpha
The destination value's alpha.
.. data:: InvDstAlpha
``1.0`` minus the destination value's alpha.
.. data:: SrcAlphaSat
The lowest value of :data:`SrcAlpha` and :data:`InvDstAlpha`. If used in the alpha equation, it takes the value :data:`One`.
.. data:: FactorRGB
The color components of the fixed blend factor constant.
.. data:: InvFactorRGB
``1.0`` minus the color components of the fixed blend factor constant.
.. data:: FactorAlpha
The alpha component of the fixed blend factor constant.
.. data:: InvFactorAlpha
``1.0`` minus the alpha components of the fixed blend factor constant.
.. data:: Src1Col
The second source value's color.
.. data:: InvSrc1Col
``1.0`` minus the second source value's color.
.. data:: Src1Alpha
The second source value's alpha.
.. data:: InvSrc1Alpha
``1.0`` minus the second source value's alpha.
)");
enum class BlendMultiplier : uint32_t
{
Zero,
One,
SrcCol,
InvSrcCol,
DstCol,
InvDstCol,
SrcAlpha,
InvSrcAlpha,
DstAlpha,
InvDstAlpha,
SrcAlphaSat,
FactorRGB,
InvFactorRGB,
FactorAlpha,
InvFactorAlpha,
Src1Col,
InvSrc1Col,
Src1Alpha,
InvSrc1Alpha,
};
DECLARE_REFLECTION_ENUM(BlendMultiplier);
DOCUMENT(R"(A blending operation to apply in color blending.
.. note:: The "source" value is the value written out by the shader.
The "destination" value is the value in the target being blended to.
These values are multiplied by a given blend factor, see :class:`BlendMultiplier`.
.. data:: Add
Add the two values being processed together.
.. data:: Subtract
Subtract the destination value from the source value.
.. data:: ReversedSubtract
Subtract the source value from the destination value.
.. data:: Minimum
The minimum of the source and destination value.
.. data:: Maximum
The maximum of the source and destination value.
)");
enum class BlendOperation : uint32_t
{
Add,
Subtract,
ReversedSubtract,
Minimum,
Maximum,
};
DECLARE_REFLECTION_ENUM(BlendOperation);
DOCUMENT(R"(A logical operation to apply when writing texture values to an output.
.. note:: The "source" value is the value written out by the shader.
The "destination" value is the value in the target being written to.
.. data:: NoOp
No operation is performed, the destination is unmodified.
.. data:: Clear
A ``0`` in every bit.
.. data:: Set
A ``1`` in every bit.
.. data:: Copy
The contents of the source value.
.. data:: CopyInverted
The contents of the source value are bitwise inverted.
.. data:: Invert
The contents of the destination value are bitwise inverted, then written.
.. data:: And
The source and destination values are combined with the bitwise ``AND`` operator.
.. data:: Nand
The source and destination values are combined with the bitwise ``NAND`` operator.
.. data:: Or
The source and destination values are combined with the bitwise ``OR`` operator.
.. data:: Xor
The source and destination values are combined with the bitwise ``XOR`` operator.
.. data:: Nor
The source and destination values are combined with the bitwise ``NOR`` operator.
.. data:: Equivalent
The source and destination values are combined with the logical equivalence operator, defined as
``NOT (s XOR d)``.
.. data:: AndReverse
The source and inverted destination values are combined with the bitwise ``AND`` operator - i.e.
``s AND (NOT d)``.
.. data:: AndInverted
The inverted source and destination values are combined with the bitwise ``AND`` operator - i.e.
``(NOT s) AND d``.
.. data:: OrReverse
The source and inverted destination values are combined with the bitwise ``OR`` operator - i.e.
``s OR (NOT d)``.
.. data:: OrInverted
The inverted source and destination values are combined with the bitwise ``OR`` operator - i.e.
``(NOT s) OR d``.
)");
enum class LogicOperation : uint32_t
{
NoOp,
Clear,
Set,
Copy,
CopyInverted,
Invert,
And,
Nand,
Or,
Xor,
Nor,
Equivalent,
AndReverse,
AndInverted,
OrReverse,
OrInverted,
};
DECLARE_REFLECTION_ENUM(LogicOperation);
DOCUMENT(R"(Pre-defined GPU counters that can be supported by a given implementation.
GPU counters actually available can be queried by :meth:`ReplayController.EnumerateCounters`. If any
in this list are supported they will be returned with these counter IDs. More counters may be
enumerated with IDs in the appropriate ranges.
.. data:: EventGPUDuration
Time taken for this event on the GPU, as measured by delta between two GPU timestamps.
.. data:: InputVerticesRead
Number of vertices read by input assembler.
.. data:: IAPrimitives
Number of primitives read by the input assembler.
.. data:: GSPrimitives
Number of primitives output by a geometry shader.
.. data:: RasterizerInvocations
Number of primitives that were sent to the rasterizer.
.. data:: RasterizedPrimitives
Number of primitives that were rendered.
.. data:: SamplesPassed
Number of samples that passed depth/stencil test.
.. data:: VSInvocations
Number of times a :data:`vertex shader <ShaderStage.Vertex>` was invoked.
.. data:: HSInvocations
Number of times a :data:`hull shader <ShaderStage.Hull>` was invoked.
.. data:: TCSInvocations
Number of times a :data:`tessellation control shader <ShaderStage.Tess_Control>` was invoked.
.. data:: DSInvocations
Number of times a :data:`domain shader <ShaderStage.Domain>` was invoked.
.. data:: TESInvocations
Number of times a :data:`tessellation evaluation shader <ShaderStage.Tess_Eval>` was invoked.
.. data:: GSInvocations
Number of times a :data:`domain shader <ShaderStage.Domain>` was invoked.
.. data:: PSInvocations
Number of times a :data:`pixel shader <ShaderStage.Pixel>` was invoked.
.. data:: FSInvocations
Number of times a :data:`fragment shader <ShaderStage.Fragment>` was invoked.
.. data:: CSInvocations
Number of times a :data:`compute shader <ShaderStage.Compute>` was invoked.
.. data:: FirstAMD
The AMD-specific counter IDs start from this value.
.. data:: LastAMD
The AMD-specific counter IDs end with this value.
.. data:: FirstIntel
The Intel-specific counter IDs start from this value.
.. data:: LastIntel
The Intel-specific counter IDs end with this value.
.. data:: FirstNvidia
The nVidia-specific counter IDs start from this value.
.. data:: LastNvidia
The nVidia-specific counter IDs end with this value.
.. data:: FirstVulkanExtended
The Vulkan extended counter IDs start from this value.
.. data:: LastVulkanExtended
The Vulkan extended counter IDs end with this value.
.. data:: FirstARM
The ARM-specific counter IDs start from this value.
.. data:: LastARM
The ARM-specific counter IDs end with this value.
)");
enum class GPUCounter : uint32_t
{
EventGPUDuration = 1,
First = EventGPUDuration,
InputVerticesRead,
IAPrimitives,
GSPrimitives,
RasterizerInvocations,
RasterizedPrimitives,
SamplesPassed,
VSInvocations,
HSInvocations,
TCSInvocations = HSInvocations,
DSInvocations,
TESInvocations = DSInvocations,
GSInvocations,
PSInvocations,
FSInvocations = PSInvocations,
CSInvocations,
Count,
// IHV specific counters can be set above this point
// with ranges reserved for each IHV
FirstAMD = 1000000,
FirstIntel = 2000000,
LastAMD = FirstIntel - 1,
FirstNvidia = 3000000,
LastIntel = FirstNvidia - 1,
FirstVulkanExtended = 4000000,
LastNvidia = FirstVulkanExtended - 1,
FirstARM = 5000000,
LastVulkanExtended = FirstARM - 1,
LastARM = 6000000,
};
ITERABLE_OPERATORS(GPUCounter);
DECLARE_REFLECTION_ENUM(GPUCounter);
DOCUMENT(R"(Check whether or not this is a Generic counter.
:param GPUCounter c: The counter.
:return: ``True`` if it is a generic counter, ``False`` if it's not.
:rtype: bool
)");
inline constexpr bool IsGenericCounter(GPUCounter c)
{
return c < GPUCounter::Count;
}
DOCUMENT(R"(Check whether or not this is an AMD private counter.
:param GPUCounter c: The counter.
:return: ``True`` if it is an AMD private counter, ``False`` if it's not.
:rtype: bool
)");
inline constexpr bool IsAMDCounter(GPUCounter c)
{
return c >= GPUCounter::FirstAMD && c <= GPUCounter::LastAMD;
}
DOCUMENT(R"(Check whether or not this is an Intel private counter.
:param GPUCounter c: The counter.
:return: ``True`` if it is an Intel private counter, ``False`` if it's not.
:rtype: bool
)");
inline constexpr bool IsIntelCounter(GPUCounter c)
{
return c >= GPUCounter::FirstIntel && c <= GPUCounter::LastIntel;
}
DOCUMENT(R"(Check whether or not this is an Nvidia private counter.
:param GPUCounter c: The counter.
:return: ``True`` if it is an Nvidia private counter, ``False`` if it's not.
:rtype: bool
)");
inline constexpr bool IsNvidiaCounter(GPUCounter c)
{
return c >= GPUCounter::FirstNvidia && c <= GPUCounter::LastNvidia;
}
DOCUMENT(R"(Check whether or not this is a KHR counter.
:param GPUCounter c: The counter.
:return: ``True`` if it is a Vulkan counter reported through the VK_KHR_performance_query extension, ``False`` if it's not.
:rtype: bool
)");
inline constexpr bool IsVulkanExtendedCounter(GPUCounter c)
{
return c >= GPUCounter::FirstVulkanExtended && c <= GPUCounter::LastVulkanExtended;
}
DOCUMENT(R"(Check whether or not this is an ARM private counter.
:param GPUCounter c: The counter.
:return: ``True`` if it is an ARM private counter, ``False`` if it's not.
:rtype: bool
)");
inline constexpr bool IsARMCounter(GPUCounter c)
{
return c >= GPUCounter::FirstARM && c <= GPUCounter::LastARM;
}
DOCUMENT(R"(The unit that GPU counter data is returned in.
.. data:: Absolute
The value is an absolute value and should be interpreted as unitless.
.. data:: Seconds
The value is a duration in seconds.
.. data:: Percentage
The value is a floating point percentage value between 0.0 and 1.0.
.. data:: Ratio
The value describes a ratio between two separate GPU units or counters.
.. data:: Bytes
The value is in bytes.
.. data:: Cycles
The value is a duration in clock cycles.
.. data:: Hertz
The value is a value in Hertz (cycles per second).
.. data:: Volt
The value is a value in Volts.
.. data:: Celsius
The value is a value in Celsius.
)");
enum class CounterUnit : uint32_t
{
Absolute,
Seconds,
Percentage,
Ratio,
Bytes,
Cycles,
Hertz,
Volt,
Celsius
};
DECLARE_REFLECTION_ENUM(CounterUnit);
DOCUMENT(R"(The type of camera controls for an :class:`Camera`.
.. data:: Arcball
Arcball controls that rotate and zoom around the origin point.
.. data:: FPSLook
Traditional FPS style controls with movement in each axis relative to the current look direction.
)");
enum class CameraType : uint32_t
{
Arcball = 0,
FPSLook,
};
DECLARE_REFLECTION_ENUM(CameraType);
DOCUMENT(R"(How supported a given API is on a particular replay instance.
.. data:: Unsupported
The API is not supported.
.. data:: Supported
The API is fully supported.
.. data:: SuggestRemote
The API is supported locally but the capture indicates it was made on a different type of machine
so remote replay might be desired.
)");
enum class ReplaySupport : uint32_t
{
Unsupported,
Supported,
SuggestRemote,
};
DECLARE_REFLECTION_ENUM(ReplaySupport);
DOCUMENT(R"(The result from a replay operation such as opening a capture or connecting to
a remote server.
.. data:: Succeeded
The operation succeeded.
.. data:: UnknownError
An unknown error occurred.
.. data:: InternalError
An internal error occurred indicating a bug or unexpected condition.
.. data:: FileNotFound
The specified file was not found.
.. data:: InjectionFailed
Injection or hooking into the target process failed.
.. data:: IncompatibleProcess
An incompatible process was found, e.g. a 32-bit process with 32-bit support not available.
.. data:: NetworkIOFailed
A network I/O operation failed.
.. data:: NetworkRemoteBusy
The remote side of the network connection was busy.
.. data:: NetworkVersionMismatch
The other side of the network connection was not at a compatible version.
.. data:: FileIOFailed
A filesystem I/O operation failed.
.. data:: FileIncompatibleVersion
The capture file had an incompatible version.
.. data:: FileCorrupted
The capture file is corrupted or otherwise unrecognisable.
.. data:: ImageUnsupported
The image file or format is unrecognised or not supported in this form.
.. data:: APIUnsupported
The API used in the capture is not supported.
.. data:: APIInitFailed
The API used in the capture failed to initialise.
.. data:: APIIncompatibleVersion
The API data in the capture had an incompatible version.
.. data:: APIHardwareUnsupported
Current replaying hardware unsupported or incompatible with captured hardware.
.. data:: APIDataCorrupted
While loading the capture for replay, the driver encountered corrupted or invalid serialised data.
.. data:: APIReplayFailed
The API failed to replay the capture, with some runtime error that couldn't be determined until
the replay began.
.. data:: JDWPFailure
Use of JDWP to launch and inject into the application failed, this most often indicates that some
other JDWP-using program such as Android Studio is interfering.
.. data:: AndroidGrantPermissionsFailed
Failed to grant runtime permissions when installing Android remote server.
.. data:: AndroidABINotFound
Couldn't determine supported ABIs when installing Android remote server.
.. data:: AndroidAPKFolderNotFound
Couldn't find the folder which contains the Android remote server APK.
.. data:: AndroidAPKInstallFailed
Failed to install Android remote server for unknown reasons.
.. data:: AndroidAPKVerifyFailed
Failed to install Android remote server.
.. data:: RemoteServerConnectionLost
While replaying on a remote server, the connection was lost.
.. data:: ReplayOutOfMemory
While replaying, an out of memory error was encountered.
.. data:: ReplayDeviceLost
While replaying a device lost fatal error was encountered.
.. data:: DataNotAvailable
Data was requested through RenderDoc's API which is not available.
.. data:: InvalidParameter
An invalid parameter was passed to RenderDoc's API.
.. data:: CompressionFailed
Compression or decompression failed.
)");
enum class ResultCode : uint32_t
{
Succeeded = 0,
UnknownError,
InternalError,
FileNotFound,
InjectionFailed,
IncompatibleProcess,
NetworkIOFailed,
NetworkRemoteBusy,
NetworkVersionMismatch,
FileIOFailed,
FileIncompatibleVersion,
FileCorrupted,
ImageUnsupported,
APIUnsupported,
APIInitFailed,
APIIncompatibleVersion,
APIHardwareUnsupported,
APIDataCorrupted,
APIReplayFailed,
JDWPFailure,
AndroidGrantPermissionsFailed,
AndroidABINotFound,
AndroidAPKFolderNotFound,
AndroidAPKInstallFailed,
AndroidAPKVerifyFailed,
RemoteServerConnectionLost,
ReplayOutOfMemory,
ReplayDeviceLost,
DataNotAvailable,
InvalidParameter,
CompressionFailed,
};
DECLARE_REFLECTION_ENUM(ResultCode);
// need to forward declare this explicitly since ResultCode can be instantiated early in places
// where we're going to later explicitly instantiate it to define it
template <>
rdcstr DoStringise(const ResultCode &el);
DOCUMENT(R"(The type of message received from or sent to an application target control connection.
.. data:: Unknown
No message or an unknown message type.
.. data:: Disconnected
The other end of the connection disconnected.
.. data:: Busy
The other end of the connection was busy.
.. data:: Noop
Nothing happened, the connection is being kept alive.
.. data:: NewCapture
A new capture was made.
.. data:: CaptureCopied
A capture was successfully copied across the connection.
.. data:: RegisterAPI
The target has initialised a graphics API.
.. data:: NewChild
The target has created a child process.
.. data:: CaptureProgress
Progress update on an on-going frame capture.
.. data:: CapturableWindowCount
The number of capturable windows has changed.
.. data:: RequestShow
The client has requested that the controller show itself (raise its window to the top).
)");
enum class TargetControlMessageType : uint32_t
{
Unknown = 0,
Disconnected,
Busy,
Noop,
NewCapture,
CaptureCopied,
RegisterAPI,
NewChild,
CaptureProgress,
CapturableWindowCount,
RequestShow,
};
DECLARE_REFLECTION_ENUM(TargetControlMessageType);
DOCUMENT(R"(How to modify an environment variable.
.. data:: Set
Set the variable to the given value.
.. data:: Append
Add the given value to the end of the variable, using the separator.
.. data:: Prepend
Add the given value to the start of the variable, using the separator.
)");
enum class EnvMod : uint32_t
{
Set,
Append,
Prepend,
};
DECLARE_REFLECTION_ENUM(EnvMod);
DOCUMENT(R"(The separator to use if needed when modifying an environment variable.
.. data:: Platform
Use the character appropriate for separating items on the platform.
On Windows this means the semi-colon ``;`` character will be used, on posix systems the colon
``:`` character will be used.
.. data:: SemiColon
Use a semi-colon ``;`` character.
.. data:: Colon
Use a colon ``:`` character.
.. data:: NoSep
No separator will be used.
)");
enum class EnvSep : uint32_t
{
Platform,
SemiColon,
Colon,
NoSep,
};
DECLARE_REFLECTION_ENUM(EnvSep);
// see comment in common.h
#if !defined(LOGTYPE_DEFINED)
#define LOGTYPE_DEFINED
DOCUMENT(R"(The type of a log message
.. data:: Debug
The log message is a verbose debug-only message that can be discarded in release builds.
.. data:: Comment
The log message is informational.
.. data:: Warning
The log message describes a warning that could indicate a problem or be useful in diagnostics.
.. data:: Error
The log message indicates an error was encountered.
.. data:: Fatal
The log message indicates a fatal error occurred which is impossible to recover from.
)");
enum class LogType : uint32_t
{
Debug,
First = Debug,
Comment,
Warning,
Error,
Fatal,
Count,
};
#endif
// this is OUTSIDE the #endif because we don't declare these in common.h, so in case they're needed
// we define them here
DECLARE_REFLECTION_ENUM(LogType);
ITERABLE_OPERATORS(LogType);
DOCUMENT(R"(The level of optimisation used in
.. data:: NoOptimisation
Completely disabled, no optimisation will be used at all.
.. data:: Conservative
Optimisation is used when it doesn't interfere with replay correctness.
.. data:: Balanced
Optimisation is used when it has minimal impact on replay correctness. This could include e.g.
resources appearing cleared instead of containing contents from prior frames where those resources
are written to before being read.
.. data:: Fastest
All possible optimisations are enabled as long as they do not cause invalid/incorrect replay.
This could result in side-effects like data from one replay being visible early in another replay,
if it's known that the data will be overwritten before being used.
)");
enum class ReplayOptimisationLevel : uint32_t
{
NoOptimisation,
First = NoOptimisation,
Conservative,
Balanced,
Fastest,
Count,
};
DECLARE_REFLECTION_ENUM(ReplayOptimisationLevel);
ITERABLE_OPERATORS(ReplayOptimisationLevel);
DOCUMENT(R"(Specifies a windowing system to use for creating an output window.
.. data:: Unknown
Unknown window type, no windowing data is passed and no native window is described.
.. data:: Headless
The windowing data doesn't describe a real window but a virtual area, allowing all normal output
rendering to happen off-screen.
See :func:`CreateHeadlessWindowingData`.
.. data:: Win32
The windowing data refers to a Win32 window. See :func:`CreateWin32WindowingData`.
.. data:: Xlib
The windowing data refers to an Xlib window. See :func:`CreateXLibWindowingData`.
.. data:: XCB
The windowing data refers to an XCB window. See :func:`CreateXCBWindowingData`.
.. data:: Android
The windowing data refers to an Android window. See :func:`CreateAndroidWindowingData`.
.. data:: MacOS
The windowing data refers to a MacOS / OS X NSView & CALayer that is Metal/GL compatible.
See :func:`CreateMacOSWindowingData`.
.. data:: GGP
The windowing data refers to an GGP surface. See :func:`CreateGgpWindowingData`.
.. data:: Wayland
The windowing data refers to an Wayland window. See :func:`CreateWaylandWindowingData`.
)");
enum class WindowingSystem : uint32_t
{
Unknown,
Headless,
Win32,
Xlib,
XCB,
Android,
MacOS,
GGP,
Wayland,
};
DECLARE_REFLECTION_ENUM(WindowingSystem);
#if defined(ENABLE_PYTHON_FLAG_ENUMS)
ENABLE_PYTHON_FLAG_ENUMS;
#endif
DOCUMENT(R"(A set of flags describing the properties of a path on a remote filesystem.
.. data:: NoFlags
No special file properties.
.. data:: Directory
This file is a directory or folder.
.. data:: Hidden
This file is considered hidden by the filesystem.
.. data:: Executable
This file has been identified as an executable program or script.
.. data:: ErrorUnknown
A special flag indicating that a query for this file failed, but for unknown reasons.
.. data:: ErrorAccessDenied
A special flag indicating that a query for this file failed because access to the path was
denied.
.. data:: ErrorInvalidPath
A special flag indicating that a query for this file failed because the path was invalid.
)");
enum class PathProperty : uint32_t
{
NoFlags = 0x0,
Directory = 0x1,
Hidden = 0x2,
Executable = 0x4,
ErrorUnknown = 0x2000,
ErrorAccessDenied = 0x4000,
ErrorInvalidPath = 0x8000,
};
BITMASK_OPERATORS(PathProperty);
DECLARE_REFLECTION_ENUM(PathProperty);
DOCUMENT(R"(A set of flags describing the properties of a section in a renderdoc capture.
.. data:: NoFlags
No special section properties.
.. data:: ASCIIStored
This section was stored as pure ASCII. This can be useful since it is possible to generate
an ASCII section in a text editor by hand or with any simple printf style script, and then
concatenate it to a .rdc and have a valid section.
.. data:: LZ4Compressed
This section is compressed with LZ4 on disk.
.. data:: ZstdCompressed
This section is compressed with Zstd on disk.
)");
enum class SectionFlags : uint32_t
{
NoFlags = 0x0,
ASCIIStored = 0x1,
LZ4Compressed = 0x2,
ZstdCompressed = 0x4,
};
BITMASK_OPERATORS(SectionFlags);
DECLARE_REFLECTION_ENUM(SectionFlags);
DOCUMENT(R"(A set of flags describing how this buffer may be used
.. data:: NoFlags
The buffer will not be used for any of the uses below.
.. data:: Vertex
The buffer will be used for sourcing vertex input data.
.. data:: Index
The buffer will be used for sourcing primitive index data.
.. data:: Constants
The buffer will be used for sourcing shader constant data.
.. data:: ReadWrite
The buffer will be used for read and write access from shaders.
.. data:: Indirect
The buffer will be used to provide indirect parameters for launching GPU-based actions.
)");
enum class BufferCategory : uint32_t
{
NoFlags = 0x0,
Vertex = 0x1,
Index = 0x2,
Constants = 0x4,
ReadWrite = 0x8,
Indirect = 0x10,
};
BITMASK_OPERATORS(BufferCategory);
DECLARE_REFLECTION_ENUM(BufferCategory);
DOCUMENT(R"(A set of flags for D3D buffer view properties.
.. data:: NoFlags
The buffer will not be used for any of the uses below.
.. data:: Raw
The buffer is used as a raw (byte-addressed) buffer.
.. data:: Append
The buffer is used as a append/consume view.
.. data:: Counter
The buffer is used with a structured buffer with associated hidden counter.
)");
enum class D3DBufferViewFlags : uint8_t
{
NoFlags = 0x0,
Raw = 0x1,
Append = 0x2,
Counter = 0x4,
};
BITMASK_OPERATORS(D3DBufferViewFlags);
DECLARE_REFLECTION_ENUM(D3DBufferViewFlags);
DOCUMENT(R"(A set of flags describing how this texture may be used
.. data:: NoFlags
The texture will not be used for any of the uses below.
.. data:: ShaderRead
The texture will be read by a shader.
.. data:: ColorTarget
The texture will be written to as a color target.
.. data:: DepthTarget
The texture will be written to and tested against as a depth target.
.. data:: ShaderReadWrite
The texture will be read and written to by a shader.
.. data:: SwapBuffer
The texture is part of a window swapchain.
)");
enum class TextureCategory : uint32_t
{
NoFlags = 0x0,
ShaderRead = 0x1,
ColorTarget = 0x2,
DepthTarget = 0x4,
ShaderReadWrite = 0x8,
SwapBuffer = 0x10,
};
BITMASK_OPERATORS(TextureCategory);
DECLARE_REFLECTION_ENUM(TextureCategory);
DOCUMENT(R"(A set of flags for ``ShaderStage`` stages
.. data:: Unknown
No flags set for any shader stages.
.. data:: Vertex
The flag for :data:`ShaderStage.Vertex`.
.. data:: Hull
The flag for :data:`ShaderStage.Hull`.
.. data:: Tess_Control
The flag for :data:`ShaderStage.Tess_Control`.
.. data:: Domain
The flag for :data:`ShaderStage.Domain`.
.. data:: Tess_Eval
The flag for :data:`ShaderStage.Tess_Eval`.
.. data:: Geometry
The flag for :data:`ShaderStage.Geometry`.
.. data:: Pixel
The flag for :data:`ShaderStage.Pixel`.
.. data:: Fragment
The flag for :data:`ShaderStage.Fragment`.
.. data:: Compute
The flag for :data:`ShaderStage.Compute`.
.. data:: All
A shorthand version with flags set for all stages together.
)");
enum class ShaderStageMask : uint32_t
{
Unknown = 0,
Vertex = 1 << uint32_t(ShaderStage::Vertex),
Hull = 1 << uint32_t(ShaderStage::Hull),
Tess_Control = Hull,
Domain = 1 << uint32_t(ShaderStage::Domain),
Tess_Eval = Domain,
Geometry = 1 << uint32_t(ShaderStage::Geometry),
Pixel = 1 << uint32_t(ShaderStage::Pixel),
Fragment = Pixel,
Compute = 1 << uint32_t(ShaderStage::Compute),
All = Vertex | Hull | Domain | Geometry | Pixel | Compute,
};
BITMASK_OPERATORS(ShaderStageMask);
DECLARE_REFLECTION_ENUM(ShaderStageMask);
DOCUMENT(R"(Calculate the corresponding flag for a shader stage
:param ShaderStage stage: The shader stage
:return: The flag that corresponds to the input shader stage
:rtype: ShaderStageMask
)");
constexpr inline ShaderStageMask MaskForStage(ShaderStage stage)
{
return ShaderStageMask(1 << uint32_t(stage));
}
DOCUMENT(R"(A set of flags for events that may occur while debugging a shader
.. data:: NoEvent
No event has occurred.
.. data:: SampleLoadGather
A texture was sampled, loaded or gathered.
.. data:: GeneratedNanOrInf
A floating point operation generated a ``NaN`` or ``infinity`` result.
)");
enum class ShaderEvents : uint32_t
{
NoEvent = 0,
SampleLoadGather = 0x1,
GeneratedNanOrInf = 0x2,
};
BITMASK_OPERATORS(ShaderEvents);
DECLARE_REFLECTION_ENUM(ShaderEvents);
DOCUMENT(R"(A set of flags for events that control how a shader/buffer value is interpreted and
displayed
.. data:: NoFlags
No flags are specified.
.. data:: RowMajorMatrix
This matrix is stored in row-major order in memory, instead of column-major. In RenderDoc values
are always provided row-major regardless, for consistency of access, but if this flag is not
present then the original values were in column order in memory, so the data has been transposed.
.. data:: HexDisplay
This value should be displayed using hexadecimal where possible.
.. data:: BinaryDisplay
This value should be displayed using binary where possible.
.. data:: RGBDisplay
This value should be interpreted as an RGB colour for display where possible.
.. data:: R11G11B10
This value should be decoded from a 32-bit integer in R11G11B10 packing format.
.. data:: R10G10B10A2
This value should be decoded from a 32-bit integer in R10G10B10A2 packing format.
.. data:: UNorm
This value should be treated as unsigned normalised floating point values when interpreting.
.. data:: SNorm
This value should be treated as signed normalised floating point values when interpreting.
.. data:: Truncated
This value was truncated when reading - the available range was exhausted.
)");
enum class ShaderVariableFlags : uint32_t
{
NoFlags = 0x0000,
RowMajorMatrix = 0x0001,
HexDisplay = 0x0002,
BinaryDisplay = 0x0004,
RGBDisplay = 0x0008,
R11G11B10 = 0x0010,
R10G10B10A2 = 0x0020,
UNorm = 0x0040,
SNorm = 0x0080,
Truncated = 0x0100,
};
BITMASK_OPERATORS(ShaderVariableFlags);
DECLARE_REFLECTION_ENUM(ShaderVariableFlags);
DOCUMENT(R"(A set of flags describing the properties of a particular action. An action is a call
such as a draw, a compute dispatch, clears, copies, resolves, etc. Any GPU event which may have
deliberate visible side-effects to application-visible memory, typically resources such as textures
and buffers. It also includes markers, which provide a user-generated annotation of events and
actions.
.. data:: NoFlags
The action has no special properties.
.. data:: Clear
The action is a clear call. See :data:`ClearColor` and :data:`ClearDepthStencil`.
.. data:: Drawcall
The action renders primitives using the graphics pipeline.
.. data:: Dispatch
The action issues a number of compute workgroups.
.. data:: CmdList
The action calls into a previously recorded child command list.
.. data:: SetMarker
The action inserts a single debugging marker.
.. data:: PushMarker
The action begins a debugging marker region that has children.
.. data:: PopMarker
The action ends a debugging marker region.
.. data:: Present
The action is a presentation call that hands a swapchain image to the presentation engine.
.. data:: MultiAction
The action is a multi-action that contains several specified child actions. Typically a MultiDraw
or ExecuteIndirect on D3D12.
.. data:: Copy
The action performs a resource copy operation.
.. data:: Resolve
The action performs a resource resolve or blit operation.
.. data:: GenMips
The action performs a resource mip-generation operation.
.. data:: PassBoundary
The action marks the beginning or end of a render pass. See :data:`BeginPass` and
:data:`EndPass`.
.. data:: Indexed
The action uses an index buffer.
.. data:: Instanced
The action uses instancing. This does not mean it renders more than one instanced, simply that
it uses the instancing feature.
.. data:: Auto
The action interacts with stream-out to render all vertices previously written. This is a
Direct3D 11 specific feature.
.. data:: Indirect
The action uses a buffer on the GPU to source some or all of its parameters in an indirect way.
.. data:: ClearColor
The action clears a color target.
.. data:: ClearDepthStencil
The action clears a depth-stencil target.
.. data:: BeginPass
The action marks the beginning of a render pass.
.. data:: EndPass
The action marks the end of a render pass.
.. data:: CommandBufferBoundary
The action is a virtual marker added to show command buffer boundaries.
)");
enum class ActionFlags : uint32_t
{
NoFlags = 0x0000,
// types
Clear = 0x0001,
Drawcall = 0x0002,
Dispatch = 0x0004,
CmdList = 0x0008,
SetMarker = 0x0010,
PushMarker = 0x0020,
PopMarker = 0x0040, // this is only for internal tracking use
Present = 0x0080,
MultiAction = 0x0100,
Copy = 0x0200,
Resolve = 0x0400,
GenMips = 0x0800,
PassBoundary = 0x1000,
// flags
Indexed = 0x010000,
Instanced = 0x020000,
Auto = 0x040000,
Indirect = 0x080000,
ClearColor = 0x100000,
ClearDepthStencil = 0x200000,
BeginPass = 0x400000,
EndPass = 0x800000,
CommandBufferBoundary = 0x1000000,
};
BITMASK_OPERATORS(ActionFlags);
DECLARE_REFLECTION_ENUM(ActionFlags);
DOCUMENT(R"(INTERNAL: A set of flags giving details of the current status of vulkan layer
registration.
.. data:: NoFlags
There are no problems with the vulkan layer registration.
.. data:: OtherInstallsRegistered
Other conflicting installs of the same layer in other locations are registered.
.. data:: ThisInstallRegistered
This current install of the layer is registered.
.. data:: NeedElevation
Fixing any issues will require elevation to system administrator privileges.
.. data:: UserRegisterable
This layer can be registered as user-local, as well as system-wide. If :data:`NeedElevation` isn't
also set then the entire process can be done un-elevated if user-local is desired.
.. note::
If the :data:`NeedElevation` flag is set then elevation is required to fix the layer
registration, even if a user-local registration is desired.
Most commonly this situation arises if there is no other registration, or the existing one is
already user-local.
.. data:: RegisterAll
All listed locations for the current layer must be registered for correct functioning.
If this flag is not set, then the listed locations are an 'or' list of alternatives.
.. data:: UpdateAllowed
If the current registrations can be updated or re-pointed to fix the issues.
.. data:: Unfixable
The current situation is not fixable automatically and requires user intervention/disambiguation.
.. data:: Unsupported
Vulkan is not supported by this build of RenderDoc and the layer cannot be registered.
)");
enum class VulkanLayerFlags : uint32_t
{
NoFlags = 0x0,
OtherInstallsRegistered = 0x1,
ThisInstallRegistered = 0x2,
NeedElevation = 0x4,
UserRegisterable = 0x8,
RegisterAll = 0x10,
UpdateAllowed = 0x20,
Unfixable = 0x40,
Unsupported = 0x80,
};
BITMASK_OPERATORS(VulkanLayerFlags);
DECLARE_REFLECTION_ENUM(VulkanLayerFlags);
DOCUMENT(R"(INTERNAL: A set of flags giving details of the current status of Android tracability.
.. data:: NoFlags
There are no problems with the Android application setup.
.. data:: Debuggable
The application is debuggable.
.. data:: RootAccess
The device being targeted has root access.
.. data:: MissingTools
When patching, some necessary tools were not found.
.. data:: ManifestPatchFailure
When patching, modifying the manifest file to include the debuggable flag failed.
.. data:: RepackagingAPKFailure
When patching, repackaging, signing and installing the new package failed.
)");
enum class AndroidFlags : uint32_t
{
NoFlags = 0x0,
Debuggable = 0x1,
RootAccess = 0x2,
MissingTools = 0x1000,
ManifestPatchFailure = 0x2000,
RepackagingAPKFailure = 0x4000,
};
BITMASK_OPERATORS(AndroidFlags);
DECLARE_REFLECTION_ENUM(AndroidFlags);
#if defined(DISABLE_PYTHON_FLAG_ENUMS)
DISABLE_PYTHON_FLAG_ENUMS;
#endif
```
|
```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 flag
import (
goflag "flag"
"strings"
"github.com/spf13/pflag"
"k8s.io/klog/v2"
)
var underscoreWarnings = make(map[string]bool)
// WordSepNormalizeFunc changes all flags that contain "_" separators
func WordSepNormalizeFunc(f *pflag.FlagSet, name string) pflag.NormalizedName {
if strings.Contains(name, "_") {
return pflag.NormalizedName(strings.Replace(name, "_", "-", -1))
}
return pflag.NormalizedName(name)
}
// WarnWordSepNormalizeFunc changes and warns for flags that contain "_" separators
func WarnWordSepNormalizeFunc(f *pflag.FlagSet, name string) pflag.NormalizedName {
if strings.Contains(name, "_") {
nname := strings.Replace(name, "_", "-", -1)
if _, alreadyWarned := underscoreWarnings[name]; !alreadyWarned {
klog.Warningf("using an underscore in a flag name is not supported. %s has been converted to %s.", name, nname)
underscoreWarnings[name] = true
}
return pflag.NormalizedName(nname)
}
return pflag.NormalizedName(name)
}
// InitFlags normalizes, parses, then logs the command line flags
func InitFlags() {
pflag.CommandLine.SetNormalizeFunc(WordSepNormalizeFunc)
pflag.CommandLine.AddGoFlagSet(goflag.CommandLine)
pflag.Parse()
pflag.VisitAll(func(flag *pflag.Flag) {
klog.V(2).Infof("FLAG: --%s=%q", flag.Name, flag.Value)
})
}
// PrintFlags logs the flags in the flagset
func PrintFlags(flags *pflag.FlagSet) {
flags.VisitAll(func(flag *pflag.Flag) {
klog.V(1).Infof("FLAG: --%s=%q", flag.Name, flag.Value)
})
}
```
|
Tuppi is a variant of Minnesota whist played in northern Finland. The major difference between Tuppi and Minnesota Whist is the scoring. In Tuppi, only one team can have points at a time, and consequently the points required to win a game must be collected in consecutive hands, without opponents scoring in between.
Tuppi is not normally played for money, and formerly people played Tuppi when their economic situation did not allow them to play Sökö. Nowadays, there are Tuppi clubs in Lapland, and they organize a Finnish Championship tournament.
Rules of Tuppi
The game is played by four players in fixed partnerships, partners sit opposite to each other. A normal 52 card deck is used. The ranking of cards is normal, the ace being highest. Deal all the cards to the players so that everyone has 13 cards.
Auction
Each player bids by placing one card face down on the table. Red card signifies rami, and a black card signifies nolo. The player is not allowed to use a two or a court card as the bidding card. The cards are exposed one at a time, and the first player to bid rami becomes the declarer. The bidding ends when someone bids rami, and the further cards are not exposed. If someone bid rami, the game is rami, and if no-one bid rami, the game is nolo.
If the opponents bid rami, either of the defenders is allowed to bid sooli, and play alone against the opponents, as the purpose to avoid getting tricks. The player who bid sooli puts one card away from his hand and gets one card from his partner.
In rare cases it may happen that a player does not have a suitable card to make the intended bid. In these cases, the player is allowed to make the bid verbally.
Play
In the beginning of the play, the bidding cards are returned to the players' hands.
In rami, the player right to the declarer starts the first trick. In nolo, the player left to the dealer starts the first trick. The game is an ordinary trick-taking game. The players must follow suit if possible, but there are no further rules regarding to the choice of the card. Tuppi is always no-trump.
In sooli, the ace is the lowest card, and the player who bid sooli, always plays a card into the trick last. The partner of the player who bid sooli does not participate in the game.
Scoring
In rami, the declarer side gets four points for each trick in excess of 6.
In rami, the defending side gets eight points for each trick in excess of 6.
In nolo, the side that got less tricks, gets four points for each trick missing from 7 tricks.
In sooli, if the sole player gets no tricks, he gets 24 points.
In sooli, if the sole player takes at least one trick, the opponents get 24 points.
Only one partnership can have points at a time, and the partnership that has points is said to be nousussa (rising). If the opponents of the partnership that are nousussa get points in a hand, the game is returned to a 0–0 situation. When it is obvious that the nousussa partnership is losing a hand, the hand can be ended, since the exact point count has no significance.
The game is won by getting at least 52 points. Note that these points must be got in consecutive hands, without the opponents scoring any points in between. Thus, winning a game is rather difficult, and losing a game is considered to be a particularly shameful event.
Tournament rules
Sooli is not used. The game is stopped after a fixed number of hands (typically 16–24), if no team has won the game until then. Then the partnership wins that has collected more points altogether when nousussa. However, the game is extended until the current nousussa partnership loses a hand. When bidding, special bidding cards can be used instead of playing cards.
Traditionally, players signalled the contents of their hands to their partners using various secret gestures. Signalling with gestures is, however, strictly forbidden in the tournament rules.
See also
Minnesota whist
References
Säynäjäkangas, Olli, Pohjoiset korttipelit, self-published, 2002
History of Tuppi (in Finnish)
Tournament Rules (in Finnish)
play tuppi online
Whist
Finnish card games
|
```python
import datetime
import time
from enum import Enum
from random import randint, choice
from typing import Final
import urllib.parse
import aiohttp
import discord
from redbot.core import commands
from redbot.core.bot import Red
from redbot.core.i18n import Translator, cog_i18n
from redbot.core.utils.menus import menu
from redbot.core.utils.chat_formatting import (
bold,
escape,
italics,
humanize_number,
humanize_timedelta,
)
_ = T_ = Translator("General", __file__)
class RPS(Enum):
rock = "\N{MOYAI}"
paper = "\N{PAGE FACING UP}"
scissors = "\N{BLACK SCISSORS}\N{VARIATION SELECTOR-16}"
class RPSParser:
def __init__(self, argument):
argument = argument.lower()
if argument == "rock":
self.choice = RPS.rock
elif argument == "paper":
self.choice = RPS.paper
elif argument == "scissors":
self.choice = RPS.scissors
else:
self.choice = None
MAX_ROLL: Final[int] = 2**63 - 1
@cog_i18n(_)
class General(commands.Cog):
"""General commands."""
global _
_ = lambda s: s
ball = [
_("As I see it, yes"),
_("It is certain"),
_("It is decidedly so"),
_("Most likely"),
_("Outlook good"),
_("Signs point to yes"),
_("Without a doubt"),
_("Yes"),
_("Yes definitely"),
_("You may rely on it"),
_("Reply hazy, try again"),
_("Ask again later"),
_("Better not tell you now"),
_("Cannot predict now"),
_("Concentrate and ask again"),
_("Don't count on it"),
_("My reply is no"),
_("My sources say no"),
_("Outlook not so good"),
_("Very doubtful"),
]
_ = T_
def __init__(self, bot: Red) -> None:
super().__init__()
self.bot = bot
self.stopwatches = {}
async def red_delete_data_for_user(self, **kwargs):
"""Nothing to delete"""
return
@commands.command(usage="<first> <second> [others...]")
async def choose(self, ctx, *choices):
"""Choose between multiple options.
There must be at least 2 options to pick from.
Options are separated by spaces.
To denote options which include whitespace, you should enclose the options in double quotes.
"""
choices = [escape(c, mass_mentions=True) for c in choices if c]
if len(choices) < 2:
await ctx.send(_("Not enough options to pick from."))
else:
await ctx.send(choice(choices))
@commands.command()
async def roll(self, ctx, number: int = 100):
"""Roll a random number.
The result will be between 1 and `<number>`.
`<number>` defaults to 100.
"""
author = ctx.author
if 1 < number <= MAX_ROLL:
n = randint(1, number)
await ctx.send(
"{author.mention} :game_die: {n} :game_die:".format(
author=author, n=humanize_number(n)
)
)
elif number <= 1:
await ctx.send(_("{author.mention} Maybe higher than 1? ;P").format(author=author))
else:
await ctx.send(
_("{author.mention} Max allowed number is {maxamount}.").format(
author=author, maxamount=humanize_number(MAX_ROLL)
)
)
@commands.command()
async def flip(self, ctx, user: discord.Member = None):
"""Flip a coin... or a user.
Defaults to a coin.
"""
if user is not None:
msg = ""
if user.id == ctx.bot.user.id:
user = ctx.author
msg = _("Nice try. You think this is funny?\n How about *this* instead:\n\n")
char = "abcdefghijklmnopqrstuvwxyz"
tran = "qpluodbsnxz"
table = str.maketrans(char, tran)
name = user.display_name.translate(table)
char = char.upper()
tran = "qpHIWNOQSMXZ"
table = str.maketrans(char, tran)
name = name.translate(table)
await ctx.send(msg + "( " + name[::-1])
else:
await ctx.send(_("*flips a coin and... ") + choice([_("HEADS!*"), _("TAILS!*")]))
@commands.command()
async def rps(self, ctx, your_choice: RPSParser):
"""Play Rock Paper Scissors."""
author = ctx.author
player_choice = your_choice.choice
if not player_choice:
return await ctx.send(
_("This isn't a valid option. Try {r}, {p}, or {s}.").format(
r="rock", p="paper", s="scissors"
)
)
red_choice = choice((RPS.rock, RPS.paper, RPS.scissors))
cond = {
(RPS.rock, RPS.paper): False,
(RPS.rock, RPS.scissors): True,
(RPS.paper, RPS.rock): True,
(RPS.paper, RPS.scissors): False,
(RPS.scissors, RPS.rock): False,
(RPS.scissors, RPS.paper): True,
}
if red_choice == player_choice:
outcome = None # Tie
else:
outcome = cond[(player_choice, red_choice)]
if outcome is True:
await ctx.send(
_("{choice} You win {author.mention}!").format(
choice=red_choice.value, author=author
)
)
elif outcome is False:
await ctx.send(
_("{choice} You lose {author.mention}!").format(
choice=red_choice.value, author=author
)
)
else:
await ctx.send(
_("{choice} We're square {author.mention}!").format(
choice=red_choice.value, author=author
)
)
@commands.command(name="8", aliases=["8ball"])
async def _8ball(self, ctx, *, question: str):
"""Ask 8 ball a question.
Question must end with a question mark.
"""
if question.endswith("?") and question != "?":
await ctx.send("`" + T_(choice(self.ball)) + "`")
else:
await ctx.send(_("That doesn't look like a question."))
@commands.command(aliases=["sw"])
async def stopwatch(self, ctx):
"""Start or stop the stopwatch."""
author = ctx.author
if author.id not in self.stopwatches:
self.stopwatches[author.id] = int(time.perf_counter())
await ctx.send(author.mention + _(" Stopwatch started!"))
else:
tmp = abs(self.stopwatches[author.id] - int(time.perf_counter()))
tmp = str(datetime.timedelta(seconds=tmp))
await ctx.send(
author.mention + _(" Stopwatch stopped! Time: **{seconds}**").format(seconds=tmp)
)
self.stopwatches.pop(author.id, None)
@commands.command()
async def lmgtfy(self, ctx, *, search_terms: str):
"""Create a lmgtfy link."""
search_terms = escape(urllib.parse.quote_plus(search_terms), mass_mentions=True)
await ctx.send(
f"path_to_url{search_terms}&btnK=Google+Search"
)
@commands.command(hidden=True)
@commands.guild_only()
async def hug(self, ctx, user: discord.Member, intensity: int = 1):
"""Because everyone likes hugs!
Up to 10 intensity levels.
"""
name = italics(user.display_name)
if intensity <= 0:
msg = "()" + name
elif intensity <= 3:
msg = "()" + name
elif intensity <= 6:
msg = "(*`*)" + name
elif intensity <= 9:
msg = "()" + name
elif intensity >= 10:
msg = "( ){} ()".format(name)
else:
# For the purposes of "msg might not be defined" linter errors
raise RuntimeError
await ctx.send(msg)
@commands.command()
@commands.guild_only()
@commands.bot_has_permissions(embed_links=True)
async def serverinfo(self, ctx, details: bool = False):
"""
Show server information.
`details`: Shows more information when set to `True`.
Default to False.
"""
guild = ctx.guild
created_at = _("Created on {date_and_time}. That's {relative_time}!").format(
date_and_time=discord.utils.format_dt(guild.created_at),
relative_time=discord.utils.format_dt(guild.created_at, "R"),
)
online = humanize_number(
len([m.status for m in guild.members if m.status != discord.Status.offline])
)
total_users = guild.member_count and humanize_number(guild.member_count)
text_channels = humanize_number(len(guild.text_channels))
voice_channels = humanize_number(len(guild.voice_channels))
stage_channels = humanize_number(len(guild.stage_channels))
if not details:
data = discord.Embed(description=created_at, colour=await ctx.embed_colour())
data.add_field(
name=_("Users online"),
value=f"{online}/{total_users}" if total_users else _("Not available"),
)
data.add_field(name=_("Text Channels"), value=text_channels)
data.add_field(name=_("Voice Channels"), value=voice_channels)
data.add_field(name=_("Roles"), value=humanize_number(len(guild.roles)))
data.add_field(name=_("Owner"), value=str(guild.owner))
data.set_footer(
text=_("Server ID: ")
+ str(guild.id)
+ _(" Use {command} for more info on the server.").format(
command=f"{ctx.clean_prefix}serverinfo 1"
)
)
if guild.icon:
data.set_author(name=guild.name, url=guild.icon)
data.set_thumbnail(url=guild.icon)
else:
data.set_author(name=guild.name)
else:
def _size(num: int):
for unit in ["B", "KB", "MB", "GB", "TB", "PB", "EB", "ZB"]:
if abs(num) < 1024.0:
return "{0:.1f}{1}".format(num, unit)
num /= 1024.0
return "{0:.1f}{1}".format(num, "YB")
def _bitsize(num: int):
for unit in ["B", "KB", "MB", "GB", "TB", "PB", "EB", "ZB"]:
if abs(num) < 1000.0:
return "{0:.1f}{1}".format(num, unit)
num /= 1000.0
return "{0:.1f}{1}".format(num, "YB")
shard_info = (
_("\nShard ID: **{shard_id}/{shard_count}**").format(
shard_id=humanize_number(guild.shard_id + 1),
shard_count=humanize_number(ctx.bot.shard_count),
)
if ctx.bot.shard_count > 1
else ""
)
# Logic from: path_to_url#L159
online_stats = {
_("Humans: "): lambda x: not x.bot,
_(" Bots: "): lambda x: x.bot,
"\N{LARGE GREEN CIRCLE}": lambda x: x.status is discord.Status.online,
"\N{LARGE ORANGE CIRCLE}": lambda x: x.status is discord.Status.idle,
"\N{LARGE RED CIRCLE}": lambda x: x.status is discord.Status.do_not_disturb,
"\N{MEDIUM WHITE CIRCLE}\N{VARIATION SELECTOR-16}": lambda x: (
x.status is discord.Status.offline
),
"\N{LARGE PURPLE CIRCLE}": lambda x: any(
a.type is discord.ActivityType.streaming for a in x.activities
),
"\N{MOBILE PHONE}": lambda x: x.is_on_mobile(),
}
member_msg = _("Users online: **{online}/{total_users}**\n").format(
online=online, total_users=total_users
)
count = 1
for emoji, value in online_stats.items():
try:
num = len([m for m in guild.members if value(m)])
except Exception as error:
print(error)
continue
else:
member_msg += f"{emoji} {bold(humanize_number(num))} " + (
"\n" if count % 2 == 0 else ""
)
count += 1
verif = {
"none": _("0 - None"),
"low": _("1 - Low"),
"medium": _("2 - Medium"),
"high": _("3 - High"),
"highest": _("4 - Highest"),
}
joined_on = _(
"{bot_name} joined this server on {bot_join}. That's over {since_join} days ago!"
).format(
bot_name=ctx.bot.user.display_name,
bot_join=guild.me.joined_at.strftime("%d %b %Y %H:%M:%S"),
since_join=humanize_number((ctx.message.created_at - guild.me.joined_at).days),
)
data = discord.Embed(
description=(f"{guild.description}\n\n" if guild.description else "") + created_at,
colour=await ctx.embed_colour(),
)
data.set_author(
name=guild.name,
icon_url="path_to_url"
if "VERIFIED" in guild.features
else "path_to_url"
if "PARTNERED" in guild.features
else None,
)
if guild.icon:
data.set_thumbnail(url=guild.icon)
data.add_field(name=_("Members:"), value=member_msg)
data.add_field(
name=_("Channels:"),
value=_(
"\N{SPEECH BALLOON} Text: {text}\n"
"\N{SPEAKER WITH THREE SOUND WAVES} Voice: {voice}\n"
"\N{STUDIO MICROPHONE} Stage: {stage}"
).format(
text=bold(text_channels),
voice=bold(voice_channels),
stage=bold(stage_channels),
),
)
data.add_field(
name=_("Utility:"),
value=_(
"Owner: {owner}\nVerif. level: {verif}\nServer ID: {id}{shard_info}"
).format(
owner=bold(str(guild.owner)),
verif=bold(verif[str(guild.verification_level)]),
id=bold(str(guild.id)),
shard_info=shard_info,
),
inline=False,
)
data.add_field(
name=_("Misc:"),
value=_(
"AFK channel: {afk_chan}\nAFK timeout: {afk_timeout}\nCustom emojis: {emoji_count}\nRoles: {role_count}"
).format(
afk_chan=bold(str(guild.afk_channel))
if guild.afk_channel
else bold(_("Not set")),
afk_timeout=bold(humanize_timedelta(seconds=guild.afk_timeout)),
emoji_count=bold(humanize_number(len(guild.emojis))),
role_count=bold(humanize_number(len(guild.roles))),
),
inline=False,
)
excluded_features = {
# available to everyone since forum channels private beta
"THREE_DAY_THREAD_ARCHIVE",
"SEVEN_DAY_THREAD_ARCHIVE",
# rolled out to everyone already
"NEW_THREAD_PERMISSIONS",
"TEXT_IN_VOICE_ENABLED",
"THREADS_ENABLED",
# available to everyone sometime after forum channel release
"PRIVATE_THREADS",
}
custom_feature_names = {
"VANITY_URL": "Vanity URL",
"VIP_REGIONS": "VIP regions",
}
features = sorted(guild.features)
if "COMMUNITY" in features:
features.remove("NEWS")
feature_names = [
custom_feature_names.get(feature, " ".join(feature.split("_")).capitalize())
for feature in features
if feature not in excluded_features
]
if guild.features:
data.add_field(
name=_("Server features:"),
value="\n".join(
f"\N{WHITE HEAVY CHECK MARK} {feature}" for feature in feature_names
),
)
if guild.premium_tier != 0:
nitro_boost = _(
"Tier {boostlevel} with {nitroboosters} boosts\n"
"File size limit: {filelimit}\n"
"Emoji limit: {emojis_limit}\n"
"VCs max bitrate: {bitrate}"
).format(
boostlevel=bold(str(guild.premium_tier)),
nitroboosters=bold(humanize_number(guild.premium_subscription_count)),
filelimit=bold(_size(guild.filesize_limit)),
emojis_limit=bold(str(guild.emoji_limit)),
bitrate=bold(_bitsize(guild.bitrate_limit)),
)
data.add_field(name=_("Nitro Boost:"), value=nitro_boost)
if guild.splash:
data.set_image(url=guild.splash.replace(format="png"))
data.set_footer(text=joined_on)
await ctx.send(embed=data)
@commands.command()
async def urban(self, ctx, *, word):
"""Search the Urban Dictionary.
This uses the unofficial Urban Dictionary API.
"""
try:
url = "path_to_url"
params = {"term": str(word).lower()}
headers = {"content-type": "application/json"}
async with aiohttp.ClientSession() as session:
async with session.get(url, headers=headers, params=params) as response:
data = await response.json()
except aiohttp.ClientError:
await ctx.send(
_("No Urban Dictionary entries were found, or there was an error in the process.")
)
return
if data.get("error") != 404:
if not data.get("list"):
return await ctx.send(_("No Urban Dictionary entries were found."))
if await ctx.embed_requested():
# a list of embeds
embeds = []
for ud in data["list"]:
embed = discord.Embed(color=await ctx.embed_color())
title = _("{word} by {author}").format(
word=ud["word"].capitalize(), author=ud["author"]
)
if len(title) > 256:
title = "{}...".format(title[:253])
embed.title = title
embed.url = ud["permalink"]
description = _("{definition}\n\n**Example:** {example}").format(**ud)
if len(description) > 2048:
description = "{}...".format(description[:2045])
embed.description = description
embed.set_footer(
text=_(
"{thumbs_down} Down / {thumbs_up} Up, Powered by Urban Dictionary."
).format(**ud)
)
embeds.append(embed)
if embeds is not None and len(embeds) > 0:
await menu(
ctx,
pages=embeds,
message=None,
page=0,
timeout=30,
)
else:
messages = []
for ud in data["list"]:
ud.setdefault("example", "N/A")
message = _(
"<{permalink}>\n {word} by {author}\n\n{description}\n\n"
"{thumbs_down} Down / {thumbs_up} Up, Powered by Urban Dictionary."
).format(
word=ud.pop("word").capitalize(),
description="{description}",
**ud,
)
max_desc_len = 2000 - len(message)
description = _("{definition}\n\n**Example:** {example}").format(**ud)
if len(description) > max_desc_len:
description = "{}...".format(description[: max_desc_len - 3])
message = message.format(description=description)
messages.append(message)
if messages is not None and len(messages) > 0:
await menu(
ctx,
pages=messages,
message=None,
page=0,
timeout=30,
)
else:
await ctx.send(
_("No Urban Dictionary entries were found, or there was an error in the process.")
)
```
|
Zygmunt Malanowicz (4 February 1938 – 4 April 2021) was a Polish film actor. He appeared in more than 30 films from 1962 to 2020.
Selected filmography
Knife in the Water (1962)
Naked Among Wolves (1963)
Barrier (1966)
Hunting Flies (1969)
Landscape After the Battle (1970)
Znaki na drodze (1970)
Jarosław Dąbrowski (1976)
Cserepek (1980)
A Trap (1997)
All That I Love (2009)
The Lure (2015)
Usta usta (2020)
References
External links
1938 births
2021 deaths
Polish male film actors
People from Švenčionys District Municipality
20th-century Polish male actors
21st-century Polish male actors
|
```objective-c
/*
*
*/
/* INTERNAL API
* generic interface to MMU memory protection features
*/
#pragma once
#include <stdbool.h>
#include <stdint.h>
#include "esp_attr.h"
#include "esp_err.h"
#ifdef __cplusplus
extern "C" {
#endif
//convenient constants for better code readabilty
#define RD_ENA true
#define RD_DIS false
#define WR_ENA true
#define WR_DIS false
#define EX_ENA true
#define EX_DIS false
#define RD_LOW_ENA true
#define RD_LOW_DIS false
#define WR_LOW_ENA true
#define WR_LOW_DIS false
#define EX_LOW_ENA true
#define EX_LOW_DIS false
#define RD_HIGH_ENA true
#define RD_HIGH_DIS false
#define WR_HIGH_ENA true
#define WR_HIGH_DIS false
#define EX_HIGH_ENA true
#define EX_HIGH_DIS false
#define PANIC_HNDL_ON true
#define PANIC_HNDL_OFF false
#define MEMPROT_LOCK true
#define MEMPROT_UNLOCK false
#define DEF_SPLIT_LINE NULL
#define MEMPROT_INVALID_ADDRESS -1
//memory range types
typedef enum {
MEMPROT_NONE = 0x00000000,
MEMPROT_IRAM0_SRAM = 0x00000001, //0x40020000-0x4006FFFF, RWX
MEMPROT_DRAM0_SRAM = 0x00000002, //0x3FFB0000-0x3FFFFFFF, RW
MEMPROT_IRAM0_RTCFAST = 0x00000004, //0x40070000-0x40071FFF, RWX
MEMPROT_DRAM0_RTCFAST = 0x00000008, //0x3FF9E000-0x3FF9FFFF, RW
MEMPROT_PERI1_RTCSLOW = 0x00000010, //0x3F421000-0x3F423000, RW
MEMPROT_PERI2_RTCSLOW_0 = 0x00000020, //0x50001000-0x50003000, RWX
MEMPROT_PERI2_RTCSLOW_1 = 0x00000040, //0x60002000-0x60004000, RWX
MEMPROT_ALL = 0xFFFFFFFF
} mem_type_prot_t;
/**
* @brief Returns splitting address for required memory region
*
* @param mem_type Memory protection area type (see mem_type_prot_t enum)
*
* @return Splitting address for the memory region required.
* The address is given by region-specific global symbol exported from linker script,
* it is not read out from related configuration register.
*/
uint32_t * esp_memprot_get_split_addr(mem_type_prot_t mem_type);
/**
* @brief Initializes illegal memory access control for required memory section.
*
* All memory access interrupts share ETS_MEMACCESS_ERR_INUM input channel, it is caller's
* responsibility to properly detect actual intr. source as well as possible prioritization in case
* of multiple source reported during one intr.handling routine run
*
* @param mem_type Memory protection area type (see mem_type_prot_t enum)\
*
* @return ESP_OK on success, ESP_ERR_INVALID_ARG on failure
*/
esp_err_t esp_memprot_intr_init(mem_type_prot_t mem_type);
/**
* @brief Enable/disable the memory protection interrupt
*
* @param mem_type Memory protection area type (see mem_type_prot_t enum)
* @param enable enable/disable
*
* @return ESP_OK on success, ESP_ERR_INVALID_ARG on failure
*/
esp_err_t esp_memprot_intr_ena(mem_type_prot_t mem_type, bool enable);
/**
* @brief Sets a request for clearing interrupt-on flag for specified memory region (register write)
*
* @note When called without actual interrupt-on flag set, subsequent occurrence of related interrupt is ignored.
* Should be used only after the real interrupt appears, typically as the last step in interrupt handler's routine.
*
* @param mem_type Memory protection area type (see mem_type_prot_t enum)
*
* @return ESP_OK on success, ESP_ERR_INVALID_ARG on failure
*/
esp_err_t esp_memprot_clear_intr(mem_type_prot_t mem_type);
/**
* @brief Detects which memory protection interrupt is active
*
* @note Check order
* MEMPROT_IRAM0_SRAM
* MEMPROT_IRAM0_RTCFAST
* MEMPROT_DRAM0_SRAM
* MEMPROT_DRAM0_RTCFAST
*
* @return Memory protection area type (see mem_type_prot_t enum)
*/
mem_type_prot_t esp_memprot_get_active_intr_memtype(void);
/**
* @brief Gets interrupt status register contents for specified memory region
*
* @param mem_type Memory protection area type (see mem_type_prot_t enum)
* @param fault_reg_val Contents of status register
*
* @return ESP_OK on success, ESP_ERR_INVALID_ARG on failure
*/
esp_err_t esp_memprot_get_fault_reg(mem_type_prot_t mem_type, uint32_t *fault_reg_val);
/**
* @brief Get details of given interrupt status
*
* @param mem_type Memory protection area type (see mem_type_prot_t enum)
* @param faulting_address Faulting address causing the interrupt [out]
* @param op_type Operation being processed at the faulting address [out]
* IRAM0: 0 - read, 1 - write
* DRAM0: 0 - read, 1 - write
* @param op_subtype Additional info for op_type [out]
* IRAM0: 0 - instruction segment access, 1 - data segment access
* DRAM0: 0 - non-atomic operation, 1 - atomic operation
* @return ESP_OK on success, ESP_ERR_INVALID_ARG on failure
*/
esp_err_t esp_memprot_get_fault_status(mem_type_prot_t mem_type, uint32_t **faulting_address, uint32_t *op_type, uint32_t *op_subtype);
/**
* @brief Gets string representation of required memory region identifier
*
* @param mem_type Memory protection area type (see mem_type_prot_t enum)
*
* @return mem_type as string
*/
const char * esp_memprot_type_to_str(mem_type_prot_t mem_type);
/**
* @brief Detects whether any of the interrupt locks is active (requires digital system reset to unlock)
*
* @return true/false
*/
bool esp_memprot_is_locked_any(void);
/**
* @brief Sets lock for specified memory region.
*
* Locks can be unlocked only by digital system reset
*
* @param mem_type Memory protection area type (see mem_type_prot_t enum)
*
* @return ESP_OK on success, ESP_ERR_INVALID_ARG on failure
*/
esp_err_t esp_memprot_set_lock(mem_type_prot_t mem_type);
/**
* @brief Gets lock status for required memory region
*
* @param mem_type Memory protection area type (see mem_type_prot_t enum)
* @param locked Settings locked: true/false (locked/unlocked)
*
* @return ESP_OK on success, ESP_ERR_INVALID_ARG on failure
*/
esp_err_t esp_memprot_get_lock(mem_type_prot_t mem_type, bool *locked);
/**
* @brief Gets permission control configuration register contents for required memory region
*
* @param mem_type Memory protection area type (see mem_type_prot_t enum)
* @param conf_reg_val Permission control register contents
*
* @return ESP_OK on success, ESP_ERR_INVALID_ARG on failure
*/
esp_err_t esp_memprot_get_conf_reg(mem_type_prot_t mem_type, uint32_t *conf_reg_val);
/**
* @brief Gets interrupt permission settings for unified management block
*
* Gets interrupt permission settings register contents for required memory region, returns settings for unified management blocks
*
* @param mem_type Memory protection area type (see mem_type_prot_t enum)
* @param perm_reg Permission settings register contents
*
* @return ESP_OK on success, ESP_ERR_INVALID_ARG on failure
*/
esp_err_t esp_memprot_get_perm_uni_reg(mem_type_prot_t mem_type, uint32_t *perm_reg);
/**
* @brief Gets interrupt permission settings for split management block
*
* Gets interrupt permission settings register contents for required memory region (unified management blocks)
*
* @param mem_type Memory protection area type (see mem_type_prot_t enum)
* @return split_reg Unified management settings register contents
*
* @return ESP_OK on success, ESP_ERR_INVALID_ARG on failure
*/
esp_err_t esp_memprot_get_perm_split_reg(mem_type_prot_t mem_type, uint32_t *split_reg);
/**
* @brief Detects whether any of the memory protection interrupts is enabled
*
* @return true/false
*/
bool esp_memprot_is_intr_ena_any(void);
/**
* @brief Gets interrupt-enabled flag for given memory region
*
* @param mem_type Memory protection area type (see mem_type_prot_t enum)
* @param enable_bit Interrupt-enabled flag
*
* @return ESP_OK on success, ESP_ERR_INVALID_ARG on failure
*/
esp_err_t esp_memprot_get_intr_ena_bit(mem_type_prot_t mem_type, uint32_t *enable_bit);
/**
* @brief Gets interrupt-active flag for given memory region
*
* @param mem_type Memory protection area type (see mem_type_prot_t enum)
* @param intr_on_bit Interrupt-active flag
*
* @return ESP_OK on success, ESP_ERR_INVALID_ARG on failure */
esp_err_t esp_memprot_get_intr_on_bit(mem_type_prot_t mem_type, uint32_t *intr_on_bit);
/**
* @brief Gets interrupt-clear request flag for given memory region
*
* @param mem_type Memory protection area type (see mem_type_prot_t enum)
* @param clear_bit Interrupt-clear request flag
*
* @return ESP_OK on success, ESP_ERR_INVALID_ARG on failure
*/
esp_err_t esp_memprot_get_intr_clr_bit(mem_type_prot_t mem_type, uint32_t *clear_bit);
/**
* @brief Gets read permission value for specified block and memory region
*
* Returns read permission bit value for required unified-management block (0-3) in given memory region.
* Applicable to all memory types.
*
* @param mem_type Memory protection area type (see mem_type_prot_t enum)
* @param block Memory block identifier (0-3)
* @param read_bit Read permission value for required block
*
* @return ESP_OK on success, ESP_ERR_INVALID_ARG on failure
*/
esp_err_t esp_memprot_get_uni_block_read_bit(mem_type_prot_t mem_type, uint32_t block, uint32_t *read_bit);
/**
* @brief Gets write permission value for specified block and memory region
*
* Returns write permission bit value for required unified-management block (0-3) in given memory region.
* Applicable to all memory types.
*
* @param mem_type Memory protection area type (see mem_type_prot_t enum)
* @param block Memory block identifier (0-3)
* @param write_bit Write permission value for required block
*
* @return ESP_OK on success, ESP_ERR_INVALID_ARG on failure
*/
esp_err_t esp_memprot_get_uni_block_write_bit(mem_type_prot_t mem_type, uint32_t block, uint32_t *write_bit);
/**
* @brief Gets execute permission value for specified block and memory region
*
* Returns execute permission bit value for required unified-management block (0-3) in given memory region.
* Applicable only to IRAM memory types
*
* @param mem_type Memory protection area type (see mem_type_prot_t enum)
* @param block Memory block identifier (0-3)
* @param exec_bit Execute permission value for required block
*
* @return ESP_OK on success, ESP_ERR_INVALID_ARG on failure
*/
esp_err_t esp_memprot_get_uni_block_exec_bit(mem_type_prot_t mem_type, uint32_t block, uint32_t *exec_bit);
/**
* @brief Sets permissions for specified block in DRAM region
*
* Sets Read and Write permission for specified unified-management block (0-3) in given memory region.
* Applicable only to DRAM memory types
*
* @param mem_type Memory protection area type (see mem_type_prot_t enum)
* @param block Memory block identifier (0-3)
* @param write_perm Write permission flag
* @param read_perm Read permission flag
*
* @return ESP_OK on success, ESP_ERR_INVALID_ARG on failure
*/
esp_err_t esp_memprot_set_uni_block_perm_dram(mem_type_prot_t mem_type, uint32_t block, bool write_perm, bool read_perm);
/**
* @brief Sets permissions for high and low memory segment in DRAM region
*
* Sets Read and Write permission for both low and high memory segments given by splitting address.
* The splitting address must be equal to or higher then beginning of block 5
* Applicable only to DRAM memory types
*
* @param mem_type Memory protection area type (see mem_type_prot_t enum)
* @param split_addr Address to split the memory region to lower and higher segment
* @param lw Low segment Write permission flag
* @param lr Low segment Read permission flag
* @param hw High segment Write permission flag
* @param hr High segment Read permission flag
*
* @return ESP_OK on success, ESP_ERR_INVALID_ARG on failure
*/
esp_err_t esp_memprot_set_prot_dram(mem_type_prot_t mem_type, uint32_t *split_addr, bool lw, bool lr, bool hw, bool hr);
/**
* @brief Sets permissions for specified block in IRAM region
*
* Sets Read, Write and Execute permission for specified unified-management block (0-3) in given memory region.
* Applicable only to IRAM memory types
*
* @param mem_type Memory protection area type (MEMPROT_IRAM0_SRAM)
* @param block Memory block identifier (0-3)
* @param write_perm Write permission flag
* @param read_perm Read permission flag
* @param exec_perm Execute permission flag
*
* @return ESP_OK on success
* ESP_ERR_NOT_SUPPORTED on invalid mem_type
* ESP_ERR_INVALID_ARG on incorrect block number
*/
esp_err_t esp_memprot_set_uni_block_perm_iram(mem_type_prot_t mem_type, uint32_t block, bool write_perm, bool read_perm, bool exec_perm);
/**
* @brief Sets permissions for high and low memory segment in IRAM region
*
* Sets Read, Write and Execute permission for both low and high memory segments given by splitting address.
* The splitting address must be equal to or higher then beginning of block 5
* Applicable only to IRAM memory types
*
* @param mem_type Memory protection area type (see mem_type_prot_t enum)
* @param split_addr Address to split the memory region to lower and higher segment
* @param lw Low segment Write permission flag
* @param lr Low segment Read permission flag
* @param lx Low segment Execute permission flag
* @param hw High segment Write permission flag
* @param hr High segment Read permission flag
* @param hx High segment Execute permission flag
*
* @return ESP_OK on success, ESP_ERR_INVALID_ARG on failure
*/
esp_err_t esp_memprot_set_prot_iram(mem_type_prot_t mem_type, uint32_t *split_addr, bool lw, bool lr, bool lx, bool hw, bool hr, bool hx);
/**
* @brief Activates memory protection for all supported memory region types
*
* @note The feature is disabled when JTAG interface is connected
*
* @param invoke_panic_handler map mem.prot interrupt to ETS_MEMACCESS_ERR_INUM and thus invokes panic handler when fired ('true' not suitable for testing)
* @param lock_feature sets LOCK bit, see esp_memprot_set_lock() ('true' not suitable for testing)
* @param mem_type_mask holds a set of required memory protection types (bitmask built of mem_type_prot_t). NULL means default (MEMPROT_ALL in this version)
*
* @return ESP_OK on success, ESP_ERR_INVALID_ARG on failure
*/
esp_err_t esp_memprot_set_prot(bool invoke_panic_handler, bool lock_feature, uint32_t *mem_type_mask);
/**
* @brief Get permission settings bits for IRAM0 split mgmt. Only IRAM0 memory types allowed
*
* @param mem_type Memory protection area type (see mem_type_prot_t enum)
* @param lw Low segment Write permission flag
* @param lr Low segment Read permission flag
* @param lx Low segment Execute permission flag
* @param hw High segment Write permission flag
* @param hr High segment Read permission flag
* @param hx High segment Execute permission flag
*
* @return ESP_OK on success, ESP_ERR_INVALID_ARG on failure
*/
esp_err_t esp_memprot_get_perm_split_bits_iram(mem_type_prot_t mem_type, bool *lw, bool *lr, bool *lx, bool *hw, bool *hr, bool *hx);
/**
* @brief Get permission settings bits for DRAM0 split mgmt. Only DRAM0 memory types allowed
*
* @param mem_type Memory protection area type (see mem_type_prot_t enum)
* @param lw Low segment Write permission flag
* @param lr Low segment Read permission flag
* @param hw High segment Write permission flag
* @param hr High segment Read permission flag
*
* @return ESP_OK on success, ESP_ERR_INVALID_ARG on failure
*/
esp_err_t esp_memprot_get_perm_split_bits_dram(mem_type_prot_t mem_type, bool *lw, bool *lr, bool *hw, bool *hr);
/**
* @brief Sets permissions for high and low memory segment in PERIBUS1 region
*
* Sets Read and Write permission for both low and high memory segments given by splitting address.
* Applicable only to PERIBUS1 memory types
*
* @param mem_type Memory protection area type (see mem_type_prot_t enum)
* @param split_addr Address to split the memory region to lower and higher segment
* @param lw Low segment Write permission flag
* @param lr Low segment Read permission flag
* @param hw High segment Write permission flag
* @param hr High segment Read permission flag
*
* @return ESP_OK on success, ESP_ERR_INVALID_ARG on failure
*/
esp_err_t esp_memprot_set_prot_peri1(mem_type_prot_t mem_type, uint32_t *split_addr, bool lw, bool lr, bool hw, bool hr);
/**
* @brief Get permission settings bits for PERIBUS1 split mgmt. Only PERIBUS1 memory types allowed
*
* @param mem_type Memory protection area type (see mem_type_prot_t enum)
* @param lw Low segment Write permission flag
* @param lr Low segment Read permission flag
* @param hw High segment Write permission flag
* @param hr High segment Read permission flag
*
* @return ESP_OK on success, ESP_ERR_INVALID_ARG on failure
*/
esp_err_t esp_memprot_get_perm_split_bits_peri1(mem_type_prot_t mem_type, bool *lw, bool *lr, bool *hw, bool *hr);
/**
* @brief Get permission settings bits for PERIBUS2 split mgmt. Only PERIBUS2 memory types allowed
*
* @param mem_type Memory protection area type (see mem_type_prot_t enum)
* @param lw Low segment Write permission flag
* @param lr Low segment Read permission flag
* @param lx Low segment Execute permission flag
* @param hw High segment Write permission flag
* @param hr High segment Read permission flag
* @param hx High segment Execute permission flag
*
* @return ESP_OK on success, ESP_ERR_INVALID_ARG on failure
*/
esp_err_t esp_memprot_get_perm_split_bits_peri2(mem_type_prot_t mem_type, bool *lw, bool *lr, bool *lx, bool *hw, bool *hr, bool *hx);
/**
* @brief Configures the memory protection for high and low segment in PERIBUS2 region
*
* Sets Read Write permission for both low and high memory segments given by splitting address.
* Applicable only to PERIBUS2 memory types
*
* @param mem_type Memory protection area type (MEMPROT_PERI2_RTCSLOW_0, MEMPROT_PERI2_RTCSLOW_1)
* @param split_addr Address to split the memory region to lower and higher segment (32bit aligned)
* @param lw Low segment Write permission flag
* @param lr Low segment Read permission flag
* @param lx Low segment Execute permission flag
* @param hw High segment Write permission flag
* @param hr High segment Read permission flag
* @param hx High segment Execute permission flag
*
* @return ESP_OK on success
* ESP_ERR_NOT_SUPPORTED on invalid mem_type
* ESP_ERR_INVALID_STATE on splitting address out of PERIBUS2 range
* ESP_ERR_INVALID_SIZE on splitting address not 32-bit aligned
*/
esp_err_t esp_memprot_set_prot_peri2(mem_type_prot_t mem_type, uint32_t *split_addr, bool lw, bool lr, bool lx, bool hw, bool hr, bool hx);
/**
* @brief Get permissions for specified memory type. Irrelevant bits are ignored
*
* @param mem_type Memory protection area type (see mem_type_prot_t enum)
* @param lw Low segment Write permission flag
* @param lr Low segment Read permission flag
* @param lx Low segment Execute permission flag
* @param hw High segment Write permission flag
* @param hr High segment Read permission flag
* @param hx High segment Execute permission flag
*
* @return ESP_OK on success
* ESP_ERR_INVALID_ARG on NULL lw/lr/lx/hw/hr/hx args
* ESP_ERR_NOT_SUPPORTED on invalid mem_type
*/
esp_err_t esp_memprot_get_permissions(mem_type_prot_t mem_type, bool *lw, bool *lr, bool *lx, bool *hw, bool *hr, bool *hx);
/**
* @brief Get Read permission settings for low and high regions of given memory type
*
* @param mem_type Memory protection area type (see mem_type_prot_t enum)
* @param lr Low segment Read permission flag
* @param hr High segment Read permission flag
*
* @return ESP_OK on success
* ESP_ERR_INVALID_ARG on NULL lr/hr args
* ESP_ERR_NOT_SUPPORTED on invalid mem_type
*/
esp_err_t esp_memprot_get_perm_read(mem_type_prot_t mem_type, bool *lr, bool *hr);
/**
* @brief Get Write permission settings for low and high regions of given memory type
*
* @param mem_type Memory protection area type (see mem_type_prot_t enum)
* @param lr Low segment Write permission flag
* @param hr High segment Write permission flag
*
* @return ESP_OK on success
* ESP_ERR_INVALID_ARG on NULL lw/hw args
* ESP_ERR_NOT_SUPPORTED on invalid mem_type
*/
esp_err_t esp_memprot_get_perm_write(mem_type_prot_t mem_type, bool *lw, bool *hw);
/**
* @brief Get Execute permission settings for low and high regions of given memory type
* Applicable only to IBUS-compatible memory types
*
* @param mem_type Memory protection area type (MEMPROT_IRAM0_SRAM, MEMPROT_IRAM0_RTCFAST, MEMPROT_PERI2_RTCSLOW_0, MEMPROT_PERI2_RTCSLOW_1)
* @param lx Low segment Exec permission flag
* @param hx High segment Exec permission flag
*
* @return ESP_OK on success
* ESP_ERR_INVALID_ARG on NULL lx/hx args
* ESP_ERR_NOT_SUPPORTED on invalid mem_type
*/
esp_err_t esp_memprot_get_perm_exec(mem_type_prot_t mem_type, bool *lx, bool *hx);
/**
* @brief Returns the lowest address in required memory region
*
* @param mem_type Memory protection area type (see mem_type_prot_t enum)
*
* @return Required address or MEMPROT_INVALID_ADDRESS for invalid mem_type
*/
uint32_t esp_memprot_get_low_limit(mem_type_prot_t mem_type);
/**
* @brief Returns the highest address in required memory region
*
* @param mem_type Memory protection area type (see mem_type_prot_t enum)
*
* @return Required address or MEMPROT_INVALID_ADDRESS for invalid mem_type
*/
uint32_t esp_memprot_get_high_limit(mem_type_prot_t mem_type);
/**
* @brief Sets READ permission bit for required memory region
*
* @param mem_type Memory protection area type (see mem_type_prot_t enum)
* @param lr Low segment Read permission flag
* @param hr High segment Read permission flag
*
* @return ESP_OK on success
* ESP_ERR_NOT_SUPPORTED on invalid mem_type
*/
esp_err_t esp_memprot_set_read_perm(mem_type_prot_t mem_type, bool lr, bool hr);
/**
* @brief Sets WRITE permission bit for required memory region
*
* @param mem_type Memory protection area type (see mem_type_prot_t enum)
* @param lr Low segment Write permission flag
* @param hr High segment Write permission flag
*
* @return ESP_OK on success
* ESP_ERR_NOT_SUPPORTED on invalid mem_type
*/
esp_err_t esp_memprot_set_write_perm(mem_type_prot_t mem_type, bool lw, bool hw);
/**
* @brief Sets EXECUTE permission bit for required memory region
*
* @param mem_type Memory protection area type (MEMPROT_IRAM0_SRAM, MEMPROT_IRAM0_RTCFAST, MEMPROT_PERI2_RTCSLOW_0, MEMPROT_PERI2_RTCSLOW_1)
* @param lr Low segment Exec permission flag
* @param hr High segment Exec permission flag
*
* @return ESP_OK on success
* ESP_ERR_NOT_SUPPORTED on invalid mem_type
*/
esp_err_t esp_memprot_set_exec_perm(mem_type_prot_t mem_type, bool lx, bool hx);
#ifdef __cplusplus
}
#endif
```
|
Hospital Creek, originally Arroyo de Ospital, or Arroyo del Osnital is a tributary of the San Joaquin River draining eastern slopes of a part of the Diablo Range within San Joaquin County.
The creek is approximately long,
Course
It has its source on the southeast flank of Mount Oso, in Stanislaus County. From there it flows northwest then north through Hospital Creek Canyon around Mount Oso into San Joaquin County. It then turns east to dip back briefly over the border into Stanislaus County before turning back north into San Joaquin County flowing then northeast to emerge from the Diablo Range foothills.
From the canyon mouth it flows east into the Central Valley of California, United States. Though its downstream end is uncertain as it disappears into a former slough of the San Joaquin River in the San Joaquin Valley in Stanislaus County.
History
Originally called Arroyo de Ospital in the Diseño del Rancho Pescadero, this creek was a watering place on the El Camino Viejo. A map of routes to the southern gold mines in 1851 showed this creek as Arroyo del Osnital. Neither Ospital or Osnital is a Spanish word, so presumably it was a Native American word, probably Yokutsan. By 1857 Britton & Rey's Map Of The State Of California referred to the creek as Arroyo de Osnita. However by 1873, its name was changed to what it closely sounds like in English and was referred to as Hospital Creek on an official state of California Map.
Geology
East of the San Joaquin Fault in the vicinity of Hospital Creek there is a flow pattern of alluvium that has been reported as a mud flow. This flow pattern was deposited in the early Holocene or the late Pleistocene.
See also
Ingram Creek
References
Rivers of San Joaquin County, California
Rivers of Stanislaus County, California
Tributaries of the San Joaquin River
Diablo Range
Geography of the San Joaquin Valley
El Camino Viejo
Rivers of Northern California
|
Green Screen Adventures is a children's television series which premiered in 2007. The series was originally produced for local broadcast on WCIU-TV (Channel 26) in Chicago, which is the flagship station of Weigel Broadcasting, and is designed to fit the FCC's educational and information programming requirements while also being produced locally in Chicago. However the program now also airs nationally on Weigel's MeTV digital subchannel network, and from October 2008 – 2013 on This TV when that network was owned by Weigel.
Green Screen Adventures features stories and drawings by students in first through eighth grade using sketch comedy, story theatre, game shows, original songs, puppetry and more. Since their debut in 2007, they have featured stories written by almost 1,000 elementary school students.
The show is set around the submissions of short stories, school reports, poetry, essays, basic academic questions and artwork from students between first and eighth grades. A parent or guardian then signs a standard release form if the idea is used in the series.
An ensemble of actors for the series then takes these submissions, and the program's writers and actors create a short teleplay which is acted out with minimal props, costumes and a chroma key backdrop (the titular green screen of the series.) The student's story is brought to life by the actors as the green screen becomes the world of the story or subject. The Green Screen also showcases the children's original artwork.
Cast and crew
Jessica Honor Carleton is a writer, actress, puppeteer, puppet designer and storyteller, while Kierra Bunch, Brendan Buckley, Sasha Smith, Scott Gryder, Robert Schleifer, Alexander Knapp, and Zach Rebich are the actors and puppeteers. They all play the roles of people and animals. Katy Daso and Nancy McDonald are the floor directors and costume designers. Retired cast members include Christopher De Paola, Ariel Coleman-Turner, Frankie Benavides, Rafael Torres, Casie Walls, Nathan, and Lawrence Thompson, who is a singer.
Original characters
Characters played by Jessica Carleton
Coach D.
Detective McMystery
Fuzzwink
Gerald the Giraffe
Lady Fontana
Penny the Horse
The Green Screen Clown
Emily Cox Teamerie
Characters played by Ariel Coleman-Turner
Earth Girl (later on changed to "Green Girl")
Howie the Howling Monkey
Martha Graham Cracker
Other
Benjamin Noculars (played by Brendan Buckley)
Fang the talking Zubat (played by Frankie Benavides)
Puppets
Jessica Carleton designed the following puppets for "Green Screen Adventures" while the plush ones like an elephant, a monkey and an owl have been bought:
Sock Drawer Drama
Gray cat with blue eyes
Brown dog with light brown eyes
Orange tiger
Yellow mouse
Sheep
Wolf
Fox
Zebra
Pig
Cow
Note: These sock puppets are animals.
Food Folks
Apple
Banana
Strawberry
Hot dog
Pepper
Spaghetti
Milkshake
Pies (blueberry and cherry)
Sandwich
Tomato
Waffle
Other
Books
Socks (blue and purple)
Octopus (orange and pink)
TV remote
Card
Marker
Box
External links
2000s American children's comedy television series
2000s American children's game shows
2000s American sketch comedy television series
American children's education television series
American children's musical television series
Children's sketch comedy
Local children's television programming in the United States
Chicago television shows
Television series by Weigel Broadcasting
American television shows featuring puppetry
MeTV original programming
|
The football tournament at the 1969 SEAP Games was held from 6 December to 13 December 1969 in Rangoon, Burma.
Teams
Tournament
Group stage
Group A
Group B
Knockout stage
Semi-finals
Bronze medal match
No bronze medal match held.
Gold medal match
Winners
Final ranking
Medal winners
Notes
References
Southeast Asian Peninsular Games 1969 at RSSSF
Southeast
1969
1969
1969 SEAP Games events
|
The 1942 Western Michigan Broncos football team represented Michigan College of Education (later renamed Western Michigan University) as an independent during the 1942 college football season. In their first season under head coach John Gill, the Broncos compiled a 5–1 record and outscored their opponents, 66 to 37. The team played its home games at Waldo Stadium in Kalamazoo, Michigan.
Center Bill Yambrick was the team captain. He also received the team's most outstanding player award.
Western Michigan was ranked at No. 157 (out of 590 college and military teams) in the final rankings under the Litkenhous Difference by Score System for 1942.
Schedule
References
Western Michigan
Western Michigan Broncos football seasons
Western Michigan Broncos football
|
```objective-c
// This file is part of Eigen, a lightweight C++ template library
// for linear algebra.
//
//
// This Source Code Form is subject to the terms of the Mozilla
// with this file, You can obtain one at the mozilla.org home page
#ifndef EIGEN_SPARSESOLVERBASE_H
#define EIGEN_SPARSESOLVERBASE_H
namespace Eigen {
namespace internal {
/** \internal
* Helper functions to solve with a sparse right-hand-side and result.
* The rhs is decomposed into small vertical panels which are solved through dense temporaries.
*/
template<typename Decomposition, typename Rhs, typename Dest>
typename enable_if<Rhs::ColsAtCompileTime!=1 && Dest::ColsAtCompileTime!=1>::type
solve_sparse_through_dense_panels(const Decomposition &dec, const Rhs& rhs, Dest &dest)
{
EIGEN_STATIC_ASSERT((Dest::Flags&RowMajorBit)==0,THIS_METHOD_IS_ONLY_FOR_COLUMN_MAJOR_MATRICES);
typedef typename Dest::Scalar DestScalar;
// we process the sparse rhs per block of NbColsAtOnce columns temporarily stored into a dense matrix.
static const Index NbColsAtOnce = 4;
Index rhsCols = rhs.cols();
Index size = rhs.rows();
// the temporary matrices do not need more columns than NbColsAtOnce:
Index tmpCols = (std::min)(rhsCols, NbColsAtOnce);
Eigen::Matrix<DestScalar,Dynamic,Dynamic> tmp(size,tmpCols);
Eigen::Matrix<DestScalar,Dynamic,Dynamic> tmpX(size,tmpCols);
for(Index k=0; k<rhsCols; k+=NbColsAtOnce)
{
Index actualCols = std::min<Index>(rhsCols-k, NbColsAtOnce);
tmp.leftCols(actualCols) = rhs.middleCols(k,actualCols);
tmpX.leftCols(actualCols) = dec.solve(tmp.leftCols(actualCols));
dest.middleCols(k,actualCols) = tmpX.leftCols(actualCols).sparseView();
}
}
// Overload for vector as rhs
template<typename Decomposition, typename Rhs, typename Dest>
typename enable_if<Rhs::ColsAtCompileTime==1 || Dest::ColsAtCompileTime==1>::type
solve_sparse_through_dense_panels(const Decomposition &dec, const Rhs& rhs, Dest &dest)
{
typedef typename Dest::Scalar DestScalar;
Index size = rhs.rows();
Eigen::Matrix<DestScalar,Dynamic,1> rhs_dense(rhs);
Eigen::Matrix<DestScalar,Dynamic,1> dest_dense(size);
dest_dense = dec.solve(rhs_dense);
dest = dest_dense.sparseView();
}
} // end namespace internal
/** \class SparseSolverBase
* \ingroup SparseCore_Module
* \brief A base class for sparse solvers
*
* \tparam Derived the actual type of the solver.
*
*/
template<typename Derived>
class SparseSolverBase : internal::noncopyable
{
public:
/** Default constructor */
SparseSolverBase()
: m_isInitialized(false)
{}
~SparseSolverBase()
{}
Derived& derived() { return *static_cast<Derived*>(this); }
const Derived& derived() const { return *static_cast<const Derived*>(this); }
/** \returns an expression of the solution x of \f$ A x = b \f$ using the current decomposition of A.
*
* \sa compute()
*/
template<typename Rhs>
inline const Solve<Derived, Rhs>
solve(const MatrixBase<Rhs>& b) const
{
eigen_assert(m_isInitialized && "Solver is not initialized.");
eigen_assert(derived().rows()==b.rows() && "solve(): invalid number of rows of the right hand side matrix b");
return Solve<Derived, Rhs>(derived(), b.derived());
}
/** \returns an expression of the solution x of \f$ A x = b \f$ using the current decomposition of A.
*
* \sa compute()
*/
template<typename Rhs>
inline const Solve<Derived, Rhs>
solve(const SparseMatrixBase<Rhs>& b) const
{
eigen_assert(m_isInitialized && "Solver is not initialized.");
eigen_assert(derived().rows()==b.rows() && "solve(): invalid number of rows of the right hand side matrix b");
return Solve<Derived, Rhs>(derived(), b.derived());
}
#ifndef EIGEN_PARSED_BY_DOXYGEN
/** \internal default implementation of solving with a sparse rhs */
template<typename Rhs,typename Dest>
void _solve_impl(const SparseMatrixBase<Rhs> &b, SparseMatrixBase<Dest> &dest) const
{
internal::solve_sparse_through_dense_panels(derived(), b.derived(), dest.derived());
}
#endif // EIGEN_PARSED_BY_DOXYGEN
protected:
mutable bool m_isInitialized;
};
} // end namespace Eigen
#endif // EIGEN_SPARSESOLVERBASE_H
```
|
```makefile
################################################################################
#
# lzlib
#
################################################################################
LZLIB_VERSION = 0.4.3
LZLIB_SITE = $(call github,LuaDist,lzlib,$(LZLIB_VERSION))
LZLIB_DEPENDENCIES = lua zlib
LZLIB_LICENSE = MIT
LZLIB_LICENSE_FILES = lzlib.c
LZLIB_CONF_OPTS = -DINSTALL_CMOD="/usr/lib/lua/$(LUAINTERPRETER_ABIVER)" \
-DINSTALL_LMOD="/usr/share/lua/$(LUAINTERPRETER_ABIVER)"
$(eval $(cmake-package))
```
|
```c
/*
*
* This program is free software; you can redistribute it and/or modify
* (at your option) any later version.
*
* This program 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
*
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include <pjlib-util/base64.h>
#include <pj/assert.h>
#include <pj/errno.h>
#define INV -1
#define PADDING '='
static const char base64_char[] = {
'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J',
'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T',
'U', 'V', 'W', 'X', 'Y', 'Z', 'a', 'b', 'c', 'd',
'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n',
'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x',
'y', 'z', '0', '1', '2', '3', '4', '5', '6', '7',
'8', '9', '+', '/'
};
/* Base 64 Encoding with URL and Filename Safe Alphabet (RFC 4648 section 5) */
static const char base64url_char[] = {
'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J',
'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T',
'U', 'V', 'W', 'X', 'Y', 'Z', 'a', 'b', 'c', 'd',
'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n',
'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x',
'y', 'z', '0', '1', '2', '3', '4', '5', '6', '7',
'8', '9', '-', '_'
};
static int base256_char(char c, pj_bool_t url)
{
if (c >= 'A' && c <= 'Z')
return (c - 'A');
else if (c >= 'a' && c <= 'z')
return (c - 'a' + 26);
else if (c >= '0' && c <= '9')
return (c - '0' + 52);
else if ((!url && c == '+') || (url && c == '-'))
return (62);
else if ((!url && c == '/') || (url && c == '_'))
return (63);
else {
/* It *may* happen on bad input, so this is not a good idea.
* pj_assert(!"Should not happen as '=' should have been filtered");
*/
return INV;
}
}
static void base256to64(pj_uint8_t c1, pj_uint8_t c2, pj_uint8_t c3,
int padding, char *output, pj_bool_t url)
{
const char *b64 = url ? base64url_char : base64_char;
*output++ = b64[c1>>2];
*output++ = b64[((c1 & 0x3)<< 4) | ((c2 & 0xF0) >> 4)];
switch (padding) {
case 0:
*output++ = b64[((c2 & 0xF) << 2) | ((c3 & 0xC0) >>6)];
*output = b64[c3 & 0x3F];
break;
case 1:
*output++ = b64[((c2 & 0xF) << 2) | ((c3 & 0xC0) >>6)];
*output = PADDING;
break;
case 2:
default:
*output++ = PADDING;
*output = PADDING;
break;
}
}
static pj_status_t b64_encode(const pj_uint8_t *input, int in_len,
char *output, int *out_len,
pj_bool_t url)
{
const pj_uint8_t *pi = input;
pj_uint8_t c1, c2, c3;
int i = 0;
char *po = output;
PJ_ASSERT_RETURN(input && output && out_len, PJ_EINVAL);
PJ_ASSERT_RETURN(*out_len >= PJ_BASE256_TO_BASE64_LEN(in_len),
PJ_ETOOSMALL);
while (i < in_len) {
c1 = *pi++;
++i;
if (i == in_len) {
base256to64(c1, 0, 0, 2, po, url);
po += 4;
break;
} else {
c2 = *pi++;
++i;
if (i == in_len) {
base256to64(c1, c2, 0, 1, po, url);
po += 4;
break;
} else {
c3 = *pi++;
++i;
base256to64(c1, c2, c3, 0, po, url);
}
}
po += 4;
}
*out_len = (int)(po - output);
return PJ_SUCCESS;
}
static pj_status_t b64_decode(const pj_str_t *input,
pj_uint8_t *out, int *out_len,
pj_bool_t url)
{
const char *buf;
int len;
int i, j, k;
int c[4];
PJ_ASSERT_RETURN(input && out && out_len, PJ_EINVAL);
buf = input->ptr;
len = (int)input->slen;
while (len && buf[len-1] == '=')
--len;
PJ_ASSERT_RETURN(*out_len >= PJ_BASE64_TO_BASE256_LEN(len),
PJ_ETOOSMALL);
for (i=0, j=0; i<len; ) {
/* Fill up c, silently ignoring invalid characters */
for (k=0; k<4 && i<len; ++k) {
do {
c[k] = base256_char(buf[i++], url);
} while (c[k]==INV && i<len);
}
if (k<4) {
if (k > 1) {
out[j++] = (pj_uint8_t)((c[0]<<2) | ((c[1] & 0x30)>>4));
if (k > 2) {
out[j++] = (pj_uint8_t)
(((c[1] & 0x0F)<<4) | ((c[2] & 0x3C)>>2));
}
}
break;
}
out[j++] = (pj_uint8_t)((c[0]<<2) | ((c[1] & 0x30)>>4));
out[j++] = (pj_uint8_t)(((c[1] & 0x0F)<<4) | ((c[2] & 0x3C)>>2));
out[j++] = (pj_uint8_t)(((c[2] & 0x03)<<6) | (c[3] & 0x3F));
}
pj_assert(j <= *out_len);
*out_len = j;
return PJ_SUCCESS;
}
PJ_DEF(pj_status_t) pj_base64_encode(const pj_uint8_t *input, int in_len,
char *output, int *out_len)
{
return b64_encode(input, in_len, output, out_len, PJ_FALSE);
}
PJ_DEF(pj_status_t) pj_base64url_encode(const pj_uint8_t *input, int in_len,
char *output, int *out_len)
{
return b64_encode(input, in_len, output, out_len, PJ_TRUE);
}
PJ_DEF(pj_status_t) pj_base64_decode(const pj_str_t *input,
pj_uint8_t *out, int *out_len)
{
return b64_decode(input, out, out_len, PJ_FALSE);
}
PJ_DEF(pj_status_t) pj_base64url_decode(const pj_str_t *input,
pj_uint8_t *out, int *out_len)
{
return b64_decode(input, out, out_len, PJ_TRUE);
}
```
|
Sphingonaepiopsis nana, the savanna hawkmoth, is a moth of the family Sphingidae. The species was first described by Francis Walker in 1856. It is found from the Kerman Province, Hormozgan Province and Baluchistan in southern Iran and western Saudi Arabia to the southern Arabian Peninsula (including the United Arab Emirates, northern Oman and Yemen) and eastern Africa to Natal, west to the Gambia.
The wingspan is 25–30 mm. Adults are on wing in March and April. A specimen captured in early October indicates there might be a second generation.
The larvae feed on various Rubiaceae species, including Kohautia, Galium, Rubia and Jaubertia.
External links
Sphingonaepiopsis
Moths described in 1856
Insects of the Arabian Peninsula
Moths of Sub-Saharan Africa
Lepidoptera of Mozambique
Lepidoptera of Angola
Lepidoptera of Gabon
Lepidoptera of West Africa
Lepidoptera of Tanzania
Lepidoptera of South Africa
|
Elizabeth Louise Kendall (born 11 June 1971) is a British Labour politician who has served as Shadow Secretary of State for Work and Pensions since 2023. She has been the Member of Parliament (MP) for Leicester West since 2010.
Kendall was born in Abbots Langley, near Watford, Hertfordshire and studied at the University of Cambridge, reading history at Queens' College.
From 2011 to 2015, Kendall served as Shadow Minister for Care and Older People on the Official Opposition frontbench of Ed Miliband, who invited her to attend meetings of his Shadow Cabinet, although she was not technically a Shadow Cabinet member in this position. Kendall stood in the Labour Party leadership election in September 2015 following the resignation of Ed Miliband. She finished in last place. In April 2020, Keir Starmer appointed Kendall Shadow Minister for Social Care on the Official Opposition frontbench.
Early life and career
She attended Watford Grammar School for Girls, alongside Geri Halliwell. After leaving school, she attended Cambridge University, graduating with first class honours.
Kendall joined the Labour Party in 1992 and, after graduating from Cambridge, worked at the Institute for Public Policy Research (IPPR) in the area of child development and early years learning. In 1996, she became a political adviser to Harriet Harman then Harman's government special adviser in the Department for Social Security after Labour won the 1997 general election and Harman became a government minister.
In 1998, when Harman was sacked from the government, Kendall resigned and was awarded a fellowship by the King's Fund, a health charity. She also wrote a series of research papers for the IPPR and was appointed as the Director of the Maternity Alliance, a charity for pregnant women. She was unsuccessful in an attempt to be selected as Labour's prospective parliamentary candidate for Chesterfield at the 2001 general election, following the retirement of Tony Benn.
In 2001, she returned to government to work for Patricia Hewitt, at the Department for Trade and Industry, and then followed her to the Department for Health where she was involved in bringing in the smoking ban in 2006. After Hewitt left government, Kendall became the Director of the Ambulance Services Network, where she remained until 2010.
Parliamentary career
In 2010 Kendall was elected as MP for Leicester West with a majority of 4,017 despite a 7.6% swing away from Labour.
She made her maiden speech in a debate on tackling poverty in the UK on 10 June 2010. She was briefly a member of the Education Select Committee between July 2010 and October 2010. She supported David Miliband for the leadership of the Labour Party in 2010.
In Ed Miliband's first reshuffle in October 2010, she joined the Opposition frontbench as Shadow Junior Health Minister where she served under John Healey. In 2011, she contributed along with other Labour MPs and former Labour ministers to The Purple Book, in which she wrote a chapter on the early years and health and social care where she proposed a "Teach Early Years First" scheme. Later that year, she was appointed to the new role of Shadow Minister for Care and Older People and became an attending member of the shadow cabinet. She was re-elected in the 2015 general election, and was reported as being a member of the Breakfast Club; along with Chuka Umunna, Tristram Hunt and Emma Reynolds.
Labour Party leadership candidature
On 10 May 2015, Kendall announced that she was standing as a successor to Ed Miliband for the Labour Party's leadership following its defeat in the general election a few days earlier. Kendall was regarded by many in the media as the Blairite candidate, though Kendall stated she would like to be known as the "modernising candidate". In mid-June, Kendall secured the 35 nominations needed for a place in the leadership ballot.
Her leadership bid was supported by Shadow Cabinet colleagues Ivan Lewis, Chuka Umunna, Tristram Hunt, Emma Reynolds and Gloria De Piero. Senior Labour politicians supporting her included Alan Milburn, Alistair Darling, John Hutton and John Reid.
On 19 May 2015, Chesterfield MP Toby Perkins was appointed as her leadership election campaign manager. Her campaign director was Morgan McSweeney, head of the LGA Labour Group. Her director of strategic communications was Mark Ferguson, former editor of LabourList. Other members of her campaign team included Hopi Sen, Margaret McDonagh and Tony Blair's former press spokesman Matthew Doyle. She also had the support of the Blue Labour Group within the Labour Party including figures such as Maurice Glasman and Rowenna Davis.
In June 2015, Kendall's leadership bid received praise from The Sun, who said that she is the "only prayer they [the Labour Party] have". The Sun also praised her for saying "the country comes first" in response to Andy Burnham who said "the Labour Party always comes first" in the Newsnight Labour leadership hustings. Commentators from across the political spectrum said that Kendall was the leadership candidate the Conservatives would "fear the most". This claim was even re-stated by some Conservative politicians including George Osborne, Boris Johnson, Ruth Davidson, Anna Soubry and Philip Davies.
Kendall finished 4th in the election, obtaining 4.5% (18,857) of the vote.
Resignation from the Shadow Cabinet
Kendall resigned from the Shadow Cabinet following the election of Jeremy Corbyn as Labour leader in September 2015. She supported Owen Smith in the failed attempt to replace Jeremy Corbyn in the 2016 Labour Party leadership election. One year later James Chapman, former Director of Communications at HM Treasury under George Osborne, said, "We really need Liz Kendall to be the leader of [a] new centre party." Chapman had already tweeted his proposals for a new centrist political party opposed to Brexit, 'The Democrats'. After stepping down from frontline politics, Kendall was a regular guest on BBC current affairs programme This Week until its cancellation in July 2019.
Return to frontbench
Keir Starmer reappointed her to the frontbench after winning the 2020 Labour leadership election. After the November 2021 shadow cabinet reshuffle, it was announced that Karin Smyth will cover her duties while Kendall is on maternity leave.
On the 4th September 2023 she was appointed Shadow Secretary of State for Work and Pensions by Labour Leader Sir Keir Starmer as part of the 2023 British shadow cabinet reshuffle.
Positions
Economic and fiscal policy
During her leadership campaign Kendall argued Labour should be "genuinely as passionate about wealth creation as we are about wealth redistribution" and her party should not just understand business but be "the champion of people who take a risk, create something and make a success of it". Kendall also said that there is "nothing progressive about racking up debts for the next generation" and it is wrong to spend more on debt interest repayments than on education. Kendall gave support to George Osborne's plan to enshrine in law an overall budget surplus during "normal times" but called for more detail on the proposals. Kendall also said that the last Labour government was wrong to run a deficit before the financial crash but that it did not cause the crash.
Kendall committed herself to the living wage and said the Low Pay Commission's remit should be extended to encourage more firms to pay it and has said she would end the exploitation of care workers by preventing firms from docking the cost of uniform and travel time from their wages. She has also come out in support of worker representation on company boards as part of her plans for economic reform. After the Budget, Kendall commissioned her supporter, the former minister Margaret Hodge, to undertake a review into the £100bn tax reliefs that firms are entitled to.
Defence and foreign policy
Kendall is a pro-European and has spoken in favour of reforming the European Union. She supported an in/out referendum on Britain's membership of the EU, and wanted the Labour Party to play a leading role in a cross-party Yes to Europe campaign. Kendall also backed the NATO target to spend at least 2% of GDP on defence. She is in favour of renewing Britain's Trident nuclear submarines. Kendall supports a two-state solution, but she abstained on a motion recognising the State of Palestine, instead favouring the continuation of the Israeli–Palestinian peace process. She is a member of Labour Friends of Israel.
Education
Kendall has spoken about education as a way of tackling inequality. She has spoken in support of expanding the academies programme and keeping the free schools initiative saying that focus should be on the quality of education rather than structures and that investment in the early years should be a priority over cutting university tuition fees. Kendall also said that more effort was needed in the education system to raise aspiration for the 'white working class young'. Kendall has also said that as Prime Minister, she would order a review of National Lottery Funding to free up funds for early years services.
Health and welfare
Kendall has advocated increased patient choice in the NHS, arguing "there will remain a role for the private and voluntary sectors where they can add extra capacity to the NHS or challenges to the system" and with healthcare providers "what matters is what works".
In 2015, Kendall supported the £23,000 benefit cap.
Immigration
Kendall gave some support to David Cameron's proposal that the right of EU migrants to claim tax credits and benefits should be withdrawn, or delayed for a number of years. She supports the current points-based immigration system and backed tough rules on abuse of the immigration system but has pledged not to try and "out-UKIP UKIP" and spoke of the benefits of immigration in her own constituency.
Devolution
Kendall has supported "radical devolution" to England to deal with the West Lothian Question and appointed Tristram Hunt to look at what powers ought to be devolved to England. In July 2015, Kendall came out in favour of English Votes for English Laws. Her leadership rivals favoured the formation of a constitutional convention to consider the issue. Kendall has also said that Labour must oppose the 'tyranny of the bureaucratic state' but must also share power at every level so that powers are devolved to communities and individuals too.
Trade unions
Kendall has supported Labour's links with the trade union movement but has said that both the trade unions and the Labour Party have to change. Kendall said that if she became Prime Minister, she would reverse any changes to trade union and employment rights made by the previous Conservative government. Kendall also criticised Len McCluskey for threatening to withdraw funding from the Labour Party were his choice of candidate not to be elected.
Social issues
Kendall is a supporter of LGBT rights and voted for same sex marriage in 2013. Kendall said under her leadership the Labour Party would have worked with other centre-left parties to end the criminalisation of homosexuality across the world and spoke in favour of Michael Cashman becoming the UK's special envoy on LGBTI issues.
Personal life
Kendall was previously in a relationship with the actor and comedian Greg Davies. They ended their relationship a few months before the 2015 general election.
In November 2021 Kendall announced she would take maternity leave in 2022 as she would be having a baby through surrogacy. She and her partner welcomed their son Henry in January 2022.
Notes
References
External links
BBC Radio 4 Profile
|-
1971 births
Living people
21st-century British women politicians
21st-century English people
21st-century English women
Alumni of Queens' College, Cambridge
British special advisers
Female members of the Parliament of the United Kingdom for English constituencies
Labour Friends of Israel
Labour Party (UK) MPs for English constituencies
People educated at Watford Grammar School for Girls
People from Abbots Langley
UK MPs 2010–2015
UK MPs 2015–2017
UK MPs 2017–2019
UK MPs 2019–present
|
```python
"""Fixer for operator functions.
operator.isCallable(obj) -> hasattr(obj, '__call__')
operator.sequenceIncludes(obj) -> operator.contains(obj)
operator.isSequenceType(obj) -> isinstance(obj, collections.Sequence)
operator.isMappingType(obj) -> isinstance(obj, collections.Mapping)
operator.isNumberType(obj) -> isinstance(obj, numbers.Number)
operator.repeat(obj, n) -> operator.mul(obj, n)
operator.irepeat(obj, n) -> operator.imul(obj, n)
"""
# Local imports
from lib2to3 import fixer_base
from lib2to3.fixer_util import Call, Name, String, touch_import
def invocation(s):
def dec(f):
f.invocation = s
return f
return dec
class FixOperator(fixer_base.BaseFix):
BM_compatible = True
order = "pre"
methods = """
method=('isCallable'|'sequenceIncludes'
|'isSequenceType'|'isMappingType'|'isNumberType'
|'repeat'|'irepeat')
"""
obj = "'(' obj=any ')'"
PATTERN = """
power< module='operator'
trailer< '.' %(methods)s > trailer< %(obj)s > >
|
power< %(methods)s trailer< %(obj)s > >
""" % dict(methods=methods, obj=obj)
def transform(self, node, results):
method = self._check_method(node, results)
if method is not None:
return method(node, results)
@invocation("operator.contains(%s)")
def _sequenceIncludes(self, node, results):
return self._handle_rename(node, results, u"contains")
@invocation("hasattr(%s, '__call__')")
def _isCallable(self, node, results):
obj = results["obj"]
args = [obj.clone(), String(u", "), String(u"'__call__'")]
return Call(Name(u"hasattr"), args, prefix=node.prefix)
@invocation("operator.mul(%s)")
def _repeat(self, node, results):
return self._handle_rename(node, results, u"mul")
@invocation("operator.imul(%s)")
def _irepeat(self, node, results):
return self._handle_rename(node, results, u"imul")
@invocation("isinstance(%s, collections.Sequence)")
def _isSequenceType(self, node, results):
return self._handle_type2abc(node, results, u"collections", u"Sequence")
@invocation("isinstance(%s, collections.Mapping)")
def _isMappingType(self, node, results):
return self._handle_type2abc(node, results, u"collections", u"Mapping")
@invocation("isinstance(%s, numbers.Number)")
def _isNumberType(self, node, results):
return self._handle_type2abc(node, results, u"numbers", u"Number")
def _handle_rename(self, node, results, name):
method = results["method"][0]
method.value = name
method.changed()
def _handle_type2abc(self, node, results, module, abc):
touch_import(None, module, node)
obj = results["obj"]
args = [obj.clone(), String(u", " + u".".join([module, abc]))]
return Call(Name(u"isinstance"), args, prefix=node.prefix)
def _check_method(self, node, results):
method = getattr(self, "_" + results["method"][0].value.encode("ascii"))
if callable(method):
if "module" in results:
return method
else:
sub = (unicode(results["obj"]),)
invocation_str = unicode(method.invocation) % sub
self.warning(node, u"You should use '%s' here." % invocation_str)
return None
```
|
Costabissara is a town and comune in the province of Vicenza, Veneto, northern Italy. It is west of the SP46 provincial road. It is said that Vladimir Putin's ancestry comes from this town, although it is not proven.
References
External links
(Google Maps)
Cities and towns in Veneto
|
Soledad Fariña Vicuña (Antofagasta, 1943) is a Chilean poet.
Biography
She studied Political and Administrative Sciences in University of Chile, Philosophy and Humanities in the University of Stockholm; Religious Sciences and Arabic Culture in the University of Chile and she has a master in Literature in University of Chile.
Her poetic works have been translated to several languages and appear in several anthologies and she has taken part in poetry happenings of various universities and institutions including Catholic University of Chile, Universidad de Los Lagos, USACH, Univ. Diego Portales, Universidad de Concepción; Universidad de Valdivia; Columbia University; The Catholic University of America, Georgetown University; Mount Hollyoke College, Smith College; The City University of New York; Universidad Río Piedras, Puerto Rico; New York University (NYU); Casa del Poeta, Ciudad de México; Centro Cultural de España, Buenos Aires; Sociedad de Escritores de Chile en el Encuentro de Poesía Joven de Latinoamérica; Encuentro de poetas del Cono Sur, Coquimbo, entre otros.
Works
El primer libro, (First Book) Ed. Amaranto 1985
Albricias, (Happy Presents/Good grief!) Ediciones Archivo, 1988
En amarillo oscuro, (In Dark Yellow) Editorial Surada, 1994
La vocal de la Tierra, (Earthly Vowel) antología poética. Ed. Cuarto Propio 1999
Otro cuento de ájaros, (Another Tale for Birds) relatos, Ed. Las Dos Fridas, 1999
Narciso y los árboles, (Narcissus and Trees) Ed. Cuarto Propio, 2001
Donde comienza el aire, (Where Air Begins) Ed. Cuarto Propio, 2006
Grants
1994 Fondo Nacional para la Difusión del Libro y la Lectura
1995 Fondo de Desarrollo de las Artes y la Cultura para escribir un libro de poesía
2002 Fondo de Desarrollo del Libro y la Lectura
2006 Fundación John Simon Guggenheim
2006 de Desarrollo del Libro y la Lectura para escribir un libro de poesía
References
1943 births
Living people
21st-century Chilean poets
People from Antofagasta
Chilean women poets
20th-century Chilean poets
20th-century Chilean women writers
21st-century Chilean women writers
|
The Gruber Prize in Cosmology, established in 2000, is one of three prestigious international awards worth US$500,000 awarded by the Gruber Foundation, a non-profit organization based at Yale University in New Haven, Connecticut.
Since 2001, the Gruber Prize in Cosmology has been co-sponsored by the International Astronomical Union.
Recipients are selected by a panel from nominations that are received from around the world.
The Gruber Foundation Cosmology Prize honors a leading cosmologist, astronomer, astrophysicist or scientific philosopher for theoretical, analytical or conceptual discoveries leading to fundamental advances in the field.
Recipients
2023 Richard Ellis
2022 Frank Eisenhauer
2021 Marc Kamionkowski, Uroš Seljak, and Matias Zaldarriaga
2020 Lars Hernquist and Volker Springel
2019 Nicholas Kaiser and Joseph Silk, "for their seminal contributions to the theory of cosmological structure formation and probes of dark matter".
2018 Nazzareno Mandolesi, Jean-Loup Puget and ESA Planck team.
2017 Sandra M. Faber
2016 Ronald Drever, Kip Thorne, Rainer Weiss, and the entire Laser Interferometer Gravitational-Wave Observatory (LIGO) discovery team.
2015 John E. Carlstrom, Jeremiah P. Ostriker and Lyman A. Page, Jr
2014 Sidney van den Bergh, Jaan Einasto, Kenneth Freeman and R. Brent Tully
2013 Viatcheslav Mukhanov and Alexei Starobinsky
2012 Charles L. Bennett (Professor of Physics and Astronomy at Johns Hopkins University) and the Wilkinson Microwave Anisotropy Probe (WMAP) Team
2011 Simon White, Carlos Frenk, Marc Davis and George Efstathiou
2010 Charles Steidel, the Lee A. DuBridge Professor of Astronomy at the California Institute of Technology, in recognition of his revolutionary studies of the most distant galaxies in the universe
2009 Wendy Freedman, director of the Observatories of the Carnegie Institution of Washington in Pasadena, California; Robert Kennicutt, director of the Institute of Astronomy at the University of Cambridge in England; and Jeremy Mould, professorial fellow at the University of Melbourne School of Physics
2008 J. Richard Bond, director of the Canadian Institute for Advanced Research Cosmology and Gravity Program; Canadian Institute for Theoretical Astrophysics
2007 High-z Supernova Search Team, Supernova Cosmology Project, Brian P. Schmidt and Saul Perlmutter
2006 John Mather (co-recipient of the 2006 Nobel Prize in Physics) and the Cosmic Background Explorer (COBE) Team
2005 James E. Gunn principal designer of the Hubble Space Telescope
2004 Alan Guth and Andrei Linde
2003 Rashid Sunyaev director of the Max-Planck-Institut für Astrophysik
2002 Vera Rubin
2001 Lord Martin Rees
2000 Allan Sandage and Philip James E. Peebles
See also
List of astronomy awards
References
External links
Gruber Foundation Web site
Astronomy prizes
Physical cosmology
Awards established in 2000
American awards
ru:Премия Грубера по космологии
|
The 2013 Trabzon Cup was a professional tennis tournament played on outdoor hard courts. It was the first edition of the tournament which was part of the 2013 ITF Women's Circuit, offering a total of $50,000 in prize money. It took place in Trabzon, Turkey, on 2–8 September 2013. This was the first Trazbon Cup of the year, the 2013 Trabzon Cup (2) was held a week later.
Singles entrants
Seeds
1 Rankings as of 26 August 2013
Other entrants
The following players received wildcards into the singles main draw:
Cemre Anıl
Naz Karagöz
Dinah Pfizenmaier
Ege Tomey
The following players received entry from the qualifying draw:
Melis Sezer
Christina Shakovets
Emily Webley-Smith
Ekaterina Yashina
The following players received entry into the singles main draw as lucky losers:
Ani Amiraghyan
Claudia Coppola
Champions
Singles
Aleksandra Krunić def. Stéphanie Foretz Gacon 1–6, 6–4, 6–3
Doubles
Yuliya Beygelzimer / Maryna Zanevska def. Alona Fomina / Christina Shakovets 6–3, 6–1
External links
2013 Trabzon Cup (1) at ITFtennis.com
2013 ITF Women's Circuit
2013 1
2013 in Turkish tennis
|
Nevada Bachelors were an American rock band from Seattle, Washington, formed in 1997. The band's lineup consisted of Robb Benson (vocals, rhythm guitar, keyboard), Mike Squires (lead guitar, backing vocals) and Ben Brunn (bass, backing vocals). Dusty Hayes was the band's drummer from their formation until 1999, and was replaced by Jason Finn. They released two studio albums, Carrots & So On (1998) and Hello Jupiter (2000), before disbanding in 2001.
History
Formation and Carrots & So On (1997–1999)
After moving to Seattle in 1991, musician Robb Benson played with a number of bands before forming the Nevada Bachelors with Dusty Hayes (drums) and Ben Brunn (bass) in 1997. Later, adding to the lineup, former Eat the Feeling bassist and former Compass guitarist Mike Squires,. They recorded their debut album entitled Carrots & So On in February 1998 with Johnny Sangster producing, and the band co-producing, at Egg Studios in Seattle, Washington. The album was released on October 13 of that year through Conrad Uno's PopLlama. The album was well received, earning comparisons to Blur, Supergrass, The Police and Bracket. The band toured in support of the album, while they played several shows supporting Death Cab for Cutie. However, by July 1999, Hayes had departed the band and was replaced by Jason Finn formerly of The Presidents of the United States of America, with the Nevada Bachelors supporting Fountains of Wayne the same year.
Hello Jupiter and disbanding (1999–2001)
In November 1999, the band recorded their second album entitled Hello Jupiter with producer Martin Feveyear at Jupiter Studios in Seattle, Washington, with the album released on April 11, 2000 through Pop Llama. The same year, Finn, Dave Dederer and Chris Ballew reformed The Presidents of the United States of America while Squires joined Harvey Danger as their live guitarist. By 2001, Benson disbanded the band, citing a lack of focus due to the band members involvements with various projects. Following the breakup, Benson released his first solo EP before forming Dear John Letters with producer, guitarist Johnny Sangster, bassist Richard Davidson and drummer Cassady Laton. However, the band disbanded in 2004 with Benson pursuing a solo career. Squires continued as live guitarist with Harvey Danger before joining The Long Winters then Loaded.
Band members
Robb Benson – vocals, rhythm guitar, keyboard (1997–2001)
Mike Squires – lead guitar, backing vocals (1997–2001)
Ben Brunn – bass, backing vocals (1997–2001)
Dusty Hayes – drums, backing vocals (1997–1999)
Jason Finn – drums (1999–2001)
Discography
Carrots & So On (1998)
Hello Jupiter (2000)
References
External links
Nevada Bachelors on Myspace
Alternative rock groups from Washington (state)
Musical groups established in 1997
Musical groups disestablished in 2001
Musical groups from Seattle
PopLlama Records artists
|
Lawrence James "Lawrie" Thomson (26 August 1936 – 10 March 2006) was a Scottish footballer who played as a forward. He represented Scotland at Youth level.
Lawrie began his senior career at Scottish Junior club Bo'ness United. In 1955 he joined Scottish League club Partick Thistle where he won a 1958 Scottish League Cup runners-up medal. Early in 1960 Lawrie moved to English League Carlisle United but returned to Scotland with St Johnstone at the start of the 1960–61 season. He subsequently moved to Alloa Athletic for the 1962-63 campaign.
Thereafter until his retirement from playing in 1972 Lawrie appeared for a series of English non-league Southern League teams: Ashford Town (Kent); Margate; Folkestone; Hastings United and Canterbury City.
In 1977, he emigrated to Toronto, Ontario, Canada.
References
External links
Lawrie (Laurie) Thomson, Margate Football Club History
1936 births
2006 deaths
Sportspeople from Clackmannanshire
Men's association football forwards
Scottish men's footballers
Bo'ness United F.C. players
Partick Thistle F.C. players
Carlisle United F.C. players
St Johnstone F.C. players
Alloa Athletic F.C. players
Ashford United F.C. players
Margate F.C. players
Folkestone F.C. players
Hastings United F.C. (1948) players
Canterbury City F.C. players
Scottish Football League players
English Football League players
Scotland men's youth international footballers
|
The Oxford History of England (1934–1965) was a notable book series on the history of the United Kingdom. Published by Oxford University Press, it was originally intended to span from Roman Britain to the outbreak of the First World War in fourteen volumes written by eminent historians. Its series editor, Sir George Clark, contributed the first volume which appeared in 1934. The series as originally contemplated was completed in 1961. However, it was subsequently expanded and updated by further volumes and editions, taking the narrative as far as the end of the Second World War. Several volumes were subsequently "replaced" by revised editions of which the last was added in 1986.
Some of the volumes are considered to be classic works for their respective periods and some have been reissued as stand-alone works. The reputation of the series as a whole, however, is mixed. John Bossy wrote in 1996 that it "does not much ring in the mind" except for volumes 1, 2 and 15 (by Collingwood, Stenton and Taylor). Patrick Wormald in 1981 similarly praised the same volumes (and "perhaps" volume 12 by Watson) as "among the successes of a not entirely happy series".
A New Oxford History of England was commissioned in 1992 and has produced eleven volumes to date. At least six volumes are still forthcoming.
Volumes and authors
The volumes in the series are:
Volume I: Roman Britain and the English Settlements – R. G. Collingwood and J. N. L. Myres (1936)
Later replaced by:
Volume I A: Roman Britain — Peter Salway (1981)
Volume I B: The English Settlements — J. N. L. Myres (1986)
Volume II: Anglo-Saxon England, c550–1087 — Sir Frank Stenton (1943)
Volume III: From Domesday Book to Magna Carta, 1087–1216 — Austin L. Poole (1951)
Volume IV: The Thirteenth Century, 1216–1307 — Sir Maurice Powicke (1953)
Volume V: The Fourteenth Century, 1307–1399 — May McKisack (1959)
Volume VI: The Fifteenth Century, 1399–1485 — E. F. Jacob (1961)
Volume VII: The Earlier Tudors, 1485–1558 — J. D. Mackie (1952)
Volume VIII: The Reign of Elizabeth, 1558–1603 — J. B. Black (1936)
Volume IX: The Early Stuarts, 1603–1660 — Godfrey Davies (1937)
Volume X: The Later Stuarts, 1660–1714 — Sir George Clark (1934)
Volume XI: The Whig Supremacy, 1714–1760 — Basil Williams (1939)
2nd edition revised by C. H. Stuart (1962)
Volume XII: The Reign of George III, 1760–1815 — J. Steven Watson (1960)
Volume XIII: The Age of Reform, 1815–1870 — Sir Llewellyn Woodward (1938)
Volume XIV: England, 1870–1914 — Sir Robert Ensor (1936)
Volume XV: English History, 1914–1945 — A. J. P. Taylor (1965)
Several volumes were subsequently revised by the authors to take into account later research.
Use of the term England
When the series was commissioned:
"England" was still an all-embracing word. It meant indiscriminately England and Wales; Great Britain; the United Kingdom; and even the British Empire. (A. J. P. Taylor, Volume XV: English History, 1914–1945, page v)
Since then there has been a trend in history to restrict the use of the term England to the state that existed pre-1707 and to the geographic area it covered and people it contained in the period thereafter, but without Wales. The different authors interpreted "English history" differently, with Taylor opting to write the history of the British people, including the people of Wales, Scotland, Ireland, Empire and Commonwealth where they shared a history with England, but ignoring them where they did not. Other authors opted to treat non-English matters within their remit.
See also
Pelican History of England (1955–1965)
References
1934 non-fiction books
Series of history books
History of England, Oxford
Book series introduced in 1934
|
```objective-c
//
//
// path_to_url
//
// Unless required by applicable law or agreed to in writing, software
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
#ifndef SOURCE_FUZZ_FUZZER_PASS_ADD_DEAD_CONTINUES_H_
#define SOURCE_FUZZ_FUZZER_PASS_ADD_DEAD_CONTINUES_H_
#include "source/fuzz/fuzzer_pass.h"
namespace spvtools {
namespace fuzz {
// A fuzzer pass for adding dead continue edges to the module.
class FuzzerPassAddDeadContinues : public FuzzerPass {
public:
FuzzerPassAddDeadContinues(opt::IRContext* ir_context,
TransformationContext* transformation_context,
FuzzerContext* fuzzer_context,
protobufs::TransformationSequence* transformations,
bool ignore_inapplicable_transformations);
void Apply() override;
};
} // namespace fuzz
} // namespace spvtools
#endif // SOURCE_FUZZ_FUZZER_PASS_ADD_DEAD_CONTINUES_H_
```
|
```javascript
import React from 'react';
import PropTypes from 'prop-types';
import Splitter from './Splitter';
import InputPath from './form/InputPath';
import InputTitle from './form/InputTitle';
import MarkdownEditor from './MarkdownEditor';
import Metadata from '../containers/MetaFields';
export default function MarkdownPageBody({
type,
path,
body,
title,
onSave,
updateTitle,
updatePath,
updateBody,
metafields,
staticmetafields,
}) {
return (
<div className="content-body">
<InputPath onChange={updatePath} type={type} path={path} />
<InputTitle onChange={updateTitle} title={title} />
<MarkdownEditor
onChange={updateBody}
onSave={onSave}
placeholder="Body"
initialValue={body}
/>
<Splitter />
<Metadata fields={metafields} staticFields={staticmetafields} />
</div>
);
}
MarkdownPageBody.defaultProps = {
path: '',
body: '',
title: '',
metafields: {},
staticmetafields: {},
};
MarkdownPageBody.propTypes = {
updateBody: PropTypes.func.isRequired,
updatePath: PropTypes.func.isRequired,
updateTitle: PropTypes.func.isRequired,
onSave: PropTypes.func.isRequired,
type: PropTypes.string.isRequired,
path: PropTypes.string,
body: PropTypes.string,
title: PropTypes.string,
metafields: PropTypes.object,
staticmetafields: PropTypes.object,
};
```
|
```go
// Code generated by smithy-go-codegen DO NOT EDIT.
package kms
import (
"context"
"fmt"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/service/kms/types"
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
)
// Adds a grant to a KMS key.
//
// A grant is a policy instrument that allows Amazon Web Services principals to
// use KMS keys in cryptographic operations. It also can allow them to view a KMS
// key (DescribeKey ) and create and manage grants. When authorizing access to a KMS key,
// grants are considered along with key policies and IAM policies. Grants are often
// used for temporary permissions because you can create one, use its permissions,
// and delete it without changing your key policies or IAM policies.
//
// For detailed information about grants, including grant terminology, see [Grants in KMS] in the
// Key Management Service Developer Guide . For examples of working with grants in
// several programming languages, see [Programming grants].
//
// The CreateGrant operation returns a GrantToken and a GrantId .
//
// - When you create, retire, or revoke a grant, there might be a brief delay,
// usually less than five minutes, until the grant is available throughout KMS.
// This state is known as eventual consistency. Once the grant has achieved
// eventual consistency, the grantee principal can use the permissions in the grant
// without identifying the grant.
//
// However, to use the permissions in the grant immediately, use the GrantToken
//
// that CreateGrant returns. For details, see [Using a grant token]in the Key Management Service
// Developer Guide .
//
// - The CreateGrant operation also returns a GrantId . You can use the GrantId
// and a key identifier to identify the grant in the RetireGrantand RevokeGrantoperations. To find the
// grant ID, use the ListGrantsor ListRetirableGrantsoperations.
//
// The KMS key that you use for this operation must be in a compatible key state.
// For details, see [Key states of KMS keys]in the Key Management Service Developer Guide.
//
// Cross-account use: Yes. To perform this operation on a KMS key in a different
// Amazon Web Services account, specify the key ARN in the value of the KeyId
// parameter.
//
// Required permissions: [kms:CreateGrant] (key policy)
//
// Related operations:
//
// # ListGrants
//
// # ListRetirableGrants
//
// # RetireGrant
//
// # RevokeGrant
//
// Eventual consistency: The KMS API follows an eventual consistency model. For
// more information, see [KMS eventual consistency].
//
// [Programming grants]: path_to_url
// [Key states of KMS keys]: path_to_url
// [Grants in KMS]: path_to_url
// [kms:CreateGrant]: path_to_url
// [KMS eventual consistency]: path_to_url
//
// [Using a grant token]: path_to_url#using-grant-token
func (c *Client) CreateGrant(ctx context.Context, params *CreateGrantInput, optFns ...func(*Options)) (*CreateGrantOutput, error) {
if params == nil {
params = &CreateGrantInput{}
}
result, metadata, err := c.invokeOperation(ctx, "CreateGrant", params, optFns, c.addOperationCreateGrantMiddlewares)
if err != nil {
return nil, err
}
out := result.(*CreateGrantOutput)
out.ResultMetadata = metadata
return out, nil
}
type CreateGrantInput struct {
// The identity that gets the permissions specified in the grant.
//
// To specify the grantee principal, use the Amazon Resource Name (ARN) of an
// Amazon Web Services principal. Valid principals include Amazon Web Services
// accounts, IAM users, IAM roles, federated users, and assumed role users. For
// help with the ARN syntax for a principal, see [IAM ARNs]in the Identity and Access
// Management User Guide .
//
// [IAM ARNs]: path_to_url#identifiers-arns
//
// This member is required.
GranteePrincipal *string
// Identifies the KMS key for the grant. The grant gives principals permission to
// use this KMS key.
//
// Specify the key ID or key ARN of the KMS key. To specify a KMS key in a
// different Amazon Web Services account, you must use the key ARN.
//
// For example:
//
// - Key ID: 1234abcd-12ab-34cd-56ef-1234567890ab
//
// - Key ARN:
// arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab
//
// To get the key ID and key ARN for a KMS key, use ListKeys or DescribeKey.
//
// This member is required.
KeyId *string
// A list of operations that the grant permits.
//
// This list must include only operations that are permitted in a grant. Also, the
// operation must be supported on the KMS key. For example, you cannot create a
// grant for a symmetric encryption KMS key that allows the Signoperation, or a grant
// for an asymmetric KMS key that allows the GenerateDataKeyoperation. If you try, KMS returns a
// ValidationError exception. For details, see [Grant operations] in the Key Management Service
// Developer Guide.
//
// [Grant operations]: path_to_url#terms-grant-operations
//
// This member is required.
Operations []types.GrantOperation
// Specifies a grant constraint.
//
// Do not include confidential or sensitive information in this field. This field
// may be displayed in plaintext in CloudTrail logs and other output.
//
// KMS supports the EncryptionContextEquals and EncryptionContextSubset grant
// constraints, which allow the permissions in the grant only when the encryption
// context in the request matches ( EncryptionContextEquals ) or includes (
// EncryptionContextSubset ) the encryption context specified in the constraint.
//
// The encryption context grant constraints are supported only on [grant operations] that include an
// EncryptionContext parameter, such as cryptographic operations on symmetric
// encryption KMS keys. Grants with grant constraints can include the DescribeKeyand RetireGrant
// operations, but the constraint doesn't apply to these operations. If a grant
// with a grant constraint includes the CreateGrant operation, the constraint
// requires that any grants created with the CreateGrant permission have an
// equally strict or stricter encryption context constraint.
//
// You cannot use an encryption context grant constraint for cryptographic
// operations with asymmetric KMS keys or HMAC KMS keys. Operations with these keys
// don't support an encryption context.
//
// Each constraint value can include up to 8 encryption context pairs. The
// encryption context value in each constraint cannot exceed 384 characters. For
// information about grant constraints, see [Using grant constraints]in the Key Management Service
// Developer Guide. For more information about encryption context, see [Encryption context]in the Key
// Management Service Developer Guide .
//
// [grant operations]: path_to_url#terms-grant-operations
// [Using grant constraints]: path_to_url#grant-constraints
// [Encryption context]: path_to_url#encrypt_context
Constraints *types.GrantConstraints
// Checks if your request will succeed. DryRun is an optional parameter.
//
// To learn more about how to use this parameter, see [Testing your KMS API calls] in the Key Management
// Service Developer Guide.
//
// [Testing your KMS API calls]: path_to_url
DryRun *bool
// A list of grant tokens.
//
// Use a grant token when your permission to call this operation comes from a new
// grant that has not yet achieved eventual consistency. For more information, see [Grant token]
// and [Using a grant token]in the Key Management Service Developer Guide.
//
// [Grant token]: path_to_url#grant_token
// [Using a grant token]: path_to_url#using-grant-token
GrantTokens []string
// A friendly name for the grant. Use this value to prevent the unintended
// creation of duplicate grants when retrying this request.
//
// Do not include confidential or sensitive information in this field. This field
// may be displayed in plaintext in CloudTrail logs and other output.
//
// When this value is absent, all CreateGrant requests result in a new grant with
// a unique GrantId even if all the supplied parameters are identical. This can
// result in unintended duplicates when you retry the CreateGrant request.
//
// When this value is present, you can retry a CreateGrant request with identical
// parameters; if the grant already exists, the original GrantId is returned
// without creating a new grant. Note that the returned grant token is unique with
// every CreateGrant request, even when a duplicate GrantId is returned. All grant
// tokens for the same grant ID can be used interchangeably.
Name *string
// The principal that has permission to use the RetireGrant operation to retire the grant.
//
// To specify the principal, use the [Amazon Resource Name (ARN)] of an Amazon Web Services principal. Valid
// principals include Amazon Web Services accounts, IAM users, IAM roles, federated
// users, and assumed role users. For help with the ARN syntax for a principal, see
// [IAM ARNs]in the Identity and Access Management User Guide .
//
// The grant determines the retiring principal. Other principals might have
// permission to retire the grant or revoke the grant. For details, see RevokeGrantand [Retiring and revoking grants] in
// the Key Management Service Developer Guide.
//
// [IAM ARNs]: path_to_url#identifiers-arns
// [Amazon Resource Name (ARN)]: path_to_url
// [Retiring and revoking grants]: path_to_url#grant-delete
RetiringPrincipal *string
noSmithyDocumentSerde
}
type CreateGrantOutput struct {
// The unique identifier for the grant.
//
// You can use the GrantId in a ListGrants, RetireGrant, or RevokeGrant operation.
GrantId *string
// The grant token.
//
// Use a grant token when your permission to call this operation comes from a new
// grant that has not yet achieved eventual consistency. For more information, see [Grant token]
// and [Using a grant token]in the Key Management Service Developer Guide.
//
// [Grant token]: path_to_url#grant_token
// [Using a grant token]: path_to_url#using-grant-token
GrantToken *string
// Metadata pertaining to the operation's result.
ResultMetadata middleware.Metadata
noSmithyDocumentSerde
}
func (c *Client) addOperationCreateGrantMiddlewares(stack *middleware.Stack, options Options) (err error) {
if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
return err
}
err = stack.Serialize.Add(&awsAwsjson11_serializeOpCreateGrant{}, middleware.After)
if err != nil {
return err
}
err = stack.Deserialize.Add(&awsAwsjson11_deserializeOpCreateGrant{}, middleware.After)
if err != nil {
return err
}
if err := addProtocolFinalizerMiddlewares(stack, options, "CreateGrant"); err != nil {
return fmt.Errorf("add protocol finalizers: %v", err)
}
if err = addlegacyEndpointContextSetter(stack, options); err != nil {
return err
}
if err = addSetLoggerMiddleware(stack, options); err != nil {
return err
}
if err = addClientRequestID(stack); err != nil {
return err
}
if err = addComputeContentLength(stack); err != nil {
return err
}
if err = addResolveEndpointMiddleware(stack, options); err != nil {
return err
}
if err = addComputePayloadSHA256(stack); err != nil {
return err
}
if err = addRetry(stack, options); err != nil {
return err
}
if err = addRawResponseToMetadata(stack); err != nil {
return err
}
if err = addRecordResponseTiming(stack); err != nil {
return err
}
if err = addClientUserAgent(stack, options); err != nil {
return err
}
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
return err
}
if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
return err
}
if err = addTimeOffsetBuild(stack, c); err != nil {
return err
}
if err = addUserAgentRetryMode(stack, options); err != nil {
return err
}
if err = addOpCreateGrantValidationMiddleware(stack); err != nil {
return err
}
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateGrant(options.Region), middleware.Before); err != nil {
return err
}
if err = addRecursionDetection(stack); err != nil {
return err
}
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
return err
}
if err = addResponseErrorMiddleware(stack); err != nil {
return err
}
if err = addRequestResponseLogging(stack, options); err != nil {
return err
}
if err = addDisableHTTPSMiddleware(stack, options); err != nil {
return err
}
return nil
}
func newServiceMetadataMiddleware_opCreateGrant(region string) *awsmiddleware.RegisterServiceMetadata {
return &awsmiddleware.RegisterServiceMetadata{
Region: region,
ServiceID: ServiceID,
OperationName: "CreateGrant",
}
}
```
|
```vue
<template>
<div class="components">
<h3>Compress Image</h3>
<p>Props <code>compress</code> means the quality of the image you want to compress via browser
and then send the compressed image to the server. </p>
<div class="center">
<p><img width="300" :src="src" /></p>
<vue-core-image-upload
class="btn btn-primary"
@imageuploaded="imageUploded"
:max-file-size="5242880"
compress="50"
url="path_to_url" >
</vue-core-image-upload>
</div>
<h4>Code example</h4>
<pre v-highlightjs><code class="html"><vue-core-image-upload
:class="['btn', 'btn-primary']"
@imageuploaded="imageUploded"
:max-file-size="5242880"
compress="50"
url="path_to_url" >
</vue-core-image-upload></code></pre>
</div>
</template>
<script>
import VueCoreImageUpload from 'vue-core-image-upload'
export default {
components: {
VueCoreImageUpload,
},
data() {
return {
src: 'path_to_url
};
},
methods: {
imageUploded(res) {
this.src = res.data.src;
}
}
};
</script>
```
|
Vis-à-vis is the second studio album by Slovak musician Karol Mikloš, issued via on October 21, 2002. Based on available music reviews, the work met with mixed to positive commentaries.
Reception
Critical response
Vis-à-vis spawned miscellaneous reactions among music journalists, with moderately prevailing positive. Daniel Baláž of SME commented that "an intelligent pop music established on oddly set up chords to old-fashioned melodic songwriting [it] is simply of his own". Seeing some resemblance to Miroslav Žbirka and Ladislav Lučenič, the author in general acknowledged Mikloš'es musical direction, including his deliberate and shy performance in public. Jaroslav Špulák from &MusiQ, formerly Rock & Pop magazine, emphasized the album's mood, and inner drive as well as its good production which "compete with the rest European recordings in the mainstream ranking excellently".
Other critics such as Pavel Seifert of FreeMusic.cz, were less enthusiastic. He concluded in his review: "Having own sound and style is a potential prerequisite for the success of any performer, but only when they make an effort in cultivating it. Songs [by Mikloš] do have their sound and style. The[ir] stroke of fate is however, that due to an identical pattern you come to the feeling at the end of the CD as if you were listening to the same track ever since.
Commercial performance
The album release didn't enter record charts, nor did any of the released singles.
Track listings
Credits and personnel
Management
Recording studio – Mikloš'es home, Trenčín • Sedis Studio, Topoľčany • IMI Studio, Bratislava • Exponent Studio, Hlohovec, Slovakia
Publishing – & Publishing, Bratislava, SK
Production
Writers – Andrej Monček • Mikloš
Mastering – Sedis Studio • Mikloš'es home
Production and mixing – Monček • Mikloš • Roman Hlubina
Programming – Monček • Mikloš
Engineering – Ján Došek
Press – GZ Digital Media , Loděnice, Czech Republic
Personnel
Lead vocals – Mikloš
Backing vocals – Emília Lokšenincová • Second Nature
Musical instruments – Second Nature
Guitars – Mikloš and Hlubina • Monček • Marián Králik
Drums – František Kraus
Synthesizers – Monček • Mikloš
Photography – Ivana • Ján Čajda • Rado D. • Vrbkin
Cover art – Mikloš
Graphic design – Vladimir Yurkovic
Awards
References
External links
Vis-à-vis (Official website)
Vis-à-vis on Bandcamp
Vis-à-vis on Discogs
Karol Mikloš albums
2002 albums
Millenium Records albums
|
Gorebridge is a former mining village in Midlothian, Scotland.
Gorebridge has an annual Gala Day which always takes place on the 3rd Saturday in June. This is much like a town fair, with rides and games. The gala day has a tradition of picking a Town King and Queen from the primary schools.
Gorebridge has four primary schools, Gorebridge Primary, Stobhill Primary, St Andrews RC Primary and Gore Glen Primary. Greenhall High school used to serve the town but closed down in 1994. Local children attend nearby Newbattle Community High School, St David's RC High School or Lasswade High School. There is a leisure centre, library and Vogrie Country Park in Gorebridge.
Gorebridge's local football team is Arniston Rangers who were founded in 1878 and play home games at Newbyres Park in the .
Annette Crosbie, known to many as the long suffering wife of Victor Meldrew, played by fellow Scot Richard Wilson in the BBC comedy series One Foot in the Grave, is a former resident of Gorebridge. The Reverend David Arnott, Moderator of the General Assembly of the Church of Scotland for 2011–12, was minister at Gorebridge Parish Church in the 1970s.
On 6 September 2015 Gorebridge saw the return of the Waverley Line with a new station built on the site of the original station. This gives rail access to the Borders and Edinburgh Waverley railway station.
In the Gore Glen there is a shallow cave, named "The King's Cave". According to legend a thief used to steal cattle and hide in this nearby cave. It is not, as some think, named after Robert the Bruce, who was said to have hidden here after defeat at the hands of the English. There are 29 listed buildings in Gorebridge including one Category B building (Harvieston Lodge), and two Category C buildings (Gorebridge old station and the Post Office).
On 30 August 2020, police broke up a party of 300 people at the Mansion house of Kirkhill in Gorebridge and issued a fine to the organiser. Scottish Government rules during the coronavirus pandemic at the time were for a maximum of eight people from three households to meet inside at one time.
In 2021, Gorebridge Leisure Centre was used as a mass vaccination centre during the coronavirus pandemic
History
The village got its name from the bridge across the River Gore, a tributary of the South Esk. It was the home of Stobsmill, Scotland's first gunpowder mill, at the Gore Water, that started operating in 1794 and closed in 1875. In the 1860s century a coal mine called Emily Pit was opened, the village grew as miners came and a railway was built to take the coal from the mine. The Emily Pit and Gore Pit (another coal mine) were together renamed the Arniston Colliery which closed in 1962. The railway line was closed in 1969 and reopened in 2015.
See also
Arniston House
References
External links
Gorebridge Community Development Trust
Video and commentary on Gorebridge Railway Station.
Villages in Midlothian
Mining communities in Scotland
|
```java
/**
* This code was generated by [react-native-codegen](path_to_url
*
* Do not edit this file as changes may cause incorrect behavior and will be lost
* once the code is regenerated.
*
* @generated by codegen project: GeneratePropsJavaDelegate.js
*/
package com.facebook.react.viewmanagers;
import android.view.View;
import androidx.annotation.Nullable;
import com.facebook.react.bridge.DynamicFromObject;
import com.facebook.react.uimanager.BaseViewManagerDelegate;
import com.facebook.react.uimanager.BaseViewManagerInterface;
public class RNSVGFeGaussianBlurManagerDelegate<T extends View, U extends BaseViewManagerInterface<T> & RNSVGFeGaussianBlurManagerInterface<T>> extends BaseViewManagerDelegate<T, U> {
public RNSVGFeGaussianBlurManagerDelegate(U viewManager) {
super(viewManager);
}
@Override
public void setProperty(T view, String propName, @Nullable Object value) {
switch (propName) {
case "x":
mViewManager.setX(view, new DynamicFromObject(value));
break;
case "y":
mViewManager.setY(view, new DynamicFromObject(value));
break;
case "width":
mViewManager.setWidth(view, new DynamicFromObject(value));
break;
case "height":
mViewManager.setHeight(view, new DynamicFromObject(value));
break;
case "result":
mViewManager.setResult(view, value == null ? null : (String) value);
break;
case "in1":
mViewManager.setIn1(view, value == null ? null : (String) value);
break;
case "stdDeviationX":
mViewManager.setStdDeviationX(view, value == null ? 0f : ((Double) value).floatValue());
break;
case "stdDeviationY":
mViewManager.setStdDeviationY(view, value == null ? 0f : ((Double) value).floatValue());
break;
case "edgeMode":
mViewManager.setEdgeMode(view, (String) value);
break;
default:
super.setProperty(view, propName, value);
}
}
}
```
|
```html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>08tab</title>
<style>
.box{width:100px;height:100px;background: #fc0;}
</style>
<script src="js/jquery-3.1.1.js"></script>
<script>
$(function(){
$('button').on('click',function(){
// $('.box').slideToggle();
$('.box').fadeToggle(800);
// .boxactiveacitve
// .boxactive,
$('.box').toggleClass('active');
});
});
</script>
</head>
<body>
<div class="box"></div>
<button></button>
</body>
</html>
```
|
```verilog
//
// This file contains confidential and proprietary information
// of Xilinx, Inc. and is protected under U.S. and
// international copyright and other intellectual property
// laws.
//
// DISCLAIMER
// This disclaimer is not a license and does not grant any
// rights to the materials distributed herewith. Except as
// otherwise provided in a valid license issued to you by
// Xilinx, and to the maximum extent permitted by applicable
// law: (1) THESE MATERIALS ARE MADE AVAILABLE "AS IS" AND
// WITH ALL FAULTS, AND XILINX HEREBY DISCLAIMS ALL WARRANTIES
// AND CONDITIONS, EXPRESS, IMPLIED, OR STATUTORY, INCLUDING
// BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY, NON-
// INFRINGEMENT, OR FITNESS FOR ANY PARTICULAR PURPOSE; and
// (2) Xilinx shall not be liable (whether in contract or tort,
// including negligence, or under any other theory of
// liability) for any loss or damage of any kind or nature
// related to, arising under or in connection with these
// materials, including for any direct, or any indirect,
// special, incidental, or consequential loss or damage
// (including loss of data, profits, goodwill, or any type of
// loss or damage suffered as a result of any action brought
// by a third party) even if such damage or loss was
// reasonably foreseeable or Xilinx had been advised of the
// possibility of the same.
//
// CRITICAL APPLICATIONS
// Xilinx products are not designed or intended to be fail-
// safe, or for use in any application requiring fail-safe
// performance, such as life-support or safety devices or
// systems, Class III medical devices, nuclear facilities,
// applications related to the deployment of airbags, or any
// other applications that could lead to death, personal
// injury, or severe property or environmental damage
// (individually and collectively, "Critical
// Applications"). Customer assumes the sole risk and
// liability of any use of Xilinx products in Critical
// Applications, subject only to applicable laws and
// regulations governing limitations on product liability.
//
// THIS COPYRIGHT NOTICE AND DISCLAIMER MUST BE RETAINED AS
// PART OF THIS FILE AT ALL TIMES.
//
// DO NOT MODIFY THIS FILE.
// IP VLNV: xilinx.com:ip:axi_crossbar:2.1
// IP Revision: 16
(* X_CORE_INFO = "axi_crossbar_v2_1_16_axi_crossbar,Vivado 2017.4.op" *)
(* CHECK_LICENSE_TYPE = "cl_axi_interconnect_xbar_0,axi_crossbar_v2_1_16_axi_crossbar,{}" *)
(* CORE_GENERATION_INFO = "cl_axi_interconnect_xbar_0,axi_crossbar_v2_1_16_axi_crossbar,{x_ipProduct=Vivado 2017.4.op,x_ipVendor=xilinx.com,x_ipLibrary=ip,x_ipName=axi_crossbar,x_ipVersion=2.1,x_ipCoreRevision=16,x_ipLanguage=VERILOG,x_ipSimLanguage=MIXED,C_FAMILY=virtexuplus,C_NUM_SLAVE_SLOTS=2,C_NUM_MASTER_SLOTS=4,C_AXI_ID_WIDTH=7,C_AXI_ADDR_WIDTH=64,C_AXI_DATA_WIDTH=512,C_AXI_PROTOCOL=0,C_NUM_ADDR_RANGES=1,C_M_AXI_BASE_ADDR=your_sha256_hash00,C_M_AXI_ADDR_WIDTH=0x00000022\
000000220000002200000022,C_S_AXI_BASE_ID=0x0000004000000000,C_S_AXI_THREAD_ID_WIDTH=0x0000000600000006,C_AXI_SUPPORTS_USER_SIGNALS=0,C_AXI_AWUSER_WIDTH=1,C_AXI_ARUSER_WIDTH=1,C_AXI_WUSER_WIDTH=1,C_AXI_RUSER_WIDTH=1,C_AXI_BUSER_WIDTH=1,C_M_AXI_WRITE_CONNECTIVITY=0x00000003000000030000000300000003,C_M_AXI_READ_CONNECTIVITY=0x00000003000000030000000300000003,C_R_REGISTER=0,C_S_AXI_SINGLE_THREAD=0x0000000000000000,C_S_AXI_WRITE_ACCEPTANCE=0x0000002000000020,C_S_AXI_READ_ACCEPTANCE=0x0000002000000020\
,C_M_AXI_WRITE_ISSUING=0x00000010000000100000001000000010,C_M_AXI_READ_ISSUING=0x00000010000000100000001000000010,C_S_AXI_ARB_PRIORITY=0x0000000000000000,C_M_AXI_SECURE=0x00000000000000000000000000000000,C_CONNECTIVITY_MODE=1}" *)
(* DowngradeIPIdentifiedWarnings = "yes" *)
module cl_axi_interconnect_xbar_0 (
aclk,
aresetn,
s_axi_awid,
s_axi_awaddr,
s_axi_awlen,
s_axi_awsize,
s_axi_awburst,
s_axi_awlock,
s_axi_awcache,
s_axi_awprot,
s_axi_awqos,
s_axi_awvalid,
s_axi_awready,
s_axi_wdata,
s_axi_wstrb,
s_axi_wlast,
s_axi_wvalid,
s_axi_wready,
s_axi_bid,
s_axi_bresp,
s_axi_bvalid,
s_axi_bready,
s_axi_arid,
s_axi_araddr,
s_axi_arlen,
s_axi_arsize,
s_axi_arburst,
s_axi_arlock,
s_axi_arcache,
s_axi_arprot,
s_axi_arqos,
s_axi_arvalid,
s_axi_arready,
s_axi_rid,
s_axi_rdata,
s_axi_rresp,
s_axi_rlast,
s_axi_rvalid,
s_axi_rready,
m_axi_awid,
m_axi_awaddr,
m_axi_awlen,
m_axi_awsize,
m_axi_awburst,
m_axi_awlock,
m_axi_awcache,
m_axi_awprot,
m_axi_awregion,
m_axi_awqos,
m_axi_awvalid,
m_axi_awready,
m_axi_wdata,
m_axi_wstrb,
m_axi_wlast,
m_axi_wvalid,
m_axi_wready,
m_axi_bid,
m_axi_bresp,
m_axi_bvalid,
m_axi_bready,
m_axi_arid,
m_axi_araddr,
m_axi_arlen,
m_axi_arsize,
m_axi_arburst,
m_axi_arlock,
m_axi_arcache,
m_axi_arprot,
m_axi_arregion,
m_axi_arqos,
m_axi_arvalid,
m_axi_arready,
m_axi_rid,
m_axi_rdata,
m_axi_rresp,
m_axi_rlast,
m_axi_rvalid,
m_axi_rready
);
(* X_INTERFACE_PARAMETER = "XIL_INTERFACENAME CLKIF, FREQ_HZ 250000000, PHASE 0.000, CLK_DOMAIN cl_axi_interconnect_ACLK, ASSOCIATED_BUSIF M00_AXI:M01_AXI:M02_AXI:M03_AXI:M04_AXI:M05_AXI:M06_AXI:M07_AXI:M08_AXI:M09_AXI:M10_AXI:M11_AXI:M12_AXI:M13_AXI:M14_AXI:M15_AXI:S00_AXI:S01_AXI:S02_AXI:S03_AXI:S04_AXI:S05_AXI:S06_AXI:S07_AXI:S08_AXI:S09_AXI:S10_AXI:S11_AXI:S12_AXI:S13_AXI:S14_AXI:S15_AXI, ASSOCIATED_RESET ARESETN" *)
(* X_INTERFACE_INFO = "xilinx.com:signal:clock:1.0 CLKIF CLK" *)
input wire aclk;
(* X_INTERFACE_PARAMETER = "XIL_INTERFACENAME RSTIF, POLARITY ACTIVE_LOW, TYPE INTERCONNECT" *)
(* X_INTERFACE_INFO = "xilinx.com:signal:reset:1.0 RSTIF RST" *)
input wire aresetn;
(* X_INTERFACE_INFO = "xilinx.com:interface:aximm:1.0 S00_AXI AWID [6:0] [6:0], xilinx.com:interface:aximm:1.0 S01_AXI AWID [6:0] [13:7]" *)
input wire [13 : 0] s_axi_awid;
(* X_INTERFACE_INFO = "xilinx.com:interface:aximm:1.0 S00_AXI AWADDR [63:0] [63:0], xilinx.com:interface:aximm:1.0 S01_AXI AWADDR [63:0] [127:64]" *)
input wire [127 : 0] s_axi_awaddr;
(* X_INTERFACE_INFO = "xilinx.com:interface:aximm:1.0 S00_AXI AWLEN [7:0] [7:0], xilinx.com:interface:aximm:1.0 S01_AXI AWLEN [7:0] [15:8]" *)
input wire [15 : 0] s_axi_awlen;
(* X_INTERFACE_INFO = "xilinx.com:interface:aximm:1.0 S00_AXI AWSIZE [2:0] [2:0], xilinx.com:interface:aximm:1.0 S01_AXI AWSIZE [2:0] [5:3]" *)
input wire [5 : 0] s_axi_awsize;
(* X_INTERFACE_INFO = "xilinx.com:interface:aximm:1.0 S00_AXI AWBURST [1:0] [1:0], xilinx.com:interface:aximm:1.0 S01_AXI AWBURST [1:0] [3:2]" *)
input wire [3 : 0] s_axi_awburst;
(* X_INTERFACE_INFO = "xilinx.com:interface:aximm:1.0 S00_AXI AWLOCK [0:0] [0:0], xilinx.com:interface:aximm:1.0 S01_AXI AWLOCK [0:0] [1:1]" *)
input wire [1 : 0] s_axi_awlock;
(* X_INTERFACE_INFO = "xilinx.com:interface:aximm:1.0 S00_AXI AWCACHE [3:0] [3:0], xilinx.com:interface:aximm:1.0 S01_AXI AWCACHE [3:0] [7:4]" *)
input wire [7 : 0] s_axi_awcache;
(* X_INTERFACE_INFO = "xilinx.com:interface:aximm:1.0 S00_AXI AWPROT [2:0] [2:0], xilinx.com:interface:aximm:1.0 S01_AXI AWPROT [2:0] [5:3]" *)
input wire [5 : 0] s_axi_awprot;
(* X_INTERFACE_INFO = "xilinx.com:interface:aximm:1.0 S00_AXI AWQOS [3:0] [3:0], xilinx.com:interface:aximm:1.0 S01_AXI AWQOS [3:0] [7:4]" *)
input wire [7 : 0] s_axi_awqos;
(* X_INTERFACE_INFO = "xilinx.com:interface:aximm:1.0 S00_AXI AWVALID [0:0] [0:0], xilinx.com:interface:aximm:1.0 S01_AXI AWVALID [0:0] [1:1]" *)
input wire [1 : 0] s_axi_awvalid;
(* X_INTERFACE_INFO = "xilinx.com:interface:aximm:1.0 S00_AXI AWREADY [0:0] [0:0], xilinx.com:interface:aximm:1.0 S01_AXI AWREADY [0:0] [1:1]" *)
output wire [1 : 0] s_axi_awready;
(* X_INTERFACE_INFO = "xilinx.com:interface:aximm:1.0 S00_AXI WDATA [511:0] [511:0], xilinx.com:interface:aximm:1.0 S01_AXI WDATA [511:0] [1023:512]" *)
input wire [1023 : 0] s_axi_wdata;
(* X_INTERFACE_INFO = "xilinx.com:interface:aximm:1.0 S00_AXI WSTRB [63:0] [63:0], xilinx.com:interface:aximm:1.0 S01_AXI WSTRB [63:0] [127:64]" *)
input wire [127 : 0] s_axi_wstrb;
(* X_INTERFACE_INFO = "xilinx.com:interface:aximm:1.0 S00_AXI WLAST [0:0] [0:0], xilinx.com:interface:aximm:1.0 S01_AXI WLAST [0:0] [1:1]" *)
input wire [1 : 0] s_axi_wlast;
(* X_INTERFACE_INFO = "xilinx.com:interface:aximm:1.0 S00_AXI WVALID [0:0] [0:0], xilinx.com:interface:aximm:1.0 S01_AXI WVALID [0:0] [1:1]" *)
input wire [1 : 0] s_axi_wvalid;
(* X_INTERFACE_INFO = "xilinx.com:interface:aximm:1.0 S00_AXI WREADY [0:0] [0:0], xilinx.com:interface:aximm:1.0 S01_AXI WREADY [0:0] [1:1]" *)
output wire [1 : 0] s_axi_wready;
(* X_INTERFACE_INFO = "xilinx.com:interface:aximm:1.0 S00_AXI BID [6:0] [6:0], xilinx.com:interface:aximm:1.0 S01_AXI BID [6:0] [13:7]" *)
output wire [13 : 0] s_axi_bid;
(* X_INTERFACE_INFO = "xilinx.com:interface:aximm:1.0 S00_AXI BRESP [1:0] [1:0], xilinx.com:interface:aximm:1.0 S01_AXI BRESP [1:0] [3:2]" *)
output wire [3 : 0] s_axi_bresp;
(* X_INTERFACE_INFO = "xilinx.com:interface:aximm:1.0 S00_AXI BVALID [0:0] [0:0], xilinx.com:interface:aximm:1.0 S01_AXI BVALID [0:0] [1:1]" *)
output wire [1 : 0] s_axi_bvalid;
(* X_INTERFACE_INFO = "xilinx.com:interface:aximm:1.0 S00_AXI BREADY [0:0] [0:0], xilinx.com:interface:aximm:1.0 S01_AXI BREADY [0:0] [1:1]" *)
input wire [1 : 0] s_axi_bready;
(* X_INTERFACE_INFO = "xilinx.com:interface:aximm:1.0 S00_AXI ARID [6:0] [6:0], xilinx.com:interface:aximm:1.0 S01_AXI ARID [6:0] [13:7]" *)
input wire [13 : 0] s_axi_arid;
(* X_INTERFACE_INFO = "xilinx.com:interface:aximm:1.0 S00_AXI ARADDR [63:0] [63:0], xilinx.com:interface:aximm:1.0 S01_AXI ARADDR [63:0] [127:64]" *)
input wire [127 : 0] s_axi_araddr;
(* X_INTERFACE_INFO = "xilinx.com:interface:aximm:1.0 S00_AXI ARLEN [7:0] [7:0], xilinx.com:interface:aximm:1.0 S01_AXI ARLEN [7:0] [15:8]" *)
input wire [15 : 0] s_axi_arlen;
(* X_INTERFACE_INFO = "xilinx.com:interface:aximm:1.0 S00_AXI ARSIZE [2:0] [2:0], xilinx.com:interface:aximm:1.0 S01_AXI ARSIZE [2:0] [5:3]" *)
input wire [5 : 0] s_axi_arsize;
(* X_INTERFACE_INFO = "xilinx.com:interface:aximm:1.0 S00_AXI ARBURST [1:0] [1:0], xilinx.com:interface:aximm:1.0 S01_AXI ARBURST [1:0] [3:2]" *)
input wire [3 : 0] s_axi_arburst;
(* X_INTERFACE_INFO = "xilinx.com:interface:aximm:1.0 S00_AXI ARLOCK [0:0] [0:0], xilinx.com:interface:aximm:1.0 S01_AXI ARLOCK [0:0] [1:1]" *)
input wire [1 : 0] s_axi_arlock;
(* X_INTERFACE_INFO = "xilinx.com:interface:aximm:1.0 S00_AXI ARCACHE [3:0] [3:0], xilinx.com:interface:aximm:1.0 S01_AXI ARCACHE [3:0] [7:4]" *)
input wire [7 : 0] s_axi_arcache;
(* X_INTERFACE_INFO = "xilinx.com:interface:aximm:1.0 S00_AXI ARPROT [2:0] [2:0], xilinx.com:interface:aximm:1.0 S01_AXI ARPROT [2:0] [5:3]" *)
input wire [5 : 0] s_axi_arprot;
(* X_INTERFACE_INFO = "xilinx.com:interface:aximm:1.0 S00_AXI ARQOS [3:0] [3:0], xilinx.com:interface:aximm:1.0 S01_AXI ARQOS [3:0] [7:4]" *)
input wire [7 : 0] s_axi_arqos;
(* X_INTERFACE_INFO = "xilinx.com:interface:aximm:1.0 S00_AXI ARVALID [0:0] [0:0], xilinx.com:interface:aximm:1.0 S01_AXI ARVALID [0:0] [1:1]" *)
input wire [1 : 0] s_axi_arvalid;
(* X_INTERFACE_INFO = "xilinx.com:interface:aximm:1.0 S00_AXI ARREADY [0:0] [0:0], xilinx.com:interface:aximm:1.0 S01_AXI ARREADY [0:0] [1:1]" *)
output wire [1 : 0] s_axi_arready;
(* X_INTERFACE_INFO = "xilinx.com:interface:aximm:1.0 S00_AXI RID [6:0] [6:0], xilinx.com:interface:aximm:1.0 S01_AXI RID [6:0] [13:7]" *)
output wire [13 : 0] s_axi_rid;
(* X_INTERFACE_INFO = "xilinx.com:interface:aximm:1.0 S00_AXI RDATA [511:0] [511:0], xilinx.com:interface:aximm:1.0 S01_AXI RDATA [511:0] [1023:512]" *)
output wire [1023 : 0] s_axi_rdata;
(* X_INTERFACE_INFO = "xilinx.com:interface:aximm:1.0 S00_AXI RRESP [1:0] [1:0], xilinx.com:interface:aximm:1.0 S01_AXI RRESP [1:0] [3:2]" *)
output wire [3 : 0] s_axi_rresp;
(* X_INTERFACE_INFO = "xilinx.com:interface:aximm:1.0 S00_AXI RLAST [0:0] [0:0], xilinx.com:interface:aximm:1.0 S01_AXI RLAST [0:0] [1:1]" *)
output wire [1 : 0] s_axi_rlast;
(* X_INTERFACE_INFO = "xilinx.com:interface:aximm:1.0 S00_AXI RVALID [0:0] [0:0], xilinx.com:interface:aximm:1.0 S01_AXI RVALID [0:0] [1:1]" *)
output wire [1 : 0] s_axi_rvalid;
(* X_INTERFACE_PARAMETER = "XIL_INTERFACENAME S00_AXI, DATA_WIDTH 512, PROTOCOL AXI4, FREQ_HZ 250000000, ID_WIDTH 7, ADDR_WIDTH 64, AWUSER_WIDTH 0, ARUSER_WIDTH 0, WUSER_WIDTH 0, RUSER_WIDTH 0, BUSER_WIDTH 0, READ_WRITE_MODE READ_WRITE, HAS_BURST 1, HAS_LOCK 1, HAS_PROT 1, HAS_CACHE 1, HAS_QOS 1, HAS_REGION 0, HAS_WSTRB 1, HAS_BRESP 1, HAS_RRESP 1, SUPPORTS_NARROW_BURST 1, NUM_READ_OUTSTANDING 2, NUM_WRITE_OUTSTANDING 2, MAX_BURST_LENGTH 256, PHASE 0.000, CLK_DOMAIN cl_axi_interconnect_ACLK, NUM_READ_THREADS 16, NUM_WRITE_THREADS 16, RUSER_BITS_PER_BYTE 0, WUSER_BITS_PER_BYTE 0, XIL_INTERFACENAME S01_AXI, DATA_WIDTH 512, PROTOCOL AXI4, FREQ_HZ 250000000, ID_WIDTH 7, ADDR_WIDTH 64, AWUSER_WIDTH 0, ARUSER_WIDTH 0, WUSER_WIDTH 0, RUSER_WIDTH 0, BUSER_WIDTH 0, READ_WRITE_MODE READ_WRITE, HAS_BURST 1, HAS_LOCK 1, HAS_PROT 1, HAS_CACHE 1, HAS_QOS 1, HAS_REGION 0, HAS_WSTRB 1, HAS_BRESP 1, HAS_RRESP 1, SUPPORTS_NARROW_BURST 1, NUM_READ_OUTSTANDING 2, NUM_WRITE_OUTSTANDING 2, MAX_BURST_LENGTH 256, PHASE 0.000, CLK_DOMAIN cl_axi_interconnect_ACLK, NUM_READ_THREADS 16, NUM_WRITE_THREADS 16, RUSER_BITS_PER_BYTE 0, WUSER_BITS_PER_BYTE 0" *)
(* X_INTERFACE_INFO = "xilinx.com:interface:aximm:1.0 S00_AXI RREADY [0:0] [0:0], xilinx.com:interface:aximm:1.0 S01_AXI RREADY [0:0] [1:1]" *)
input wire [1 : 0] s_axi_rready;
(* X_INTERFACE_INFO = "xilinx.com:interface:aximm:1.0 M00_AXI AWID [6:0] [6:0], xilinx.com:interface:aximm:1.0 M01_AXI AWID [6:0] [13:7], xilinx.com:interface:aximm:1.0 M02_AXI AWID [6:0] [20:14], xilinx.com:interface:aximm:1.0 M03_AXI AWID [6:0] [27:21]" *)
output wire [27 : 0] m_axi_awid;
(* X_INTERFACE_INFO = "xilinx.com:interface:aximm:1.0 M00_AXI AWADDR [63:0] [63:0], xilinx.com:interface:aximm:1.0 M01_AXI AWADDR [63:0] [127:64], xilinx.com:interface:aximm:1.0 M02_AXI AWADDR [63:0] [191:128], xilinx.com:interface:aximm:1.0 M03_AXI AWADDR [63:0] [255:192]" *)
output wire [255 : 0] m_axi_awaddr;
(* X_INTERFACE_INFO = "xilinx.com:interface:aximm:1.0 M00_AXI AWLEN [7:0] [7:0], xilinx.com:interface:aximm:1.0 M01_AXI AWLEN [7:0] [15:8], xilinx.com:interface:aximm:1.0 M02_AXI AWLEN [7:0] [23:16], xilinx.com:interface:aximm:1.0 M03_AXI AWLEN [7:0] [31:24]" *)
output wire [31 : 0] m_axi_awlen;
(* X_INTERFACE_INFO = "xilinx.com:interface:aximm:1.0 M00_AXI AWSIZE [2:0] [2:0], xilinx.com:interface:aximm:1.0 M01_AXI AWSIZE [2:0] [5:3], xilinx.com:interface:aximm:1.0 M02_AXI AWSIZE [2:0] [8:6], xilinx.com:interface:aximm:1.0 M03_AXI AWSIZE [2:0] [11:9]" *)
output wire [11 : 0] m_axi_awsize;
(* X_INTERFACE_INFO = "xilinx.com:interface:aximm:1.0 M00_AXI AWBURST [1:0] [1:0], xilinx.com:interface:aximm:1.0 M01_AXI AWBURST [1:0] [3:2], xilinx.com:interface:aximm:1.0 M02_AXI AWBURST [1:0] [5:4], xilinx.com:interface:aximm:1.0 M03_AXI AWBURST [1:0] [7:6]" *)
output wire [7 : 0] m_axi_awburst;
(* X_INTERFACE_INFO = "xilinx.com:interface:aximm:1.0 M00_AXI AWLOCK [0:0] [0:0], xilinx.com:interface:aximm:1.0 M01_AXI AWLOCK [0:0] [1:1], xilinx.com:interface:aximm:1.0 M02_AXI AWLOCK [0:0] [2:2], xilinx.com:interface:aximm:1.0 M03_AXI AWLOCK [0:0] [3:3]" *)
output wire [3 : 0] m_axi_awlock;
(* X_INTERFACE_INFO = "xilinx.com:interface:aximm:1.0 M00_AXI AWCACHE [3:0] [3:0], xilinx.com:interface:aximm:1.0 M01_AXI AWCACHE [3:0] [7:4], xilinx.com:interface:aximm:1.0 M02_AXI AWCACHE [3:0] [11:8], xilinx.com:interface:aximm:1.0 M03_AXI AWCACHE [3:0] [15:12]" *)
output wire [15 : 0] m_axi_awcache;
(* X_INTERFACE_INFO = "xilinx.com:interface:aximm:1.0 M00_AXI AWPROT [2:0] [2:0], xilinx.com:interface:aximm:1.0 M01_AXI AWPROT [2:0] [5:3], xilinx.com:interface:aximm:1.0 M02_AXI AWPROT [2:0] [8:6], xilinx.com:interface:aximm:1.0 M03_AXI AWPROT [2:0] [11:9]" *)
output wire [11 : 0] m_axi_awprot;
(* X_INTERFACE_INFO = "xilinx.com:interface:aximm:1.0 M00_AXI AWREGION [3:0] [3:0], xilinx.com:interface:aximm:1.0 M01_AXI AWREGION [3:0] [7:4], xilinx.com:interface:aximm:1.0 M02_AXI AWREGION [3:0] [11:8], xilinx.com:interface:aximm:1.0 M03_AXI AWREGION [3:0] [15:12]" *)
output wire [15 : 0] m_axi_awregion;
(* X_INTERFACE_INFO = "xilinx.com:interface:aximm:1.0 M00_AXI AWQOS [3:0] [3:0], xilinx.com:interface:aximm:1.0 M01_AXI AWQOS [3:0] [7:4], xilinx.com:interface:aximm:1.0 M02_AXI AWQOS [3:0] [11:8], xilinx.com:interface:aximm:1.0 M03_AXI AWQOS [3:0] [15:12]" *)
output wire [15 : 0] m_axi_awqos;
(* X_INTERFACE_INFO = "xilinx.com:interface:aximm:1.0 M00_AXI AWVALID [0:0] [0:0], xilinx.com:interface:aximm:1.0 M01_AXI AWVALID [0:0] [1:1], xilinx.com:interface:aximm:1.0 M02_AXI AWVALID [0:0] [2:2], xilinx.com:interface:aximm:1.0 M03_AXI AWVALID [0:0] [3:3]" *)
output wire [3 : 0] m_axi_awvalid;
(* X_INTERFACE_INFO = "xilinx.com:interface:aximm:1.0 M00_AXI AWREADY [0:0] [0:0], xilinx.com:interface:aximm:1.0 M01_AXI AWREADY [0:0] [1:1], xilinx.com:interface:aximm:1.0 M02_AXI AWREADY [0:0] [2:2], xilinx.com:interface:aximm:1.0 M03_AXI AWREADY [0:0] [3:3]" *)
input wire [3 : 0] m_axi_awready;
(* X_INTERFACE_INFO = "xilinx.com:interface:aximm:1.0 M00_AXI WDATA [511:0] [511:0], xilinx.com:interface:aximm:1.0 M01_AXI WDATA [511:0] [1023:512], xilinx.com:interface:aximm:1.0 M02_AXI WDATA [511:0] [1535:1024], xilinx.com:interface:aximm:1.0 M03_AXI WDATA [511:0] [2047:1536]" *)
output wire [2047 : 0] m_axi_wdata;
(* X_INTERFACE_INFO = "xilinx.com:interface:aximm:1.0 M00_AXI WSTRB [63:0] [63:0], xilinx.com:interface:aximm:1.0 M01_AXI WSTRB [63:0] [127:64], xilinx.com:interface:aximm:1.0 M02_AXI WSTRB [63:0] [191:128], xilinx.com:interface:aximm:1.0 M03_AXI WSTRB [63:0] [255:192]" *)
output wire [255 : 0] m_axi_wstrb;
(* X_INTERFACE_INFO = "xilinx.com:interface:aximm:1.0 M00_AXI WLAST [0:0] [0:0], xilinx.com:interface:aximm:1.0 M01_AXI WLAST [0:0] [1:1], xilinx.com:interface:aximm:1.0 M02_AXI WLAST [0:0] [2:2], xilinx.com:interface:aximm:1.0 M03_AXI WLAST [0:0] [3:3]" *)
output wire [3 : 0] m_axi_wlast;
(* X_INTERFACE_INFO = "xilinx.com:interface:aximm:1.0 M00_AXI WVALID [0:0] [0:0], xilinx.com:interface:aximm:1.0 M01_AXI WVALID [0:0] [1:1], xilinx.com:interface:aximm:1.0 M02_AXI WVALID [0:0] [2:2], xilinx.com:interface:aximm:1.0 M03_AXI WVALID [0:0] [3:3]" *)
output wire [3 : 0] m_axi_wvalid;
(* X_INTERFACE_INFO = "xilinx.com:interface:aximm:1.0 M00_AXI WREADY [0:0] [0:0], xilinx.com:interface:aximm:1.0 M01_AXI WREADY [0:0] [1:1], xilinx.com:interface:aximm:1.0 M02_AXI WREADY [0:0] [2:2], xilinx.com:interface:aximm:1.0 M03_AXI WREADY [0:0] [3:3]" *)
input wire [3 : 0] m_axi_wready;
(* X_INTERFACE_INFO = "xilinx.com:interface:aximm:1.0 M00_AXI BID [6:0] [6:0], xilinx.com:interface:aximm:1.0 M01_AXI BID [6:0] [13:7], xilinx.com:interface:aximm:1.0 M02_AXI BID [6:0] [20:14], xilinx.com:interface:aximm:1.0 M03_AXI BID [6:0] [27:21]" *)
input wire [27 : 0] m_axi_bid;
(* X_INTERFACE_INFO = "xilinx.com:interface:aximm:1.0 M00_AXI BRESP [1:0] [1:0], xilinx.com:interface:aximm:1.0 M01_AXI BRESP [1:0] [3:2], xilinx.com:interface:aximm:1.0 M02_AXI BRESP [1:0] [5:4], xilinx.com:interface:aximm:1.0 M03_AXI BRESP [1:0] [7:6]" *)
input wire [7 : 0] m_axi_bresp;
(* X_INTERFACE_INFO = "xilinx.com:interface:aximm:1.0 M00_AXI BVALID [0:0] [0:0], xilinx.com:interface:aximm:1.0 M01_AXI BVALID [0:0] [1:1], xilinx.com:interface:aximm:1.0 M02_AXI BVALID [0:0] [2:2], xilinx.com:interface:aximm:1.0 M03_AXI BVALID [0:0] [3:3]" *)
input wire [3 : 0] m_axi_bvalid;
(* X_INTERFACE_INFO = "xilinx.com:interface:aximm:1.0 M00_AXI BREADY [0:0] [0:0], xilinx.com:interface:aximm:1.0 M01_AXI BREADY [0:0] [1:1], xilinx.com:interface:aximm:1.0 M02_AXI BREADY [0:0] [2:2], xilinx.com:interface:aximm:1.0 M03_AXI BREADY [0:0] [3:3]" *)
output wire [3 : 0] m_axi_bready;
(* X_INTERFACE_INFO = "xilinx.com:interface:aximm:1.0 M00_AXI ARID [6:0] [6:0], xilinx.com:interface:aximm:1.0 M01_AXI ARID [6:0] [13:7], xilinx.com:interface:aximm:1.0 M02_AXI ARID [6:0] [20:14], xilinx.com:interface:aximm:1.0 M03_AXI ARID [6:0] [27:21]" *)
output wire [27 : 0] m_axi_arid;
(* X_INTERFACE_INFO = "xilinx.com:interface:aximm:1.0 M00_AXI ARADDR [63:0] [63:0], xilinx.com:interface:aximm:1.0 M01_AXI ARADDR [63:0] [127:64], xilinx.com:interface:aximm:1.0 M02_AXI ARADDR [63:0] [191:128], xilinx.com:interface:aximm:1.0 M03_AXI ARADDR [63:0] [255:192]" *)
output wire [255 : 0] m_axi_araddr;
(* X_INTERFACE_INFO = "xilinx.com:interface:aximm:1.0 M00_AXI ARLEN [7:0] [7:0], xilinx.com:interface:aximm:1.0 M01_AXI ARLEN [7:0] [15:8], xilinx.com:interface:aximm:1.0 M02_AXI ARLEN [7:0] [23:16], xilinx.com:interface:aximm:1.0 M03_AXI ARLEN [7:0] [31:24]" *)
output wire [31 : 0] m_axi_arlen;
(* X_INTERFACE_INFO = "xilinx.com:interface:aximm:1.0 M00_AXI ARSIZE [2:0] [2:0], xilinx.com:interface:aximm:1.0 M01_AXI ARSIZE [2:0] [5:3], xilinx.com:interface:aximm:1.0 M02_AXI ARSIZE [2:0] [8:6], xilinx.com:interface:aximm:1.0 M03_AXI ARSIZE [2:0] [11:9]" *)
output wire [11 : 0] m_axi_arsize;
(* X_INTERFACE_INFO = "xilinx.com:interface:aximm:1.0 M00_AXI ARBURST [1:0] [1:0], xilinx.com:interface:aximm:1.0 M01_AXI ARBURST [1:0] [3:2], xilinx.com:interface:aximm:1.0 M02_AXI ARBURST [1:0] [5:4], xilinx.com:interface:aximm:1.0 M03_AXI ARBURST [1:0] [7:6]" *)
output wire [7 : 0] m_axi_arburst;
(* X_INTERFACE_INFO = "xilinx.com:interface:aximm:1.0 M00_AXI ARLOCK [0:0] [0:0], xilinx.com:interface:aximm:1.0 M01_AXI ARLOCK [0:0] [1:1], xilinx.com:interface:aximm:1.0 M02_AXI ARLOCK [0:0] [2:2], xilinx.com:interface:aximm:1.0 M03_AXI ARLOCK [0:0] [3:3]" *)
output wire [3 : 0] m_axi_arlock;
(* X_INTERFACE_INFO = "xilinx.com:interface:aximm:1.0 M00_AXI ARCACHE [3:0] [3:0], xilinx.com:interface:aximm:1.0 M01_AXI ARCACHE [3:0] [7:4], xilinx.com:interface:aximm:1.0 M02_AXI ARCACHE [3:0] [11:8], xilinx.com:interface:aximm:1.0 M03_AXI ARCACHE [3:0] [15:12]" *)
output wire [15 : 0] m_axi_arcache;
(* X_INTERFACE_INFO = "xilinx.com:interface:aximm:1.0 M00_AXI ARPROT [2:0] [2:0], xilinx.com:interface:aximm:1.0 M01_AXI ARPROT [2:0] [5:3], xilinx.com:interface:aximm:1.0 M02_AXI ARPROT [2:0] [8:6], xilinx.com:interface:aximm:1.0 M03_AXI ARPROT [2:0] [11:9]" *)
output wire [11 : 0] m_axi_arprot;
(* X_INTERFACE_INFO = "xilinx.com:interface:aximm:1.0 M00_AXI ARREGION [3:0] [3:0], xilinx.com:interface:aximm:1.0 M01_AXI ARREGION [3:0] [7:4], xilinx.com:interface:aximm:1.0 M02_AXI ARREGION [3:0] [11:8], xilinx.com:interface:aximm:1.0 M03_AXI ARREGION [3:0] [15:12]" *)
output wire [15 : 0] m_axi_arregion;
(* X_INTERFACE_INFO = "xilinx.com:interface:aximm:1.0 M00_AXI ARQOS [3:0] [3:0], xilinx.com:interface:aximm:1.0 M01_AXI ARQOS [3:0] [7:4], xilinx.com:interface:aximm:1.0 M02_AXI ARQOS [3:0] [11:8], xilinx.com:interface:aximm:1.0 M03_AXI ARQOS [3:0] [15:12]" *)
output wire [15 : 0] m_axi_arqos;
(* X_INTERFACE_INFO = "xilinx.com:interface:aximm:1.0 M00_AXI ARVALID [0:0] [0:0], xilinx.com:interface:aximm:1.0 M01_AXI ARVALID [0:0] [1:1], xilinx.com:interface:aximm:1.0 M02_AXI ARVALID [0:0] [2:2], xilinx.com:interface:aximm:1.0 M03_AXI ARVALID [0:0] [3:3]" *)
output wire [3 : 0] m_axi_arvalid;
(* X_INTERFACE_INFO = "xilinx.com:interface:aximm:1.0 M00_AXI ARREADY [0:0] [0:0], xilinx.com:interface:aximm:1.0 M01_AXI ARREADY [0:0] [1:1], xilinx.com:interface:aximm:1.0 M02_AXI ARREADY [0:0] [2:2], xilinx.com:interface:aximm:1.0 M03_AXI ARREADY [0:0] [3:3]" *)
input wire [3 : 0] m_axi_arready;
(* X_INTERFACE_INFO = "xilinx.com:interface:aximm:1.0 M00_AXI RID [6:0] [6:0], xilinx.com:interface:aximm:1.0 M01_AXI RID [6:0] [13:7], xilinx.com:interface:aximm:1.0 M02_AXI RID [6:0] [20:14], xilinx.com:interface:aximm:1.0 M03_AXI RID [6:0] [27:21]" *)
input wire [27 : 0] m_axi_rid;
(* X_INTERFACE_INFO = "xilinx.com:interface:aximm:1.0 M00_AXI RDATA [511:0] [511:0], xilinx.com:interface:aximm:1.0 M01_AXI RDATA [511:0] [1023:512], xilinx.com:interface:aximm:1.0 M02_AXI RDATA [511:0] [1535:1024], xilinx.com:interface:aximm:1.0 M03_AXI RDATA [511:0] [2047:1536]" *)
input wire [2047 : 0] m_axi_rdata;
(* X_INTERFACE_INFO = "xilinx.com:interface:aximm:1.0 M00_AXI RRESP [1:0] [1:0], xilinx.com:interface:aximm:1.0 M01_AXI RRESP [1:0] [3:2], xilinx.com:interface:aximm:1.0 M02_AXI RRESP [1:0] [5:4], xilinx.com:interface:aximm:1.0 M03_AXI RRESP [1:0] [7:6]" *)
input wire [7 : 0] m_axi_rresp;
(* X_INTERFACE_INFO = "xilinx.com:interface:aximm:1.0 M00_AXI RLAST [0:0] [0:0], xilinx.com:interface:aximm:1.0 M01_AXI RLAST [0:0] [1:1], xilinx.com:interface:aximm:1.0 M02_AXI RLAST [0:0] [2:2], xilinx.com:interface:aximm:1.0 M03_AXI RLAST [0:0] [3:3]" *)
input wire [3 : 0] m_axi_rlast;
(* X_INTERFACE_INFO = "xilinx.com:interface:aximm:1.0 M00_AXI RVALID [0:0] [0:0], xilinx.com:interface:aximm:1.0 M01_AXI RVALID [0:0] [1:1], xilinx.com:interface:aximm:1.0 M02_AXI RVALID [0:0] [2:2], xilinx.com:interface:aximm:1.0 M03_AXI RVALID [0:0] [3:3]" *)
input wire [3 : 0] m_axi_rvalid;
(* X_INTERFACE_PARAMETER = "XIL_INTERFACENAME M00_AXI, DATA_WIDTH 512, PROTOCOL AXI4, FREQ_HZ 250000000, ID_WIDTH 7, ADDR_WIDTH 64, AWUSER_WIDTH 0, ARUSER_WIDTH 0, WUSER_WIDTH 0, RUSER_WIDTH 0, BUSER_WIDTH 0, READ_WRITE_MODE READ_WRITE, HAS_BURST 1, HAS_LOCK 1, HAS_PROT 1, HAS_CACHE 1, HAS_QOS 1, HAS_REGION 1, HAS_WSTRB 1, HAS_BRESP 1, HAS_RRESP 1, SUPPORTS_NARROW_BURST 1, NUM_READ_OUTSTANDING 16, NUM_WRITE_OUTSTANDING 16, MAX_BURST_LENGTH 256, PHASE 0.000, CLK_DOMAIN cl_axi_interconnect_ACLK, NUM_READ_THREADS 1, NUM_WRITE_THREADS 1, RUSER_BITS_PER_BYTE 0, WUSER_BITS_PER_BYTE 0, XIL_INTERFACENAME M01_AXI, DATA_WIDTH 512, PROTOCOL AXI4, FREQ_HZ 250000000, ID_WIDTH 7, ADDR_WIDTH 64, AWUSER_WIDTH 0, ARUSER_WIDTH 0, WUSER_WIDTH 0, RUSER_WIDTH 0, BUSER_WIDTH 0, READ_WRITE_MODE READ_WRITE, HAS_BURST 1, HAS_LOCK 1, HAS_PROT 1, HAS_CACHE 1, HAS_QOS 1, HAS_REGION 1, HAS_WSTRB 1, HAS_BRESP 1, HAS_RRESP 1, SUPPORTS_NARROW_BURST 1, NUM_READ_OUTSTANDING 16, NUM_WRITE_OUTSTANDING 16, MAX_BURST_LENGTH 256, PHASE 0.000, CLK_DOMAIN cl_axi_interconnect_ACLK, NUM_READ_THREADS 1, NUM_WRITE_THREADS 1, RUSER_BITS_PER_BYTE 0, WUSER_BITS_PER_BYTE 0, XIL_INTERFACENAME M02_AXI, DATA_WIDTH 512, PROTOCOL AXI4, FREQ_HZ 250000000, ID_WIDTH 7, ADDR_WIDTH 64, AWUSER_WIDTH 0, ARUSER_WIDTH 0, WUSER_WIDTH 0, RUSER_WIDTH 0, BUSER_WIDTH 0, READ_WRITE_MODE READ_WRITE, HAS_BURST 1, HAS_LOCK 1, HAS_PROT 1, HAS_CACHE 1, HAS_QOS 1, HAS_REGION 1, HAS_WSTRB 1, HAS_BRESP 1, HAS_RRESP 1, SUPPORTS_NARROW_BURST 1, NUM_READ_OUTSTANDING 16, NUM_WRITE_OUTSTANDING 16, MAX_BURST_LENGTH 256, PHASE 0.000, CLK_DOMAIN cl_axi_interconnect_ACLK, NUM_READ_THREADS 1, NUM_WRITE_THREADS 1, RUSER_BITS_PER_BYTE 0, WUSER_BITS_PER_BYTE 0, XIL_INTERFACENAME M03_AXI, DATA_WIDTH 512, PROTOCOL AXI4, FREQ_HZ 250000000, ID_WIDTH 7, ADDR_WIDTH 64, AWUSER_WIDTH 0, ARUSER_WIDTH 0, WUSER_WIDTH 0, RUSER_WIDTH 0, BUSER_WIDTH 0, READ_WRITE_MODE READ_WRITE, HAS_BURST 1, HAS_LOCK 1, HAS_PROT 1, HAS_CACHE 1, HAS_QOS 1, HAS_REGION 1, HAS_WSTRB 1, HAS_BRESP 1, HAS_RRESP 1, SUPPORTS_NARROW_BURST 1, NUM_READ_OUTSTANDING 16, NUM_WRITE_OUTSTANDING 16, MAX_BURST_LENGTH 256, PHASE 0.000, CLK_DOMAIN cl_axi_interconnect_ACLK, NUM_READ_THREADS 1, NUM_WRITE_THREADS 1, RUSER_BITS_PER_BYTE 0, WUSER_BITS_PER_BYTE 0" *)
(* X_INTERFACE_INFO = "xilinx.com:interface:aximm:1.0 M00_AXI RREADY [0:0] [0:0], xilinx.com:interface:aximm:1.0 M01_AXI RREADY [0:0] [1:1], xilinx.com:interface:aximm:1.0 M02_AXI RREADY [0:0] [2:2], xilinx.com:interface:aximm:1.0 M03_AXI RREADY [0:0] [3:3]" *)
output wire [3 : 0] m_axi_rready;
axi_crossbar_v2_1_16_axi_crossbar #(
.C_FAMILY("virtexuplus"),
.C_NUM_SLAVE_SLOTS(2),
.C_NUM_MASTER_SLOTS(4),
.C_AXI_ID_WIDTH(7),
.C_AXI_ADDR_WIDTH(64),
.C_AXI_DATA_WIDTH(512),
.C_AXI_PROTOCOL(0),
.C_NUM_ADDR_RANGES(1),
.C_M_AXI_BASE_ADDR(256your_sha256_hash0),
.C_M_AXI_ADDR_WIDTH(128'H00000022000000220000002200000022),
.C_S_AXI_BASE_ID(64'H0000004000000000),
.C_S_AXI_THREAD_ID_WIDTH(64'H0000000600000006),
.C_AXI_SUPPORTS_USER_SIGNALS(0),
.C_AXI_AWUSER_WIDTH(1),
.C_AXI_ARUSER_WIDTH(1),
.C_AXI_WUSER_WIDTH(1),
.C_AXI_RUSER_WIDTH(1),
.C_AXI_BUSER_WIDTH(1),
.C_M_AXI_WRITE_CONNECTIVITY(128'H00000003000000030000000300000003),
.C_M_AXI_READ_CONNECTIVITY(128'H00000003000000030000000300000003),
.C_R_REGISTER(0),
.C_S_AXI_SINGLE_THREAD(64'H0000000000000000),
.C_S_AXI_WRITE_ACCEPTANCE(64'H0000002000000020),
.C_S_AXI_READ_ACCEPTANCE(64'H0000002000000020),
.C_M_AXI_WRITE_ISSUING(128'H00000010000000100000001000000010),
.C_M_AXI_READ_ISSUING(128'H00000010000000100000001000000010),
.C_S_AXI_ARB_PRIORITY(64'H0000000000000000),
.C_M_AXI_SECURE(128'H00000000000000000000000000000000),
.C_CONNECTIVITY_MODE(1)
) inst (
.aclk(aclk),
.aresetn(aresetn),
.s_axi_awid(s_axi_awid),
.s_axi_awaddr(s_axi_awaddr),
.s_axi_awlen(s_axi_awlen),
.s_axi_awsize(s_axi_awsize),
.s_axi_awburst(s_axi_awburst),
.s_axi_awlock(s_axi_awlock),
.s_axi_awcache(s_axi_awcache),
.s_axi_awprot(s_axi_awprot),
.s_axi_awqos(s_axi_awqos),
.s_axi_awuser(2'H0),
.s_axi_awvalid(s_axi_awvalid),
.s_axi_awready(s_axi_awready),
.s_axi_wid(14'H0000),
.s_axi_wdata(s_axi_wdata),
.s_axi_wstrb(s_axi_wstrb),
.s_axi_wlast(s_axi_wlast),
.s_axi_wuser(2'H0),
.s_axi_wvalid(s_axi_wvalid),
.s_axi_wready(s_axi_wready),
.s_axi_bid(s_axi_bid),
.s_axi_bresp(s_axi_bresp),
.s_axi_buser(),
.s_axi_bvalid(s_axi_bvalid),
.s_axi_bready(s_axi_bready),
.s_axi_arid(s_axi_arid),
.s_axi_araddr(s_axi_araddr),
.s_axi_arlen(s_axi_arlen),
.s_axi_arsize(s_axi_arsize),
.s_axi_arburst(s_axi_arburst),
.s_axi_arlock(s_axi_arlock),
.s_axi_arcache(s_axi_arcache),
.s_axi_arprot(s_axi_arprot),
.s_axi_arqos(s_axi_arqos),
.s_axi_aruser(2'H0),
.s_axi_arvalid(s_axi_arvalid),
.s_axi_arready(s_axi_arready),
.s_axi_rid(s_axi_rid),
.s_axi_rdata(s_axi_rdata),
.s_axi_rresp(s_axi_rresp),
.s_axi_rlast(s_axi_rlast),
.s_axi_ruser(),
.s_axi_rvalid(s_axi_rvalid),
.s_axi_rready(s_axi_rready),
.m_axi_awid(m_axi_awid),
.m_axi_awaddr(m_axi_awaddr),
.m_axi_awlen(m_axi_awlen),
.m_axi_awsize(m_axi_awsize),
.m_axi_awburst(m_axi_awburst),
.m_axi_awlock(m_axi_awlock),
.m_axi_awcache(m_axi_awcache),
.m_axi_awprot(m_axi_awprot),
.m_axi_awregion(m_axi_awregion),
.m_axi_awqos(m_axi_awqos),
.m_axi_awuser(),
.m_axi_awvalid(m_axi_awvalid),
.m_axi_awready(m_axi_awready),
.m_axi_wid(),
.m_axi_wdata(m_axi_wdata),
.m_axi_wstrb(m_axi_wstrb),
.m_axi_wlast(m_axi_wlast),
.m_axi_wuser(),
.m_axi_wvalid(m_axi_wvalid),
.m_axi_wready(m_axi_wready),
.m_axi_bid(m_axi_bid),
.m_axi_bresp(m_axi_bresp),
.m_axi_buser(4'H0),
.m_axi_bvalid(m_axi_bvalid),
.m_axi_bready(m_axi_bready),
.m_axi_arid(m_axi_arid),
.m_axi_araddr(m_axi_araddr),
.m_axi_arlen(m_axi_arlen),
.m_axi_arsize(m_axi_arsize),
.m_axi_arburst(m_axi_arburst),
.m_axi_arlock(m_axi_arlock),
.m_axi_arcache(m_axi_arcache),
.m_axi_arprot(m_axi_arprot),
.m_axi_arregion(m_axi_arregion),
.m_axi_arqos(m_axi_arqos),
.m_axi_aruser(),
.m_axi_arvalid(m_axi_arvalid),
.m_axi_arready(m_axi_arready),
.m_axi_rid(m_axi_rid),
.m_axi_rdata(m_axi_rdata),
.m_axi_rresp(m_axi_rresp),
.m_axi_rlast(m_axi_rlast),
.m_axi_ruser(4'H0),
.m_axi_rvalid(m_axi_rvalid),
.m_axi_rready(m_axi_rready)
);
endmodule
```
|
```javascript
// -*- mode: js; js-indent-level: 2; -*-
'use strict';
(function (root, factory) {
if (typeof define === 'function' && define.amd) {
define([], factory);
} else if (typeof module === 'object' && module.exports) {
module.exports = factory();
} else {
root.KaitaiStream = factory();
}
}(this, function () {
/**
KaitaiStream is an implementation of Kaitai Struct API for JavaScript.
Based on DataStream - path_to_url
@param {ArrayBuffer} arrayBuffer ArrayBuffer to read from.
@param {?Number} byteOffset Offset from arrayBuffer beginning for the KaitaiStream.
*/
var KaitaiStream = function(arrayBuffer, byteOffset) {
this._byteOffset = byteOffset || 0;
if (arrayBuffer instanceof ArrayBuffer) {
this.buffer = arrayBuffer;
} else if (typeof arrayBuffer == "object") {
this.dataView = arrayBuffer;
if (byteOffset) {
this._byteOffset += byteOffset;
}
} else {
this.buffer = new ArrayBuffer(arrayBuffer || 1);
}
this.pos = 0;
this.alignToByte();
};
KaitaiStream.prototype = {};
/**
Dependency configuration data. Holds urls for (optional) dynamic loading
of code dependencies from a remote server. For use by (static) processing functions.
Caller should the supported keys to the asset urls as needed.
NOTE: `depUrls` is a static property of KaitaiStream (the factory),like the various
processing functions. It is NOT part of the prototype of instances.
@type {Object}
*/
KaitaiStream.depUrls = {
// processZlib uses this and expected a link to a copy of pako.
// specifically the pako_inflate.min.js script at:
// path_to_url
zlib: undefined
};
/**
Virtual byte length of the KaitaiStream backing buffer.
Updated to be max of original buffer size and last written size.
If dynamicSize is false is set to buffer size.
@type {number}
*/
KaitaiStream.prototype._byteLength = 0;
/**
Set/get the backing ArrayBuffer of the KaitaiStream object.
The setter updates the DataView to point to the new buffer.
@type {Object}
*/
Object.defineProperty(KaitaiStream.prototype, 'buffer',
{ get: function() {
this._trimAlloc();
return this._buffer;
},
set: function(v) {
this._buffer = v;
this._dataView = new DataView(this._buffer, this._byteOffset);
this._byteLength = this._buffer.byteLength;
} });
/**
Set/get the byteOffset of the KaitaiStream object.
The setter updates the DataView to point to the new byteOffset.
@type {number}
*/
Object.defineProperty(KaitaiStream.prototype, 'byteOffset',
{ get: function() {
return this._byteOffset;
},
set: function(v) {
this._byteOffset = v;
this._dataView = new DataView(this._buffer, this._byteOffset);
this._byteLength = this._buffer.byteLength;
} });
/**
Set/get the backing DataView of the KaitaiStream object.
The setter updates the buffer and byteOffset to point to the DataView values.
@type {Object}
*/
Object.defineProperty(KaitaiStream.prototype, 'dataView',
{ get: function() {
return this._dataView;
},
set: function(v) {
this._byteOffset = v.byteOffset;
this._buffer = v.buffer;
this._dataView = new DataView(this._buffer, this._byteOffset);
this._byteLength = this._byteOffset + v.byteLength;
} });
/**
Internal function to trim the KaitaiStream buffer when required.
Used for stripping out the extra bytes from the backing buffer when
the virtual byteLength is smaller than the buffer byteLength (happens after
growing the buffer with writes and not filling the extra space completely).
@return {null}
*/
KaitaiStream.prototype._trimAlloc = function() {
if (this._byteLength === this._buffer.byteLength) {
return;
}
var buf = new ArrayBuffer(this._byteLength);
var dst = new Uint8Array(buf);
var src = new Uint8Array(this._buffer, 0, dst.length);
dst.set(src);
this.buffer = buf;
};
// ========================================================================
// Stream positioning
// ========================================================================
/**
Returns true if the KaitaiStream seek pointer is at the end of buffer and
there's no more data to read.
@return {boolean} True if the seek pointer is at the end of the buffer.
*/
KaitaiStream.prototype.isEof = function() {
return this.pos >= this.size && this.bitsLeft === 0;
};
/**
Sets the KaitaiStream read/write position to given position.
Clamps between 0 and KaitaiStream length.
@param {number} pos Position to seek to.
@return {null}
*/
KaitaiStream.prototype.seek = function(pos) {
var npos = Math.max(0, Math.min(this.size, pos));
this.pos = (isNaN(npos) || !isFinite(npos)) ? 0 : npos;
};
/**
Returns the byte length of the KaitaiStream object.
@type {number}
*/
Object.defineProperty(KaitaiStream.prototype, 'size',
{ get: function() {
return this._byteLength - this._byteOffset;
}});
// ========================================================================
// Integer numbers
// ========================================================================
// your_sha256_hash--------
// Signed
// your_sha256_hash--------
/**
Reads an 8-bit signed int from the stream.
@return {number} The read number.
*/
KaitaiStream.prototype.readS1 = function() {
this.ensureBytesLeft(1);
var v = this._dataView.getInt8(this.pos);
this.pos += 1;
return v;
};
// ........................................................................
// Big-endian
// ........................................................................
/**
Reads a 16-bit big-endian signed int from the stream.
@return {number} The read number.
*/
KaitaiStream.prototype.readS2be = function() {
this.ensureBytesLeft(2);
var v = this._dataView.getInt16(this.pos);
this.pos += 2;
return v;
};
/**
Reads a 32-bit big-endian signed int from the stream.
@return {number} The read number.
*/
KaitaiStream.prototype.readS4be = function() {
this.ensureBytesLeft(4);
var v = this._dataView.getInt32(this.pos);
this.pos += 4;
return v;
};
/**
Reads a 64-bit big-endian unsigned int from the stream. Note that
JavaScript does not support 64-bit integers natively, so it will
automatically upgrade internal representation to use IEEE 754
double precision float.
@return {number} The read number.
*/
KaitaiStream.prototype.readS8be = function() {
this.ensureBytesLeft(8);
var v1 = this.readU4be();
var v2 = this.readU4be();
if ((v1 & 0x80000000) !== 0) {
// negative number
return -(0x100000000 * (v1 ^ 0xffffffff) + (v2 ^ 0xffffffff)) - 1;
} else {
return 0x100000000 * v1 + v2;
}
};
// ........................................................................
// Little-endian
// ........................................................................
/**
Reads a 16-bit little-endian signed int from the stream.
@return {number} The read number.
*/
KaitaiStream.prototype.readS2le = function() {
this.ensureBytesLeft(2);
var v = this._dataView.getInt16(this.pos, true);
this.pos += 2;
return v;
};
/**
Reads a 32-bit little-endian signed int from the stream.
@return {number} The read number.
*/
KaitaiStream.prototype.readS4le = function() {
this.ensureBytesLeft(4);
var v = this._dataView.getInt32(this.pos, true);
this.pos += 4;
return v;
};
/**
Reads a 64-bit little-endian unsigned int from the stream. Note that
JavaScript does not support 64-bit integers natively, so it will
automatically upgrade internal representation to use IEEE 754
double precision float.
@return {number} The read number.
*/
KaitaiStream.prototype.readS8le = function() {
this.ensureBytesLeft(8);
var v1 = this.readU4le();
var v2 = this.readU4le();
if ((v2 & 0x80000000) !== 0) {
// negative number
return -(0x100000000 * (v2 ^ 0xffffffff) + (v1 ^ 0xffffffff)) - 1;
} else {
return 0x100000000 * v2 + v1;
}
};
// your_sha256_hash--------
// Unsigned
// your_sha256_hash--------
/**
Reads an 8-bit unsigned int from the stream.
@return {number} The read number.
*/
KaitaiStream.prototype.readU1 = function() {
this.ensureBytesLeft(1);
var v = this._dataView.getUint8(this.pos);
this.pos += 1;
return v;
};
// ........................................................................
// Big-endian
// ........................................................................
/**
Reads a 16-bit big-endian unsigned int from the stream.
@return {number} The read number.
*/
KaitaiStream.prototype.readU2be = function() {
this.ensureBytesLeft(2);
var v = this._dataView.getUint16(this.pos);
this.pos += 2;
return v;
};
/**
Reads a 32-bit big-endian unsigned int from the stream.
@return {number} The read number.
*/
KaitaiStream.prototype.readU4be = function() {
this.ensureBytesLeft(4);
var v = this._dataView.getUint32(this.pos);
this.pos += 4;
return v;
};
/**
Reads a 64-bit big-endian unsigned int from the stream. Note that
JavaScript does not support 64-bit integers natively, so it will
automatically upgrade internal representation to use IEEE 754
double precision float.
@return {number} The read number.
*/
KaitaiStream.prototype.readU8be = function() {
this.ensureBytesLeft(8);
var v1 = this.readU4be();
var v2 = this.readU4be();
return 0x100000000 * v1 + v2;
};
// ........................................................................
// Little-endian
// ........................................................................
/**
Reads a 16-bit little-endian unsigned int from the stream.
@return {number} The read number.
*/
KaitaiStream.prototype.readU2le = function() {
this.ensureBytesLeft(2);
var v = this._dataView.getUint16(this.pos, true);
this.pos += 2;
return v;
};
/**
Reads a 32-bit little-endian unsigned int from the stream.
@return {number} The read number.
*/
KaitaiStream.prototype.readU4le = function() {
this.ensureBytesLeft(4);
var v = this._dataView.getUint32(this.pos, true);
this.pos += 4;
return v;
};
/**
Reads a 64-bit little-endian unsigned int from the stream. Note that
JavaScript does not support 64-bit integers natively, so it will
automatically upgrade internal representation to use IEEE 754
double precision float.
@return {number} The read number.
*/
KaitaiStream.prototype.readU8le = function() {
this.ensureBytesLeft(8);
var v1 = this.readU4le();
var v2 = this.readU4le();
return 0x100000000 * v2 + v1;
};
// ========================================================================
// Floating point numbers
// ========================================================================
// your_sha256_hash--------
// Big endian
// your_sha256_hash--------
KaitaiStream.prototype.readF4be = function() {
this.ensureBytesLeft(4);
var v = this._dataView.getFloat32(this.pos);
this.pos += 4;
return v;
};
KaitaiStream.prototype.readF8be = function() {
this.ensureBytesLeft(8);
var v = this._dataView.getFloat64(this.pos);
this.pos += 8;
return v;
};
// your_sha256_hash--------
// Little endian
// your_sha256_hash--------
KaitaiStream.prototype.readF4le = function() {
this.ensureBytesLeft(4);
var v = this._dataView.getFloat32(this.pos, true);
this.pos += 4;
return v;
};
KaitaiStream.prototype.readF8le = function() {
this.ensureBytesLeft(8);
var v = this._dataView.getFloat64(this.pos, true);
this.pos += 8;
return v;
};
// your_sha256_hash--------
// Unaligned bit values
// your_sha256_hash--------
KaitaiStream.prototype.alignToByte = function() {
this.bits = 0;
this.bitsLeft = 0;
};
KaitaiStream.prototype.readBitsIntBe = function(n) {
// JS only supports bit operations on 32 bits
if (n > 32) {
throw new Error(`readBitsIntBe: the maximum supported bit length is 32 (tried to read ${n} bits)`);
}
var bitsNeeded = n - this.bitsLeft;
if (bitsNeeded > 0) {
// 1 bit => 1 byte
// 8 bits => 1 byte
// 9 bits => 2 bytes
var bytesNeeded = Math.ceil(bitsNeeded / 8);
var buf = this.readBytes(bytesNeeded);
for (var i = 0; i < bytesNeeded; i++) {
this.bits <<= 8;
this.bits |= buf[i];
this.bitsLeft += 8;
}
}
// raw mask with required number of 1s, starting from lowest bit
var mask = n === 32 ? 0xffffffff : (1 << n) - 1;
// shift this.bits to align the highest bits with the mask & derive reading result
var shiftBits = this.bitsLeft - n;
var res = (this.bits >>> shiftBits) & mask;
// clear top bits that we've just read => AND with 1s
this.bitsLeft -= n;
mask = (1 << this.bitsLeft) - 1;
this.bits &= mask;
return res;
};
/**
* Unused since Kaitai Struct Compiler v0.9+ - compatibility with older versions
*
* @deprecated use {@link readBitsIntBe} instead
*/
KaitaiStream.prototype.readBitsInt = KaitaiStream.prototype.readBitsIntBe;
KaitaiStream.prototype.readBitsIntLe = function(n) {
// JS only supports bit operations on 32 bits
if (n > 32) {
throw new Error(`readBitsIntLe: the maximum supported bit length is 32 (tried to read ${n} bits)`);
}
var bitsNeeded = n - this.bitsLeft;
if (bitsNeeded > 0) {
// 1 bit => 1 byte
// 8 bits => 1 byte
// 9 bits => 2 bytes
var bytesNeeded = Math.ceil(bitsNeeded / 8);
var buf = this.readBytes(bytesNeeded);
for (var i = 0; i < bytesNeeded; i++) {
this.bits |= (buf[i] << this.bitsLeft);
this.bitsLeft += 8;
}
}
// raw mask with required number of 1s, starting from lowest bit
var mask = n === 32 ? 0xffffffff : (1 << n) - 1;
// derive reading result
var res = this.bits & mask;
// remove bottom bits that we've just read by shifting
this.bits >>= n;
this.bitsLeft -= n;
return res;
};
/**
Native endianness. Either KaitaiStream.BIG_ENDIAN or KaitaiStream.LITTLE_ENDIAN
depending on the platform endianness.
@type {boolean}
*/
KaitaiStream.endianness = new Int8Array(new Int16Array([1]).buffer)[0] > 0;
// ========================================================================
// Byte arrays
// ========================================================================
KaitaiStream.prototype.readBytes = function(len) {
return this.mapUint8Array(len);
};
KaitaiStream.prototype.readBytesFull = function() {
return this.mapUint8Array(this.size - this.pos);
};
KaitaiStream.prototype.readBytesTerm = function(terminator, include, consume, eosError) {
var blen = this.size - this.pos;
var u8 = new Uint8Array(this._buffer, this._byteOffset + this.pos);
for (var i = 0; i < blen && u8[i] !== terminator; i++); // find first zero byte
if (i === blen) {
// we've read all the buffer and haven't found the terminator
if (eosError) {
throw "End of stream reached, but no terminator " + terminator + " found";
} else {
return this.mapUint8Array(i);
}
} else {
var arr;
if (include) {
arr = this.mapUint8Array(i + 1);
} else {
arr = this.mapUint8Array(i);
}
if (consume) {
this.pos += 1;
}
return arr;
}
};
// Unused since Kaitai Struct Compiler v0.9+ - compatibility with older versions
KaitaiStream.prototype.ensureFixedContents = function(expected) {
var actual = this.readBytes(expected.length);
if (actual.length !== expected.length) {
throw new UnexpectedDataError(expected, actual);
}
var actLen = actual.length;
for (var i = 0; i < actLen; i++) {
if (actual[i] !== expected[i]) {
throw new UnexpectedDataError(expected, actual);
}
}
return actual;
};
KaitaiStream.bytesStripRight = function(data, padByte) {
var newLen = data.length;
while (data[newLen - 1] === padByte)
newLen--;
return data.slice(0, newLen);
};
KaitaiStream.bytesTerminate = function(data, term, include) {
var newLen = 0;
var maxLen = data.length;
while (newLen < maxLen && data[newLen] !== term)
newLen++;
if (include && newLen < maxLen)
newLen++;
return data.slice(0, newLen);
};
KaitaiStream.bytesToStr = function(arr, encoding) {
if (encoding == null || encoding.toLowerCase() === "ascii") {
return KaitaiStream.createStringFromArray(arr);
} else {
if (typeof TextDecoder === 'function') {
// we're in the browser that supports TextDecoder
return (new TextDecoder(encoding)).decode(arr);
} else {
// probably we're in node.js
// check if it's supported natively by node.js Buffer
// see path_to_url#L187 for details
switch (encoding.toLowerCase()) {
case 'utf8':
case 'utf-8':
case 'ucs2':
case 'ucs-2':
case 'utf16le':
case 'utf-16le':
return new Buffer(arr).toString(encoding);
break;
default:
throw "Unsupported"; // NOTE (noclip/naclomi): Removed iconv-lite decoding support since we don't need it here
}
}
}
};
// ========================================================================
// Byte array processing
// ========================================================================
KaitaiStream.processXorOne = function(data, key) {
var r = new Uint8Array(data.length);
var dl = data.length;
for (var i = 0; i < dl; i++)
r[i] = data[i] ^ key;
return r;
};
KaitaiStream.processXorMany = function(data, key) {
var dl = data.length;
var r = new Uint8Array(dl);
var kl = key.length;
var ki = 0;
for (var i = 0; i < dl; i++) {
r[i] = data[i] ^ key[ki];
ki++;
if (ki >= kl)
ki = 0;
}
return r;
};
KaitaiStream.processRotateLeft = function(data, amount, groupSize) {
if (groupSize !== 1)
throw("unable to rotate group of " + groupSize + " bytes yet");
var mask = groupSize * 8 - 1;
var antiAmount = -amount & mask;
var r = new Uint8Array(data.length);
for (var i = 0; i < data.length; i++)
r[i] = (data[i] << amount) & 0xff | (data[i] >> antiAmount);
return r;
};
KaitaiStream.processZlib = function(buf) {
throw "Unsupported"; // NOTE (noclip/naclomi): Removed zlib support since we don't need it here
};
// ========================================================================
// Misc runtime operations
// ========================================================================
KaitaiStream.mod = function(a, b) {
if (b <= 0)
throw "mod divisor <= 0";
var r = a % b;
if (r < 0)
r += b;
return r;
};
KaitaiStream.arrayMin = function(arr) {
var min = arr[0];
var x;
for (var i = 1, n = arr.length; i < n; ++i) {
x = arr[i];
if (x < min) min = x;
}
return min;
};
KaitaiStream.arrayMax = function(arr) {
var max = arr[0];
var x;
for (var i = 1, n = arr.length; i < n; ++i) {
x = arr[i];
if (x > max) max = x;
}
return max;
};
KaitaiStream.byteArrayCompare = function(a, b) {
if (a === b)
return 0;
var al = a.length;
var bl = b.length;
var minLen = al < bl ? al : bl;
for (var i = 0; i < minLen; i++) {
var cmp = a[i] - b[i];
if (cmp !== 0)
return cmp;
}
// Reached the end of at least one of the arrays
if (al === bl) {
return 0;
} else {
return al - bl;
}
};
// ========================================================================
// Internal implementation details
// ========================================================================
var EOFError = KaitaiStream.EOFError = function(bytesReq, bytesAvail) {
this.name = "EOFError";
this.message = "requested " + bytesReq + " bytes, but only " + bytesAvail + " bytes available";
this.bytesReq = bytesReq;
this.bytesAvail = bytesAvail;
this.stack = (new Error()).stack;
};
EOFError.prototype = Object.create(Error.prototype);
EOFError.prototype.constructor = EOFError;
// Unused since Kaitai Struct Compiler v0.9+ - compatibility with older versions
var UnexpectedDataError = KaitaiStream.UnexpectedDataError = function(expected, actual) {
this.name = "UnexpectedDataError";
this.message = "expected [" + expected + "], but got [" + actual + "]";
this.expected = expected;
this.actual = actual;
this.stack = (new Error()).stack;
};
UnexpectedDataError.prototype = Object.create(Error.prototype);
UnexpectedDataError.prototype.constructor = UnexpectedDataError;
var UndecidedEndiannessError = KaitaiStream.UndecidedEndiannessError = function() {
this.name = "UndecidedEndiannessError";
this.stack = (new Error()).stack;
};
UndecidedEndiannessError.prototype = Object.create(Error.prototype);
UndecidedEndiannessError.prototype.constructor = UndecidedEndiannessError;
var ValidationNotEqualError = KaitaiStream.ValidationNotEqualError = function(expected, actual) {
this.name = "ValidationNotEqualError";
this.message = "not equal, expected [" + expected + "], but got [" + actual + "]";
this.expected = expected;
this.actual = actual;
this.stack = (new Error()).stack;
};
ValidationNotEqualError.prototype = Object.create(Error.prototype);
ValidationNotEqualError.prototype.constructor = ValidationNotEqualError;
var ValidationLessThanError = KaitaiStream.ValidationLessThanError = function(min, actual) {
this.name = "ValidationLessThanError";
this.message = "not in range, min [" + min + "], but got [" + actual + "]";
this.min = min;
this.actual = actual;
this.stack = (new Error()).stack;
};
ValidationLessThanError.prototype = Object.create(Error.prototype);
ValidationLessThanError.prototype.constructor = ValidationLessThanError;
var ValidationGreaterThanError = KaitaiStream.ValidationGreaterThanError = function(max, actual) {
this.name = "ValidationGreaterThanError";
this.message = "not in range, max [" + max + "], but got [" + actual + "]";
this.max = max;
this.actual = actual;
this.stack = (new Error()).stack;
};
ValidationGreaterThanError.prototype = Object.create(Error.prototype);
ValidationGreaterThanError.prototype.constructor = ValidationGreaterThanError;
var ValidationNotAnyOfError = KaitaiStream.ValidationNotAnyOfError = function(actual, io, srcPath) {
this.name = "ValidationNotAnyOfError";
this.message = "not any of the list, got [" + actual + "]";
this.actual = actual;
this.stack = (new Error()).stack;
};
ValidationNotAnyOfError.prototype = Object.create(Error.prototype);
ValidationNotAnyOfError.prototype.constructor = ValidationNotAnyOfError;
var ValidationExprError = KaitaiStream.ValidationExprError = function(actual, io, srcPath) {
this.name = "ValidationExprError";
this.message = "not matching the expression, got [" + actual + "]";
this.actual = actual;
this.stack = (new Error()).stack;
};
ValidationExprError.prototype = Object.create(Error.prototype);
ValidationExprError.prototype.constructor = ValidationExprError;
/**
Ensures that we have an least `length` bytes left in the stream.
If that's not true, throws an EOFError.
@param {number} length Number of bytes to require
*/
KaitaiStream.prototype.ensureBytesLeft = function(length) {
if (this.pos + length > this.size) {
throw new EOFError(length, this.size - this.pos);
}
};
/**
Maps a Uint8Array into the KaitaiStream buffer.
Nice for quickly reading in data.
@param {number} length Number of elements to map.
@return {Object} Uint8Array to the KaitaiStream backing buffer.
*/
KaitaiStream.prototype.mapUint8Array = function(length) {
length |= 0;
this.ensureBytesLeft(length);
var arr = new Uint8Array(this._buffer, this.byteOffset + this.pos, length);
this.pos += length;
return arr;
};
/**
Creates an array from an array of character codes.
Uses String.fromCharCode in chunks for memory efficiency and then concatenates
the resulting string chunks.
@param {array|Uint8Array} array Array of character codes.
@return {string} String created from the character codes.
**/
KaitaiStream.createStringFromArray = function(array) {
var chunk_size = 0x8000;
var chunks = [];
var useSubarray = typeof array.subarray === 'function';
for (var i=0; i < array.length; i += chunk_size) {
chunks.push(String.fromCharCode.apply(null, useSubarray ? array.subarray(i, i + chunk_size) : array.slice(i, i + chunk_size)));
}
return chunks.join("");
};
return KaitaiStream;
}));
```
|
```css
.text {
border: 1px solid blue;
}
```
|
The Lumix DMC-L1 is Panasonic's first DSLR camera, and was announced in February 2006. This camera adheres to the Four Thirds System lens mount standard, making it the first non-Olympus Four Thirds camera, and thus confirming that the Four Thirds System is a semi-open standard such that compatible camera bodies can be built by different companies.
The Lumix DMC-L1, together with the Olympus E-330 (with which it shares some technology), were the first ILCs that featured live view, a capability later copied by other manufacturers. Live view makes it possible to preview the image on the LCD screen while composing the picture, and is particularly useful for high- and low-angled shots when it is uncomfortable or not feasible for the user to bring the eye to the viewfinder.
The camera was introduced with a new Leica D Vario-Elmarit 14–50mm f/2.8–3.5 lens (a 28-100mm 35mm equivalent), the first Leica lens for the Four Thirds System, and the first Four Thirds lens with image stabilization. The image stabilization can allow 2–3 stops lower shutter speed, and the quality of the lens is such that its value may exceed that of the camera body, and helps explain the relatively high combined introductory price of US $2000. Panasonic introduced two additional lenses under the Leica brand name for the camera and Four Thirds System, being a 25mm f1.4 Summilux (50mm 35mm equivalent) without image stabilization) and an extended version of the kit lens out to 150mm (28-300mm 35mm equivalent) with image stabilization.
The Lumix DMC-L1 has an overall shape and viewfinder location reminiscent of a rangefinder camera rather than an SLR, and features a shutter speed dial on the body and an aperture ring on each lens, also similar to pre-digital 35mm film rangefinders and SLRs. Another design feature is the built-in flash which has a two-position operation: the first push of the open button puts the flash pointing 45 degrees up to provide bounce flash, a feature that was mentioned in The New York Times in an article on brilliant ideas, and a second push of the button has the flash point directly away from the camera for full flash effect.
The Leica Digilux 3, was presented in September 2006 and is based upon the same design as the Lumix DMC-L1.
The Lumix DMC-L1 was succeeded by the Lumix DMC-L10, announced in August, 2007.
Panasonic no longer supports the Lumix DMC-L1 and has abandoned the standard Four-Thirds system in favor of a Micro Four-Thirds system that, with an available adapter, can still accommodate the three Four-Thirds Leica lenses developed for the Lumix DMC-L1 and the Leica Digilux 3. A fairly wide selection of Olympus standard Four-Thirds Zuiko lenses remains available, however.
References
Another review from a high quality photography review site.
A review of the DMC-L1 by Camera Labs.
External links
A YouTube hosted video tour of the DMC-L1 by Camera Labs (also posted on their site).
L1
Live-preview digital cameras
Four Thirds System
|
```c
/*
*
*/
/*
*/
#define DT_DRV_COMPAT nxp_imx_flexspi_aps6408l
#include <zephyr/kernel.h>
#include <zephyr/logging/log.h>
#include <zephyr/sys/util.h>
#include "memc_mcux_flexspi.h"
/*
* NOTE: If CONFIG_FLASH_MCUX_FLEXSPI_XIP is selected, Any external functions
* called while interacting with the flexspi MUST be relocated to SRAM or ITCM
* at runtime, so that the chip does not access the flexspi to read program
* instructions while it is being written to
*/
#if defined(CONFIG_FLASH_MCUX_FLEXSPI_XIP) && (CONFIG_MEMC_LOG_LEVEL > 0)
#warning "Enabling memc driver logging and XIP mode simultaneously can cause \
read-while-write hazards. This configuration is not recommended."
#endif
LOG_MODULE_REGISTER(memc_flexspi_aps6408l, CONFIG_MEMC_LOG_LEVEL);
#define APM_VENDOR_ID 0xD
/* APS6408L Configuration registers */
#define APS_6408L_MR_0 0x0
#define APS_6408L_MR_1 0x1
#define APS_6408L_MR_2 0x2
#define APS_6408L_MR_3 0x3
#define APS_6408L_MR_4 0x4
#define APS_6408L_MR_6 0x6
#define APS_6408L_MR_8 0x8
/* Read Latency code (MR0[4:2]) */
#define APS_6408L_RLC_MASK 0x1C
#define APS_6408L_RLC_200 0x10 /* 200MHz input clock read latency */
/* Read Latency type (MR0[5]) */
#define APS_6408L_RLT_MASK 0x30
#define APS_6408L_RLT_VARIABLE 0x0 /* Variable latency */
/* Burst type/burst length mask (MR8[0:2]) */
#define APS_6408L_BURST_TYPE_MASK 0x7
#define APS_6408L_BURST_1K 0x7 /* 1K Hybrid wrap */
/* Row boundary cross enable mask (MR8[3]) */
#define APS_6408L_ROW_CROSS_MASK 0x8
#define APS_6408L_ROW_CROSS_EN 0x8 /* Enable linear burst reads to cross rows */
/* Write latency (MR4[7:5]) */
#define APS_6408L_WLC_MASK 0xE0
#define APS_6408L_WLC_200 0x20 /* 200MHz input clock write latency */
enum {
READ_DATA = 0,
WRITE_DATA,
READ_REG,
WRITE_REG,
RESET,
};
struct memc_flexspi_aps6408l_config {
flexspi_port_t port;
flexspi_device_config_t config;
};
/* Device variables used in critical sections should be in this structure */
struct memc_flexspi_aps6408l_data {
const struct device *controller;
};
static const uint32_t memc_flexspi_aps6408l_lut[][4] = {
/* Read Data (Sync read, linear burst) */
[READ_DATA] = {
FLEXSPI_LUT_SEQ(kFLEXSPI_Command_SDR, kFLEXSPI_8PAD, 0x20,
kFLEXSPI_Command_RADDR_DDR, kFLEXSPI_8PAD, 0x20),
FLEXSPI_LUT_SEQ(kFLEXSPI_Command_DUMMY_RWDS_DDR, kFLEXSPI_8PAD,
0x07, kFLEXSPI_Command_READ_DDR, kFLEXSPI_8PAD, 0x04),
},
/* Write Data (Sync write, linear burst) */
[WRITE_DATA] = {
FLEXSPI_LUT_SEQ(kFLEXSPI_Command_SDR, kFLEXSPI_8PAD, 0xA0,
kFLEXSPI_Command_RADDR_DDR, kFLEXSPI_8PAD, 0x20),
FLEXSPI_LUT_SEQ(kFLEXSPI_Command_DUMMY_RWDS_DDR, kFLEXSPI_8PAD,
0x07, kFLEXSPI_Command_WRITE_DDR, kFLEXSPI_8PAD, 0x04),
},
/* Read Register (Mode register read) */
[READ_REG] = {
FLEXSPI_LUT_SEQ(kFLEXSPI_Command_SDR, kFLEXSPI_8PAD, 0x40,
kFLEXSPI_Command_RADDR_DDR, kFLEXSPI_8PAD, 0x20),
FLEXSPI_LUT_SEQ(kFLEXSPI_Command_DUMMY_RWDS_DDR, kFLEXSPI_8PAD,
0x07, kFLEXSPI_Command_READ_DDR, kFLEXSPI_8PAD, 0x04),
},
/* Write Register (Mode register write) */
[WRITE_REG] = {
FLEXSPI_LUT_SEQ(kFLEXSPI_Command_SDR, kFLEXSPI_8PAD, 0xC0,
kFLEXSPI_Command_RADDR_DDR, kFLEXSPI_8PAD, 0x20),
FLEXSPI_LUT_SEQ(kFLEXSPI_Command_WRITE_DDR, kFLEXSPI_8PAD, 0x08,
kFLEXSPI_Command_STOP, kFLEXSPI_1PAD, 0x00),
},
/* Reset (Global reset) */
[RESET] = {
FLEXSPI_LUT_SEQ(kFLEXSPI_Command_SDR, kFLEXSPI_8PAD, 0xFF,
kFLEXSPI_Command_DUMMY_SDR, kFLEXSPI_8PAD, 0x03),
}
};
static int memc_flexspi_aps6408l_get_vendor_id(const struct device *dev,
uint8_t *vendor_id)
{
const struct memc_flexspi_aps6408l_config *config = dev->config;
struct memc_flexspi_aps6408l_data *data = dev->data;
uint32_t buffer = 0;
int ret;
flexspi_transfer_t transfer = {
.deviceAddress = APS_6408L_MR_1,
.port = config->port,
.cmdType = kFLEXSPI_Read,
.SeqNumber = 1,
.seqIndex = READ_REG,
.data = &buffer,
.dataSize = 1,
};
ret = memc_flexspi_transfer(data->controller, &transfer);
*vendor_id = buffer & 0x1f;
return ret;
}
static int memc_flexspi_aps6408l_update_reg(const struct device *dev,
uint8_t reg, uint8_t mask, uint8_t set_val)
{
const struct memc_flexspi_aps6408l_config *config = dev->config;
struct memc_flexspi_aps6408l_data *data = dev->data;
uint32_t buffer = 0;
int ret;
flexspi_transfer_t transfer = {
.deviceAddress = reg,
.port = config->port,
.cmdType = kFLEXSPI_Read,
.SeqNumber = 1,
.seqIndex = READ_REG,
.data = &buffer,
.dataSize = 1,
};
ret = memc_flexspi_transfer(data->controller, &transfer);
if (ret < 0) {
return ret;
}
buffer &= (~mask & 0xFF);
buffer |= set_val;
LOG_DBG("Setting reg 0x%0x to 0x%0x", reg, buffer);
transfer.cmdType = kFLEXSPI_Write,
transfer.seqIndex = WRITE_REG;
ret = memc_flexspi_transfer(data->controller, &transfer);
return ret;
}
static int memc_flexspi_aps6408l_reset(const struct device *dev)
{
const struct memc_flexspi_aps6408l_config *config = dev->config;
struct memc_flexspi_aps6408l_data *data = dev->data;
int ret;
flexspi_transfer_t transfer = {
.deviceAddress = 0x0,
.port = config->port,
.cmdType = kFLEXSPI_Command,
.SeqNumber = 1,
.seqIndex = RESET,
.data = NULL,
.dataSize = 0,
};
LOG_DBG("Resetting ram");
ret = memc_flexspi_transfer(data->controller, &transfer);
if (ret < 0) {
return ret;
}
/* We need to delay 5 ms to allow APS6408L pSRAM to reinitialize */
k_msleep(5);
return ret;
}
static int memc_flexspi_aps6408l_init(const struct device *dev)
{
const struct memc_flexspi_aps6408l_config *config = dev->config;
struct memc_flexspi_aps6408l_data *data = dev->data;
uint8_t vendor_id;
if (!device_is_ready(data->controller)) {
LOG_ERR("Controller device not ready");
return -ENODEV;
}
if (memc_flexspi_set_device_config(data->controller, &config->config,
(const uint32_t *) memc_flexspi_aps6408l_lut,
sizeof(memc_flexspi_aps6408l_lut) / MEMC_FLEXSPI_CMD_SIZE,
config->port)) {
LOG_ERR("Could not set device configuration");
return -EINVAL;
}
memc_flexspi_reset(data->controller);
if (memc_flexspi_aps6408l_reset(dev)) {
LOG_ERR("Could not reset pSRAM");
return -EIO;
}
if (memc_flexspi_aps6408l_get_vendor_id(dev, &vendor_id)) {
LOG_ERR("Could not read vendor id");
return -EIO;
}
LOG_DBG("Vendor id: 0x%0x", vendor_id);
if (vendor_id != APM_VENDOR_ID) {
LOG_WRN("Vendor ID does not match expected value of 0x%0x",
APM_VENDOR_ID);
}
/* Enable RBX, burst length set to 1K byte wrap.
* this will also enable boundary crossing for burst reads
*/
if (memc_flexspi_aps6408l_update_reg(dev, APS_6408L_MR_8,
(APS_6408L_ROW_CROSS_MASK | APS_6408L_BURST_TYPE_MASK),
(APS_6408L_ROW_CROSS_EN | APS_6408L_BURST_1K))) {
LOG_ERR("Could not enable RBX 1K burst length");
return -EIO;
}
/* Set read latency code and type for 200MHz flash clock operation */
if (memc_flexspi_aps6408l_update_reg(dev, APS_6408L_MR_0,
(APS_6408L_RLC_MASK | APS_6408L_RLT_MASK),
(APS_6408L_RLC_200 | APS_6408L_RLT_VARIABLE))) {
LOG_ERR("Could not set 200MHz read latency code");
return -EIO;
}
/* Set write latency code and type for 200MHz flash clock operation */
if (memc_flexspi_aps6408l_update_reg(dev, APS_6408L_MR_4,
APS_6408L_WLC_MASK, APS_6408L_WLC_200)) {
LOG_ERR("Could not set 200MHz write latency code");
return -EIO;
}
return 0;
}
#define CONCAT3(x, y, z) x ## y ## z
#define CS_INTERVAL_UNIT(unit) \
CONCAT3(kFLEXSPI_CsIntervalUnit, unit, SckCycle)
#define AHB_WRITE_WAIT_UNIT(unit) \
CONCAT3(kFLEXSPI_AhbWriteWaitUnit, unit, AhbCycle)
#define MEMC_FLEXSPI_DEVICE_CONFIG(n) \
{ \
.flexspiRootClk = DT_INST_PROP(n, spi_max_frequency), \
.isSck2Enabled = false, \
.flashSize = DT_INST_PROP(n, size) / 8 / KB(1), \
.CSIntervalUnit = \
CS_INTERVAL_UNIT( \
DT_INST_PROP(n, cs_interval_unit)), \
.CSInterval = DT_INST_PROP(n, cs_interval), \
.CSHoldTime = DT_INST_PROP(n, cs_hold_time), \
.CSSetupTime = DT_INST_PROP(n, cs_setup_time), \
.dataValidTime = DT_INST_PROP(n, data_valid_time), \
.columnspace = DT_INST_PROP(n, column_space), \
.enableWordAddress = DT_INST_PROP(n, word_addressable), \
.AWRSeqIndex = WRITE_DATA, \
.AWRSeqNumber = 1, \
.ARDSeqIndex = READ_DATA, \
.ARDSeqNumber = 1, \
.AHBWriteWaitUnit = \
AHB_WRITE_WAIT_UNIT( \
DT_INST_PROP(n, ahb_write_wait_unit)), \
.AHBWriteWaitInterval = \
DT_INST_PROP(n, ahb_write_wait_interval), \
.enableWriteMask = true, \
} \
#define MEMC_FLEXSPI_APS6408L(n) \
static const struct memc_flexspi_aps6408l_config \
memc_flexspi_aps6408l_config_##n = { \
.port = DT_INST_REG_ADDR(n), \
.config = MEMC_FLEXSPI_DEVICE_CONFIG(n), \
}; \
\
static struct memc_flexspi_aps6408l_data \
memc_flexspi_aps6408l_data_##n = { \
.controller = DEVICE_DT_GET(DT_INST_BUS(n)), \
}; \
\
DEVICE_DT_INST_DEFINE(n, \
memc_flexspi_aps6408l_init, \
NULL, \
&memc_flexspi_aps6408l_data_##n, \
&memc_flexspi_aps6408l_config_##n, \
POST_KERNEL, \
CONFIG_MEMC_INIT_PRIORITY, \
NULL);
DT_INST_FOREACH_STATUS_OKAY(MEMC_FLEXSPI_APS6408L)
```
|
The was a robbery-murder by Wei Wei () and two other Chinese international students in the Higashi-ku ward of Fukuoka, Japan, on June 20, 2003.
In 2004, Judge Hiroshi Suyama indicted Wei Wei for murdering Shinjiro Matsumoto and his family.
The Japanese Minister of Justice Masako Mori sentenced Wei Wei to death for murder, and Wei was executed in 2019.
Outline of the incident
On June 20, 2003, the bodies of , his wife Chika (千加, age 40), and their two children (ages 8 and 11) were found in Hakata Bay handcuffed and weighed down with dumbbells. Shinjiro Matsumoto had been strangled with a tie, and Chika had been drowned in a bathtub. Their children had been otherwise strangled or smothered. Once the victims had been murdered, their bodies were transported by vehicle to Hakata Bay where they were discarded.
Three suspects were identified from witness testimony near the discovery site and surveillance camera footage from the store where the handcuffs and dumbbells used for the crime had been sold.
The first suspect, Wei Wei (魏巍), was a 24-year-old former language student in Japan. He was detained by police in another case. He pleaded guilty to four counts of murder but contended that he was not a central figure in the case and testified that the murder was the result of a plan to rob the family while they were at home.
The remaining two suspects, Yang Ning (, written in Japanese as 楊寧) and Wang Liang (), were also students. They had fled to Mainland China after the murders and were arrested there.
The three assailants said, "I committed a crime for the purpose of robbery". Chika and Shinjiro ran a high-end restaurant, and Wang arrived by accident on the way to a part-time job. On seeing a Mercedes-Benz parked outside the restaurant, Wang thought that, "There must be a bank deposit of around tens of millions of yen in Matsumoto's house." However, there are doubts that robbery was the main motive in the case. On February 5, 2004, the Japanese daily newspaper Nishinippon Shimbun reported, "For the purpose of robbery, the amount of cash stolen was as small as about 40,000 yen, and there were many suspicious points, such as the fact that valuables such as cameras were left behind. Besides the three, there is a suspicion that an accomplice may have been present."
Progress of criminal trials
Hearing by the Chinese side (Yang and Wang)
After fleeing Japan, Wang immediately started working, but drew the attention of police by "spending extravagantly" with money he had stolen. He was brought in for questioning and confessed to the murders, giving a detailed account of the crime, providing vital information which would lead to the arrest of Yang. Both men were formally taken into custody by Chinese authorities in August 2003, and indicted for murder in July 2004. On January 24, 2005, the Liaoyang Intermediate People's Court sentenced Yang to death and Wang to life imprisonment. Wang was spared execution due to his confession and cooperation with investigators. During the sentencing hearing, he kneeled down and apologized. Family members of the victims and many in the Japanese media condemned the life term as too lenient.
Yang was sentenced to death on February 3, 2005. His death sentence was confirmed by the Liaoyang Superior People's Court after a ruling which dismissed the appeal. Yang was executed on July 12, 2005, at the age of 25.
Yang and Wang's criminal trial in China proceeded in step with Wei's trial in Japan, but the Chinese government did not respond officially to Wei's prosecution. Commentators in Japan compared sentencing and public opinion toward the accused.
Hearing by the Japanese side (Wei Wei)
Wei was indicted in Japan on March 23, 2004, by Judge Hiroshi Suyama of the Fukuoka District Court. The fact of prosecution was largely confirmed in the first trial, and on February 1, 2005, opening statements began regarding whether the Fukuoka District Public Prosecutors Office should seek the death penalty.
During the first trial on May 19, 2005, the Fukuoka District Court (Presiding Judge Kawaguchi) sentenced Wei to death. After accepting to hear Wei's case, the Court of Appeals broke with the District Court's silence, yielding detailed testimony on the motive, the criminal process, the role of the three assailants, and Wei's apology to the victims' bereaved family. On March 8, 2007, the Court of Appeals upheld the decision of the District Court in favor of the death sentence.
Wei's appeal to the Supreme Court was dismissed by the presiding judge, , on October 20, 2011. The death sentence was finalized in the following month.
Approximately eight years and one month after Wei's death sentence was finalised, Minister of Justice Masako Mori issued an execution order for Wei on December 23, 2019. On December 26, he was executed at Fukuoka Detention House at the age of 40.
See also
Capital punishment in Japan
List of executions in Japan
List of major crimes in Japan
References
External links
Murder in Japan
2003 murders in Japan
Family murders
Events in Fukuoka
|
The All Pakistan Confederation of Labour (APCOL) was a national trade union centre in Pakistan. It was formed in 1950 through a merger of PFL and EPFL and in the following years became the dominant trade union centre through government sponsorship. In the 1960s, it dissolved into PNFTU, APFOL and APFTU.
History
After independence, Pakistan's trade unions were organised in the Pakistan Federation of Labour and the East Pakistan Federation of Labour. In 1950, these federations merged into the APCOL, though the new West Pakistan Federation of Labour and East Pakistan Federation of Labour retained a large degree of autonomy. A.M. Malik became the trade union centre's president and later Pakistan's Labour Minister, M.A. Khatib its general secretary. Bashir Ahmad Khan Bakhtiar and Chaudry Rehmatullah led the West Pakistan Federation of Labour, while Aftab Ali and Faiz Ahmed led the East Pakistan Federation of Labour.
APCOL's formation was encouraged by the Pakistani government to balance the growth of Communist-aligned trade unions such as the Pakistan Trade Union Federation. The government opposed the use of trade unions for strikes or for political purposes. This led to an exodus of left-wing trade unionists from APCOL, especially from the more communist-aligned East Pakistan unions. However, the East Pakistan Federation of Labour still retained a notably more left-wing slant.
In 1950, APCOL had 320,000 members. This dropped to 279,000 in March 1955, with many members switching affiliation to Communist-aligned trade unions. However, the Pakistani government banned these unions in 1954 and in 1955 made APCOL into the only representative trade union centre.
However, following the 1958 Pakistani coup d'état, trade union activity was suppressed and APCOL started declining. Still, by 1962, APCOL represented almost two-thirds of the membership of registered trade unions in Pakistan, claiming 178 affiliated unions with 456,000 total members.
In that year, the Petroleum Workers' Federation, the Cigarette Labour Union and others broke away to form the Pakistan National Federation of Trade Unions (PNFTU) led by Mohammad Sharif and Rashid Mohammad. More splinters followed, including the All Pakistan Federation of Trade Unions (APFTU) led by Bashir Ahmad Khan Bakhtiar and Khurshid Ahmad and the All Pakistan Federation of Labour (APFOL) under Rehmatullah Durrani and Chaudry Rehmatullah. Due to these splits, APCOL was de-affiliated from the ICFTU. Meanwhile, PNFTU was affiliated with the ICFTU in 1964, APFOL in 1966 and APFTU in 1974.
References
Trade unions in Pakistan
International Confederation of Free Trade Unions
Labour relations in Pakistan
Labour history of Pakistan
Trade unions established in 1951
1951 establishments in Pakistan
|
```javascript
tests([
['c:\\foo\\bar', 'file:///c:/foo/bar'],
['/#foo/?bar', 'file:///%23foo/%3Fbar'],
['/redhoodsu', 'file:///redhood%C2%B7su'],
['/', 'file:///%F0%9F%90%9F']
]);
```
|
```php
<?php
declare(strict_types=1);
namespace CodelyTv\Mooc\Steps\Domain\Quiz;
use CodelyTv\Mooc\Steps\Domain\Step;
use CodelyTv\Mooc\Steps\Domain\StepDuration;
use CodelyTv\Mooc\Steps\Domain\StepId;
use CodelyTv\Mooc\Steps\Domain\StepTitle;
final class QuizStep extends Step
{
/** @var QuizStepQuestion[] */
private array $questions;
public function __construct(
StepId $id,
StepTitle $title,
StepDuration $duration,
QuizStepQuestion ...$questions
) {
parent::__construct($id, $title, $duration);
$this->questions = $questions;
}
}
```
|
is a ward of the city of Sakai in Osaka Prefecture, Japan. The ward has an area of 23.69 km² and a population of 147,413. The population density is 6,223 per square kilometer.
The wards of Sakai were established when Sakai became a city designated by government ordinance on April 1, 2006.
The city has its municipal headquarters in Sakai-ku and Sakai City Museum is located in the area.
Train stations located in Sakai-ku
• Central stations: Sakai-Higashi Station, Sakai Station, Sakai-shi Station
West Japan Railway Company (JR West)
Hanwa Line: Asaka Station - Sakaishi Station - Mikunigaoka Station - Mozu Station
Nankai Electric Railway
Nankai Main Line: Shichidō Station - Sakai Station - Minato Station
Nankai Kōya Line: Asakayama Station - Sakaihigashi Station - Mikunigaoka Station - Mozuhachiman Station
Hankai Tramway
Hankai Line: Yamatogawa - Takasu-jinja - Ayanocho - Shimmeicho - Myokokuji-mae - Hanataguchi - Oshoji - Shukuin - Terajicho - Goryomae - Higashi-Minato
References
External links
Ward office official webpage
Wards of Sakai, Osaka
|
```python
#
#
# 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.
# ==============================================================================
"""Registration and usage mechanisms for KL-divergences."""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from tensorflow.python.framework import ops
from tensorflow.python.ops import array_ops
from tensorflow.python.ops import control_flow_ops
from tensorflow.python.ops import math_ops
from tensorflow.python.util import tf_inspect
from tensorflow.python.util.tf_export import tf_export
_DIVERGENCES = {}
__all__ = [
"RegisterKL",
"kl_divergence",
]
def _registered_kl(type_a, type_b):
"""Get the KL function registered for classes a and b."""
hierarchy_a = tf_inspect.getmro(type_a)
hierarchy_b = tf_inspect.getmro(type_b)
dist_to_children = None
kl_fn = None
for mro_to_a, parent_a in enumerate(hierarchy_a):
for mro_to_b, parent_b in enumerate(hierarchy_b):
candidate_dist = mro_to_a + mro_to_b
candidate_kl_fn = _DIVERGENCES.get((parent_a, parent_b), None)
if not kl_fn or (candidate_kl_fn and candidate_dist < dist_to_children):
dist_to_children = candidate_dist
kl_fn = candidate_kl_fn
return kl_fn
@tf_export("distributions.kl_divergence")
def kl_divergence(distribution_a, distribution_b,
allow_nan_stats=True, name=None):
"""Get the KL-divergence KL(distribution_a || distribution_b).
If there is no KL method registered specifically for `type(distribution_a)`
and `type(distribution_b)`, then the class hierarchies of these types are
searched.
If one KL method is registered between any pairs of classes in these two
parent hierarchies, it is used.
If more than one such registered method exists, the method whose registered
classes have the shortest sum MRO paths to the input types is used.
If more than one such shortest path exists, the first method
identified in the search is used (favoring a shorter MRO distance to
`type(distribution_a)`).
Args:
distribution_a: The first distribution.
distribution_b: The second distribution.
allow_nan_stats: Python `bool`, default `True`. When `True`,
statistics (e.g., mean, mode, variance) use the value "`NaN`" to
indicate the result is undefined. When `False`, an exception is raised
if one or more of the statistic's batch members are undefined.
name: Python `str` name prefixed to Ops created by this class.
Returns:
A Tensor with the batchwise KL-divergence between `distribution_a`
and `distribution_b`.
Raises:
NotImplementedError: If no KL method is defined for distribution types
of `distribution_a` and `distribution_b`.
"""
kl_fn = _registered_kl(type(distribution_a), type(distribution_b))
if kl_fn is None:
raise NotImplementedError(
"No KL(distribution_a || distribution_b) registered for distribution_a "
"type %s and distribution_b type %s"
% (type(distribution_a).__name__, type(distribution_b).__name__))
with ops.name_scope("KullbackLeibler"):
kl_t = kl_fn(distribution_a, distribution_b, name=name)
if allow_nan_stats:
return kl_t
# Check KL for NaNs
kl_t = array_ops.identity(kl_t, name="kl")
with ops.control_dependencies([
control_flow_ops.Assert(
math_ops.logical_not(
math_ops.reduce_any(math_ops.is_nan(kl_t))),
["KL calculation between %s and %s returned NaN values "
"(and was called with allow_nan_stats=False). Values:"
% (distribution_a.name, distribution_b.name), kl_t])]):
return array_ops.identity(kl_t, name="checked_kl")
def cross_entropy(ref, other,
allow_nan_stats=True, name=None):
"""Computes the (Shannon) cross entropy.
Denote two distributions by `P` (`ref`) and `Q` (`other`). Assuming `P, Q`
are absolutely continuous with respect to one another and permit densities
`p(x) dr(x)` and `q(x) dr(x)`, (Shanon) cross entropy is defined as:
```none
H[P, Q] = E_p[-log q(X)] = -int_F p(x) log q(x) dr(x)
```
where `F` denotes the support of the random variable `X ~ P`.
Args:
ref: `tf.distributions.Distribution` instance.
other: `tf.distributions.Distribution` instance.
allow_nan_stats: Python `bool`, default `True`. When `True`,
statistics (e.g., mean, mode, variance) use the value "`NaN`" to
indicate the result is undefined. When `False`, an exception is raised
if one or more of the statistic's batch members are undefined.
name: Python `str` prepended to names of ops created by this function.
Returns:
cross_entropy: `ref.dtype` `Tensor` with shape `[B1, ..., Bn]`
representing `n` different calculations of (Shanon) cross entropy.
"""
with ops.name_scope(name, "cross_entropy"):
return ref.entropy() + kl_divergence(
ref, other, allow_nan_stats=allow_nan_stats)
@tf_export("distributions.RegisterKL")
class RegisterKL(object):
"""Decorator to register a KL divergence implementation function.
Usage:
@distributions.RegisterKL(distributions.Normal, distributions.Normal)
def _kl_normal_mvn(norm_a, norm_b):
# Return KL(norm_a || norm_b)
"""
def __init__(self, dist_cls_a, dist_cls_b):
"""Initialize the KL registrar.
Args:
dist_cls_a: the class of the first argument of the KL divergence.
dist_cls_b: the class of the second argument of the KL divergence.
"""
self._key = (dist_cls_a, dist_cls_b)
def __call__(self, kl_fn):
"""Perform the KL registration.
Args:
kl_fn: The function to use for the KL divergence.
Returns:
kl_fn
Raises:
TypeError: if kl_fn is not a callable.
ValueError: if a KL divergence function has already been registered for
the given argument classes.
"""
if not callable(kl_fn):
raise TypeError("kl_fn must be callable, received: %s" % kl_fn)
if self._key in _DIVERGENCES:
raise ValueError("KL(%s || %s) has already been registered to: %s"
% (self._key[0].__name__, self._key[1].__name__,
_DIVERGENCES[self._key]))
_DIVERGENCES[self._key] = kl_fn
return kl_fn
```
|
```c++
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "src/runtime-profiler.h"
#include "src/assembler.h"
#include "src/ast/scopeinfo.h"
#include "src/base/platform/platform.h"
#include "src/bootstrapper.h"
#include "src/code-stubs.h"
#include "src/compilation-cache.h"
#include "src/execution.h"
#include "src/frames-inl.h"
#include "src/full-codegen/full-codegen.h"
#include "src/global-handles.h"
namespace v8 {
namespace internal {
// Number of times a function has to be seen on the stack before it is
// optimized.
static const int kProfilerTicksBeforeOptimization = 2;
// If the function optimization was disabled due to high deoptimization count,
// but the function is hot and has been seen on the stack this number of times,
// then we try to reenable optimization for this function.
static const int kProfilerTicksBeforeReenablingOptimization = 250;
// If a function does not have enough type info (according to
// FLAG_type_info_threshold), but has seen a huge number of ticks,
// optimize it as it is.
static const int kTicksWhenNotEnoughTypeInfo = 100;
// We only have one byte to store the number of ticks.
STATIC_ASSERT(kProfilerTicksBeforeOptimization < 256);
STATIC_ASSERT(kProfilerTicksBeforeReenablingOptimization < 256);
STATIC_ASSERT(kTicksWhenNotEnoughTypeInfo < 256);
// Maximum size in bytes of generate code for a function to allow OSR.
static const int kOSRCodeSizeAllowanceBase =
100 * FullCodeGenerator::kCodeSizeMultiplier;
static const int kOSRCodeSizeAllowancePerTick =
4 * FullCodeGenerator::kCodeSizeMultiplier;
// Maximum size in bytes of generated code for a function to be optimized
// the very first time it is seen on the stack.
static const int kMaxSizeEarlyOpt =
5 * FullCodeGenerator::kCodeSizeMultiplier;
RuntimeProfiler::RuntimeProfiler(Isolate* isolate)
: isolate_(isolate),
any_ic_changed_(false) {
}
static void GetICCounts(SharedFunctionInfo* shared,
int* ic_with_type_info_count, int* ic_generic_count,
int* ic_total_count, int* type_info_percentage,
int* generic_percentage) {
*ic_total_count = 0;
*ic_generic_count = 0;
*ic_with_type_info_count = 0;
if (shared->code()->kind() == Code::FUNCTION) {
Code* shared_code = shared->code();
Object* raw_info = shared_code->type_feedback_info();
if (raw_info->IsTypeFeedbackInfo()) {
TypeFeedbackInfo* info = TypeFeedbackInfo::cast(raw_info);
*ic_with_type_info_count = info->ic_with_type_info_count();
*ic_generic_count = info->ic_generic_count();
*ic_total_count = info->ic_total_count();
}
}
// Harvest vector-ics as well
TypeFeedbackVector* vector = shared->feedback_vector();
int with = 0, gen = 0;
vector->ComputeCounts(&with, &gen);
*ic_with_type_info_count += with;
*ic_generic_count += gen;
if (*ic_total_count > 0) {
*type_info_percentage = 100 * *ic_with_type_info_count / *ic_total_count;
*generic_percentage = 100 * *ic_generic_count / *ic_total_count;
} else {
*type_info_percentage = 100; // Compared against lower bound.
*generic_percentage = 0; // Compared against upper bound.
}
}
void RuntimeProfiler::Optimize(JSFunction* function, const char* reason) {
if (FLAG_trace_opt &&
function->shared()->PassesFilter(FLAG_hydrogen_filter)) {
PrintF("[marking ");
function->ShortPrint();
PrintF(" for recompilation, reason: %s", reason);
if (FLAG_type_info_threshold > 0) {
int typeinfo, generic, total, type_percentage, generic_percentage;
GetICCounts(function->shared(), &typeinfo, &generic, &total,
&type_percentage, &generic_percentage);
PrintF(", ICs with typeinfo: %d/%d (%d%%)", typeinfo, total,
type_percentage);
PrintF(", generic ICs: %d/%d (%d%%)", generic, total, generic_percentage);
}
PrintF("]\n");
}
function->AttemptConcurrentOptimization();
}
void RuntimeProfiler::AttemptOnStackReplacement(JSFunction* function,
int loop_nesting_levels) {
SharedFunctionInfo* shared = function->shared();
if (!FLAG_use_osr || function->shared()->IsBuiltin()) {
return;
}
// If the code is not optimizable, don't try OSR.
if (shared->optimization_disabled()) return;
// We are not prepared to do OSR for a function that already has an
// allocated arguments object. The optimized code would bypass it for
// arguments accesses, which is unsound. Don't try OSR.
if (shared->uses_arguments()) return;
// We're using on-stack replacement: patch the unoptimized code so that
// any back edge in any unoptimized frame will trigger on-stack
// replacement for that frame.
if (FLAG_trace_osr) {
PrintF("[OSR - patching back edges in ");
function->PrintName();
PrintF("]\n");
}
for (int i = 0; i < loop_nesting_levels; i++) {
BackEdgeTable::Patch(isolate_, shared->code());
}
}
void RuntimeProfiler::MaybeOptimizeFullCodegen(JSFunction* function,
int frame_count,
bool frame_optimized) {
SharedFunctionInfo* shared = function->shared();
Code* shared_code = shared->code();
if (shared_code->kind() != Code::FUNCTION) return;
if (function->IsInOptimizationQueue()) return;
if (FLAG_always_osr) {
AttemptOnStackReplacement(function, Code::kMaxLoopNestingMarker);
// Fall through and do a normal optimized compile as well.
} else if (!frame_optimized &&
(function->IsMarkedForOptimization() ||
function->IsMarkedForConcurrentOptimization() ||
function->IsOptimized())) {
// Attempt OSR if we are still running unoptimized code even though the
// the function has long been marked or even already been optimized.
int ticks = shared_code->profiler_ticks();
int64_t allowance =
kOSRCodeSizeAllowanceBase +
static_cast<int64_t>(ticks) * kOSRCodeSizeAllowancePerTick;
if (shared_code->CodeSize() > allowance &&
ticks < Code::ProfilerTicksField::kMax) {
shared_code->set_profiler_ticks(ticks + 1);
} else {
AttemptOnStackReplacement(function);
}
return;
}
// Only record top-level code on top of the execution stack and
// avoid optimizing excessively large scripts since top-level code
// will be executed only once.
const int kMaxToplevelSourceSize = 10 * 1024;
if (shared->is_toplevel() &&
(frame_count > 1 || shared->SourceSize() > kMaxToplevelSourceSize)) {
return;
}
// Do not record non-optimizable functions.
if (shared->optimization_disabled()) {
if (shared->deopt_count() >= FLAG_max_opt_count) {
// If optimization was disabled due to many deoptimizations,
// then check if the function is hot and try to reenable optimization.
int ticks = shared_code->profiler_ticks();
if (ticks >= kProfilerTicksBeforeReenablingOptimization) {
shared_code->set_profiler_ticks(0);
shared->TryReenableOptimization();
} else {
shared_code->set_profiler_ticks(ticks + 1);
}
}
return;
}
if (function->IsOptimized()) return;
int ticks = shared_code->profiler_ticks();
if (ticks >= kProfilerTicksBeforeOptimization) {
int typeinfo, generic, total, type_percentage, generic_percentage;
GetICCounts(shared, &typeinfo, &generic, &total, &type_percentage,
&generic_percentage);
if (type_percentage >= FLAG_type_info_threshold &&
generic_percentage <= FLAG_generic_ic_threshold) {
// If this particular function hasn't had any ICs patched for enough
// ticks, optimize it now.
Optimize(function, "hot and stable");
} else if (ticks >= kTicksWhenNotEnoughTypeInfo) {
Optimize(function, "not much type info but very hot");
} else {
shared_code->set_profiler_ticks(ticks + 1);
if (FLAG_trace_opt_verbose) {
PrintF("[not yet optimizing ");
function->PrintName();
PrintF(", not enough type info: %d/%d (%d%%)]\n", typeinfo, total,
type_percentage);
}
}
} else if (!any_ic_changed_ &&
shared_code->instruction_size() < kMaxSizeEarlyOpt) {
// If no IC was patched since the last tick and this function is very
// small, optimistically optimize it now.
int typeinfo, generic, total, type_percentage, generic_percentage;
GetICCounts(shared, &typeinfo, &generic, &total, &type_percentage,
&generic_percentage);
if (type_percentage >= FLAG_type_info_threshold &&
generic_percentage <= FLAG_generic_ic_threshold) {
Optimize(function, "small function");
} else {
shared_code->set_profiler_ticks(ticks + 1);
}
} else {
shared_code->set_profiler_ticks(ticks + 1);
}
}
void RuntimeProfiler::MaybeOptimizeIgnition(JSFunction* function,
bool frame_optimized) {
if (function->IsInOptimizationQueue()) return;
SharedFunctionInfo* shared = function->shared();
int ticks = shared->profiler_ticks();
// TODO(rmcilroy): Also ensure we only OSR top-level code if it is smaller
// than kMaxToplevelSourceSize.
// TODO(rmcilroy): Consider whether we should optimize small functions when
// they are first seen on the stack (e.g., kMaxSizeEarlyOpt).
if (!frame_optimized && (function->IsMarkedForOptimization() ||
function->IsMarkedForConcurrentOptimization() ||
function->IsOptimized())) {
// TODO(rmcilroy): Support OSR in these cases.
return;
}
// Do not optimize non-optimizable functions.
if (shared->optimization_disabled()) {
if (shared->deopt_count() >= FLAG_max_opt_count) {
// If optimization was disabled due to many deoptimizations,
// then check if the function is hot and try to reenable optimization.
if (ticks >= kProfilerTicksBeforeReenablingOptimization) {
shared->set_profiler_ticks(0);
shared->TryReenableOptimization();
}
}
return;
}
if (function->IsOptimized()) return;
if (ticks >= kProfilerTicksBeforeOptimization) {
int typeinfo, generic, total, type_percentage, generic_percentage;
GetICCounts(shared, &typeinfo, &generic, &total, &type_percentage,
&generic_percentage);
if (type_percentage >= FLAG_type_info_threshold &&
generic_percentage <= FLAG_generic_ic_threshold) {
// If this particular function hasn't had any ICs patched for enough
// ticks, optimize it now.
Optimize(function, "hot and stable");
} else if (ticks >= kTicksWhenNotEnoughTypeInfo) {
Optimize(function, "not much type info but very hot");
} else {
if (FLAG_trace_opt_verbose) {
PrintF("[not yet optimizing ");
function->PrintName();
PrintF(", not enough type info: %d/%d (%d%%)]\n", typeinfo, total,
type_percentage);
}
}
}
}
void RuntimeProfiler::MarkCandidatesForOptimization() {
HandleScope scope(isolate_);
if (!isolate_->use_crankshaft()) return;
DisallowHeapAllocation no_gc;
// Run through the JavaScript frames and collect them. If we already
// have a sample of the function, we mark it for optimizations
// (eagerly or lazily).
int frame_count = 0;
int frame_count_limit = FLAG_frame_count;
for (JavaScriptFrameIterator it(isolate_);
frame_count++ < frame_count_limit && !it.done();
it.Advance()) {
JavaScriptFrame* frame = it.frame();
JSFunction* function = frame->function();
List<JSFunction*> functions(4);
frame->GetFunctions(&functions);
for (int i = functions.length(); --i >= 0; ) {
SharedFunctionInfo* shared_function_info = functions[i]->shared();
int ticks = shared_function_info->profiler_ticks();
if (ticks < Smi::kMaxValue) {
shared_function_info->set_profiler_ticks(ticks + 1);
}
}
if (FLAG_ignition) {
MaybeOptimizeIgnition(function, frame->is_optimized());
} else {
MaybeOptimizeFullCodegen(function, frame_count, frame->is_optimized());
}
}
any_ic_changed_ = false;
}
} // namespace internal
} // namespace v8
```
|
```gas
; libFLAC - Free Lossless Audio Codec library
;
; 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 the Xiph.org Foundation 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 FOUNDATION 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.
.text
.align 2
.globl _FLAC__lpc_restore_signal_asm_ppc_altivec_16
.globl _FLAC__lpc_restore_signal_asm_ppc_altivec_16_order8
_FLAC__lpc_restore_signal_asm_ppc_altivec_16:
; r3: residual[]
; r4: data_len
; r5: qlp_coeff[]
; r6: order
; r7: lp_quantization
; r8: data[]
; see src/libFLAC/lpc.c:FLAC__lpc_restore_signal()
; these is a PowerPC/Altivec assembly version which requires bps<=16 (or actual
; bps<=15 for mid-side coding, since that uses an extra bit)
; these should be fast; the inner loop is unrolled (it takes no more than
; 3*(order%4) instructions, all of which are arithmetic), and all of the
; coefficients and all relevant history stay in registers, so the outer loop
; has only one load from memory (the residual)
; I have not yet run this through simg4, so there may be some avoidable stalls,
; and there may be a somewhat more clever way to do the outer loop
; the branch mechanism may prevent dynamic loading; I still need to examine
; this issue, and there may be a more elegant method
stmw r31,-4(r1)
addi r9,r1,-28
li r31,0xf
andc r9,r9,r31 ; for quadword-aligned stack data
slwi r6,r6,2 ; adjust for word size
slwi r4,r4,2
add r4,r4,r8 ; r4 = data+data_len
mfspr r0,256 ; cache old vrsave
addis r31,0,hi16(0xfffffc00)
ori r31,r31,lo16(0xfffffc00)
mtspr 256,r31 ; declare VRs in vrsave
cmplw cr0,r8,r4 ; i<data_len
bc 4,0,L1400
; load coefficients into v0-v7 and initial history into v8-v15
li r31,0xf
and r31,r8,r31 ; r31: data%4
li r11,16
subf r31,r31,r11 ; r31: 4-(data%4)
slwi r31,r31,3 ; convert to bits for vsro
li r10,-4
stw r31,-4(r9)
lvewx v0,r10,r9
vspltisb v18,-1
vsro v18,v18,v0 ; v18: mask vector
li r31,0x8
lvsl v0,0,r31
vsldoi v0,v0,v0,12
li r31,0xc
lvsl v1,0,r31
vspltisb v2,0
vspltisb v3,-1
vmrglw v2,v2,v3
vsel v0,v1,v0,v2 ; v0: reversal permutation vector
add r10,r5,r6
lvsl v17,0,r5 ; v17: coefficient alignment permutation vector
vperm v17,v17,v17,v0 ; v17: reversal coefficient alignment permutation vector
mr r11,r8
lvsl v16,0,r11 ; v16: history alignment permutation vector
lvx v0,0,r5
addi r5,r5,16
lvx v1,0,r5
vperm v0,v0,v1,v17
lvx v8,0,r11
addi r11,r11,-16
lvx v9,0,r11
vperm v8,v9,v8,v16
cmplw cr0,r5,r10
bc 12,0,L1101
vand v0,v0,v18
addis r31,0,hi16(L1307)
ori r31,r31,lo16(L1307)
b L1199
L1101:
addi r5,r5,16
lvx v2,0,r5
vperm v1,v1,v2,v17
addi r11,r11,-16
lvx v10,0,r11
vperm v9,v10,v9,v16
cmplw cr0,r5,r10
bc 12,0,L1102
vand v1,v1,v18
addis r31,0,hi16(L1306)
ori r31,r31,lo16(L1306)
b L1199
L1102:
addi r5,r5,16
lvx v3,0,r5
vperm v2,v2,v3,v17
addi r11,r11,-16
lvx v11,0,r11
vperm v10,v11,v10,v16
cmplw cr0,r5,r10
bc 12,0,L1103
vand v2,v2,v18
addis r31,0,hi16(L1305)
ori r31,r31,lo16(L1305)
b L1199
L1103:
addi r5,r5,16
lvx v4,0,r5
vperm v3,v3,v4,v17
addi r11,r11,-16
lvx v12,0,r11
vperm v11,v12,v11,v16
cmplw cr0,r5,r10
bc 12,0,L1104
vand v3,v3,v18
addis r31,0,hi16(L1304)
ori r31,r31,lo16(L1304)
b L1199
L1104:
addi r5,r5,16
lvx v5,0,r5
vperm v4,v4,v5,v17
addi r11,r11,-16
lvx v13,0,r11
vperm v12,v13,v12,v16
cmplw cr0,r5,r10
bc 12,0,L1105
vand v4,v4,v18
addis r31,0,hi16(L1303)
ori r31,r31,lo16(L1303)
b L1199
L1105:
addi r5,r5,16
lvx v6,0,r5
vperm v5,v5,v6,v17
addi r11,r11,-16
lvx v14,0,r11
vperm v13,v14,v13,v16
cmplw cr0,r5,r10
bc 12,0,L1106
vand v5,v5,v18
addis r31,0,hi16(L1302)
ori r31,r31,lo16(L1302)
b L1199
L1106:
addi r5,r5,16
lvx v7,0,r5
vperm v6,v6,v7,v17
addi r11,r11,-16
lvx v15,0,r11
vperm v14,v15,v14,v16
cmplw cr0,r5,r10
bc 12,0,L1107
vand v6,v6,v18
addis r31,0,hi16(L1301)
ori r31,r31,lo16(L1301)
b L1199
L1107:
addi r5,r5,16
lvx v19,0,r5
vperm v7,v7,v19,v17
addi r11,r11,-16
lvx v19,0,r11
vperm v15,v19,v15,v16
vand v7,v7,v18
addis r31,0,hi16(L1300)
ori r31,r31,lo16(L1300)
L1199:
mtctr r31
; set up invariant vectors
vspltish v16,0 ; v16: zero vector
li r10,-12
lvsr v17,r10,r8 ; v17: result shift vector
lvsl v18,r10,r3 ; v18: residual shift back vector
li r10,-4
stw r7,-4(r9)
lvewx v19,r10,r9 ; v19: lp_quantization vector
L1200:
vmulosh v20,v0,v8 ; v20: sum vector
bcctr 20,0
L1300:
vmulosh v21,v7,v15
vsldoi v15,v15,v14,4 ; increment history
vaddsws v20,v20,v21
L1301:
vmulosh v21,v6,v14
vsldoi v14,v14,v13,4
vaddsws v20,v20,v21
L1302:
vmulosh v21,v5,v13
vsldoi v13,v13,v12,4
vaddsws v20,v20,v21
L1303:
vmulosh v21,v4,v12
vsldoi v12,v12,v11,4
vaddsws v20,v20,v21
L1304:
vmulosh v21,v3,v11
vsldoi v11,v11,v10,4
vaddsws v20,v20,v21
L1305:
vmulosh v21,v2,v10
vsldoi v10,v10,v9,4
vaddsws v20,v20,v21
L1306:
vmulosh v21,v1,v9
vsldoi v9,v9,v8,4
vaddsws v20,v20,v21
L1307:
vsumsws v20,v20,v16 ; v20[3]: sum
vsraw v20,v20,v19 ; v20[3]: sum >> lp_quantization
lvewx v21,0,r3 ; v21[n]: *residual
vperm v21,v21,v21,v18 ; v21[3]: *residual
vaddsws v20,v21,v20 ; v20[3]: *residual + (sum >> lp_quantization)
vsldoi v18,v18,v18,4 ; increment shift vector
vperm v21,v20,v20,v17 ; v21[n]: shift for storage
vsldoi v17,v17,v17,12 ; increment shift vector
stvewx v21,0,r8
vsldoi v20,v20,v20,12
vsldoi v8,v8,v20,4 ; insert value onto history
addi r3,r3,4
addi r8,r8,4
cmplw cr0,r8,r4 ; i<data_len
bc 12,0,L1200
L1400:
mtspr 256,r0 ; restore old vrsave
lmw r31,-4(r1)
blr
_FLAC__lpc_restore_signal_asm_ppc_altivec_16_order8:
; r3: residual[]
; r4: data_len
; r5: qlp_coeff[]
; r6: order
; r7: lp_quantization
; r8: data[]
; see _FLAC__lpc_restore_signal_asm_ppc_altivec_16() above
; this version assumes order<=8; it uses fewer vector registers, which should
; save time in context switches, and has less code, which may improve
; instruction caching
stmw r31,-4(r1)
addi r9,r1,-28
li r31,0xf
andc r9,r9,r31 ; for quadword-aligned stack data
slwi r6,r6,2 ; adjust for word size
slwi r4,r4,2
add r4,r4,r8 ; r4 = data+data_len
mfspr r0,256 ; cache old vrsave
addis r31,0,hi16(0xffc00000)
ori r31,r31,lo16(0xffc00000)
mtspr 256,r31 ; declare VRs in vrsave
cmplw cr0,r8,r4 ; i<data_len
bc 4,0,L2400
; load coefficients into v0-v1 and initial history into v2-v3
li r31,0xf
and r31,r8,r31 ; r31: data%4
li r11,16
subf r31,r31,r11 ; r31: 4-(data%4)
slwi r31,r31,3 ; convert to bits for vsro
li r10,-4
stw r31,-4(r9)
lvewx v0,r10,r9
vspltisb v6,-1
vsro v6,v6,v0 ; v6: mask vector
li r31,0x8
lvsl v0,0,r31
vsldoi v0,v0,v0,12
li r31,0xc
lvsl v1,0,r31
vspltisb v2,0
vspltisb v3,-1
vmrglw v2,v2,v3
vsel v0,v1,v0,v2 ; v0: reversal permutation vector
add r10,r5,r6
lvsl v5,0,r5 ; v5: coefficient alignment permutation vector
vperm v5,v5,v5,v0 ; v5: reversal coefficient alignment permutation vector
mr r11,r8
lvsl v4,0,r11 ; v4: history alignment permutation vector
lvx v0,0,r5
addi r5,r5,16
lvx v1,0,r5
vperm v0,v0,v1,v5
lvx v2,0,r11
addi r11,r11,-16
lvx v3,0,r11
vperm v2,v3,v2,v4
cmplw cr0,r5,r10
bc 12,0,L2101
vand v0,v0,v6
addis r31,0,hi16(L2301)
ori r31,r31,lo16(L2301)
b L2199
L2101:
addi r5,r5,16
lvx v7,0,r5
vperm v1,v1,v7,v5
addi r11,r11,-16
lvx v7,0,r11
vperm v3,v7,v3,v4
vand v1,v1,v6
addis r31,0,hi16(L2300)
ori r31,r31,lo16(L2300)
L2199:
mtctr r31
; set up invariant vectors
vspltish v4,0 ; v4: zero vector
li r10,-12
lvsr v5,r10,r8 ; v5: result shift vector
lvsl v6,r10,r3 ; v6: residual shift back vector
li r10,-4
stw r7,-4(r9)
lvewx v7,r10,r9 ; v7: lp_quantization vector
L2200:
vmulosh v8,v0,v2 ; v8: sum vector
bcctr 20,0
L2300:
vmulosh v9,v1,v3
vsldoi v3,v3,v2,4
vaddsws v8,v8,v9
L2301:
vsumsws v8,v8,v4 ; v8[3]: sum
vsraw v8,v8,v7 ; v8[3]: sum >> lp_quantization
lvewx v9,0,r3 ; v9[n]: *residual
vperm v9,v9,v9,v6 ; v9[3]: *residual
vaddsws v8,v9,v8 ; v8[3]: *residual + (sum >> lp_quantization)
vsldoi v6,v6,v6,4 ; increment shift vector
vperm v9,v8,v8,v5 ; v9[n]: shift for storage
vsldoi v5,v5,v5,12 ; increment shift vector
stvewx v9,0,r8
vsldoi v8,v8,v8,12
vsldoi v2,v2,v8,4 ; insert value onto history
addi r3,r3,4
addi r8,r8,4
cmplw cr0,r8,r4 ; i<data_len
bc 12,0,L2200
L2400:
mtspr 256,r0 ; restore old vrsave
lmw r31,-4(r1)
blr
```
|
Antimargarita is a genus of sea snails, marine gastropod mollusks in the family Margaritidae.
Species
Species within the genus Antimargarita include:
Antimargarita bentarti Aldea, Zelaya & Troncoso, 2009
Antimargarita dulcis (E.A. Smith, 1907)
Antimargarita maoria Dell, 1995
Antimargarita powelli Aldea, Zelaya & Troncoso, 2009
Antimargarita smithiana (Hedley, 1916)
Species brought into synonymy
Antimargarita smithiana (Hedley, 1916): synonym of Submargarita smithiana Hedley, 1916
Antimargarita thielei (Hedley, 1916): synonym of Falsimargarita thielei (Hedley, 1916)
References
Aldea C., Zelaya D.G. & Troncoso J.S. (2009) Two new trochids of the genus Antimargarita (Gastropoda: Vetigastropoda: Trochidae) from the Bellingshausen Sea and South Shetland Islands, Antarctica. Polar Biology 32:417–426
Margaritidae
|
A voiceless retroflex implosive is an extremely rare consonantal sound, used in very few spoken languages. There is no official symbol in the International Phonetic Alphabet that represents this sound, but or may be used, or the old convention ().
Features
Features of the voiceless retroflex implosive:
Occurrence
A rare and evidently unstable sound, has been described in Oromo of Ethiopia, and Ngiti of the Democratic Republic of the Congo.
References
Works cited
Retroflex consonants
Implosives
Voiceless oral consonants
|
```c++
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "public/fpdf_attachment.h"
#include <memory>
#include <utility>
#include "constants/stream_dict_common.h"
#include "core/fdrm/fx_crypt.h"
#include "core/fpdfapi/parser/cpdf_array.h"
#include "core/fpdfapi/parser/cpdf_dictionary.h"
#include "core/fpdfapi/parser/cpdf_document.h"
#include "core/fpdfapi/parser/cpdf_name.h"
#include "core/fpdfapi/parser/cpdf_number.h"
#include "core/fpdfapi/parser/cpdf_reference.h"
#include "core/fpdfapi/parser/cpdf_string.h"
#include "core/fpdfapi/parser/fpdf_parser_decode.h"
#include "core/fpdfdoc/cpdf_filespec.h"
#include "core/fpdfdoc/cpdf_nametree.h"
#include "core/fxcrt/cfx_datetime.h"
#include "core/fxcrt/fx_extension.h"
#include "fpdfsdk/cpdfsdk_helpers.h"
#include "third_party/base/ptr_util.h"
namespace {
constexpr char kChecksumKey[] = "CheckSum";
ByteString CFXByteStringHexDecode(const ByteString& bsHex) {
std::unique_ptr<uint8_t, FxFreeDeleter> result;
uint32_t size = 0;
HexDecode(bsHex.AsRawSpan(), &result, &size);
return ByteString(result.get(), size);
}
ByteString GenerateMD5Base16(const void* contents, const unsigned long len) {
uint8_t digest[16];
CRYPT_MD5Generate(reinterpret_cast<const uint8_t*>(contents), len, digest);
char buf[32];
for (int i = 0; i < 16; ++i)
FXSYS_IntToTwoHexChars(digest[i], &buf[i * 2]);
return ByteString(buf, 32);
}
} // namespace
FPDF_EXPORT int FPDF_CALLCONV
FPDFDoc_GetAttachmentCount(FPDF_DOCUMENT document) {
CPDF_Document* pDoc = CPDFDocumentFromFPDFDocument(document);
if (!pDoc)
return 0;
return CPDF_NameTree(pDoc, "EmbeddedFiles").GetCount();
}
FPDF_EXPORT FPDF_ATTACHMENT FPDF_CALLCONV
FPDFDoc_AddAttachment(FPDF_DOCUMENT document, FPDF_WIDESTRING name) {
CPDF_Document* pDoc = CPDFDocumentFromFPDFDocument(document);
if (!pDoc)
return nullptr;
CPDF_Dictionary* pRoot = pDoc->GetRoot();
if (!pRoot)
return nullptr;
WideString wsName = WideStringFromFPDFWideString(name);
if (wsName.IsEmpty())
return nullptr;
// Retrieve the document's Names dictionary; create it if missing.
CPDF_Dictionary* pNames = pRoot->GetDictFor("Names");
if (!pNames) {
pNames = pDoc->NewIndirect<CPDF_Dictionary>();
pRoot->SetFor("Names", pNames->MakeReference(pDoc));
}
// Create the EmbeddedFiles dictionary if missing.
if (!pNames->GetDictFor("EmbeddedFiles")) {
CPDF_Dictionary* pFiles = pDoc->NewIndirect<CPDF_Dictionary>();
pFiles->SetNewFor<CPDF_Array>("Names");
pNames->SetFor("EmbeddedFiles", pFiles->MakeReference(pDoc));
}
// Set up the basic entries in the filespec dictionary.
CPDF_Dictionary* pFile = pDoc->NewIndirect<CPDF_Dictionary>();
pFile->SetNewFor<CPDF_Name>("Type", "Filespec");
pFile->SetNewFor<CPDF_String>("UF", wsName);
pFile->SetNewFor<CPDF_String>(pdfium::stream::kF, wsName);
// Add the new attachment name and filespec into the document's EmbeddedFiles.
CPDF_NameTree nameTree(pDoc, "EmbeddedFiles");
if (!nameTree.AddValueAndName(pFile->MakeReference(pDoc), wsName)) {
return nullptr;
}
return FPDFAttachmentFromCPDFObject(pFile);
}
FPDF_EXPORT FPDF_ATTACHMENT FPDF_CALLCONV
FPDFDoc_GetAttachment(FPDF_DOCUMENT document, int index) {
CPDF_Document* pDoc = CPDFDocumentFromFPDFDocument(document);
if (!pDoc || index < 0)
return nullptr;
CPDF_NameTree nameTree(pDoc, "EmbeddedFiles");
if (static_cast<size_t>(index) >= nameTree.GetCount())
return nullptr;
WideString csName;
return FPDFAttachmentFromCPDFObject(
nameTree.LookupValueAndName(index, &csName));
}
FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV
FPDFDoc_DeleteAttachment(FPDF_DOCUMENT document, int index) {
CPDF_Document* pDoc = CPDFDocumentFromFPDFDocument(document);
if (!pDoc || index < 0)
return false;
CPDF_NameTree nameTree(pDoc, "EmbeddedFiles");
if (static_cast<size_t>(index) >= nameTree.GetCount())
return false;
return nameTree.DeleteValueAndName(index);
}
FPDF_EXPORT unsigned long FPDF_CALLCONV
FPDFAttachment_GetName(FPDF_ATTACHMENT attachment,
void* buffer,
unsigned long buflen) {
CPDF_Object* pFile = CPDFObjectFromFPDFAttachment(attachment);
if (!pFile)
return 0;
return Utf16EncodeMaybeCopyAndReturnLength(CPDF_FileSpec(pFile).GetFileName(),
buffer, buflen);
}
FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV
FPDFAttachment_HasKey(FPDF_ATTACHMENT attachment, FPDF_BYTESTRING key) {
CPDF_Object* pFile = CPDFObjectFromFPDFAttachment(attachment);
if (!pFile)
return 0;
CPDF_Dictionary* pParamsDict = CPDF_FileSpec(pFile).GetParamsDict();
return pParamsDict ? pParamsDict->KeyExist(key) : 0;
}
FPDF_EXPORT FPDF_OBJECT_TYPE FPDF_CALLCONV
FPDFAttachment_GetValueType(FPDF_ATTACHMENT attachment, FPDF_BYTESTRING key) {
if (!FPDFAttachment_HasKey(attachment, key))
return FPDF_OBJECT_UNKNOWN;
CPDF_FileSpec spec(CPDFObjectFromFPDFAttachment(attachment));
CPDF_Object* pObj = spec.GetParamsDict()->GetObjectFor(key);
return pObj ? pObj->GetType() : FPDF_OBJECT_UNKNOWN;
}
FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV
FPDFAttachment_SetStringValue(FPDF_ATTACHMENT attachment,
FPDF_BYTESTRING key,
FPDF_WIDESTRING value) {
CPDF_Object* pFile = CPDFObjectFromFPDFAttachment(attachment);
if (!pFile)
return false;
CPDF_Dictionary* pParamsDict = CPDF_FileSpec(pFile).GetParamsDict();
if (!pParamsDict)
return false;
ByteString bsKey = key;
ByteString bsValue = ByteStringFromFPDFWideString(value);
bool bEncodedAsHex = bsKey == kChecksumKey;
if (bEncodedAsHex)
bsValue = CFXByteStringHexDecode(bsValue);
pParamsDict->SetNewFor<CPDF_String>(bsKey, bsValue, bEncodedAsHex);
return true;
}
FPDF_EXPORT unsigned long FPDF_CALLCONV
FPDFAttachment_GetStringValue(FPDF_ATTACHMENT attachment,
FPDF_BYTESTRING key,
void* buffer,
unsigned long buflen) {
CPDF_Object* pFile = CPDFObjectFromFPDFAttachment(attachment);
if (!pFile)
return 0;
CPDF_Dictionary* pParamsDict = CPDF_FileSpec(pFile).GetParamsDict();
if (!pParamsDict)
return 0;
ByteString bsKey = key;
WideString value = pParamsDict->GetUnicodeTextFor(bsKey);
if (bsKey == kChecksumKey && !value.IsEmpty()) {
CPDF_String* stringValue = pParamsDict->GetObjectFor(bsKey)->AsString();
if (stringValue->IsHex()) {
ByteString encoded = PDF_EncodeString(stringValue->GetString(), true);
value = CPDF_String(nullptr, encoded, false).GetUnicodeText();
}
}
return Utf16EncodeMaybeCopyAndReturnLength(value, buffer, buflen);
}
FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV
FPDFAttachment_SetFile(FPDF_ATTACHMENT attachment,
FPDF_DOCUMENT document,
const void* contents,
const unsigned long len) {
CPDF_Object* pFile = CPDFObjectFromFPDFAttachment(attachment);
CPDF_Document* pDoc = CPDFDocumentFromFPDFDocument(document);
if (!pFile || !pFile->IsDictionary() || !pDoc || len > INT_MAX)
return false;
// An empty content must have a zero length.
if (!contents && len != 0)
return false;
// Create a dictionary for the new embedded file stream.
auto pFileStreamDict = pdfium::MakeUnique<CPDF_Dictionary>();
CPDF_Dictionary* pParamsDict =
pFileStreamDict->SetNewFor<CPDF_Dictionary>("Params");
// Set the size of the new file in the dictionary.
pFileStreamDict->SetNewFor<CPDF_Number>(pdfium::stream::kDL,
static_cast<int>(len));
pParamsDict->SetNewFor<CPDF_Number>("Size", static_cast<int>(len));
// Set the creation date of the new attachment in the dictionary.
CFX_DateTime dateTime = CFX_DateTime::Now();
pParamsDict->SetNewFor<CPDF_String>(
"CreationDate",
ByteString::Format("D:%d%02d%02d%02d%02d%02d", dateTime.GetYear(),
dateTime.GetMonth(), dateTime.GetDay(),
dateTime.GetHour(), dateTime.GetMinute(),
dateTime.GetSecond()),
false);
// Set the checksum of the new attachment in the dictionary.
pParamsDict->SetNewFor<CPDF_String>(
kChecksumKey, CFXByteStringHexDecode(GenerateMD5Base16(contents, len)),
true);
// Create the file stream and have the filespec dictionary link to it.
std::unique_ptr<uint8_t, FxFreeDeleter> stream(FX_Alloc(uint8_t, len));
memcpy(stream.get(), contents, len);
CPDF_Stream* pFileStream = pDoc->NewIndirect<CPDF_Stream>(
std::move(stream), len, std::move(pFileStreamDict));
CPDF_Dictionary* pEFDict =
pFile->AsDictionary()->SetNewFor<CPDF_Dictionary>("EF");
pEFDict->SetFor("F", pFileStream->MakeReference(pDoc));
return true;
}
FPDF_EXPORT unsigned long FPDF_CALLCONV
FPDFAttachment_GetFile(FPDF_ATTACHMENT attachment,
void* buffer,
unsigned long buflen) {
CPDF_Object* pFile = CPDFObjectFromFPDFAttachment(attachment);
if (!pFile)
return 0;
CPDF_Stream* pFileStream = CPDF_FileSpec(pFile).GetFileStream();
if (!pFileStream)
return 0;
return DecodeStreamMaybeCopyAndReturnLength(pFileStream, buffer, buflen);
}
```
|
```thrift
/*
*
* This software may be used and distributed according to the terms of the
*/
include "eden/mononoke/mononoke_types/serialization/id.thrift"
# If you change this, you need to bump CODEVAR in caching.rs
struct PathHash {
1: binary path;
2: bool is_tree;
} (rust.exhaustive)
struct MutableRenameEntry {
1: id.ChangesetId dst_cs_id;
2: PathHash dst_path_hash;
3: id.ChangesetId src_cs_id;
4: binary src_path;
5: PathHash src_path_hash;
6: id.Blake2 src_unode;
7: byte is_tree;
} (rust.exhaustive)
struct CachedMutableRenameEntry {
1: optional MutableRenameEntry entry;
} (rust.exhaustive)
struct ChangesetIdSet {
1: list<id.ChangesetId> cs_ids;
} (rust.exhaustive)
```
|
This is the list of episodes for The Tonight Show Starring Jimmy Fallon in 2019.
2019
January
February
March
April
May
June
July
August
September
October
November
December
References
External links
Lineups at Interbridge
Episodes 2019
Lists of American non-fiction television series episodes
Lists of variety television series episodes
Tonight Show Starring Jimmy Fallon
|
```xml
<?xml version="1.0" encoding="utf-8"?>
<!--
~
~
~ path_to_url
~
~ Unless required by applicable law or agreed to in writing, software
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-->
<LinearLayout xmlns:android="path_to_url"
xmlns:tools="path_to_url"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/touch_bg"
android:gravity="center"
android:orientation="vertical"
android:padding="10dp">
<TextView
android:id="@+id/tvName"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="@color/common_h1"
android:textSize="16sp"
tools:text="" />
<TextView
android:id="@+id/tvBookCount"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="@color/common_h2"
android:textSize="13sp"
tools:text="@string/category_book_count" />
</LinearLayout>
```
|
SMS ("His Majesty's Ship Prince-elector Friedrich Wilhelm") was one of the first ocean-going battleships of the German (Imperial Navy). The ship was named for Prince-elector () Friedrich Wilhelm, 17th-century Duke of Prussia and Margrave of Brandenburg. She was the fourth pre-dreadnought of the , along with her sister ships , , and . She was laid down in 1890 in the Imperial Dockyard in Wilhelmshaven, launched in 1891, and completed in 1893. The -class battleships carried six large-caliber guns in three twin turrets, as opposed to four guns in two turrets, as was the standard in other navies.
served as the flagship of the Imperial fleet from her commissioning in 1894 until 1900. She saw limited active duty during her service career with the German fleet due to the relatively peaceful nature of the late 19th and early 20th centuries. As a result, her career focused on training exercises and goodwill visits to foreign ports. These training maneuvers were nevertheless very important to developing German naval tactical doctrine in the two decades before World War I, especially under the direction of Alfred von Tirpitz. She, along with her three sisters, saw only one major overseas deployment, to China in 1900–1901, during the Boxer Uprising. The ship underwent a major modernization in 1904–1905.
In 1910, was sold to the Ottoman Empire and renamed . She saw heavy service during the Balkan Wars, primarily providing artillery support to Ottoman ground forces in Thrace. She also took part in two naval engagements with the Greek Navy—the Battle of Elli in December 1912, and the Battle of Lemnos the following month. Both battles were defeats for the Ottoman Navy. In a state of severe disrepair, the old battleship was partially disarmed after the Ottoman Empire joined the Central Powers early in World War I. On 8 August 1915 the ship was torpedoed and sunk off the Dardanelles by the British submarine with heavy loss of life.
Description
The four -class battleships were the first pre-dreadnought battleships of the (Imperial Navy). Prior to the ascension of Kaiser Wilhelm II to the German throne in June 1888, the German fleet had been largely oriented toward defense of the German coastline and Leo von Caprivi, chief of the (Imperial Naval Office), had ordered a number of coastal defense ships in the 1880s. In August 1888, the Kaiser, who had a strong interest in naval matters, replaced Caprivi with (VAdm—Vice Admiral) Alexander von Monts and instructed him to include four battleships in the 1889–1890 naval budget. Monts, who favored a fleet of battleships over the coastal defense strategy emphasized by his predecessor, cancelled the last four coastal defense ships authorized under Caprivi and instead ordered four battleships. Though they were the first modern battleships built in Germany, presaging the Tirpitz-era High Seas Fleet, the authorization for the ships came as part of a construction program that reflected the strategic and tactical confusion of the 1880s caused by the (Young School).
was long overall, had a beam of which was increased to with the addition of torpedo nets, and had a draft of forward and aft. She displaced as designed and up to at full combat load. She was equipped with two sets of 3-cylinder vertical triple expansion steam engines that each drove a screw propeller. Steam was provided by twelve transverse cylindrical Scotch marine boilers. The ship's propulsion system was rated at and a top speed of . She had a maximum range of at a cruising speed of . Her crew numbered 38 officers and 530 enlisted men.
The ship was unusual for her time in that she possessed a broadside of six heavy guns in three twin gun turrets, rather than the four-gun main battery typical of contemporary battleships. The forward and aft turrets carried K L/40 guns, and the amidships turret mounted a pair of 28 cm guns with shorter L/35 barrels. Her secondary armament consisted of eight SK L/35 and eight SK L/30 quick-firing guns mounted in casemates. s armament suite was rounded out with six torpedo tubes, all in above-water swivel mounts.
was protected with nickel-steel Krupp armor, a new type of stronger steel. Her main belt armor was thick in the central citadel that protected the ammunition magazines and machinery spaces. The deck was thick. The main battery barbettes were protected with thick armor.
Service history
In German service
Construction to 1895
was the fourth and final ship of her class. She was ordered as battleship D, and was laid down at the (Imperial Shipyard) in Wilhelmshaven in 1890. She was the first ship of the class to be launched, on 30 June 1891. The ceremony was attended by Kaiser Wilhelm II and his wife, Augusta Victoria. She was commissioned into the German fleet on 29 April 1894, the same day as her sister . While on sea trials, the ship suffered from several problems with her propulsion system. She was therefore decommissioned for repairs to the machinery, before being recommissioned on 1 November 1894. Construction of cost the German navy 11.23 million marks. Upon her commissioning, was assigned to I Division of I Battle Squadron alongside her three sisters. She replaced the ironclad as the Squadron flagship on 16 November, under the command of VAdm Hans von Koester. would remain the flagship for the next six years. I Division was accompanied by the four older s in II Division, though by 1901–1902, the s were replaced by the new s. The ship was a training ground for later commanders in chief of the High Seas Fleet, including Admirals Reinhard Scheer and Franz von Hipper, who both served aboard the ship as navigation officers during 1897 and October 1898 to September 1899, respectively.
After entering active service, and the rest of the squadron attended ceremonies for the Kaiser Wilhelm Canal at Kiel on 3 December 1894. The squadron thereafter began a winter training cruise in the Baltic Sea; this was the first such cruise by the German fleet. In previous years, the bulk of the fleet was deactivated for the winter months. During this voyage, I Division anchored in Stockholm from 7 to 11 December, during the 300th anniversary of the birth of Swedish king Gustavus Adolphus. King Oscar II held a reception for the visiting German delegation, which included Prince Heinrich, the younger brother of Wilhelm II and the commander of the battleship . Thereafter, further exercises were conducted in the Baltic before the ships had to put into their home ports for repairs. During this dockyard period, had her funnels extended in height.
1895 began with what became the normal trips to Heligoland and then to Bremerhaven, with Wilhelm II on board. This was followed by individual ship and divisional training, which was interrupted by a voyage to the northern North Sea. On this trip, was accompanied by her sister ship ; the two battleships stopped in Lerwick in Shetland from 16 to 23 March. This was the first time units of the main German fleet had left home waters. The purpose of the exercise was to test the ships in heavy weather; both vessels performed admirably. In May, more fleet maneuvers were carried out in the western Baltic, and they were concluded by a visit of the fleet to Kirkwall in Orkney. The squadron returned to Kiel in early June, where preparations were under way for the opening of the Kaiser Wilhelm Canal. Tactical exercises were carried out in Kiel Bay in the presence of foreign delegations to the opening ceremony.
On 28 June, an explosion occurred on one of the ship's pinnaces killing seven crewmen and badly injuring the future VAdm Wilhelm Starke. Further training exercises lasted until 1 July, when I Division began a voyage into the Atlantic Ocean. This operation had political motives; Germany had only been able to send a small contingent of vessels—the protected cruiser , the coastal defense ship , and the screw frigate —to an international naval demonstration off the Moroccan coast at the same time. The main fleet could therefore provide moral support to the demonstration by steaming to Spanish waters. Rough weather again allowed and her sister ships to demonstrate their excellent seakeeping. The fleet departed Vigo and stopped in Queenstown, Ireland. Wilhelm II, aboard his yacht , attended the Cowes Regatta while the rest of the fleet stayed off the Isle of Wight.
On 10 August, the fleet returned to Wilhelmshaven and began preparations for the autumn maneuvers later that month. The first exercises began in the Heligoland Bight on 25 August. The fleet then steamed through the Skagerrak to the Baltic; heavy storms caused significant damage to many of the ships and the torpedo boat capsized and sank in the storms—only three men were saved. The fleet stayed briefly in Kiel before resuming exercises, including live-fire exercises, in the Kattegat and the Great Belt. The main maneuvers began on 7 September with a mock attack from Kiel toward the eastern Baltic. Subsequent maneuvers took place off the coast of Pomerania and in Danzig Bay. A fleet review for Wilhelm II off Jershöft concluded the maneuvers on 14 September. went into drydock for periodic maintenance on 1 October. The ironclad temporarily replaced her as flagship until the work was completed on 20 October. The rest of the year was spent on individual ship training, with the exception of a short trip to Gothenburg from 5 to 9 November. Only three other ships accompanied on this visit: the ironclads and and the aviso . On 9 December, the squadron commander shifted his flag to while went into drydock for an overhaul.
1896–1900
The year 1896 followed much the same pattern as the previous year. On 10 March 1896, Koester once again raised his flag aboard . Individual ship training was conducted through April, followed by squadron training in the North Sea in late April and early May. This included a visit to the Dutch ports of Vlissingen and Nieuwediep. Further maneuvers, which lasted from the end of May to the end of July, took the squadron further north in the North Sea, frequently into Norwegian waters. The ships visited Bergen from 11 to 18 May. During the maneuvers, Wilhelm II and the Chinese viceroy Li Hongzhang observed a fleet review off Kiel. On 9 August, the training fleet assembled in Wilhelmshaven for the annual autumn fleet training. Following the conclusion of the maneuvers, again went into dock for maintenance, and while she was out of service, Koester transferred his flag to from 16 September to 3 October. Koester again flew his flag aboard from 15 December to 1 March 1897.
and the rest of the fleet operated under the normal routine of individual and unit training in the first half of 1897. Early in the year, the naval command considered deploying I Division, including , to another naval demonstration off Morocco to protest the murder of two German nationals there, but a smaller squadron of sailing frigates was sent instead. The typical routine was interrupted in early August when Wilhelm II and Augusta went to visit the Russian imperial court at Kronstadt; both divisions of I Squadron were sent to accompany the Kaiser. They had returned to Neufahrwasser in Danzig on 15 August, where the rest of the fleet joined them for the annual autumn maneuvers. These exercises reflected the tactical thinking of the new State Secretary of the , (KAdm—Rear Admiral) Alfred von Tirpitz, and the new commander of I Squadron, VAdm August von Thomsen. These new tactics stressed accurate gunnery, especially at longer ranges, though the necessities of the line-ahead formation led to a great deal of rigidity in the tactics. Thomsen's emphasis on shooting created the basis for the excellent German gunnery during World War I. The maneuvers were completed by 22 September in Wilhelmshaven.
In early December, I Division conducted maneuvers in the Kattegat and the Skagerrak, though they were cut short due to shortages in officers and men. The fleet followed the typical routine of individual and fleet training in 1898 without incident, though a voyage to the British Isles was also included. The fleet stopped in Queenstown, Greenock, and Kirkwall. The fleet assembled in Kiel on 14 August for the annual autumn exercises. The maneuvers included a mock blockade of the coast of Mecklenburg and a pitched battle with an "Eastern Fleet" in the Danzig Bay. While steaming back to Kiel, a severe storm hit the fleet, causing significant damage to many ships and sinking the torpedo boat . The fleet then transited the Kaiser Wilhelm Canal and continued the maneuvers in the North Sea. Training finished on 17 September in Wilhelmshaven. In December, I Division conducted artillery and torpedo training in Eckernförde Bay, followed by divisional training in the Kattegat and Skagerrak. During these maneuvers, the division visited Kungsbacka, Sweden, from 9 to 13 December. After returning to Kiel, the ships of I Division went into dock for their winter repairs.
On 5 April 1899, the ship participated in the celebrations commemorating the 50th anniversary of the Battle of Eckernförde during the First Schleswig War. In May, I and II Divisions, along with the Reserve Division from the Baltic, went on a major cruise into the Atlantic. On the voyage out, I Division stopped in Dover and II Division went into Falmouth to restock their coal supplies. I Division then joined II Division at Falmouth on 8 May, and the two units then departed for the Bay of Biscay, arriving at Lisbon on 12 May. There, they met the British Channel Fleet of eight battleships and four armored cruisers. The Portuguese king, Carlos I came aboard to inspect the German flagship. The German fleet then departed for Germany, stopping again in Dover on 24 May. There, they participated in the naval review celebrating Queen Victoria's 80th birthday. The fleet returned to Kiel on 31 May.
In July, the fleet conducted squadron maneuvers in the North Sea, which included coast defense exercises with soldiers from X Corps. On 16 August, the fleet assembled in Danzig once again for the annual autumn maneuvers. The exercises started in the Baltic and on 30 August the fleet passed through the Kattegat and Skagerrak and steamed into the North Sea for further maneuvers in the German Bight, which lasted until 7 September. The third phase of the maneuvers took place in the Kattegat and the Great Belt from 8 to 26 September, when the maneuvers concluded and the fleet went into port for annual maintenance. The year 1900 began with the usual routine of individual and divisional exercises. In the second half of March, the squadrons met in Kiel, followed by torpedo and gunnery practice in April and a voyage to the eastern Baltic. From 7 to 26 May, the fleet went on a major training cruise to the northern North Sea, which included stops in Shetland from 12 to 15 May and in Bergen from 18 to 22 May. On 8 July, the ships of I Division were reassigned to II Division, and the role of fleet flagship was transferred to the recently commissioned battleship .
Boxer Uprising
saw her first major operation in 1900, when I Division was deployed to China during the Boxer Uprising. Chinese nationalists laid siege to the foreign embassies in Beijing and murdered the German minister. At the time, the East Asia Squadron consisted of the protected cruisers , , , the small cruisers , , and the gunboats and , but the Kaiser decided that an expeditionary force was necessary to reinforce the Eight Nation Alliance that had formed to defeat the Boxers. The expeditionary force consisted of and her three sisters, six cruisers, 10 freighters, three torpedo boats, and six regiments of marines, under the command of (Field Marshal) Alfred von Waldersee. served as the flagship of KAdm Richard von Geißler, who took command on 6 July.
On 7 July, Geißler reported that his ships were ready for the operation, and they left two days later. The four battleships and the aviso transited the Kaiser Wilhelm Canal and stopped in Wilhelmshaven to rendezvous with the rest of the expeditionary force. On 11 July, the force steamed out of the Jade Bight, bound for China. They stopped to coal at Gibraltar on 17–18 July and they passed through the Suez Canal on 26–27 July. More coal was taken on at Perim in the Red Sea, and on 2 August, the fleet entered the Indian Ocean. On 10 August, the ships reached Colombo, Ceylon, and on 14 August they passed through the Strait of Malacca. They arrived in Singapore on 18 August and departed five days later, reaching Hong Kong on 28 August. Two days later, the expeditionary force stopped in the outer roadstead at Wusong, downriver from Shanghai. From there, was detached to cover the disembarkation of the German expeditionary corps outside the Taku Forts, while and her other two sister ships joined the blockade of the Yangtze River, which also included a British contingent of two battleships, three cruisers, four gunboats, and one destroyer. A small Chinese fleet stationed upriver did not even clear their ships for action, owing to the strength of the Anglo-German fleet.
By the time the German fleet had arrived, the siege of Beijing had already been lifted by forces from other members of the Eight-Nation Alliance that had formed to deal with the Boxers. In early September, and the rest of the German fleet was moved to the Yellow Sea, where Waldersee, who had been given command of all ground forces of the Eight-Nation Alliance, planned stronger actions against the harbors of northern China. On 3–4 September, the flagship of the East Asia Squadron, reconnoitered the harbors of Shanhaiguan and Qinhuangdao. then went to Shanhaiguan and sent a landing party of 100 men ashore while her torpedo crew cleared the Chinese minefields. She then returned to the Wusong roads while the ships of the East Asia Squadron remained off both ports. Since the situation had calmed, and her sisters were sent to Hong Kong or Nagasaki, Japan in early 1901 for overhauls; went to Nagasaki from 4 to 23 January. In March, the expeditionary fleet reassembled in Tsingtau for gunnery and tactical exercises.
On 26 May, the German high command recalled the expeditionary force to Germany. The fleet took on supplies in Shanghai and departed Chinese waters on 1 June. The fleet stopped in Singapore from 10 to 15 June and took on coal before proceeding to Colombo, where they stayed from 22 to 26 June. Steaming against the monsoons forced the fleet to stop in Mahé, Seychelles to take on more coal. The fleet then stopped for a day each to take on coal in Aden and Port Said. On 1 August they reached Cádiz, and then met with I Division and steamed back to Germany together. They separated after reaching Heligoland, and on 11 August after reaching the Jade roadstead, the ships of the expeditionary force were visited by Koester, who was now the Inspector General of the Navy. The following day, Geißler lowered his flag aboard and the expeditionary fleet was dissolved. In the end, the operation cost the German government more than 100 million marks.
1901–1910
went to Kiel after returning from the expedition to China, where on 14 August KAdm Fischel raised his flag aboard the ship. She was assigned to I Squadron as the second command flagship for the annual autumn maneuvers. These exercises were interrupted by the visit from Nicholas II of Russia, who came aboard . After the maneuvers, Fischel was replaced by KAdm Curt von Prittwitz und Gaffron on 24 October. In late 1901, the fleet went on a cruise to Norway, during which stopped in Oslo. During the months of December, January, and February, the ship was in drydock for major repair work.
The pattern of training for 1902 remained unchanged from previous years; I Squadron went on a major training cruise that started on 25 April. The squadron initially steamed to Norwegian waters, then rounded the northern tip of Scotland, and stopped in Irish waters. The ships returned to Kiel on 28 May. then participated in the annual autumn maneuvers, after which she was decommissioned, with the new battleship taking her place as second command flagship. The four class battleships were taken out of service for a major reconstruction. The work to was done at the shipyard in Wilhelmshaven. The work included increasing the ship's coal storage capacity and adding a pair of 10.5 cm guns. The plans had initially called for the center 28 cm turret to be replaced with an armored battery of medium-caliber guns, but this proved to be prohibitively expensive. was the last ship of her class to complete her reconstruction, which was finished on 14 December 1905.
On 1 January 1906 she was assigned to II Squadron and served as the flagship of first KAdm Henning von Holtzendorff, and then during the autumn maneuvers of KAdm Adolf Paschen. The fleet conducted its normal routine of individual and unit training, interrupted only by a cruise to Norway from mid-July to early August. The annual autumn maneuvers occurred as usual. served as the second command flagship in I Squadron of the newly created High Seas Fleet, but at the end of the 1906 training year, she was removed from active duty and her place was taken by the new battleship .
Beginning on 1 October 1907, was assigned to the Reserve Squadron in the North Sea, which had been created in early 1907 to train new crews. Her three sister ships joined her in this unit; their duties typically consisted of training cruises in the North Sea. From 5 to 25 April, she operated with the Training Squadron with its flagship . In September, the Reserve Squadron contributed vessels to the autumn maneuvers; served as the Reserve Squadron flagship, with the coastal defense ships and , the minelaying cruisers and , and the old avisos , , and . The Squadron was organized in Cuxhaven and joined the High Seas Fleet in the German Bight on 8 September. They participated in the main series of exercises off Heligoland, and the squadron was dissolved when the maneuvers ended on 12 September.
After completing her annual winter overhaul, returned to the Reserve Squadron in January 1909. Starting on 27 March, she operated with the Training Squadron again, the flagship of which was now the armored cruiser . Between 30 March and 24 April, she cruised in the central Baltic and in the waters around Rügen. She and the rest of the Reserve Squadron joined the autumn maneuvers in August and the battleship replaced as the flagship of the Reserve Squadron. was then transferred to the VII Division in the Reserve Squadron. She continued in this routine in early 1910; she operated with the Training Squadron from 4 to 29 April and cruised in the Skagerrak and the western Baltic. The battleship was scheduled to take part in the autumn maneuvers, but shortly before the fleet assembled for the exercises, both she and were sold to the Ottoman Empire.
In Ottoman service
In late 1909, the German military attache to the Ottoman Empire began a conversation with the Ottoman Navy about the possibility of selling German warships to the Ottomans to counter Greek naval expansion. After lengthy negotiations, including Ottoman attempts to buy one or more of the new battlecruisers , , and , the Germans offered to sell the four ships of the class at a cost of 10 million marks. The Ottomans chose to buy and , since they were the more advanced ships of the class. The two battleships were renamed after the famous 16th-century Ottoman admirals, Hayreddin Barbarossa and Turgut Reis. They were transferred on 1 September 1910, and German crews took the ships to Constantinople, along with four new destroyers also purchased from Germany. The Ottoman navy, however, had great difficulty equipping the and ; the navy had to pull trained enlisted men from the rest of the fleet just to put together crews for them. Both vessels suffered from condenser troubles after they entered Ottoman service, which reduced their speed to .
A year later, in September 1911, Italy declared war on the Ottoman Empire. The two battleships and the ancient central battery ironclad —which had been built in the mid-1870s—had been on a summer training cruise since July, and so were prepared for the conflict. On 1 October, shortly after the outbreak of war, and the rest of the Ottoman fleet was moored at Beirut. The following day, the fleet departed for Constantinople for repairs in preparation to engage the Italian fleet. Nevertheless, the bulk of the Ottoman fleet, including , remained in port for the duration of the war. By the end of the war, and her sister were in very poor condition. Their rangefinders and the ammunition hoists for their main battery guns had been removed, their telephones did not work, and the pipes for their pumps were badly rusted. Most of the watertight doors could not close, and the condensers remained problematic.
Balkan Wars
The First Balkan War broke out in October 1912, when the Balkan League attacked the Ottoman Empire after the war with Italy had revealed the scale of Ottoman weakness. The condition of , as with most ships of the Ottoman fleet, had deteriorated significantly. During the war, conducted gunnery training along with the other capital ships of the Ottoman navy, escorted troop convoys, and bombarded coastal installations. On 17 October, and steamed to İğneada. Two days later, the two battleships bombarded Bulgarian artillery positions near Varna. On 30 October, was back outside Varna to blockade the port along with the destroyer . On 17 November, and bombarded Bulgarian positions in support of I Corps, with the aid of artillery observers ashore. The battleships' gunnery was poor, though it provided a morale boost for the defending Ottoman army dug in at Çatalca. From 15 to 20 November, the ship was stationed at Büyükçekmece along with her sister ship and several other warships, but they saw no action against the small Bulgarian navy.
In December 1912, the Ottoman fleet was reorganized into an armored division, which included as flagship, two destroyer divisions, and a fourth division composed of warships intended for independent operations. Over the next two months, the armored division attempted to break the Greek naval blockade of the Dardanelles, which resulted in two major naval engagements.
Battle of Elli
At the Battle of Elli on 16 December 1912, the Ottomans attempted to launch an attack on Imbros. The Ottoman fleet sortied from the Dardanelles at 9:30; the smaller craft remained at the mouth of the straits while the battleships sailed north, hugging the coast. The Greek flotilla, which included the armored cruiser and three s, sailing from the island of Lemnos, altered course to the northeast to block the advance of the Ottoman battleships. The Ottoman ships opened fire on the Greeks at 9:40, from a range of about . Five minutes later, crossed over to the other side of the Ottoman fleet, placing the Ottomans in the unfavorable position of being under fire from both sides. At 9:50 and under heavy pressure from the Greek fleet, the Ottoman ships completed a 16-point turn, which reversed their course, and headed for the safety of the straits. The turn was poorly conducted, and the ships fell out of formation, blocking each other's fields of fire.
By 10:17, both sides had ceased firing and the Ottoman fleet withdrew into the Dardanelles. The ships reached port by 13:00 and transferred their casualties to the hospital ship . The battle was considered a Greek victory, because the Ottoman fleet remained blockaded. During the battle, was hit twice. The first shell struck the afterdeck and killed five men assigned to a damage control party. The second shell jammed the rear turret, placing it out of action. Shell fragments from this hit damaged several boilers and caused a fire in one of the coal bunkers.
On 4 January 1913, the Ottoman Navy and Army attempted a landing at Bozca Ada (Tenedos) to retake the island from the Greeks. and the rest of the fleet supported the operation, but the appearance of the Greek fleet forced the Ottomans to break off the operation. The Greeks also withdrew, and several Ottoman cruisers opened fire as both sides departed, but no damage was done. By 15:30, was back at Çanakkale inside the safety of the Dardanelles. On 10 January, the fleet conducted a patrol outside the Dardanelles. They encountered several Greek destroyers and forced them to withdraw, but inflicted no damage on the Greek ships.
Battle of Lemnos
The Battle of Lemnos resulted from an Ottoman plan to lure the faster away from the Dardanelles. The protected cruiser evaded the Greek blockade and broke out into the Aegean Sea in an attempt to draw the Greek cruiser into pursuit. Despite the threat posed by the cruiser, the Greek commander refused to detach . By mid-January, however, the Ottomans had learned that remained with the Greek fleet, and so (Captain) Ramiz Numan Bey, the Ottoman fleet commander, decided to attack the Greeks regardless.
, , and other units of the Ottoman fleet departed the Dardanelles at 8:20 on the morning of 18 January, and sailed toward the island of Lemnos at a speed of . led the line of battleships, with a flotilla of torpedo boats on either side of the formation. , with the three -class ironclads and five destroyers trailing behind, intercepted the Ottoman fleet approximately from Lemnos. At 10:55, the Ottoman cruiser spotted the Greeks, and the fleet turned south to engage them.
A long range artillery duel that lasted for two hours began at around 11:55, when the Ottoman fleet opened fire at a range of . They concentrated their fire on the Greek , which returned fire at 12:00. At 12:50, the Greeks attempted to cross the T of the Ottoman fleet, but turned north to block the Greek maneuver. The Ottoman commander detached after a serious hit at 12:55. At around the same time, a shell hit on her amidships turret, killing the entire gun crew. She was thereafter hit several times in the superstructure; these hits did relatively little damage, but they created significant smoke that was sucked into the boiler rooms and caused the ship's speed to fall to . As a result, took the lead of the formation and Bey decided to break off the engagement.
Toward the end of the engagement, closed to within and scored several hits on the fleeing Ottoman ships. At 14:00, the Ottoman warships had come close enough to the shore to be protected by coastal batteries, forcing the Greeks to withdraw and ending the battle. During the battle, both and her sister had a barbette disabled by gunfire, and both caught fire as a result. Between and , the ships fired some 800 rounds, mostly of their main battery ammunition but without success.
Subsequent operations
On 8 February 1913, the Ottoman navy supported an amphibious assault at Şarköy. and , along with several cruisers weighed anchor at 5:50 and arrived off the island at around 9:00. The Ottoman fleet provided artillery support, from about a kilometer off shore. The ships supported the left flank of the Ottoman army once it was ashore. The Bulgarian army provided stiff resistance that ultimately forced the Ottoman army to withdraw, though the withdrawal was successful in large part due to the gunfire support from and the rest of the fleet. During the battle, fired 250 rounds from her SK L/35 guns and 180 shells from her SK L/30 guns.
In March 1913, the ship returned to the Black Sea to resume support of the Çatalca garrison, which was under renewed attacks by the Bulgarian army. On 26 March, the and shells fired by and helped to turn back the advance of the 2nd Brigade of the Bulgarian 1st Infantry Division. On 30 March, the left wing of the Ottoman line turned to pursue the retreating Bulgarians. Their advance was supported by both field artillery and the heavy guns of ; the assault gained the Ottomans about by nightfall. In response, the Bulgarians brought the 1st Brigade to the front, which beat the Ottoman advance back to its starting position.
World War I
In the summer of 1914, World War I broke out in Europe, though the Ottomans initially remained neutral. On 3 August 1914, began a refit at Constantinople—German engineers inspected her and other Ottoman warships in the dockyard and found them to be in a state of severe disrepair. Owing to the state of tension, repairs could not be effected, and only ammunition, coal, and other supplies were loaded. By early November, the actions of the German battlecruiser , which had been transferred to the Ottoman Navy, resulted in declarations of war by Russia, France, and Great Britain. Between 1914–1915, some of the ship's guns were removed and employed as coastal guns to shore up the defenses protecting the Dardanelles. In the meantime, she was used as a floating artillery battery at the Nara naval base, along with her sister . Early during this stint, the ships were immobilized, but as the threat from British submarines grew, steam was kept up in their boilers to allow them to move quickly.
returned to Constantinople on 11 March 1915; the Ottoman high command had decided that both ships were not needed at all times. Over the next several months, the two ships alternated trips to Constantinople. On 25 April, the two battleships bombarded the British landings on the first day of the Gallipoli Campaign. After firing fourteen shells, the fifteenth detonated in the right gun barrel in the center turret, destroying the gun. After a shell exploded inside one of s guns in early June, both battleships were withdrawn. On 7 August, the British landed more troops at Suvla Bay, prompting the high command to send to support the Ottoman defenses there. In addition, she was loaded with a large quantity of ammunition to resupply the Fifth Army fighting in the Gallipoli Campaign. The next day, while she was en route to the area with only a single torpedo boat as escort, she was intercepted by the British submarine off Bolayır in the Sea of Marmara. The submarine hit with a single torpedo; she capsized seven minutes later, but remained afloat for a few minutes before she slipped below the waves. The ship sank with the loss of 21 officers and 237 men. The rest of the crew were picked up by her escort and a second torpedo boat patrolling the area.
Footnotes
Notes
Citations
References
Further reading
Brandenburg-class battleships
Ships built in Wilhelmshaven
1891 ships
Boxer Rebellion
Barbaros Hayreddin
Ships sunk by British submarines
World War I shipwrecks in the Dardanelles
Maritime incidents in 1915
|
Love Drunk is a 2009 album by Boys Like Girls.
Love Drunk may also refer to:
"Love Drunk" (Boys Like Girls song), 2009 song by Boys Like Girls
"Love Drunk" (Loick Essien song), 2010 song by Loick Essien
Love sickness
Love addiction
"Love Drunk", a song by Little Mix from DNA
"Love Drunk", a song by Charlotte Church from Back to Scratch
See also
Drunk Love, 2006 EP by The Cab
"Drunk on Love"
Punch-Drunk Love, 2002 film
|
Junior Warrant Officer (JWO) Noah Nirmal Tom (born 13 November 1994) is an Indian athlete and a Junior-Commissioned Officer (JCO) in the Indian Air Force. He is from Chakkittapara of Kozhikode district in Kerala state. He competed in the mixed 4 × 400 metres relay event at the 2019 World Athletics Championships, and 2020 Tokyo Olympics which were held on 2021. Noah studied at Silver Hills School, where his teacher Jose Sebastian first recognised his talent.
References
External links
1994 births
Living people
People from Kozhikode district
Athletes from Kerala
Indian male sprinters
World Athletics Championships athletes for India
Athletes (track and field) at the 2020 Summer Olympics
Olympic athletes for India
Athletes (track and field) at the 2022 Commonwealth Games
Commonwealth Games competitors for India
|
Pod hladinou (Below the Surface) is a Czech television series that aired in 2023. It was broadcast by Prima televize. It was originally broadcast on streaming service Prima+ with first 2 episodes broadcast on 4 May 2023. On 30 August 2023 it started broadcast on Prima television channel. The series focuses on work of police divers.
Plot
The series is set at Slapy Reservoir. Lieutenant Zach arrives as a temporary addition to the local river police. He is a professional diver from the Brno base and holder of a P4 diving license. His girlfriend Alice, an investigator from the regional police headquarters in Zbraslav, is also waiting for him. Zach wants to save their relationship and turn it from a long-distance relationship into a close relationship. It becomes clear that all is not well with Zach. He always finds a reason not to dive. Others including Alice start to notice. Yet he claims that everything is fine, and at the same time he is more and more withdrawn which drives Alice to Zach's best friend and colleague Zdeněk. Commander Vopěnka also notices Zach's strangeness and wants to make Zach confess why he is afraid to dive. Zach keeps denying it, but despite everything he goes under the water.
Cast
Matěj Hádek as Lt. Jan Zach
Sandra Nováková as Alice Jirásková
Marek Adamczyk as Zdeněk Říha
Šárka Krausová as René Krejčí
Václav Vydra as Ota Vopěnka
Filip Tomsa as Jakub Rydlo
Dita Krejčová as Jana Stryková
Episodes
Sequel
In February 2023 Prima announced sequel series Na vlnách Jadranu. Matěj Hádek and Sandra Nováková are set to return as Jan Zach and Alice Jirásková respectively. It started broadcast on 18 October 2023.
References
External links
Official site
IMDB site
Czech crime television series
2023 Czech television series debuts
2023 Czech television series endings
Prima televize original programming
Czech police procedural television series
|
Costapex sulcatus is a species of sea snail, a marine gastropod mollusk, in the family Costellariidae, the ribbed miters.
Distribution
This species occurs in the following locations:
Philippines
Solomon Islands
Vanuatu (Nation)
References
Costellariidae
|
An institutional repository is an archive for collecting, preserving, and disseminating digital copies of the intellectual output of an institution, particularly a research institution. Academics also utilize their IRs for archiving published works to increase their visibility and collaboration with other academics However, most of these outputs produced by universities are not effectively accessed and shared by researchers and other stakeholders As a result Academics should be involved in the implementation and development of an IR project so that they can learn the benefits and purpose of building an IR.
An institutional repository can be viewed as "a set of services that a university offers to members of its community for the management and dissemination of digital materials created by the institution and its community members." For a university, this includes materials such as monographs, eprints of academic journal articles—both before (preprints) and after (postprints) undergoing peer review—as well as electronic theses and dissertations (ETDs). An institutional repository might also include other digital assets generated by academics, such as datasets, administrative documents, course notes, learning objects, academic posters or conference proceedings. Deposit of material in an institutional repository is sometimes mandated by an institution.
Some of the main objectives for having an institutional repository are to provide open access to institutional research output by self-archiving in an open access repository, to create global visibility for an institution's scholarly research, and to store and preserve other institutional digital assets, including unpublished or otherwise easily lost ("grey") literature such as theses, working papers or technical reports.
Functions
Institutional repositories can be classified as a type of digital library. Institutional repositories perform the main functions of digital libraries by collecting, classifying, cataloging, curating, preserving, and providing access to digital content.
Institutional repositories enable researchers to self-archive their research output and can improve the visibility, usage and impact of research conducted at an institution. Other functions of an institutional repository include knowledge management, research assessment, and open access to scholarly research.
In 2003, the functions of an institutional repository were described by Clifford Lynch in relation to universities. He stated that:
"... a university-based institutional repository is a set of services that a university offers to the members of its community for the management and dissemination of digital materials created by the institution and its community members. It is most essentially an organizational commitment to the stewardship of these digital materials, including long-term preservation where appropriate, as well as organization and access or distribution."
The content of an institutional repository depends on the focus of the institution. Higher education institutions conduct research across multiple disciplines, thus research from a variety of academic subjects. Examples of such institutional repositories include the MIT Institutional Repository. A disciplinary repository is subject specific. It holds and provides access to scholarly research in a particular discipline. While there can be disciplinary repositories for one institution, disciplinary repositories are frequently not tied to a specific institution. The PsyDok disciplinary repository, for example, holds German-language research in psychology, while SSOAR is an international social science full-text server. Content included in an institutional repository can be both digitized and born-digital.
Open-access repositories
Institutional repositories that provide access to research to users outside the institutional community are one of the recommended ways to achieve the open access vision described in the Budapest Open Access Initiative definition of open access. This is sometimes referred to as the self-archiving or "green" route to open access.
Developing an institutional repository
Steps in the development of an institutional repository include choosing a platform and defining metadata practices. Designing an IR requires working with faculty to identify the type of content the library needs to support Marketing and promoting the Institutional repository is important to enhance access and increase the visibility of the researchers. Libraries will also need to target their marketing efforts to different groups of stakeholders. They may generate faculty interest by describing how an IR can support research or improve future findability of articles
Software
Most institutional repository software platforms can use OAI-PMH to harvest metadata. For example, DSpace supports OAI-PMH.
A 2014 survey commissioned by Duraspace found that 72% of respondents indicated that their institutional repository is hosted by a third party.
Aggregators
The Confederation of Open Access Repositories (COAR) states in its manifesto that "Each individual repository is of limited value for research: the real power of Open Access lies in the possibility of connecting and tying together repositories, which is why we need interoperability. In order to create a seamless layer of content through connected repositories from around the world, open access relies on interoperability, the ability for systems to communicate with each other and pass information back and forth in a usable format. Interoperability allows us to exploit today's computational power so that we can aggregate, data mine, create new tools and services, and generate new knowledge from repository content."
Interoperability is achieved in the world of institutional repositories by using protocols such as OAI-PMH. This allows search engines and open access aggregators, such as BASE, CORE and Unpaywall, to index repository metadata and content and provide value-added services on top of this content.
The Digital Commons Network aggregates by discipline some 500 institutional repositories running on the Bepress Digital Commons platform. It includes more than two million full-text objects.
See also
Digital Assets Repository – at Bibliotheca Alexandrina in Egypt
Current research information system (CRIS)
:Category:Open-access archives
Library publishing
Registry of Open Access Repositories
Scholarly commons
CORE (research service)
References
Further reading
External links
Ranking Web of World Repositories
List of repository software on Libopedia
Practical guidelines for starting an institutional repository
Open access (publishing)
Communication
Academic publishing
Research
Open-access archives
|
Olivia is the second studio album by the British-Australian singer-songwriter Olivia Newton-John, released in 1972. Two of its songs were released as singles ("What Is Life" and "Just a Little Too Much"). In its initial release, it was not issued in the United States, though it was sold there as an import. A digitally remastered version was released in 1995.
She covers two songs from George Harrison on this album, "Behind That Locked Door" and "What Is Life", both originated from Harrison's first solo album All Things Must Pass published in 1970.
Reception
The first single "What Is Life" reached number 18 in Ireland, and number 16 in the UK, but the album itself was a commercial failure when released in the UK on Pye International in 1972.
The cover art, done in blue tint, was later used (in a blueish-green tint) as the cover of the US release of Let Me Be There on MCA Records in 1973, following the success of the hit single penned by John Rostill.
Track listing
"Angel of the Morning" (Chip Taylor) – 3:54
"Just a Little Too Much" (Johnny Burnette) – 2:07
"If We Only Have Love" (Eric Blau, Jacques Brel, Mort Shuman) – 3:22
"Winterwood" (Don McLean) – 2:48
"My Old Man's Got a Gun" (John Farrar) – 2:48
"Changes" (Olivia Newton-John) – 2:30
"I'm a Small and Lonely Light" (John Farrar, Peter Best) – 2:43
"Why Don't You Write Me" (Paul Simon) – 2:38
"Mary Skeffington" (Gerry Rafferty) – 2:29
"Behind That Locked Door" (George Harrison) – 3:06
"What Is Life" (George Harrison) – 3:21
"Everything I Own" (David Gates) – 3:00
"Living in Harmony" (Alan Tarney, Trevor Spencer) – 2:47
"I Will Touch You" (Steve Cagan) – 3:05
References
1972 albums
Olivia Newton-John albums
Albums with cover art by Hipgnosis
Albums produced by Bruce Welch
Albums produced by John Farrar
|
Online platform may refer to:
Online platforms for collaborative consumption
Online discussion platform
Online marketing platform
Online video platform
Electronic trading platform, for financial products
|
The Battle of Saraqeb started eleven days after the victory of the Syrian Army in the Battle of Idlib of March 2012, where they took back the main city of Idlib province. Saraqib was considered an important strategic point because of its size, being the second largest city of the province, and its geographic position at the junction of two highways going to Aleppo: one going south towards Hama, Homs and Damascus, and one going west towards Latakia. It was also used as a base to launch attacks on military convoys.
On 24 March, the Syrian Army shelled the city briefly while leading a ground assault at the same time. A column of tanks entered the city to attack the defenses of the rebels, while infantry backed by snipers led the second wave to pursue the remaining fighters. The Free Syrian Army fighters fought back the first day and damaged a tank. In the fighting 18 of them were killed. After the first day, the rebels were forced to withdraw from the city after the army took full control of it. An opposition group accused the army of burning most of the shops in the town and called for observers to come in the city. After the battle, security forces and Shabiha militia searched for suspected rebels and captured at least 24 and executed them.
On 28 March, the army continued their offensive and took control of Khan Sibil, a village near Saraqeb. The Arab news channel Al Jazeera showed video footage of the destruction of the city during the battle which killed dozens of armed men and civilians.
Aftermath
On 1 November 2012 rebels attacked three, and overran at least one, army checkpoints on the road to Saraqeb, killing eight soldiers and seven rebels. The rebels captured and killed two government soldiers by beating and shooting. On 2 November, Syrian Army had completely withdrawn from Saraqib. After capturing Saraqib, FSA started to bomb the Syrian Army's Taftanaz Helicopter Air Base.
References
External links
In Cold Blood, Human Rights Watch, 10 April 2012.
They Burned My Heart, Human Rights Watch, 3 May 2012.
Military operations of the Syrian civil war in 2012
Idlib Governorate in the Syrian civil war
Military operations of the Syrian civil war involving the Syrian government
Military operations of the Syrian civil war involving the Free Syrian Army
Battles of the Syrian civil war
|
```javascript
define("ace/ext/elastic_tabstops_lite",["require","exports","module","ace/editor","ace/config"],function(e,t,n){"use strict";var r=function(e){this.$editor=e;var t=this,n=[],r=!1;this.onAfterExec=function(){r=!1,t.processRows(n),n=[]},this.onExec=function(){r=!0},this.onChange=function(e){r&&(n.indexOf(e.start.row)==-1&&n.push(e.start.row),e.end.row!=e.start.row&&n.push(e.end.row))}};(function(){this.processRows=function(e){this.$inChange=!0;var t=[];for(var n=0,r=e.length;n<r;n++){var i=e[n];if(t.indexOf(i)>-1)continue;var s=this.$findCellWidthsForBlock(i),o=this.$setBlockCellWidthsToMax(s.cellWidths),u=s.firstRow;for(var a=0,f=o.length;a<f;a++){var l=o[a];t.push(u),this.$adjustRow(u,l),u++}}this.$inChange=!1},this.$findCellWidthsForBlock=function(e){var t=[],n,r=e;while(r>=0){n=this.$cellWidthsForRow(r);if(n.length==0)break;t.unshift(n),r--}var i=r+1;r=e;var s=this.$editor.session.getLength();while(r<s-1){r++,n=this.$cellWidthsForRow(r);if(n.length==0)break;t.push(n)}return{cellWidths:t,firstRow:i}},this.$cellWidthsForRow=function(e){var t=this.$selectionColumnsForRow(e),n=[-1].concat(this.$tabsForRow(e)),r=n.map(function(e){return 0}).slice(1),i=this.$editor.session.getLine(e);for(var s=0,o=n.length-1;s<o;s++){var u=n[s]+1,a=n[s+1],f=this.$rightmostSelectionInCell(t,a),l=i.substring(u,a);r[s]=Math.max(l.replace(/\s+$/g,"").length,f-u)}return r},this.$selectionColumnsForRow=function(e){var t=[],n=this.$editor.getCursorPosition();return this.$editor.session.getSelection().isEmpty()&&e==n.row&&t.push(n.column),t},this.$setBlockCellWidthsToMax=function(e){var t=!0,n,r,i,s=this.$izip_longest(e);for(var o=0,u=s.length;o<u;o++){var a=s[o];if(!a.push){console.error(a);continue}a.push(NaN);for(var f=0,l=a.length;f<l;f++){var c=a[f];t&&(n=f,i=0,t=!1);if(isNaN(c)){r=f;for(var h=n;h<r;h++)e[h][o]=i;t=!0}i=Math.max(i,c)}}return e},this.$rightmostSelectionInCell=function(e,t){var n=0;if(e.length){var r=[];for(var i=0,s=e.length;i<s;i++)e[i]<=t?r.push(i):r.push(0);n=Math.max.apply(Math,r)}return n},this.$tabsForRow=function(e){var t=[],n=this.$editor.session.getLine(e),r=/\t/g,i;while((i=r.exec(n))!=null)t.push(i.index);return t},this.$adjustRow=function(e,t){var n=this.$tabsForRow(e);if(n.length==0)return;var r=0,i=-1,s=this.$izip(t,n);for(var o=0,u=s.length;o<u;o++){var a=s[o][0],f=s[o][1];i+=1+a,f+=r;var l=i-f;if(l==0)continue;var c=this.$editor.session.getLine(e).substr(0,f),h=c.replace(/\s*$/g,""),p=c.length-h.length;l>0&&(this.$editor.session.getDocument().insertInLine({row:e,column:f+1},Array(l+1).join(" ")+" "),this.$editor.session.getDocument().removeInLine(e,f,f+1),r+=l),l<0&&p>=-l&&(this.$editor.session.getDocument().removeInLine(e,f+l,f),r+=l)}},this.$izip_longest=function(e){if(!e[0])return[];var t=e[0].length,n=e.length;for(var r=1;r<n;r++){var i=e[r].length;i>t&&(t=i)}var s=[];for(var o=0;o<t;o++){var u=[];for(var r=0;r<n;r++)e[r][o]===""?u.push(NaN):u.push(e[r][o]);s.push(u)}return s},this.$izip=function(e,t){var n=e.length>=t.length?t.length:e.length,r=[];for(var i=0;i<n;i++){var s=[e[i],t[i]];r.push(s)}return r}}).call(r.prototype),t.ElasticTabstopsLite=r;var i=e("../editor").Editor;e("../config").defineOptions(i.prototype,"editor",{useElasticTabstops:{set:function(e){e?(this.elasticTabstops||(this.elasticTabstops=new r(this)),this.commands.on("afterExec",this.elasticTabstops.onAfterExec),this.commands.on("exec",this.elasticTabstops.onExec),this.on("change",this.elasticTabstops.onChange)):this.elasticTabstops&&(this.commands.removeListener("afterExec",this.elasticTabstops.onAfterExec),this.commands.removeListener("exec",this.elasticTabstops.onExec),this.removeListener("change",this.elasticTabstops.onChange))}}})}); (function() {
window.require(["ace/ext/elastic_tabstops_lite"], function(m) {
if (typeof module == "object" && typeof exports == "object" && module) {
module.exports = m;
}
});
})();
```
|
The 16"/45 caliber gun (spoken "sixteen-inch-forty-five-caliber") was used for the main batteries of the last class of Standard-type battleships for the United States Navy, the . These guns promised twice the muzzle energy over the Mark 7 12-inch/50 caliber guns of the and a 50% increase over the 14-inch/45 caliber guns of the , , and s.
Design
The 16-inch gun was a built-up gun constructed in a length of 45 calibers. The Mark 1 had an A tube, jacket, liner, and seven hoops, four locking rings and a screw-box liner. When the gun was designed in August 1913 it was referred to as the "Type Gun (45 Cal.)" as an effort to conceal the gun's true size of 16 inches. Gun No. 1, the prototype, was proof fired in July 1914, less than a year after it was designed. After some minor changes the gun was re-proofed in May 1916 with production approved in January 1917, for Gun Nos. 2–41. Bethlehem Steel was given a contract for 20 guns and an additional 20 castings were ordered from Watervliet Arsenal for assembly at the US Naval Gun Factory at the Washington Navy Yard.
The Mark 1 guns were upgraded to Marks 5 and 8 in the late 1930s. The Mark 5s have a larger chamber to permit larger charges and a new liner with a heavier taper carbon steel along with a liner locking ring and locking collar. The Mark 8, similar to the Mark 5, had a uniform rifling with a chromium plated bore for increased life.
Naval service
See also
List of naval guns
Weapons of comparable role, performance and era
BL 16 inch Mk I naval gun : British equivalent
41 cm/45 3rd Year Type naval gun : Japanese equivalent
References
External links
Bluejackets Manual, 1917, 4th revision: US Navy 14-inch Mark 1 gun
Naval guns of the United States
400 mm artillery
Military equipment introduced in the 1920s
|
```java
/*
*
*
* 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
*/
package toml.parser.test.validator;
import io.ballerina.toml.syntax.tree.DocumentMemberDeclarationNode;
import io.ballerina.toml.validator.BoilerplateGenerator;
import io.ballerina.toml.validator.schema.Schema;
import org.testng.Assert;
import org.testng.annotations.Test;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
/**
* Contains test cases to to boilerplate toml generation functionality.
*
* @since 2.0.0
*/
public class BoilerplateGeneratorTest {
@Test
public void testC2cSchema() throws IOException {
Path schemaPath = Paths.get("src", "test", "resources", "validator", "boilerplate", "c2c-schema.json");
Schema rootSchema = Schema.from(schemaPath);
BoilerplateGenerator generator = new BoilerplateGenerator(rootSchema);
StringBuilder actual = new StringBuilder();
for (DocumentMemberDeclarationNode s : generator.getNodes().values()) {
actual.append(s.toSourceCode());
}
Path expectedToml = Paths.get("src", "test", "resources", "validator", "boilerplate", "c2c-schema.toml");
String expected = Files.readString(expectedToml);
Assert.assertEquals(actual.toString(), expected);
}
@Test
public void testBasicSchema() throws IOException {
Path schemaPath = Paths.get("src", "test", "resources", "validator", "boilerplate", "basic-schema.json");
Schema rootSchema = Schema.from(schemaPath);
BoilerplateGenerator generator = new BoilerplateGenerator(rootSchema);
StringBuilder actual = new StringBuilder();
for (DocumentMemberDeclarationNode s : generator.getNodes().values()) {
actual.append(s.toSourceCode());
}
Path expectedToml = Paths.get("src", "test", "resources", "validator", "boilerplate", "basic-schema.toml");
String expected = Files.readString(expectedToml);
Assert.assertEquals(actual.toString(), expected);
}
}
```
|
El Amin Chentouf, (Arabic: الأمين شنتوف) (born 9 June 1981) is a Moroccan para-athlete running in T12 distance races. He has represented his country at three Summer Paralympics winning gold medals at each competition. Outside the Paralympics, Chentouf is also a world series Marathon champion, winning the T12/13 event at three London Marathons.
Personal history
Chentouf was born in Morocco in 1981. He is visually impaired.
Career history
Chentouf took up athletics in 2008. He made his senior international debut at the 2012 Summer Paralympics in London. He entered into three events, the 800m and 5,000m at T12 classifications and the 1,500m T13 race. He reached the podium in the 5,000m, taking gold with a world record breaking time of 13:53.76.
The following year he entered the IPC Athletics Marathon World Cup in London, his first competitive international marathon. He won the race in a time of 2:24:00, setting another world record in the T12 class. The same year he represented Morocco at the 2013 IPC Athletics World Championships in Lyon, Chentouf won gold medals in all three of his events, the 1500m, 5000m and the marathon.
Two years later, in the buildup to the 2016 Summer Paralympics in Rio de Janeiro, he took part in the inaugural IPC World Marathon Championships held in London. There he won the men's T11/T12 race with a time of 2:21.33. Later in the year he took part in his second World Championships, this time held in Doha. He failed to dominate the field as he had done so at Lyon, but he did win the bronze in the 1500 metres (T13). In Rio Chentouf cemented his reputation as one of the great distance runners in his class, by winning the men's marathon and taking the silver medal in the 5000 metres.
External links
Video of the final 5000 meters men's T12 World Championships 2013 wheelchair athletics, official channel of the International Paralympic Committee.
Video of the final 10,000 meters men's T12 World Para-Athletics 2013 Championships, official channel of the International Paralympic Committee.
References
1981 births
Living people
Paralympic athletes for Morocco
Visually impaired category Paralympic competitors
Athletes (track and field) at the 2012 Summer Paralympics
Athletes (track and field) at the 2016 Summer Paralympics
Paralympic gold medalists for Morocco
Paralympic silver medalists for Morocco
Moroccan male long-distance runners
Medalists at the 2012 Summer Paralympics
Medalists at the 2016 Summer Paralympics
Paralympic gold medalists in athletics (track and field)
Moroccan people with disabilities
|
```c
/**
* Tencent is pleased to support the open source community by making MSEC available.
*
*
*
* path_to_url
*
* Unless required by applicable law or agreed to in writing, software distributed under the
*/
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/select.h>
#include <sys/time.h>
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <fcntl.h>
#include <unistd.h>
#include <stdint.h>
#include "log.h"
#include "config.h"
#include "nlbapi.h"
#include "networking.h"
#include "zkplugin.h"
#include "utils.h"
#include "nlbtime.h"
#include "routeprocess.h"
/* */
struct netmng {
uint64_t timeout;
int32_t zk_revents;
int32_t listen_fd;
int32_t listen_revents;
};
static struct netmng net_mng = {
.timeout = 10, /* 10 */
.zk_revents = 0, /* ZK fd */
.listen_fd = -1, /* agentfd */
.listen_revents = 0, /* fd */
};
/* agent */
int32_t get_listen_fd(void)
{
return net_mng.listen_fd;
}
/**
* @brief
* @return =0 <0
*/
int32_t network_init(void)
{
int32_t ret;
int32_t fd;
/* zookeeper */
ret = nlb_zk_init(get_zk_host(), get_zk_timeout());
if (ret < 0) {
NLOG_ERROR("Nlb zookeeper init failed, ret [%d]", ret);
return -1;
}
/* bind UDP */
if (get_worker_mode() == SERVER_MODE) {
net_mng.listen_fd = -1;
return 0;
}
/* UDP */
fd = create_udp_socket();
if (fd < 0) {
NLOG_ERROR("Create udp socket failed, ret [%d]", ret);
return -2;
}
ret = bind_port(fd, "127.0.0.1", get_listen_port());
if (ret < 0) {
NLOG_ERROR("Bind port failed, ret [%d]", ret);
return -3;
}
net_mng.listen_fd = fd;
return 0;
}
/**
* @brief
* @info zookeeper
*/
int32_t network_poll(void)
{
int32_t ret;
int32_t maxfd, zkfd, listen_fd = net_mng.listen_fd;
int32_t zk_events, listen_events;
uint64_t zk_timeout, timeout;
fd_set rfds, wfds;
struct timeval tv;
FD_ZERO(&rfds);
FD_ZERO(&wfds);
/* zookeeper */
ret = nlb_zk_poll_events(&zkfd, &zk_events, &zk_timeout);
if (ret < 0) {
NLOG_ERROR("Nlb zookeeper poll events failed, ret [%d]", ret);
return -1;
}
if (zkfd != -1) {
if (zk_events & NLB_POLLIN) {
FD_SET(zkfd, &rfds);
}
if (zk_events & NLB_POLLOUT) {
FD_SET(zkfd, &wfds);
}
}
if (listen_fd != -1) {
FD_SET(listen_fd, &rfds);
}
listen_events = 0;
zk_events = 0;
maxfd = max(listen_fd, zkfd) + 1;
timeout = min(zk_timeout, net_mng.timeout);
covert_ms_2_tv(timeout, &tv);
/* */
if (select(maxfd, &rfds, &wfds, NULL, &tv) > 0) {
if (zkfd != -1) {
if (FD_ISSET(zkfd, &rfds)) {
zk_events |= NLB_POLLIN;
}
if (FD_ISSET(zkfd, &wfds)) {
zk_events |= NLB_POLLOUT;
}
}
if ((listen_fd != -1) && FD_ISSET(listen_fd, &rfds)) {
listen_events |= NLB_POLLIN;
}
}
/* */
net_mng.listen_revents = listen_events;
net_mng.zk_revents = zk_events;
return 0;
}
/**
* @brief
*/
int32_t network_process(void)
{
int32_t zk_revents = net_mng.zk_revents;
int32_t l_revents = net_mng.listen_revents;
int32_t listen_fd = net_mng.listen_fd;
nlb_zk_process(zk_revents);
if ((listen_fd != -1) && (l_revents & NLB_POLLIN))
process_route_request(listen_fd);
return 0;
}
```
|
|}
The Great Yorkshire Chase is a Premier Handicap National Hunt handicap chase in England which is open to horses aged five years or older.
It is run at Doncaster over a distance of 3 miles (4,828 metres), and it is scheduled to take place each year in January.
The race was first run in 1948. It is currently sponsored by Sky Bet and known as the Sky Bet Handicap Chase. The race held Listed status until 2022 and was re-classified as a Premier Handicap from the 2023 running when Listed status was removed from handicap races.
Records
Most successful horse (2 wins):
Ziga Boy – 2016, 2017
Most successful jockey (3 wins):
Tim Molony – Arctic Gold (1951), Knock Hard (1953), ESB (1957)
Most successful trainer (4 wins):
Fred Rimell – Old Morality (1949), ESB (1957), Nicolaus Silver (1962), Rough House (1975)
Winners
See also
List of British National Hunt races
Horseracing in Great Britain
References
Sources
Racing Post
, , , , , , , , ,
, , , , , , , , ,
, , , , , , , , ,
Doncaster Racecourse
National Hunt races in Great Britain
National Hunt chases
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.