text
stringlengths
1
22.8M
```c++ // // 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 NVIDIA CORPORATION nor the names of its // contributors may be used to endorse or promote products derived // from this software without specific prior written permission. // // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY // EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR // CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, // EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, // PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR // PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY // OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. // // This file was generated by NvParameterized/scripts/GenParameterized.pl #include "ClothingActorParam_0p9.h" #include <string.h> #include <stdlib.h> using namespace NvParameterized; namespace nvidia { namespace parameterized { using namespace ClothingActorParam_0p9NS; const char* const ClothingActorParam_0p9Factory::vptr = NvParameterized::getVptr<ClothingActorParam_0p9, ClothingActorParam_0p9::ClassAlignment>(); const uint32_t NumParamDefs = 72; static NvParameterized::DefinitionImpl* ParamDefTable; // now allocated in buildTree [NumParamDefs]; static const size_t ParamLookupChildrenTable[] = { 1, 2, 3, 8, 9, 10, 11, 12, 13, 14, 15, 20, 23, 26, 27, 29, 40, 56, 59, 60, 61, 63, 65, 66, 67, 68, 69, 70, 4, 5, 6, 7, 16, 17, 18, 19, 21, 22, 24, 25, 28, 30, 31, 32, 37, 38, 39, 33, 34, 35, 36, 41, 47, 48, 53, 54, 55, 42, 43, 44, 45, 46, 49, 50, 51, 52, 57, 58, 62, 64, 71, }; #define TENUM(type) nvidia::##type #define CHILDREN(index) &ParamLookupChildrenTable[index] static const NvParameterized::ParamLookupNode ParamLookupTable[NumParamDefs] = { { TYPE_STRUCT, false, 0, CHILDREN(0), 28 }, { TYPE_MAT44, false, (size_t)(&((ParametersStruct*)0)->globalPose), NULL, 0 }, // globalPose { TYPE_BOOL, false, (size_t)(&((ParametersStruct*)0)->useHardwareCloth), NULL, 0 }, // useHardwareCloth { TYPE_STRUCT, false, (size_t)(&((ParametersStruct*)0)->flags), CHILDREN(28), 4 }, // flags { TYPE_BOOL, false, (size_t)(&((ClothingActorFlags_Type*)0)->ParallelCpuSkinning), NULL, 0 }, // flags.ParallelCpuSkinning { TYPE_BOOL, false, (size_t)(&((ClothingActorFlags_Type*)0)->RecomputeNormals), NULL, 0 }, // flags.RecomputeNormals { TYPE_BOOL, false, (size_t)(&((ClothingActorFlags_Type*)0)->Visualize), NULL, 0 }, // flags.Visualize { TYPE_BOOL, false, (size_t)(&((ClothingActorFlags_Type*)0)->CorrectSimulationNormals), NULL, 0 }, // flags.CorrectSimulationNormals { TYPE_BOOL, false, (size_t)(&((ParametersStruct*)0)->fallbackSkinning), NULL, 0 }, // fallbackSkinning { TYPE_BOOL, false, (size_t)(&((ParametersStruct*)0)->slowStart), NULL, 0 }, // slowStart { TYPE_BOOL, false, (size_t)(&((ParametersStruct*)0)->useInternalBoneOrder), NULL, 0 }, // useInternalBoneOrder { TYPE_BOOL, false, (size_t)(&((ParametersStruct*)0)->updateStateWithGlobalMatrices), NULL, 0 }, // updateStateWithGlobalMatrices { TYPE_U32, false, (size_t)(&((ParametersStruct*)0)->uvChannelForTangentUpdate), NULL, 0 }, // uvChannelForTangentUpdate { TYPE_F32, false, (size_t)(&((ParametersStruct*)0)->maxDistanceBlendTime), NULL, 0 }, // maxDistanceBlendTime { TYPE_U32, false, (size_t)(&((ParametersStruct*)0)->clothingMaterialIndex), NULL, 0 }, // clothingMaterialIndex { TYPE_STRUCT, false, (size_t)(&((ParametersStruct*)0)->lodWeights), CHILDREN(32), 4 }, // lodWeights { TYPE_F32, false, (size_t)(&((LODWeights_Type*)0)->maxDistance), NULL, 0 }, // lodWeights.maxDistance { TYPE_F32, false, (size_t)(&((LODWeights_Type*)0)->distanceWeight), NULL, 0 }, // lodWeights.distanceWeight { TYPE_F32, false, (size_t)(&((LODWeights_Type*)0)->bias), NULL, 0 }, // lodWeights.bias { TYPE_F32, false, (size_t)(&((LODWeights_Type*)0)->benefitsBias), NULL, 0 }, // lodWeights.benefitsBias { TYPE_STRUCT, false, (size_t)(&((ParametersStruct*)0)->windParams), CHILDREN(36), 2 }, // windParams { TYPE_VEC3, false, (size_t)(&((WindParameters_Type*)0)->Velocity), NULL, 0 }, // windParams.Velocity { TYPE_F32, false, (size_t)(&((WindParameters_Type*)0)->Adaption), NULL, 0 }, // windParams.Adaption { TYPE_STRUCT, false, (size_t)(&((ParametersStruct*)0)->maxDistanceScale), CHILDREN(38), 2 }, // maxDistanceScale { TYPE_F32, false, (size_t)(&((MaxDistanceScale_Type*)0)->Scale), NULL, 0 }, // maxDistanceScale.Scale { TYPE_BOOL, false, (size_t)(&((MaxDistanceScale_Type*)0)->Multipliable), NULL, 0 }, // maxDistanceScale.Multipliable { TYPE_U64, false, (size_t)(&((ParametersStruct*)0)->userData), NULL, 0 }, // userData { TYPE_ARRAY, true, (size_t)(&((ParametersStruct*)0)->boneMatrices), CHILDREN(40), 1 }, // boneMatrices { TYPE_MAT44, false, 1 * sizeof(physx::PxMat44), NULL, 0 }, // boneMatrices[] { TYPE_STRUCT, false, (size_t)(&((ParametersStruct*)0)->clothDescTemplate), CHILDREN(41), 6 }, // clothDescTemplate { TYPE_F32, false, (size_t)(&((ClothDescTemplate_Type*)0)->collisionResponseCoefficient), NULL, 0 }, // clothDescTemplate.collisionResponseCoefficient { TYPE_U16, false, (size_t)(&((ClothDescTemplate_Type*)0)->collisionGroup), NULL, 0 }, // clothDescTemplate.collisionGroup { TYPE_STRUCT, false, (size_t)(&((ClothDescTemplate_Type*)0)->groupsMask), CHILDREN(47), 4 }, // clothDescTemplate.groupsMask { TYPE_U32, false, (size_t)(&((GroupsMask_Type*)0)->bits0), NULL, 0 }, // clothDescTemplate.groupsMask.bits0 { TYPE_U32, false, (size_t)(&((GroupsMask_Type*)0)->bits1), NULL, 0 }, // clothDescTemplate.groupsMask.bits1 { TYPE_U32, false, (size_t)(&((GroupsMask_Type*)0)->bits2), NULL, 0 }, // clothDescTemplate.groupsMask.bits2 { TYPE_U32, false, (size_t)(&((GroupsMask_Type*)0)->bits3), NULL, 0 }, // clothDescTemplate.groupsMask.bits3 { TYPE_BOUNDS3, false, (size_t)(&((ClothDescTemplate_Type*)0)->validBounds), NULL, 0 }, // clothDescTemplate.validBounds { TYPE_U64, false, (size_t)(&((ClothDescTemplate_Type*)0)->compartment), NULL, 0 }, // clothDescTemplate.compartment { TYPE_U64, false, (size_t)(&((ClothDescTemplate_Type*)0)->userData), NULL, 0 }, // clothDescTemplate.userData { TYPE_STRUCT, false, (size_t)(&((ParametersStruct*)0)->shapeDescTemplate), CHILDREN(51), 6 }, // shapeDescTemplate { TYPE_STRUCT, false, (size_t)(&((ShapeDescTemplate_Type*)0)->flags), CHILDREN(57), 5 }, // shapeDescTemplate.flags { TYPE_BOOL, false, (size_t)(&((ShapeDescFlags_Type*)0)->NX_SF_VISUALIZATION), NULL, 0 }, // shapeDescTemplate.flags.NX_SF_VISUALIZATION { TYPE_BOOL, false, (size_t)(&((ShapeDescFlags_Type*)0)->NX_SF_DISABLE_COLLISION), NULL, 0 }, // shapeDescTemplate.flags.NX_SF_DISABLE_COLLISION { TYPE_BOOL, false, (size_t)(&((ShapeDescFlags_Type*)0)->NX_SF_DISABLE_RAYCASTING), NULL, 0 }, // shapeDescTemplate.flags.NX_SF_DISABLE_RAYCASTING { TYPE_BOOL, false, (size_t)(&((ShapeDescFlags_Type*)0)->NX_SF_DYNAMIC_DYNAMIC_CCD), NULL, 0 }, // shapeDescTemplate.flags.NX_SF_DYNAMIC_DYNAMIC_CCD { TYPE_BOOL, false, (size_t)(&((ShapeDescFlags_Type*)0)->NX_SF_DISABLE_SCENE_QUERIES), NULL, 0 }, // shapeDescTemplate.flags.NX_SF_DISABLE_SCENE_QUERIES { TYPE_U16, false, (size_t)(&((ShapeDescTemplate_Type*)0)->collisionGroup), NULL, 0 }, // shapeDescTemplate.collisionGroup { TYPE_STRUCT, false, (size_t)(&((ShapeDescTemplate_Type*)0)->groupsMask), CHILDREN(62), 4 }, // shapeDescTemplate.groupsMask { TYPE_U32, false, (size_t)(&((GroupsMask_Type*)0)->bits0), NULL, 0 }, // shapeDescTemplate.groupsMask.bits0 { TYPE_U32, false, (size_t)(&((GroupsMask_Type*)0)->bits1), NULL, 0 }, // shapeDescTemplate.groupsMask.bits1 { TYPE_U32, false, (size_t)(&((GroupsMask_Type*)0)->bits2), NULL, 0 }, // shapeDescTemplate.groupsMask.bits2 { TYPE_U32, false, (size_t)(&((GroupsMask_Type*)0)->bits3), NULL, 0 }, // shapeDescTemplate.groupsMask.bits3 { TYPE_U16, false, (size_t)(&((ShapeDescTemplate_Type*)0)->materialIndex), NULL, 0 }, // shapeDescTemplate.materialIndex { TYPE_U64, false, (size_t)(&((ShapeDescTemplate_Type*)0)->userData), NULL, 0 }, // shapeDescTemplate.userData { TYPE_U64, false, (size_t)(&((ShapeDescTemplate_Type*)0)->name), NULL, 0 }, // shapeDescTemplate.name { TYPE_STRUCT, false, (size_t)(&((ParametersStruct*)0)->actorDescTemplate), CHILDREN(66), 2 }, // actorDescTemplate { TYPE_U64, false, (size_t)(&((ActorDescTemplate_Type*)0)->userData), NULL, 0 }, // actorDescTemplate.userData { TYPE_U64, false, (size_t)(&((ActorDescTemplate_Type*)0)->name), NULL, 0 }, // actorDescTemplate.name { TYPE_F32, false, (size_t)(&((ParametersStruct*)0)->actorScale), NULL, 0 }, // actorScale { TYPE_REF, false, (size_t)(&((ParametersStruct*)0)->runtimeCooked), NULL, 0 }, // runtimeCooked { TYPE_ARRAY, true, (size_t)(&((ParametersStruct*)0)->morphDisplacements), CHILDREN(68), 1 }, // morphDisplacements { TYPE_VEC3, false, 1 * sizeof(physx::PxVec3), NULL, 0 }, // morphDisplacements[] { TYPE_ARRAY, true, (size_t)(&((ParametersStruct*)0)->morphPhysicalMeshNewPositions), CHILDREN(69), 1 }, // morphPhysicalMeshNewPositions { TYPE_VEC3, false, 1 * sizeof(physx::PxVec3), NULL, 0 }, // morphPhysicalMeshNewPositions[] { TYPE_BOOL, false, (size_t)(&((ParametersStruct*)0)->allowAdaptiveTargetFrequency), NULL, 0 }, // allowAdaptiveTargetFrequency { TYPE_BOOL, false, (size_t)(&((ParametersStruct*)0)->useVelocityClamping), NULL, 0 }, // useVelocityClamping { TYPE_BOUNDS3, false, (size_t)(&((ParametersStruct*)0)->vertexVelocityClamp), NULL, 0 }, // vertexVelocityClamp { TYPE_F32, false, (size_t)(&((ParametersStruct*)0)->pressure), NULL, 0 }, // pressure { TYPE_BOOL, false, (size_t)(&((ParametersStruct*)0)->multiplyGlobalPoseIntoBones), NULL, 0 }, // multiplyGlobalPoseIntoBones { TYPE_ARRAY, true, (size_t)(&((ParametersStruct*)0)->overrideMaterialNames), CHILDREN(70), 1 }, // overrideMaterialNames { TYPE_STRING, false, 1 * sizeof(NvParameterized::DummyStringStruct), NULL, 0 }, // overrideMaterialNames[] }; bool ClothingActorParam_0p9::mBuiltFlag = false; NvParameterized::MutexType ClothingActorParam_0p9::mBuiltFlagMutex; ClothingActorParam_0p9::ClothingActorParam_0p9(NvParameterized::Traits* traits, void* buf, int32_t* refCount) : NvParameters(traits, buf, refCount) { //mParameterizedTraits->registerFactory(className(), &ClothingActorParam_0p9FactoryInst); if (!buf) //Do not init data if it is inplace-deserialized { initDynamicArrays(); initStrings(); initReferences(); initDefaults(); } } ClothingActorParam_0p9::~ClothingActorParam_0p9() { freeStrings(); freeReferences(); freeDynamicArrays(); } void ClothingActorParam_0p9::destroy() { // We cache these fields here to avoid overwrite in destructor bool doDeallocateSelf = mDoDeallocateSelf; NvParameterized::Traits* traits = mParameterizedTraits; int32_t* refCount = mRefCount; void* buf = mBuffer; this->~ClothingActorParam_0p9(); NvParameters::destroy(this, traits, doDeallocateSelf, refCount, buf); } const NvParameterized::DefinitionImpl* ClothingActorParam_0p9::getParameterDefinitionTree(void) { if (!mBuiltFlag) // Double-checked lock { NvParameterized::MutexType::ScopedLock lock(mBuiltFlagMutex); if (!mBuiltFlag) { buildTree(); } } return(&ParamDefTable[0]); } const NvParameterized::DefinitionImpl* ClothingActorParam_0p9::getParameterDefinitionTree(void) const { ClothingActorParam_0p9* tmpParam = const_cast<ClothingActorParam_0p9*>(this); if (!mBuiltFlag) // Double-checked lock { NvParameterized::MutexType::ScopedLock lock(mBuiltFlagMutex); if (!mBuiltFlag) { tmpParam->buildTree(); } } return(&ParamDefTable[0]); } NvParameterized::ErrorType ClothingActorParam_0p9::getParameterHandle(const char* long_name, Handle& handle) const { ErrorType Ret = NvParameters::getParameterHandle(long_name, handle); if (Ret != ERROR_NONE) { return(Ret); } size_t offset; void* ptr; getVarPtr(handle, ptr, offset); if (ptr == NULL) { return(ERROR_INDEX_OUT_OF_RANGE); } return(ERROR_NONE); } NvParameterized::ErrorType ClothingActorParam_0p9::getParameterHandle(const char* long_name, Handle& handle) { ErrorType Ret = NvParameters::getParameterHandle(long_name, handle); if (Ret != ERROR_NONE) { return(Ret); } size_t offset; void* ptr; getVarPtr(handle, ptr, offset); if (ptr == NULL) { return(ERROR_INDEX_OUT_OF_RANGE); } return(ERROR_NONE); } void ClothingActorParam_0p9::getVarPtr(const Handle& handle, void*& ptr, size_t& offset) const { ptr = getVarPtrHelper(&ParamLookupTable[0], const_cast<ClothingActorParam_0p9::ParametersStruct*>(&parameters()), handle, offset); } /* Dynamic Handle Indices */ /* [0] - overrideMaterialNames (not an array of structs) */ void ClothingActorParam_0p9::freeParameterDefinitionTable(NvParameterized::Traits* traits) { if (!traits) { return; } if (!mBuiltFlag) // Double-checked lock { return; } NvParameterized::MutexType::ScopedLock lock(mBuiltFlagMutex); if (!mBuiltFlag) { return; } for (uint32_t i = 0; i < NumParamDefs; ++i) { ParamDefTable[i].~DefinitionImpl(); } traits->free(ParamDefTable); mBuiltFlag = false; } #define PDEF_PTR(index) (&ParamDefTable[index]) void ClothingActorParam_0p9::buildTree(void) { uint32_t allocSize = sizeof(NvParameterized::DefinitionImpl) * NumParamDefs; ParamDefTable = (NvParameterized::DefinitionImpl*)(mParameterizedTraits->alloc(allocSize)); memset(ParamDefTable, 0, allocSize); for (uint32_t i = 0; i < NumParamDefs; ++i) { NV_PARAM_PLACEMENT_NEW(ParamDefTable + i, NvParameterized::DefinitionImpl)(*mParameterizedTraits); } // Initialize DefinitionImpl node: nodeIndex=0, longName="" { NvParameterized::DefinitionImpl* ParamDef = &ParamDefTable[0]; ParamDef->init("", TYPE_STRUCT, "STRUCT", true); } // Initialize DefinitionImpl node: nodeIndex=1, longName="globalPose" { NvParameterized::DefinitionImpl* ParamDef = &ParamDefTable[1]; ParamDef->init("globalPose", TYPE_MAT44, NULL, true); #ifdef NV_PARAMETERIZED_HIDE_DESCRIPTIONS static HintImpl HintTable[1]; static Hint* HintPtrTable[1] = { &HintTable[0], }; HintTable[0].init("editorDisplay", "false", true); ParamDefTable[1].setHints((const NvParameterized::Hint**)HintPtrTable, 1); #else static HintImpl HintTable[2]; static Hint* HintPtrTable[2] = { &HintTable[0], &HintTable[1], }; HintTable[0].init("editorDisplay", "false", true); HintTable[1].init("shortDescription", "The pose where the clothing asset will be put into the scene", true); ParamDefTable[1].setHints((const NvParameterized::Hint**)HintPtrTable, 2); #endif /* NV_PARAMETERIZED_HIDE_DESCRIPTIONS */ } // Initialize DefinitionImpl node: nodeIndex=2, longName="useHardwareCloth" { NvParameterized::DefinitionImpl* ParamDef = &ParamDefTable[2]; ParamDef->init("useHardwareCloth", TYPE_BOOL, NULL, true); #ifdef NV_PARAMETERIZED_HIDE_DESCRIPTIONS #else static HintImpl HintTable[1]; static Hint* HintPtrTable[1] = { &HintTable[0], }; HintTable[0].init("shortDescription", "Turns on hardware acceleration for the cloth simulation", true); ParamDefTable[2].setHints((const NvParameterized::Hint**)HintPtrTable, 1); #endif /* NV_PARAMETERIZED_HIDE_DESCRIPTIONS */ } // Initialize DefinitionImpl node: nodeIndex=3, longName="flags" { NvParameterized::DefinitionImpl* ParamDef = &ParamDefTable[3]; ParamDef->init("flags", TYPE_STRUCT, "ClothingActorFlags", true); #ifdef NV_PARAMETERIZED_HIDE_DESCRIPTIONS #else static HintImpl HintTable[1]; static Hint* HintPtrTable[1] = { &HintTable[0], }; HintTable[0].init("shortDescription", "A selection of flags, can be updated at runtime.", true); ParamDefTable[3].setHints((const NvParameterized::Hint**)HintPtrTable, 1); #endif /* NV_PARAMETERIZED_HIDE_DESCRIPTIONS */ } // Initialize DefinitionImpl node: nodeIndex=4, longName="flags.ParallelCpuSkinning" { NvParameterized::DefinitionImpl* ParamDef = &ParamDefTable[4]; ParamDef->init("ParallelCpuSkinning", TYPE_BOOL, NULL, true); #ifdef NV_PARAMETERIZED_HIDE_DESCRIPTIONS #else static HintImpl HintTable[2]; static Hint* HintPtrTable[2] = { &HintTable[0], &HintTable[1], }; HintTable[0].init("longDescription", "All graphical vertices without correspondence to physical vertices or\ntriangles are skinned normally. This flag specifies whether this happens\nduring Physics scene simulation, or after.\nNote: If this flag is set, an inconsistency can arise when calling\nNxClothingActor::updateRenderResource in between NxApexScene::simulate\nand NxApexScene::fetchResults. As a workaround, you should only call\nNxClothingActor::updateRenderResources _after_ NxApexScene::fetchResults\nhas terminated.\n", true); HintTable[1].init("shortDescription", "Determines whether or not to perform CPU skinning in parallel", true); ParamDefTable[4].setHints((const NvParameterized::Hint**)HintPtrTable, 2); #endif /* NV_PARAMETERIZED_HIDE_DESCRIPTIONS */ } // Initialize DefinitionImpl node: nodeIndex=5, longName="flags.RecomputeNormals" { NvParameterized::DefinitionImpl* ParamDef = &ParamDefTable[5]; ParamDef->init("RecomputeNormals", TYPE_BOOL, NULL, true); #ifdef NV_PARAMETERIZED_HIDE_DESCRIPTIONS #else static HintImpl HintTable[2]; static Hint* HintPtrTable[2] = { &HintTable[0], &HintTable[1], }; HintTable[0].init("longDescription", "This usually leads to better looking results, but is more expensive to\ncompute. Default is off.\n", true); HintTable[1].init("shortDescription", "Fully recomputes the normals on the final mesh.", true); ParamDefTable[5].setHints((const NvParameterized::Hint**)HintPtrTable, 2); #endif /* NV_PARAMETERIZED_HIDE_DESCRIPTIONS */ } // Initialize DefinitionImpl node: nodeIndex=6, longName="flags.Visualize" { NvParameterized::DefinitionImpl* ParamDef = &ParamDefTable[6]; ParamDef->init("Visualize", TYPE_BOOL, NULL, true); #ifdef NV_PARAMETERIZED_HIDE_DESCRIPTIONS #else static HintImpl HintTable[1]; static Hint* HintPtrTable[1] = { &HintTable[0], }; HintTable[0].init("shortDescription", "Determines whether or not to display debug visualization for this clothing actor", true); ParamDefTable[6].setHints((const NvParameterized::Hint**)HintPtrTable, 1); #endif /* NV_PARAMETERIZED_HIDE_DESCRIPTIONS */ } // Initialize DefinitionImpl node: nodeIndex=7, longName="flags.CorrectSimulationNormals" { NvParameterized::DefinitionImpl* ParamDef = &ParamDefTable[7]; ParamDef->init("CorrectSimulationNormals", TYPE_BOOL, NULL, true); #ifdef NV_PARAMETERIZED_HIDE_DESCRIPTIONS #else static HintImpl HintTable[2]; static Hint* HintPtrTable[2] = { &HintTable[0], &HintTable[1], }; HintTable[0].init("longDescription", "The MaxDistance=0 vertices can have a perturbed simulation normal. This usually\nhappens only for meshes where the MaxDistance=0 vertices are somewhere in the\nmiddle separating a simulated and non-simulated region. The normal for those\nvertices will be computed only by the simulated triangles which can lead to\nwrong results.\nThis solution will use the normals from the original simulation mesh and skin\nthem with respect to the local pose.\n", true); HintTable[1].init("shortDescription", "", true); ParamDefTable[7].setHints((const NvParameterized::Hint**)HintPtrTable, 2); #endif /* NV_PARAMETERIZED_HIDE_DESCRIPTIONS */ } // Initialize DefinitionImpl node: nodeIndex=8, longName="fallbackSkinning" { NvParameterized::DefinitionImpl* ParamDef = &ParamDefTable[8]; ParamDef->init("fallbackSkinning", TYPE_BOOL, NULL, true); #ifdef NV_PARAMETERIZED_HIDE_DESCRIPTIONS #else static HintImpl HintTable[2]; static Hint* HintPtrTable[2] = { &HintTable[0], &HintTable[1], }; HintTable[0].init("longDescription", "Performs the regular boneweighted skinning on the CPU before giving the\ndata out through the rendering API.\n", true); HintTable[1].init("shortDescription", "Performs skinning in software", true); ParamDefTable[8].setHints((const NvParameterized::Hint**)HintPtrTable, 2); #endif /* NV_PARAMETERIZED_HIDE_DESCRIPTIONS */ } // Initialize DefinitionImpl node: nodeIndex=9, longName="slowStart" { NvParameterized::DefinitionImpl* ParamDef = &ParamDefTable[9]; ParamDef->init("slowStart", TYPE_BOOL, NULL, true); #ifdef NV_PARAMETERIZED_HIDE_DESCRIPTIONS #else static HintImpl HintTable[2]; static Hint* HintPtrTable[2] = { &HintTable[0], &HintTable[1], }; HintTable[0].init("longDescription", "The first time a NxClothingActor starts to be simulated is with full max\ndistance. This prevents starting with full max distance and instead blending\nin as it will do the second time.\n", true); HintTable[1].init("shortDescription", "Prevents from having full max distance right from the start", true); ParamDefTable[9].setHints((const NvParameterized::Hint**)HintPtrTable, 2); #endif /* NV_PARAMETERIZED_HIDE_DESCRIPTIONS */ } // Initialize DefinitionImpl node: nodeIndex=10, longName="useInternalBoneOrder" { NvParameterized::DefinitionImpl* ParamDef = &ParamDefTable[10]; ParamDef->init("useInternalBoneOrder", TYPE_BOOL, NULL, true); #ifdef NV_PARAMETERIZED_HIDE_DESCRIPTIONS static HintImpl HintTable[1]; static Hint* HintPtrTable[1] = { &HintTable[0], }; HintTable[0].init("editorDisplay", "false", true); ParamDefTable[10].setHints((const NvParameterized::Hint**)HintPtrTable, 1); #else static HintImpl HintTable[3]; static Hint* HintPtrTable[3] = { &HintTable[0], &HintTable[1], &HintTable[2], }; HintTable[0].init("editorDisplay", "false", true); HintTable[1].init("longDescription", "If this is set to true the bone buffers in updateState and the actor\ndescriptor have to be given in the same order as the bones are stored\ninternally in the asset. This can be queried using\nNxClothingAsset::getNumUsedBones and NxClothingAsset::getBoneName or\nNxClothingAsset::getBoneMapping.\n\nIf this is set to false, the bone buffers can be provided in the order as\nthey are stored in the application. This is either the bone order at\nauthoring time, or NxClothingAsset::remapBoneIndex can be called for each\nbone to let APEX know about the current ordering in the game. Note that\nthis is only recommended if the application already uses physx::PxMat44\n(or something binary equivalent) and does not have to convert the matrices.\n", true); HintTable[2].init("shortDescription", "Expect internally ordered bone arrays in updateState call.", true); ParamDefTable[10].setHints((const NvParameterized::Hint**)HintPtrTable, 3); #endif /* NV_PARAMETERIZED_HIDE_DESCRIPTIONS */ } // Initialize DefinitionImpl node: nodeIndex=11, longName="updateStateWithGlobalMatrices" { NvParameterized::DefinitionImpl* ParamDef = &ParamDefTable[11]; ParamDef->init("updateStateWithGlobalMatrices", TYPE_BOOL, NULL, true); #ifdef NV_PARAMETERIZED_HIDE_DESCRIPTIONS #else static HintImpl HintTable[2]; static Hint* HintPtrTable[2] = { &HintTable[0], &HintTable[1], }; HintTable[0].init("longDescription", "Depending on what matrices are present, the state can be updated using\nglobal world or object space bone matrices or composite matrices. The\ncomposite matrix can be generated by multiplying the world or object space\nmatrix by the inverse bone bine pose.\n\nNote: If there are problems which might be caused by bind poses being\ndifferent in the ClothingAsset and in the game's animation system, changing\nthis to true (and thus providing global pose matrices) might fix the problem.\n", true); HintTable[1].init("shortDescription", "Use world space matrices instead of composite (relative to bind pose) in NxClothingActor::updateState().", true); ParamDefTable[11].setHints((const NvParameterized::Hint**)HintPtrTable, 2); #endif /* NV_PARAMETERIZED_HIDE_DESCRIPTIONS */ } // Initialize DefinitionImpl node: nodeIndex=12, longName="uvChannelForTangentUpdate" { NvParameterized::DefinitionImpl* ParamDef = &ParamDefTable[12]; ParamDef->init("uvChannelForTangentUpdate", TYPE_U32, NULL, true); #ifdef NV_PARAMETERIZED_HIDE_DESCRIPTIONS #else static HintImpl HintTable[2]; static Hint* HintPtrTable[2] = { &HintTable[0], &HintTable[1], }; HintTable[0].init("longDescription", "Tangent update is done based on one UV channel. This allows selection of what\nUV channel is being used.\n", true); HintTable[1].init("shortDescription", "This UV channel is used for updating tangent space", true); ParamDefTable[12].setHints((const NvParameterized::Hint**)HintPtrTable, 2); #endif /* NV_PARAMETERIZED_HIDE_DESCRIPTIONS */ } // Initialize DefinitionImpl node: nodeIndex=13, longName="maxDistanceBlendTime" { NvParameterized::DefinitionImpl* ParamDef = &ParamDefTable[13]; ParamDef->init("maxDistanceBlendTime", TYPE_F32, NULL, true); #ifdef NV_PARAMETERIZED_HIDE_DESCRIPTIONS #else static HintImpl HintTable[2]; static Hint* HintPtrTable[2] = { &HintTable[0], &HintTable[1], }; HintTable[0].init("longDescription", "Note: This also influences how quickly different physical LoDs can be switched", true); HintTable[1].init("shortDescription", "Time in seconds how long it takes to go from zero maxDistance to full maxDistance", true); ParamDefTable[13].setHints((const NvParameterized::Hint**)HintPtrTable, 2); #endif /* NV_PARAMETERIZED_HIDE_DESCRIPTIONS */ } // Initialize DefinitionImpl node: nodeIndex=14, longName="clothingMaterialIndex" { NvParameterized::DefinitionImpl* ParamDef = &ParamDefTable[14]; ParamDef->init("clothingMaterialIndex", TYPE_U32, NULL, true); #ifdef NV_PARAMETERIZED_HIDE_DESCRIPTIONS #else static HintImpl HintTable[1]; static Hint* HintPtrTable[1] = { &HintTable[0], }; HintTable[0].init("shortDescription", "Use this material from the assets material library", true); ParamDefTable[14].setHints((const NvParameterized::Hint**)HintPtrTable, 1); #endif /* NV_PARAMETERIZED_HIDE_DESCRIPTIONS */ } // Initialize DefinitionImpl node: nodeIndex=15, longName="lodWeights" { NvParameterized::DefinitionImpl* ParamDef = &ParamDefTable[15]; ParamDef->init("lodWeights", TYPE_STRUCT, "LODWeights", true); } // Initialize DefinitionImpl node: nodeIndex=16, longName="lodWeights.maxDistance" { NvParameterized::DefinitionImpl* ParamDef = &ParamDefTable[16]; ParamDef->init("maxDistance", TYPE_F32, NULL, true); } // Initialize DefinitionImpl node: nodeIndex=17, longName="lodWeights.distanceWeight" { NvParameterized::DefinitionImpl* ParamDef = &ParamDefTable[17]; ParamDef->init("distanceWeight", TYPE_F32, NULL, true); } // Initialize DefinitionImpl node: nodeIndex=18, longName="lodWeights.bias" { NvParameterized::DefinitionImpl* ParamDef = &ParamDefTable[18]; ParamDef->init("bias", TYPE_F32, NULL, true); } // Initialize DefinitionImpl node: nodeIndex=19, longName="lodWeights.benefitsBias" { NvParameterized::DefinitionImpl* ParamDef = &ParamDefTable[19]; ParamDef->init("benefitsBias", TYPE_F32, NULL, true); } // Initialize DefinitionImpl node: nodeIndex=20, longName="windParams" { NvParameterized::DefinitionImpl* ParamDef = &ParamDefTable[20]; ParamDef->init("windParams", TYPE_STRUCT, "WindParameters", true); #ifdef NV_PARAMETERIZED_HIDE_DESCRIPTIONS #else static HintImpl HintTable[1]; static Hint* HintPtrTable[1] = { &HintTable[0], }; HintTable[0].init("shortDescription", "The per-actor wind parameters", true); ParamDefTable[20].setHints((const NvParameterized::Hint**)HintPtrTable, 1); #endif /* NV_PARAMETERIZED_HIDE_DESCRIPTIONS */ } // Initialize DefinitionImpl node: nodeIndex=21, longName="windParams.Velocity" { NvParameterized::DefinitionImpl* ParamDef = &ParamDefTable[21]; ParamDef->init("Velocity", TYPE_VEC3, NULL, true); #ifdef NV_PARAMETERIZED_HIDE_DESCRIPTIONS #else static HintImpl HintTable[1]; static Hint* HintPtrTable[1] = { &HintTable[0], }; HintTable[0].init("shortDescription", "The target velocity each vertex tries to achieve.", true); ParamDefTable[21].setHints((const NvParameterized::Hint**)HintPtrTable, 1); #endif /* NV_PARAMETERIZED_HIDE_DESCRIPTIONS */ } // Initialize DefinitionImpl node: nodeIndex=22, longName="windParams.Adaption" { NvParameterized::DefinitionImpl* ParamDef = &ParamDefTable[22]; ParamDef->init("Adaption", TYPE_F32, NULL, true); #ifdef NV_PARAMETERIZED_HIDE_DESCRIPTIONS #else static HintImpl HintTable[2]; static Hint* HintPtrTable[2] = { &HintTable[0], &HintTable[1], }; HintTable[0].init("longDescription", "This is roughly the inverse of the time in seconds it takes to adapt to the wind velocity.", true); HintTable[1].init("shortDescription", "The rate of adaption. The higher this value, the faster the cloth reaches the wind velocity. Set to 0 to turn off wind.", true); ParamDefTable[22].setHints((const NvParameterized::Hint**)HintPtrTable, 2); #endif /* NV_PARAMETERIZED_HIDE_DESCRIPTIONS */ } // Initialize DefinitionImpl node: nodeIndex=23, longName="maxDistanceScale" { NvParameterized::DefinitionImpl* ParamDef = &ParamDefTable[23]; ParamDef->init("maxDistanceScale", TYPE_STRUCT, "MaxDistanceScale", true); #ifdef NV_PARAMETERIZED_HIDE_DESCRIPTIONS #else static HintImpl HintTable[1]; static Hint* HintPtrTable[1] = { &HintTable[0], }; HintTable[0].init("shortDescription", "", true); ParamDefTable[23].setHints((const NvParameterized::Hint**)HintPtrTable, 1); #endif /* NV_PARAMETERIZED_HIDE_DESCRIPTIONS */ } // Initialize DefinitionImpl node: nodeIndex=24, longName="maxDistanceScale.Scale" { NvParameterized::DefinitionImpl* ParamDef = &ParamDefTable[24]; ParamDef->init("Scale", TYPE_F32, NULL, true); #ifdef NV_PARAMETERIZED_HIDE_DESCRIPTIONS #else static HintImpl HintTable[1]; static Hint* HintPtrTable[1] = { &HintTable[0], }; HintTable[0].init("shortDescription", "", true); ParamDefTable[24].setHints((const NvParameterized::Hint**)HintPtrTable, 1); #endif /* NV_PARAMETERIZED_HIDE_DESCRIPTIONS */ } // Initialize DefinitionImpl node: nodeIndex=25, longName="maxDistanceScale.Multipliable" { NvParameterized::DefinitionImpl* ParamDef = &ParamDefTable[25]; ParamDef->init("Multipliable", TYPE_BOOL, NULL, true); #ifdef NV_PARAMETERIZED_HIDE_DESCRIPTIONS #else static HintImpl HintTable[1]; static Hint* HintPtrTable[1] = { &HintTable[0], }; HintTable[0].init("shortDescription", "", true); ParamDefTable[25].setHints((const NvParameterized::Hint**)HintPtrTable, 1); #endif /* NV_PARAMETERIZED_HIDE_DESCRIPTIONS */ } // Initialize DefinitionImpl node: nodeIndex=26, longName="userData" { NvParameterized::DefinitionImpl* ParamDef = &ParamDefTable[26]; ParamDef->init("userData", TYPE_U64, NULL, true); #ifdef NV_PARAMETERIZED_HIDE_DESCRIPTIONS static HintImpl HintTable[1]; static Hint* HintPtrTable[1] = { &HintTable[0], }; HintTable[0].init("editorDisplay", "false", true); ParamDefTable[26].setHints((const NvParameterized::Hint**)HintPtrTable, 1); #else static HintImpl HintTable[2]; static Hint* HintPtrTable[2] = { &HintTable[0], &HintTable[1], }; HintTable[0].init("editorDisplay", "false", true); HintTable[1].init("shortDescription", "Optional user data pointer associated with the clothing actor", true); ParamDefTable[26].setHints((const NvParameterized::Hint**)HintPtrTable, 2); #endif /* NV_PARAMETERIZED_HIDE_DESCRIPTIONS */ } // Initialize DefinitionImpl node: nodeIndex=27, longName="boneMatrices" { NvParameterized::DefinitionImpl* ParamDef = &ParamDefTable[27]; ParamDef->init("boneMatrices", TYPE_ARRAY, NULL, true); #ifdef NV_PARAMETERIZED_HIDE_DESCRIPTIONS static HintImpl HintTable[1]; static Hint* HintPtrTable[1] = { &HintTable[0], }; HintTable[0].init("editorDisplay", "false", true); ParamDefTable[27].setHints((const NvParameterized::Hint**)HintPtrTable, 1); #else static HintImpl HintTable[3]; static Hint* HintPtrTable[3] = { &HintTable[0], &HintTable[1], &HintTable[2], }; HintTable[0].init("editorDisplay", "false", true); HintTable[1].init("longDescription", "These matrices are sometimes referred to as composite matrices. They are the\nmultiplication of the current world space bone pose with the inverse bind\npose in world space.\nNote: If \'updateStateWithGlobalMatrices\' is set to true, these must be\nglobal poses instead.\n", true); HintTable[2].init("shortDescription", "An Array of matrices with the full transform for each bone", true); ParamDefTable[27].setHints((const NvParameterized::Hint**)HintPtrTable, 3); #endif /* NV_PARAMETERIZED_HIDE_DESCRIPTIONS */ ParamDef->setArraySize(-1); } // Initialize DefinitionImpl node: nodeIndex=28, longName="boneMatrices[]" { NvParameterized::DefinitionImpl* ParamDef = &ParamDefTable[28]; ParamDef->init("boneMatrices", TYPE_MAT44, NULL, true); #ifdef NV_PARAMETERIZED_HIDE_DESCRIPTIONS static HintImpl HintTable[1]; static Hint* HintPtrTable[1] = { &HintTable[0], }; HintTable[0].init("editorDisplay", "false", true); ParamDefTable[28].setHints((const NvParameterized::Hint**)HintPtrTable, 1); #else static HintImpl HintTable[3]; static Hint* HintPtrTable[3] = { &HintTable[0], &HintTable[1], &HintTable[2], }; HintTable[0].init("editorDisplay", "false", true); HintTable[1].init("longDescription", "These matrices are sometimes referred to as composite matrices. They are the\nmultiplication of the current world space bone pose with the inverse bind\npose in world space.\nNote: If \'updateStateWithGlobalMatrices\' is set to true, these must be\nglobal poses instead.\n", true); HintTable[2].init("shortDescription", "An Array of matrices with the full transform for each bone", true); ParamDefTable[28].setHints((const NvParameterized::Hint**)HintPtrTable, 3); #endif /* NV_PARAMETERIZED_HIDE_DESCRIPTIONS */ } // Initialize DefinitionImpl node: nodeIndex=29, longName="clothDescTemplate" { NvParameterized::DefinitionImpl* ParamDef = &ParamDefTable[29]; ParamDef->init("clothDescTemplate", TYPE_STRUCT, "ClothDescTemplate", true); #ifdef NV_PARAMETERIZED_HIDE_DESCRIPTIONS #else static HintImpl HintTable[1]; static Hint* HintPtrTable[1] = { &HintTable[0], }; HintTable[0].init("shortDescription", "Contains the parameters the application can override on the NxClothDesc when created", true); ParamDefTable[29].setHints((const NvParameterized::Hint**)HintPtrTable, 1); #endif /* NV_PARAMETERIZED_HIDE_DESCRIPTIONS */ } // Initialize DefinitionImpl node: nodeIndex=30, longName="clothDescTemplate.collisionResponseCoefficient" { NvParameterized::DefinitionImpl* ParamDef = &ParamDefTable[30]; ParamDef->init("collisionResponseCoefficient", TYPE_F32, NULL, true); #ifdef NV_PARAMETERIZED_HIDE_DESCRIPTIONS #else static HintImpl HintTable[2]; static Hint* HintPtrTable[2] = { &HintTable[0], &HintTable[1], }; HintTable[0].init("longDescription", "This is only needed if the twoway interaction flag is set in the clothing asset.", true); HintTable[1].init("shortDescription", "Defines a factor for the impulse transfer from cloth to colliding rigid bodies.", true); ParamDefTable[30].setHints((const NvParameterized::Hint**)HintPtrTable, 2); #endif /* NV_PARAMETERIZED_HIDE_DESCRIPTIONS */ } // Initialize DefinitionImpl node: nodeIndex=31, longName="clothDescTemplate.collisionGroup" { NvParameterized::DefinitionImpl* ParamDef = &ParamDefTable[31]; ParamDef->init("collisionGroup", TYPE_U16, NULL, true); #ifdef NV_PARAMETERIZED_HIDE_DESCRIPTIONS #else static HintImpl HintTable[1]; static Hint* HintPtrTable[1] = { &HintTable[0], }; HintTable[0].init("shortDescription", "Sets which collision group this cloth is part of.", true); ParamDefTable[31].setHints((const NvParameterized::Hint**)HintPtrTable, 1); #endif /* NV_PARAMETERIZED_HIDE_DESCRIPTIONS */ } // Initialize DefinitionImpl node: nodeIndex=32, longName="clothDescTemplate.groupsMask" { NvParameterized::DefinitionImpl* ParamDef = &ParamDefTable[32]; ParamDef->init("groupsMask", TYPE_STRUCT, "GroupsMask", true); #ifdef NV_PARAMETERIZED_HIDE_DESCRIPTIONS #else static HintImpl HintTable[1]; static Hint* HintPtrTable[1] = { &HintTable[0], }; HintTable[0].init("shortDescription", "Sets the 128-bit mask used for collision filtering.", true); ParamDefTable[32].setHints((const NvParameterized::Hint**)HintPtrTable, 1); #endif /* NV_PARAMETERIZED_HIDE_DESCRIPTIONS */ } // Initialize DefinitionImpl node: nodeIndex=33, longName="clothDescTemplate.groupsMask.bits0" { NvParameterized::DefinitionImpl* ParamDef = &ParamDefTable[33]; ParamDef->init("bits0", TYPE_U32, NULL, true); } // Initialize DefinitionImpl node: nodeIndex=34, longName="clothDescTemplate.groupsMask.bits1" { NvParameterized::DefinitionImpl* ParamDef = &ParamDefTable[34]; ParamDef->init("bits1", TYPE_U32, NULL, true); } // Initialize DefinitionImpl node: nodeIndex=35, longName="clothDescTemplate.groupsMask.bits2" { NvParameterized::DefinitionImpl* ParamDef = &ParamDefTable[35]; ParamDef->init("bits2", TYPE_U32, NULL, true); } // Initialize DefinitionImpl node: nodeIndex=36, longName="clothDescTemplate.groupsMask.bits3" { NvParameterized::DefinitionImpl* ParamDef = &ParamDefTable[36]; ParamDef->init("bits3", TYPE_U32, NULL, true); } // Initialize DefinitionImpl node: nodeIndex=37, longName="clothDescTemplate.validBounds" { NvParameterized::DefinitionImpl* ParamDef = &ParamDefTable[37]; ParamDef->init("validBounds", TYPE_BOUNDS3, NULL, true); #ifdef NV_PARAMETERIZED_HIDE_DESCRIPTIONS #else static HintImpl HintTable[2]; static Hint* HintPtrTable[2] = { &HintTable[0], &HintTable[1], }; HintTable[0].init("longDescription", "Only works if the flag NX_CLF_VALIDBOUNDS is set.", true); HintTable[1].init("shortDescription", "Defines the volume outside of which cloth particle are automatically removed from the simulation. ", true); ParamDefTable[37].setHints((const NvParameterized::Hint**)HintPtrTable, 2); #endif /* NV_PARAMETERIZED_HIDE_DESCRIPTIONS */ } // Initialize DefinitionImpl node: nodeIndex=38, longName="clothDescTemplate.compartment" { NvParameterized::DefinitionImpl* ParamDef = &ParamDefTable[38]; ParamDef->init("compartment", TYPE_U64, NULL, true); #ifdef NV_PARAMETERIZED_HIDE_DESCRIPTIONS static HintImpl HintTable[1]; static Hint* HintPtrTable[1] = { &HintTable[0], }; HintTable[0].init("editorDisplay", "false", true); ParamDefTable[38].setHints((const NvParameterized::Hint**)HintPtrTable, 1); #else static HintImpl HintTable[3]; static Hint* HintPtrTable[3] = { &HintTable[0], &HintTable[1], &HintTable[2], }; HintTable[0].init("editorDisplay", "false", true); HintTable[1].init("longDescription", "Must be either a pointer to an NxCompartment of type NX_SCT_CLOTH or\nNX_SCT_SOFTBODY, or NULL. A NULL compartment means creating NX_CLF_HARDWARE\ncloth in the first available cloth compartment (a default cloth compartment\nis created if none exists). Software cloth with a NULL compartment is\ncreated in the scene proper.\n", true); HintTable[2].init("shortDescription", "The compartment to place the cloth in.", true); ParamDefTable[38].setHints((const NvParameterized::Hint**)HintPtrTable, 3); #endif /* NV_PARAMETERIZED_HIDE_DESCRIPTIONS */ } // Initialize DefinitionImpl node: nodeIndex=39, longName="clothDescTemplate.userData" { NvParameterized::DefinitionImpl* ParamDef = &ParamDefTable[39]; ParamDef->init("userData", TYPE_U64, NULL, true); #ifdef NV_PARAMETERIZED_HIDE_DESCRIPTIONS static HintImpl HintTable[1]; static Hint* HintPtrTable[1] = { &HintTable[0], }; HintTable[0].init("editorDisplay", "false", true); ParamDefTable[39].setHints((const NvParameterized::Hint**)HintPtrTable, 1); #else static HintImpl HintTable[2]; static Hint* HintPtrTable[2] = { &HintTable[0], &HintTable[1], }; HintTable[0].init("editorDisplay", "false", true); HintTable[1].init("shortDescription", "Optional user data pointer.", true); ParamDefTable[39].setHints((const NvParameterized::Hint**)HintPtrTable, 2); #endif /* NV_PARAMETERIZED_HIDE_DESCRIPTIONS */ } // Initialize DefinitionImpl node: nodeIndex=40, longName="shapeDescTemplate" { NvParameterized::DefinitionImpl* ParamDef = &ParamDefTable[40]; ParamDef->init("shapeDescTemplate", TYPE_STRUCT, "ShapeDescTemplate", true); #ifdef NV_PARAMETERIZED_HIDE_DESCRIPTIONS #else static HintImpl HintTable[1]; static Hint* HintPtrTable[1] = { &HintTable[0], }; HintTable[0].init("shortDescription", "Contains the parameters the application can override on any actor shapes created", true); ParamDefTable[40].setHints((const NvParameterized::Hint**)HintPtrTable, 1); #endif /* NV_PARAMETERIZED_HIDE_DESCRIPTIONS */ } // Initialize DefinitionImpl node: nodeIndex=41, longName="shapeDescTemplate.flags" { NvParameterized::DefinitionImpl* ParamDef = &ParamDefTable[41]; ParamDef->init("flags", TYPE_STRUCT, "ShapeDescFlags", true); } // Initialize DefinitionImpl node: nodeIndex=42, longName="shapeDescTemplate.flags.NX_SF_VISUALIZATION" { NvParameterized::DefinitionImpl* ParamDef = &ParamDefTable[42]; ParamDef->init("NX_SF_VISUALIZATION", TYPE_BOOL, NULL, true); #ifdef NV_PARAMETERIZED_HIDE_DESCRIPTIONS #else static HintImpl HintTable[1]; static Hint* HintPtrTable[1] = { &HintTable[0], }; HintTable[0].init("shortDescription", "Enable debug renderer for this shape", true); ParamDefTable[42].setHints((const NvParameterized::Hint**)HintPtrTable, 1); #endif /* NV_PARAMETERIZED_HIDE_DESCRIPTIONS */ } // Initialize DefinitionImpl node: nodeIndex=43, longName="shapeDescTemplate.flags.NX_SF_DISABLE_COLLISION" { NvParameterized::DefinitionImpl* ParamDef = &ParamDefTable[43]; ParamDef->init("NX_SF_DISABLE_COLLISION", TYPE_BOOL, NULL, true); #ifdef NV_PARAMETERIZED_HIDE_DESCRIPTIONS #else static HintImpl HintTable[1]; static Hint* HintPtrTable[1] = { &HintTable[0], }; HintTable[0].init("shortDescription", "Disable collision detection for this shape (counterpart of NX_AF_DISABLE_COLLISION)", true); ParamDefTable[43].setHints((const NvParameterized::Hint**)HintPtrTable, 1); #endif /* NV_PARAMETERIZED_HIDE_DESCRIPTIONS */ } // Initialize DefinitionImpl node: nodeIndex=44, longName="shapeDescTemplate.flags.NX_SF_DISABLE_RAYCASTING" { NvParameterized::DefinitionImpl* ParamDef = &ParamDefTable[44]; ParamDef->init("NX_SF_DISABLE_RAYCASTING", TYPE_BOOL, NULL, true); #ifdef NV_PARAMETERIZED_HIDE_DESCRIPTIONS #else static HintImpl HintTable[1]; static Hint* HintPtrTable[1] = { &HintTable[0], }; HintTable[0].init("shortDescription", "Disable raycasting for this shape", true); ParamDefTable[44].setHints((const NvParameterized::Hint**)HintPtrTable, 1); #endif /* NV_PARAMETERIZED_HIDE_DESCRIPTIONS */ } // Initialize DefinitionImpl node: nodeIndex=45, longName="shapeDescTemplate.flags.NX_SF_DYNAMIC_DYNAMIC_CCD" { NvParameterized::DefinitionImpl* ParamDef = &ParamDefTable[45]; ParamDef->init("NX_SF_DYNAMIC_DYNAMIC_CCD", TYPE_BOOL, NULL, true); #ifdef NV_PARAMETERIZED_HIDE_DESCRIPTIONS #else static HintImpl HintTable[1]; static Hint* HintPtrTable[1] = { &HintTable[0], }; HintTable[0].init("shortDescription", "Enable dynamic-dynamic CCD for this shape. Used only when CCD is globally enabled and shape have a CCD skeleton.", true); ParamDefTable[45].setHints((const NvParameterized::Hint**)HintPtrTable, 1); #endif /* NV_PARAMETERIZED_HIDE_DESCRIPTIONS */ } // Initialize DefinitionImpl node: nodeIndex=46, longName="shapeDescTemplate.flags.NX_SF_DISABLE_SCENE_QUERIES" { NvParameterized::DefinitionImpl* ParamDef = &ParamDefTable[46]; ParamDef->init("NX_SF_DISABLE_SCENE_QUERIES", TYPE_BOOL, NULL, true); #ifdef NV_PARAMETERIZED_HIDE_DESCRIPTIONS #else static HintImpl HintTable[2]; static Hint* HintPtrTable[2] = { &HintTable[0], &HintTable[1], }; HintTable[0].init("longDescription", "Setting this to true will make the non-compartment CPU cloth not work.", true); HintTable[1].init("shortDescription", "Disable participation in ray casts, overlap tests and sweeps.", true); ParamDefTable[46].setHints((const NvParameterized::Hint**)HintPtrTable, 2); #endif /* NV_PARAMETERIZED_HIDE_DESCRIPTIONS */ } // Initialize DefinitionImpl node: nodeIndex=47, longName="shapeDescTemplate.collisionGroup" { NvParameterized::DefinitionImpl* ParamDef = &ParamDefTable[47]; ParamDef->init("collisionGroup", TYPE_U16, NULL, true); #ifdef NV_PARAMETERIZED_HIDE_DESCRIPTIONS #else static HintImpl HintTable[2]; static Hint* HintPtrTable[2] = { &HintTable[0], &HintTable[1], }; HintTable[0].init("longDescription", "Default group is 0. Maximum possible group is 31. Collision groups are sets\nof shapes which may or may not be set to collision detect with each other;\nthis can be set using NxScene::setGroupCollisionFlag()\nSleeping: Does NOT wake the associated actor up automatically.\n", true); HintTable[1].init("shortDescription", "Sets which collision group this shape is part of.", true); ParamDefTable[47].setHints((const NvParameterized::Hint**)HintPtrTable, 2); #endif /* NV_PARAMETERIZED_HIDE_DESCRIPTIONS */ } // Initialize DefinitionImpl node: nodeIndex=48, longName="shapeDescTemplate.groupsMask" { NvParameterized::DefinitionImpl* ParamDef = &ParamDefTable[48]; ParamDef->init("groupsMask", TYPE_STRUCT, "GroupsMask", true); #ifdef NV_PARAMETERIZED_HIDE_DESCRIPTIONS #else static HintImpl HintTable[1]; static Hint* HintPtrTable[1] = { &HintTable[0], }; HintTable[0].init("shortDescription", "Sets the 128-bit mask used for collision filtering.", true); ParamDefTable[48].setHints((const NvParameterized::Hint**)HintPtrTable, 1); #endif /* NV_PARAMETERIZED_HIDE_DESCRIPTIONS */ } // Initialize DefinitionImpl node: nodeIndex=49, longName="shapeDescTemplate.groupsMask.bits0" { NvParameterized::DefinitionImpl* ParamDef = &ParamDefTable[49]; ParamDef->init("bits0", TYPE_U32, NULL, true); } // Initialize DefinitionImpl node: nodeIndex=50, longName="shapeDescTemplate.groupsMask.bits1" { NvParameterized::DefinitionImpl* ParamDef = &ParamDefTable[50]; ParamDef->init("bits1", TYPE_U32, NULL, true); } // Initialize DefinitionImpl node: nodeIndex=51, longName="shapeDescTemplate.groupsMask.bits2" { NvParameterized::DefinitionImpl* ParamDef = &ParamDefTable[51]; ParamDef->init("bits2", TYPE_U32, NULL, true); } // Initialize DefinitionImpl node: nodeIndex=52, longName="shapeDescTemplate.groupsMask.bits3" { NvParameterized::DefinitionImpl* ParamDef = &ParamDefTable[52]; ParamDef->init("bits3", TYPE_U32, NULL, true); } // Initialize DefinitionImpl node: nodeIndex=53, longName="shapeDescTemplate.materialIndex" { NvParameterized::DefinitionImpl* ParamDef = &ParamDefTable[53]; ParamDef->init("materialIndex", TYPE_U16, NULL, true); #ifdef NV_PARAMETERIZED_HIDE_DESCRIPTIONS #else static HintImpl HintTable[1]; static Hint* HintPtrTable[1] = { &HintTable[0], }; HintTable[0].init("shortDescription", "The material index of the shape.", true); ParamDefTable[53].setHints((const NvParameterized::Hint**)HintPtrTable, 1); #endif /* NV_PARAMETERIZED_HIDE_DESCRIPTIONS */ } // Initialize DefinitionImpl node: nodeIndex=54, longName="shapeDescTemplate.userData" { NvParameterized::DefinitionImpl* ParamDef = &ParamDefTable[54]; ParamDef->init("userData", TYPE_U64, NULL, true); #ifdef NV_PARAMETERIZED_HIDE_DESCRIPTIONS static HintImpl HintTable[1]; static Hint* HintPtrTable[1] = { &HintTable[0], }; HintTable[0].init("editorDisplay", "false", true); ParamDefTable[54].setHints((const NvParameterized::Hint**)HintPtrTable, 1); #else static HintImpl HintTable[2]; static Hint* HintPtrTable[2] = { &HintTable[0], &HintTable[1], }; HintTable[0].init("editorDisplay", "false", true); HintTable[1].init("shortDescription", "Optional user data pointer", true); ParamDefTable[54].setHints((const NvParameterized::Hint**)HintPtrTable, 2); #endif /* NV_PARAMETERIZED_HIDE_DESCRIPTIONS */ } // Initialize DefinitionImpl node: nodeIndex=55, longName="shapeDescTemplate.name" { NvParameterized::DefinitionImpl* ParamDef = &ParamDefTable[55]; ParamDef->init("name", TYPE_U64, NULL, true); #ifdef NV_PARAMETERIZED_HIDE_DESCRIPTIONS static HintImpl HintTable[1]; static Hint* HintPtrTable[1] = { &HintTable[0], }; HintTable[0].init("editorDisplay", "false", true); ParamDefTable[55].setHints((const NvParameterized::Hint**)HintPtrTable, 1); #else static HintImpl HintTable[2]; static Hint* HintPtrTable[2] = { &HintTable[0], &HintTable[1], }; HintTable[0].init("editorDisplay", "false", true); HintTable[1].init("shortDescription", "Name of the shapes; must be set by the application and must be a persistent pointer.", true); ParamDefTable[55].setHints((const NvParameterized::Hint**)HintPtrTable, 2); #endif /* NV_PARAMETERIZED_HIDE_DESCRIPTIONS */ } // Initialize DefinitionImpl node: nodeIndex=56, longName="actorDescTemplate" { NvParameterized::DefinitionImpl* ParamDef = &ParamDefTable[56]; ParamDef->init("actorDescTemplate", TYPE_STRUCT, "ActorDescTemplate", true); #ifdef NV_PARAMETERIZED_HIDE_DESCRIPTIONS #else static HintImpl HintTable[1]; static Hint* HintPtrTable[1] = { &HintTable[0], }; HintTable[0].init("shortDescription", "Contains the parameters the application can override on any actors created", true); ParamDefTable[56].setHints((const NvParameterized::Hint**)HintPtrTable, 1); #endif /* NV_PARAMETERIZED_HIDE_DESCRIPTIONS */ } // Initialize DefinitionImpl node: nodeIndex=57, longName="actorDescTemplate.userData" { NvParameterized::DefinitionImpl* ParamDef = &ParamDefTable[57]; ParamDef->init("userData", TYPE_U64, NULL, true); #ifdef NV_PARAMETERIZED_HIDE_DESCRIPTIONS static HintImpl HintTable[1]; static Hint* HintPtrTable[1] = { &HintTable[0], }; HintTable[0].init("editorDisplay", "false", true); ParamDefTable[57].setHints((const NvParameterized::Hint**)HintPtrTable, 1); #else static HintImpl HintTable[2]; static Hint* HintPtrTable[2] = { &HintTable[0], &HintTable[1], }; HintTable[0].init("editorDisplay", "false", true); HintTable[1].init("shortDescription", "Optional user data pointer", true); ParamDefTable[57].setHints((const NvParameterized::Hint**)HintPtrTable, 2); #endif /* NV_PARAMETERIZED_HIDE_DESCRIPTIONS */ } // Initialize DefinitionImpl node: nodeIndex=58, longName="actorDescTemplate.name" { NvParameterized::DefinitionImpl* ParamDef = &ParamDefTable[58]; ParamDef->init("name", TYPE_U64, NULL, true); #ifdef NV_PARAMETERIZED_HIDE_DESCRIPTIONS static HintImpl HintTable[1]; static Hint* HintPtrTable[1] = { &HintTable[0], }; HintTable[0].init("editorDisplay", "false", true); ParamDefTable[58].setHints((const NvParameterized::Hint**)HintPtrTable, 1); #else static HintImpl HintTable[2]; static Hint* HintPtrTable[2] = { &HintTable[0], &HintTable[1], }; HintTable[0].init("editorDisplay", "false", true); HintTable[1].init("shortDescription", "Optional name string for the shape; must be set by the application and must be a persistent pointer.", true); ParamDefTable[58].setHints((const NvParameterized::Hint**)HintPtrTable, 2); #endif /* NV_PARAMETERIZED_HIDE_DESCRIPTIONS */ } // Initialize DefinitionImpl node: nodeIndex=59, longName="actorScale" { NvParameterized::DefinitionImpl* ParamDef = &ParamDefTable[59]; ParamDef->init("actorScale", TYPE_F32, NULL, true); #ifdef NV_PARAMETERIZED_HIDE_DESCRIPTIONS #else static HintImpl HintTable[1]; static Hint* HintPtrTable[1] = { &HintTable[0], }; HintTable[0].init("shortDescription", "Scale the actor differently than the asset.", true); ParamDefTable[59].setHints((const NvParameterized::Hint**)HintPtrTable, 1); #endif /* NV_PARAMETERIZED_HIDE_DESCRIPTIONS */ } // Initialize DefinitionImpl node: nodeIndex=60, longName="runtimeCooked" { NvParameterized::DefinitionImpl* ParamDef = &ParamDefTable[60]; ParamDef->init("runtimeCooked", TYPE_REF, NULL, true); #ifdef NV_PARAMETERIZED_HIDE_DESCRIPTIONS static HintImpl HintTable[1]; static Hint* HintPtrTable[1] = { &HintTable[0], }; HintTable[0].init("INCLUDED", uint64_t(1), true); ParamDefTable[60].setHints((const NvParameterized::Hint**)HintPtrTable, 1); #else static HintImpl HintTable[2]; static Hint* HintPtrTable[2] = { &HintTable[0], &HintTable[1], }; HintTable[0].init("INCLUDED", uint64_t(1), true); HintTable[1].init("shortDescription", "Data cooked at runtime", true); ParamDefTable[60].setHints((const NvParameterized::Hint**)HintPtrTable, 2); #endif /* NV_PARAMETERIZED_HIDE_DESCRIPTIONS */ static const char* const RefVariantVals[] = { "ClothingCookedParam" }; ParamDefTable[60].setRefVariantVals((const char**)RefVariantVals, 1); } // Initialize DefinitionImpl node: nodeIndex=61, longName="morphDisplacements" { NvParameterized::DefinitionImpl* ParamDef = &ParamDefTable[61]; ParamDef->init("morphDisplacements", TYPE_ARRAY, NULL, true); #ifdef NV_PARAMETERIZED_HIDE_DESCRIPTIONS #else static HintImpl HintTable[1]; static Hint* HintPtrTable[1] = { &HintTable[0], }; HintTable[0].init("shortDescription", "Displacements according to the current morph target.", true); ParamDefTable[61].setHints((const NvParameterized::Hint**)HintPtrTable, 1); #endif /* NV_PARAMETERIZED_HIDE_DESCRIPTIONS */ ParamDef->setArraySize(-1); } // Initialize DefinitionImpl node: nodeIndex=62, longName="morphDisplacements[]" { NvParameterized::DefinitionImpl* ParamDef = &ParamDefTable[62]; ParamDef->init("morphDisplacements", TYPE_VEC3, NULL, true); #ifdef NV_PARAMETERIZED_HIDE_DESCRIPTIONS #else static HintImpl HintTable[1]; static Hint* HintPtrTable[1] = { &HintTable[0], }; HintTable[0].init("shortDescription", "Displacements according to the current morph target.", true); ParamDefTable[62].setHints((const NvParameterized::Hint**)HintPtrTable, 1); #endif /* NV_PARAMETERIZED_HIDE_DESCRIPTIONS */ } // Initialize DefinitionImpl node: nodeIndex=63, longName="morphPhysicalMeshNewPositions" { NvParameterized::DefinitionImpl* ParamDef = &ParamDefTable[63]; ParamDef->init("morphPhysicalMeshNewPositions", TYPE_ARRAY, NULL, true); #ifdef NV_PARAMETERIZED_HIDE_DESCRIPTIONS #else static HintImpl HintTable[1]; static Hint* HintPtrTable[1] = { &HintTable[0], }; HintTable[0].init("shortDescription", "New positions for the physical meshes and convex collision volumes.", true); ParamDefTable[63].setHints((const NvParameterized::Hint**)HintPtrTable, 1); #endif /* NV_PARAMETERIZED_HIDE_DESCRIPTIONS */ ParamDef->setArraySize(-1); } // Initialize DefinitionImpl node: nodeIndex=64, longName="morphPhysicalMeshNewPositions[]" { NvParameterized::DefinitionImpl* ParamDef = &ParamDefTable[64]; ParamDef->init("morphPhysicalMeshNewPositions", TYPE_VEC3, NULL, true); #ifdef NV_PARAMETERIZED_HIDE_DESCRIPTIONS #else static HintImpl HintTable[1]; static Hint* HintPtrTable[1] = { &HintTable[0], }; HintTable[0].init("shortDescription", "New positions for the physical meshes and convex collision volumes.", true); ParamDefTable[64].setHints((const NvParameterized::Hint**)HintPtrTable, 1); #endif /* NV_PARAMETERIZED_HIDE_DESCRIPTIONS */ } // Initialize DefinitionImpl node: nodeIndex=65, longName="allowAdaptiveTargetFrequency" { NvParameterized::DefinitionImpl* ParamDef = &ParamDefTable[65]; ParamDef->init("allowAdaptiveTargetFrequency", TYPE_BOOL, NULL, true); #ifdef NV_PARAMETERIZED_HIDE_DESCRIPTIONS #else static HintImpl HintTable[1]; static Hint* HintPtrTable[1] = { &HintTable[0], }; HintTable[0].init("shortDescription", "Slightly modifies gravity to avoid high frequency jittering due to variable time steps.", true); ParamDefTable[65].setHints((const NvParameterized::Hint**)HintPtrTable, 1); #endif /* NV_PARAMETERIZED_HIDE_DESCRIPTIONS */ } // Initialize DefinitionImpl node: nodeIndex=66, longName="useVelocityClamping" { NvParameterized::DefinitionImpl* ParamDef = &ParamDefTable[66]; ParamDef->init("useVelocityClamping", TYPE_BOOL, NULL, true); } // Initialize DefinitionImpl node: nodeIndex=67, longName="vertexVelocityClamp" { NvParameterized::DefinitionImpl* ParamDef = &ParamDefTable[67]; ParamDef->init("vertexVelocityClamp", TYPE_BOUNDS3, NULL, true); } // Initialize DefinitionImpl node: nodeIndex=68, longName="pressure" { NvParameterized::DefinitionImpl* ParamDef = &ParamDefTable[68]; ParamDef->init("pressure", TYPE_F32, NULL, true); #ifdef NV_PARAMETERIZED_HIDE_DESCRIPTIONS #else static HintImpl HintTable[1]; static Hint* HintPtrTable[1] = { &HintTable[0], }; HintTable[0].init("shortDescription", "Set pressure of cloth, only works on closed meshes.", true); ParamDefTable[68].setHints((const NvParameterized::Hint**)HintPtrTable, 1); #endif /* NV_PARAMETERIZED_HIDE_DESCRIPTIONS */ } // Initialize DefinitionImpl node: nodeIndex=69, longName="multiplyGlobalPoseIntoBones" { NvParameterized::DefinitionImpl* ParamDef = &ParamDefTable[69]; ParamDef->init("multiplyGlobalPoseIntoBones", TYPE_BOOL, NULL, true); } // Initialize DefinitionImpl node: nodeIndex=70, longName="overrideMaterialNames" { NvParameterized::DefinitionImpl* ParamDef = &ParamDefTable[70]; ParamDef->init("overrideMaterialNames", TYPE_ARRAY, NULL, true); #ifdef NV_PARAMETERIZED_HIDE_DESCRIPTIONS #else static HintImpl HintTable[1]; static Hint* HintPtrTable[1] = { &HintTable[0], }; HintTable[0].init("shortDescription", "Replacement material names for the ones provided by the render mesh asset inside the clothing asset.", true); ParamDefTable[70].setHints((const NvParameterized::Hint**)HintPtrTable, 1); #endif /* NV_PARAMETERIZED_HIDE_DESCRIPTIONS */ ParamDef->setArraySize(-1); static const uint8_t dynHandleIndices[1] = { 0, }; ParamDef->setDynamicHandleIndicesMap(dynHandleIndices, 1); } // Initialize DefinitionImpl node: nodeIndex=71, longName="overrideMaterialNames[]" { NvParameterized::DefinitionImpl* ParamDef = &ParamDefTable[71]; ParamDef->init("overrideMaterialNames", TYPE_STRING, NULL, true); #ifdef NV_PARAMETERIZED_HIDE_DESCRIPTIONS #else static HintImpl HintTable[1]; static Hint* HintPtrTable[1] = { &HintTable[0], }; HintTable[0].init("shortDescription", "Replacement material names for the ones provided by the render mesh asset inside the clothing asset.", true); ParamDefTable[71].setHints((const NvParameterized::Hint**)HintPtrTable, 1); #endif /* NV_PARAMETERIZED_HIDE_DESCRIPTIONS */ } // SetChildren for: nodeIndex=0, longName="" { static Definition* Children[28]; Children[0] = PDEF_PTR(1); Children[1] = PDEF_PTR(2); Children[2] = PDEF_PTR(3); Children[3] = PDEF_PTR(8); Children[4] = PDEF_PTR(9); Children[5] = PDEF_PTR(10); Children[6] = PDEF_PTR(11); Children[7] = PDEF_PTR(12); Children[8] = PDEF_PTR(13); Children[9] = PDEF_PTR(14); Children[10] = PDEF_PTR(15); Children[11] = PDEF_PTR(20); Children[12] = PDEF_PTR(23); Children[13] = PDEF_PTR(26); Children[14] = PDEF_PTR(27); Children[15] = PDEF_PTR(29); Children[16] = PDEF_PTR(40); Children[17] = PDEF_PTR(56); Children[18] = PDEF_PTR(59); Children[19] = PDEF_PTR(60); Children[20] = PDEF_PTR(61); Children[21] = PDEF_PTR(63); Children[22] = PDEF_PTR(65); Children[23] = PDEF_PTR(66); Children[24] = PDEF_PTR(67); Children[25] = PDEF_PTR(68); Children[26] = PDEF_PTR(69); Children[27] = PDEF_PTR(70); ParamDefTable[0].setChildren(Children, 28); } // SetChildren for: nodeIndex=3, longName="flags" { static Definition* Children[4]; Children[0] = PDEF_PTR(4); Children[1] = PDEF_PTR(5); Children[2] = PDEF_PTR(6); Children[3] = PDEF_PTR(7); ParamDefTable[3].setChildren(Children, 4); } // SetChildren for: nodeIndex=15, longName="lodWeights" { static Definition* Children[4]; Children[0] = PDEF_PTR(16); Children[1] = PDEF_PTR(17); Children[2] = PDEF_PTR(18); Children[3] = PDEF_PTR(19); ParamDefTable[15].setChildren(Children, 4); } // SetChildren for: nodeIndex=20, longName="windParams" { static Definition* Children[2]; Children[0] = PDEF_PTR(21); Children[1] = PDEF_PTR(22); ParamDefTable[20].setChildren(Children, 2); } // SetChildren for: nodeIndex=23, longName="maxDistanceScale" { static Definition* Children[2]; Children[0] = PDEF_PTR(24); Children[1] = PDEF_PTR(25); ParamDefTable[23].setChildren(Children, 2); } // SetChildren for: nodeIndex=27, longName="boneMatrices" { static Definition* Children[1]; Children[0] = PDEF_PTR(28); ParamDefTable[27].setChildren(Children, 1); } // SetChildren for: nodeIndex=29, longName="clothDescTemplate" { static Definition* Children[6]; Children[0] = PDEF_PTR(30); Children[1] = PDEF_PTR(31); Children[2] = PDEF_PTR(32); Children[3] = PDEF_PTR(37); Children[4] = PDEF_PTR(38); Children[5] = PDEF_PTR(39); ParamDefTable[29].setChildren(Children, 6); } // SetChildren for: nodeIndex=32, longName="clothDescTemplate.groupsMask" { static Definition* Children[4]; Children[0] = PDEF_PTR(33); Children[1] = PDEF_PTR(34); Children[2] = PDEF_PTR(35); Children[3] = PDEF_PTR(36); ParamDefTable[32].setChildren(Children, 4); } // SetChildren for: nodeIndex=40, longName="shapeDescTemplate" { static Definition* Children[6]; Children[0] = PDEF_PTR(41); Children[1] = PDEF_PTR(47); Children[2] = PDEF_PTR(48); Children[3] = PDEF_PTR(53); Children[4] = PDEF_PTR(54); Children[5] = PDEF_PTR(55); ParamDefTable[40].setChildren(Children, 6); } // SetChildren for: nodeIndex=41, longName="shapeDescTemplate.flags" { static Definition* Children[5]; Children[0] = PDEF_PTR(42); Children[1] = PDEF_PTR(43); Children[2] = PDEF_PTR(44); Children[3] = PDEF_PTR(45); Children[4] = PDEF_PTR(46); ParamDefTable[41].setChildren(Children, 5); } // SetChildren for: nodeIndex=48, longName="shapeDescTemplate.groupsMask" { static Definition* Children[4]; Children[0] = PDEF_PTR(49); Children[1] = PDEF_PTR(50); Children[2] = PDEF_PTR(51); Children[3] = PDEF_PTR(52); ParamDefTable[48].setChildren(Children, 4); } // SetChildren for: nodeIndex=56, longName="actorDescTemplate" { static Definition* Children[2]; Children[0] = PDEF_PTR(57); Children[1] = PDEF_PTR(58); ParamDefTable[56].setChildren(Children, 2); } // SetChildren for: nodeIndex=61, longName="morphDisplacements" { static Definition* Children[1]; Children[0] = PDEF_PTR(62); ParamDefTable[61].setChildren(Children, 1); } // SetChildren for: nodeIndex=63, longName="morphPhysicalMeshNewPositions" { static Definition* Children[1]; Children[0] = PDEF_PTR(64); ParamDefTable[63].setChildren(Children, 1); } // SetChildren for: nodeIndex=70, longName="overrideMaterialNames" { static Definition* Children[1]; Children[0] = PDEF_PTR(71); ParamDefTable[70].setChildren(Children, 1); } mBuiltFlag = true; } void ClothingActorParam_0p9::initStrings(void) { } void ClothingActorParam_0p9::initDynamicArrays(void) { boneMatrices.buf = NULL; boneMatrices.isAllocated = true; boneMatrices.elementSize = sizeof(physx::PxMat44); boneMatrices.arraySizes[0] = 0; morphDisplacements.buf = NULL; morphDisplacements.isAllocated = true; morphDisplacements.elementSize = sizeof(physx::PxVec3); morphDisplacements.arraySizes[0] = 0; morphPhysicalMeshNewPositions.buf = NULL; morphPhysicalMeshNewPositions.isAllocated = true; morphPhysicalMeshNewPositions.elementSize = sizeof(physx::PxVec3); morphPhysicalMeshNewPositions.arraySizes[0] = 0; overrideMaterialNames.buf = NULL; overrideMaterialNames.isAllocated = true; overrideMaterialNames.elementSize = sizeof(NvParameterized::DummyStringStruct); overrideMaterialNames.arraySizes[0] = 0; } void ClothingActorParam_0p9::initDefaults(void) { freeStrings(); freeReferences(); freeDynamicArrays(); globalPose = physx::PxMat44(physx::PxVec4(1.0f)); useHardwareCloth = bool(true); flags.ParallelCpuSkinning = bool(true); flags.RecomputeNormals = bool(false); flags.Visualize = bool(true); flags.CorrectSimulationNormals = bool(true); fallbackSkinning = bool(false); slowStart = bool(true); useInternalBoneOrder = bool(false); updateStateWithGlobalMatrices = bool(false); uvChannelForTangentUpdate = uint32_t(0); maxDistanceBlendTime = float(1.0); clothingMaterialIndex = uint32_t(0); lodWeights.maxDistance = float(2000); lodWeights.distanceWeight = float(1); lodWeights.bias = float(0); lodWeights.benefitsBias = float(0); windParams.Velocity = physx::PxVec3(0.0f); windParams.Adaption = float(0.0f); maxDistanceScale.Scale = float(1.0f); maxDistanceScale.Multipliable = bool(false); userData = uint64_t(0); clothDescTemplate.collisionResponseCoefficient = float(0.2); clothDescTemplate.collisionGroup = uint16_t(0); clothDescTemplate.groupsMask.bits0 = uint32_t(0); clothDescTemplate.groupsMask.bits1 = uint32_t(0); clothDescTemplate.groupsMask.bits2 = uint32_t(0); clothDescTemplate.groupsMask.bits3 = uint32_t(0); clothDescTemplate.validBounds = physx::PxBounds3(physx::PxVec3(PX_MAX_F32), physx::PxVec3(-PX_MAX_F32)); clothDescTemplate.compartment = uint64_t(0); shapeDescTemplate.flags.NX_SF_VISUALIZATION = bool(true); shapeDescTemplate.flags.NX_SF_DISABLE_COLLISION = bool(false); shapeDescTemplate.flags.NX_SF_DISABLE_RAYCASTING = bool(true); shapeDescTemplate.flags.NX_SF_DYNAMIC_DYNAMIC_CCD = bool(false); shapeDescTemplate.flags.NX_SF_DISABLE_SCENE_QUERIES = bool(false); shapeDescTemplate.collisionGroup = uint16_t(0); shapeDescTemplate.groupsMask.bits0 = uint32_t(0); shapeDescTemplate.groupsMask.bits1 = uint32_t(0); shapeDescTemplate.groupsMask.bits2 = uint32_t(0); shapeDescTemplate.groupsMask.bits3 = uint32_t(0); shapeDescTemplate.materialIndex = uint16_t(0); shapeDescTemplate.userData = uint64_t(0); shapeDescTemplate.name = uint64_t(0); actorDescTemplate.userData = uint64_t(0); actorDescTemplate.name = uint64_t(0); actorScale = float(1.0); allowAdaptiveTargetFrequency = bool(true); useVelocityClamping = bool(false); vertexVelocityClamp = physx::PxBounds3(physx::PxVec3(-PX_MAX_F32), physx::PxVec3(PX_MAX_F32)); pressure = float(-1.0); multiplyGlobalPoseIntoBones = bool(true); initDynamicArrays(); initStrings(); initReferences(); } void ClothingActorParam_0p9::initReferences(void) { runtimeCooked = NULL; } void ClothingActorParam_0p9::freeDynamicArrays(void) { if (boneMatrices.isAllocated && boneMatrices.buf) { mParameterizedTraits->free(boneMatrices.buf); } if (morphDisplacements.isAllocated && morphDisplacements.buf) { mParameterizedTraits->free(morphDisplacements.buf); } if (morphPhysicalMeshNewPositions.isAllocated && morphPhysicalMeshNewPositions.buf) { mParameterizedTraits->free(morphPhysicalMeshNewPositions.buf); } if (overrideMaterialNames.isAllocated && overrideMaterialNames.buf) { mParameterizedTraits->free(overrideMaterialNames.buf); } } void ClothingActorParam_0p9::freeStrings(void) { for (int i = 0; i < overrideMaterialNames.arraySizes[0]; ++i) { if (overrideMaterialNames.buf[i].isAllocated && overrideMaterialNames.buf[i].buf) { mParameterizedTraits->strfree((char*)overrideMaterialNames.buf[i].buf); } } } void ClothingActorParam_0p9::freeReferences(void) { if (runtimeCooked) { runtimeCooked->destroy(); } } } // namespace parameterized } // namespace nvidia ```
```kotlin package kotlinx.coroutines.rx3 import kotlinx.coroutines.testing.* import io.reactivex.rxjava3.core.* import kotlinx.coroutines.* import kotlinx.coroutines.flow.* import kotlinx.coroutines.reactive.* import org.junit.Test import kotlin.test.* class BackpressureTest : TestBase() { @Test fun testBackpressureDropDirect() = runTest { expect(1) Flowable.fromArray(1) .onBackpressureDrop() .collect { assertEquals(1, it) expect(2) } finish(3) } @Test fun testBackpressureDropFlow() = runTest { expect(1) Flowable.fromArray(1) .onBackpressureDrop() .asFlow() .collect { assertEquals(1, it) expect(2) } finish(3) } } ```
```protocol buffer // // // path_to_url // // Unless required by applicable law or agreed to in writing, software // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // The canonical version of this proto can be found at // path_to_url syntax = "proto3"; package grpc.health.v1; option csharp_namespace = "Grpc.Health.V1"; option go_package = "google.golang.org/grpc/health/grpc_health_v1"; option java_multiple_files = true; option java_outer_classname = "HealthProto"; option java_package = "io.grpc.health.v1"; message HealthCheckRequest { string service = 1; } message HealthCheckResponse { enum ServingStatus { UNKNOWN = 0; SERVING = 1; NOT_SERVING = 2; } ServingStatus status = 1; } service Health { rpc Check(HealthCheckRequest) returns (HealthCheckResponse); } ```
The Maritime Prepositioning Force (MPF) Utility Boat (MPFUB) is a commercially designed utility craft used primarily to move personnel and light equipment during MPF offload operations. The 41 foot long, high-speed landing craft are replacing the Navy’s existing LCM-8 craft as part of the United States Navy's Improved Navy Lighterage System (INLS) in support of pre-positioned Marine Amphibious assault missions. Additional missions include supporting waterborne force protection, transportation of personnel and materials, medical evacuation, salvage, damage control, and repair operations. The MPFUB's power bow ramp facilitates embarking and discharging personnel over an INLS, low pier, or quay. Cargo capacity is ten tons, or up to 30 personnel with 150 lbs of equipment at speeds up to 25 knots fully loaded. It can reach speeds around 40 knots when empty. The MPFUB weighs about 44,000 pounds (19,950 kg). Propulsion is provided by twin Cummins QSM11 engines rated for 660 hp at 2300 rpm and Hamilton 364 water jets (for beach deployments). The MPFUB has three weapon mounts for M2 Browning, Mk 19 grenade launcher, or M240 machine guns. It was designed by Kvichak Marine Industries, Incorporated. Procurement of the MPFUB is managed by the Naval Facilities Expeditionary Logistics Center (NFELC). The first MPFUB was delivered to the Navy's Assault Craft Unit ONE in 2006. References Landing craft United States Navy Military boats
```cuda // your_sha256_hash------------ // - Open3D: www.open3d.org - // your_sha256_hash------------ // your_sha256_hash------------ //***************************************************************************************/ // // path_to_url // // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated documentation files (the "Software"), // to deal in the Software without restriction, including without limitation // the rights to use, copy, modify, merge, publish, distribute, sublicense, // and/or sell copies of the Software, and to permit persons to whom the // Software is furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. // //***************************************************************************************/ #include <stdio.h> #include <stdlib.h> #include <vector> #include "ATen/cuda/CUDAContext.h" #include "open3d/ml/contrib/PointSampling.cuh" #include "open3d/ml/contrib/cuda_utils.h" #include "open3d/ml/pytorch/pointnet/SamplingKernel.h" using namespace open3d::ml::contrib; void furthest_point_sampling_launcher( int b, int n, int m, const float *dataset, float *temp, int *idxs) { // dataset: (B, N, 3) // tmp: (B, N) // output: // idx: (B, M) cudaError_t err; auto stream = at::cuda::getCurrentCUDAStream(); unsigned int n_threads = OptNumThreads(n); switch (n_threads) { case 1024: furthest_point_sampling_kernel<1024> <<<b, n_threads, 0, stream>>>(b, n, m, dataset, temp, idxs); break; case 512: furthest_point_sampling_kernel<512> <<<b, n_threads, 0, stream>>>(b, n, m, dataset, temp, idxs); break; case 256: furthest_point_sampling_kernel<256> <<<b, n_threads, 0, stream>>>(b, n, m, dataset, temp, idxs); break; case 128: furthest_point_sampling_kernel<128> <<<b, n_threads, 0, stream>>>(b, n, m, dataset, temp, idxs); break; case 64: furthest_point_sampling_kernel<64> <<<b, n_threads, 0, stream>>>(b, n, m, dataset, temp, idxs); break; case 32: furthest_point_sampling_kernel<32> <<<b, n_threads, 0, stream>>>(b, n, m, dataset, temp, idxs); break; case 16: furthest_point_sampling_kernel<16> <<<b, n_threads, 0, stream>>>(b, n, m, dataset, temp, idxs); break; case 8: furthest_point_sampling_kernel<8> <<<b, n_threads, 0, stream>>>(b, n, m, dataset, temp, idxs); break; case 4: furthest_point_sampling_kernel<4> <<<b, n_threads, 0, stream>>>(b, n, m, dataset, temp, idxs); break; case 2: furthest_point_sampling_kernel<2> <<<b, n_threads, 0, stream>>>(b, n, m, dataset, temp, idxs); break; case 1: furthest_point_sampling_kernel<1> <<<b, n_threads, 0, stream>>>(b, n, m, dataset, temp, idxs); break; default: furthest_point_sampling_kernel<512> <<<b, n_threads, 0, stream>>>(b, n, m, dataset, temp, idxs); } err = cudaGetLastError(); if (cudaSuccess != err) { fprintf(stderr, "CUDA kernel failed : %s\n", cudaGetErrorString(err)); exit(-1); } } ```
```xml import * as React from 'react'; import type { Meta } from '@storybook/react'; import { Steps } from 'storywright'; import { Menu, MenuTrigger, MenuPopover, MenuList, MenuItem } from '@fluentui/react-menu'; import { getStoryVariant, RTL, withStoryWrightSteps } from '../../utilities'; export default { title: 'Menu Converged - nested submenus', decorators: [ // path_to_url story => withStoryWrightSteps({ story, steps: new Steps().click('#nestedTrigger').snapshot('all open').end() }), ], } satisfies Meta<typeof Menu>; export const Default = () => ( <Menu open> <MenuTrigger> <button>Toggle menu</button> </MenuTrigger> <MenuPopover> <MenuList> <MenuItem>New </MenuItem> <MenuItem>New Window</MenuItem> <MenuItem>Open Folder</MenuItem> <Menu> <MenuTrigger> <MenuItem id="nestedTrigger">Preferences</MenuItem> </MenuTrigger> <MenuPopover> <MenuList> <MenuItem>New </MenuItem> <MenuItem>New Window</MenuItem> <MenuItem>Open Folder</MenuItem> </MenuList> </MenuPopover> </Menu> </MenuList> </MenuPopover> </Menu> ); Default.storyName = 'default'; export const DefaultRTL = getStoryVariant(Default, RTL); ```
Szronka is a village in the administrative district of Gmina Kuczbork-Osada, within Żuromin County, Masovian Voivodeship, in east-central Poland. It lies approximately north-east of Żuromin and north-west of Warsaw. References Szronka
Bahman Motamedian (; born 2 July) is an Iranian filmmaker, photographer, writer and script writer. He was born in Tehran, Iran. Motamedian belongs to the so-called "new wave" of Iranian cinema. Bahman Motamedian is also has been involved in over twenty works, including shorts film, documentaries film, video art and theater. Motamedian made his first feature film, titled "Khastegi" ("Sex My Life" aka "Tedium") in 2008. "Khastegi" (Sex My Life) was shown in the official selection of 65th Venice International Film Festival as the "surprise film" in 2008. Filmography Screen Writing Screen Writing for Television Series Four Homes [Title in Persian: Chahar Khoone] (2007–2008) Nights in Barareh [Title in Persian: Shabhaye Barareh] (2005) Dots [Title in Persian: Noghtechin] (2005) Do Not Enter [Title in Persian: Vorod Mamno, Mamno] (2004) Under the City Sky [Title in Persian: Zire Asemane Shahr] (2003) Untitled [Title in Persian: Bedone Sharh] (2002) Empyrean Police [Title in Persian: Polise Asemani] (2001) Number 14 [Title in Persian: Pelake 14] (2000) Magic Light [Title in Persian: Cheraghe Jadou] (2000) Eternal Train [Title in Persian: Ghatare Abadi] (2000) Awards and nominations Awards the first prize (24th Torino GBLT Film Festival 23–3 April 2009 / Torino, Italy) Special citation (Best producer) (Asia Pacific Festival of 1st Films/ 4–10 December 2008/ Singapore) Brian Prize (65th Venice International Film Festival / 27 August to 6 September 2008) Queer Lion Award (65th Venice International Film Festival / 27 August to 6 September 2008) The Best Experimental Film /Aquarium /( / 13–19 June 2003/Ebensee, Austria) Silver Bear /Aquarium /(Festival of Nations / 13–19 June 2003/Ebensee, Austria) "Aquarium" has been screened at Sonar International Short Film Festival (April 2006 /Florence – Italy) 3rd International Festival Signes de Nuit (25–30 April 2005 /Paris) Rencontres International Paris/Berlin (18–28 February 2003/Paris) (13–19 June 2003 /Ebensee, Austria) Rencontres International Paris/Berlin (10–22 November 2003/berlin) Victoria Independent Film & Video Festival (1-10 February 2002/Canada) 25th Open Air Film Fest WEITERSTAD (16–20 August 2001/Germany) 2nd IndieKINO International film festival (July2001/Seoul, Korea) Ajijic International film festival (7–11 November 2001/Mexico) Kansas City film festival (7–14 April/U.S.A) "Khastegi" (Sex My Life) has been screened at 24th BFI London Lesbian & Gay Film Festival (BFI) ( 17–31 March 2010/ London, England) Cinema Digital Seoul Film Festival (CinDi) ( 19–25 August 2009 / Seoul, South Korea) Chelsea Art Museum (15 July – 19 August 2009 / New York City) 19th Toronto LGBT Film Festival (14–24 May 2009 / Toronto, Ontario, Canada) 24th Torino GBLT Film Festival (23–3 April 2009 / Torino, Italy) Prague international Film Festival (FEBIOFEST) (26 March-3 April 2009 / Prague, Czech Republic) International Contemporary Film Festival (FICCO) (17 Feb – 1 Mar 2009 / Mexico, Mexico City) Asia Pacific Festival of 1st Films (4–10 December 2008 / Singapore) Festival of 3 Continents, Nantes (22 November – 2 December 2008 / Nantes, French) Sao Paulo Film Festival (17–30 October 2008 / São Paulo, Brazil) Venice Film Festival (27 August – 6 September 2008 / Venice, Italy) Play Directing/ Stage Directing Eugène Ionesco's play The Bald Soprano (2013) /Tehran Eugène Ionesco's play Jack, or the Submission (1997) /Tehran Eugène Ionesco's play Maid to Marry (1997) /Tehran Eugène Ionesco's play The Bald Soprano (1997) /Tehran Eugène Ionesco's play The Bald Soprano (1995) /Tehran Published Stories The Big Overcoat (2010) /Short Story Collection The Sound of Train Whistling (1999) /Short Story Solo Exhibition Niyavaran Cafe Art Gallery /Photography /2007 /Tehran Group Exhibition Youth Cinéma Institute /Photography /1991 /Tehran Educational-backgrounds Tehran Azad University /Master of Play Directing /1996-1997 /Tehran Tehran Azad University /Bachelor of Industrial Engineering /1995 /Tehran Studying Theatre for two years and joining to /1994 /Tehran Experimental Theater Institute Art University /Film Directing Major /1992-1994 /Tehran Studying Photography at Youth Cinema Institute /1990 /Tehran and working as a Professional Photographer High School Diploma /1989 /Tehran See also Intellectual movements in Iran Iranian New Wave (cinema) Cinema of Iran Humanitarianism References External links Khastegi (Sex My Life) official web site Iranian film directors Iranian screenwriters Iranian documentary filmmakers Iranian photographers Persian-language film directors Film people from Tehran 1969 births Living people Iranian male short story writers
"Who Are You Now?" is the sixth episode of the ninth season of the post-apocalyptic horror television series The Walking Dead, which aired on AMC on November 11, 2018. This episode is the first not to have Andrew Lincoln credited in the main cast billing as Rick Grimes and the first not to have Lauren Cohan (Maggie Greene) credited since season 2. This episode marks the first appearance of The Whisperers, a prominent antagonistic group featured in the comics following the defeat of Negan and the Saviors. Plot Michonne narrates over scenes of the survivors continuing to rebuild their various communities and struggling to survive, six years after Rick Grimes' apparent death. Judith leads Magna's group to Aaron, Eugene, Laura, and Rosita, who are hesitant about protecting them, but Judith insists. They travel to Alexandria, just as Michonne returns from a scavenging run. Michonne sizes them up and knows that Judith did not follow the proper procedure for bringing new survivors in, but agrees to let them stay overnight and to hear their case the following morning in front of their council which includes the former high-ranking Savior Laura, now a trusted member of the community. At the Kingdom, Ezekiel recognizes the needs to have a trained blacksmith to help effect repairs, and decides to have Henry travel to Hilltop to be apprenticed in the art. Carol brings Henry along with a number of supplies she plans to bring to the Hilltop too. En route, they are attacked by the remains of the Saviors, aside from those who joined the other communities, led by Carol's old enemy Jed and former Savior lieutenant Regina. Jed reveals that the Sanctuary has fallen and the remaining Saviors have become marauders to survive. They steal the supplies, among them the ring that Ezekiel gave to Carol, and promise they will never see them again. That night, after setting up camp, Carol sneaks out to find the Saviors camp, douses the area in gasoline, and sets them ablaze, killing them while recovering her ring. They continue on the next day, rendezvousing with Daryl who has taken to living on his own. In the morning, the council asks Magna's group questions similar to what Rick would ask of potential allies. While the other council members seem accepting of their answers, Michonne sees that Magna has a prison tattoo, and a hidden knife, and demands she explain herself. She cannot do so, and the council votes to have them evicted from the community after Yumiko is treated. Rosita and Eugene go to take some radio equipment to set up on a nearby water tower for Gabriel, who is trying to see if any other communities can make contact. They note that a large herd had passed, but believe it will not interfere with their goal. As Eugene places the radio equipment, he spots the horde now aiming for them. He spooks their horses as he tries to climb down, and Rosita rushes to recover essential gear from their wagon. Eugene is forced to jump the last bit off the tower and injures his leg, and after Rosita gets him a shovel as a makeshift crutch, the two escape. Judith, who has developed a rapport with the imprisoned Negan, is upset at Michonne for not trusting her. Michonne mulls over her decision as she tends to her and Rick's child, Rick Jr. (RJ). As the group is about to be evicted, Michonne has a change of heart and says they likely will be able to stay over at Hilltop, and will escort them personally there along with Siddiq and former Savior D.J. to watch over Yumiko's recovery. As Eugene and Rosita make it into the woods, the horde surprisingly stays on their tail, and only once they find a wet ditch and cover themselves in mud does the horde seem to ignore their presence. They hear faint whispers of "Where are they?" and "They must be close, don't let them get away" as the horde passes. Production From this episode, Daryl Dixon (Norman Reedus) becomes the main protagonist of the series. This is the first episode broadcast following the departure of Andrew Lincoln as Rick Grimes, which included a six-year time jump from the events of his apparent death. Among changes include Khary Payton (King Ezekiel) being promoted to the main cast as his name appears in the opening credits. This episode introduces Matt Lintz as the older Henry; Matt is the older brother of Macsen Lintz who had played Henry in previous seasons, and brother to Madison Lintz, who had played Carol's daughter Sophia on the first two seasons of the show. This is the first episode to feature a significant appearance by the Whisperers, which in the comics are a group of human survivors that wear the skin of walkers to mask themselves, and speak only in whispers to avoid drawing the walkers' attention. Within the comics, Rick's son, Carl Grimes, was an essential element to that arc, but within the show, Carl (Chandler Riggs) had been killed off in the middle of the eighth season. According to showrunner Angela Kang, to adapt the comic's story, they plan on taking some of the role that Carl had and giving them to Judith, now aged similarly to Carl, which allows them to follow the main threads of the comic's Whisperer arc but with a new take using Judith's personality. Reception Critical reception "Who Are You Now?" received positive reviews from critics. On Rotten Tomatoes, the episode has an approval rating of 83% with an average score of 6.92 out of 10, based on 16 reviews. The critical consensus reads: "Who Are You Now?" swiftly establishes a new world order in The Walking Dead without Rick Grimes, effectively conveying the progression of the survivors, but some viewers may feel adrift in what feels like the umpteenth re-set for the series. Erik Kain of Forbes praised the episode and the reboot of the series, saying “I’m still shocked by how good ‘’The Walking Dead’’ has gotten, and while I was worried before (and still have some doubts) I don’t think it’s going to suffer too much without Rick. His “death” serves as an interesting catalyst for character growth throughout the community, as they no longer have the luxury of one leader calling all the shots.” Ratings "Who Are You Now?" received a total viewership of 5.40 million with a 2.0 rating in adults aged 18–49. It was the highest-rated cable program of the night, and the episode was steady in viewership from the previous week. References External links "Who Are You Now?" at AMC 2018 American television episodes The Walking Dead (season 9) episodes
Viola frank-smithii is a rare species of violet known by the common name Frank Smith's violet. It is endemic to Utah in the United States, where it is known only from Logan Canyon in the Bear River Range in Cache County. This perennial herb produces a stem few centimeters long, which is surrounded by the withered leaves of previous seasons and new leaves, which are heart-shaped. The flower is pale purple except for the lowest petal, which is greenish. Blooming occurs in May and June. This plant grows on vertical limestone cliffs, often in spots shaded by Douglas-fir (Pseudotsuga menziesii), Rocky Mountain maple (Acer glabrum), and bigtooth maple (A. grandidentatum). Other plants in the habitat include pink alumroot (Heuchera rubescens), mat rock spiraea (Petrophyton caespitosum), narrowleaf wildparsley (Musineon lineare), Maguire's primrose (Primula cusickiana var. maguirei), Cronquist's fleabane (Erigeron cronquistii), cutleaf mountain mahogany (Cercocarpus ledifolius), Watson's prickly phlox (Leptodactylon watsonii), bluebells (Mertensia oblongifolia), and various mosses. References External links frank-smithii Flora of Utah Cache County, Utah
```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 autodetection import ( "net" "regexp" "strings" log "github.com/sirupsen/logrus" cnet "github.com/projectcalico/calico/libcalico-go/lib/net" ) // Interface contains details about an interface on the host. type Interface struct { Name string Cidrs []cnet.IPNet } // GetInterfaces returns a list of all interfaces, skipping any interfaces whose // name matches any of the exclusion list regexes, and including those on the // inclusion list. func GetInterfaces(getSystemInterfaces func() ([]net.Interface, error), includeRegexes []string, excludeRegexes []string, version int) ([]Interface, error) { netIfaces, err := getSystemInterfaces() if err != nil { log.WithError(err).Warnf("Failed to enumerate interfaces") return nil, err } var filteredIfaces []Interface var includeRegexp *regexp.Regexp var excludeRegexp *regexp.Regexp // Create single include and exclude regexes to perform the interface // check. if len(includeRegexes) > 0 { if includeRegexp, err = regexp.Compile("(" + strings.Join(includeRegexes, ")|(") + ")"); err != nil { log.WithError(err).Warnf("Invalid interface regex") return nil, err } } if len(excludeRegexes) > 0 { if excludeRegexp, err = regexp.Compile("(" + strings.Join(excludeRegexes, ")|(") + ")"); err != nil { log.WithError(err).Warnf("Invalid interface regex") return nil, err } } // Loop through interfaces filtering on the regexes. Loop in reverse // order to maintain behavior with older versions. for idx := len(netIfaces) - 1; idx >= 0; idx-- { iface := netIfaces[idx] include := (includeRegexp == nil) || includeRegexp.MatchString(iface.Name) exclude := (excludeRegexp != nil) && excludeRegexp.MatchString(iface.Name) if include && !exclude { if i, err := convertInterface(&iface, version); err == nil { filteredIfaces = append(filteredIfaces, *i) } } } return filteredIfaces, nil } // convertInterface converts a net.Interface to our Interface type (which has // converted address types). func convertInterface(i *net.Interface, version int) (*Interface, error) { log.WithField("Interface", i.Name).Debug("Querying interface addresses") addrs, err := i.Addrs() if err != nil { log.Warnf("Cannot get interface address(es): %v", err) return nil, err } iface := &Interface{Name: i.Name} for _, addr := range addrs { addrStr := addr.String() ip, ipNet, err := cnet.ParseCIDR(addrStr) if err != nil { log.WithError(err).WithField("Address", addrStr).Warning("Failed to parse CIDR") continue } if ip.Version() == version { // Switch out the IP address in the network with the // interface IP to get the CIDR (IP + network). ipNet.IP = ip.IP log.WithField("CIDR", ipNet).Debug("Found valid IP address and network") iface.Cidrs = append(iface.Cidrs, *ipNet) } } return iface, nil } ```
Geoffrey Luc Fabien Malfleury (born 20 January 1988) is a Martiniquais professional footballer who plays for AS Cannes. During his career, he also played in France, Switzerland, Portugal and Cyprus for teams such as Stade Nyonnais, Le Havre, Tours, União da Madeira, Alki Oroklini and FC Voluntari, among others. Club career Malfleury was born in Aubervilliers, France. Wigry Suwałki Malfleury joined Polish club Wigry Suwałki on 15 April 2019, as a last minute transfer. After passing the medicals and signing the contract, he joined the team that was going to face Podbeskidzie Bielsko-Biała. Efforts were made to authorize him to perform in this match, but it failed and the club could not even be included in the match protocol. A day later, it turned out that he would not be able to appear in any game for the club, because the reason why he terminated his contract with FC Voluntari was not acceptable, according to the Polish Football Association, and they refused to register him. The regulations of Polish Football Association allow only players who have terminated their contracts by mutual consent with their former teams or because the player did not play throughout the year. Eventually, Malfleury's contract with the club was terminated after only a few days. International career At international level, Malfleury plays for the Martinique national team. References External links 1988 births Living people French men's footballers French people of Martiniquais descent Martiniquais men's footballers Martinique men's international footballers Men's association football forwards Championnat National players Championnat National 2 players Championnat National 3 players Liga Portugal 2 players Cypriot First Division players Ligue 2 players Liga I players Swiss Challenge League players FC Stade Nyonnais players Red Star F.C. players FC Istres players Le Havre AC players Tours FC players C.F. União players Alki Oroklini players FC Voluntari players Wigry Suwałki players AS Cannes players French expatriate men's footballers Martiniquais expatriate men's footballers French expatriate sportspeople in Switzerland Expatriate men's footballers in Switzerland French expatriate sportspeople in Portugal Expatriate men's footballers in Portugal French expatriate sportspeople in Cyprus Expatriate men's footballers in Cyprus French expatriate sportspeople in Romania Expatriate men's footballers in Romania French expatriate sportspeople in Poland Expatriate men's footballers in Poland
Maitree is an Indian television series that premiered on 7 February 2023 on Zee TV. Produced under Sunshine Productions, it is starring Shrenu Parikh, Bhaweeka Chaudhary, Samarth Jurel, Zaan Khan and Namish Taneja. Synopsis Maitree and Nandini are best friends since childhood but when they grow up, Maitree feels betrayed by Nandini due to some unknown reasons and a rift gets created between the friendship of the duo. Plot Maitree and Nandini are best friends and, to avoid being separated from each other, hope to marry into the same house. 15 years later Nandini and Maitree are now grown up. Nandini is married to Aashish. They are also expecting their first child. Aashish is an advocate by profession. Eventually Maitree marries Saransh, Aashish's younger cousin. Unknown to anyone, Saransh is a drug addict. Saransh and Maitree; Nandini and Aashish get into a car accident. Aashish and Maitree luckily survive the accident. Nandini falls into a coma after delivering a baby boy while Saransh succumbs to his injuries and dies. Saransh's mother, Sona Tiwari blames Maitree for Saransh's death. Nandini's mother, Advocate Vasundhara Singh Rathore accidentally mentions in front of Aashish that Saransh was a drug addict, which shocks him. Maitree decides to take care of Nandini and Aashish's son. Vasundhara informs Maitree that Saransh was a drug addict. Maitree is devastated and confronts Aashish. Aashish tries to conceal the truth but fails as Vasundhara had sent Saransh's reports to Maitree. Aashish gets arrested and Vasundhara uses false evidences in court against him to prove that he is a drug dealer. But later, he gets bail and attends his son's naming ceremony. Aashish and Nandini's son is named Nandish ( a combination of their name). Maitree and Aashish decide to raise Nandish. 6 years later Nandini comes out of coma and tries to bond with Nandish, who doesn't want to get rid of Maitree. As a result, Nandini turns against Maitree and starts to think that she is snatching Nandish from her. She tries to create difficulties in Maitree's life and turns her enemy. After a series of events, Nandish accepts Nandini as his mother but still continues to refer to Maitree as "maa" (mother). For Nandini's happiness, Maitree leaves Tiwari Mansion. She meets a fun-loving man, Harsh, and marries him. Later, it's revealed that Harsh is actually the half-brother of Saransh from his father's side. Both Maitree and Harsh move into the Tiwari Mansion again. Harsh's mother, Kamna, tries to torture and kill Maitree but is exposed. Aashish dies, in an attempt to save Nandini from a fire. Saransh who is actually alive turns furious when he discovers that Maitree has remarried. He returns back, and pretends to be Aashish, to seek revenge on Maitree. Maitree gets pregnant and gives birth to a boy child. Saransh steals the child and misinforms the family that he has murdered him. Harsh blames Maitree for the possible death of their son and throws her out of the Tiwari house. Saransh hands Maitree's child to a greedy woman, who, leaves the child in the trash. Maitree finds her child and decides to raise him, but she is unaware that it's her biological child. 7 years later Maitree lives with her son, Swayam. On the other hand, Harsh still blames Maitree for their son's death and has adopted a girl, Juhi. For the sake of the family, Harsh and Nandini get married. Maitree is eventually engaged to her boss, Yash. Saransh comes back and tells Maitree and Harsh that Swayam is their son. But due to Swayam's illness, the doctor tells Harsh and Maitree that they have to produce Swayam's sibling who will donate bone marrow to Swayam. Maitree and Harsh reconcile for saving Swayam's life. Maitree breaks her engagement with Yash and Nandini breaks her marriage with Harsh. Nandini gradually realizes that she committed a grave mistake by breaking her marriage with Harsh for saving Swayam's life. She turns revengeful and join hands with Saransh to kill Maitree. Sona learns about Nandini and Saransh's plan to kill Maitree. As Sona calls Maitree to expose Nandini and Saransh, Nandini pushes her from the terrace and she dies. Cast Main Shrenu Parikh as Maitree Tiwari (nee Mishra): Dinesh and Sadhana's daughter; Sachin's sister; Saransh's former wife; Harsh's wife; Swayam and Vedika's mother; Juhi's adoptive mother; Yash's former fiancée (2023) Zara Khan as Child Maitree Mishra (2023) Samarth Jurel as Harsh Tiwari: Madan and Kamna's son; Sona's step-son; Saransh's step-brother; Aashish's cousin; Nandini's ex-husband; Maitree's husband; Swayam and Vedika's father; Juhi's adoptive father (2023) Recurring Bhaweeka Chaudhary as Nandini Tiwari (nee Singh Rathore): Vasundhara's daughter, Rajkumar and Princey' cousin; Aashish's widow; Harsh ex–wife; Nandish's mother; Sona's murderer (2023) Urvi Upadhyay as Child Nandini Singh Rathore (2023) Namish Taneja as Advocate Aashish Tiwari: Omprakash and Kusum's son; Saransh and Harsh's cousin; Nandini's late husband; Nandish's father (2023) Zaan Khan / Kunal Karan Kapoor as Saransh Tiwari: Sona and Madan's son; Aashish's cousin and murderer; Maitree's ex–husband; Harsh's step-brother; Kamna's step-son (2023) / (2023) Ishita Ganguly as Swarnmani: An Ichchadhari Naagin; Rani's daughter; Harsh's one sided obsessive lover (2023) Aadesh Chaudhary as Yash Thakur: Maitree's boss turned ex-fiancée; Swayam's father-figure (2023) Ananya Khare as Sona Tiwari: Madan's late wife; Saransh's mother; Harsh's step-mother; Swayam's step-grandmother; Juhi's adoptive step-grandmother (2023) (Dead) Manish Khanna as Madan Tiwari: Sona's widower; Kamna's husband; Saransh and Harsh's father; Swayam and Vedika's grandfather; Juhi's adoptive grandfather (2023) Maleeka Ghai as Kamna Tiwari: Madan's second wife; Harsh's mother; Saransh's stepmother; Swayam and Vedika's grandmother; Juhi's adoptive grandmother (2023) Khalida Jan as Advocate Vasundhara Singh Rathore: Nandini's mother; Nandish's maternal grandmother; a famous advocate; Rajkumar and Princey's aunt; Neelu's sister–in–law; Chakramani's sister (2023) Saksham Shringirushi as Nandish Tiwari: Aashish and Nandini's son; Maitree's nephew; Harsh's stepson; Vasundhara's maternal grandson; Omprakash, Kusum, Sona and Madan's grandson; Swayam and Vedika's elder cousin (2023) Gantavya Sharma as Child Nandish Tiwari (2023) Azima Shaikh as Baby Nandish Tiwari (2023) Ranav Sharma as Swayam Tiwari: Harsh and Maitree's son; Vedika's brother; Aashish and Nandini's nephew; Nandish's younger cousin; Madan and Kamna's grandson; Sona's stepgrandson (2023) Trisha Bisht as Juhi Tiwari: Harsh's adopted daughter (2023) Vijaylaxmi Singh as Sadhana Mishra: Maitree and Sachin mother; Dinesh's wife; Swayam and Vedika's maternal grandmother (2023) Pratish Vora as Omprakash Tiwari: Aashish's father; Madan's brother; Kusum's husband; Nandini's father–in–law ; Nandish's grandfather; Harsh and Saransh's uncle (2023–present) Sunny Saini as Kabootar: A Drugs Peddler (2023) Naman Arora as Rajkumar: Nandini's cousin; Princey's brother; Chakramani and Neelu's son (2023) Govind Khatri as Chakramani: Vasundhara's brother; Princey and Rajkumar's father; Nandini's uncle; Neelu's husband; Sachin's father–in–law (2023) Smita Gupta as Kusum Omprakash Tiwari: Omprakash's wife; Aashish's mother; Nandini's mother–in–law; Nandish's grandmother; Saransh's and Harsh's aunt (2023) Chirag Kapoor as Sachin Mishra: Sadhana and Dinesh's son; Maitree's brother; Princey's husband; Chakramani and Neelu's son-in-law; Swayam's maternal uncle (2023) Sangeeta Adhikari as Neelu Singh: Princey and Rajkumar's mother; Vasundhara's sister–in–law; Nandini's aunt; Chakramani's wife; Sachin's mother–in–law (2023) Diksha Tiwari as Princey Mishra (née Singh): Neelu and Chakramani's daughter; Nandini's cousin; Rajkumar's sister; Maitree's sister–in–law; Sachin's wife (2023) Amit Kapoor as DSP Dinesh Mishra: Maitree and Sachin's father; a police officer; Saransh and Harsh's former father in law; Sadhana's husband; Swayam and Vedika's maternal grandfather; Princey's father–in–law (2023) Sapan Chaudhary as Vivek Oberoi (2023) Vishal Kotian as Bajrangi: An autorickshaw driver (2023) Ram Awana as Trikaal: A tantik (2023) (Dead) Hemant Choudhary as Nageshwar: A Shiv Bhakt (2023) (Dead) Shweta Dadhich as Rani: An Ichchadhari Naagin; Swarnmani's mother (2023) Production The series was announced on Zee TV by Sunshine Productions. Shrenu Parikh, Bhaweeka Chaudhary, Zaan Khan and Namish Taneja were signed as the lead. The launch event for the series was held on 4 February 2023. See also List of programmes broadcast by Zee TV References External links Maitree at ZEE5 2023 Indian television series debuts 2023 Indian television series endings 2020s Indian television series Hindi-language television shows Zee TV original programming
Jean-Baptiste-Alphonse is a given name. Notable people with the name include: Jean-Baptiste Alphonse Karr (1808-1890), French critic, journalist and novelist Jean-Baptiste-Alphonse Lusignan (1843-1893), French-Canadian writer See also Alphonse (disambiguation) French masculine given names Masculine given names Compound given names
Zalemi (, also Romanized as Z̧ālemī) is a village in Alamarvdasht Rural District, Alamarvdasht District, Lamerd County, Fars Province, Iran. At the 2006 census, its population was 46, in 10 families. References Populated places in Lamerd County
Cat Spectacular! is the debut studio album by indie pop band Bearsuit. It was released in 2004 on Fortuna Pop!. Track listing "Welcome Bearsuit Space hotel" – 2:04 "Cookie Oh Jesus" – 2:57 "Rodent Disco" – 2:08 "Cherryade" – 2:57 "I Feel the Heat of the Light from Heaven" – 0:48 "Going Steady" – 2:30 "Itsuko Got Married" – 2:32 "Prove Katie Wrong" – 3:04 "TSTM" – 3:11 "Diagonal Girl" – 1:26 "Kiki Keep Me Company" – 2:00 "On Your Special Day" – 3:22 References Bearsuit albums 2004 albums Fortuna Pop! Records albums
Louis Kotra Uregei (4 February 1951 – 20 October 2022) was a New Caledonian syndicalist and politician. Uregei was born in Nouméa on 4 February 1951. He was a member of the Labour Party, and was a Kanak who supported independence from France. Uregei died on 20 October 2022, at the age of 71. References 1951 births 2022 deaths Kanak people New Caledonia politicians Members of the Congress of New Caledonia People from Nouméa
```yaml apiVersion: release-notes/v2 kind: bug-fix area: security issue: - path_to_url releaseNotes: - | **Fixed** an issue where RBAC updates were not sent to older proxies after upgrading istiod to 1.17. ```
The striped field mouse (Apodemus agrarius) is a rodent in the family Muridae. The range of this species stretches from Eastern Europe to Eastern Asia. Synonyms Accepted synonyms include Apodemus albostriatus (Bechstein, 1801), Apodemus caucasicus (Kuznetzov, 1944), Apodemus chejuensis (Johnson and Jones, 1955), Apodemus coreae (Thomas, 1908), Apodemus gloveri (Kuroda, 1939), Apodemus harti (Thomas, 1898), Apodemus henrici (Lehmann, 1970), Apodemus insulaemus (Tokuda, 1939 and 1941), Apodemus istrianus (Kryštufek, 1985), Apodemus kahmanni (Malec and Storch, 1963), Apodemus karelicus (Ehrström, 1914), Apodemus maculatus (Bechstein, 1801), Apodemus mantchuricus (Thomas, 1898), Apodemus nicolskii (Charlemagne, 1933), Apodemus nikolskii (Migouline, 1927), Apodemus ningpoensis (Swinhoe, 1870), Apodemus ognevi (Johansen, 1923), Apodemus pallescens (Johnson and Jones, 1955), Apodemus pallidior (Thomas, 1908), Apodemus pratensis (Ockskay, 1831), Apodemus rubens (Oken, 1816), Apodemus septentrionalis (Ognev, 1924), Apodemus tianschanicus (Ognev, 1940) and Apodemus volgensis (Kuznetzov, 1944). Description The upper parts of the striped field mouse are grayish brown with a rusty tint with a prominent mid-dorsal black stripe. The under parts are paler and grayish. The ears and eyes are relatively small. The body length reaches 126 mm, with a tail of up to 90 mm, and it weighs up to 50 g. Distribution and habitat The striped field mouse has an extensive but disjunct distribution, split into two ranges. The first reaches from central and eastern Europe to Lake Baikal (Russia) in the north, and China in the south. The second includes parts of the Russian Far East and from there reaches from Mongolia to Japan. Its expansion across Eastern Europe appears to be relatively recent; the species is thought to have reached Austria in the 1990s. The striped field mouse inhabits a wide range of habitats including the edges of woodlands, grasslands and marshes, pastures and gardens, and urban areas. In the winter, it may be found in haystacks, storehouses, and dwellings. Ecology The striped field mouse excavates a short burrow with a nesting chamber at a shallow depth. It is nocturnal during the summer, but mainly diurnal in the winter. Its diet varies and includes green parts of plants, roots, seeds, berries, nuts, and insects. Three to five broods are born in a year with an average of six young per litter and the population can build up rapidly in a good season. Limiting factors include frequent torrential rains during a warm season, early soil freezing, and predation. Interaction with humans The striped field mouse is a common agricultural pest within its range, particularly in years of population outbreaks, and a natural vector of diseases commonly associated with murine rodents. See also List of mammals of Korea List of mammals of Russia List of mammals of China List of mammals of Ukraine List of mammals of Belarus List of mammals of Lithuania List of mammals of Latvia List of mammals of Estonia List of mammals of Finland List of mammals of Poland List of mammals of Germany List of mammals of Hungary List of mammals of Romania References External links Apodemus agrarius. IUCN Mammals of Asia Rodents of Europe Apodemus Mammals described in 1771 Taxa named by Peter Simon Pallas
This list embraces topographical watersheds and drainage basins and other topics focused on them. Terms – different uses The source of a river or stream is the furthest place from its estuary or confluence with another river, and is alternatively known as a "watershed" and/or "headwaters" in some countries. The confluence is the meeting of two rivers or streams, and may sometimes be known as "headwaters". A drainage basin is an area of land where all surface water converges to a single point at a lower elevation. In North America, "watershed" is used for this sense, while elsewhere terms like "catchment" or "drainage area" are used. A drainage divide is the line that separates neighboring drainage basins. In English-speaking countries outside of North America, this is normally known as a "watershed". Drainage divides Drainage divides category The European Watershed, the line dividing the drainage basins of the major rivers of Europe The Drainage divides, the lines dividing drainage basins in North America (i.e.: Great Basin Divide and Great Basin hydrologic region) Watersheds and drainage basins Basins category Drainage basins category List of drainage basins by area: A worldwide list of watersheds Drainage basins of the Atlantic Ocean category Drainage basins of the Arctic Ocean category Watersheds - basins by country Watersheds of Canada category Watersheds of the United States category Drainage systems of Australia category Examples Lake Erie Watershed (Pennsylvania) Guadalupe Watershed Hudson River Watershed Humber Watershed Turtle Creek Watershed Watershed and drainage basin organisations and institutions Management organisations Watershed management, the management of drainage basins Watershed Protection and Flood Prevention Act, a United States law controlling drainage and water storage Watershed district (Minnesota), one of a number of government entities in the US state of Minnesota which monitor and regulate the use of water in drainage basins Watershed district (Russia), one of twenty groups of water bodies listed in the Water Code of the Russian Federation Examples Council for Watershed Health Great Swamp Watershed Association Minnehaha Creek Watershed District Santa Fe Watershed Association Walla Walla Basin Watershed Council Yukon River Inter-Tribal Watershed Council Study institutions University of South Carolina Upstate: Center for Watershed Ecology Other uses Watershed College, Zimbabwe Watershed Media Centre, Bristol, England Stony Brook Millstone Watershed Arboretum "River of Words"; watersheds as subject poetry competition - List of Watershed topics Watershed Water and the environment
George Latimer Apperson ISO, (1857–1937) was a school inspector and man of letters. He was editor of The Antiquary from 1899–1915, and a major contributor to the Oxford English Dictionary, both submitting large numbers of quotations and serving as subeditor for parts. Apperson was created Companion of the Imperial Service Order in 1903, for his service in the Scotch Education Department within the Scottish Office at Whitehall. Works The following list has come from a search on the Jisc Library Hub Discover database., with details checked by looking at advertisements and reviews for the works at the time of publication in the British Newspaper Archive. Notes References External links 1857 births 1937 deaths British lexicographers British writers Companions of the Imperial Service Order
Charles Hardinge, 1st Baron Hardinge of Penshurst, (20 June 1858 – 2 August 1944) was a British diplomat and statesman who served as Viceroy and Governor-General of India from 1910 to 1916. Background and education Hardinge was the second son of Charles Hardinge, 2nd Viscount Hardinge, and the grandson of Henry Hardinge, 1st Viscount Hardinge, a former Governor-General of India. He was educated Cheam School, Harrow School and at Trinity College, Cambridge. Career Hardinge entered the diplomatic service in 1880. He was appointed the first secretary at Tehran in 1896, and the first secretary at Saint Petersburg in 1898, when he was promoted over the heads of seventeen of his seniors. While in Russia, he acted as chargé d'affaires in the ambassador's absence (including in late 1902). After a brief tenure as Assistant Under-Secretary for Foreign Affairs, he became Ambassador to Russia, in 1904. In 1906, he was promoted to the position of Permanent Under-Secretary at the Foreign Office, where despite his own conservatism, he worked closely with Liberal Foreign Secretary Sir Edward Grey. In 1907, he declined the post of Ambassador to the United States. In 1910, Hardinge was raised to the peerage as Baron Hardinge of Penshurst, in the County of Kent, and appointed by the Asquith government as Viceroy of India. His tenure was a memorable one and included the visit of King George V and the Delhi Durbar of 1911, as well as the move of the capital from Calcutta to New Delhi in 1911. Although Hardinge was the target of assassination attempts with bomb attack by the Indian nationalists Rashbehari Bose and Sachin Sanyal, his tenure included an improvement of relations between the British administration and the nationalists, as a consequence of the implementation of the Morley-Minto reforms of 1909, and of Hardinge's own admiration for Mohandas Gandhi and criticism of the South African government's anti-Indian immigration policies.. Hardinge founded the Dhamrai Hardinge High School and College in 1914. The Hardinge Railway Bridge, now in Bangladesh, was constructed and inaugurated (1915) in his tenure. It has continued to serve a crucial a role in the country's railway network. Hardinge's efforts paid off in 1914 during the First World War. Improved colonial relationships allowed Britain to deploy nearly all of the British troops in India as well as many native Indian troops to areas outside India. In particular, the British Indian Army played a significant (though initially mismanaged) role in the Mesopotamian campaign. In 1916, Hardinge returned to his former post in England as Permanent Under-Secretary at the Foreign Office, serving with Arthur Balfour. In 1920, he became ambassador to France before his retirement in 1922. Honours As well as the distinction of being awarded six British knighthoods, he also gained foreign awards: Knight of Grace of Order of St. John of Jerusalem in England. Grand officer in the Legion of Honour, from France. Grand cross of the Crown of Italy. Order of the Immaculate Conception of Vila Viçosa, from Portugal. Order of the Redeemer, from Greece. Order of Charles III, from Spain. Order of St. Olav, from Norway. Order of Alexander Nevsky, from Russia. Order of the Dannebrog, from Denmark. Order of Vasa, from Sweden. Personal life He married his first cousin Winifred Selina Sturt on 17 April 1890, over the objections of her family, due to the couple's consanguinity and Hardinge's financial status. She was the second daughter of Henry Gerard Sturt, first Baron Alington, by his first wife Lady Augusta Bingham, who was the first daughter of George Charles Bingham, third Earl of Lucan. The couple had a daughter, Diamond Hardinge (1900-1927), and two sons, Edward and Alexander (1894–1960), who succeeded him as Baron Hardinge of Penshurst. The first Baron Hardinge of Penshurst is commemorated at St John the Baptist, Penshurst. His eldest son, The Hon. Edward Hardinge, died 18 December 1914, aged 22, from wounds while serving as a Lieutenant with the 15th (The King's) Hussars in France. He was also the godson of Alexandra of Denmark. Diamond Hardinge was a bridesmaid at the wedding of Prince Albert, Duke of York, and Lady Elizabeth Bowes-Lyon on 3 May 1923. Styles and honours Hardinge had the unusual distinction of being a non-royal recipient of six British knighthoods. June 1858 – July 1895: The Honourable Charles Hardinge July 1895 – April 1903: The Honourable Charles Hardinge April 1903 – 7 March 1904: The Honourable Charles Hardinge 7–26 March 1904: The Right Honourable Charles Hardinge 26 March – 28 April 1904: The Right Honourable Sir Charles Hardinge 28 April – 10 May 1904: His Excellency The Right Honourable Sir Charles Hardinge 10 May 1904 – 2 January 1905: His Excellency The Right Honourable Sir Charles Hardinge 2 January – 9 November 1905: His Excellency The Right Honourable Sir Charles Hardinge 9 November 1905 – June 1906: The Right Honourable Sir Charles Hardinge June 1906 – 23 June 1910: The Right Honourable Sir Charles Hardinge 23 June – 2 August 1910: The Right Honourable Sir Charles Hardinge 2 August – 23 November 1910: The Right Honourable The Lord Hardinge of Penshurst 23 November 1910 – 24 March 1916: His Excellency The Right Honourable The Lord Hardinge of Penshurst Viceroy & Governor-General of India 24 March – 4 April 1916: His Excellency The Right Honourable The Lord Hardinge of Penshurst Viceroy & Governor-General of India 4 April 1916 – 27 November 1920: The Right Honourable The Lord Hardinge of Penshurst 27 November 1920 – 1 February 1923: His Excellency The Right Honourable the Lord Hardinge of Penshurst HM Ambassador Extraordinary & Plenipotentiary to the French Republic 1 February 1923 – 2 August 1944: The Right Honourable The Lord Hardinge of Penshurst Books written Old Diplomacy My Indian Years covers (1910-16) See also Delhi conspiracy case References Sources Articles Further reading Hardinge Bridge External links Hardinge of Penshurst, Baron (UK, 1910), genealogy Hardinge's entry at Who's Who Viceroys of India 1910s in British India Members of HM Diplomatic Service 1858 births 1944 deaths Alumni of Trinity College, Cambridge Barons in the Peerage of the United Kingdom Companions of the Imperial Service Order Deputy Lieutenants of Kent Diplomatic peers Knights of the Garter Knights Grand Cross of the Order of the Bath Knights Grand Commander of the Order of the Star of India Knights Grand Commander of the Order of the Indian Empire Knights Grand Cross of the Order of St Michael and St George Knights Grand Cross of the Royal Victorian Order Younger sons of viscounts Ambassadors of the United Kingdom to Russia Ambassadors of the United Kingdom to France Permanent Under-Secretaries of State for Foreign Affairs People from Penshurst Members of the Privy Council of the United Kingdom Barons created by George V 19th-century British diplomats 20th-century British diplomats People educated at Harrow School
Zale'n-gam or Zalengam (Thadou-Kuki) dialect for 'land of freedom'), is a proposed state by Kuki people, with the intention of uniting all the Kuki tribes under a single government. The proposed state's main proponents are the Kuki National Organisation and its armed wing, the Kuki National Army. Zalengam is distinct from Kukiland, a proposed Indian state to be carved from the hilly area of the southern part of Manipur. Territory and people The territorial claims of Zale'n-gam encompass a historical region consisting of the territories traditionally inhabited by the Kukis, but which never have had their own state, including: In India: Parts of Manipur, Mizoram, Nagaland and the Karbi Anglong District of Assam. In Burma: The Kabaw Valley and parts of Sagaing Division and Chin State. In Bangladesh: The Chittagong Hill Tracts There is also a proposal to create two subdivisions of the proposed state: 'Eastern Zalengam' and 'Western Zalengam', the former within Burma and the latter in India. Kuki tribes that would be part of this proposed state include the Bom, Biate, Gangte, Halam, Hmar, Kharam, Koireng, Kom, Lai, Mara, Purum, Saihriem, and the Thadou, among others. See also Kuki Inpi References Independence movements Kuki tribes Proposed countries
Idiots Deluxe is a 1945 short subject directed by Jules White starring American slapstick comedy team The Three Stooges (Moe Howard, Larry Fine and Curly Howard). It is the 85th entry in the series released by Columbia Pictures starring the comedians, who released 190 shorts for the studio between 1934 and 1959. Plot Moe is on trial for assaulting Larry and Curly. Moe appeals to the judge (Vernon Dent), claiming he is a sick man who was instructed by his doctor to maintain peace and quiet. This peace is broken by Larry and Curly who are loudly rehearsing their "The Original Two-Man Quartet" routine performing "She'll Be Coming 'Round the Mountain". Moe cracks, and wraps Curly's trombone slide around the quartet's necks. Realizing Moe is in bad shape, Larry and Curly decide to take their ailing leader on a hunting trip to relieve his stress. Moe agrees, and the Stooges start packing. No sooner do they arrive in an empty cabin when a hungry bear devours some eggs and potatoes while Moe has his back turned. His nerves double frayed, Moe asks Larry and Curly to pursue the bear. One thing leads to another, and the bear ends up behind the wheel of the Stooges' car, and ultimately wrecks it. Back in the courtroom, Moe ends his story by concluding that he must go back to bed for six additional months. The judge takes pity on him, and finds him not guilty. The judge then returns Moe's axe, and Moe immediately goes after Larry and Curly with it. Production notes Idiots Deluxe was filmed on October 5–9, 1944, the last short film produced that year. The title is a satire on Idiot's Delight, a play by Robert E. Sherwood and later an MGM movie of the same title with Norma Shearer and Clark Gable. Idiots Deluxe marks a change in the title screens, most notably featuring the Greco-Roman comic mask of the Muse Thalia in the upper left-hand corner. This new format would remain in place for the remainder of the Stooges shorts run at Columbia Pictures. The film is a remake of Oh, My Nerves, starring Monte Collins and Tom Kennedy. It would be remade with the Stooges again in 1957 as Guns a Poppin, using minimal stock footage. The initial plotline of a person going on a retreat to heal an illness was originally done by Laurel and Hardy in the 1934 film Them Thar Hills. One notable gag was the Stooges' unorthodox cuisine. Idiots Deluxe shows Larry and Curly putting almost every known condiment onto slices of bread but, not surprisingly, they are never shown actually eating the whole bread (partly because Moe interrupts them before they can). Moe then pours honey and ketchup on bread, declaring "If there's anything I like better than honey and ketchup, it's bologna and whipped cream—and we haven't got any!" Like Larry and Curly, Moe also does not eat his concoction, though he is seen biting a small piece of the crust off. Curly's illness At Moe's insistence, Curly Howard entered a Cottage Hospital at Santa Barbara, California in January 1945 and was found to have serious hypertension, obesity and retinal hemorrhage. The next short film produced, If a Body Meets a Body, was shot five months after Idiots Deluxe in March 1945 shortly after he suffered a minor stroke. His remaining performances with the team were lackluster and displayed the effects of his illness. References External links 1945 films 1945 comedy films American black-and-white films Films directed by Jules White The Three Stooges films Columbia Pictures short films 1940s English-language films 1940s American films
```smalltalk " DelayWaitTimeout is a special kind of Delay used in waitTimeoutMSecs: to avoid signaling the underlying semaphore when the wait times out. " Class { #name : 'DelayWaitTimeout', #superclass : 'Delay', #instVars : [ 'process', 'expired' ], #category : 'Kernel-Delays', #package : 'Kernel', #tag : 'Delays' } { #category : 'testing' } DelayWaitTimeout >> isExpired [ "Did this timeout fire before the associated semaphore was signaled?" ^expired ] { #category : 'private' } DelayWaitTimeout >> setDelay: anInteger forSemaphore: aSemaphore [ super setDelay: anInteger forSemaphore: aSemaphore. process := Processor activeProcess. expired := false ] { #category : 'private' } DelayWaitTimeout >> timingPrioritySignalExpired [ "Release the given process from the semaphore it is waiting on. This method relies on running at highest priority so that it cannot be preempted by the process being released." beingWaitedOn := false. "Release the process but only if it is still waiting on its original list" process suspendingList == delaySemaphore ifTrue:[ expired := true. process suspend; resume. ] ] { #category : 'waiting' } DelayWaitTimeout >> wait [ "Wait until either the semaphore is signaled or the delay times out" [self schedule. "It is critical that the following has no suspension point so that the test and the wait primitive are atomic. In addition, if the delay is no longer being waited on while entering the way we know that it is expired because the delay has already fired." beingWaitedOn ifTrue:[delaySemaphore wait] ifFalse:[expired := true]] ensure:[self unschedule]. ^self isExpired ] { #category : 'waiting' } DelayWaitTimeout >> waitOnCompletion: completionBlock onTimeout: timeoutBlock [ "Wait until either the semaphore is signaled or the delay times out. If the delay times out execute timeoutBlock, otherwise if the semaphore is signaled execute completionBlock. Return the value returned by the executed block." ^ self wait ifTrue: [ timeoutBlock value ] ifFalse: [ completionBlock value] ] ```
```smalltalk /* * PROJECT: Atomix Development * LICENSE: BSD 3-Clause (LICENSE.md) * PURPOSE: Lding_I4 MSIL * PROGRAMMERS: Aman Priyadarshi (aman.eureka@gmail.com) */ using System.Reflection; using Atomix.Assembler; using Atomix.Assembler.x86; using Atomix.CompilerExt; using Core = Atomix.Assembler.AssemblyHelper; namespace Atomix.IL { [ILOp(ILCode.Ldind_I4)] public class Ldind_I4 : MSIL { public Ldind_I4(Compiler Cmp) : base("ldind_i4", Cmp) { } public override void Execute(ILOpCode instr, MethodBase aMethod) { switch (ILCompiler.CPUArchitecture) { #region _x86_ case CPUArch.x86: { Core.AssemblerCode.Add(new Pop { DestinationReg = Registers.EAX }); Core.AssemblerCode.Add(new Push { DestinationReg = Registers.EAX, DestinationIndirect = true }); } break; #endregion #region _x64_ case CPUArch.x64: { } break; #endregion #region _ARM_ case CPUArch.ARM: { } break; #endregion } } } } ```
```php <?php /* * * * path_to_url * * Unless required by applicable law or agreed to in writing, software * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the */ namespace Google\Service\Dialogflow; class GoogleCloudDialogflowCxV3TrainFlowRequest extends \Google\Model { } // Adding a class alias for backwards compatibility with the previous class name. class_alias(GoogleCloudDialogflowCxV3TrainFlowRequest::class, your_sha256_hashest'); ```
```objective-c //===your_sha256_hash------===// // // See path_to_url for license information. // //===your_sha256_hash------===// #ifndef _LIBCPP___ALGORITHM_RANGES_MIN_ELEMENT_H #define _LIBCPP___ALGORITHM_RANGES_MIN_ELEMENT_H #include <__config> #include <__functional/identity.h> #include <__functional/invoke.h> #include <__functional/ranges_operations.h> #include <__iterator/concepts.h> #include <__iterator/projected.h> #include <__ranges/access.h> #include <__ranges/concepts.h> #include <__ranges/dangling.h> #include <__utility/forward.h> #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header #endif #if _LIBCPP_STD_VER > 17 _LIBCPP_BEGIN_NAMESPACE_STD namespace ranges { // TODO(ranges): `ranges::min_element` can now simply delegate to `std::__min_element`. template <class _Ip, class _Sp, class _Proj, class _Comp> _LIBCPP_HIDE_FROM_ABI static constexpr _Ip __min_element_impl(_Ip __first, _Sp __last, _Comp& __comp, _Proj& __proj) { if (__first == __last) return __first; _Ip __i = __first; while (++__i != __last) if (std::invoke(__comp, std::invoke(__proj, *__i), std::invoke(__proj, *__first))) __first = __i; return __first; } namespace __min_element { struct __fn { template <forward_iterator _Ip, sentinel_for<_Ip> _Sp, class _Proj = identity, indirect_strict_weak_order<projected<_Ip, _Proj>> _Comp = ranges::less> _LIBCPP_NODISCARD_EXT _LIBCPP_HIDE_FROM_ABI constexpr _Ip operator()(_Ip __first, _Sp __last, _Comp __comp = {}, _Proj __proj = {}) const { return ranges::__min_element_impl(__first, __last, __comp, __proj); } template <forward_range _Rp, class _Proj = identity, indirect_strict_weak_order<projected<iterator_t<_Rp>, _Proj>> _Comp = ranges::less> _LIBCPP_NODISCARD_EXT _LIBCPP_HIDE_FROM_ABI constexpr borrowed_iterator_t<_Rp> operator()(_Rp&& __r, _Comp __comp = {}, _Proj __proj = {}) const { return ranges::__min_element_impl(ranges::begin(__r), ranges::end(__r), __comp, __proj); } }; } // namespace __min_element inline namespace __cpo { inline constexpr auto min_element = __min_element::__fn{}; } // namespace __cpo } // namespace ranges _LIBCPP_END_NAMESPACE_STD #endif // _LIBCPP_STD_VER > 17 #endif // _LIBCPP___ALGORITHM_RANGES_MIN_ELEMENT_H ```
Orthogonius mniszechi is a species of ground beetle in the subfamily Orthogoniinae. It was described by Maximilien Chaudoir in 1871. References mniszechi Beetles described in 1871
Neural accommodation or neuronal accommodation occurs when a neuron or muscle cell is depolarised by slowly rising current (ramp depolarisation) in vitro. The Hodgkin–Huxley model also shows accommodation. Sudden depolarisation of a nerve evokes propagated action potential by activating voltage-gated fast sodium channels incorporated in the cell membrane if the depolarisation is strong enough to reach threshold. The open sodium channels allow more sodium ions to flow into the cell and resulting in further depolarisation, which will subsequently open even more sodium channels. At a certain moment this process becomes regenerative (vicious cycle) and results in the rapid ascending phase of action potential. In parallel with the depolarisation and sodium channel activation, the inactivation process of the sodium channels is also driven by depolarisation. Since the inactivation is much slower than the activation process, during the regenerative phase of action potential, inactivation is unable to prevent the "chain reaction"-like rapid increase in the membrane voltage. During neuronal accommodation, the slowly rising depolarisation drives the activation and inactivation, as well as the potassium gates simultaneously and never evokes action potential. Failure to evoke action potential by ramp depolarisation of any strength had been a great puzzle until Hodgkin and Huxley created their physical model of action potential. Later in their life they received a Nobel Prize for their influential discoveries. Neuronal accommodation can be explained in two ways. "First, during the passage of a constant cathodal current through the membrane, the potassium conductance and the degree of inactivation will rise, both factors raising the threshold. Secondly, the steady state ionic current at all strengths of depolarization is outward, so that an applied cathodal current which rises sufficiently slowly will never evoke a regenerative response from the membrane, and excitation will not occur." (quote from Hodgkin and Huxley) In vivo physiologic condition accommodation breaks down, that is long-duration slowly rising current excites nerve fibers at a nearly constant intensity no matter how slowly this intensity is approached. See also Accommodation index Action potential Anode break excitation Hodgkin–Huxley model References External links Interactive Java applet of the HH model Parameters of the model can be changed as well as excitation parameters and phase space plottings of all the variables is possible. Direct link to Hodgkin-Huxley model and a Description in BioModels Database Direct link to Hodgkin-Huxley paper #1 via PubMedCentral Direct link to Hodgkin-Huxley paper #2 via PubMedCentral Direct link to Hodgkin-Huxley paper #3 via PubMedCentral Direct link to Hodgkin-Huxley paper #4 via PubMedCentral Direct link to Hodgkin-Huxley paper #5 via PubMedCentral Neural Impulses: The Action Potential In Action by Garrett Neske, The Wolfram Demonstrations Project Interactive Hodgkin-Huxley model by Shimon Marom, The Wolfram Demonstrations Project ModelDB A computational neuroscience source code database containing 4 versions (in different simulators) of the original Hodgkin–Huxley model and hundreds of models that apply the Hodgkin–Huxley model to other channels in many electrically excitable cell types. Nonlinear systems Electrophysiology Ion channels Computational neuroscience
```prolog #!/usr/bin/perl ######################################################################## # # # tokenization script for tagger preprocessing # # Author: Helmut Schmid, IMS, University of Stuttgart # # # # Description: # # - splits input text into tokens (one token per line) # # - cuts off punctuation, parentheses etc. # # - cuts of clitics like n't in English # # - disambiguates periods # # - preserves SGML markup # # - reads the whole file at once and should therefore not be called # # with very large files # # # ######################################################################## use Getopt::Std; getopts('hfeiza:w'); # Modify the following lines in order to adapt the tokenizer to other # types of text and/or languages # characters which have to be cut off at the beginning of a word my $PChar='[{\'\`\"\202\204\206\207\213\221\222\223\224\225\226\227\233'; # characters which have to be cut off at the end of a word my $FChar=']}\'\`\\",;:\!\?\%\202\204\205\206\207\211\213\221\222\223\224\225\226\227\233'; # character sequences which have to be cut off at the beginning of a word my $PClitic; # character sequences which have to be cut off at the end of a word my $FClitic; if (defined($opt_e)) { # English $FClitic = "['](s|re|ve|d|m|em|ll)|n[']t"; } if (defined($opt_i)) { # Italian $PClitic = "(?:[dD][ae]ll|[nN]ell|[Aa]ll|[lLDd]|[Ss]ull|[Qq]uest|[Uu]n|[Ss]enz|[Tt]utt|[Cc]|[Ss])[']"; } if (defined($opt_f)) { # French $PClitic = "(?:[dcjlmnstDCJLNMST]|[Qq]u|[Jj]usqu|[Ll]orsqu)[']"; $FClitic = "-t-elles?|-t-ils?|-t-on|-ce|-elles?|-ils?|-je|-la|-les?|-leur|-lui|-mmes?|-m[']|-moi|-nous|-on|-toi|-tu|-t[']|-vous|-en|-y|-ci|-l"; } if (defined($opt_z)) { # Galician $FClitic = '-la|-las|-lo|-los|-nos'; } ### NO MODIFICATIONS REQUIRED BEYOND THIS LINE ######################### if (defined($opt_h)) { die " Usage: tokenize.perl [ options ] ...files... Options: -e English text -f French text -i Italian text -a <file> <file> contains a list of words which are either abbreviations or words which should not be further split. -w replace whitespace by SGML tags "; } # Read the list of abbreviations and words if (defined($opt_a)) { die "file not found: $opt_a\n" unless (open(FILE, $opt_a)); while (<FILE>) { s/^[ \t\r\n]+//; s/[ \t\r\n]+$//; next if (/^\#/ || /^\s$/); # ignore comments $Token{$_} = 1; } close FILE; } ########################################################################### # read the file ########################################################################### while (<>) { # delete \r s/[\r\p{XPosixCntrl}]//g; # replace blanks within SGML Tags while (s/(<[^<> ]*)[ \t]([^<>]*>)/$1\377$2/g) { } # replace whitespace by SGML-Tags if (defined $opt_w) { s/\n/<internal_NL>/g; s/\t/<internal_TAB>/g; s/ /<internal_BL>/g; } # restore SGML Tags tr/\377/ /; # put special characters around SGML Tags for tokenization s/(<[^<>]*>)/\377$1\377/g; s/(&[^; \t\n\r]*;)/\377$1\377/g; s/^\377//; s/\377$//; s/\377\377/\377/g; @S = split("\377"); for ($i=0; $i<=$#S; $i++) { $_ = $S[$i]; # skip lines with only SGML tags if (/^<.*>$/) { print $_,"\n"; } # normal text else { # put spaces at beginning and end $_ = ' '.$_.' '; # put spaces around punctuation s/(\.\.\.)/ ... /g; s/([;\!\?\/])([^ ])/$1 $2/g; s/(,)([^ 0-9.])/$1 $2/g; s/([a-zA-Z-][a-zA-Z-][.:])([A-Z-])/$1 $2/g; @F = split; for ($j=0; $j<=$#F; $j++) { my $suffix=""; $_ = $F[$j]; # cut off punctuation and brackets my $finished = 0; while (!$finished && !defined($Token{$_})) { # preceding parentheses if (s/^(\()([^\)]*)(.)$/$2$3/) { print "$1\n"; } # following preceding parentheses elsif (s/^([^(]+)(\))$/$1/) { $suffix = "$2\n$suffix"; } # other leading punctuation symbols elsif (s/^([$PChar])(.)/$2/) { print $1,"\n"; } # other following punctuation symbols elsif (s/(.)([$FChar])$/$1/) { $suffix = "$2\n$suffix"; } # cut off dot after punctuation etc. elsif (s/([$FChar])\.$//) { $suffix = ".\n$suffix"; if ($_ eq "") { $_ = $1; } else { $suffix = "$1\n$suffix"; } } else { $finished = 1; } } # deal with listed tokens if (defined($Token{$_})) { print "$_\n$suffix"; next; } # deal with abbrevs like U.S.A. if (/^([A-Za-z-]\.)+$/) { print "$_\n$suffix"; next; } # ordinal numbers if (/^[0-9]+\.$/ && ! defined($opt_e)) { print "$_\n$suffix"; next; } # deal with differnt types of dots if (/^(..*)\.$/ && $_ ne "...") { $_ = $1; $suffix = ".\n$suffix"; if (defined($Token{$_})) { print "$_\n$suffix"; next; } } # cut clitics off while (s/^(--)(.)/$2/) { print $1,"\n"; } if (defined $PClitic) { while (s/^($PClitic)(.)/$2/) { print $1,"\n"; } } while (s/(.)(--)$/$1/) { $suffix = "$2\n$suffix"; } if (defined $FClitic) { while (s/(.)($FClitic)$/$1/) { $suffix = "$2\n$suffix"; } } print "$_\n$suffix"; } } } } ```
```freemarker <#import "narrative_block.ftl" as narrative> <#import "code_with_reference.ftl" as codes> <component> <!--Medical Equipment - Not C32--> <section> <templateId root="2.16.840.1.113883.10.20.22.2.23" extension="2014-06-09"/> <!-- Medical equipment section template --> <code code="46264-8" codeSystem="2.16.840.1.113883.6.1"/> <title>Medical Equipment</title> <@narrative.narrative entries=ehr_medical_equipment section="medical_equipment"/> <#list ehr_medical_equipment as entry> <entry typeCode="DRIV"> <supply classCode="SPLY" moodCode="EVN"> <templateId root="2.16.840.1.113883.10.20.22.4.50"/> <!-- Supply activity template --> <id root="${entry.uuid}"/> <statusCode code="completed"/> <effectiveTime value="${entry.start?number_to_date?string["yyyyMMddHHmmss"]}"/> <participant typeCode="DEV"> <participantRole classCode="MANU"> <templateId root="2.16.840.1.113883.10.20.22.4.37"/> <!-- Product instance template --> <addr nullFlavor="NA" /> <telecom nullFlavor="NA" /> <playingDevice> <@codes.code_section codes=entry.codes section="medical_equipment" counter=entry?counter /> </playingDevice> <#if entry.manufacturer??> <scopingEntity> <id root="${UUID?api.toString()}"/> <desc>${entry.manufacturer}</desc> </scopingEntity> </#if> </participantRole> </participant> </supply> </entry> </#list> </section> </component> ```
```javascript /** @jest-environment ./packages/test/harness/src/host/jest/WebDriverEnvironment.js */ describe('originator using ReplyAction', () => { test('should display', () => runHTML('originator/replyAction.html')); }); ```
```objective-c /*** * ==++== * * * ==--== * =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+ * * primitives.h * * =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- ****/ #pragma once #include <crtdefs.h> #include <Windows.h> #include <stdlib.h> #include <awint.h> #include <new> #include <exception> #ifdef _STL_CONCRT_SUPPORT #include <concrt.h> #include <concrtinternal.h> #endif enum class __stl_sync_api_modes_enum { normal, win7, vista, concrt }; extern __stl_sync_api_modes_enum __stl_sync_api_impl_mode; namespace Concurrency { namespace details { class __declspec(novtable) stl_critical_section_interface { public: virtual void lock() = 0; virtual bool try_lock() = 0; virtual bool try_lock_for(unsigned int) = 0; virtual void unlock() = 0; virtual void destroy() = 0; }; class __declspec(novtable) stl_condition_variable_interface { public: virtual void wait(stl_critical_section_interface *) = 0; virtual bool wait_for(stl_critical_section_interface *, unsigned int) = 0; virtual void notify_one() = 0; virtual void notify_all() = 0; virtual void destroy() = 0; }; #pragma warning(push) #pragma warning(disable: 4265) // non-virtual destructor in base class class stl_critical_section_vista final : public stl_critical_section_interface { public: stl_critical_section_vista() { __crtInitializeCriticalSectionEx(&_M_critical_section, 4000, 0); } stl_critical_section_vista(const stl_critical_section_vista&) = delete; stl_critical_section_vista& operator=(const stl_critical_section_vista&) = delete; ~stl_critical_section_vista() = delete; virtual void destroy() override { DeleteCriticalSection(&_M_critical_section); } virtual void lock() override { EnterCriticalSection(&_M_critical_section); } virtual bool try_lock() override { return TryEnterCriticalSection(&_M_critical_section) != 0; } virtual bool try_lock_for(unsigned int) override { // STL will call try_lock_for once again if this call will not succeed return stl_critical_section_vista::try_lock(); } virtual void unlock() override { LeaveCriticalSection(&_M_critical_section); } LPCRITICAL_SECTION native_handle() { return &_M_critical_section; } private: CRITICAL_SECTION _M_critical_section; }; class stl_condition_variable_vista final : public stl_condition_variable_interface { public: stl_condition_variable_vista() { __crtInitializeConditionVariable(&m_condition_variable); } ~stl_condition_variable_vista() = delete; stl_condition_variable_vista(const stl_condition_variable_vista&) = delete; stl_condition_variable_vista& operator=(const stl_condition_variable_vista&) = delete; virtual void destroy() override {} virtual void wait(stl_critical_section_interface *lock) override { if (!stl_condition_variable_vista::wait_for(lock, INFINITE)) std::terminate(); } virtual bool wait_for(stl_critical_section_interface *lock, unsigned int timeout) override { return __crtSleepConditionVariableCS(&m_condition_variable, static_cast<stl_critical_section_vista *>(lock)->native_handle(), timeout) != 0; } virtual void notify_one() override { __crtWakeConditionVariable(&m_condition_variable); } virtual void notify_all() override { __crtWakeAllConditionVariable(&m_condition_variable); } private: CONDITION_VARIABLE m_condition_variable; }; class stl_critical_section_win7 final : public stl_critical_section_interface { public: stl_critical_section_win7() { __crtInitializeSRWLock(&m_srw_lock); } ~stl_critical_section_win7() = delete; stl_critical_section_win7(const stl_critical_section_win7&) = delete; stl_critical_section_win7& operator=(const stl_critical_section_win7&) = delete; virtual void destroy() override {} virtual void lock() override { __crtAcquireSRWLockExclusive(&m_srw_lock); } virtual bool try_lock() override { return __crtTryAcquireSRWLockExclusive(&m_srw_lock) != 0; } virtual bool try_lock_for(unsigned int) override { // STL will call try_lock_for once again if this call will not succeed return stl_critical_section_win7::try_lock(); } virtual void unlock() override { __crtReleaseSRWLockExclusive(&m_srw_lock); } PSRWLOCK native_handle() { return &m_srw_lock; } private: SRWLOCK m_srw_lock; }; class stl_condition_variable_win7 final : public stl_condition_variable_interface { public: stl_condition_variable_win7() { __crtInitializeConditionVariable(&m_condition_variable); } ~stl_condition_variable_win7() = delete; stl_condition_variable_win7(const stl_condition_variable_win7&) = delete; stl_condition_variable_win7& operator=(const stl_condition_variable_win7&) = delete; virtual void destroy() override {} virtual void wait(stl_critical_section_interface *lock) override { if (!stl_condition_variable_win7::wait_for(lock, INFINITE)) std::terminate(); } virtual bool wait_for(stl_critical_section_interface *lock, unsigned int timeout) override { return __crtSleepConditionVariableSRW(&m_condition_variable, static_cast<stl_critical_section_win7 *>(lock)->native_handle(), timeout, 0) != 0; } virtual void notify_one() override { __crtWakeConditionVariable(&m_condition_variable); } virtual void notify_all() override { __crtWakeAllConditionVariable(&m_condition_variable); } private: CONDITION_VARIABLE m_condition_variable; }; #ifdef _STL_CONCRT_SUPPORT class stl_critical_section_concrt final : public stl_critical_section_interface { public: stl_critical_section_concrt() = default; ~stl_critical_section_concrt() = delete; stl_critical_section_concrt(const stl_critical_section_concrt&) = delete; stl_critical_section_concrt& operator=(const stl_critical_section_concrt&) = delete; virtual void lock() override { m_critical_section.lock(); } virtual bool try_lock() override { return m_critical_section.try_lock(); } virtual bool try_lock_for(unsigned int duration) override { return m_critical_section.try_lock_for(duration); } virtual void unlock() override { m_critical_section.unlock(); } virtual void destroy() override { // the destructor of stl_critical_section_concrt will never be invoked m_critical_section.~critical_section(); } critical_section& native_handle() { return m_critical_section; } private: critical_section m_critical_section; }; class stl_condition_variable_concrt final : public stl_condition_variable_interface { public: stl_condition_variable_concrt() = default; ~stl_condition_variable_concrt() = delete; stl_condition_variable_concrt(const stl_condition_variable_concrt&) = delete; stl_condition_variable_concrt& operator=(const stl_condition_variable_concrt&) = delete; virtual void wait(stl_critical_section_interface *lock) override { m_condition_variable.wait(static_cast<stl_critical_section_concrt *>(lock)->native_handle()); } virtual bool wait_for(stl_critical_section_interface *lock, unsigned int timeout) override { return m_condition_variable.wait_for(static_cast<stl_critical_section_concrt *>(lock)->native_handle(), timeout); } virtual void notify_one() override { m_condition_variable.notify_one(); } virtual void notify_all() override { m_condition_variable.notify_all(); } virtual void destroy() override { // the destructor of stl_condition_variable_concrt will never be invoked m_condition_variable.~_Condition_variable(); } private: _Condition_variable m_condition_variable; }; #endif // _STL_CONCRT_SUPPORT #pragma warning(pop) //inline bool are_win7_sync_apis_available() //{ // #if _STL_WIN32_WINNT >= _WIN32_WINNT_WIN7 // return true; // #else // // TryAcquireSRWLockExclusive ONLY available on Win7+ // DYNAMICGETCACHEDFUNCTION(KERNEL32, PFNTRYACQUIRESRWLOCKEXCLUSIVE, TryAcquireSRWLockExclusive, pfTryAcquireSRWLockExclusive); // return pfTryAcquireSRWLockExclusive != nullptr; // #endif //} #define are_win7_sync_apis_available __crt_are_win7_sync_apis_available //inline bool are_vista_sync_apis_available() //{ // #if _STL_WIN32_WINNT >= _WIN32_WINNT_VISTA // return true; // #else // // InitializeConditionVariable ONLY available on Vista+ // DYNAMICGETCACHEDFUNCTION(KERNEL32, PFNINITIALIZECONDITIONVARIABLE, InitializeConditionVariable, pfInitializeConditionVariable); // return pfInitializeConditionVariable != nullptr; // #endif //} #define are_vista_sync_apis_available __crt_are_vista_sync_apis_available inline void create_stl_critical_section(stl_critical_section_interface *p) { #ifdef _CRT_WINDOWS new (p) stl_critical_section_win7; #else switch (__stl_sync_api_impl_mode) { case __stl_sync_api_modes_enum::normal: case __stl_sync_api_modes_enum::win7: if (are_win7_sync_apis_available()) { new (p) stl_critical_section_win7; return; } // fall through case __stl_sync_api_modes_enum::vista: if (are_vista_sync_apis_available()) { new (p) stl_critical_section_vista; return; } // fall through case __stl_sync_api_modes_enum::concrt: default: #ifdef _STL_CONCRT_SUPPORT new (p) stl_critical_section_concrt; return; #else std::terminate(); #endif // _STL_CONCRT_SUPPORT } #endif // _CRT_WINDOWS } inline void create_stl_condition_variable(stl_condition_variable_interface *p) { #ifdef _CRT_WINDOWS new (p) stl_condition_variable_win7; #else switch (__stl_sync_api_impl_mode) { case __stl_sync_api_modes_enum::normal: case __stl_sync_api_modes_enum::win7: if (are_win7_sync_apis_available()) { new (p) stl_condition_variable_win7; return; } // fall through case __stl_sync_api_modes_enum::vista: if (are_vista_sync_apis_available()) { new (p) stl_condition_variable_vista; return; } // fall through case __stl_sync_api_modes_enum::concrt: default: #ifdef _STL_CONCRT_SUPPORT new (p) stl_condition_variable_concrt; return; #else std::terminate(); #endif // _STL_CONCRT_SUPPORT } #endif // _CRT_WINDOWS } #if defined _CRT_WINDOWS const size_t stl_critical_section_max_size = sizeof(stl_critical_section_win7); const size_t stl_condition_variable_max_size = sizeof(stl_condition_variable_win7); const size_t stl_critical_section_max_alignment = __alignof(stl_critical_section_win7); const size_t stl_condition_variable_max_alignment = __alignof(stl_condition_variable_win7); #elif defined _STL_CONCRT_SUPPORT const size_t stl_critical_section_max_size = __max(__max(sizeof(stl_critical_section_concrt), sizeof(stl_critical_section_vista)), sizeof(stl_critical_section_win7)); const size_t stl_condition_variable_max_size = __max(__max(sizeof(stl_condition_variable_concrt), sizeof(stl_condition_variable_vista)), sizeof(stl_condition_variable_win7)); const size_t stl_critical_section_max_alignment = __max(__max(__alignof(stl_critical_section_concrt), __alignof(stl_critical_section_vista)), __alignof(stl_critical_section_win7)); const size_t stl_condition_variable_max_alignment = __max(__max(__alignof(stl_condition_variable_concrt), __alignof(stl_condition_variable_vista)), __alignof(stl_condition_variable_win7)); #else const size_t stl_critical_section_max_size = __max(sizeof(stl_critical_section_vista), sizeof(stl_critical_section_win7)); const size_t stl_condition_variable_max_size = __max(sizeof(stl_condition_variable_vista), sizeof(stl_condition_variable_win7)); const size_t stl_critical_section_max_alignment = __max(__alignof(stl_critical_section_vista), __alignof(stl_critical_section_win7)); const size_t stl_condition_variable_max_alignment = __max(__alignof(stl_condition_variable_vista), __alignof(stl_condition_variable_win7)); #endif } // namespace details } // namespace Concurrency ```
```rust use super::*; cpp_class!(pub unsafe struct SBSymbol as "SBSymbol"); unsafe impl Send for SBSymbol {} impl SBSymbol { pub fn name(&self) -> &str { let ptr = cpp!(unsafe [self as "SBSymbol*"] -> *const c_char as "const char*" { return self->GetName(); }); unsafe { get_str(ptr) } } pub fn display_name(&self) -> &str { let ptr = cpp!(unsafe [self as "SBSymbol*"] -> *const c_char as "const char*" { return self->GetDisplayName(); }); unsafe { get_str(ptr) } } pub fn mangled_name(&self) -> &str { let ptr = cpp!(unsafe [self as "SBSymbol*"] -> *const c_char as "const char*" { return self->GetMangledName(); }); unsafe { get_str(ptr) } } pub fn symbol_type(&self) -> SymbolType { cpp!(unsafe [self as "SBSymbol*"] -> u32 as "uint32_t" { return self->GetType(); }) .into() } pub fn start_address(&self) -> SBAddress { cpp!(unsafe [self as "SBSymbol*"] -> SBAddress as "SBAddress" { return self->GetStartAddress(); }) } pub fn end_address(&self) -> SBAddress { cpp!(unsafe [self as "SBSymbol*"] -> SBAddress as "SBAddress" { return self->GetEndAddress(); }) } pub fn instructions(&self, target: &SBTarget) -> SBInstructionList { let target = target.clone(); cpp!(unsafe [self as "SBSymbol*", target as "SBTarget"] -> SBInstructionList as "SBInstructionList" { return self->GetInstructions(target); }) } pub fn get_description(&self, description: &mut SBStream) -> bool { cpp!(unsafe [self as "SBSymbol*", description as "SBStream*"] -> bool as "bool" { return self->GetDescription(*description); }) } } impl IsValid for SBSymbol { fn is_valid(&self) -> bool { cpp!(unsafe [self as "SBSymbol*"] -> bool as "bool" { return self->IsValid(); }) } } impl fmt::Debug for SBSymbol { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { debug_descr(f, |descr| { cpp!(unsafe [self as "SBSymbol*", descr as "SBStream*"] -> bool as "bool" { return self->GetDescription(*descr); }) }) } } #[derive(Clone, Copy, Eq, PartialEq, Debug, FromPrimitive)] #[repr(u32)] pub enum SymbolType { Any = 0, Absolute, Code, Resolver, Data, Trampoline, Runtime, Exception, SourceFile, HeaderFile, ObjectFile, CommonBlock, Block, Local, Param, Variable, VariableType, LineEntry, LineHeader, ScopeBegin, ScopeEnd, // When symbols take more than one entry, the extra entries get this type Additional, Compiler, Instrumentation, Undefined, ObjCClass, ObjCMetaClass, ObjCIVar, ReExported, #[default] Invalid, } ```
```c #ifdef __has_include #if __has_include("lvgl.h") #ifndef LV_LVGL_H_INCLUDE_SIMPLE #define LV_LVGL_H_INCLUDE_SIMPLE #endif #endif #endif #if defined(LV_LVGL_H_INCLUDE_SIMPLE) #include "lvgl.h" #else #include "lvgl/lvgl.h" #endif #if LV_USE_DEMO_MULTILANG #ifndef LV_ATTRIBUTE_MEM_ALIGN #define LV_ATTRIBUTE_MEM_ALIGN #endif #ifndef LV_ATTRIBUTE_IMAGE_IMG_EMOJI_CAMERA_WITH_FLASH #define LV_ATTRIBUTE_IMAGE_IMG_EMOJI_CAMERA_WITH_FLASH #endif const LV_ATTRIBUTE_MEM_ALIGN LV_ATTRIBUTE_LARGE_CONST LV_ATTRIBUTE_IMAGE_IMG_EMOJI_CAMERA_WITH_FLASH uint8_t img_emoji_camera_with_flash_map[] = { 0xf1, 0xff, 0xf8, 0xff, 0xfe, 0xfa, 0xff, 0xff, 0xff, 0xf9, 0xff, 0xff, 0xff, 0xf8, 0xff, 0xff, 0xf4, 0xff, 0xfc, 0xff, 0xf3, 0xff, 0xf8, 0xff, 0xfc, 0xfd, 0xf4, 0xff, 0xff, 0xf6, 0xf5, 0xff, 0xed, 0xff, 0xff, 0xff, 0xfb, 0xff, 0xff, 0xff, 0xd1, 0xff, 0xf7, 0xff, 0xff, 0xfb, 0xff, 0xff, 0xff, 0xfa, 0xff, 0xff, 0xbe, 0xf3, 0xf6, 0xff, 0xff, 0xff, 0xfe, 0xff, 0xff, 0xff, 0xf4, 0xff, 0xff, 0xff, 0xff, 0xff, 0xf7, 0xf7, 0xf7, 0xff, 0xf8, 0xff, 0xfc, 0xff, 0xfc, 0xfe, 0xff, 0xff, 0xff, 0xfb, 0xff, 0xff, 0xff, 0xf5, 0xfb, 0xff, 0xff, 0xf9, 0xf7, 0xff, 0xff, 0xff, 0xfb, 0xff, 0xff, 0xfc, 0xff, 0xff, 0xff, 0xf7, 0xff, 0xff, 0xd3, 0xf1, 0xff, 0xff, 0xeb, 0xf3, 0xff, 0xff, 0xc5, 0xe1, 0xec, 0xff, 0xff, 0xee, 0xff, 0xff, 0xff, 0xee, 0xff, 0xff, 0xc6, 0xe4, 0xf7, 0xff, 0xfd, 0xf9, 0xff, 0xff, 0xfa, 0xfc, 0xf6, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfb, 0xfb, 0xfb, 0xff, 0xff, 0xfa, 0xfa, 0xff, 0xfa, 0xfc, 0xfd, 0xff, 0xf1, 0xff, 0xff, 0xff, 0xf3, 0xff, 0xfc, 0xff, 0xf4, 0xff, 0xf9, 0xff, 0xdc, 0xfb, 0xf8, 0xff, 0x97, 0xdc, 0xe6, 0xff, 0x6c, 0xcd, 0xe7, 0xff, 0x9a, 0xd7, 0xff, 0xff, 0x8a, 0xda, 0xf9, 0xff, 0x52, 0xd2, 0xe5, 0xff, 0x82, 0xe3, 0xff, 0xff, 0x83, 0xe0, 0xff, 0xff, 0x63, 0xd1, 0xe9, 0xff, 0xc2, 0xea, 0xfd, 0xff, 0xf8, 0xf6, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfe, 0xff, 0xff, 0xf1, 0xfe, 0xfc, 0xff, 0xee, 0xff, 0xfb, 0xff, 0xfe, 0xfc, 0xf2, 0xff, 0xff, 0xfc, 0xf8, 0xff, 0xff, 0xf7, 0xff, 0xff, 0xe0, 0xec, 0xff, 0xff, 0xad, 0xe6, 0xff, 0xff, 0x40, 0xc5, 0xf7, 0xff, 0x22, 0xdb, 0xfd, 0xff, 0x00, 0xdf, 0xf4, 0xff, 0x00, 0xe5, 0xfd, 0xff, 0x03, 0xd8, 0xf7, 0xff, 0x14, 0xcc, 0xea, 0xff, 0x8e, 0xe7, 0xff, 0xff, 0xee, 0xf5, 0xff, 0xff, 0xf6, 0xf6, 0xf6, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xf4, 0xf6, 0xff, 0xe2, 0xe8, 0xe7, 0xff, 0xd4, 0xf1, 0xe8, 0xff, 0xda, 0xf3, 0xe5, 0xff, 0xe9, 0xf7, 0xec, 0xff, 0xc8, 0xed, 0xf1, 0xff, 0x63, 0xc7, 0xdf, 0xff, 0x19, 0xb4, 0xdb, 0xff, 0x00, 0xcd, 0xf9, 0xff, 0x00, 0xea, 0xff, 0xff, 0x00, 0xf1, 0xff, 0xff, 0x07, 0xea, 0xff, 0xff, 0x13, 0xdb, 0xff, 0xff, 0x2d, 0xd2, 0xf9, 0xff, 0x65, 0xd3, 0xf1, 0xff, 0xa1, 0xc1, 0xde, 0xff, 0xca, 0xca, 0xca, 0xff, 0xe4, 0xe4, 0xe4, 0xff, 0xcd, 0xd1, 0xcc, 0xff, 0xa8, 0xb0, 0xaf, 0xff, 0x9c, 0xa1, 0xa2, 0xff, 0xa3, 0x99, 0x99, 0xff, 0xc0, 0xa8, 0xa8, 0xff, 0xcc, 0xbc, 0xc7, 0xff, 0xa8, 0xb8, 0xd5, 0xff, 0x8f, 0xbf, 0xe9, 0xff, 0x10, 0xd5, 0xfb, 0xff, 0x00, 0xf0, 0xff, 0xff, 0x01, 0xf6, 0xff, 0xff, 0x00, 0xed, 0xff, 0xff, 0x09, 0xe1, 0xff, 0xff, 0x25, 0xcc, 0xf1, 0xff, 0x1f, 0x9c, 0xb8, 0xff, 0x40, 0x5d, 0x78, 0xff, 0x94, 0x94, 0x94, 0xff, 0xc1, 0xc1, 0xc1, 0xff, 0xd1, 0xd9, 0xcf, 0xff, 0xc0, 0xc0, 0xc0, 0xff, 0xc2, 0xba, 0xc4, 0xff, 0xb9, 0xb6, 0xbf, 0xff, 0xaf, 0xbf, 0xbe, 0xff, 0x9e, 0xc6, 0xc4, 0xff, 0x7e, 0xb9, 0xc2, 0xff, 0x77, 0xbc, 0xcf, 0xff, 0x5d, 0xc8, 0xed, 0xff, 0x1c, 0xda, 0xed, 0xff, 0x24, 0xdc, 0xee, 0xff, 0x04, 0xd8, 0xe9, 0xff, 0x0a, 0xd3, 0xee, 0xff, 0x2b, 0xbe, 0xde, 0xff, 0x17, 0x8c, 0xa1, 0xff, 0x48, 0x52, 0x6a, 0xff, 0x8b, 0x8b, 0x8b, 0xff, 0xbd, 0xbd, 0xbd, 0xff, 0xb9, 0xd0, 0xc2, 0xff, 0xbc, 0xb9, 0xbb, 0xff, 0xd0, 0xb6, 0xc8, 0xff, 0xc5, 0xaf, 0xc1, 0xff, 0xb1, 0xb4, 0xb9, 0xff, 0xa6, 0xbb, 0xb9, 0xff, 0xa3, 0xb4, 0xb7, 0xff, 0xb8, 0xbe, 0xcb, 0xff, 0x91, 0xb3, 0xd7, 0xff, 0x59, 0xb9, 0xd0, 0xff, 0x83, 0xb8, 0xd3, 0xff, 0x72, 0xb5, 0xd6, 0xff, 0x70, 0xb6, 0xde, 0xff, 0x83, 0xb7, 0xe0, 0xff, 0x5f, 0xb2, 0xc8, 0xff, 0x9d, 0xa2, 0xb7, 0xff, 0xa8, 0xa8, 0xa8, 0xff, 0xd4, 0xd4, 0xd4, 0xff, 0x83, 0x83, 0x83, 0xff, 0x82, 0x82, 0x82, 0xff, 0x68, 0x68, 0x68, 0xff, 0x84, 0x84, 0x84, 0xff, 0x97, 0x97, 0x97, 0xff, 0x6e, 0x6e, 0x6e, 0xff, 0x8b, 0x8b, 0x8b, 0xff, 0x71, 0x71, 0x71, 0xff, 0x7d, 0x8f, 0x90, 0xff, 0x87, 0x96, 0x98, 0xff, 0x73, 0x80, 0x82, 0xff, 0x7a, 0x83, 0x86, 0xff, 0x8a, 0x91, 0x94, 0xff, 0x7e, 0x81, 0x85, 0xff, 0x74, 0x75, 0x79, 0xff, 0x6e, 0x6d, 0x71, 0xff, 0x6e, 0x6e, 0x6e, 0xff, 0x91, 0x91, 0x91, 0xff, 0x70, 0x70, 0x70, 0xff, 0x59, 0x59, 0x59, 0xff, 0x60, 0x60, 0x60, 0xff, 0x78, 0x78, 0x78, 0xff, 0x85, 0x85, 0x85, 0xff, 0x6a, 0x6a, 0x6a, 0xff, 0x7a, 0x7a, 0x7a, 0xff, 0x73, 0x73, 0x73, 0xff, 0x67, 0x75, 0x74, 0xff, 0x56, 0x62, 0x62, 0xff, 0x3c, 0x46, 0x46, 0xff, 0x46, 0x4e, 0x4e, 0xff, 0x5e, 0x62, 0x63, 0xff, 0x70, 0x72, 0x73, 0xff, 0x79, 0x78, 0x7a, 0xff, 0x5f, 0x5c, 0x5e, 0xff, 0x5a, 0x5a, 0x5a, 0xff, 0x7c, 0x7c, 0x7c, 0xff, 0x73, 0x73, 0x73, 0xff, 0x3c, 0x3c, 0x3c, 0xff, 0x51, 0x51, 0x51, 0xff, 0x56, 0x56, 0x56, 0xff, 0x58, 0x58, 0x58, 0xff, 0x57, 0x57, 0x57, 0xff, 0x6b, 0x6b, 0x6b, 0xff, 0x77, 0x77, 0x77, 0xff, 0x3f, 0x47, 0x47, 0xff, 0x38, 0x40, 0x40, 0xff, 0x30, 0x35, 0x36, 0xff, 0x34, 0x38, 0x39, 0xff, 0x32, 0x34, 0x35, 0xff, 0x4d, 0x4a, 0x4c, 0xff, 0x71, 0x6e, 0x70, 0xff, 0x66, 0x61, 0x63, 0xff, 0x4d, 0x4d, 0x4d, 0xff, 0x70, 0x70, 0x70, 0xff, 0x77, 0x77, 0x77, 0xff, 0x3c, 0x3c, 0x3c, 0xff, 0x49, 0x49, 0x49, 0xff, 0x43, 0x43, 0x43, 0xff, 0x3d, 0x3d, 0x3d, 0xff, 0x46, 0x46, 0x46, 0xff, 0x66, 0x66, 0x66, 0xff, 0x64, 0x64, 0x64, 0xff, 0x2b, 0x30, 0x2f, 0xff, 0x43, 0x45, 0x45, 0xff, 0x4a, 0x4c, 0x4c, 0xff, 0x4c, 0x4c, 0x4c, 0xff, 0x3a, 0x38, 0x38, 0xff, 0x37, 0x32, 0x33, 0xff, 0x5e, 0x59, 0x5a, 0xff, 0x76, 0x70, 0x71, 0xff, 0x4a, 0x4a, 0x4a, 0xff, 0x6d, 0x6d, 0x6d, 0xff, 0x61, 0x61, 0x61, 0xff, 0x41, 0x41, 0x41, 0xff, 0x46, 0x46, 0x46, 0xff, 0x48, 0x48, 0x48, 0xff, 0x44, 0x44, 0x44, 0xff, 0x45, 0x45, 0x45, 0xff, 0x68, 0x68, 0x68, 0xff, 0x47, 0x47, 0x47, 0xff, 0x2d, 0x2d, 0x2d, 0xff, 0x4b, 0x4b, 0x4b, 0xff, 0x4f, 0x4d, 0x4d, 0xff, 0x56, 0x54, 0x54, 0xff, 0x4f, 0x4d, 0x4d, 0xff, 0x35, 0x30, 0x31, 0xff, 0x4b, 0x46, 0x47, 0xff, 0x77, 0x72, 0x73, 0xff, 0x44, 0x44, 0x44, 0xff, 0x68, 0x68, 0x68, 0xff, 0x56, 0x56, 0x56, 0xff, 0x3f, 0x3f, 0x3f, 0xff, 0x3c, 0x3c, 0x3c, 0xff, 0x3d, 0x3d, 0x3d, 0xff, 0x40, 0x40, 0x40, 0xff, 0x42, 0x42, 0x42, 0xff, 0x6a, 0x6a, 0x6a, 0xff, 0x52, 0x52, 0x52, 0xff, 0x26, 0x24, 0x23, 0xff, 0x40, 0x3e, 0x3d, 0xff, 0x42, 0x40, 0x3f, 0xff, 0x4a, 0x48, 0x47, 0xff, 0x41, 0x3f, 0x3e, 0xff, 0x2a, 0x28, 0x27, 0xff, 0x47, 0x45, 0x44, 0xff, 0x74, 0x72, 0x71, 0xff, 0x3d, 0x3d, 0x3d, 0xff, 0x62, 0x62, 0x62, 0xff, 0x5b, 0x5b, 0x5b, 0xff, 0x32, 0x32, 0x32, 0xff, 0x37, 0x37, 0x37, 0xff, 0x2b, 0x2b, 0x2b, 0xff, 0x31, 0x31, 0x31, 0xff, 0x34, 0x34, 0x34, 0xff, 0x53, 0x53, 0x53, 0xff, 0x6c, 0x6c, 0x6c, 0xff, 0x30, 0x31, 0x2f, 0xff, 0x2c, 0x2d, 0x2b, 0xff, 0x32, 0x33, 0x31, 0xff, 0x39, 0x3a, 0x38, 0xff, 0x23, 0x26, 0x24, 0xff, 0x2f, 0x32, 0x30, 0xff, 0x5b, 0x5e, 0x5c, 0xff, 0x57, 0x5a, 0x58, 0xff, 0x38, 0x38, 0x38, 0xff, 0x5d, 0x5d, 0x5d, 0xff, 0x58, 0x58, 0x58, 0xff, 0x20, 0x20, 0x20, 0xff, 0x3f, 0x3f, 0x3f, 0xff, 0x2d, 0x2d, 0x2d, 0xff, 0x31, 0x31, 0x31, 0xff, 0x2c, 0x2c, 0x2c, 0xff, 0x2e, 0x2e, 0x2e, 0xff, 0x6e, 0x6e, 0x6e, 0xff, 0x57, 0x58, 0x54, 0xff, 0x20, 0x24, 0x1f, 0xff, 0x1b, 0x1f, 0x1a, 0xff, 0x2c, 0x30, 0x2b, 0xff, 0x1f, 0x25, 0x20, 0xff, 0x52, 0x58, 0x53, 0xff, 0x78, 0x7e, 0x79, 0xff, 0x28, 0x2f, 0x2a, 0xff, 0x32, 0x32, 0x32, 0xff, 0x57, 0x57, 0x57, 0xff, 0x42, 0x42, 0x42, 0xff, 0x33, 0x33, 0x33, 0xff, 0x27, 0x27, 0x27, 0xff, 0x24, 0x24, 0x24, 0xff, 0x27, 0x27, 0x27, 0xff, 0x28, 0x28, 0x28, 0xff, 0x28, 0x28, 0x28, 0xff, 0x29, 0x29, 0x29, 0xff, 0x64, 0x64, 0x64, 0xff, 0x7b, 0x7b, 0x7b, 0xff, 0x65, 0x65, 0x65, 0xff, 0x5d, 0x5d, 0x5d, 0xff, 0x7a, 0x7a, 0x7a, 0xff, 0x5d, 0x5d, 0x5d, 0xff, 0x2a, 0x2a, 0x2a, 0xff, 0x2c, 0x2c, 0x2c, 0xff, 0x30, 0x30, 0x30, 0xff, 0x4d, 0x4d, 0x4d, 0xff, 0xb6, 0xb6, 0xb6, 0xff, 0xab, 0xab, 0xab, 0xff, 0xa2, 0xa2, 0xa2, 0xff, 0xa3, 0xa3, 0xa3, 0xff, 0xa7, 0xa7, 0xa7, 0xff, 0xa7, 0xa7, 0xa7, 0xff, 0xa5, 0xa5, 0xa5, 0xff, 0xa5, 0xa5, 0xa5, 0xff, 0xa6, 0xa6, 0xa6, 0xff, 0xb8, 0xb8, 0xb8, 0xff, 0xa9, 0xa9, 0xa9, 0xff, 0xa4, 0xa4, 0xa4, 0xff, 0xbc, 0xbc, 0xbc, 0xff, 0xb1, 0xb1, 0xb1, 0xff, 0x9a, 0x9a, 0x9a, 0xff, 0xa6, 0xa6, 0xa6, 0xff, 0x9c, 0x9c, 0x9c, 0xff, 0xb4, 0xb4, 0xb4, 0xff, 0xec, 0xec, 0xec, 0xff, 0xe4, 0xe4, 0xe4, 0xff, 0xe1, 0xe1, 0xe1, 0xff, 0xe5, 0xe5, 0xe5, 0xff, 0xe9, 0xe9, 0xe9, 0xff, 0xe8, 0xe8, 0xe8, 0xff, 0xe4, 0xe4, 0xe4, 0xff, 0xe3, 0xe3, 0xe3, 0xff, 0xdf, 0xdf, 0xdf, 0xff, 0xe8, 0xe8, 0xe8, 0xff, 0xe3, 0xe3, 0xe3, 0xff, 0xdf, 0xdf, 0xdf, 0xff, 0xe6, 0xe6, 0xe6, 0xff, 0xe5, 0xe5, 0xe5, 0xff, 0xe4, 0xe4, 0xe4, 0xff, 0xf0, 0xf0, 0xf0, 0xff, 0xe3, 0xe3, 0xe3, 0xff, 0xf3, 0xf3, 0xf3, 0xff, }; const lv_image_dsc_t img_emoji_camera_with_flash = { .header.cf = LV_COLOR_FORMAT_ARGB8888, .header.w = 18, .header.h = 19, .header.stride = 72, .data = img_emoji_camera_with_flash_map, .data_size = sizeof(img_emoji_camera_with_flash_map), }; #endif ```
```php <?php declare(strict_types = 1); namespace LanguageServer\Tests\Server\TextDocument\References; use LanguageServer\{ LanguageClient, PhpDocumentLoader, Server, DefinitionResolver }; use LanguageServer\ContentRetriever\FileSystemContentRetriever; use LanguageServer\Index\{ DependenciesIndex, Index, ProjectIndex }; use LanguageServerProtocol\{ Location, Position, Range, ReferenceContext, TextDocumentIdentifier }; use LanguageServer\Tests\MockProtocolStream; use LanguageServer\Tests\Server\ServerTestCase; class GlobalFallbackTest extends ServerTestCase { public function setUp() { $projectIndex = new ProjectIndex(new Index, new DependenciesIndex); $projectIndex->setComplete(); $definitionResolver = new DefinitionResolver($projectIndex); $client = new LanguageClient(new MockProtocolStream, new MockProtocolStream); $this->documentLoader = new PhpDocumentLoader(new FileSystemContentRetriever, $projectIndex, $definitionResolver); $this->textDocument = new Server\TextDocument($this->documentLoader, $definitionResolver, $client, $projectIndex); $this->documentLoader->open('global_fallback', file_get_contents(__DIR__ . '/../../../../fixtures/global_fallback.php')); $this->documentLoader->open('global_symbols', file_get_contents(__DIR__ . '/../../../../fixtures/global_symbols.php')); } public function testClassDoesNotFallback() { // class TestClass implements TestInterface // Get references for TestClass $result = $this->textDocument->references( new ReferenceContext, new TextDocumentIdentifier('global_symbols'), new Position(6, 9) )->wait(); $this->assertEquals([], $result); } public function testFallsBackForConstants() { // const TEST_CONST = 123; // Get references for TEST_CONST $result = $this->textDocument->references( new ReferenceContext, new TextDocumentIdentifier('global_symbols'), new Position(9, 13) )->wait(); $this->assertEquals([new Location('global_fallback', new Range(new Position(6, 5), new Position(6, 15)))], $result); } public function testFallsBackForFunctions() { // function test_function() // Get references for test_function $result = $this->textDocument->references( new ReferenceContext, new TextDocumentIdentifier('global_symbols'), new Position(78, 16) )->wait(); $this->assertEquals([new Location('global_fallback', new Range(new Position(5, 0), new Position(5, 13)))], $result); } } ```
```javascript import coerceToString from 'helper/string/coerce_to_string'; /** * Extracts from `subject` a string from `start` position up to `end` position. The character at `end` position is not * included. * * @function substring * @static * @since 1.0.0 * @memberOf Chop * @param {string} [subject=''] The string to extract from. * @param {number} start The position to start extraction. * @param {number} [end=subject.length] The position to end extraction. * @return {string} Returns the extracted string. * @note Uses native `String.prototype.substring()` * @example * v.substring('beach', 1); * // => 'each' * * v.substring('ocean', 1, 3); * // => 'ea' */ export default function substring(subject, start, end) { return coerceToString(subject).substring(start, end); } ```
```xml import { IWeatherService } from './IWeatherService'; import { IWeatherConditions } from '../../model/IWeatherConditions'; import { IWebPartContext } from '@microsoft/sp-webpart-base'; import { ServiceScope } from '@microsoft/sp-core-library'; import { HttpClient } from '@microsoft/sp-http'; import * as constants from '../../constants'; export default class WeatherService implements IWeatherService { private context: IWebPartContext; constructor(context: IWebPartContext, serviceScope: ServiceScope) { this.context = context; } public getConditions (zip: string) : Promise<IWeatherConditions> { var result: Promise<IWeatherConditions> = new Promise<IWeatherConditions> ((resolve, reject) => { this.context.httpClient .fetch(`path_to_url{zip},us&appid=${constants.owmApiKey}`, HttpClient.configurations.v1, { method: 'GET', headers: {"accept": "application/json"}, mode: 'cors', cache: 'default' }) .then ((response) => { if (response.ok) { return response.json(); } else { throw (`Error ${response.status}: ${response.statusText}`); } }) .then ((o: IWeatherConditions) => { resolve(o); }); // TODO: Handle exception }); return result; } } ```
The 2021 LEN Men's European Junior Water Polo Championships, took place between 12 and 19 September 2021, in Malta. It was the third time that Malta had hosted the event, after previously hosting it in 2007 and 2017. Qualification The top 2 teams out of each group qualified for the tournament, along with the top 8 teams from the 2019 championships, leading to 16 qualified teams overall. Group A Group A of the qualifying round took place in Korčula, Croatia, between 25 and 27 June 2021. | style="text-align:left; width:40%; vertical-align:top;"| | style="text-align:left; width:40%; vertical-align:top;"| | style="text-align:left; width:20%; vertical-align:top;"| Group B Group B of the qualifying round took place in Tbilisi, Georgia, between 17 and 20 June 2021. | style="text-align:left; width:40%; vertical-align:top;"| | style="text-align:left; width:40%; vertical-align:top;"| | style="text-align:left; width:20%; vertical-align:top;"| Group C Group C of the qualifying round took place in Maribor, Slovenia, between 24 and 27 June 2021. | style="text-align:left; width:40%; vertical-align:top;"| | style="text-align:left; width:40%; vertical-align:top;"| | style="text-align:left; width:20%; vertical-align:top;"| Group D Group D of the qualifying round took place in Prague, Czech Republic, between 24 and 27 June 2021. | style="text-align:left; width:40%; vertical-align:top;"| | style="text-align:left; width:40%; vertical-align:top;"| | style="text-align:left; width:20%; vertical-align:top;"| Preliminary round All times are local (UTC+2). Group A Group B Group C Group D Knockout stage Bracket 5th place bracket 9th place bracket 13th place bracket Play-offs Quarterfinals 13–16th place semifinals 9–12th place semifinals 5–8th place semifinals Semifinals 15th place game 13th place game Eleventh place game Ninth place game Seventh place game Fifth place game Third place game Final Final rankings Medalists References International water polo competitions hosted by Malta Men's European Junior Water Polo Championship European Junior Water Polo Championship LEN
Top Gear Live (previously known as the MPH Show) was a supercar motor show. It was held annually at Earls Court beginning in 2003, later expanding to be also held at the Birmingham NEC from 2005 with the two shows being around one week apart. The show took up either one or two halls at both venues, and there were usually two parts to it: the Exhibition and the Main Show. From 2011 the show was rebranded and relaunched as "Top Gear Live", tying together its close links to the Top Gear television series and with a venue change to ExCeL London. Top Gear Live was later expanded, being used by BBC Worldwide as a brand of touring stadium show. Exhibition Section Visitors arrive and have the opportunity to take a look at exhibitors' stands. Many are there to advertise a product that they sell (for example there was a 'Shell' stand at MPH '06 advertising Shell V Power) There are also exhibition stands advertising car lease, whilst showing actual cars that can be leased at the stand. These are the likes of the Ferrari Enzo, Lamborghini Murcielago LP640, Ferrari F430 or the Aston Martin DBS V12. There are also a few car manufacturers exhibiting, although not to the scale of the 'Sunday Times Motor Show'. At MPH 2006, Land Rover turned half of the hall into a simulated off-road environment with ramps and severe slopes, on which people could drive the new Land Rover Discovery 3. There are also VIP enclosures such as 'The Sunday Times' enclosure, or the 'Auto Express' enclosure in which people with VIP tickets can go and enjoy a glass of wine for example. Overall, the exhibition side of the show is very and does not include many car manufacturers. Main show The main event is a 90-minute show, which takes up an entire hall and has the audience sitting in stadium-like seating. The show features stunt driving and a catwalk-style presentation of new cars. Also included in the show are the usual team antics, well known from Top Gear and TGT; at MPH 2006 they placed James May in a shopping trolley and pushed him across the hall with a Ford Mustang at 40 mph into huge ten-pin bowling skittles. There were also 3D presentations during the show; for example MPH 2005, included a virtual and life-size 3D Apache helicopter shooting at a real Lotus Elise as it raced around the arena. Pyrotechnics added live explosions to the display, simulating missile hits and ricochets from gunfire; due to its success, it made a return appearance in 2006. MPH 2006 also included a virtual 3D Hummer being dropped out of an aircraft, shot down by a Tornado jet, and landing in pieces in the ocean. A 3D Gatso Camera/Dragon of the future battled it out with the Stig at MPH 2007. In 2006, the MPH show was presented by Jeremy Clarkson and James May (Top Gear presenters), and Tiff Needell (Fifth Gear presenter) who was drafted in to cover for Richard Hammond who could not make the show due to a crash. At MPH 2007 the presenters were Jeremy Clarkson, James May and Richard Hammond (then the Top Gear presenters). Exhibited cars in the MPH 2006 show included the Caparo T1, Pagani Zonda F, Jaguar XKR, Lamborghini LP640, Bentley GTC, Koenigsegg CCX, Spyker C8, Spyker D8, Lamborghini Gallardo Spyder, Invicta, and the Porsche Cayenne Magnum black gunsmoke. Tour dates External links Official MPH 07 Site MPH 07 Exhibitor List MPH Theatrical Show MPH 06 Shopping Trolley Bowling MPH 06 Car Football Auto shows Top Gear
Reuel Washburn (May 21, 1793 – March 4, 1878) was an American judge and politician. Education and early career Reuel Washburn was born in Raynham, Massachusetts, on May 21, 1793. His father was Attorney Israel Washburn II, LLD (1755-1851) and his mother was Abiah King (1762-1842). He graduated from Brown University in 1815, then studied law in Paris, Maine, under Albion Parris. He was admitted to the Maine bar and moved to Livermore, Maine, to practice law. Political career In 1827 and 1828, Reuel Washburn served in the Maine State Senate. In 1829, Washburn served on the Maine Governor's Council. From 1832 to 1835 and 1841, Reuel Washburn served in the Maine House of Representatives. He also served as probate court judge. Reuel Washburn unsuccessfully ran thrice for election to the United States House of Representatives. Family background His father, Israel Washburn II, also served in the Maine Legislature. His brother, Israel Washburn III, was a Massachusetts politician who served twice in the Massachusetts House of Representatives (Terms of Office - 1815–1816 & 1818–1819). He married Delia King in Raynham, Massachusetts, in 1820 His son was Ganem W. Washburn, Wisconsin State Senator and circuit court judge. He died suddenly in Livermore, Maine March 4th, 1878. His son was Ganem W. Washburn, Wisconsin State Senator and circuit court judge. Notes 1793 births 1878 deaths People from Raynham, Massachusetts People from Livermore, Maine Brown University alumni Maine lawyers Maine state court judges Maine state senators Members of the Maine House of Representatives Members of the Executive Council of Maine Washburn family 19th-century American politicians 19th-century American judges 19th-century American lawyers
The Born Free Foundation is an international wildlife charity that campaigns to "Keep Wildlife in the Wild". It protects wild animals in their natural habitat, campaigns against the keeping of wild animals in captivity and rescues wild animals in need. It also promotes compassionate conservation, which takes into account the welfare of individual animals in conservation initiatives. Born Free also creates and provides educational materials and activities that reflect the charity's values. Born Free's head office is located in Horsham, West Sussex, in south east England. It also has offices in Kenya, Ethiopia and South Africa, with representatives in Sri Lanka and Australia. Born Free USA is a separate organisation based in the United States which adheres to the same objectives as the Foundation. In the year to 31 March 2021, the charity reported income of £5.9m. Creation In 1969, actors Virginia McKenna and Bill Travers, who starred in the film Born Free, made the film An Elephant Called Slowly. This featured an elephant calf called Pole Pole who was given to London Zoo by the Kenyan government of the day when filming finished. In 1982, McKenna and Travers went to visit Pole Pole at London Zoo. After seeing her condition and mental distress, they launched a campaign to have Pole Pole moved to somewhere more suitable, with other elephants for company. In 1983, the Zoological Society agreed to move Pole Pole to Whipsnade Zoo, but following complications that occurred as part of the aborted relocation process, Pole Pole was examined under anaesthetic and, being unresponsive, was destroyed in the Elephant House. Her death so deeply affected McKenna and Travers that in 1984 they launched a not-for-profit called Zoo Check with their eldest son Will Travers, supported by Founder Patron Joanna Lumley. Zoo Check was renamed the Born Free Foundation in 1991. The foundation is served by a board of trustees, of which McKenna is currently a member. Will Travers is the charity's executive president, the president of the Species Survival Network (see below), a board member of Born Free USA, a board member of Ecoflix (a natural history online streaming infotainment service) and a Fellow of the Royal Geographical Society Current work Born Free manages or funds projects in more than 20 in Africa, Asia, Europe and the Americas. It focuses on a number of working priorities: captive wild animal exploitation; trophy and canned hunting; wildlife trade; rescue, care, rehabilitation & release; community support and human-wildlife co-existence; compassionate conservation; UK wildlife protection; policy development and advocacy; and education. It also operates its own sanctuaries: two big cat rescue centres at Shamwari Private Game Reserve, in South Africa, Ensessa Kotteh Wildlife Rescue, Conservation & Education Centre, in Ethiopia, and Bannerghatta tiger sanctuary, in India. With the support of the public, the Foundation has invested heavily in conservation activities such as lion conservation in Kenya, tiger conservation in India, the protection of the world's most endangered canid, the Ethiopian wolf, as well as elephant, giraffe and rhino conservation, amongst other conservation activities. History In 1985 following a Zoo Check investigation into conditions at Blackpool Tower Circus, exposed in the Sunday Mirror, an ongoing campaign was launched to ban wild animals in circuses, which contributed to this activity being banned in Scotland in 2017, and England and Wales in 2020. In 1986 an investigation into the mental state of polar bears in UK zoos reported that 80% were behaving abnormally, leading to ‘Zoos Driving Bears Mad’ headlines in the media. In 1987, six rescued tigers were relocated from a beast wagon at Cross Brothers Circus in Kent, England, to 15-acre forest sanctuary in Bangalore, India. In 1989, the Foundation (then known as Zoo Check) was commissioned by the European Union to undertake the first comprehensive census of European Zoos. Subsequent work led to the EU Zoos Directive which, today, requires all EU zoos to be licensed by the relevant national authority. In the same year, campaigning by Zoo Check, together with others, led to the approval of an international ivory trade ban. Ongoing work by the Foundation throughout the 1990s and up to the present day, as a member of the Species Survival Network (a coalition of wildlife organisations established with Born Free's help in 1993 which works within the United Nation's Convention on International Trade in Endangered Species framework to reduce the negative impact of international wildlife trade), has sought to prevent efforts to weaken the global ban and to help bring in domestic ivory trade control measures in its support. In 1992, the Foundation enabled three of the UK's last captive dolphins to be successfully returned to the wild in the Caribbean, while tighter UK standards (following a 1988 survey) lead to end of dolphinariums in the UK in 1993. In 1992 Born Free began to support the world's longest running wild elephant study by Cynthia Moss and her team in Amboseli National Park, Kenya; made world-famous in the BBC TV series Echo of the Elephants. Support continues. In 1993 the Zoochotic Report investigation by Bill Travers, backed by animal psychologist Roger Mugford, catalogued widespread, severely abnormal animal behaviour in zoos across Europe. Long-term support for Orcalab's work to monitor wild orca in Canada began in 1994, the world's longest running study of wild cetaceans, support for which continues to the present day. Born Free partnered with the Ethiopian Wolf Conservation Programme within the University of Oxford's Wildlife Conservation Research Unit (WildCRU) in 1995, a major ongoing initiative to protect the world's rarest canid. Individual wild animal rescues continu, with a total of 50 lions, 19 tigers and 12 leopards rehomed in global sanctuaries. In 1998 Born Free helped create a chimpanzee sanctuary on 100 acres of rainforest on Ngamba Island, Uganda, to rehouse dozens of orphan chimps rescued from the exotic pet and bushmeat trade. Long-term support for eastern lowland gorilla conservation began in 1999 in Kahuzi-Biega National Park in Democratic Republic of Congo, support which continues to date. Born Free Kenya was launched in 2002 to support Kenyan projects, including conservation, antipoaching patrols, snare removal, wildlife law-enforcementl, community work and human/wildlife conflict resolution (HWC). In 2003 the Global Friends education initiative was launched, providing resources to schools and communities in Africa and Asia, adjacent to the Foundation's wildlife projects. The Satpuda Landscape Tiger Partnership was launched in 2004 to protect wild tigers in India, and support also began for the Last Great Ape Organisation, which tackles illegal wildlife trade and which, today, has expanded to become EAGLE (Eco-Activists for Governance and Law Enforcement). Born Free provided help to develop the Lilongwe Wildlife Trust in Malawi in 2007 which rescues injured and confiscated wild animals, transitioning an old zoo into a genuine sanctuary. In 2010, two captive bottlenose dolphins, rescued from a Turkish swimming pool, were returned to the wild in 2012 after months of rehabilitation. The 2010 the Keeping Whales and Dolphins in Captivity in the EU report, published in partnership with Whale and Dolphin Conservation, revealed that many dolphinariums failed to meet minimal EU legal standards. Also in 2010, following a public art exhibition in Nairobi entitled Pride of Kenya, the Foundation began assisting local Masai communities better protect their livestock from predation at night by designing and installing Predator Proof Bomas (night-time stockades) which reduce the threat of predation and subsequent revenge attacks against lions and hyenas by local pastoralists. Approximately 75% of the cost of each PPB is provided by the foundation with the balance coming from the community. So far, more than 350 PPBs have been installed at a total cost of circa $US1 million and night-time predation in PPBs is negligible. Born Free helped establish the Zambia Primate Project in 2012 to rescue and successfully return to the wild hundreds of baboons and vervets, victims of the illegal wildlife trade. The verified post-release survival rate is now more than 90%. An extensive lion conservation project was established in Meru National Park in Kenya in 2014, where Elsa the lioness was returned to the wild. From 2010 to 2020, Kenya's lion numbers increased by 25% to 2,500. In 2017 the Born Free Foundation was criticised by The European Association of Zoos and Aquaria and the British and Irish Association of Zoos and Aquariums for a report on UK zoo animal welfare that "groundlessly conflates the keeping of animals at zoos with the exotic pet trade and travelling circuses". Within the press release, however, BIAZA and EAZA, stated that they would generally welcome three of the five principal demands identified in the Born Free Foundation's ‘Beyond the Bars’ campaign were legislation to introduce such changes: 1. Publication and independent review of summary statistics on causes of deaths of animals in zoos; 2. Establishment of a full-time and centralised independent zoo inspectorate to ensure consistency in licensing and inspection of zoos. 3. When considering planning applications for development of zoos and similar facilities, introduction of a mechanism to assess whether the animals’ welfare is likely to comply with existing animal-keeping legislation and standards before permission to build is granted. However, the two zoo associations’ stated position was to continue to permit the pinioning birds (mutilation to prevent flight), and to continue keeping and breeding elephants in captivity. This included the admission that they would still allow member zoos to import elephants which have been captured and taken from the wild, and for zoos to use an ankus (bullhook - sticks with curved, pointed, usually metal tips) for elephant management. In 2018, with Born Free support, an Oxford University WildCRU expedition located a previously unreported population of rare lions in Sudan. In 2019, a Born Free trophy hunting campaign included a major report, Downing Street rally, 246,000-signature petition and award-winning Bitter Bond canned hunting animation, which has been watched by over 10 million online. A new film Creature Discomforts created with Aardman Animations in 2020 used people's experiences in lockdown to highlight the plight of wild animals in zoos, circuses and dolphinariums. In 2021 another film Protect Them, Protect Us, narrated by Joanna Lumley, called for end to wildlife markets to help address the spread of zoonotic diseases and reduce the risk of future global pandemics. Policy work by the Foundation, reflecting growing concerns amongst the British public and more widely, have assisted in securing a number of progressive legislative measures either being approved or proposed, including: • A ban on the use of wild animals in circuses in England and Wales • An end the keeping of dolphins in public display facilities in the UK • Restrictions on the keeping of wild animals as pets • The introduction of legislation to largely prohibit (with some modest exemptions) the UK's domestic trade in elephant ivory. • Improvements to the required standards of and enforcement of the UK's Zoo Licensing Act (1981) • A prospective ban on the import of hunting trophies of many wild species into the UK In June 2021, the Community Leaders' Network that represents millions of rural Africans in six nations accused the Born Free Foundation "of waging a campaign of disinformation against trophy hunting that will damage African conservation activities, and undermine their human rights and livelihoods" in a press release. Focusing on a complaint made to the UK Charity Commission, community leaders further state that "Born Free Foundation’s assertions that trophy hunting doesn’t support local communities or conservation are “demonstrably false” and “misleading.”" Born Free fully cooperated with the Charity Commission’s request for additional information and provided evidence to support its campaigning material. This included: specific publications and peer-reviewed reports on the issue of trophy hunting written by economists, conservationists, ecologists, psychologists and animal welfare experts; briefing papers from the International Union for the Conservation of Nature (IUCN), a membership Union composed of both government and civil society organisations of which Born Free is a member organisation, and which harnesses the experience, resources and reach of its more than 1,400 Member organisations and the input of more than 18,000 experts; and reports by the Intergovernmental Science-Policy Platform on Biodiversity and Ecosystem Services (IPBES) and the International Monetary Fund (IMF). Born Free also confirmed to the Charity Commission how its trophy hunting campaign and associated materials related directly to all of its charitable objects. The Charity Commission concluded that they were satisfied that the charity and its Trustees had demonstrated how the charity’s campaigns and materials relate directly to all of its objects, and that the Trustees are assured of the accuracy of the material used for the charity’s trophy hunting campaign. As a result, the Charity Commission have closed the complaint. Born Free works with a number of corporate sponsors and partners - current partnerships can be found on the website here https://www.bornfree.org.uk/partnerships-and-coalitions. Born Free designated 2022, The Year of The Lion, in memory of its founder, Bill Travers, with the launch of a public art display entitled ‘Born Free Forever’ featuring 21 life-size lion bronze sculptures created by the Australian artists Gillie and Marc. The exhibition is located for the first three months of the year at Millennium Green, Waterloo, London. Subsequently, it traveled to Newcastle, SW England and Edinburgh for three-month periods. Current projects The conservation projects Born Free supports or operates are: Pride of Meru, Kenya Pride of Amboseli, Kenya Ethiopian Wolf Conservation Programme, Ethiopia Satpuda Landscape Tiger Partnership, India Amboseli Elephant Research Project, Kenya Saving Meru's Giants giraffe and elephant conservation, Kenya Black and white rhino conservation, Meru National Park, Kenya Grauer's gorilla conservation, Democratic Republic of Congo Western Chimpanzee Conservation, Guinea-Bissau OrcaLab, Canada Western Chimpanzee Bulindi Chimpanzee & Community Project, Uganda Freeland Foundation, tiger conservation, Thailand Orangutan Foundation International, Indonesian Borneo ELRECO forest elephant conservation, Liberia Sangha Pangolin Project, pangolin rehabilitation and conservation, Central African Republic Wildlife Protection Society, pangolin conservation, India The wildlife rescue and care projects Born Free supports or operates are: Shamwari Big Cat Rescue and Public Education Centres, South Africa (lions and leopards) Ensessa Kotteh Wildlife Rescue and Education Centre, Ethiopia (lions, cheetah, hyena, primates, tortoises and other wildlife) Ngamba Island Chimpanzee Sanctuary, Uganda Limbe Wildlife Centre, Cameroon Lilongwe Wildlife Trust, Malawi Zambia Primate Project, Zambia Arcturos Bear Sanctuary, Greece (European Brown Bears) Animals Asia, Vietnam Animals Asia, China Sangha Pangolin Project, Central African Republic Wildlife Emergency Response Unit, Malawi Orphan Bear Rescue Centre, Russia Born Free facility at Panthera Africa Big Cat Sanctuaryhttps://pantheraafrica.com/, South Africa (lions) Animantura Sanctuary, Italy (lions and tigers) UK wildlife rescue and rehabilitation, a small grants programme supporting centres nationwide (foxes, badgers, hedgehogs) Born Free's educational resources and details of its education programmes can be found here: https://www.bornfree.org.uk/education Born Free's position on a variety of wildlife trade and exploitation issues can be found here: https://www.bornfree.org.uk/wildlife-trade References External links Official YouTube channel Animal charities based in the United Kingdom Animal welfare organisations based in the United Kingdom Organizations established in 1984
Alex Vinatzer (born 22 September 1999) is an Italian World Cup alpine ski racer. He specializes in slalom and has competed in two Winter Olympics, and three World Championships. Born in Bolzano, South Tyrol, Vinatzer made his World Cup debut in November 2017 and his first podium in January 2020 at Zagreb, Croatia. World Cup results Season standings Race podiums 0 wins 2 podiums – (2 SL); 15 top tens (15 SL) World Championship results Olympic results References External links Alex Vinatzer at FISI Alex Vinatzer at Nordica Skis 1999 births Living people Alpine skiers at the 2018 Winter Olympics Alpine skiers at the 2022 Winter Olympics Italian male alpine skiers Olympic alpine skiers for Italy Sportspeople from Bolzano Skiers from South Tyrol Ladin people Alpine skiers of Fiamme Gialle
Klassiska mästerverk is the fourth compilation album from Swedish pop rock musician Magnus Uggla. It was released in 2002. Track listing CD one "Kung för en dag" - 3:18 "Vittring" - 3:08 "Jag mår illa" - 4:08 "Varning på stan" - 4:40 "Fula gubbar" - 4:17 "Nitar & läder" - 4:03 "Staffans matematik" - 4:53 "Passionsfrukt" - 3:50 "Dansar aldrig nykter" - 3:38 "Hotta brudar" - 3:08 "IQ" - 3:31 "Mitt decennium" - 4:33 "Johnny the Rucker" - 4:49 "Pom Pom" - 3:37 "Skandal bjotis" - 4:06 "Jånni Balle" - 3:11 "Centrumhets" - 4:03 "Jag skiter" - 3:23 "Stockholms heta nätter" - 3:37 "Vi ska till VM" - 3:50 CD two "4 sekunder" - 4:05 "Hallå" - 3:08 "Baby Boom" - 5:28 "Astrologen" - 5:09 "Trendit, trendit" - 3:51 "Hand i hand" - 4:38 "Mälarö kyrka" - 3:04 "Trubaduren" - 5:13 "Joey Killer" - 4:29 "Victoria" - 4:16 "Jag vill" - 3:44 "Visa" - 3:41 "Raggarna" - 3:12 "Ska vi gå hem till dig" - 5:08 "Ge livet en chans" - 3:02 "Sommartid" - 4:43 "Morsan e’ okej" - 3:22 "Ja just du ska va gla" - 4:30 "1:a gången" - 3:15 Charts Weekly charts Year-end charts Certifications References 2002 compilation albums Magnus Uggla compilation albums Swedish-language compilation albums
State Route 206 (SR 206, named the Mount Spokane Park Drive) is a state highway serving Mount Spokane State Park in the U.S. state of Washington. Beginning at U.S. Route 2 (US 2) north of Mead, the highway travels east through unincorporated Spokane County and northeast into the Selkirk Mountains, ending at the entrance to Mount Spokane State Park. The roadway, first constructed in the 1890s and reconstructed several times, was designated as SR 206 during the 1964 highway renumbering. Route description SR 206 begins as Mount Spokane Park Drive at an intersection with US 2 north of Mead and east of Mead Flying Service Airport. The highway travels east under a BNSF Railway line and serves Mt. Spokane High School before a roundabout with Bruce Road. SR 206 turns northeast, parallel to Deadman Creek, towards Green Bluff and the Selkirk Mountains. The highway ends at the entrance of Mount Spokane State Park, and the road continues northeast to serve the Mount Spokane Ski and Snowboard Park. Every year the Washington State Department of Transportation (WSDOT) conducts a series of surveys on its highways in the state to measure traffic volume. This is expressed in terms of average annual daily traffic (AADT), which is a measure of traffic volume for any average day of the year. In 2011, WSDOT calculated that between 210 and 10,000 vehicles per day used the highway, mostly in the Mead area. History During the 1890s, a road connecting Mead to Mount Carlton, later renamed to Mount Spokane, via Deadman Creek was constructed. The road to Mount Spokane was paved in 1921, and was later improved in the late 1940s. The Mount Spokane road was designated as SR 206, extending from US 2 north of Mead to Mount Spokane State Park, during the 1964 highway renumbering. The state legislature passed a bill creating the highway in 1963 with the designation of Secondary State Highway 6C, which was never signed. SR 206 was improved and re-paved in 1985, but remains prone to closures. Since 1964, no major revisions to the route of the highway have occurred, however the route was shortened by in 1999 after the construction of a new rail overpass. Major intersections References External links Highways of Washington States 206 Transportation in Spokane, Washington
```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. """Setup dependencies for local and cloud deployment.""" # pytype: skip-file import setuptools TF_VERSION = '1.14.0' if __name__ == '__main__': setuptools.setup( name='beam_chicago_taxi', version='0.13.0', packages=setuptools.find_packages(), install_requires=[ 'jupyter>=1.0,<2', 'notebook>=5.7.8,<5.8', 'tensorflow==' + TF_VERSION, 'tensorflow-data-validation>=0.13.1,<0.14', 'tensorflow-metadata>=0.13.0,<0.14', 'tensorflow-model-analysis>=0.13.2,<0.14', 'tensorflow-serving-api>=1.13.0,<1.14', 'tensorflow-transform>=0.13.0,<0.14', ], python_requires='>=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,<4', ) ```
Philip Martin is a British television director and screenwriter. Martin directed the television drama Hawking (2004), which was nominated for the British Academy Television Award for Best Single Drama; the final installment of the ITV drama Prime Suspect (2006), which was nominated for the BAFTA for Best Drama Serial and won Martin the Primetime Emmy Award for Outstanding Directing for a Miniseries, Movie or Dramatic Special; and two episodes of the first series of Wallander (2008), which won the BAFTA for Best Drama Series and got him another Emmy nomination. He also wrote and directed the BBC Films documentary Double Helix: The DNA Years (2004), and directed the BBC television drama Einstein and Eddington (2008). In 2009, he directed the Agatha Christie's Poirot adaptation of Murder on the Orient Express, which was first broadcast in the United States in July 2010. Filmography Richard Hillary: A Fighter Pilot's Story (2000) Double Helix: The DNA Years (2004) – documentary Hawking (2004) Bloodlines (2005) The Girls Who Came to Stay (2006) Prime Suspect: The Final Act (2006) Wallander (2008) – TV series: 2 episodes Einstein and Eddington (2008) Mo (2010) Agatha Christie's Poirot (2010) – TV series: Murder on the Orient Express Birdsong (2012) – TV serial: 2 episodes Japan in a Day (2012) The Forger (2014) The Crown – TV series: 7 episodes Catherine the Great (2019) – TV series: 4 episodes References External links Year of birth missing (living people) Living people British film directors British television directors Place of birth missing (living people) Primetime Emmy Award winners
```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 TENSORFLOW_FRAMEWORK_OP_KERNEL_H_ #define TENSORFLOW_FRAMEWORK_OP_KERNEL_H_ #include <functional> #include <utility> #include <vector> #include "tensorflow/core/framework/allocator.h" #include "tensorflow/core/framework/cancellation.h" #include "tensorflow/core/framework/control_flow.h" #include "tensorflow/core/framework/device_base.h" #include "tensorflow/core/framework/kernel_def_builder.h" #include "tensorflow/core/framework/node_def_util.h" #include "tensorflow/core/framework/op.h" // TODO(b/62899350): Remove #include "tensorflow/core/framework/rendezvous.h" #include "tensorflow/core/framework/selective_registration.h" #include "tensorflow/core/framework/session_state.h" #include "tensorflow/core/framework/tensor.h" #include "tensorflow/core/framework/tensor_shape.h" #include "tensorflow/core/framework/tensor_shape.pb.h" // TODO(b/62899350): Remove #include "tensorflow/core/framework/tracking_allocator.h" #include "tensorflow/core/framework/types.h" #include "tensorflow/core/framework/types.pb.h" #include "tensorflow/core/framework/unique_tensor_references.h" #include "tensorflow/core/lib/core/errors.h" #include "tensorflow/core/lib/core/status.h" #include "tensorflow/core/lib/gtl/array_slice.h" #include "tensorflow/core/lib/gtl/manual_constructor.h" #include "tensorflow/core/platform/env.h" #include "tensorflow/core/platform/logging.h" #include "tensorflow/core/platform/macros.h" #include "tensorflow/core/platform/mutex.h" #include "tensorflow/core/platform/thread_annotations.h" #include "tensorflow/core/platform/types.h" namespace Eigen { struct ThreadPoolDevice; struct GpuDevice; struct SyclDevice; } // end namespace Eigen namespace tensorflow { namespace checkpoint { class TensorSliceReaderCacheWrapper; } // namespace checkpoint class AsyncOpKernel; class FunctionCallFrame; class FunctionLibraryRuntime; class OpKernelConstruction; // declared below class OpKernelContext; // declared below class OpRegistryInterface; class ResourceMgr; class ScopedStepContainer; class StepStatsCollector; class OpKernel { public: // OpKernel won't be instantiated by the scheduler, so you may perform // expensive initialization in the descendant's constructor. explicit OpKernel(OpKernelConstruction* context); virtual ~OpKernel(); // An OpKernel's computation can be either synchronous or // asynchronous. All OpKernel Compute() methods must be thread-safe as they // may be called concurrently (e.g. by multiple executions of the same graph // concurrently). // // Most OpKernels should compute synchronously. They should // subclass OpKernel and override the Compute() method and have it // return after completing the supplied work. // // A few special kernels might need to be asynchronous to bound the // number of threads (e.g., network receive operations). These // kernels must subclass AsyncOpKernel and override // AsyncOpKernel::ComputeAsync(). // // In both cases, implementations of Compute() and ComputeAsync() // get inputs and write outputs through the given OpKernelContext // and returns a status via context->SetStatus(). They must be // thread-safe. // Synchronous compute. // // "context" is guaranteed to be alive until Compute() returns. virtual void Compute(OpKernelContext* context) = 0; // Returns nullptr iff this op kernel is synchronous. virtual AsyncOpKernel* AsAsync() { return nullptr; } // Returns true iff this op kernel is considered "expensive". The // runtime may use this flag to optimize graph execution for example // to "inline" inexpensive kernels. virtual bool IsExpensive() { return expensive_; } // Accessors. const NodeDef& def() const { return *def_; } const string& name() const; // Same as def().name() const string& type_string() const; // Same as def().op() const string& requested_device() const; // Same as def().device() bool is_internal() const { return is_internal_; } int num_inputs() const { return input_types_.size(); } DataType input_type(int i) const { return input_types_[i]; } const DataTypeVector& input_types() const { return input_types_; } const MemoryTypeVector& input_memory_types() const { return input_memory_types_; } const string& requested_input(int i) const; // Same as def().input(i) int num_outputs() const { return output_types_.size(); } DataType output_type(int o) const { return output_types_[o]; } const DataTypeVector& output_types() const { return output_types_; } const MemoryTypeVector& output_memory_types() const { return output_memory_types_; } Status InputRange(StringPiece input_name, int* start, int* stop) const; Status OutputRange(StringPiece output_name, int* start, int* stop) const; // We allow legacy scalars within Google up until GraphDef version 6. // TODO(irving): Remove when we can drop support for GraphDef version 5. bool allow_legacy_scalars() const { #if defined(PLATFORM_GOOGLE) || defined(PLATFORM_GOOGLE_ANDROID) return graph_def_version_ < 6; #else return false; #endif } // Allow either scalars or (if allowing legacy scalars) shape (1,). bool IsLegacyScalar(const TensorShape& shape) const { return shape.dims() == 0 || (allow_legacy_scalars() && shape.dims() == 1 && shape.dim_size(0) == 1); } // Allow rank 1 or (if allowing legacy scalars) rank 0. bool IsLegacyVector(const TensorShape& shape) const { return shape.dims() == 1 || (allow_legacy_scalars() && shape.dims() == 0); } // Turn a shape Tensor into a TensorShape // TODO(irving): Move to TensorShapeUtils once !allow_legacy_scalars Status MakeShape(const Tensor& shape, TensorShape* out) const; private: const std::unique_ptr<const NodeDef> def_; const DataTypeVector input_types_; const MemoryTypeVector input_memory_types_; const DataTypeVector output_types_; const MemoryTypeVector output_memory_types_; const int graph_def_version_; const bool is_internal_; // True if this is an internal operation NameRangeMap input_name_map_; NameRangeMap output_name_map_; bool expensive_; TF_DISALLOW_COPY_AND_ASSIGN(OpKernel); }; class AsyncOpKernel : public OpKernel { public: using OpKernel::OpKernel; // Lift OpKernel constructors. // Asynchronous compute. // // Implementations of ComputeAsync() must run "done" to signal the // completion of the computation. "context" is guaranteed to be // alive until the "done" callback starts. typedef std::function<void()> DoneCallback; virtual void ComputeAsync(OpKernelContext* context, DoneCallback done) = 0; AsyncOpKernel* AsAsync() final { return this; } void Compute(OpKernelContext* context) final; bool IsExpensive() override { return true; } }; // Wraps a tensor that is held by an Op across calls to Compute(). For // memory safety when using asynchronous devices like GPUs, the system // must be notified when a Tensor is used inside an Op execution. The // wrapper ensures that all uses of the Tensor are tracked, because in // order to retrieve the Tensor the caller must use AccessTensor which // notifies the context. class PersistentTensor { public: PersistentTensor() {} explicit PersistentTensor(const Tensor& tensor) : tensor_(tensor) {} // Caller does not own the returned Tensor*. Tensor* AccessTensor(OpKernelConstruction* context); // Caller does not own the returned Tensor*. Tensor* AccessTensor(OpKernelContext* context); // The check for initialization does not need to access the // underlying tensor buffer. bool IsInitialized() const { return tensor_.IsInitialized(); } int64 NumElements() const { return tensor_.NumElements(); } int64 AllocatedBytes() const { return tensor_.AllocatedBytes(); } private: Tensor tensor_; }; class OpKernelConstruction { public: OpKernelConstruction(DeviceType device_type, DeviceBase* device, Allocator* allocator, const NodeDef* node_def, const OpDef* op_def, FunctionLibraryRuntime* flib, const DataTypeSlice& input_types, const MemoryTypeSlice& input_memory_types, const DataTypeSlice& output_types, const MemoryTypeSlice& output_memory_types, int graph_def_version, Status* status); Env* env() const { return device_->env(); } // Allocation of tensors during kernel construction: // // It is legal to temporarily allocate scratch tensor storage during // Op kernel construction. Scratch tensors should be allocated using // allocate_temp below. Some kernels need to keep tensors in between // invocations. If such a Tensor is allocated during kernel // construction this must be done using allocate_persistent, and the // Op may only store the returned PersistentTensor object. When the // Tensor is needed in a subsequent invocation, it can be retrieved // from the PersistentTensor using the AccessTensor method. This // ensures that the system is made aware of any use of the tensor's // allocated memory, which is needed for correctness on asynchronous // devices such as GPUs. // Allocates a temporary Tensor of the specified type and shape. The // Tensor must not be used after kernel construction is // complete. See comment above. Status allocate_temp(DataType type, const TensorShape& shape, Tensor* out_temp); // Allocates a Tensor of the specified type and shape which the Op // plans to maintain as persistent state. out_persistent holds the // PersistentTensor which is the object the caller should store. For // convenience, if out_tensor is non-null then it will be filled in // with a Tensor* pointing to the newly-allocated tensor which the // caller can use instead of calling // out_persistent->AccessTensor. The caller does not own out_tensor // and should not keep a copy of it. See comment above. Status allocate_persistent(DataType type, const TensorShape& shape, PersistentTensor* out_persistent, Tensor** out_tensor); // User-supplied configuration of this operation. const NodeDef& def() const { return *def_; } // For inspecting the inputs to this operation. int num_inputs() const { return input_types_.size(); } DataType input_type(int i) const { return input_types_[i]; } const DataTypeSlice& input_types() const { return input_types_; } const MemoryTypeSlice& input_memory_types() const { return input_memory_types_; } // For inspecting the outputs expected from this operation. int num_outputs() const { return output_types_.size(); } DataType output_type(int i) const { return output_types_[i]; } const DataTypeSlice& output_types() const { return output_types_; } const MemoryTypeSlice& output_memory_types() const { return output_memory_types_; } // If expected_inputs == inputs() and expected_outputs == output_types(), // returns OK, else returns INVALID_ARGUMENT with an error message. // Recommended for Ops with dynamic signatures. Status MatchSignature(const DataTypeSlice expected_inputs, const DataTypeSlice expected_outputs); // For recording configuration errors during construction. void SetStatus(const Status& status); const Status& status() const { return *status_; } // Look up the attr with name attr_name and set *value to its value. If no // attr with attr_name is found in def(), or the attr does not have // a matching type, a non-ok status will be returned. template <class T> Status GetAttr(StringPiece attr_name, T* value) const; // Return the device type. const DeviceType& device_type() const { return device_type_; } // If not nullptr, the kernel can instantiate functions defined in // the library. E.g., // CHECK_NOTNULL(function_library())->Instantiate("Foo", ...). FunctionLibraryRuntime* function_library() const { return flib_; } // The GraphDef version whose behavior we should follow. int graph_def_version() const { return graph_def_version_; } // Helper routines for the OP_REQUIRES macros void CtxFailure(Status s); void CtxFailureWithWarning(Status s); // Unrecommended functions: these are functions that have some // current uses but are not recommended for use, and may go away at // some future major version release. // May be used, e.g., to get GPU handles, etc. // // Currently only used to call MakeTensorFromProto() for // implementing ConstantOp for every device. See comments // on Device::MakeTensorFromProto for longer-term replacement // ideas. DeviceBase* device() const { return device_; } private: const DeviceType device_type_; DeviceBase* const device_; Allocator* allocator_; const NodeDef* def_; const OpDef* op_def_; FunctionLibraryRuntime* flib_; DataTypeSlice input_types_; MemoryTypeSlice input_memory_types_; DataTypeSlice output_types_; MemoryTypeSlice output_memory_types_; const int graph_def_version_; Status* status_; // Allow op_def_ across from OpKernel, but not from subclasses. // TODO(irving): Remove protos from this header entirely. friend class OpKernel; TF_DISALLOW_COPY_AND_ASSIGN(OpKernelConstruction); }; // TODO(mrry): Consider converting to a random_access_iterator, and upgrading // tensorflow::gtl::iterator_range to make the below container classes // unnecessary. template <typename ListType, typename ElementType> class OpArgIterator { public: typedef OpArgIterator<ListType, ElementType> ME; OpArgIterator(const ListType* list, int i) : list_(list), i_(i) {} bool operator==(const ME& rhs) { DCHECK(list_ == rhs.list_); return i_ == rhs.i_; } bool operator!=(const ME& rhs) { DCHECK(list_ == rhs.list_); return i_ != rhs.i_; } void operator++() { ++i_; } ElementType& operator*() { return (*list_)[i_]; } private: const ListType* const list_; int i_; }; // Utility class for representing a list of immutable input tensors // that are passed to the op as a single named argument. class OpInputList { public: typedef OpArgIterator<OpInputList, const Tensor&> Iterator; OpInputList() : ctx_(nullptr), start_(0), stop_(0) {} OpInputList(OpKernelContext* ctx, int start, int stop) : ctx_(ctx), start_(start), stop_(stop) {} OpInputList& operator=(const OpInputList& other) = default; const Tensor& operator[](int i) const; int size() const { return stop_ - start_; } Iterator begin() const { return Iterator(this, 0); } Iterator end() const { return Iterator(this, size()); } private: OpKernelContext* ctx_; // not owned int start_; int stop_; }; // Utility class for representing a list of mutable ("ref") input tensors // that are passed to the op as a single named argument. class OpMutableInputList { public: typedef OpArgIterator<OpMutableInputList, Tensor*> Iterator; OpMutableInputList(OpKernelContext* ctx, int start, int stop) : ctx_(ctx), start_(start), stop_(stop) {} OpMutableInputList() : ctx_(nullptr), start_(0), stop_(0) {} OpMutableInputList& operator=(const OpMutableInputList& other) = default; Tensor at(int i, bool lock_held); mutex* ref_mutex(int i); int size() const { return stop_ - start_; } Iterator begin() const { return Iterator(this, 0); } Iterator end() const { return Iterator(this, size()); } private: OpKernelContext* ctx_; // not owned int start_; int stop_; }; // Utility class for representing a list of output tensors that are // grouped as a single named output. class OpOutputList { public: typedef OpArgIterator<OpOutputList, const Tensor*> Iterator; OpOutputList() : ctx_(nullptr), start_(0), stop_(0) {} OpOutputList(OpKernelContext* ctx, int start, int stop) : ctx_(ctx), start_(start), stop_(stop) {} OpOutputList& operator=(const OpOutputList& other) = default; Tensor* operator[](int i); bool required(int i) const; DataType expected_output_dtype(int i) const; Status allocate(int i, const TensorShape& shape, Tensor** output); void set(int i, const Tensor& tensor); void set_ref(int i, mutex* mu, Tensor* tensor_for_ref); int size() const { return stop_ - start_; } Iterator begin() const { return Iterator(this, 0); } Iterator end() const { return Iterator(this, size()); } private: OpKernelContext* ctx_; // not owned int start_; int stop_; }; // Holds a tensor or tensor reference. For tensor references, we need // a mutex to prevent concurrent access to the tensor. struct TensorValue { TensorValue() : mutex_if_ref(nullptr), tensor(nullptr) {} TensorValue(Tensor* t) // NOLINT(runtime/explicit) : mutex_if_ref(nullptr), tensor(t) {} TensorValue(mutex* mu, Tensor* t) : mutex_if_ref(mu), tensor(t) {} Tensor* operator->() const { return tensor; } bool is_ref() const { return mutex_if_ref != nullptr; } mutex* mutex_if_ref; // nullptr if not a ref, != nullptr if a ref Tensor* tensor; }; class OpKernelContext { public: // The first element of a WrappedAllocator is a "base" Allocator and // the second element is that Allocator wrapped by a // TrackingAllocator typedef std::pair<Allocator*, TrackingAllocator*> WrappedAllocator; // TODO(zhifengc): Do some cleanup of Params. // The Params struct is passed in to initialize an OpKernelContext, // and must outlive the OpKernelContext. struct Params { ~Params() { delete eigen_gpu_device; } // The step being executed. int64 step_id = 0; // The op kernel being computed. OpKernel* op_kernel = nullptr; // The device on which the kernel is running. DeviceBase* device = nullptr; // The Eigen GPU device wrapper, which may include a per-op // wrapped allocator. The concrete type of this object depends on // the type of this->device, so eigen_gpu_device can't be an // inline member and must be heap allocated. However, we don't // want to allocate a new eigen_gpu_device for every Op that is // executed. Instead this member is allocated on first use using // ensure_eigen_gpu_device, and then if the Params structure is // re-used for subsequent Ops, the eigen_gpu_device is // ReInitialized in the OpKernelContext constructor. Unlike the // other pointers in Params, this one is owned by Params. PerOpGpuDevice* eigen_gpu_device = nullptr; inline void ensure_eigen_gpu_device() { DCHECK(device); if (nullptr == eigen_gpu_device) { // Surprisingly, MakeGpuDevice will return nullptr if the // device is not a GPU device. This is ok, since those devices // will never use eigen_gpu_device. It seems better to have // ensure_eigen_gpu_device fall through and regenerate the // nullptr every time an OpKernelContext is instantiated, than // to do an unnecessary allocation of a dummy eigen GPU // device for CPU device Ops. eigen_gpu_device = device->MakeGpuDevice(); } } bool track_allocations = false; bool log_memory = false; bool record_tensor_accesses = false; // Array indexed by output number for this node const AllocatorAttributes* output_attr_array = nullptr; // Shared resources accessible by this op kernel invocation. ResourceMgr* resource_manager = nullptr; // Per-step resources accessible by this op kernel invocation should be // stored in this container.. ScopedStepContainer* step_container = nullptr; // Mechanism used by this op kernel invocation to communicate with // computations running on other devices. Rendezvous* rendezvous = nullptr; // The session state for this op. SessionState* session_state = nullptr; // The tensor store for this op. TensorStore* tensor_store = nullptr; // Mechanism used by this op kernel invocation to register a callback // for its cancellation. CancellationManager* cancellation_manager = nullptr; // Inputs to this op kernel. const gtl::InlinedVector<TensorValue, 4>* inputs = nullptr; bool is_input_dead = false; const gtl::InlinedVector<AllocatorAttributes, 4>* input_alloc_attrs = nullptr; // Device contexts. const gtl::InlinedVector<DeviceContext*, 4>* input_device_contexts = nullptr; DeviceContext* op_device_context = nullptr; // Control-flow op supports. FrameAndIter frame_iter; // Function call supports. FunctionCallFrame* call_frame = nullptr; FunctionLibraryRuntime* function_library = nullptr; std::function<void(std::function<void()>)>* runner = nullptr; StepStatsCollector* stats_collector = nullptr; // TensorSliceReaderCache support. checkpoint::TensorSliceReaderCacheWrapper* slice_reader_cache = nullptr; }; // params must outlive the OpKernelContext. explicit OpKernelContext(Params* params); OpKernelContext(Params* params, int noutputs); ~OpKernelContext(); Env* env() const { return params_->device->env(); } int64 step_id() const { return params_->step_id; } const OpKernel& op_kernel() const { return *params_->op_kernel; } // Input/output signature. int num_inputs() const { return params_->inputs->size(); } DataType input_dtype(int index) const; Status input_dtype(StringPiece name, DataType* dtype) const; MemoryType input_memory_type(int index) const; int num_outputs() const { return outputs_.size(); } DataType expected_output_dtype(int index) const; MemoryType output_memory_type(int index) const; // Input // Returns an immutable input tensor. May only be used for non-Ref // inputs. For Ref inputs use mutable_input below. // REQUIRES: !IsRefType(input_dtype(index)) // TODO(mrry): Convert this to return Status. const Tensor& input(int index); // Returns the named immutable input tensor in "tensor", as defined // in the OpDef. May only be used for non-Ref inputs. For Ref inputs // use mutable_input below. // REQUIRES: !IsRefType(input_dtype(index)) // REQUIRES: the named input must not be a list. Status input(StringPiece name, const Tensor** tensor); // Returns the named list-valued immutable input in "list", as // defined in the OpDef. If the named output is not list-valued, // returns a one-element list. May only be used for non-Ref // inputs. For Ref inputs use mutable_input below. // REQUIRES: !IsRefType(input_dtype(index)) Status input_list(StringPiece name, OpInputList* list); // For mutable inputs, use the following together to make sure there // is no concurrent access to mutable_input(), e.g.: // { // Tensor& t = context->mutable_input(index); // mutex_lock lock(*context->input_ref_mutex(index)); // // modify the values in t // } // REQUIRES: IsRefType(input_dtype(index)) Status input_ref_mutex(StringPiece name, mutex** out_mutex); // Returns a mutable input tensor. Must be used to access Ref // inputs. REQUIRES: IsRefType(input_dtype(index)). The caller may // modify the values stored in the Tensor buffer, and modifications // will be visible to other Ops reading the same ref tensor. If // !lock_held the input mutex will be acquired before returning the // Tensor. // TODO(mrry): Convert this to return Status. Tensor mutable_input(int index, bool lock_held); // Returns the named mutable input tensor in "tensor", as defined in // the OpDef. Must be used to access Ref inputs. The values stored // in the Tensor buffer may be modified, and modifications will be // visible to other Ops reading the same ref tensor. If !lock_held // the input mutex will be acquired before returning the Tensor. // REQUIRES: the named input must not be a list. // REQUIRES: the named input must be a ref tensor. Status mutable_input(StringPiece name, Tensor* tensor, bool lock_held); // Returns the named list-valued mutable input in "list", as defined // in the OpDef. If the named input is not list-valued, returns a // one-element list. Must be used to access Ref inputs. The values // stored in the Tensor buffer may be modified, and modifications // will be visible to other Ops reading the same ref tensor. // REQUIRES: the named input must be a ref tensor. Status mutable_input_list(StringPiece name, OpMutableInputList* list); // Replace the corresponding Ref Input to use the storage buffer // used by tensor. If !lock_held the input mutex will be acquired // before returning the Tensor. // REQUIRES: IsRefType(input_dtype(index)). void replace_ref_input(int index, const Tensor& tensor, bool lock_held); // Replace the corresponding named Ref Input to use the storage // buffer used by tensor. If !lock_held the input mutex will be // acquired before returning the Tensor. // REQUIRES: IsRefType(input_dtype(index)). Status replace_ref_input(StringPiece name, const Tensor& tensor, bool lock_held); // Deletes the Tensor object used as the Ref Input at // input_index. This is not usually necessary and should be used // with caution. If !lock_held the input mutex will be acquired // before returning the Tensor. // REQUIRES: IsRefType(input_dtype(input_index)). void delete_ref_input(int input_index, bool lock_held); // Return true if there is input at the given index. An operator has no // input at index if its tensor is null. This is primarily used by the // merge operator. // TODO(mrry): Convert this to return Status. bool has_input(int index) const; // Returns true if all inputs are the same shape, otherwise sets the // status to a non-OK value and returns false. // Usage: if (!context->ValidateInputsAreSameShape(this)) return; bool ValidateInputsAreSameShape(OpKernel* op); // Input to output forwarding. // Set the output Ref Tensor at output_index to be an alias of the // input Ref Tensor at input_index. // REQUIRES: IsRefType(input_dtype(input_index)). // REQUIRES: IsRefType(output_dtype(output_index)). void forward_ref_input_to_ref_output(int input_index, int output_index); // Returns true when an alias to input[input_index], reshaped to output_shape, // which is safe to use for in-place computation was written to *output. // Returns false if input[input_index] has a refcount greater than one, or if // its type does not match the expected output type of output[output_index], // or the number of elements in input[input_index] does not equal the number // of elements in output_shape. bool forward_input_to_output_with_shape(int input_index, int output_index, const TensorShape& output_shape, Tensor** output) TF_MUST_USE_RESULT; Status forward_input_to_output_with_shape(StringPiece input_name, StringPiece output_name, const TensorShape& output_shape, Tensor** output) TF_MUST_USE_RESULT; // Returns a pointer to a Tensor aliasing the underlying buffer backing // input[input_index] iff // * input[input_index] is not a ref, // * the data type, shape, memory type, and allocator attributes of // input[input_index] are compatible with those given in dtype, shape, // memory_type, and attr, // * refcount on the underlying buffer is one. // Otherwise returns nullptr. // NOTE: For Cuda kernels that read inputs using the __ldg() intrinsic, // forwarding is only safe if there are no reads via __ldg() after writes // to the same address. std::unique_ptr<Tensor> forward_input( int input_index, DataType dtype, const TensorShape& shape, MemoryType memory_type, const AllocatorAttributes& attr) TF_MUST_USE_RESULT; // Tries to forward one of the inputs given in input_indices to // output[output_index]. If none of the given inputs can be forwarded, calls // allocate_output() to allocate a new output buffer. Status forward_input_or_allocate_output( gtl::ArraySlice<int> candidate_input_indices, int output_index, const TensorShape& output_shape, Tensor** output) TF_MUST_USE_RESULT; Status forward_input_or_allocate_output( gtl::ArraySlice<StringPiece> candidate_input_names, StringPiece output_name, const TensorShape& output_shape, Tensor** output) TF_MUST_USE_RESULT; // Tries to reuse one of the inputs given in input_indices as a temporary. // If none of the given inputs can be forwarded, calls // allocate_temp() to allocate a new temporary buffer. Status forward_input_or_allocate_temp( gtl::ArraySlice<int> candidate_input_indices, DataType type, const TensorShape& shape, const AllocatorAttributes& allocator_attr, Tensor* out_temp) TF_MUST_USE_RESULT; Status forward_input_or_allocate_temp( gtl::ArraySlice<int> candidate_input_indices, DataType type, const TensorShape& shape, Tensor* out_temp) TF_MUST_USE_RESULT { return forward_input_or_allocate_temp(candidate_input_indices, type, shape, AllocatorAttributes(), out_temp); } // Output // Returns the named list-valued output in "list", as defined in the OpDef. // If the named output is not list-valued, returns a one-element list. Status output_list(StringPiece name, OpOutputList* list); // If output_required(index) returns true, the OpKernel's Compute() method // should call allocate_output(index, ...), set_output(index, ...), // set_output_ref(index, ...), or set the status to a non-ok value. // If it returns false, it may output, but is not required to do so. // TODO(mrry): Convert this to return Status, and implement a string // name version. bool output_required(int index) const { return true; // TODO(josh11b): implement } // Allocation of tensors during kernel execution inside the Compute // method: // // There are three methods to allocate Tensors when an Op kernel // executes. // // 1) allocate_persistent. This is only needed for Tensors that will // be stored by the Op between invocations, and it *must* be used // for those Tensors. The call returns a PersistentTensor, and that // is the only object the Op is allowed to hold on to between // invocations. When the Tensor is needed in a subsequent // invocation, it can be retrieved from the PersistentTensor using // the AccessTensor method. This ensures that the system is made // aware of any use of the tensor's allocated memory, which is // needed for correctness on asynchronous devices such as GPUs. // // 2) allocate_output. This should be used to allocate any tensor // that is going to be used as an output from the Op at the end of // the current execution. The caller indicates which output the // Tensor will be assigned to, and the call returns the // newly-allocated Tensor. The Tensor can subsequently be assigned // to during kernel execution, and will be used as the designated // output when the kernel execution completes. // // 3) allocate_temp. This should be used to allocate any scratch // storage that is needed while the kernel is executing, and will // not be retained by the Op. // // In some cases a Tensor needs to be used as an output even though // it was previously allocated elsewhere. The Tensor may have been // passed as an input, or stored in a PersistentTensor during a // previous kernel execution, or allocated earlier in the kernel // execution at a time when it was not known which output it would // be assigned to. In this case the kernel can use set_output or // set_output_ref to indicate that the tensor should be used as the // designated output. It is legal to use any previously-allocated // Tensor as an argument to set_output or set_output_ref, including // Tensors allocated via allocate_temp. There may be a performance // penalty to using a Tensor that was not allocated using // allocate_output. This is because allocate_output uses the // AllocatorAttributes stored in output_attr_array for the // designated output. In some cases, using the wrong attributes may // cause an extra copy of the Tensor's buffer. // Allocates output for the specified output index with shape. // OpKernelContext retains ownership of the returned pointer. See // comment above. // // If memory allocation fails, returns an error status. // // REQUIRES: !IsRefType(expected_output_dtype(index)) Status allocate_output(int index, const TensorShape& shape, Tensor** tensor) TF_MUST_USE_RESULT; Status allocate_output(StringPiece name, const TensorShape& shape, Tensor** tensor) TF_MUST_USE_RESULT; // The following methods use the supplied attributes instead of // those in output_attr_array. The caller is responsible for // ensuring that the attributes are "compatible" with the // output_attr_array, e.g. the tensor is allocated on the correct // device. See comment above. Status allocate_output(int index, const TensorShape& shape, Tensor** tensor, AllocatorAttributes attr) TF_MUST_USE_RESULT; Status allocate_output(StringPiece name, const TensorShape& shape, Tensor** tensor, AllocatorAttributes attr) TF_MUST_USE_RESULT; // Allocates a temporary Tensor of the specified type and // shape. Devices such as GPUs that enqueue Ops for lazy execution // may retain references to the temporary tensors after the Op's // Compute method has run. See comment above. Status allocate_temp(DataType type, const TensorShape& shape, Tensor* out_temp, AllocatorAttributes allocator_attr, const AllocationAttributes& allocation_attr); Status allocate_temp(DataType type, const TensorShape& shape, Tensor* out_temp, AllocatorAttributes allocator_attr) { return allocate_temp(type, shape, out_temp, allocator_attr, AllocationAttributes()); } Status allocate_temp(DataType type, const TensorShape& shape, Tensor* out_temp) { return allocate_temp(type, shape, out_temp, AllocatorAttributes()); } // Allocates a Tensor of the specified type and shape which the Op // plans to maintain as persistent state. out_persistent holds the // PersistentTensor which is the object the caller should store. For // convenience, if out_tensor is non-null then it will be filled in // with a Tensor* pointing to the newly-allocated tensor which the // caller can use instead of calling // out_persistent->AccessTensor. The caller does not own out_tensor // and should not keep a copy of it. See comment above. Status allocate_persistent(DataType type, const TensorShape& shape, PersistentTensor* out_persistent, Tensor** out_tensor, AllocatorAttributes attr); Status allocate_persistent(DataType type, const TensorShape& shape, PersistentTensor* out_persistent, Tensor** out_tensor) { return allocate_persistent(type, shape, out_persistent, out_tensor, AllocatorAttributes()); } // Copies a tensor (allocated by the caller) to the specified output // index. REQUIRES: !IsRefType(expected_output_dtype(index)) // REQUIRES: 'tensor' must have the same MemoryType as // output_memory_types[index]. See comment above. Status set_output(StringPiece name, const Tensor& tensor); // To output a reference. Caller retains ownership of mu and tensor_for_ref, // and they must outlive all uses within the step. See comment above. // REQUIRES: IsRefType(expected_output_dtype(index)) Status set_output_ref(StringPiece name, mutex* mu, Tensor* tensor_for_ref); // Returns nullptr if allocate_output() or set_output() have not been called. Status mutable_output(StringPiece name, Tensor** tensor); // Transfers ownership of an output tensor to the caller. // NOTE: For non-reference outputs, the caller takes responsibility // for deletion. For reference outputs, the caller does NOT take // responsibility for deletion. Status release_output(StringPiece name, TensorValue* value); // Records device specific state about how the input tensors were // computed. // // If using the templated function, the type must be a subclass // of DeviceContext. // // Get the DeviceContext used for the index input. Returns nullptr // if no DeviceContext was provided. template <typename T> T* input_device_context(int index); DeviceContext* input_device_context(int index); // Return the DeviceContext that should be used for this Op. // // If using the templated function, the type must be a subclass // of DeviceContext. // // Returns nullptr if the device did not provide one. template <typename T> T* op_device_context(); DeviceContext* op_device_context() { DeviceContext* ret = params_->op_device_context; if (ret == nullptr) { auto* dev_info = device()->tensorflow_gpu_device_info(); if (dev_info) ret = dev_info->default_context; } return ret; } AllocatorAttributes input_alloc_attr(int index) const { DCHECK_GE(index, 0); DCHECK_LT(index, params_->input_alloc_attrs->size()); return (*params_->input_alloc_attrs)[index]; } AllocatorAttributes output_alloc_attr(int index) const { return params_->output_attr_array[index]; } gtl::InlinedVector<WrappedAllocator, 4> wrapped_allocators() const { mutex_lock lock(mu_); gtl::InlinedVector<WrappedAllocator, 4> retrieved = wrapped_allocators_; return retrieved; } // Communication. // // An op kernel communicates with outside environment through // Rendezvous Send() and Recv(). Rendezvous* rendezvous() const { return params_->rendezvous; } // An op kernel can access the session state it belongs to. SessionState* session_state() const { return params_->session_state; } // An op kernel can access the tensor store of the run it belongs to. TensorStore* tensor_store() const { return params_->tensor_store; } // Function call support. // // If this kernel invocation is within a function execution, // call_frame() returns the call frame for the function call. FunctionCallFrame* call_frame() const { return params_->call_frame; } // If not nullptr, the kernel invoke functions defined in the // library. E.g., CHECK_NOTNULL(function_library())->Run("Foo", ...). FunctionLibraryRuntime* function_library() const { return params_->function_library; } std::function<void(std::function<void()>)>* runner() const { return params_->runner; } StepStatsCollector* stats_collector() const { return params_->stats_collector; } // Shared resources accessible to this kernel. ResourceMgr* resource_manager() const { return params_->resource_manager; } checkpoint::TensorSliceReaderCacheWrapper* slice_reader_cache() const { return params_->slice_reader_cache; } // Execution. // // OpKernels can use these eigen devices to carry out their // numerical computation. const Eigen::ThreadPoolDevice& eigen_cpu_device() const { return *device()->eigen_cpu_device(); } const Eigen::GpuDevice& eigen_gpu_device() const { return params_->eigen_gpu_device->device(); } #ifdef TENSORFLOW_USE_SYCL const Eigen::SyclDevice& eigen_sycl_device() const { return *device()->eigen_sycl_device(); } #endif template <typename EigenDeviceType> const EigenDeviceType& eigen_device() const; // Error handling. // If expected_inputs == inputs() and expected_outputs == output_types(), // returns OK, else returns INVALID_ARGUMENT with an error message. // Recommended for Ops with dynamic signatures, where validation can only // be performed at runtime. Status MatchSignature(const DataTypeSlice expected_inputs, const DataTypeSlice expected_outputs); // An OpKernel should call SetStatus() if Compute() encounters an // error. void SetStatus(const Status& status); const Status& status() const { return status_; } // Cancellation. // // EXPERIMENTAL. See the implementation in tensorflow::TensorQueue for an // example of how to use this API. CancellationManager* cancellation_manager() const { return params_->cancellation_manager; } // Other accessors. // For control flow. FrameAndIter frame_iter() const { return params_->frame_iter; } bool is_input_dead() const { return params_->is_input_dead; } bool* is_output_dead() { return &is_output_dead_; } // May be used, e.g., to get GPU handles, etc. // TODO(tucker): Add example usage. DeviceBase* device() const { return params_->device; } // Retrieve list of referenced tensors in out_vector. Once this is // called, it is not legal to reference any more tensors. Should // not be called from Op kernels. void retrieve_accessed_tensors(TensorReferenceVector* out_vector); // Per-step container for use by white-listed internal ops. ScopedStepContainer* step_container() const { return params_->step_container; } // Helper routines for the OP_REQUIRES macros void CtxFailure(Status s); void CtxFailureWithWarning(Status s); // Unrecommended functions: these are functions that have some // current uses but are not recommended for use, and may go away at // some future major version release. // // The following functions all have versions that return Status // to capture error conditions, and are strongly preferred. Tensor* mutable_output(int index); void set_output(int index, const Tensor& tensor); mutex* input_ref_mutex(int index); void set_output_ref(int index, mutex* mu, Tensor* tensor_for_ref); TensorValue release_output(int index); bool track_allocations() const { return params_->track_allocations; } bool allocate_on_host(AllocatorAttributes alloc_attr) const; // Records temporary memory sizes. void record_host_temp_memory_size(int64 size) { host_temp_memory_size_ += size; } void record_device_temp_memory_size(int64 size) { device_temp_memory_size_ += size; } // Returns recorded size of temporary memory; int64 host_temp_memory_size() const { return host_temp_memory_size_; } int64 device_temp_memory_size() const { return device_temp_memory_size_; } // Records persistent memory allocation, size can be negative indicating // deallocation. void record_host_persistent_memory_allocation(int64 size, int64 alloc_id = -1); void record_device_persistent_memory_allocation(int64 size, int64 alloc_id = -1); // Returns recorded size and ids of persistent memory. int64 host_persistent_memory_allocated() const { return host_persistent_memory_allocated_; } int64 device_persistent_memory_allocated() const { return device_persistent_memory_allocated_; } std::vector<int64> host_persistent_alloc_ids() const; std::vector<int64> device_persistent_alloc_ids() const; bool input_is_ref(int index) const; private: Allocator* get_allocator(AllocatorAttributes attr); // Internal method to add a tensor's buffer to the list of buffers // referenced during the execution of the Op, so that GPUs may // accurately track the memory that may not be reused until the Op // execution completes. void record_tensor_reference(const Tensor& tensor); void really_record_tensor_reference(const Tensor& tensor); // Internal common method used when allocating tensor memory Status allocate_tensor(DataType type, const TensorShape& shape, Tensor* out_tensor, AllocatorAttributes allocator_attr) { return allocate_tensor(type, shape, out_tensor, allocator_attr, AllocationAttributes()); } Status allocate_tensor(DataType type, const TensorShape& shape, Tensor* out_tensor, AllocatorAttributes allocator_attr, const AllocationAttributes& allocation_attr); // This is called by PersistentTensor::AccessTensor whenever the // wrapped tensor is retrieved, to ensure the runtime knows that the // Tensor is being accessed within an Op. This is necessary for // memory safety of devices like GPUs that queue Ops for // asynchronous execution after the Compute() method completes. friend class PersistentTensor; void NotifyUseOfPersistentTensor(const Tensor& tensor); Status status_; Params* params_; // not owned mutable mutex mu_; // mutable so const accessors can acquire the lock gtl::InlinedVector<WrappedAllocator, 4> wrapped_allocators_ GUARDED_BY(mu_); gtl::InlinedVector<TensorValue, 4> outputs_; // Constructed only if <params->record_tensor_accesses>. ManualConstructor<UniqueTensorReferences> referenced_tensors_ GUARDED_BY(mu_); bool is_output_dead_ = false; int64 host_temp_memory_size_; int64 device_temp_memory_size_; gtl::InlinedVector<int64, 2> host_persistent_alloc_ids_; gtl::InlinedVector<int64, 2> device_persistent_alloc_ids_; int64 host_persistent_memory_allocated_; int64 device_persistent_memory_allocated_; TF_DISALLOW_COPY_AND_ASSIGN(OpKernelContext); }; // Register your OpKernel by specifying the Op's name, the device the // kernel runs on, any type attr constraints for this kernel, any // host-memory args, and the class to instantiate. Examples: // // // A kernel that supports all types. // REGISTER_KERNEL_BUILDER(Name("Save").Device(DEVICE_CPU), SaveOp); // // // The following are equivalent ways of specifying that the kernel only // // works if the "T" type attr is set to DT_FLOAT. // REGISTER_KERNEL_BUILDER( // Name("Sub").Device(DEVICE_CPU).TypeConstraint<float>("T"), // SubOp<float>); // // (You would then repeat this for every type supported by "Sub".) // // // This form allows you to specify a list of types as the constraint. // REGISTER_KERNEL_BUILDER(Name("Sub") // .Device(DEVICE_CPU) // .TypeConstraint("T", {DT_FLOAT}), // SubOp<float>); // // // A kernel that expects one of the input tensors in host memory. // REGISTER_KERNEL_BUILDER( // Name("Reshape").Device(DEVICE_GPU).HostMemory("shape"), ReshapeOp); // // See kernel_def_builder for details. // Instantiate an OpKernel that has been registered. Returns nullptr // if no operation for that type of device / input signature combination // (and a NOT_FOUND *status), or there is an error in construction (and // an INVALID_ARGUMENT *status). Otherwise, the caller takes ownership // of the returned pointer. // EXPECTED USAGE: unique_ptr<OpKernel> op = CreateOpKernel(...); // REQUIRES: def has all attrs specified (e.g. using AddDefaultsToNodeDef()). std::unique_ptr<OpKernel> CreateOpKernel(DeviceType device_type, DeviceBase* device, Allocator* allocator, const NodeDef& def, int graph_def_version, Status* status); Status CreateOpKernel(DeviceType device_type, DeviceBase* device, Allocator* allocator, FunctionLibraryRuntime* flib, const NodeDef& def, int graph_def_version, OpKernel** kernel); // Returns into 'device_types' the subset of prioritized_types that this // binary has registered for the given NodeDef. // // REQUIRES: * 'device_types' is not nullptr. // * def has all attrs specified (e.g. using AddDefaultsToNodeDef()). Status SupportedDeviceTypesForNode( const std::vector<DeviceType>& prioritized_types, const NodeDef& def, DeviceTypeVector* device_types); // Returns a message with a description of the kernels registered for op // `op_name`. string KernelsRegisteredForOp(StringPiece op_name); // Call once after Op registration has completed. Status ValidateKernelRegistrations(const OpRegistryInterface& op_registry); // your_sha256_hash------------- // OpKernel registration implementation follows, please ignore. // Allow the REGISTER_KERNEL_BUILDER(Name("op_name").Device(...)...) syntax. namespace register_kernel { class Name : public KernelDefBuilder { public: // With selective registration, kernels whose implementation class is not used // by any kernel are disabled with the SHOULD_REGISTER_OP_KERNEL call in // REGISTER_KERNEL_BUILDER_UNIQ. However, an unused kernel that shares an // implementation class with a used kernel would get through that mechanism. // // This mechanism stops that registration by changing the name of the kernel // for the unused op to one that is ignored by // OpKernelRegistrar::InitInternal. Note that this method alone is // not sufficient - the compiler can't evaluate the entire KernelDefBuilder at // compilation time, so this method doesn't actually reduce code size. explicit Name(const char* op) : KernelDefBuilder(SHOULD_REGISTER_OP(op) ? op : "_no_register") {} }; namespace system { class Name : public KernelDefBuilder { public: // For system kernels, we ignore selective registration and // unconditionally register the kernel. explicit Name(const char* op) : KernelDefBuilder(op) {} }; } // namespace system } // namespace register_kernel #define REGISTER_KERNEL_BUILDER(kernel_builder, ...) \ REGISTER_KERNEL_BUILDER_UNIQ_HELPER(__COUNTER__, kernel_builder, __VA_ARGS__) #define REGISTER_KERNEL_BUILDER_UNIQ_HELPER(ctr, kernel_builder, ...) \ REGISTER_KERNEL_BUILDER_UNIQ(ctr, kernel_builder, __VA_ARGS__) #define REGISTER_KERNEL_BUILDER_UNIQ(ctr, kernel_builder, ...) \ constexpr bool should_register_##ctr##__flag = \ SHOULD_REGISTER_OP_KERNEL(#__VA_ARGS__); \ static ::tensorflow::kernel_factory::OpKernelRegistrar \ registrar__body__##ctr##__object( \ should_register_##ctr##__flag \ ? ::tensorflow::register_kernel::kernel_builder.Build() \ : nullptr, \ #__VA_ARGS__, \ [](::tensorflow::OpKernelConstruction* context) \ -> ::tensorflow::OpKernel* { \ return new __VA_ARGS__(context); \ }); // The `REGISTER_SYSTEM_KERNEL_BUILDER()` macro acts as // `REGISTER_KERNEL_BUILDER()` except that the kernel is registered // unconditionally even when selective registration is used. #define REGISTER_SYSTEM_KERNEL_BUILDER(kernel_builder, ...) \ REGISTER_SYSTEM_KERNEL_BUILDER_UNIQ_HELPER(__COUNTER__, kernel_builder, \ __VA_ARGS__) #define REGISTER_SYSTEM_KERNEL_BUILDER_UNIQ_HELPER(ctr, kernel_builder, ...) \ REGISTER_SYSTEM_KERNEL_BUILDER_UNIQ(ctr, kernel_builder, __VA_ARGS__) #define REGISTER_SYSTEM_KERNEL_BUILDER_UNIQ(ctr, kernel_builder, ...) \ static ::tensorflow::kernel_factory::OpKernelRegistrar \ registrar__body__##ctr##__object( \ ::tensorflow::register_kernel::system::kernel_builder.Build(), \ #__VA_ARGS__, \ [](::tensorflow::OpKernelConstruction* context) \ -> ::tensorflow::OpKernel* { \ return new __VA_ARGS__(context); \ }); void* GlobalKernelRegistry(); // If node_def has a corresponding kernel registered on device_type, // returns OK and fill in the kernel def and kernel_class_name. <def> and // <kernel_class_name> may be null. Status FindKernelDef(const DeviceType& device_type, const NodeDef& node_def, const KernelDef** def, string* kernel_class_name); // Writes a list of all registered kernels to LOG(INFO), to help users debug // missing kernel errors. void LogAllRegisteredKernels(); namespace kernel_factory { class OpKernelRegistrar { public: typedef OpKernel* (*Factory)(OpKernelConstruction*); OpKernelRegistrar(const KernelDef* kernel_def, StringPiece kernel_class_name, Factory factory) { // Perform the check in the header to allow compile-time optimization // to a no-op, allowing the linker to remove the kernel symbols. if (kernel_def != nullptr) { InitInternal(kernel_def, kernel_class_name, factory); } } private: void InitInternal(const KernelDef* kernel_def, StringPiece kernel_class_name, Factory factory); }; } // namespace kernel_factory // your_sha256_hash------------- // Template and inline method implementations, please ignore template <class T> Status OpKernelConstruction::GetAttr(StringPiece attr_name, T* value) const { return GetNodeAttr(def(), attr_name, value); } inline DataType OpKernelContext::input_dtype(int index) const { DCHECK_GE(index, 0); DCHECK_LT(index, num_inputs()); const TensorValue& value((*params_->inputs)[index]); if (value.is_ref()) { return MakeRefType(value->dtype()); } else { return value->dtype(); } } inline MemoryType OpKernelContext::input_memory_type(int index) const { DCHECK_GE(index, 0); DCHECK_LT(index, num_inputs()); return op_kernel().input_memory_types()[index]; } inline DataType OpKernelContext::expected_output_dtype(int index) const { DCHECK_GE(index, 0); DCHECK_LT(index, num_outputs()); return params_->op_kernel->output_type(index); } inline MemoryType OpKernelContext::output_memory_type(int index) const { DCHECK_GE(index, 0); DCHECK_LT(index, num_outputs()); return op_kernel().output_memory_types()[index]; } inline bool OpKernelContext::input_is_ref(int index) const { const TensorValue& value((*params_->inputs)[index]); return value.is_ref(); } inline void OpKernelContext::record_tensor_reference(const Tensor& tensor) { DCHECK_EQ(params_->device->RequiresRecordingAccessedTensors(), params_->record_tensor_accesses); if (params_->record_tensor_accesses) { really_record_tensor_reference(tensor); } } inline void OpKernelContext::retrieve_accessed_tensors( TensorReferenceVector* out_vector) { if (params_->record_tensor_accesses) { mutex_lock l(mu_); referenced_tensors_->FreezeAndReturnReferences(out_vector); } } // no input if tensor == nullptr. inline bool OpKernelContext::has_input(int index) const { DCHECK_GE(index, 0); DCHECK_LT(index, num_inputs()); return (*params_->inputs)[index].tensor != nullptr; } inline mutex* OpKernelContext::input_ref_mutex(int index) { DCHECK_GE(index, 0); DCHECK_LT(index, num_inputs()); DCHECK(input_is_ref(index)); return (*params_->inputs)[index].mutex_if_ref; } inline void OpKernelContext::NotifyUseOfPersistentTensor(const Tensor& t) { if (t.IsInitialized()) { record_tensor_reference(t); } } inline Tensor* OpKernelContext::mutable_output(int index) { DCHECK_GE(index, 0); DCHECK_LT(index, num_outputs()); // No need to record_tensor_reference since the output must already // have been set by a call that did so. return outputs_[index].tensor; } inline TensorValue OpKernelContext::release_output(int index) { DCHECK_GE(index, 0); DCHECK_LT(index, num_outputs()); TensorValue value = outputs_[index]; outputs_[index] = TensorValue(); return value; } inline Status OpKernelContext::forward_input_or_allocate_output( gtl::ArraySlice<int> candidate_input_indices, int output_index, const TensorShape& output_shape, Tensor** output) { for (int input_index : candidate_input_indices) { if (forward_input_to_output_with_shape(input_index, output_index, output_shape, output)) { return Status::OK(); } } return allocate_output(output_index, output_shape, output); } inline Status OpKernelContext::forward_input_or_allocate_output( gtl::ArraySlice<StringPiece> candidate_input_names, StringPiece output_name, const TensorShape& output_shape, Tensor** output) { for (const StringPiece& input_name : candidate_input_names) { if (forward_input_to_output_with_shape(input_name, output_name, output_shape, output) .ok()) { return Status::OK(); } } return allocate_output(output_name, output_shape, output); } template <typename T> T* OpKernelContext::op_device_context() { static_assert(std::is_base_of<DeviceContext, T>::value, "T is not a subclass of DeviceContext"); return static_cast<T*>(op_device_context()); } template <typename T> T* OpKernelContext::input_device_context(int index) { DCHECK_GE(index, 0); DCHECK_LT(index, params_->input_device_contexts->size()); static_assert(std::is_base_of<DeviceContext, T>::value, "T is not a subclass of DeviceContext"); return static_cast<T*>((*params_->input_device_contexts)[index]); } inline DeviceContext* OpKernelContext::input_device_context(int index) { DCHECK_GE(index, 0); DCHECK_LT(index, params_->input_device_contexts->size()); return (*params_->input_device_contexts)[index]; } inline const Tensor& OpInputList::operator[](int i) const { DCHECK_GE(i, 0); DCHECK_LT(i, stop_ - start_); return ctx_->input(start_ + i); } inline mutex* OpMutableInputList::ref_mutex(int i) { DCHECK_GE(i, 0); DCHECK_LT(i, stop_ - start_); return ctx_->input_ref_mutex(start_ + i); } inline Tensor OpMutableInputList::at(int i, bool lock_held) { DCHECK_GE(i, 0); DCHECK_LT(i, stop_ - start_); return ctx_->mutable_input(start_ + i, lock_held); } inline Tensor* OpOutputList::operator[](int i) { DCHECK_GE(i, 0); DCHECK_LT(i, stop_ - start_); return ctx_->mutable_output(start_ + i); } inline bool OpOutputList::required(int i) const { DCHECK_GE(i, 0); DCHECK_LT(i, stop_ - start_); return ctx_->output_required(start_ + i); } inline DataType OpOutputList::expected_output_dtype(int i) const { DCHECK_GE(i, 0); DCHECK_LT(i, stop_ - start_); return ctx_->expected_output_dtype(start_ + i); } inline Status OpOutputList::allocate(int i, const TensorShape& shape, Tensor** output) { DCHECK_GE(i, 0); DCHECK_LT(i, stop_ - start_); return ctx_->allocate_output(start_ + i, shape, output); } inline void OpOutputList::set(int i, const Tensor& tensor) { DCHECK_GE(i, 0); DCHECK_LT(i, stop_ - start_); ctx_->set_output(start_ + i, tensor); } inline void OpOutputList::set_ref(int i, mutex* mu, Tensor* tensor_for_ref) { DCHECK_GE(i, 0); DCHECK_LT(i, stop_ - start_); ctx_->set_output_ref(i, mu, tensor_for_ref); } // Convenience macros for asserting and handling exceptional conditions. // Analogous to the CHECK* macros provided by logging.h. // // Example use: // void Compute(OperationContext* context) { // OP_REQUIRES(context, context->num_inputs() == 2, // errors::InvalidArgument("FooOp requires 2 arguments")); // ... // Status status = SomeUncertainMethod(); // OP_REQUIRES_OK(context, status); // ... // } #define OP_REQUIRES(CTX, EXP, STATUS) \ if (!TF_PREDICT_TRUE(EXP)) { \ (CTX)->CtxFailure((STATUS)); \ return; \ } #define OP_REQUIRES_OK(CTX, ...) \ do { \ ::tensorflow::Status _s(__VA_ARGS__); \ if (!TF_PREDICT_TRUE(_s.ok())) { \ (CTX)->CtxFailureWithWarning(_s); \ return; \ } \ } while (0) #define OP_REQUIRES_ASYNC(CTX, EXP, STATUS, CALLBACK) \ if (!TF_PREDICT_TRUE(EXP)) { \ (CTX)->CtxFailure((STATUS)); \ (CALLBACK)(); \ return; \ } #define OP_REQUIRES_OK_ASYNC(CTX, STATUS, CALLBACK) \ do { \ ::tensorflow::Status _s(STATUS); \ if (!TF_PREDICT_TRUE(_s.ok())) { \ (CTX)->CtxFailureWithWarning(_s); \ (CALLBACK)(); \ return; \ } \ } while (0) } // namespace tensorflow #endif // TENSORFLOW_FRAMEWORK_OP_KERNEL_H_ ```
Radbourne Hall is an 18th-century Georgian country house, the seat of the Chandos-Pole family, at Radbourne, Derbyshire. It is a Grade I listed building. History The Manor of Radbourne has been held by the Chandos family from the time of the Norman Conquest. It is one of the few UK landed estates that has passed only by inheritance and marriage since the Conquest, when William the Conqueror’s ally Henry de Ferrers was granted it in the 11th century. On the death of Sir John Chandos, an original Knight of the order of the Garter, in 1369 it passed to his niece who married Sir Peter de la Pole of Newborough, Staffordshire. The present house was built in about 1739 for his descendant German Pole, probably by architect William Smith the Younger. The previous building, located in the hollow towards the village of Radbourne, supposedly was able to sleep 100 people in beds and have stabling for 200 horses. When the brook flooded, barrels of beer had to be collected from the cellar by boat. The brick construction has two red-brick storeys placed over a stone-based basement storey. The entrance front has seven bays, the central three of which slightly project and crowned with a stone carved pediment bearing the Pole family arms. The park was originally laid out in 1790 by William Emes. In 1807 Edward Sacheverell Pole adopted by sign manual the additional surname of Chandos to commemorate his descent from Sir John Chandos. Since then the family surname has been Chandos-Pole. Edward Sacherevell Chandos-Pole, High Sheriff in 1827, was succeeded in that office by his son and namesake. He extended and modernised the property in 1865. The next major refurbishment occurred in the late 1950s, under the instruction of the owner Major John Walkelyne Chandos-Pole, DL, JP, when part of the extended wing was pulled down, which included the ballroom and a servants' wing. The interior design was undertaken by John Beresford Fowler of Colefax & Fowler. A succession of Poles and Chandos-Poles were rectors of St Andrew's Church in Radbourne: 1715, Samuel Pole; 1758, John le Hunt, whose patron was German Pole; 1790, Edward Pole, whose patron was Sacheverell Pole; 1824, H. Reginald Chandos-Pole, whose patron was Edward Sacheverell Chandos-Pole. Finally, in August 1866 William Chandos-Pole became vicar, whose patrons were John Yarde Buller, Edward Levett and Rev. William Chandos-Pole. Several members of the Pole family served as High Sheriff of Derbyshire, including Samuel Pole (1651–1731), who was the father of Edward Pole, a lieutenant-general, and Charles Pole, a Member of Parliament. The Pole Baronets of Wolverton, Hampshire, descend from Charles Pole. Erasmus Darwin lived in the house briefly, following his marriage in 1781 to Elizabeth Pole. See also Grade I listed buildings in Derbyshire Listed buildings in Radbourne, Derbyshire References Grade I listed buildings in Derbyshire History of Derbyshire Country houses in Derbyshire 1739 establishments in Great Britain
Abdul Latif (24 October 1951 – 29 November 1997) was an underworld figure and terrorist from the Gujarat state of India and an associate of Dawood Ibrahim. He was based in Ahmedabad and was politically well connected. He used to wait on tables in gambling dens where he started serving liquor as a teenager. He became a bootlegger and eventually monopolised the illegal liquor business in Gujarat. Latif was wanted for over 100 cases of murder, contract killing, extortion, rioting, kidnappings, smuggling, bootlegging and was also wanted in the 1993 Mumbai blasts case. There were 243 cases against his gang including 64 murders and 14 kidnappings. The incident that highlighted Latif was the "Odhav Shootout". Latif wanted rival bootlegger Hansraj Trivedi to buy liquor from his gang. As Trivedi refused to be cowed down, Latif led two attacks on the gymkhana. In the second attack on 3 August 1992, automatic weapons, including sten guns and revolvers, were used. The court relied on confessional statements made by some of the accused under section 15 of the Terrorist and Anti Disruptive Activities Act. Special public prosecutor SV Raju appeared for the state. The court convicted nine persons and sentenced eight with life imprisonment and fine, while one Jehangir Patel, who provided arms to the Latif Gang, was given a sentence of seven years. Main accused Liyakat Hussein alias master Khudabax Shaikh, was given lifer with a condition that it shall not be less than 20 years. He was further convicted under several other sections. He was the main culprit in supplying RDX used in the 1993 Mumbai blasts. He was arrested in 1995 in Delhi and housed at the Sabarmati jail pending trial. In November 1997, Latif was shot dead in a police encounter in Ahmedabad. In 2014, one of Latif's sons contested the assembly election with Samajwadi Party against Shanker Singh Vaghela, the former Chief Minister. Latif's other son had contested against Vaghela in 2009. The 2017 Bollywood film Raees is said to be based on Latif's life. In April 2016, Latif's son filed a lawsuit for defamation against the makers of the film, saying the film misrepresented his father. Shaikh's lawyer said that the 97 cases lodged against Latif were for bootlegging and other serious offences under the Terrorist and Disruptive Activities (Prevention) Act, but he did not run a brothel or use women for delivery in his bootlegging operations, as depicted in the film. The film was declared to be a work of fiction. References 1951 births 1993 Bombay bombings 1997 deaths D-Company Crime in Gujarat Indian gangsters Indian smugglers 20th-century Indian Muslims Gujarati people People shot dead by law enforcement officers in India People from Ahmedabad Bootleggers
```c++ /* * * 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 WebSocket++ Project 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 PETER THORSON 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. * */ #ifndef WEBSOCKETPP_COMMON_TYPE_TRAITS_HPP #define WEBSOCKETPP_COMMON_TYPE_TRAITS_HPP #include <websocketpp/common/cpp11.hpp> // If we've determined that we're in full C++11 mode and the user hasn't // explicitly disabled the use of C++11 functional header, then prefer it to // boost. #if defined _WEBSOCKETPP_CPP11_INTERNAL_ && !defined _WEBSOCKETPP_NO_CPP11_TYPE_TRAITS_ #ifndef _WEBSOCKETPP_CPP11_TYPE_TRAITS_ #define _WEBSOCKETPP_CPP11_TYPE_TRAITS_ #endif #endif #ifdef _WEBSOCKETPP_CPP11_TYPE_TRAITS_ #include <type_traits> #else #include <boost/aligned_storage.hpp> #endif namespace websocketpp { namespace lib { #ifdef _WEBSOCKETPP_CPP11_TYPE_TRAITS_ using std::aligned_storage; using std::is_same; #else using boost::aligned_storage; using boost::is_same; #endif } // namespace lib } // namespace websocketpp #endif // WEBSOCKETPP_COMMON_TYPE_TRAITS_HPP ```
Bismarck Municipal Stadium is a baseball stadium in Bismarck, North Dakota. Built in 1921, the stadium was reconfigured in 1992 and renovated again in 2014. Since 1928, it has been home to the Bismarck Governors (American Legion Lloyd Spetz Post No. 1) team. In the 1930s, it was home to the Bismarck Churchills independent team, most famous for having Baseball Hall of Famer Satchel Paige leading its roster. It was also home to the minor league baseball teams, the Bismarck Capitals (1922–1923), Bismarck Barons (1955–1957) and Bismarck-Mandan Pards (1962–1964, 1966). Currently, it is home to the Bismarck Larks of the Northwoods League, a collegiate summer baseball league. References External links Bismarck Larks - official site Northwoods League - official site Baseball venues in North Dakota Sports in Bismarck, North Dakota Buildings and structures in Bismarck, North Dakota 1921 establishments in North Dakota
```objective-c // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef V8_OBJECTS_SOURCE_TEXT_MODULE_H_ #define V8_OBJECTS_SOURCE_TEXT_MODULE_H_ #include "src/objects/module.h" #include "src/objects/promise.h" // Has to be the last include (doesn't have include guards): #include "src/objects/object-macros.h" namespace v8 { namespace internal { class UnorderedModuleSet; // The runtime representation of an ECMAScript Source Text Module Record. // path_to_url#sec-source-text-module-records class SourceTextModule : public TorqueGeneratedSourceTextModule<SourceTextModule, Module> { public: NEVER_READ_ONLY_SPACE DECL_VERIFIER(SourceTextModule) DECL_PRINTER(SourceTextModule) // The shared function info in case {status} is not kEvaluating, kEvaluated or // kErrored. SharedFunctionInfo GetSharedFunctionInfo() const; // Whether or not this module is an async module. Set during module creation // and does not change afterwards. DECL_BOOLEAN_ACCESSORS(async) // Get the SourceTextModuleInfo associated with the code. inline SourceTextModuleInfo info() const; Cell GetCell(int cell_index); static Handle<Object> LoadVariable(Isolate* isolate, Handle<SourceTextModule> module, int cell_index); static void StoreVariable(Handle<SourceTextModule> module, int cell_index, Handle<Object> value); static int ImportIndex(int cell_index); static int ExportIndex(int cell_index); // Used by builtins to fulfill or reject the promise associated // with async SourceTextModules. static void AsyncModuleExecutionFulfilled(Isolate* isolate, Handle<SourceTextModule> module); static void AsyncModuleExecutionRejected(Isolate* isolate, Handle<SourceTextModule> module, Handle<Object> exception); // Get the namespace object for [module_request] of [module]. If it doesn't // exist yet, it is created. static Handle<JSModuleNamespace> GetModuleNamespace( Isolate* isolate, Handle<SourceTextModule> module, int module_request); // Get the import.meta object of [module]. If it doesn't exist yet, it is // created and passed to the embedder callback for initialization. V8_EXPORT_PRIVATE static Handle<JSObject> GetImportMeta( Isolate* isolate, Handle<SourceTextModule> module); using BodyDescriptor = SubclassBodyDescriptor<Module::BodyDescriptor, FixedBodyDescriptor<kCodeOffset, kSize, kSize>>; private: friend class Factory; friend class Module; // Appends a tuple of module and generator to the async parent modules // ArrayList. inline static void AddAsyncParentModule(Isolate* isolate, Handle<SourceTextModule> module, Handle<SourceTextModule> parent); // Returns a SourceTextModule, the // ith parent in depth first traversal order of a given async child. inline Handle<SourceTextModule> GetAsyncParentModule(Isolate* isolate, int index); // Returns the number of async parent modules for a given async child. inline int AsyncParentModuleCount(); inline bool HasPendingAsyncDependencies(); inline void IncrementPendingAsyncDependencies(); inline void DecrementPendingAsyncDependencies(); // Bits for flags. static const int kAsyncBit = 0; static const int kAsyncEvaluatingBit = 1; // async_evaluating, top_level_capability, pending_async_dependencies, and // async_parent_modules are used exclusively during evaluation of async // modules and the modules which depend on them. // // Whether or not this module is async and evaluating or currently evaluating // an async child. DECL_BOOLEAN_ACCESSORS(async_evaluating) // The top level promise capability of this module. Will only be defined // for cycle roots. DECL_ACCESSORS(top_level_capability, HeapObject) // The parent modules of a given async dependency, use async_parent_modules() // to retrieve the ArrayList representation. DECL_ACCESSORS(async_parent_modules, ArrayList) // Helpers for Instantiate and Evaluate. static void CreateExport(Isolate* isolate, Handle<SourceTextModule> module, int cell_index, Handle<FixedArray> names); static void CreateIndirectExport(Isolate* isolate, Handle<SourceTextModule> module, Handle<String> name, Handle<SourceTextModuleInfoEntry> entry); static V8_WARN_UNUSED_RESULT MaybeHandle<Cell> ResolveExport( Isolate* isolate, Handle<SourceTextModule> module, Handle<String> module_specifier, Handle<String> export_name, MessageLocation loc, bool must_resolve, ResolveSet* resolve_set); static V8_WARN_UNUSED_RESULT MaybeHandle<Cell> ResolveImport( Isolate* isolate, Handle<SourceTextModule> module, Handle<String> name, int module_request, MessageLocation loc, bool must_resolve, ResolveSet* resolve_set); static V8_WARN_UNUSED_RESULT MaybeHandle<Cell> ResolveExportUsingStarExports( Isolate* isolate, Handle<SourceTextModule> module, Handle<String> module_specifier, Handle<String> export_name, MessageLocation loc, bool must_resolve, ResolveSet* resolve_set); static V8_WARN_UNUSED_RESULT bool PrepareInstantiate( Isolate* isolate, Handle<SourceTextModule> module, v8::Local<v8::Context> context, v8::Module::ResolveCallback callback); static V8_WARN_UNUSED_RESULT bool FinishInstantiate( Isolate* isolate, Handle<SourceTextModule> module, ZoneForwardList<Handle<SourceTextModule>>* stack, unsigned* dfs_index, Zone* zone); static V8_WARN_UNUSED_RESULT bool RunInitializationCode( Isolate* isolate, Handle<SourceTextModule> module); static void FetchStarExports(Isolate* isolate, Handle<SourceTextModule> module, Zone* zone, UnorderedModuleSet* visited); // Implementation of spec concrete method Evaluate. static V8_WARN_UNUSED_RESULT MaybeHandle<Object> EvaluateMaybeAsync( Isolate* isolate, Handle<SourceTextModule> module); // Continued implementation of spec concrete method Evaluate. static V8_WARN_UNUSED_RESULT MaybeHandle<Object> Evaluate( Isolate* isolate, Handle<SourceTextModule> module); // Implementation of spec abstract operation InnerModuleEvaluation. static V8_WARN_UNUSED_RESULT MaybeHandle<Object> InnerModuleEvaluation( Isolate* isolate, Handle<SourceTextModule> module, ZoneForwardList<Handle<SourceTextModule>>* stack, unsigned* dfs_index); static V8_WARN_UNUSED_RESULT bool MaybeTransitionComponent( Isolate* isolate, Handle<SourceTextModule> module, ZoneForwardList<Handle<SourceTextModule>>* stack, Status new_status); // Implementation of spec GetAsyncCycleRoot. static V8_WARN_UNUSED_RESULT Handle<SourceTextModule> GetAsyncCycleRoot( Isolate* isolate, Handle<SourceTextModule> module); // Implementation of spec ExecuteModule is broken up into // InnerExecuteAsyncModule for asynchronous modules and ExecuteModule // for synchronous modules. static V8_WARN_UNUSED_RESULT MaybeHandle<Object> InnerExecuteAsyncModule( Isolate* isolate, Handle<SourceTextModule> module, Handle<JSPromise> capability); static V8_WARN_UNUSED_RESULT MaybeHandle<Object> ExecuteModule( Isolate* isolate, Handle<SourceTextModule> module); // Implementation of spec ExecuteAsyncModule. static void ExecuteAsyncModule(Isolate* isolate, Handle<SourceTextModule> module); static void Reset(Isolate* isolate, Handle<SourceTextModule> module); TQ_OBJECT_CONSTRUCTORS(SourceTextModule) }; // SourceTextModuleInfo is to SourceTextModuleDescriptor what ScopeInfo is to // Scope. class SourceTextModuleInfo : public FixedArray { public: DECL_CAST(SourceTextModuleInfo) template <typename LocalIsolate> static Handle<SourceTextModuleInfo> New(LocalIsolate* isolate, Zone* zone, SourceTextModuleDescriptor* descr); inline FixedArray module_requests() const; inline FixedArray special_exports() const; inline FixedArray regular_exports() const; inline FixedArray regular_imports() const; inline FixedArray namespace_imports() const; inline FixedArray module_request_positions() const; // Accessors for [regular_exports]. int RegularExportCount() const; String RegularExportLocalName(int i) const; int RegularExportCellIndex(int i) const; FixedArray RegularExportExportNames(int i) const; #ifdef DEBUG inline bool Equals(SourceTextModuleInfo other) const; #endif private: template <typename Impl> friend class FactoryBase; friend class SourceTextModuleDescriptor; enum { kModuleRequestsIndex, kSpecialExportsIndex, kRegularExportsIndex, kNamespaceImportsIndex, kRegularImportsIndex, kModuleRequestPositionsIndex, kLength }; enum { kRegularExportLocalNameOffset, kRegularExportCellIndexOffset, kRegularExportExportNamesOffset, kRegularExportLength }; OBJECT_CONSTRUCTORS(SourceTextModuleInfo, FixedArray); }; class SourceTextModuleInfoEntry : public TorqueGeneratedSourceTextModuleInfoEntry<SourceTextModuleInfoEntry, Struct> { public: DECL_PRINTER(SourceTextModuleInfoEntry) DECL_VERIFIER(SourceTextModuleInfoEntry) template <typename LocalIsolate> static Handle<SourceTextModuleInfoEntry> New( LocalIsolate* isolate, Handle<PrimitiveHeapObject> export_name, Handle<PrimitiveHeapObject> local_name, Handle<PrimitiveHeapObject> import_name, int module_request, int cell_index, int beg_pos, int end_pos); TQ_OBJECT_CONSTRUCTORS(SourceTextModuleInfoEntry) }; } // namespace internal } // namespace v8 #include "src/objects/object-macros-undef.h" #endif // V8_OBJECTS_SOURCE_TEXT_MODULE_H_ ```
Rolf Kalmuczak (17 April 1938 in Nordhausen – 10 March 2007 in Garmisch-Partenkirchen) was a German author. He was an editor of daily papers, freelance contributor at Stern, lector and one of the authors of the Jerry Cotton series. Since 1966 he had used more than 100 pseudonyms, written some 160 youth books, 36 film scripts, 170 paperback crime novels, and 200 booklet-novels. He admits that he wrote the TKKG book series as "Stefan Wolf". Rolf Kalmuczak was married with one daughter and lived in Garmisch-Partenkirchen. Pseudonyms Best-known works The best-known works of the author published under the alias Stefan Wolf are the following youth book series: "Ein Fall für TKKG" "Tom und Locke" "Der Magier und das Power-Trio" "Der Puma und seine Freunde" External links 1938 births 2007 deaths People from Nordhausen, Thuringia German male writers
Cloyne is a small village in the township of Addington Highlands, Lennox and Addington County, Ontario, Canada. It is located on Highway 41 about by road north of Kaladar at the crossroads of Highway 41 with Highway 7, with the settlements of Bishop Corners and Northbrook in between, and by road south of Denbigh, with the settlements of Ferguson Corners and Vennachar Junction in between. The village offers a number of services for residents, snowmobilers, cottagers and campers, particularly those visiting Bon Echo Provincial Park to the north on Highway 41. There are also number of small shops, providing townspeople and visitors access to groceries, antiques, chainsaw carvings, hardware supplies, gas, and hunting and fishing gear. Cloyne is also home to the North Addington Education Centre and the Pioneer Museum. The village features an oversized wooden white chair (resembling a Muskoka chair), which has been of interest to tourists since 1989, in its various locations. The chair was damaged during a Derecho (storm) in May 2022; as of spring 2023, a local fund raiser was underway, seeking donations that would fully cover the cost of a new chair. References External links Communities in Lennox and Addington County
```php <?php if ( is_multisite() ) : /** * Tests specific to the ms_files_rewriting option in multisite. * * The ms-files group tag must be used for these tests to run as the constants * set in ms_upload_constants() conflict with a non ms-files configuration. * * @group ms-files * @group multisite */ class Tests_Multisite_msFilesRewriting extends WP_UnitTestCase { public function set_up() { parent::set_up(); update_site_option( 'ms_files_rewriting', 1 ); ms_upload_constants(); } public function test_switch_upload_dir() { $this->assertTrue( is_main_site() ); $site = get_current_site(); $date = date_format( date_create( 'now' ), 'Y/m' ); $user_id = self::factory()->user->create( array( 'role' => 'administrator' ) ); $blog_id2 = self::factory()->blog->create( array( 'user_id' => $user_id ) ); $info = wp_upload_dir(); $this->assertSame( 'path_to_url . $site->domain . '/wp-content/uploads/' . $date, $info['url'] ); $this->assertSame( ABSPATH . 'wp-content/uploads/' . $date, $info['path'] ); $this->assertSame( '/' . $date, $info['subdir'] ); $this->assertFalse( $info['error'] ); switch_to_blog( $blog_id2 ); $info2 = wp_upload_dir(); $this->assertNotEquals( $info, $info2 ); $this->assertSame( get_option( 'siteurl' ) . '/wp-content/blogs.dir/' . get_current_blog_id() . '/files/' . $date, $info2['url'] ); $this->assertSame( ABSPATH . 'wp-content/blogs.dir/' . get_current_blog_id() . '/files/' . $date, $info2['path'] ); $this->assertSame( '/' . $date, $info2['subdir'] ); $this->assertFalse( $info2['error'] ); restore_current_blog(); } /** * When a site is deleted with wpmu_delete_blog(), only the files associated with * that site should be removed. When wpmu_delete_blog() is run a second time, nothing * should change with upload directories. */ public function your_sha256_hashfiles() { $filename = __FUNCTION__ . '.jpg'; $contents = __FUNCTION__ . '_contents'; // Upload a file to the main site on the network. $file1 = wp_upload_bits( $filename, null, $contents ); $blog_id = self::factory()->blog->create(); switch_to_blog( $blog_id ); $file2 = wp_upload_bits( $filename, null, $contents ); restore_current_blog(); wpmu_delete_blog( $blog_id, true ); // The file on the main site should still exist. The file on the deleted site should not. $this->assertFileExists( $file1['file'] ); $this->assertFileDoesNotExist( $file2['file'] ); wpmu_delete_blog( $blog_id, true ); // The file on the main site should still exist. The file on the deleted site should not. $this->assertFileExists( $file1['file'] ); $this->assertFileDoesNotExist( $file2['file'] ); unlink( $file1['file'] ); } } endif; ```
```scss @use "sass:math"; .asset-size { position: relative; flex: 1; margin-bottom: #{math.div(18, $base-font-size)}rem; font-size: #{math.div(14, $base-font-size)}rem; } .asset-size-bar { position: relative; content: ' '; display: block; width: 200px; height: 20px; border-radius: #{math.div(3, $base-font-size)}rem; border: 1px solid transparent; overflow: hidden; @include themify() { background-color: getThemifyVariable('progress-bar-background-color'); } } .asset-size-bar::before { content: ' '; display: block; position: absolute; top: 0; left: 0; bottom: 0; width: calc(var(--percent, 1) * 100%); @include themify() { background-color: getThemifyVariable('progress-bar-active-color'); } } .asset-current { position: absolute; top: #{math.div(28, $base-font-size)}rem; left: 0; } .asset-max { position: absolute; top: 0; left: #{math.div(210, $base-font-size)}rem; } ```
```go // //+build ignore // Use of this source code is governed by a BSD-style license found in the LICENSE file. package codec // This file includes benchmarks which have dependencies on 3rdparty // packages (bson and vmihailenco/msgpack) which must be installed locally. // // To run the benchmarks including these 3rdparty packages, first // - Uncomment first line in this file (put // // in front of it) // - Get those packages: // go get github.com/vmihailenco/msgpack // go get labix.org/v2/mgo/bson // - Run: // go test -bi -bench=. import ( "testing" vmsgpack "gopkg.in/vmihailenco/msgpack.v2" "labix.org/v2/mgo/bson" ) func init() { benchCheckers = append(benchCheckers, benchChecker{"v-msgpack", fnVMsgpackEncodeFn, fnVMsgpackDecodeFn}, benchChecker{"bson", fnBsonEncodeFn, fnBsonDecodeFn}, ) } func fnVMsgpackEncodeFn(ts interface{}) ([]byte, error) { return vmsgpack.Marshal(ts) } func fnVMsgpackDecodeFn(buf []byte, ts interface{}) error { return vmsgpack.Unmarshal(buf, ts) } func fnBsonEncodeFn(ts interface{}) ([]byte, error) { return bson.Marshal(ts) } func fnBsonDecodeFn(buf []byte, ts interface{}) error { return bson.Unmarshal(buf, ts) } func Benchmark__Bson_______Encode(b *testing.B) { fnBenchmarkEncode(b, "bson", benchTs, fnBsonEncodeFn) } func Benchmark__Bson_______Decode(b *testing.B) { fnBenchmarkDecode(b, "bson", benchTs, fnBsonEncodeFn, fnBsonDecodeFn, fnBenchNewTs) } func Benchmark__VMsgpack___Encode(b *testing.B) { fnBenchmarkEncode(b, "v-msgpack", benchTs, fnVMsgpackEncodeFn) } func Benchmark__VMsgpack___Decode(b *testing.B) { fnBenchmarkDecode(b, "v-msgpack", benchTs, fnVMsgpackEncodeFn, fnVMsgpackDecodeFn, fnBenchNewTs) } func TestMsgpackPythonGenStreams(t *testing.T) { doTestMsgpackPythonGenStreams(t) } func TestMsgpackRpcSpecGoClientToPythonSvc(t *testing.T) { doTestMsgpackRpcSpecGoClientToPythonSvc(t) } func TestMsgpackRpcSpecPythonClientToGoSvc(t *testing.T) { doTestMsgpackRpcSpecPythonClientToGoSvc(t) } ```
```objective-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 */ /** * @file mt_mbuf_pool.h * @info buf **/ #ifndef __MT_MBUF_POOL_H__ #define __MT_MBUF_POOL_H__ #include <netinet/in.h> #include <queue> #include "hash_list.h" namespace NS_MICRO_THREAD { using std::queue; enum BUFF_TYPE { BUFF_UNDEF = 0, ///< BUFF_RECV = 1, ///< buff BUFF_SEND = 2, ///< buff }; /** * @brief buffer */ typedef TAILQ_ENTRY(MtMsgBuf) MsgBufLink; typedef TAILQ_HEAD(__MtbuffTailq, MtMsgBuf) MsgBufQueue; class MtMsgBuf { private: int _max_len; // int _msg_len; // int _buf_type; // buff int _recv_len; // int _send_len; // void* _msg_buff; // buffer public: MsgBufLink _entry; /** * @brief , buff */ MtMsgBuf(int max_len) { _max_len = max_len; _msg_len = 0; _buf_type = BUFF_UNDEF; _recv_len = 0; _send_len = 0; _msg_buff = malloc(max_len); }; ~MtMsgBuf() { if (_msg_buff) { free(_msg_buff); _msg_buff = NULL; } }; /** * @brief */ void SetBuffType(BUFF_TYPE type) { _buf_type = (int)type; }; BUFF_TYPE GetBuffType() { return (BUFF_TYPE)_buf_type; }; /** * @brief , */ void Reset() { _msg_len = 0; _recv_len = 0; _send_len = 0; _buf_type = BUFF_UNDEF; }; /** * @brief */ void SetMsgLen(int msg_len) { _msg_len = msg_len; }; int GetMsgLen() { return _msg_len; }; /** * @brief buffer */ int GetMaxLen() { return _max_len; }; void* GetMsgBuff() { return _msg_buff; }; /** * @brief */ int GetHaveSndLen() { return _send_len; }; void SetHaveSndLen(int snd_len) { _send_len = snd_len; }; /** * @brief */ int GetHaveRcvLen() { return _recv_len; }; void SetHaveRcvLen(int rcv_len) { _recv_len = rcv_len; }; }; /** * @brief buffer, */ class MsgBufMap : public HashKey { public: /** * @brief buff * @param buff_size mapbuff, buff * @param max_free , free */ MsgBufMap(int buff_size, int max_free) { _max_buf_size = buff_size; _max_free = max_free; this->SetDataPtr(this); _queue_num = 0; TAILQ_INIT(&_msg_queue); }; /** * @brief buff, , key * @param buff_size mapbuff, buff */ explicit MsgBufMap(int buff_size) { _max_buf_size = buff_size; TAILQ_INIT(&_msg_queue); }; /** * @brief buff */ ~MsgBufMap() { MtMsgBuf* ptr = NULL; MtMsgBuf* tmp = NULL; TAILQ_FOREACH_SAFE(ptr, &_msg_queue, _entry, tmp) { TAILQ_REMOVE(&_msg_queue, ptr, _entry); delete ptr; _queue_num--; } TAILQ_INIT(&_msg_queue); }; /** * @brief buff * @return msgbuf, NULL */ MtMsgBuf* GetMsgBuf(){ MtMsgBuf* ptr = NULL; if (!TAILQ_EMPTY(&_msg_queue)) { ptr = TAILQ_FIRST(&_msg_queue); TAILQ_REMOVE(&_msg_queue, ptr, _entry); _queue_num--; } else { ptr = new MtMsgBuf(_max_buf_size); } return ptr; }; /** * @brief buff * @param msgbuf */ void FreeMsgBuf(MtMsgBuf* ptr){ if (_queue_num >= _max_free) { delete ptr; } else { ptr->Reset(); TAILQ_INSERT_TAIL(&_msg_queue, ptr, _entry); _queue_num++; } }; /** * @brief hash, keyhash * @return hash */ virtual uint32_t HashValue(){ return _max_buf_size; }; /** * @brief cmp, ID, key * @return hash */ virtual int HashCmp(HashKey* rhs){ return this->_max_buf_size - (int)rhs->HashValue(); }; private: int _max_free; ///< int _max_buf_size; ///< buffsize int _queue_num; ///< MsgBufQueue _msg_queue; ///< }; /** * @brief buffer, buffer */ class MsgBuffPool { public: /** * @brief buff * @return */ static MsgBuffPool* Instance (void); /** * @brief */ static void Destroy(void); /** * @brief buff * @param max_free , */ void SetMaxFreeNum(int max_free) { _max_free = max_free; }; /** * @brief buff * @return msgbuf, NULL */ MtMsgBuf* GetMsgBuf(int max_size); /** * @brief buff * @param msgbuf */ void FreeMsgBuf(MtMsgBuf* msg_buf); /** * @brief buff */ ~MsgBuffPool(); private: /** * @brief buff */ explicit MsgBuffPool(int max_free = 300); static MsgBuffPool * _instance; ///< int _max_free; ///< HashList* _hash_map; ///< size hashmap }; } #endif ```
Royal Designer for Industry is a distinction established by the British Royal Society of Arts (RSA) in 1936, to encourage a high standard of industrial design and enhance the status of designers. It is awarded to people who have achieved "sustained excellence in aesthetic and efficient design for industry". Those who are British citizens take the letters RDI after their names, while those who are not become Honorary RDIs (HonRDI). Everyone who holds the distinction is a Member of The Faculty of Royal Designers for Industry (founded in 1938). Their work is diverse, ranging from fashion to engineering, theatre to product design, graphics to environmental design. New RDIs are elected annually and the Faculty continues to support initiatives to further excellence in design, including an annual Summer School for innovative young designers. Only 200 designers may hold the distinction RDI at any time and it is regarded as the highest honour to be obtained in the United Kingdom in a diverse range of design disciplines including the field of industrial design. In addition, the RSA may confer HonRDI titles up to a maximum of half the number of people who currently hold the distinction RDI. New RDIs are awarded Diplomas each year at the annual RDI Dinner. Every two years a new Master of the Faculty is elected by the past Masters, who include Dinah Casson, Mike Dempsey, Sir Kenneth Grange, Geoffrey Harcourt, Martin Hunt, Timothy O’Brien, Chris Wise, Malcolm Garrett and Tristram Carfrae. The current Master is Mark Major. Current members The list identifies current RDIs, the date of their award, and the category of design for which they were honoured. RDIs HonRDIs Former members Past RDIs Past Royal Designers for Industry Tony Abbott, Television & theatre design, 1972 Ken Adam, Film production design, 2009 Edward Ardizzone, Illustration, 1974 Hardy Amies, Dress design, 1964 Edward Abbott, Illustration, 1974 Jon Bannenberg, Motor yachts, 1978 Christian Barnard, Transport equipment, 1948 Edward Bawden, Graphics, 1949 Gerald Benney, Silversmithing, 1971 Misha Black, Exhibitions & interiors, 1957 John Box, Film production design, 1992 Bill Brandt, Photography, 1978 William Brown, Bridge design, 1977 Stefan Buzas, Exhibitions & interiors, 1961 Reco Capey, General design, 1937 Andy Cameron, Interactive design, 2011 Hugh Casson, Exhibitions, 1961 Achille Castiglioni, General design, 1986 Hulme Chadwick, Product design, 1974 Colin Chapman, Automotive design, 1979 Wells Coates, General design, 1944 Christopher Cockerell, Engineering design, 1987 Douglas Cockerell, Bookbinding, 1936 Susie Cooper, Pottery, 1940 Kay Cosserat, Textile design, 1986 Edward Gordon Craig, Stage design, 1937 Gordon Cullen, Illustration & townscape design, 1975 Robin Day, Furniture & exhibitions, 1959 Lucienne Day, Textiles, 1962 Richard Eckersley, Book design, 1999 Tom Eckersley, Posters, 1963 Alan Fletcher, Graphics & publicity design, 1972 Uffa Fox, Small boats, 1955 Barnett Freedman, Graphics, 1949 Roger Furse, Stage & film design, 1949 Abram Games, Posters, 1959 James Gardner, Exhibitions, 1947 J Laurent Giles, Yachts, 1951 Eric Gill, Typography & wood engraving, 1936 Robert Goodden, General design, 1947 Duncan Grant, Printed textiles, 1941 Eileen Gray, Furniture & interiors, 1972 Milner Gray, Packaging, 1937 E W Grieve, Shop window display, 1940 Jacqueline Groag, Textile design, 1964 Edmund Happold, Engineering design, 1983 Geoffrey de Havilland, Aircraft, 1944 Ashley Havinden, Graphics, 1947 Lionel Haworth, Engineering design, 1976 Ambrose Heal, Furniture, 1939 F H K Henrion, Packaging & graphics, 1959 Jocelyn Herbert, Theatre & cinema design, 1971 Robert Heritage, Furniture, 1963 George Him, Graphic design, 1977 James Hogan, Glass & stained glass, 1936 Paul Hogarth, Illustration, 1979 Charles Holden, Transport equipment, 1943 Jack Howe, Products and industrial equipment, 1961 Allen Hutt, Typographic & Newspaper design, 1970 James Irvine, Product design, 2004 Laurence Irving, date tbc Alec Issigonis, Motor cars, 1964 Ralph Koltai, Theatre design, 1984 Natasha Kroll, Shop display and television design, 1966 Lynton Lamb, Book design & illustration, 1974 Osbert Lancaster, Illustration, 1979 Margaret Leischner, Textiles, 1969 Richard Levin, Television design, 1971 Noel London, Engineering product design, 1973 William Lyons, Motor cars, 1964 Ethel Mairet, Woven textiles, 1937 (first woman) Eric de Maré, Photography, 1997 Enid Marx, Pattern design, 1944 J H Mason, 1936 James McNeill, Ships, 1950 David Mellor, Silver, cutlery & lighting, 1962 Percy Metcalfe, Medals & coinage, 1937 Francis Meynell, Typography, 1940 Bill Moggridge, Product design, 1988 Edward Molyneux, Dress, 1950 Stanley Morison, Type design & typography, 1960 Alastair Morton, textiles, 1960 Alex Moulton, Engineering Products, 1968 Jean Muir, Dress design, 1972 H G Murphy, Goldsmithing, 1936 Keith Murray, Glass, pottery & silver, 1936 Charles Nicholson, Yachts, 1944 Julia Trevelyan Oman, Theatre & film design, 1977 Brian O'Rorke, Interiors, 1939 Eric Carlton Ottaway, Road passenger vehicles, 1949 Derek Prime, Engineering design, 1982 Ian Proctor, Boats & small craft, 1969 Tom Purvis, Commercial art, 1936 Ernest Race, Furniture, 1953 A B Read, Light fittings, 1940 A A Rubbra, Engineering design, 1977 Gordon Russell, Furniture, 1940 R D Russell, Furniture, 1944 Hans Schleger, Exhibition display & packaging, 1959 Hans Schmoller, Typography, 1976 Douglas Scott, Industrial designer, 1974 Ronald Searle, Illustration, 1991 George Sheringham, Interior decoration & textiles, 1936 Peter Simpson, Woven Textile design, 1974 Percy Delf Smith, Lettering, 1940 Antony Armstrong-Jones, 1st Earl of Snowdon, Photography, 1986 Basil Spence, Exhibitions & interiors, 1960 Herbert Spencer, Typography, 1965 Harold Stabler, Pottery, Enamelling & silversmithing, 1936 Richard Stevens, Product design, 1973 Reynolds Stone, Lettering, 1956 Marianne Straub, Woven textiles, 1972 Derek Sugden, Engineering design, 2009 Fred Taylor, Graphics, 1936 Philip Thompson, Graphics & illustration, 1997 Walter Tracy, Type design, 1973 Howard Upjohn, Engineering product design, 1973 C F A Voysey, Interior decoration, furniture & fabrics, 1936 Barnes Wallis, Aircraft, 1943 Allan Walton, Printed textiles, 1940 Neville Ward, Interior design & ship interiors, 1971 John Waterer, Leather Goods, 1953 Hans Wegner, Furniture, 1969 Robert Welch, Product design & silversmithing, 1965 Frank Whittle, Engineering design, 1985 Berthold Wolpe, Typefaces & lettering, 1959 Anna Zinkeisen, Graphics & mural painting, 1940 Past Honorary RDIs Past Honorary Royal Designers for Industry Edward McKnight Kauffer, Commercial art, 1936 Alvar Aalto, General design, 1947 Franco Albini, Interiors, exhibitions & furniture, 1971 Gordon Andrews, General design, 1987 Saul Bass, F]], General design, 1987 Saul Bass, Film & TV graphics, 1964 Herbert Bayer, Graphic design, 1984 Richard Buckminster Fuller, Architecture & design, 1980 Nanna Ditzel, Product design, 1996 Charles Eames, Furniture, exhibitions & interiors, 1960 Jean-Michel Folon, Illustration, 1981 André François, Graphics 1974 Shigeo Fukada, Graphic design, 1986 Alexander Girard, Interiors, exhibitions & furnishing textiles, 1965 Walter Gropius, General design, 1947 Edward Hald, Glass, 1939 Walter Herdeg, Graphic design, 1976 Christian Joachim, Pottery, 1939 CL 'Kelly' Johnson, Aircraft design, 1984 Finn Juhl, Furniture & interiors, 1978 Dora Jung, Woven textiles, 1979 Kaare Klint, Furniture, 1949 Takashi Kono, Graphics, 1983 Raymond Loewy, General design, 1939 Vico Magistretti, General design, 1992 Pierre Mendell, Graphic design, 1999 Bruno Mathsson, Furniture, 1978 Herbert Matter, Graphics & photography, 1982 Norman McLaren, Film Animation, 1986 Børge Mogensen, Furniture, 1972 Josef Muller-Brockmann, Graphic design, 1988 George Nelson, General design, 1973 Marcello Nizzoli, Typewriters & calculating machines, 1961 Antti Nurmesniemi, General design, 1986 Sigurd Persson, General design, 1987 Battista Farina, Motor cars, 1954 Paul Rand, Graphics, 1973 Steen Eiler Rasmussen, General design, 1947 Astrid Sampe, Textile design, 1949 WHJB Sandberg, Exhibition & museum display, typography, 1971 Timo Sarpaneva, Pottery & textiles, 1963 Carlo Scarpa, Exhibitions, interiors & museum design, 1969 Saul Steinberg, Illustration, 1980 Olin Stephens, Yacht design, 1975 Josef Svoboda, Theatre design, 1989 Ilmari Tapiovaara, Furniture, 1969 Walter Dorwin Teague, General design, 1951 Henryk Tomaszewski, Graphics, 1975 Roland Topor, Illustration, 1988 Jan Tschichold, Typography & book design, 1965 Dame Vivienne Westwood DBE, Fashion design, 2001 Tapio Wirkkala, Glass, wood & silver, 1964 Henry Wolf, Graphic design, 1990 Piet Zwart, Typography, 1966 References External links University of Brighton Design Archives 1936 establishments in the United Kingdom Awards established in 1936 Royal Society of Arts Design awards
```go // // Use of this source code is governed by a BSD-style license // that can be found in the LICENSE file in the root of the source // tree. package layers import ( "encoding/binary" "fmt" "github.com/google/gopacket" ) // EthernetCTPFunction is the function code used by the EthernetCTP protocol to identify each // EthernetCTP layer. type EthernetCTPFunction uint16 // EthernetCTPFunction values. const ( EthernetCTPFunctionReply EthernetCTPFunction = 1 EthernetCTPFunctionForwardData EthernetCTPFunction = 2 ) // EthernetCTP implements the EthernetCTP protocol, see path_to_url // We split EthernetCTP up into the top-level EthernetCTP layer, followed by zero or more // EthernetCTPForwardData layers, followed by a final EthernetCTPReply layer. type EthernetCTP struct { BaseLayer SkipCount uint16 } // LayerType returns gopacket.LayerTypeEthernetCTP. func (c *EthernetCTP) LayerType() gopacket.LayerType { return LayerTypeEthernetCTP } // EthernetCTPForwardData is the ForwardData layer inside EthernetCTP. See EthernetCTP's docs for more // details. type EthernetCTPForwardData struct { BaseLayer Function EthernetCTPFunction ForwardAddress []byte } // LayerType returns gopacket.LayerTypeEthernetCTPForwardData. func (c *EthernetCTPForwardData) LayerType() gopacket.LayerType { return LayerTypeEthernetCTPForwardData } // ForwardEndpoint returns the EthernetCTPForwardData ForwardAddress as an endpoint. func (c *EthernetCTPForwardData) ForwardEndpoint() gopacket.Endpoint { return gopacket.NewEndpoint(EndpointMAC, c.ForwardAddress) } // EthernetCTPReply is the Reply layer inside EthernetCTP. See EthernetCTP's docs for more details. type EthernetCTPReply struct { BaseLayer Function EthernetCTPFunction ReceiptNumber uint16 Data []byte } // LayerType returns gopacket.LayerTypeEthernetCTPReply. func (c *EthernetCTPReply) LayerType() gopacket.LayerType { return LayerTypeEthernetCTPReply } // Payload returns the EthernetCTP reply's Data bytes. func (c *EthernetCTPReply) Payload() []byte { return c.Data } func decodeEthernetCTP(data []byte, p gopacket.PacketBuilder) error { c := &EthernetCTP{ SkipCount: binary.LittleEndian.Uint16(data[:2]), BaseLayer: BaseLayer{data[:2], data[2:]}, } if c.SkipCount%2 != 0 { return fmt.Errorf("EthernetCTP skip count is odd: %d", c.SkipCount) } p.AddLayer(c) return p.NextDecoder(gopacket.DecodeFunc(decodeEthernetCTPFromFunctionType)) } // decodeEthernetCTPFromFunctionType reads in the first 2 bytes to determine the EthernetCTP // layer type to decode next, then decodes based on that. func decodeEthernetCTPFromFunctionType(data []byte, p gopacket.PacketBuilder) error { function := EthernetCTPFunction(binary.LittleEndian.Uint16(data[:2])) switch function { case EthernetCTPFunctionReply: reply := &EthernetCTPReply{ Function: function, ReceiptNumber: binary.LittleEndian.Uint16(data[2:4]), Data: data[4:], BaseLayer: BaseLayer{data, nil}, } p.AddLayer(reply) p.SetApplicationLayer(reply) return nil case EthernetCTPFunctionForwardData: forward := &EthernetCTPForwardData{ Function: function, ForwardAddress: data[2:8], BaseLayer: BaseLayer{data[:8], data[8:]}, } p.AddLayer(forward) return p.NextDecoder(gopacket.DecodeFunc(decodeEthernetCTPFromFunctionType)) } return fmt.Errorf("Unknown EthernetCTP function type %v", function) } ```
```go // // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package github import ( "context" "fmt" ) // CodespacesService handles communication with the Codespaces related // methods of the GitHub API. // // GitHub API docs: path_to_url type CodespacesService service // Codespace represents a codespace. // // GitHub API docs: path_to_url type Codespace struct { ID *int64 `json:"id,omitempty"` Name *string `json:"name,omitempty"` DisplayName *string `json:"display_name,omitempty"` EnvironmentID *string `json:"environment_id,omitempty"` Owner *User `json:"owner,omitempty"` BillableOwner *User `json:"billable_owner,omitempty"` Repository *Repository `json:"repository,omitempty"` Machine *CodespacesMachine `json:"machine,omitempty"` DevcontainerPath *string `json:"devcontainer_path,omitempty"` Prebuild *bool `json:"prebuild,omitempty"` CreatedAt *Timestamp `json:"created_at,omitempty"` UpdatedAt *Timestamp `json:"updated_at,omitempty"` LastUsedAt *Timestamp `json:"last_used_at,omitempty"` State *string `json:"state,omitempty"` URL *string `json:"url,omitempty"` GitStatus *CodespacesGitStatus `json:"git_status,omitempty"` Location *string `json:"location,omitempty"` IdleTimeoutMinutes *int `json:"idle_timeout_minutes,omitempty"` WebURL *string `json:"web_url,omitempty"` MachinesURL *string `json:"machines_url,omitempty"` StartURL *string `json:"start_url,omitempty"` StopURL *string `json:"stop_url,omitempty"` PullsURL *string `json:"pulls_url,omitempty"` RecentFolders []string `json:"recent_folders,omitempty"` RuntimeConstraints *CodespacesRuntimeConstraints `json:"runtime_constraints,omitempty"` PendingOperation *bool `json:"pending_operation,omitempty"` PendingOperationDisabledReason *string `json:"pending_operation_disabled_reason,omitempty"` IdleTimeoutNotice *string `json:"idle_timeout_notice,omitempty"` RetentionPeriodMinutes *int `json:"retention_period_minutes,omitempty"` RetentionExpiresAt *Timestamp `json:"retention_expires_at,omitempty"` LastKnownStopNotice *string `json:"last_known_stop_notice,omitempty"` } // CodespacesGitStatus represents the git status of a codespace. type CodespacesGitStatus struct { Ahead *int `json:"ahead,omitempty"` Behind *int `json:"behind,omitempty"` HasUnpushedChanges *bool `json:"has_unpushed_changes,omitempty"` HasUncommittedChanges *bool `json:"has_uncommitted_changes,omitempty"` Ref *string `json:"ref,omitempty"` } // CodespacesMachine represents the machine type of a codespace. type CodespacesMachine struct { Name *string `json:"name,omitempty"` DisplayName *string `json:"display_name,omitempty"` OperatingSystem *string `json:"operating_system,omitempty"` StorageInBytes *int64 `json:"storage_in_bytes,omitempty"` MemoryInBytes *int64 `json:"memory_in_bytes,omitempty"` CPUs *int `json:"cpus,omitempty"` PrebuildAvailability *string `json:"prebuild_availability,omitempty"` } // CodespacesRuntimeConstraints represents the runtime constraints of a codespace. type CodespacesRuntimeConstraints struct { AllowedPortPrivacySettings []string `json:"allowed_port_privacy_settings,omitempty"` } // ListCodespaces represents the response from the list codespaces endpoints. type ListCodespaces struct { TotalCount *int `json:"total_count,omitempty"` Codespaces []*Codespace `json:"codespaces"` } // ListInRepo lists codespaces for a user in a repository. // // Lists the codespaces associated with a specified repository and the authenticated user. // You must authenticate using an access token with the codespace scope to use this endpoint. // GitHub Apps must have read access to the codespaces repository permission to use this endpoint. // // GitHub API docs: path_to_url#list-codespaces-in-a-repository-for-the-authenticated-user // //meta:operation GET /repos/{owner}/{repo}/codespaces func (s *CodespacesService) ListInRepo(ctx context.Context, owner, repo string, opts *ListOptions) (*ListCodespaces, *Response, error) { u := fmt.Sprintf("repos/%v/%v/codespaces", owner, repo) u, err := addOptions(u, opts) if err != nil { return nil, nil, err } req, err := s.client.NewRequest("GET", u, nil) if err != nil { return nil, nil, err } var codespaces *ListCodespaces resp, err := s.client.Do(ctx, req, &codespaces) if err != nil { return nil, resp, err } return codespaces, resp, nil } // ListCodespacesOptions represents the options for listing codespaces for a user. type ListCodespacesOptions struct { ListOptions RepositoryID int64 `url:"repository_id,omitempty"` } // List lists codespaces for an authenticated user. // // Lists the authenticated user's codespaces. // You must authenticate using an access token with the codespace scope to use this endpoint. // GitHub Apps must have read access to the codespaces repository permission to use this endpoint. // // GitHub API docs: path_to_url#list-codespaces-for-the-authenticated-user // //meta:operation GET /user/codespaces func (s *CodespacesService) List(ctx context.Context, opts *ListCodespacesOptions) (*ListCodespaces, *Response, error) { u := "user/codespaces" u, err := addOptions(u, opts) if err != nil { return nil, nil, err } req, err := s.client.NewRequest("GET", u, nil) if err != nil { return nil, nil, err } var codespaces *ListCodespaces resp, err := s.client.Do(ctx, req, &codespaces) if err != nil { return nil, resp, err } return codespaces, resp, nil } // CreateCodespaceOptions represents options for the creation of a codespace in a repository. type CreateCodespaceOptions struct { Ref *string `json:"ref,omitempty"` // Geo represents the geographic area for this codespace. // If not specified, the value is assigned by IP. // This property replaces location, which is being deprecated. // Geo can be one of: `EuropeWest`, `SoutheastAsia`, `UsEast`, `UsWest`. Geo *string `json:"geo,omitempty"` ClientIP *string `json:"client_ip,omitempty"` Machine *string `json:"machine,omitempty"` DevcontainerPath *string `json:"devcontainer_path,omitempty"` MultiRepoPermissionsOptOut *bool `json:"multi_repo_permissions_opt_out,omitempty"` WorkingDirectory *string `json:"working_directory,omitempty"` IdleTimeoutMinutes *int `json:"idle_timeout_minutes,omitempty"` DisplayName *string `json:"display_name,omitempty"` // RetentionPeriodMinutes represents the duration in minutes after codespace has gone idle in which it will be deleted. // Must be integer minutes between 0 and 43200 (30 days). RetentionPeriodMinutes *int `json:"retention_period_minutes,omitempty"` } // CreateInRepo creates a codespace in a repository. // // Creates a codespace owned by the authenticated user in the specified repository. // You must authenticate using an access token with the codespace scope to use this endpoint. // GitHub Apps must have write access to the codespaces repository permission to use this endpoint. // // GitHub API docs: path_to_url#create-a-codespace-in-a-repository // //meta:operation POST /repos/{owner}/{repo}/codespaces func (s *CodespacesService) CreateInRepo(ctx context.Context, owner, repo string, request *CreateCodespaceOptions) (*Codespace, *Response, error) { u := fmt.Sprintf("repos/%v/%v/codespaces", owner, repo) req, err := s.client.NewRequest("POST", u, request) if err != nil { return nil, nil, err } var codespace *Codespace resp, err := s.client.Do(ctx, req, &codespace) if err != nil { return nil, resp, err } return codespace, resp, nil } // Start starts a codespace. // // You must authenticate using an access token with the codespace scope to use this endpoint. // GitHub Apps must have write access to the codespaces_lifecycle_admin repository permission to use this endpoint. // // GitHub API docs: path_to_url#start-a-codespace-for-the-authenticated-user // //meta:operation POST /user/codespaces/{codespace_name}/start func (s *CodespacesService) Start(ctx context.Context, codespaceName string) (*Codespace, *Response, error) { u := fmt.Sprintf("user/codespaces/%v/start", codespaceName) req, err := s.client.NewRequest("POST", u, nil) if err != nil { return nil, nil, err } var codespace *Codespace resp, err := s.client.Do(ctx, req, &codespace) if err != nil { return nil, resp, err } return codespace, resp, nil } // Stop stops a codespace. // // You must authenticate using an access token with the codespace scope to use this endpoint. // GitHub Apps must have write access to the codespaces_lifecycle_admin repository permission to use this endpoint. // // GitHub API docs: path_to_url#stop-a-codespace-for-the-authenticated-user // //meta:operation POST /user/codespaces/{codespace_name}/stop func (s *CodespacesService) Stop(ctx context.Context, codespaceName string) (*Codespace, *Response, error) { u := fmt.Sprintf("user/codespaces/%v/stop", codespaceName) req, err := s.client.NewRequest("POST", u, nil) if err != nil { return nil, nil, err } var codespace *Codespace resp, err := s.client.Do(ctx, req, &codespace) if err != nil { return nil, resp, err } return codespace, resp, nil } // Delete deletes a codespace. // // You must authenticate using an access token with the codespace scope to use this endpoint. // GitHub Apps must have write access to the codespaces repository permission to use this endpoint. // // GitHub API docs: path_to_url#delete-a-codespace-for-the-authenticated-user // //meta:operation DELETE /user/codespaces/{codespace_name} func (s *CodespacesService) Delete(ctx context.Context, codespaceName string) (*Response, error) { u := fmt.Sprintf("user/codespaces/%v", codespaceName) req, err := s.client.NewRequest("DELETE", u, nil) if err != nil { return nil, err } return s.client.Do(ctx, req, nil) } ```
```objective-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 */ /** * @file SyncMsg.h * @info msgbase, blob * @time 20130515 **/ #ifndef __NEW_SYNC_MSG_EX_H__ #define __NEW_SYNC_MSG_EX_H__ #include <sys/types.h> #include <sys/time.h> #include <sys/socket.h> #include <netinet/in.h> #include <string> #include "tcommu.h" #include "serverbase.h" #include "mt_incl.h" using std::string; using namespace NS_MICRO_THREAD; using namespace tbase; using namespace tbase::tcommu; namespace SPP_SYNCFRAME { /** * @brief */ class CSyncMsg : public IMtMsg { public: /** * */ CSyncMsg() { _srvbase = NULL; _commu = NULL; _flow = 0; _start_time = mt_time_ms(); memset(&_from_addr, 0, sizeof(_from_addr)); memset(&_local_addr, 0, sizeof(_local_addr)); memset(&_time_rcv, 0, sizeof(_time_rcv)); }; virtual ~CSyncMsg(){}; /** * * @return 0, -, * , -proxy, */ virtual int HandleProcess(){ return -1; }; /** * CServerBaseCMsgBase */ void SetServerBase(CServerBase* srvbase) { _srvbase = srvbase; }; /** * CServerBase */ CServerBase* GetServerBase() { return _srvbase; }; /** * CTCommuCMsgBase * CTCommu */ void SetTCommu(CTCommu* commu) { _commu = commu; }; /** * CTCommu */ CTCommu* GetTCommu() { return _commu; }; /** * flowCMsgBase */ void SetFlow(unsigned flow) { _flow = flow; }; /** * flow */ unsigned GetFlow() { return _flow; }; /** * * * @param blob */ int SendToClient(blob_type &blob) { if (NULL == _commu) { return -999; } int ret = _commu->sendto( _flow, &blob, _srvbase); return ret; }; /** * * * ActionActionIAction::HandleError(EMsgTimeout) * * @param timeout ms0, 0 * */ void SetMsgTimeout(int timeout) { _msg_timeout = timeout; }; /** * * * @return * */ int GetMsgTimeout() { return _msg_timeout; }; /** * * * @return : ms */ int GetMsgCost() { return (int)(mt_time_ms() - _start_time); }; /** * * * CMsgBase * * @return true: false: * */ bool CheckMsgTimeout() { if (_msg_timeout <= 0) {// return false; } int cost = GetMsgCost(); if (cost < _msg_timeout) {// return false; } return true; }; /** * * * @param addr */ void SetLocalAddr(const struct sockaddr_in& local_addr) { memcpy(&_local_addr, &local_addr, sizeof(_local_addr)); }; void GetLocalAddr(struct sockaddr_in& local_addr) { memcpy(&local_addr, &_local_addr, sizeof(_local_addr)); }; /** * * * @param addr */ void SetFromAddr(const struct sockaddr_in& from_addr) { memcpy(&_from_addr, &from_addr, sizeof(_from_addr)); }; void GetFromAddr(struct sockaddr_in& from_addr) { memcpy(&from_addr, &_from_addr, sizeof(_from_addr)); }; /** * * * @param time_rcv */ void SetRcvTimestamp(const struct timeval& time_rcv) { memcpy(&_time_rcv, &time_rcv, sizeof(time_rcv)); }; void GetRcvTimestamp(struct timeval& time_rcv) { memcpy(&time_rcv, &_time_rcv, sizeof(time_rcv)); }; /** * , * * @param pkg * @param len */ void SetReqPkg(const void* pkg, int pkg_len) { _msg_buff.assign((char*)pkg, pkg_len); }; const string& GetReqPkg() { return _msg_buff; }; protected: CServerBase* _srvbase; // base CTCommu* _commu; // unsigned _flow; // ID int _msg_timeout; // unsigned long long _start_time; // struct sockaddr_in _from_addr; // IP struct sockaddr_in _local_addr; // IP struct timeval _time_rcv; // string _msg_buff; // , }; } #endif ```
```go package main import ( "fmt" "os" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/costexplorer" ) func main() { //Must be in YYYY-MM-DD Format start := "2019-06-01" end := "2019-07-01" granularity := "MONTHLY" metrics := []string{ "BlendedCost", "UnblendedCost", "UsageQuantity", } // Initialize a session in us-east-1 that the SDK will use to load credentials sess, err := session.NewSession(&aws.Config{ Region: aws.String("us-east-1")}, ) // Create Cost Explorer Service Client svc := costexplorer.New(sess) result, err := svc.GetCostAndUsage(&costexplorer.GetCostAndUsageInput{ TimePeriod: &costexplorer.DateInterval{ Start: aws.String(start), End: aws.String(end), }, Granularity: aws.String(granularity), GroupBy: []*costexplorer.GroupDefinition{ &costexplorer.GroupDefinition{ Type: aws.String("DIMENSION"), Key: aws.String("SERVICE"), }, }, Metrics: aws.StringSlice(metrics), }) if err != nil { exitErrorf("Unable to generate report, %v", err) } fmt.Println("Cost Report:", result.ResultsByTime) } func exitErrorf(msg string, args ...interface{}) { fmt.Fprintf(os.Stderr, msg+"\n", args...) os.Exit(1) } ```
Richard Rothwell (20 November 1800 – 13 September 1868) was a nineteenth-century Irish portrait and genre painter. Biography Richard Rothwell was born 20 November 1800 in Dublin. His father has generally been stated to be James Rothwell of Lisdaly, near Cloghen, King's Co. (Offaly), though primary source evidence suggests that he was the son of William Rothwell, gentleman, who appears in the 1820s as a publican of Ferbane, King’s Co., acquiring land at Ballicknahee, King’s Co. His mother was Elizabeth Rothwell (née Holmes). He had at least three siblings (a brother and two sisters) and possibly as many as six [3]. He trained to become a painter at the Dublin Society's school from 1814 until 1820 and won a silver medal for his work. At the age of 24, he was made a member of the newly established Royal Hibernian Academy and exhibited portraits there from 1826 to 1829. He subsequently moved to London and worked as a studio assistant to Thomas Lawrence,. When Lawrence died in 1830, Rothwell completed many of his unfinished works and was poised to become the next foremost portrait painter in Britain and Ireland. According to Leoneé Ormond's biographical article in the Grove Dictionary of Art, Rothwell "was at the height of his powers from 1829 to 1831"; he "was much influenced by Lawrence, but he lacked the incisiveness and flair of his master". From 1831 to 1834, Rothwell toured Italy to study Italian art so that he could paint history paintings. When he returned to London, his popularity had evaporated. Rothwell lived and exhibited works in Ireland, the United States, London, and Italy, but he never again achieved the same level of popularity he had reached in the late 1820s. In 1842 Rothwell married Rosa Marshall; the couple had several children. In 1868, Rothwell contracted a fever while working in Rome and died. Joseph Severn, who painted a portrait of the Romantic poet John Keats, arranged for Rothwell's funeral and tomb in the Protestant Cemetery, Rome. Work According to Fintan Cullen's biographical entry in the Oxford Dictionary of National Biography, Rothwell's "portraits are highly accomplished" and "fine examples" include those of novelist Gerald Griffin and Mary Shelley. In the 1830s, he started painting genre pictures, such as The Poor Mendicants (1837). Rothwell usually painted Italian-inspired pieces, such as his semi-nude study Calisto (c. 1850s), a work he considered his masterpiece. He was furious when the painting was poorly hung at the 1862 International Exhibition in London and published a pamphlet on the topic. Examples of his work Notes 3. Devine, Ruth. "Rothwell, Richard". The Dictionary of Irish Biography. Bibliography Cullen, Fintan. "Richard Rothwell". Oxford Dictionary of National Biography. Retrieved on 19 April 2008. Ormond, Lenoeé. "Richard Rothwell". Grove Dictionary of Art. Retrieved on 24 April 2008. Devine, Ruth. "Rothwell, Richard". The Dictionary of Irish Biography. revised 2022. External links An engraving by A. Duncan of in The Juvenile Forget Me Not, 1833 together with a poetical illustration 'The Rose of Eden-Dale and Her Hothouse Flowers' by Letitia Elizabeth Landon. 1800 births 1868 deaths 19th-century Irish painters Irish male painters Irish genre painters People from Athlone 19th-century Irish male artists Artists from County Westmeath
```protocol buffer syntax = "proto2"; option go_package = "remote_api"; package remote_api; message Request { required string service_name = 2; required string method = 3; required bytes request = 4; optional string request_id = 5; } message ApplicationError { required int32 code = 1; required string detail = 2; } message RpcError { enum ErrorCode { UNKNOWN = 0; CALL_NOT_FOUND = 1; PARSE_ERROR = 2; SECURITY_VIOLATION = 3; OVER_QUOTA = 4; REQUEST_TOO_LARGE = 5; CAPABILITY_DISABLED = 6; FEATURE_DISABLED = 7; BAD_REQUEST = 8; RESPONSE_TOO_LARGE = 9; CANCELLED = 10; REPLAY_ERROR = 11; DEADLINE_EXCEEDED = 12; } required int32 code = 1; optional string detail = 2; } message Response { optional bytes response = 1; optional bytes exception = 2; optional ApplicationError application_error = 3; optional bytes java_exception = 4; optional RpcError rpc_error = 5; } ```
Kallangur ( ) is a suburb in the City of Moreton Bay, Queensland, Australia. In the , Kallangur had a population of 20,405 people. Geography The North Coast railway line forms the western boundary of the suburb, while the Bruce Highway forms the eastern boundary. The main thoroughfare in Kallangur is route 71, Anzac Avenue (). The Redcliffe Peninsula railway line passes through the suburb, which is served by the Kallangur railway station (). The proposed Bruce Highway Western Alternative will have its southern entry point in Kallangur. History The area once belonged to Mrs. Griffin of Whiteside west of Petrie, and was acquired by the son of a Scottish migrant by the name of Thomas Petrie in 1855. The name Kallangur originates from the Indigenous Australian word kalangoor, meaning a goodly or satisfactory place. Kallangur is situated in the Yugarabul traditional Indigenous Australian country of the Brisbane and surrounding regions, however, the word kalangoor is from the Kabi dialect, from the traditional Indigenous Australian Gubbi Gubbi (Kabi) country of the Sunshine Coast and surrounding regions. Gympie Road (now Old Gympie Road) passed through Kallangur from Brisbane to Gympie. It was a route travelled by Cobb & Co coaches. Kallangur grew in the early twentieth century as it was on the main road route to the Redcliffe peninsula before the construction of the Hornibrook Bridge in the 1930s. Kallangur State School opened on 9 June 1930. More recent development has been in response to the general housing demand in the northern growth corridor. Dakabin State School opened on 28 January 1992. St Peter's Anglican church was closed on 7 March 1993 under the authority of Assistant Bishop Wood. An ANZAC memorial gate was erected along with a bronze statue on the corner of Anzac Avenue and Goodfellows Road. The new Memorial Gardens was unveiled in front of the North's Leagues and Services Club in 2005 by the former Minister for Veterans' Affairs De-Anne Kelly. In the , Kallangur recorded a population of 18,982 people, 51.1% female and 48.9% male. The median age of the Kallangur population was 33 years, 4 years below the national median of 37. 77.9% of people living in Kallangur were born in Australia. The other top responses for country of birth were New Zealand 5.9%, England 4%, Philippines 0.7%, South Africa 0.7%, Scotland 0.5%. 90.9% of people spoke only English at home; the next most common languages were 0.6% Samoan, 0.4% Hindi, 0.4% Spanish, 0.3% Tagalog, 0.3% German. Kallangur railway station was completed in 2016. In the , Kallangur had a population of 20,405 people. Pinnacle Academic College opened in July 2020. Heritage listings Kallangur has a number of heritage-listed sites, including: Anzac Avenue (the road itself) 1347 Anzac Avenue (): Strathpine Honour Board Education Kallangur State School is a government primary (Prep-6) school for boys and girls at 139 School Road (). In 2018, the school had an enrolment of 810 students with 55 teachers (50 full-time equivalent) and 39 non-teaching staff (27 full-time equivalent). It includes a special education program. Despite its name, Dakabin State School is a government primary (Prep-6) school for boys and girls at Sheaves Road in Kallangur (). In 2018, the school had an enrolment of 600 students with 45 teachers (39 full-time equivalent) and 34 non-teaching staff (21 full-time equivalent). It includes a special education program. It also includes the POWER Positive Learning Centre, a specific-purpose primary (3-7) program for children whose behaviours are incompatible with mainstream schooling; the aim of the centre is to ultimately re-integrate the child back into mainstream schooling. Charlotte Mason College is a private primary and secondary (Prep-10) school for boys and girls at 30 Narangba Road (). In 2018, the school had an enrolment of 214 students with 9 teachers (7 full-time equivalent) and 7 non-teaching staff. The school also operates a distance education program. Pinnacle Academic College is a private primary school (Prep-6) for boys and girls at the same site as Charlotte Mason College but at the other end of the site. It offers individualised self-directed education. There is no government secondary school in Kallangur. The nearest government secondary schools are Dakabin State High School in neighbouring Dakabin to the north and Murrumba State Secondary College in neighbouring Murrumba Downs to the south. Amenities The Kallangur branch of the Queensland Country Women's Association meets at 1431 Anzac Avenue. References External links Suburbs of the City of Moreton Bay
```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 pkg import ( "bytes" "os" "path" "path/filepath" "strings" "text/template" "github.com/pkg/errors" log "github.com/sirupsen/logrus" versionutil "k8s.io/apimachinery/pkg/util/version" "sigs.k8s.io/yaml" ) func processWorkflows(settings *Settings, cfg *jobGroup, oldestVer, minVer *versionutil.Version) error { log.Infof("processing workflows for jobGroup %q", cfg.Name) var err error var tBytes []byte var templateWorkflow, templateFileName *template.Template tPath := cfg.KinderWorkflowSpec.Template // in case the template path is not defined, assume this job group has a single task file if len(cfg.KinderWorkflowSpec.Template) == 0 { goto copyAdditionalFiles } // prepare the workflow template if !path.IsAbs(tPath) { tPath = filepath.Join(filepath.Dir(settings.PathConfig), tPath) } tBytes, err = os.ReadFile(tPath) if err != nil { return err } templateWorkflow, err = template.New("workflow-template").Funcs(template.FuncMap{ "dashVer": dashVer, "ciLabelFor": ciLabelFor, }).Parse(string(tBytes)) if err != nil { return err } // prepare output file name template templateFileName, err = template.New("file-name").Parse(cfg.KinderWorkflowSpec.TargetFile) if err != nil { return err } for i, job := range cfg.Jobs { log.Infof("processing Job index %d, %#v", i, job) if skipVersion(oldestVer, minVer, job.KubernetesVersion) { log.Infof("skipping Job index %d, %#v", i, job) continue } // prepare variables for template replacement vars := templateVars{ KubernetesVersion: job.KubernetesVersion, KubeadmVersion: job.KubeadmVersion, KubeletVersion: job.KubeletVersion, InitVersion: job.InitVersion, UpgradeVersion: job.UpgradeVersion, TargetFile: cfg.TestInfraJobSpec.TargetFile, } // prepare skip versions if len(job.SkipVersions) != 0 { vars.SkipVersions, err = parseSkipVersions(settings.KubernetesVersion, job.SkipVersions) if err != nil { return errors.Wrapf(err, "malformed SkipVersions %v", job.SkipVersions) } } // execute templates buf := bytes.Buffer{} if err := templateWorkflow.Execute(&buf, vars); err != nil { return err } str := buf.String() str = strings.ReplaceAll(str, "\\{", "{") // unescape existing template vars str = strings.ReplaceAll(str, "\\}", "}") buf.Reset() if err := templateFileName.Execute(&buf, vars); err != nil { return err } // add header and write output file str = autogeneratedHeader + "\n" + str // unmarshal the YAML to validate it if err = yaml.Unmarshal([]byte(str), struct{}{}); err != nil { return errors.Wrapf(err, "\n%s\n", str) } outPath := filepath.Join(settings.PathWorkflows, buf.String()) log.Infof("writing %q", outPath) if err := os.WriteFile(outPath, []byte(str), 0664); err != nil { return err } } copyAdditionalFiles: for _, taskFile := range cfg.KinderWorkflowSpec.AdditionalFiles { outPath := filepath.Join(settings.PathWorkflows, path.Base(taskFile)) inPath := taskFile if !path.IsAbs(inPath) { inPath = filepath.Join(filepath.Dir(settings.PathConfig), taskFile) } log.Infof("copying %q to %q", inPath, settings.PathWorkflows) taskBytes, err := os.ReadFile(inPath) if err != nil { return err } // add header and write str := autogeneratedHeader + "\n" + string(taskBytes) if err := os.WriteFile(outPath, []byte(str), 0644); err != nil { return err } } return nil } ```
The Electric Hour is an American old-time radio program of popular music. It was broadcast on CBS from September 20, 1944, to June 9, 1946. Format Nelson Eddy starred in The Electric Hour, and each episode featured a guest star who sang duets with him. Genres featured included music from films, folk songs, and "ballads from many lands". Gail Lulay, Eddy's biographer, wrote in Nelson Eddy, America's Favorite Baritone: An Authorized Biographical Tribute, "This was Nelson's dream show because it had a musical format." Lulay added that the program contained "some of Nelson's best music". Site The program initially originated from CBS Columbia Square in Hollywood, California. Effective with the September 16, 1945, installment, it moved to the Walt Disney Studios in Burbank, California. A report in the trade publication Billboard said that the change was caused by "acute studio space shortage at CBS". Personnel Eddy was the only regular featured performer on The Electric Hour. Guests included Jeanette MacDonald, who performed with Eddy in films. Instrumental music was provided by Robert Armbruster's orchestra, and Armbruster's chorus provided vocal support. Frank Graham was the announcer, and Charles Herbert was the producer. Sponsor The program's title came from its sponsor, a group of electric utilities across the United States. The organization had the slogan "local electric companies — all producing power for America under American business management." The number of participating utilities was 167 in 1945. Summer versions In 1945, 1946, and 1947, the same sponsors presented The Electric Hour Summer Series as replacements for regular programs. Dates and featured artists, which varied from year to year, are listed below: July 8, 1945 - September 9, 1945 — Francia White and Felix Knight June 9, 1946 - September 22, 1946 — Anne Jamison, Bob Shanley, and the Sportsmen Quartet July 13, 1947 - August 31, 1947 — Woody Herman, Peggy Lee, and Dave Barbour's orchestra References External links Logs Log of episodes of The Electric Hour from Jerry Haendiges Vintage Radio Logs (scroll down below The Old Gold Show. Log of episodes of The Electric Hour from Old Time Radio Researchers Group Log of episodes of The Electric Hour from radioGOLDINdex 1944 radio programme debuts 1946 radio programme endings 1940s American radio programs CBS Radio programs American music radio programs
Camassia scilloides is a perennial herb known commonly as Atlantic camas, wild hyacinth, and eastern camas. It is native to the eastern half of North America, including Ontario and the eastern United States. Description The species produces inflorescences up to half a meter tall from a bulb wide. It has a few leaves, each up to long. The flowers have light blue or whitish tepals and yellow anthers. The green or brown capsule is up to a centimeter long and divided into three parts. Uses Native American groups used the bulbs for food, eating them raw, baked, roasted, boiled, or dried. They can be used in place of potatoes, but could possibly be confused for poisonous deathcamas. Taxonomy The superseded name Camassia esculenta (Ker Gawl.) B.L.Rob., (nom. illeg.) should not be confused with Camassia esculenta (Nutt.) Lindl., a superseded name for Camassia quamash subsp. quamash. References External links Camassia scilloides. USDA PLANTS Jalava, J. V. 2013. Recovery Strategy for the Wild Hyacinth (Camassia scilloides) in Ontario. Ontario Recovery Strategy Series. Ontario Ministry of Natural Resources, Peterborough. scilloides Flora of Northern America Plants described in 1818
56 Sagittarii is a single star in the southern constellation of Sagittarius. It has the Bayer designation f Sagittarii, while 56 Sagittarii is the Flamsteed designation. This object is visible to the naked eye as a faint, orange-hued point of light with an apparent visual magnitude of 4.87. It is located approximately 208 light years away from the Sun based on parallax, and is drifting further away with a radial velocity of +22 km/s. This is an aging giant star with a stellar classification of K0+III, having exhausted the supply of hydrogen at its core and expanded to 11 times the Sun's radius. It is a red clump giant, which means it is on the horizontal branch and is generating energy through helium fusion at its core. The star has 1.8 times the mass of the Sun and is radiating 59 times the Sun's luminosity from its enlarged photosphere at an effective temperature of 4,750 K. References K-type giants Horizontal-branch stars Sagittarius (constellation) Sagittarii, f Sagittarii, 56 BD-20 5698 186648 097290 7515
Casa de Carrillo House in San Diego, California in San Diego County, is a California Historical Landmark No. 74 listed on December 6, 1932. The Casa de Carrillo House is the oldest residence in San Diego. The Casa de Carrillo House was built by Presidio of San Diego Comandante Francisco María Ruiz (1754–1839). Ruiz was the leader of the Presidio from 1809 to 1827. The Casa de Carrillo house was built next to his pear orchard planted in 1808. The Adobe house was used by his relative and soldier, Joaquín Carrillo, and his family. Joaquín Carrillo, daughter Josefa Carrillo, ran away and sailed from the home and eloped to Chile with Henry Delano Fitch in April 1829. Francisco Ruiz died in 1839, when Joaquín Carrillo died, his son Ramon Carrillo sold the house and land to Lorenzo Soto. The house and land was sold a few times, it was poor condiction when sold in 1932 to George Marston and associates. George Marston and associates restored the house. After the restoration George Marston and associates donated the house and land to the City of San Diego. The City of San Diego turned the house and land into the Presidio Hills Golf Course. A California Historical marker is at the Old Town, San Diego Presidio Hills Golf Course, NE of Juan Street on Wallace Street. The Marker was place there in 1994 by State Department of Parks and Recreation working with the San Diego City Department of Parks and Recreation and Squibob Chapter, E Clampus Vitus. See also California Historical Landmarks in San Diego County El Campo Santo Carrillo family of California María Ygnacia López de Carrillo References 1821 in Alta California 1821 establishments in Alta California California Historical Landmarks History of San Diego County, California
Saint-Quentin-sur-Indrois (, literally Saint-Quentin on Indrois) is a commune in the Indre-et-Loire department in central France. Geography The village lies in the middle of the commune, on the right bank of the Indrois, which flows west through the middle of the commune. Population See also Communes of the Indre-et-Loire department References Communes of Indre-et-Loire
```javascript Async File Write in Node.js Node Inspector Wrapping errors in Node.js using _node-verror_ Factories design pattern Avoid command injection ```
Duncan Jamie Green (born 30 April 1952) is a British retired Anglican priest. From 2013 until retirement, he was Archdeacon of Northolt in the Diocese of London; from 2007 to 2013, he was the Church of England's Olympic and Paralympic Co-ordinator. Early life and education Green was born on 30 April 1952. His first career was as a sales director for an agricultural engineering company. In 1982, he matriculated into Salisbury and Wells Theological College, an Anglican theological college, to train for Holy Orders. Ordained ministry Green was ordained in the Church of England as a deacon in 1984 and as a priest in 1985. From 1984 to 1987, he served his curacy at Holy Cross, Uckfield in the Diocese of Chichester. In 1987, he moved to the Diocese of Chelmsford as a Diocese Youth Officer. From 1993 to 1996, he was also Warden and Chaplain of St Mark's College Residential Youth Centre at Audley End House, which he had help establish. Remaining in the Diocese of Chelmsford, he took up his first incumbency. From 1996 to 2007, he was Team Rector of Saffron Walden (St Mary) with Wendens Ambo, Littlebury, Ashdon, and Hadstock. He was additionally Rural Dean of Saffron Walden between 2000 or 2005 and 2007. In 2007, Green was appointed the Church of England's Olympic and Paralympic Co-ordinator: London was hosting the 2012 Summer Olympics and Paralympics. He was additionally assigned to the London Organising Committee of the Olympic and Paralympic Games (LOCOG) as a faith adviser. From early 2010, he was also head of LOCOG's multi-faith chaplaincy services. During the Olympics and Paralympics, "he oversaw the chaplaincy service for 20,000 athletes and officials, 200,000 staff and volunteers together with 26,000 reporters and broadcasters". In March 2016, he was awarded the Langton Award for Community Service by the Archbishop of Canterbury, Justin Welby, in recognition of "his contribution to the London 2012 Olympic and Paralympic Games". In 2013, Green was appointed the next Archdeacon of Northolt in the Diocese of London. In April 2013, he was installed as archdeacon by Richard Chartres, the Bishop of London, during a service at St Paul's Cathedral. His archdeaconry corresponds with the Willesden Episcopal Area which comprises the deaneries of Brent, Ealing, Harrow and Hillingdon. Since 2016, he has also been honorary priest in charge of St Matthew's Church, Ealing Common. It was announced on 13 June that Green is to retire "later" in 2019. He retired effective 30 November 2019. Personal life In 1975, Green married Janet Mary Orpin. Together they had three children: Adam, Anna and Christine. References 1952 births Living people 20th-century English Anglican priests 21st-century English Anglican priests Archdeacons of Northolt Church of England priests Alumni of Salisbury and Wells Theological College
Thomas S. Williams (August 28, 1806 – June 16, 1872) was a Republican United States Representative from Pennsylvania. Formative years Born in Greensburg, Pennsylvania on August 28, 1806, Williams attended the common schools of his community and graduated from Dickinson College in Carlisle, Pennsylvania in 1825. In 1828, he was admitted to the Pennsylvania bar and began practicing law in Greensburg. Career In 1832, Williams moved to Pittsburgh, Pennsylvania, where he continued in private practice and edited the Advocate, a Whig newspaper. Williams served in the Pennsylvania State Senate from 1838 to 1841, then returned to private practice. During the American Civil War, Williams returned to public office, this time becoming a United States representative, a position he held from March 4, 1863 to March 4, 1869. He was considered a Radical Republican during the Reconstruction era. During his last term as a representative, he was involved in matters of impeaching President Andrew Johnson. He wrote the majority report of the House Committee on Judiciary in support of impeachment at the conclusion of the first impeachment inquiry against Andrew Johnson in late 1867. The House ultimately voted to reject the recommendation of impeachment at that time. Months later, after the impeachment of Johnson, Williams served as one of the House impeachment managers (roughly equivalent to a prosecutor) in the impeachment trial. Later years, death and interment Williams lived in retirement until his death in Allegheny, Pennsylvania on June 16, 1872; his body was interred in the Allegheny Cemetery in Pittsburgh. References External links Pennsylvania state senators Dickinson College alumni Politicians from Pittsburgh People of Pennsylvania in the American Civil War Union (American Civil War) political leaders 1806 births 1872 deaths Pennsylvania Whigs Republican Party members of the United States House of Representatives from Pennsylvania Burials at Allegheny Cemetery 19th-century American legislators
Averil Margaret Lysaght (14 April 1905 – 21 August 1981) was a New Zealand biologist, science historian and artist, best known for her scholarly work on Joseph Banks. Early life Lysaght was born in Mokoia, Taranaki, New Zealand on 14 April 1905 to Emily Muriel Lysaght née Stowe and Brian Cuthbert Lysaght. When she was 15 she discovered on Mount Taranaki an owlet moth previously unknown to science. That species was described in 1921 by entomologist G. V. Hudson and named Graphania averilla in her honour. Education Lysaght was initially educated at home by a governess but was sent to Chilton House Private Girls Boarding School in Wellington when she was 12. In 1923 Lysaght began studying for a degree at Victoria University College, Wellington. While attending University, Lysaght joined the Victoria University tramping club and went on tramps with John Beaglehole, with whom she later collaborated on scholarly works. While studying for her bachelor's degree Lysaght published her first papers on entomology. She graduated with a Bachelor of Science degree in 1928 and obtained a master's degree in Science in 1929. Her thesis was on the biology of Eucolaspis, a genus of beetle. From 1927 to 1929 she was on the staff of the Cawthron Institute's department of entomology and from 1931 to 1932 she was employed by Victoria University College as a temporary assistant in zoology. Subsequent to this Lysaght moved to England to live and continued her education. Lysagh spent three years undertaking postgraduate research at the Rothamsted Experimental Station in London, after which she was awarded a Doctorate from the University of London in 1935. Her doctorate thesis was on the nematode parasites of thrips. During this time Lysaght undertook artistic training first at Nottingham School of Art and later at St Martins School of Art in London. Work From 1935 to 1938 Lysaght was employed at the Plymouth laboratory of the Marine Biological Association of the United Kingdom. She also worked at the Imperial Institute of Entomology. Between 1936 and 1943 she published five papers in parasitology, including two papers on trematode parasites of gastropods. Lysaght subsequently obtained employment as an assistant editor of the zoology section of Chambers Encyclopaedia. During her time there, either in 1947 or 1948 she met Norman Boyd Kinnear, Keeper of Zoology at the British Museum of Natural History. It was Kinnear who suggested she research the birds of Cook's voyages. He assisted her in this endeavour by providing space for her to work at the British Museum of Natural History. Lysaght proceeded to catalogue all the bird paintings executed on all Cook's voyages. She also did in depth research on the museums' collection of Sydney Parkinson's paintings and drawings and continued to work at this project for over twenty years. As a result of her research she did much to help identify drawings by Herman Spöring, Bank's assistant. This culminated in her publishing in 1975 The book of birds: five centuries of bird illustration. During this time Lysaght also edited the zoological material for the Hakluyt Society's edition of Cook's first two voyages. She also provided John Cawte Beaglehole with much of the zoological and botanical notes for his books on James Cook's three voyages. In 1957, Lysaght published an article examining the mystery of the identity of "Cook's Kangaroo", the first kangaroo brought to England, and the subject of a recently rediscovered painting by George Stubbs. Painting 'Lysaght was a talented artist, a gift that apparently first developed at Nottingham and later at Saint Martin's School of Art in London.' A solo exhibition of her work was held at the Leicester Galleries, in October 1961. Most of her water-colour paintings were on 'Siamese paper made from the fibres of the daphne bush'. Lysaght's October 1961 show of water-colours (no. 1222) coincided with ones the Leicester Galleries held for Kyffin Williams (no. 1223) and Anne Madden (no. 1221), whose work was influenced by Sam Francis, Jean-Paul Riopelle, and by her husband Louis le Brocquy, as too it seems was Lysaght's, notably Riopelle. Death Lysaght died on the 21 August 1981 in London. Specimens collected Porina oreas Leuconopsis obsoleta Pisidium novaezelandiae Potamopyrgus antipodarum' Published works The Book of Birds - Five Centuries of Bird Illustration Joseph Banks in Newfoundland and Labrador 1776Recognition and awards The moth species Graphania averilla was named in her honour. Lysaght was awarded an honorary Degree in Literature from the Memorial University of Newfoundland in recognition of her book Joseph Banks in Newfoundland and Labrador 1776''. In 2017, Lysaght was selected as one of the Royal Society Te Apārangi's "150 women in 150 words", celebrating the contributions of women to knowledge in New Zealand. References External links Photograph of Averil Margaret Lysaght Painted portrait of Averil Margaret Lysaght 1905 births 1981 deaths New Zealand biologists New Zealand women historians Historians of science People from Taranaki New Zealand women scientists 20th-century New Zealand historians Women biologists New Zealand illustrators New Zealand women illustrators 20th-century New Zealand women artists 20th-century women scientists 20th-century New Zealand women writers 20th-century biologists Greenwood family of New Zealand
Platygobiopsis dispar is a species of goby known only from the area off central Vietnam in the South China Sea. This species reaches a length of . References Gobiidae Fish of Vietnam Taxa named by Artem Mikhailovich Prokofiev Fish described in 2008
```java /* * * * 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 com.googlecode.mp4parser.authoring.adaptivestreaming; public class AudioQuality { String fourCC; long bitrate; int audioTag; long samplingRate; int channels; int bitPerSample; int packetSize; String language; String codecPrivateData; } ```
Torrens Park is a mainly residential large inner-southern suburb of Adelaide, incorporating some of the foothills and adjacent to the original "Mitcham Village". It was named after Sir Robert Richard Torrens, the instigator of the Torrens title system of land registration and transfer, who built a large home in the area which he named Torrens Park. The suburb is in the City of Mitcham local government area, the South Australian House of Assembly electoral district of Waite and the Australian House of Representatives Division of Boothby. History The name was formally submitted for approval in 1945. Torrens Park is named after Sir Robert Richard Torrens, the third Premier of South Australia and instigator of the Torrens title land title system. Torrens built a large home which he called "Torrens Park" near Mitcham in 1853–4. In 1865 Torrens sold the house to his partner in the Moonta Mines (later founder of the University of Adelaide), Walter Watson Hughes, who enlarged it and later sold it to businessman and philanthropist Robert Barr Smith. It is now part of Scotch College. Although the original gates have recently been removed, the original gatehouse to the Estate is still visible at the corner of Belair Road and Ayr Avenue. Torrens Park Post Office opened on 24 August 1953 and closed in 1972. Part of today's suburb was laid out in 1917 from the estate of Tom Elder Barr-Smith; various parts of the suburb were originally known as "Glenburnie", Blytheswoodville, Panchito Park, Blythwood Estate and West Mitcham. Geography In comparison with most Adelaide suburbs, Torrens Park is quite large. The north end of the suburb is reasonably flat, but as one travels south (towards the foothills) the terrain rises and becomes hilly. Brown Hill Creek runs through the suburb from the south-east to the north-west. Due to the foothills, the rainfall in the City of Mitcham is 25–50 per cent higher than the rainfall on the Adelaide Plains. Torrens Park is also the location of the Mitcham Square Shopping Centre. Politics Traditionally, the area has been part of a "blue ribbon Liberal" seat; however, elections in 2022 saw both state and federal seats fall to the opposing Labor Party. Schools The only school actually located in the suburb is Scotch College. Nearby Primary Schools: Clapham Mitcham Colonel Light Gardens Nearby High Schools: Unley High School Urrbrae Agricultural High School Pasadena High School Mitcham Girls High School Mercedes College Public transport Public transport to Torrens Park is available through the Belair railway line, to the Mitcham (North-West), Torrens Park (West) and Lynton (South-West) stations. Buses are also available to and from the City along Belair Road. Route 192 terminates on Kays Road; Routes 194 and 196 pass through the suburb en route to Blackwood Station. Route 171 travels along Princes Road serving the northern side of the suburb and then via Fullarton Road to the city. See also List of Adelaide suburbs Notes Suburbs of Adelaide Torrens family
```xml import * as React from 'react'; import createSvgIcon from '../utils/createSvgIcon'; const AnnotationIcon = createSvgIcon({ svg: ({ classes }) => ( <svg xmlns="path_to_url" viewBox="0 0 2048 2048" className={classes.svg} focusable="false"> <path d="M1115 1024h677l-128 128H987l-314 313q45 36 70 88t25 111q0 53-20 99t-55 81-82 55-99 21q-53 0-99-20t-81-55-55-81-21-100q0-52 20-99t55-81 81-55 100-21l35 2 258-258H478q-35 59-94 93t-128 35q-53 0-99-20t-81-55-55-81-21-100q0-52 20-99t55-81 81-55 100-21q52 0 99 20t81 55 55 82 21 99h421l512-512h182l-512 512zm-859 128q27 0 50-10t40-27 28-41 10-50q0-27-10-50t-27-40-41-28-50-10q-27 0-50 10t-40 27-28 41-10 50q0 27 10 50t27 40 41 28 50 10zm256 640q27 0 50-10t40-27 28-41 10-50q0-27-10-50t-27-40-41-28-50-10q-27 0-50 10t-40 27-28 41-10 50q0 27 10 50t27 40 41 28 50 10zM1920 256h128v128h-128V256zM2048 0v128h-128V0h128zm-384 0h128v128h-128V0zm-128 128h-128V0h128v128zm-256 0h-128V0h128v128zm-256 0H896V0h128v128zm-256 0H640V0h128v128zm-256 0H384V0h128v128zm0 256H384V256h128v128zm0 256H384V512h128v128zm1408-128h128v128h-128V512zm0 256h128v128h-128V768zm0 256h128v128h-128v-128zm0 256h128v128h-128v-128zm0 256h128v128h-128v-128zm-256 0h128v128h-128v-128zm-256 0h128v128h-128v-128zm-256 0h128v128h-128v-128zm-256 0h128v128H896v-128z" /> </svg> ), displayName: 'AnnotationIcon', }); export default AnnotationIcon; ```
Two English cricket teams toured Australia in 1887–88. They are generally known as A. Shrewsbury's XI and G. F. Vernon's XI. Shrewsbury's XI also visited New Zealand in March. In previous Australian seasons, no more than one English team had toured. The formation of two teams in 1887-88 was described by Wisden as "a piece of folly (that) will never be perpetrated again". The situation was perhaps inevitable given that English cricket still lacked a formal system to regulate the organisation of overseas tours. As a result, any promoter was free to form a team. Wisden pointed out that "it was clear from the first that two combinations would not be able to pay their way, and, though we do not know the exact result of Shaw, Shrewsbury, and Lillywhite's venture, the Melbourne Club frankly admitted a heavy loss over Mr Vernon's team". A Shrewsbury's XI This team was formed by James Lillywhite, Alfred Shaw and Arthur Shrewsbury after they received an invitation from various parties in Sydney. The players were a mixture of amateur and professional. Although the professional Shrewsbury was effectively the player/manager, the amateur Aubrey Smith was appointed team captain. Shaw himself did not tour, but stayed at home to put together a football side that played rugby union and Victorian rules (now known as Australian rules) football in Australia after the cricket tour. The tour was a financial disaster, with the Melbourne Cricket Club, Lillywhite, Shaw and Shrewsbury well out-of-pocket. Lillywhite defaulted on his debt. The team played seven first-class matches in Australia including two versus an Australia XI. They played New South Wales three times and individual matches versus Victoria and a Combined XI. After the matches in Australia were completed, the team visited New Zealand and played three non-first-class matches, which were all drawn. In all matches in both countries, Shrewsbury's XI played 25, won 14, drew 9 and lost 2. In first-class matches (in Australia only), the team played 7, won 5 and lost 2. The team members were (amateurs denoted by title): Mr C A Smith, captain (Sussex) Arthur Shrewsbury (Notts) George A Lohmann (Surrey) J Maurice Read (Surrey) John Briggs (Lancashire) Richard Pilling (Lancashire) George Ulyett (Yorkshire) Joseph M Preston (Yorkshire) Mr W Newham (Sussex) Mr George Brann (Sussex) Mr L C Docker (Warwickshire) A D Pougher (Leicestershire) James Lillywhite (Sussex) G F Vernon's XI Lord Hawke, then known as the Hon. M B Hawke, was invited by Melbourne Cricket Club to form this team which, like Shrewsbury's, comprised both amateurs and professionals. Hawke had to return to England at the start of the tour as his father had died, leaving George Vernon to captain the side. Vernon's XI played eight first-class matches in Australia including two versus an Australia XI. They played twice versus each of New South Wales, South Australia and Victoria. The team visited Australia only and in all matches played 26, won 11, drew 14 and lost 1. In first-class matches, the team played 8, won 6, drew 1 and lost 1. The team members were (amateurs denoted by title): Mr G F Vernon, captain (Middlesex) The Hon M B (now Lord) Hawke (Yorkshire) Mr W W Read (Surrey) Mr M P Bowden (Surrey) Mr A E Stoddart (Middlesex) Mr A E Newton (Somerset) Mr T C O'Brien (Middlesex) William Bates (Yorkshire) Robert Peel (Yorkshire) J T Rawlin (Yorkshire) William Attewell (Notts) John Beaumont (Surrey) Robert Abel (Surrey) Test Match Each team played "Combined Australia" sides in matches that are not accorded Test match status. In February 1888 the two touring teams combined as an England team, with Walter Read as captain, to play a timeless Test against Australia at the Sydney Cricket Ground. England won by 126 runs. England's team in the Test match was: Walter Read (captain), Arthur Shrewsbury, Andrew Stoddart, George Ulyett, Maurice Read, Bobby Peel, Billy Newham, George Lohmann, Johnny Briggs, William Attewell and Dick Pilling (wk). Australia's team was: Alec Bannerman, Sammy Jones, Harry Moses, Frederick Burton, Jack Worrall, Patrick McShane, Percy McDonnell, Jack Blackham, Tom Garrett, Charlie Turner, John Ferris. Wisden doubted if the Australian team was truly representative. The match was affected by wet weather and was low-scoring. Australia won the toss and decided to field. This probably looked like the right decision as Ferris and Turner took 9 wickets between them to dismiss England for 113, Arthur Shrewsbury top-scoring with 44. When Australia batted, Lohmann and Peel, bowling unchanged, reduced them to 35 for 8 at stumps on the first day. As a result of continuing rain, and an intervening Sunday, there was no play for three days. On resumption, Lohmann and Peel dismissed Australia for 42. Turner took 7 for 43 as England then set Australia 209 to win. They fell well short with Lohmann and Peel sharing 8 wickets and England won by 126 runs. Match summary {{Two-innings cricket match | date = 10–15 February 1888(Timeless Test) | team1 = | team2 = | score-team1-inns1 = 113 (100 overs) | runs-team1-inns1 = A Shrewsbury 44 (150) | wickets-team1-inns1 = CTB Turner 5/44 (50 overs) | score-team2-inns1 = 42 (37.3 overs) | runs-team2-inns1 = TW Garrett 10 (26) | wickets-team2-inns1 = GA Lohmann 5/17 (19 overs) | score-team1-inns2 = 137 (75 overs) | runs-team1-inns2 = JM Read 39 (49) | wickets-team1-inns2 = CTB Turner 7/43 (38 overs) | score-team2-inns2 = 82 (69.2 overs) | runs-team2-inns2 = JM Blackham 25 (54) | wickets-team2-inns2 = GA Lohmann 4/35 (32 overs) | result = England won by 126 runs | report = Scorecard | venue = Sydney Cricket Ground, Sydney | umpires = C Bannerman and J Phillips | toss = Australia won the toss and elected to field. | rain = 12 February was taken as a rest day. There was no play on the second or third days.| notes = AE Stoddart and W Newham (ENG) made their Test debuts. }} References External links CricketArchive Wisden Archive Online Bibliography Chris Harte, A History of Australian Cricket, Andre Deutsch, 1993 Wisden Cricketers' Almanack'' 1889 1887 in Australian cricket 1887 in English cricket 1888 in Australian cricket 1888 in English cricket 1888 in New Zealand cricket 1887 1887 1887 International cricket competitions from 1844 to 1888 New Zealand cricket seasons from 1863–64 to 1889–90 1887-88
Srocko Wielkie is a village in the administrative district of Gmina Czempiń, within Kościan County, Greater Poland Voivodeship, in west-central Poland. It lies approximately north of Czempiń, north-east of Kościan, and south-west of the regional capital Poznań. References Srocko Wielkie
```objective-c // // MacSVGPluginCallbacks.m // macSVG // // Created by Douglas Ward on 3/8/12. // #import "MacSVGPluginCallbacks.h" #import "MacSVGDocument.h" #import "MacSVGDocumentWindowController.h" #import "SVGWebKitController.h" #import "SVGWebView.h" #import "SVGPathEditor.h" #import "DOMMouseEventsController.h" #import "SVGXMLDOMSelectionManager.h" #pragma clang diagnostic push #pragma clang diagnostic ignored "-Wdeprecated-declarations" @implementation MacSVGPluginCallbacks - (id)svgXmlDocument { // returns NSXMLDocument id result = [self.macSVGDocument svgXmlDocument]; return result; } - (id)macSVGDocumentWindowController { // returns MacSVGDocumentWindowController id result = [self.macSVGDocument macSVGDocumentWindowController]; return result; } - (id)svgWebKitController { // returns SVGWebKitController id macSVGDocumentWindowController = [self.macSVGDocument macSVGDocumentWindowController]; id result = [macSVGDocumentWindowController svgWebKitController]; return result; } - (void)setToolMode:(NSInteger)newToolMode { id macSVGDocumentWindowController = [self.macSVGDocument macSVGDocumentWindowController]; [macSVGDocumentWindowController setToolMode:newToolMode]; } - (NSInteger)currentToolMode { id macSVGDocumentWindowController = [self.macSVGDocument macSVGDocumentWindowController]; return [macSVGDocumentWindowController currentToolMode]; } - (void)beginPluginEditorToolMode { id macSVGDocumentWindowController = [self.macSVGDocument macSVGDocumentWindowController]; [macSVGDocumentWindowController beginPluginEditorToolMode]; } - (void)reloadAllViews { id macSVGDocumentWindowController = [self.macSVGDocument macSVGDocumentWindowController]; [macSVGDocumentWindowController reloadAllViews]; } - (void)updateSelections { // redraw selection rectangles and handles [self.macSVGDocument updateSelections]; } - (void)selectXMLElement:(NSXMLElement *)aXMLElement { id macSVGDocumentWindowController = [self.macSVGDocument macSVGDocumentWindowController]; [macSVGDocumentWindowController selectXMLElement:aXMLElement]; } - (float)zoomFactor { id macSVGDocumentWindowController = [self.macSVGDocument macSVGDocumentWindowController]; id svgWebKitController = [macSVGDocumentWindowController svgWebKitController]; id svgWebView = [svgWebKitController svgWebView]; float zoomFactor = [svgWebView zoomFactor]; return zoomFactor; } - (NSPoint)scaleForDOMElementHandles:(DOMElement *)aDOMElement { id macSVGDocumentWindowController = [self.macSVGDocument macSVGDocumentWindowController]; id svgWebKitController = [macSVGDocumentWindowController svgWebKitController]; NSPoint scalePoint = [svgWebKitController scaleForDOMElementHandles:aDOMElement]; return scalePoint; } - (float)maxScaleForDOMElementHandles:(DOMElement *)aDOMElement { id macSVGDocumentWindowController = [self.macSVGDocument macSVGDocumentWindowController]; id svgWebKitController = [macSVGDocumentWindowController svgWebKitController]; float scaleFactor = [svgWebKitController maxScaleForDOMElementHandles:aDOMElement]; return scaleFactor; } - (void)addPluginSelectionHandleWithDOMElement:(DOMElement *)aDomElement handlesGroup:(DOMElement *)newSelectionHandlesGroup x:(float)x y:(float)y handleName:(NSString *)handleName pluginName:(NSString *)pluginName { id macSVGDocumentWindowController = [self.macSVGDocument macSVGDocumentWindowController]; id svgWebKitController = [macSVGDocumentWindowController svgWebKitController]; id domSelectionControlsManager = [svgWebKitController domSelectionControlsManager]; [domSelectionControlsManager addPluginSelectionHandleWithDOMElement:aDomElement handlesGroup:newSelectionHandlesGroup x:x y:y handleName:handleName pluginName:pluginName]; } //@interface SVGWebKitController - (id)svgWebView { // returns SVGWebView id macSVGDocumentWindowController = [self.macSVGDocument macSVGDocumentWindowController]; id svgWebKitController = [macSVGDocumentWindowController svgWebKitController]; id svgWebView = [svgWebKitController svgWebView]; return svgWebView; } - (NSMutableArray *)pathSegmentsArray { id macSVGDocumentWindowController = [self.macSVGDocument macSVGDocumentWindowController]; id svgWebKitController = [macSVGDocumentWindowController svgWebKitController]; id pathSegmentsArray = [svgWebKitController pathSegmentsArray]; return pathSegmentsArray; } - (void)buildPathSegmentsArray:(NSXMLElement *)pathElement { id macSVGDocumentWindowController = [self.macSVGDocument macSVGDocumentWindowController]; id svgWebKitController = [macSVGDocumentWindowController svgWebKitController]; [svgWebKitController buildPathSegmentsArray:pathElement]; } - (NSMutableArray *)buildPathSegmentsArrayWithPathString:(NSString *)pathString { id macSVGDocumentWindowController = [self.macSVGDocument macSVGDocumentWindowController]; id svgWebKitController = [macSVGDocumentWindowController svgWebKitController]; id pathSegmentsArray = [svgWebKitController buildPathSegmentsArrayWithPathString:pathString]; return pathSegmentsArray; } - (void)setPathSegmentsArray:(NSMutableArray *)pathSegmentsArray; { id macSVGDocumentWindowController = [self.macSVGDocument macSVGDocumentWindowController]; id svgWebKitController = [macSVGDocumentWindowController svgWebKitController]; [svgWebKitController setPathSegmentsArray:pathSegmentsArray]; } - (void)updatePathSegmentsAbsoluteValues:(NSMutableArray *)aPathSegmentsArray { id macSVGDocumentWindowController = [self.macSVGDocument macSVGDocumentWindowController]; id svgWebKitController = [macSVGDocumentWindowController svgWebKitController]; [svgWebKitController updatePathSegmentsAbsoluteValues:aPathSegmentsArray]; } - (NSPoint)endPointForSegmentIndex:(NSInteger)segmentIndex pathSegmentsArray:(NSArray *)aPathSegmentsArray { id macSVGDocumentWindowController = [self.macSVGDocument macSVGDocumentWindowController]; id svgWebKitController = [macSVGDocumentWindowController svgWebKitController]; return [svgWebKitController endPointForSegmentIndex:segmentIndex pathSegmentsArray:aPathSegmentsArray]; } - (void)setActiveXMLElement:(NSXMLElement *)aXMLElement; { id macSVGDocumentWindowController = [self.macSVGDocument macSVGDocumentWindowController]; id svgXMLDOMSelectionManager = [macSVGDocumentWindowController svgXMLDOMSelectionManager]; [svgXMLDOMSelectionManager setActiveXMLElement:aXMLElement]; } - (void)updateActivePathInDOM:(BOOL)updatePathLength { id macSVGDocumentWindowController = [self.macSVGDocument macSVGDocumentWindowController]; id svgWebKitController = [macSVGDocumentWindowController svgWebKitController]; [svgWebKitController updateActivePathInDOM:updatePathLength]; } - (void)updateSelectedPathInDOM:(BOOL)updatePathLength { id macSVGDocumentWindowController = [self.macSVGDocument macSVGDocumentWindowController]; id svgWebKitController = [macSVGDocumentWindowController svgWebKitController]; [svgWebKitController updateSelectedPathInDOM:updatePathLength]; } - (void)updateDOMSelectionRectsAndHandles { id macSVGDocumentWindowController = [self.macSVGDocument macSVGDocumentWindowController]; id svgWebKitController = [macSVGDocumentWindowController svgWebKitController]; id domSelectionControlsManager = [svgWebKitController domSelectionControlsManager]; [domSelectionControlsManager updateDOMSelectionRectsAndHandles]; } - (void)updatePathInDOMForElement:(DOMElement *)pathElement pathSegmentsArray:(NSArray *)aPathSegmentsArray { id macSVGDocumentWindowController = [self.macSVGDocument macSVGDocumentWindowController]; id svgWebKitController = [macSVGDocumentWindowController svgWebKitController]; [svgWebKitController updatePathInDOMForElement:pathElement pathSegmentsArray:aPathSegmentsArray]; } - (id)svgPathEditorSelectedPathElement { // returns NSXMLElement id macSVGDocumentWindowController = [self.macSVGDocument macSVGDocumentWindowController]; id svgWebKitController = [macSVGDocumentWindowController svgWebKitController]; id svgPathEditorSelectedPathElement = [svgWebKitController svgPathEditorSelectedPathElement]; return svgPathEditorSelectedPathElement; } - (void)svgPathEditorSetSelectedPathElement:(NSXMLElement *)aSelectedPathElement { id macSVGDocumentWindowController = [self.macSVGDocument macSVGDocumentWindowController]; id svgWebKitController = [macSVGDocumentWindowController svgWebKitController]; [svgWebKitController svgPathEditorSetSelectedPathElement:aSelectedPathElement]; } - (id)mouseEventsControllerActiveDOMElement { // returns DOMElement id macSVGDocumentWindowController = [self.macSVGDocument macSVGDocumentWindowController]; id svgXMLDOMSelectionManager = [macSVGDocumentWindowController svgXMLDOMSelectionManager]; id activeDOMElement = [svgXMLDOMSelectionManager activeDOMElement]; return activeDOMElement; } // Path creation controls - (NSString *) selectedPathMode { id macSVGDocumentWindowController = [self.macSVGDocument macSVGDocumentWindowController]; return [macSVGDocumentWindowController selectedPathMode]; } - (void) setSelectedPathMode:(NSString *)newValue { id macSVGDocumentWindowController = [self.macSVGDocument macSVGDocumentWindowController]; [macSVGDocumentWindowController setSelectedPathMode:newValue]; } -(void) assignElementIDIfUnassigned:(NSXMLNode *)aNode { id macSVGDocumentWindowController = [self.macSVGDocument macSVGDocumentWindowController]; [macSVGDocumentWindowController assignElementIDIfUnassigned:aNode]; } - (NSString *)uniqueIDForElementTagName:(NSString *)elementTagName pendingIDs:(NSArray *)pendingIDs { //id macSVGDocumentWindowController = [macSVGDocument macSVGDocumentWindowController]; //return [macSVGDocumentWindowController uniqueIDForElementTagName:elementTagName pendingIDs:pendingIDs]; return [self.macSVGDocument uniqueIDForElementTagName:elementTagName pendingIDs:pendingIDs]; } - (NSString *)newMacsvgid { id macSVGDocumentWindowController = [self.macSVGDocument macSVGDocumentWindowController]; return [macSVGDocumentWindowController newMacsvgid]; } /* - (void)pushUndoRedoElementAttributes:(NSXMLElement *)aElement { //[macSVGDocument pushUndoRedoElementAttributes:aElement]; [macSVGDocument pushUndoRedoDocumentChanges]; } - (void)pushUndoRedoDeleteElement:(NSXMLElement *)aElement { [macSVGDocument pushUndoRedoDeleteElement:aElement]; } - (void)pushUndoRedoCreateElement:(NSXMLElement *)aElement { [macSVGDocument pushUndoRedoCreateElement:aElement]; } */ - (void)pushUndoRedoDocumentChanges { [self.macSVGDocument pushUndoRedoDocumentChanges]; } - (BOOL) useRelativePathCoordinates { id macSVGDocumentWindowController = [self.macSVGDocument macSVGDocumentWindowController]; id svgWebKitController = [macSVGDocumentWindowController svgWebKitController]; id domMouseEventsController = [svgWebKitController domMouseEventsController]; id svgPathEditor = [domMouseEventsController svgPathEditor]; return [svgPathEditor useRelativePathCoordinates]; } - (void) setUseRelativePathCoordinates:(BOOL)newValue { id macSVGDocumentWindowController = [self.macSVGDocument macSVGDocumentWindowController]; id svgWebKitController = [macSVGDocumentWindowController svgWebKitController]; id domMouseEventsController = [svgWebKitController domMouseEventsController]; id svgPathEditor = [domMouseEventsController svgPathEditor]; [svgPathEditor setUseRelativePathCoordinates:newValue]; } - (BOOL) closePathAutomatically { id macSVGDocumentWindowController = [self.macSVGDocument macSVGDocumentWindowController]; id svgWebKitController = [macSVGDocumentWindowController svgWebKitController]; id domMouseEventsController = [svgWebKitController domMouseEventsController]; id svgPathEditor = [domMouseEventsController svgPathEditor]; return [svgPathEditor closePathAutomatically]; } - (void) setClosePathAutomatically:(BOOL)newValue { id macSVGDocumentWindowController = [self.macSVGDocument macSVGDocumentWindowController]; id svgWebKitController = [macSVGDocumentWindowController svgWebKitController]; id domMouseEventsController = [svgWebKitController domMouseEventsController]; id svgPathEditor = [domMouseEventsController svgPathEditor]; [svgPathEditor setClosePathAutomatically:newValue]; } - (BOOL) curveSegmentContinuity { id macSVGDocumentWindowController = [self.macSVGDocument macSVGDocumentWindowController]; id svgWebKitController = [macSVGDocumentWindowController svgWebKitController]; id domMouseEventsController = [svgWebKitController domMouseEventsController]; id svgPathEditor = [domMouseEventsController svgPathEditor]; return [svgPathEditor curveSegmentContinuity]; } - (void) setCurveSegmentContinuity:(BOOL)newValue { id macSVGDocumentWindowController = [self.macSVGDocument macSVGDocumentWindowController]; id svgWebKitController = [macSVGDocumentWindowController svgWebKitController]; id domMouseEventsController = [svgWebKitController domMouseEventsController]; id svgPathEditor = [domMouseEventsController svgPathEditor]; [svgPathEditor setCurveSegmentContinuity:newValue]; } // Elliptical arc parameters - (NSString *)largeArcFlagString { id macSVGDocumentWindowController = [self.macSVGDocument macSVGDocumentWindowController]; id svgWebKitController = [macSVGDocumentWindowController svgWebKitController]; id domMouseEventsController = [svgWebKitController domMouseEventsController]; id svgPathEditor = [domMouseEventsController svgPathEditor]; return [svgPathEditor largeArcFlagString]; } - (void)setLargeArcFlagString:(NSString *)newValue { id macSVGDocumentWindowController = [self.macSVGDocument macSVGDocumentWindowController]; id svgWebKitController = [macSVGDocumentWindowController svgWebKitController]; id domMouseEventsController = [svgWebKitController domMouseEventsController]; id svgPathEditor = [domMouseEventsController svgPathEditor]; [svgPathEditor setLargeArcFlagString:newValue]; } - (NSString *)sweepFlagString { id macSVGDocumentWindowController = [self.macSVGDocument macSVGDocumentWindowController]; id svgWebKitController = [macSVGDocumentWindowController svgWebKitController]; id domMouseEventsController = [svgWebKitController domMouseEventsController]; id svgPathEditor = [domMouseEventsController svgPathEditor]; return [svgPathEditor sweepFlagString]; } - (void)setSweepFlagString:(NSString *)newValue { id macSVGDocumentWindowController = [self.macSVGDocument macSVGDocumentWindowController]; id svgWebKitController = [macSVGDocumentWindowController svgWebKitController]; id domMouseEventsController = [svgWebKitController domMouseEventsController]; id svgPathEditor = [domMouseEventsController svgPathEditor]; return [svgPathEditor setSweepFlagString:newValue]; } - (NSString *)xAxisRotationString { id macSVGDocumentWindowController = [self.macSVGDocument macSVGDocumentWindowController]; id svgWebKitController = [macSVGDocumentWindowController svgWebKitController]; id domMouseEventsController = [svgWebKitController domMouseEventsController]; id svgPathEditor = [domMouseEventsController svgPathEditor]; return [svgPathEditor xAxisRotationString]; } - (void)setXAxisRotationString:(NSString *)newValue { id macSVGDocumentWindowController = [self.macSVGDocument macSVGDocumentWindowController]; id svgWebKitController = [macSVGDocumentWindowController svgWebKitController]; id domMouseEventsController = [svgWebKitController domMouseEventsController]; id svgPathEditor = [domMouseEventsController svgPathEditor]; [svgPathEditor setXAxisRotationString:newValue]; } - (NSString *)pathRadiusXString { id macSVGDocumentWindowController = [self.macSVGDocument macSVGDocumentWindowController]; id svgWebKitController = [macSVGDocumentWindowController svgWebKitController]; id domMouseEventsController = [svgWebKitController domMouseEventsController]; id svgPathEditor = [domMouseEventsController svgPathEditor]; return [svgPathEditor pathRadiusXString]; } - (void)setPathRadiusXString:(NSString *)newValue { id macSVGDocumentWindowController = [self.macSVGDocument macSVGDocumentWindowController]; id svgWebKitController = [macSVGDocumentWindowController svgWebKitController]; id domMouseEventsController = [svgWebKitController domMouseEventsController]; id svgPathEditor = [domMouseEventsController svgPathEditor]; [svgPathEditor setPathRadiusXString:newValue]; } - (NSString *)pathRadiusYString { id macSVGDocumentWindowController = [self.macSVGDocument macSVGDocumentWindowController]; id svgWebKitController = [macSVGDocumentWindowController svgWebKitController]; id domMouseEventsController = [svgWebKitController domMouseEventsController]; id svgPathEditor = [domMouseEventsController svgPathEditor]; return [svgPathEditor pathRadiusYString]; } - (void)setPathRadiusYString:(NSString *)newValue { id macSVGDocumentWindowController = [self.macSVGDocument macSVGDocumentWindowController]; id svgWebKitController = [macSVGDocumentWindowController svgWebKitController]; id domMouseEventsController = [svgWebKitController domMouseEventsController]; id svgPathEditor = [domMouseEventsController svgPathEditor]; [svgPathEditor setPathRadiusYString:newValue]; } - (void)restartLastPathSegment { id macSVGDocumentWindowController = [self.macSVGDocument macSVGDocumentWindowController]; id svgWebKitController = [macSVGDocumentWindowController svgWebKitController]; id domMouseEventsController = [svgWebKitController domMouseEventsController]; id svgPathEditor = [domMouseEventsController svgPathEditor]; [svgPathEditor restartLastPathSegment]; } - (NSMutableDictionary *)imageDictionary { id macSVGDocumentWindowController = [self.macSVGDocument macSVGDocumentWindowController]; NSMutableDictionary * imageDictionary = [macSVGDocumentWindowController imageDictionary]; return imageDictionary; } - (void)setImageDictionary:(NSMutableDictionary *)newImageDictionary { id macSVGDocumentWindowController = [self.macSVGDocument macSVGDocumentWindowController]; [macSVGDocumentWindowController setImageDictionary:newImageDictionary]; } - (NSString *)addCSSStyleName:(NSString *)styleName styleValue:(NSString *)styleValue toXMLElement:(NSXMLElement *)targetElement { id macSVGDocumentWindowController = [self.macSVGDocument macSVGDocumentWindowController]; return [macSVGDocumentWindowController addCSSStyleName:styleName styleValue:styleValue toXMLElement:targetElement]; } - (NSString *)addCSSStyleName:(NSString *)styleName styleValue:(NSString *)styleValue toDOMElement:(DOMElement *)targetElement { id macSVGDocumentWindowController = [self.macSVGDocument macSVGDocumentWindowController]; return [macSVGDocumentWindowController addCSSStyleName:styleName styleValue:styleValue toDOMElement:targetElement]; } - (NSMutableArray *)convertToAbsoluteCoordinates:(NSXMLElement *)pathElement { id macSVGDocumentWindowController = [self.macSVGDocument macSVGDocumentWindowController]; id pathFunctions = [macSVGDocumentWindowController pathFunctions]; return [pathFunctions convertToAbsoluteCoordinates:pathElement]; } - (NSMutableArray *)convertCurvesToAbsoluteCubicBezier:(NSXMLElement *)pathElement { id macSVGDocumentWindowController = [self.macSVGDocument macSVGDocumentWindowController]; id pathFunctions = [macSVGDocumentWindowController pathFunctions]; return [pathFunctions convertCurvesToAbsoluteCubicBezier:pathElement]; } - (NSMutableArray *)convertCurvesToAbsoluteCubicBezierWithPathSegmentsArray:(NSMutableArray *)pathSegmentsArray { id macSVGDocumentWindowController = [self.macSVGDocument macSVGDocumentWindowController]; id pathFunctions = [macSVGDocumentWindowController pathFunctions]; return [pathFunctions convertCurvesToAbsoluteCubicBezierWithPathSegmentsArray:pathSegmentsArray]; } - (NSMutableArray *)convertPathToAbsoluteCubicBezier:(NSXMLElement *)pathElement { id macSVGDocumentWindowController = [self.macSVGDocument macSVGDocumentWindowController]; id pathFunctions = [macSVGDocumentWindowController pathFunctions]; return [pathFunctions convertPathToAbsoluteCubicBezier:pathElement]; } - (NSMutableArray *)convertPathToAbsoluteCubicBezierWithPathSegmentsArray:(NSMutableArray *)pathSegmentsArray { id macSVGDocumentWindowController = [self.macSVGDocument macSVGDocumentWindowController]; id pathFunctions = [macSVGDocumentWindowController pathFunctions]; return [pathFunctions convertPathToAbsoluteCubicBezierWithPathSegmentsArray:pathSegmentsArray]; } - (NSMutableArray *)reversePathWithPathSegmentsArray:(NSMutableArray *)pathSegmentsArray { id macSVGDocumentWindowController = [self.macSVGDocument macSVGDocumentWindowController]; id pathFunctions = [macSVGDocumentWindowController pathFunctions]; return [pathFunctions reversePathWithPathSegmentsArray:pathSegmentsArray]; } - (NSMutableArray *)mirrorPathHorizontallyWithPathSegmentsArray:(NSMutableArray *)pathSegmentsArray { id macSVGDocumentWindowController = [self.macSVGDocument macSVGDocumentWindowController]; id pathFunctions = [macSVGDocumentWindowController pathFunctions]; return [pathFunctions mirrorPathHorizontallyWithPathSegmentsArray:pathSegmentsArray]; } - (NSMutableArray *)mirrorPathVerticallyWithPathSegmentsArray:(NSMutableArray *)pathSegmentsArray { id macSVGDocumentWindowController = [self.macSVGDocument macSVGDocumentWindowController]; id pathFunctions = [macSVGDocumentWindowController pathFunctions]; return [pathFunctions mirrorPathVerticallyWithPathSegmentsArray:pathSegmentsArray]; } - (NSMutableArray *)flipPathHorizontallyWithPathSegmentsArray:(NSMutableArray *)pathSegmentsArray { id macSVGDocumentWindowController = [self.macSVGDocument macSVGDocumentWindowController]; id pathFunctions = [macSVGDocumentWindowController pathFunctions]; return [pathFunctions flipPathHorizontallyWithPathSegmentsArray:pathSegmentsArray]; } - (NSMutableArray *)flipPathVerticallyWithPathSegmentsArray:(NSMutableArray *)pathSegmentsArray { id macSVGDocumentWindowController = [self.macSVGDocument macSVGDocumentWindowController]; id pathFunctions = [macSVGDocumentWindowController pathFunctions]; return [pathFunctions flipPathVerticallyWithPathSegmentsArray:pathSegmentsArray]; } - (NSMutableArray *)translatePathCoordinatesWithPathSegmentsArray:(NSMutableArray *)pathSegmentsArray x:(float)translateX y:(float)translateY { id macSVGDocumentWindowController = [self.macSVGDocument macSVGDocumentWindowController]; id pathFunctions = [macSVGDocumentWindowController pathFunctions]; return [pathFunctions translatePathCoordinatesWithPathSegmentsArray:pathSegmentsArray x:translateX y:translateY]; } - (NSMutableArray *)scalePathCoordinatesWithPathSegmentsArray:(NSMutableArray *)pathSegmentsArray scaleX:(float)scaleX scaleY:(float)scaleY { id macSVGDocumentWindowController = [self.macSVGDocument macSVGDocumentWindowController]; id pathFunctions = [macSVGDocumentWindowController pathFunctions]; return [pathFunctions scalePathCoordinatesWithPathSegmentsArray:pathSegmentsArray scaleX:scaleX scaleY:scaleY]; } - (NSMutableArray *)rotatePathCoordinatesWithPathSegmentsArray:(NSMutableArray *)pathSegmentsArray x:(float)rotateX y:(float)rotateY degrees:(float)degrees { id macSVGDocumentWindowController = [self.macSVGDocument macSVGDocumentWindowController]; id pathFunctions = [macSVGDocumentWindowController pathFunctions]; return [pathFunctions rotatePathCoordinatesWithPathSegmentsArray:pathSegmentsArray x:rotateX y:rotateY degrees:degrees]; } - (NSMutableArray *)closePathWithPathSegmentsArray:(NSMutableArray *)pathSegmentsArray { id macSVGDocumentWindowController = [self.macSVGDocument macSVGDocumentWindowController]; id pathFunctions = [macSVGDocumentWindowController pathFunctions]; return [pathFunctions closePathWithPathSegmentsArray:pathSegmentsArray]; } - (NSMutableArray *)rotateSegmentsWithPathSegmentsArray:(NSMutableArray *)pathSegmentsArray offset:(NSInteger)offset { id macSVGDocumentWindowController = [self.macSVGDocument macSVGDocumentWindowController]; id pathFunctions = [macSVGDocumentWindowController pathFunctions]; return [pathFunctions rotateSegmentsWithPathSegmentsArray:pathSegmentsArray offset:offset]; } - (NSDictionary *) convertArcToEndPointWithRotation:(float)rotation angleStart:(float)angleStart angleExtent:(float)angleExtent cx:(float)cx cy:(float)cy rx:(float)rx ry:(float)ry { id macSVGDocumentWindowController = [self.macSVGDocument macSVGDocumentWindowController]; id pathFunctions = [macSVGDocumentWindowController pathFunctions]; return [pathFunctions convertArcToEndPointWithRotation:rotation angleStart:angleStart angleExtent:angleExtent cx:cx cy:cy rx:rx ry:ry]; } - (NSDictionary *) convertArcToCenterPointWithStart:(CGPoint)start end:(CGPoint)end rx:(float)rx ry:(float)ry rotation:(float)rotation isLarge:(BOOL)isLarge isCounterClockwise:(BOOL)isCounterClockwise { id macSVGDocumentWindowController = [self.macSVGDocument macSVGDocumentWindowController]; id pathFunctions = [macSVGDocumentWindowController pathFunctions]; return [pathFunctions convertArcToCenterPointWithStart:start end:end rx:rx ry:ry rotation:rotation isLarge:isLarge isCounterClockwise:isCounterClockwise]; } - (NSMutableArray *)selectedElementsArray { id macSVGDocumentWindowController = [self.macSVGDocument macSVGDocumentWindowController]; return [macSVGDocumentWindowController selectedElementsArray]; } - (NSXMLElement *)xmlElementForMacsvgid:(NSString *)macsvgid { id result = [self.macSVGDocument xmlElementForMacsvgid:macsvgid]; return result; } - (DOMElement *)domElementForMacsvgid:(NSString *)macsvgid { id result = [self.macSVGDocument domElementForMacsvgid:macsvgid]; return result; } - (NSPoint) currentMouseClientPoint { id macSVGDocumentWindowController = [self.macSVGDocument macSVGDocumentWindowController]; id svgWebKitController = [macSVGDocumentWindowController svgWebKitController]; id domMouseEventsController = [svgWebKitController domMouseEventsController]; NSPoint currentMouseClientPoint = [domMouseEventsController currentMouseClientPoint]; return currentMouseClientPoint; } - (NSPoint) currentMousePagePoint { id macSVGDocumentWindowController = [self.macSVGDocument macSVGDocumentWindowController]; id svgWebKitController = [macSVGDocumentWindowController svgWebKitController]; id domMouseEventsController = [svgWebKitController domMouseEventsController]; NSPoint currentMousePagePoint = [domMouseEventsController currentMousePagePoint]; return currentMousePagePoint; } - (NSPoint) currentMouseScreenPoint { id macSVGDocumentWindowController = [self.macSVGDocument macSVGDocumentWindowController]; id svgWebKitController = [macSVGDocumentWindowController svgWebKitController]; id domMouseEventsController = [svgWebKitController domMouseEventsController]; NSPoint currentMouseScreenPoint = [domMouseEventsController currentMouseScreenPoint]; return currentMouseScreenPoint; } @end #pragma clang diagnostic pop ```
Enzo Gibelli (born 11 May 2000) is a French judoka. He won a medal at the 2021 World Judo Championships. He competed in the men's 73 kg event at the 2022 Mediterranean Games held in Oran, Algeria. References External links 2000 births Living people French male judoka Judoka at the 2022 Mediterranean Games Mediterranean Games competitors for France 21st-century French people
The Certified Fire Protection Specialist (CFPS) is a certification provided by the NFPA Certification Department in the U.S.A. The board was formed in 1971 and in 1998 partnered with the National Fire Protection Association (NFPA) to offer the professional certification. The purpose of the certification is to document and recognise an individual's knowledge of fire protection, fire prevention, and fire safety. The certification received ANSI certification in 2006 as an ANSI/ISO/IEC 17024 standard qualification. Certification is equivalent to a tertiary level degree requiring applicants to have either at least a high school diploma with at least six years of verifiable professional experience in fire loss prevention or at least an associate degree specialising in some aspect of fire loss prevention. Applicants with an associate degree with a relevant specialisation require four years of additional work experience and applicants with a bachelor's degree require at least two years of additional experience. References Firefighting in the United States
Tallmansville is a small unincorporated community in Upshur County, West Virginia, United States. The ZIP code of Tallmansville is 26237; its ZCTA had a population of 418 at the 2000 census. The nearby community of Sago gained international notoriety on January 2, 2006 for the Sago Mine disaster, which killed 12 coal miners. The community of Tallmansville received its name, honoring their first postmaster Benjamin Tallman, in 1869. According to the Geographic Names Information System, the town has also had the toponyms Stroder and Strader Station in the past. References Unincorporated communities in Upshur County, West Virginia Unincorporated communities in West Virginia
Brotherhood among the Sahaba refers to the time after the Hijra [Muhammad's migration from Mecca to Medina] when the Islamic prophet Muhammad instituted brotherhood between the emigrants (Muhajirun) and the natives of Medina, the Ansar (literally "helpers"), and he chose Ali as his own brother. Brothers Muhammad - Ali ibn Abi Talib Abu Bakr - Khaarijah bin Zaid bin abi Zuhair al-Ansari Umar - Utban ibn Malik Uthman - Aus ibn Thabit Ja`far ibn Abī Tālib - Muadh ibn Jabal Abdur Rahman bin Awf - Saad ibn Rabi Aqbi Badri Talhah - Kab bin Malik Mus`ab ibn `Umair - Abu Ayub Aqbi Ammar ibn Yasir - Huzaifa ibn Alaiman Abu Darda - Salman the Persian Manzar ibn Umar - Abu Dharr al-Ghifari Muhammad ibn Maslamah - Abu Ubaidah ibn al Jarrah References +Brotherhood Alevism History of Islam
```php <?php /* * * * path_to_url * * Unless required by applicable law or agreed to in writing, software * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the */ namespace Google\Service\WorkflowExecutions; class ExportDataResponse extends \Google\Model { /** * @var string */ public $data; /** * @param string */ public function setData($data) { $this->data = $data; } /** * @return string */ public function getData() { return $this->data; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(ExportDataResponse::class, 'Google_Service_WorkflowExecutions_ExportDataResponse'); ```
```smalltalk // // ASCompat.cs // // Authors: // Alex Soto <alexsoto@microsoft.com> // // #if !XAMCORE_5_0 #nullable enable using Foundation; using ObjCRuntime; using System; using System.Threading.Tasks; #if !NET using NativeHandle = System.IntPtr; #endif namespace AuthenticationServices { #if MONOMAC public partial class ASAuthorizationProviderExtensionRegistrationHandler { public override NativeHandle ClassHandle => throw new InvalidOperationException (Constants.BrokenBinding); #if !NET public Task<ASAuthorizationProviderExtensionRegistrationResult> BeginDeviceRegistrationAsync (ASAuthorizationProviderExtensionLoginManager loginManager, ASAuthorizationProviderExtensionRequestOptions options) => throw new InvalidOperationException (Constants.BrokenBinding); public Task<ASAuthorizationProviderExtensionRegistrationResult> BeginUserRegistrationAsync (ASAuthorizationProviderExtensionLoginManager loginManager, string userName, ASAuthorizationProviderExtensionAuthenticationMethod authenticationMethod, ASAuthorizationProviderExtensionRequestOptions options) => throw new InvalidOperationException (Constants.BrokenBinding); #else public virtual Task<ASAuthorizationProviderExtensionRegistrationResult> BeginDeviceRegistrationAsync (ASAuthorizationProviderExtensionLoginManager loginManager, ASAuthorizationProviderExtensionRequestOptions options) => throw new InvalidOperationException (Constants.BrokenBinding); public virtual Task<ASAuthorizationProviderExtensionRegistrationResult> BeginUserRegistrationAsync (ASAuthorizationProviderExtensionLoginManager loginManager, string userName, ASAuthorizationProviderExtensionAuthenticationMethod authenticationMethod, ASAuthorizationProviderExtensionRequestOptions options) => throw new InvalidOperationException (Constants.BrokenBinding); #endif // !NET } public static partial class ASAuthorizationProviderExtensionRegistrationHandler_Extensions { public static Task<ASAuthorizationProviderExtensionRegistrationResult> BeginDeviceRegistrationAsync (this IASAuthorizationProviderExtensionRegistrationHandler This, ASAuthorizationProviderExtensionLoginManager loginManager, ASAuthorizationProviderExtensionRequestOptions options) => throw new InvalidOperationException (Constants.BrokenBinding); public static Task<ASAuthorizationProviderExtensionRegistrationResult> BeginUserRegistrationAsync (this IASAuthorizationProviderExtensionRegistrationHandler This, ASAuthorizationProviderExtensionLoginManager loginManager, string userName, ASAuthorizationProviderExtensionAuthenticationMethod authenticationMethod, ASAuthorizationProviderExtensionRequestOptions options) => throw new InvalidOperationException (Constants.BrokenBinding); } #endif // MONOMAC } #endif // !XAMCORE_5_0 ```
Women's suffrage in Georgia may refer to: Women's suffrage in Georgia (country) Women's suffrage in Georgia (U.S. state)
```smalltalk /* * * * 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. */ using System.ComponentModel; namespace ServiceDemo { [RunInstaller(true)] public partial class ServiceInstaller : System.Configuration.Install.Installer { public ServiceInstaller() { InitializeComponent(); } } } ```
```kotlin package test.mega.privacy.android.app.presentation.myaccount import mega.privacy.android.shared.resources.R as sharedR import androidx.compose.ui.test.assert import androidx.compose.ui.test.assertIsDisplayed import androidx.compose.ui.test.assertTextEquals import androidx.compose.ui.test.getBoundsInRoot import androidx.compose.ui.test.hasAnyChild import androidx.compose.ui.test.hasText import androidx.compose.ui.test.junit4.createComposeRule import androidx.compose.ui.test.onNodeWithTag import androidx.compose.ui.unit.dp import androidx.compose.ui.unit.width import androidx.navigation.compose.ComposeNavigator import androidx.navigation.testing.TestNavHostController import androidx.test.core.app.ApplicationProvider import androidx.test.ext.junit.runners.AndroidJUnit4 import com.google.common.truth.Truth.assertThat import dagger.hilt.android.testing.HiltAndroidTest import mega.privacy.android.app.R import mega.privacy.android.app.presentation.myaccount.MyAccountHomeViewActions import mega.privacy.android.app.presentation.myaccount.mapper.AccountNameMapper import mega.privacy.android.app.presentation.myaccount.model.MyAccountHomeUIState import mega.privacy.android.app.presentation.myaccount.view.AccountTypeSection import mega.privacy.android.app.presentation.myaccount.view.Constants.ACCOUNT_TYPE_SECTION import mega.privacy.android.app.presentation.myaccount.view.Constants.ACHIEVEMENTS import mega.privacy.android.app.presentation.myaccount.view.Constants.ADD_PHONE_NUMBER import mega.privacy.android.app.presentation.myaccount.view.Constants.AVATAR_SIZE import mega.privacy.android.app.presentation.myaccount.view.Constants.BACKUP_RECOVERY_KEY import mega.privacy.android.app.presentation.myaccount.view.Constants.CONTACTS import mega.privacy.android.app.presentation.myaccount.view.Constants.CONTAINER_LEFT_MARGIN import mega.privacy.android.app.presentation.myaccount.view.Constants.EMAIL_TEXT import mega.privacy.android.app.presentation.myaccount.view.Constants.EXPIRED_BUSINESS_BANNER import mega.privacy.android.app.presentation.myaccount.view.Constants.EXPIRED_BUSINESS_BANNER_TEXT import mega.privacy.android.app.presentation.myaccount.view.Constants.HEADER_LEFT_MARGIN import mega.privacy.android.app.presentation.myaccount.view.Constants.HEADER_RIGHT_MARGIN import mega.privacy.android.app.presentation.myaccount.view.Constants.IMAGE_AVATAR import mega.privacy.android.app.presentation.myaccount.view.Constants.LAST_SESSION import mega.privacy.android.app.presentation.myaccount.view.Constants.NAME_TEXT import mega.privacy.android.app.presentation.myaccount.view.Constants.PAYMENT_ALERT_INFO import mega.privacy.android.app.presentation.myaccount.view.Constants.PHONE_NUMBER_TEXT import mega.privacy.android.app.presentation.myaccount.view.Constants.TEXT_AVATAR import mega.privacy.android.app.presentation.myaccount.view.Constants.UPGRADE_BUTTON import mega.privacy.android.app.presentation.myaccount.view.Constants.USAGE_METER_BUSINESS import mega.privacy.android.app.presentation.myaccount.view.Constants.USAGE_STORAGE_PROGRESS import mega.privacy.android.app.presentation.myaccount.view.Constants.USAGE_TRANSFER_PROGRESS import mega.privacy.android.app.presentation.myaccount.view.Constants.USAGE_TRANSFER_SECTION import mega.privacy.android.app.presentation.myaccount.view.MyAccountHeader import mega.privacy.android.app.presentation.myaccount.view.MyAccountHomeView import mega.privacy.android.domain.entity.AccountType import mega.privacy.android.domain.entity.AccountType.BASIC import mega.privacy.android.domain.entity.AccountType.BUSINESS import mega.privacy.android.domain.entity.AccountType.ESSENTIAL import mega.privacy.android.domain.entity.AccountType.FREE import mega.privacy.android.domain.entity.AccountType.PRO_FLEXI import mega.privacy.android.domain.entity.AccountType.PRO_I import mega.privacy.android.domain.entity.AccountType.PRO_II import mega.privacy.android.domain.entity.AccountType.PRO_III import mega.privacy.android.domain.entity.AccountType.PRO_LITE import mega.privacy.android.domain.entity.AccountType.STARTER import mega.privacy.android.domain.entity.account.business.BusinessAccountStatus import org.junit.Rule import org.junit.Test import org.junit.runner.RunWith import org.robolectric.annotation.Config import test.mega.privacy.android.app.fromId import test.mega.privacy.android.app.fromPluralId import kotlin.random.Random @HiltAndroidTest @RunWith(AndroidJUnit4::class) @Config(qualifiers = "w720dp-h1280dp-xhdpi") class MyAccountHomeViewTest { @get:Rule val composeTestRule = createComposeRule() private lateinit var navController: TestNavHostController private fun initNavHostController() { navController = TestNavHostController(ApplicationProvider.getApplicationContext()) navController.navigatorProvider.addNavigator(ComposeNavigator()) } private val defaultAccountNameResource = AccountNameMapper()(null) private fun initMyAccountWithDefaults( uiState: MyAccountHomeUIState = MyAccountHomeUIState( accountTypeNameResource = defaultAccountNameResource ), ) { composeTestRule.setContent { initNavHostController() MyAccountHomeView( uiState = uiState, uiActions = object : MyAccountHomeViewActions { override val isPhoneNumberDialogShown: Boolean get() = false }, navController = navController ) } } @Test fun `test that my account header section should render with correct attributes`() { composeTestRule.setContent { MyAccountHeader( avatar = null, avatarColor = R.color.dark_grey, name = "Mega", email = "asd@mega.co.nz", verifiedPhoneNumber = "123456789", onClickUserAvatar = {}, onEditProfile = {} ) } composeTestRule.onNodeWithTag(IMAGE_AVATAR).assertDoesNotExist() composeTestRule.onNodeWithTag(TEXT_AVATAR) .assertIsDisplayed() .assert(hasText("M")) composeTestRule.onNodeWithTag(NAME_TEXT) .assertIsDisplayed() .assert(hasText("Mega")) composeTestRule.onNodeWithTag(EMAIL_TEXT) .assertIsDisplayed() .assert(hasText("asd@mega.co.nz")) composeTestRule.onNodeWithTag(PHONE_NUMBER_TEXT) .assertIsDisplayed() .assert(hasText("123456789")) } @Test fun `test that account type section render with correct attributes when account is FREE`() { verifyAccountTypeSection(FREE, R.string.free_account) } @Test fun `test that account type section render with correct attributes when account is PRO_LITE`() { verifyAccountTypeSection(PRO_LITE, R.string.prolite_account) } @Test fun `test that account type section render with correct attributes when account is PRO I`() { verifyAccountTypeSection(PRO_I, R.string.pro1_account) } @Test fun `test that account type section render with correct attributes when account is PRO II`() { verifyAccountTypeSection(PRO_II, R.string.pro2_account) } @Test fun `test that account type section render with correct attributes when account is PRO III`() { verifyAccountTypeSection(PRO_III, R.string.pro3_account) } @Test fun `test that account type section render with correct attributes when account is PRO Flexi`() { verifyAccountTypeSection(PRO_FLEXI, R.string.pro_flexi_account) } @Test fun `test that account type section render with correct attributes when account is Starter`() { verifyAccountTypeSection(STARTER, sharedR.string.general_low_tier_plan_starter_label) } @Test fun `test that account type section render with correct attributes when account is Basic`() { verifyAccountTypeSection(BASIC, sharedR.string.general_low_tier_plan_basic_label) } @Test fun `test that account type section render with correct attributes when account is Essential`() { verifyAccountTypeSection(ESSENTIAL, sharedR.string.general_low_tier_plan_essential_label) } @Test fun `test that account type section render with correct attributes when account is Business`() { verifyAccountTypeSection(BUSINESS, R.string.business_label) } @Test fun `test that account type button should be invisible when account is BUSINESS account`() { initMyAccountWithDefaults( MyAccountHomeUIState( accountType = BUSINESS, isBusinessAccount = true, isMasterBusinessAccount = true, accountTypeNameResource = defaultAccountNameResource ) ) composeTestRule.onNodeWithTag(UPGRADE_BUTTON).assertDoesNotExist() } @Test fun `test that account type button should be invisible when account is PRO_FLEXI account`() { initMyAccountWithDefaults( MyAccountHomeUIState( accountType = PRO_FLEXI, isBusinessAccount = true, accountTypeNameResource = defaultAccountNameResource, ) ) composeTestRule.onNodeWithTag(UPGRADE_BUTTON).assertDoesNotExist() } @Test fun `test that account type button text should render with correct text when account not business account`() { initMyAccountWithDefaults( MyAccountHomeUIState( accountType = PRO_I, accountTypeNameResource = defaultAccountNameResource ) ) composeTestRule.onNodeWithTag(UPGRADE_BUTTON).assertIsDisplayed() .assert(hasText(fromId(R.string.my_account_upgrade_pro))) } @Test fun `test that expired banner should be visible when account is master business account but is currently expired or on grace period`() { initMyAccountWithDefaults( MyAccountHomeUIState( isMasterBusinessAccount = true, isBusinessProFlexiStatusActive = false, accountTypeNameResource = defaultAccountNameResource ) ) composeTestRule.onNodeWithTag(EXPIRED_BUSINESS_BANNER).assertIsDisplayed() } @Test fun `test that expired banner should be visible when account is pro flexi account but is currently expired or on grace period`() { initMyAccountWithDefaults( MyAccountHomeUIState( isMasterBusinessAccount = true, isBusinessProFlexiStatusActive = false, accountTypeNameResource = defaultAccountNameResource ) ) composeTestRule.onNodeWithTag(EXPIRED_BUSINESS_BANNER).assertIsDisplayed() } @Test fun `test that expired banner should render with correct text when expired`() { initMyAccountWithDefaults( MyAccountHomeUIState( isMasterBusinessAccount = true, isBusinessProFlexiStatusActive = false, businessProFlexiStatus = BusinessAccountStatus.Expired, accountTypeNameResource = defaultAccountNameResource ) ) composeTestRule.onNodeWithTag(EXPIRED_BUSINESS_BANNER_TEXT) .assertIsDisplayed() .assert(hasText(fromId(R.string.payment_overdue_label))) } @Test fun `test that expired banner should render with correct text when on grace period`() { initMyAccountWithDefaults( MyAccountHomeUIState( isMasterBusinessAccount = true, isBusinessProFlexiStatusActive = false, businessProFlexiStatus = BusinessAccountStatus.GracePeriod, accountTypeNameResource = defaultAccountNameResource ) ) composeTestRule.onNodeWithTag(EXPIRED_BUSINESS_BANNER_TEXT) .assertIsDisplayed() .assert(hasText(fromId(R.string.payment_required_label))) } @Test fun `test that expired banner should not be shown when business status is active`() { initMyAccountWithDefaults( MyAccountHomeUIState( isMasterBusinessAccount = true, isBusinessProFlexiStatusActive = true, businessProFlexiStatus = BusinessAccountStatus.Active, accountTypeNameResource = defaultAccountNameResource ) ) composeTestRule.onNodeWithTag(EXPIRED_BUSINESS_BANNER).assertDoesNotExist() } @Test fun `test that payment alert should be visible when business status active and has renewable or expireable subscription`() { initMyAccountWithDefaults( MyAccountHomeUIState( isMasterBusinessAccount = true, isBusinessProFlexiStatusActive = true, hasRenewableSubscription = true, hasExpireAbleSubscription = true, accountTypeNameResource = defaultAccountNameResource ) ) composeTestRule.onNodeWithTag(PAYMENT_ALERT_INFO).assertIsDisplayed() } @Test fun `test that payment alert should be visible when account is not BUSINESS and has renewable or expireable subscription`() { initMyAccountWithDefaults( MyAccountHomeUIState( isBusinessAccount = false, isMasterBusinessAccount = false, hasRenewableSubscription = true, hasExpireAbleSubscription = true, accountTypeNameResource = defaultAccountNameResource ) ) composeTestRule.onNodeWithTag(PAYMENT_ALERT_INFO).assertIsDisplayed() } @Test fun `test that payment alert should be invisible when account has no renewable or expireable subscription`() { initMyAccountWithDefaults( MyAccountHomeUIState( isBusinessAccount = false, isMasterBusinessAccount = false, hasRenewableSubscription = false, hasExpireAbleSubscription = false, accountTypeNameResource = defaultAccountNameResource ) ) composeTestRule.onNodeWithTag(PAYMENT_ALERT_INFO).assertDoesNotExist() } @Test fun `test that usage transfer should be invisible when account type is FREE`() { initMyAccountWithDefaults( MyAccountHomeUIState( accountType = FREE, accountTypeNameResource = defaultAccountNameResource ) ) composeTestRule.onNodeWithTag(USAGE_TRANSFER_SECTION).assertDoesNotExist() } @Test fun `test that usage transfer should be visible when account type is not FREE`() { initMyAccountWithDefaults( MyAccountHomeUIState( accountType = PRO_I, accountTypeNameResource = defaultAccountNameResource ) ) composeTestRule.onNodeWithTag(testTag = USAGE_TRANSFER_SECTION, useUnmergedTree = true) .assertIsDisplayed() } @Test fun `test that usage progress bar should be invisible and usage meter layout for Business or Pro Flexi is shown instead when account is BUSINESS`() { initMyAccountWithDefaults( MyAccountHomeUIState( accountType = BUSINESS, isBusinessAccount = true, accountTypeNameResource = defaultAccountNameResource ) ) composeTestRule.onNodeWithTag(testTag = USAGE_STORAGE_PROGRESS, useUnmergedTree = true) .assertDoesNotExist() composeTestRule.onNodeWithTag(testTag = USAGE_TRANSFER_PROGRESS, useUnmergedTree = true) .assertDoesNotExist() composeTestRule.onNodeWithTag(testTag = USAGE_METER_BUSINESS, useUnmergedTree = true) .assertIsDisplayed() } @Test fun `test that usage progress bar should be invisible and usage meter layout for Business or Pro Flexi is shown instead when account is PRO_FLEXI`() { initMyAccountWithDefaults( MyAccountHomeUIState( accountType = PRO_FLEXI, isProFlexiAccount = true, accountTypeNameResource = defaultAccountNameResource, ) ) composeTestRule.onNodeWithTag(testTag = USAGE_STORAGE_PROGRESS, useUnmergedTree = true) .assertDoesNotExist() composeTestRule.onNodeWithTag(testTag = USAGE_TRANSFER_PROGRESS, useUnmergedTree = true) .assertDoesNotExist() composeTestRule.onNodeWithTag(testTag = USAGE_METER_BUSINESS, useUnmergedTree = true) .assertIsDisplayed() } @Test fun `test that usage progress bar should be visible when account is other than BUSINESS or PRO_FLEXI`() { val randomAccountType = enumValues<AccountType>() .filter { it != BUSINESS } .filter { it != PRO_FLEXI } .filter { it != FREE } .random() initMyAccountWithDefaults( MyAccountHomeUIState( accountType = randomAccountType, accountTypeNameResource = defaultAccountNameResource ) ) composeTestRule.onNodeWithTag(testTag = USAGE_STORAGE_PROGRESS, useUnmergedTree = true) .assertIsDisplayed() composeTestRule.onNodeWithTag(testTag = USAGE_TRANSFER_PROGRESS, useUnmergedTree = true) .assertIsDisplayed() } @Test fun `test that my account menus should be visible on first load and default state`() { initMyAccountWithDefaults() composeTestRule.onNodeWithTag(ADD_PHONE_NUMBER).assertDoesNotExist() composeTestRule.onNodeWithTag(BACKUP_RECOVERY_KEY).assertIsDisplayed() composeTestRule.onNodeWithTag(CONTACTS).assertIsDisplayed() composeTestRule.onNodeWithTag(ACHIEVEMENTS).assertIsDisplayed() composeTestRule.onNodeWithTag(LAST_SESSION).assertIsDisplayed() } @Test fun `test that add phone number menu should be visible when phone number can be verified`() { initMyAccountWithDefaults( MyAccountHomeUIState( verifiedPhoneNumber = null, canVerifyPhoneNumber = true, accountTypeNameResource = defaultAccountNameResource ) ) composeTestRule.onNodeWithTag(ADD_PHONE_NUMBER).assertIsDisplayed() } @Test fun `test that add phone number section should be invisible when phone number existed`() { initMyAccountWithDefaults( MyAccountHomeUIState( verifiedPhoneNumber = "1231231231", canVerifyPhoneNumber = false, accountTypeNameResource = defaultAccountNameResource ) ) composeTestRule.onNodeWithTag(ADD_PHONE_NUMBER).assertDoesNotExist() } @Test fun `test that contacts should show correct number of contacts when screen loads`() { val randomContact = Random.nextInt(from = 1, until = 100) initMyAccountWithDefaults( MyAccountHomeUIState( visibleContacts = randomContact, accountTypeNameResource = defaultAccountNameResource ) ) composeTestRule.onNodeWithTag(testTag = "${CONTACTS}_description", useUnmergedTree = true) .assertIsDisplayed() .assert(hasText(fromPluralId(R.plurals.my_account_connections, randomContact))) } @Test fun `test that achievements should not be visible if account type is BUSINESS`() { initMyAccountWithDefaults( MyAccountHomeUIState( accountType = BUSINESS, isBusinessAccount = true, accountTypeNameResource = defaultAccountNameResource ) ) composeTestRule.onNodeWithTag(ACHIEVEMENTS).assertDoesNotExist() } @Test fun `test that add your phone number should render with correct subtitle`() { initMyAccountWithDefaults( MyAccountHomeUIState( canVerifyPhoneNumber = true, accountTypeNameResource = defaultAccountNameResource, ) ) composeTestRule.onNodeWithTag(ADD_PHONE_NUMBER) .assertIsDisplayed() .assert(hasText(fromId(R.string.sms_add_phone_number_dialog_msg_non_achievement_user))) } @Test fun `test that expire or grace alert should not be shown when due is more than 7 days`() { val eightDaysInSeconds = 691200 val dueDateInSeconds = (System.currentTimeMillis() / 1000) + eightDaysInSeconds initMyAccountWithDefaults( MyAccountHomeUIState( isMasterBusinessAccount = true, isBusinessProFlexiStatusActive = false, hasRenewableSubscription = true, subscriptionRenewTime = dueDateInSeconds, accountTypeNameResource = defaultAccountNameResource ) ) composeTestRule.onNodeWithTag(EXPIRED_BUSINESS_BANNER).assertDoesNotExist() } @Test fun `test that expire or grace alert should be shown when due is less than 7 days`() { val fiveDaysInSeconds = 432000 val dueDateInSeconds = (System.currentTimeMillis() / 1000) + fiveDaysInSeconds initMyAccountWithDefaults( MyAccountHomeUIState( isMasterBusinessAccount = true, isBusinessProFlexiStatusActive = false, hasRenewableSubscription = true, subscriptionRenewTime = dueDateInSeconds, accountTypeNameResource = defaultAccountNameResource ) ) composeTestRule.onNodeWithTag(EXPIRED_BUSINESS_BANNER).assertIsDisplayed() } @Test fun `test that payment alert should not be shown when due is more than 7 days`() { val eightDaysInSeconds = 691200 val dueDateInSeconds = (System.currentTimeMillis() / 1000) + eightDaysInSeconds initMyAccountWithDefaults( MyAccountHomeUIState( isBusinessAccount = false, hasRenewableSubscription = true, subscriptionRenewTime = dueDateInSeconds, accountTypeNameResource = defaultAccountNameResource ) ) composeTestRule.onNodeWithTag(PAYMENT_ALERT_INFO).assertDoesNotExist() } @Test fun `test that payment alert should be shown when due is less than 7 days`() { val fiveDaysInSeconds = 432000 val dueDateInSeconds = (System.currentTimeMillis() / 1000) + fiveDaysInSeconds initMyAccountWithDefaults( MyAccountHomeUIState( isBusinessAccount = false, hasRenewableSubscription = true, subscriptionRenewTime = dueDateInSeconds, accountTypeNameResource = defaultAccountNameResource ) ) composeTestRule.onNodeWithTag(PAYMENT_ALERT_INFO).assertIsDisplayed() } @Test fun `test that name text should not exceed bounds when name is too long`() { val sampleText = "JAKJSAKLSJAKLSJAKLSJAKLJBRIJBNDUQWBDYUIWBDIBNDJKSBDSHJKBDDBWI*EBWUIBNJASBDJSBDIBQBAJSBJAKSAJSHJAKSHJAKHSJKAHSJHJKAHSJKAHS" val maxScreenWidth = 720.dp initMyAccountWithDefaults( MyAccountHomeUIState( name = sampleText, accountTypeNameResource = defaultAccountNameResource ) ) val maxWidth = composeTestRule.onNodeWithTag(NAME_TEXT) .assertIsDisplayed() .assertTextEquals(sampleText) .getBoundsInRoot() .width assertThat(maxWidth) .isAtMost(maxScreenWidth - CONTAINER_LEFT_MARGIN - AVATAR_SIZE.dp - HEADER_LEFT_MARGIN - HEADER_RIGHT_MARGIN) } private fun verifyAccountTypeSection( accountType: AccountType, accountName: Int, ) { composeTestRule.setContent { AccountTypeSection( accountDescription = AccountNameMapper()(accountType), showUpgradeButton = true, onButtonClickListener = {} ) } composeTestRule.onNodeWithTag(ACCOUNT_TYPE_SECTION) .assertIsDisplayed().assert(hasAnyChild(hasText(fromId(accountName)))) } } ```
```swift // // StringExtensions.swift // lottie-swift // // Created by Brandon Withrow on 1/25/19. // import CoreGraphics import Foundation extension String { var cgColor: CGColor { let (red, green, blue) = hexColorComponents() return .rgb(red, green, blue) } var lottieColor: LottieColor { let (red, green, blue) = hexColorComponents() return .init(r: red, g: green, b: blue, a: 1.0) } func hexColorComponents() -> (red: CGFloat, green: CGFloat, blue: CGFloat) { var cString: String = trimmingCharacters(in: .whitespacesAndNewlines).uppercased() if cString.hasPrefix("#") { cString.remove(at: cString.startIndex) } if (cString.count) != 6 { return (red: 0, green: 0, blue: 0) } var rgbValue: UInt64 = 0 Scanner(string: cString).scanHexInt64(&rgbValue) return ( red: CGFloat((rgbValue & 0xFF0000) >> 16) / 255.0, green: CGFloat((rgbValue & 0x00FF00) >> 8) / 255.0, blue: CGFloat(rgbValue & 0x0000FF) / 255.0) } } ```
Archibald Campbell MacLaren (1 December 1871 – 17 November 1944) was an English cricketer who captained the England cricket team at various times between 1898 and 1909. A right-handed batsman, he played 35 Test matches for England, as captain in 22 of those games, and led the team to defeat in four Ashes series against Australia. An amateur, MacLaren played first-class cricket for Lancashire, captaining that county for most of his career. As a batsman, MacLaren was one of the leading cricketers of his time and had a reputation as a fast-scoring stylist. In 1895, he scored 424 runs in an innings against Somerset which was the highest individual score in first-class cricket until 1923 and remained a record in English cricket until 1994. Opinions were divided over his captaincy. He was a deep thinker on the game and critics believed him to be tactically advanced, but his pessimism, clashes with the selectors and inability to get the best out of his players led most commentators to rate him a poor leader. After attending public school, MacLaren played intermittently for Lancashire until 1899 as he tried to establish a career outside the sport. Even so, he was appointed county captain in 1894 and was chosen frequently to play for England. An appointment as Lancashire's assistant secretary allowed him to play more regularly from 1900. He first captained England in 1898 as a stand-in, but became captain in his own right in 1899. Under his leadership, England lost to Australia in three consecutive series—1899, 1901–02 and 1902. MacLaren was involved in controversies throughout all three defeats, and was replaced as captain in 1905, although he remained in the team. Business interests kept him out of the game for the following years, but he was invited to lead England once more in 1909. Defeat in that series ended his Test career, and the following year he ceased playing regular first-class cricket. He played occasionally until 1922–23, and had some late successes: in 1921, a team selected and captained by MacLaren defeated a previously unbeaten Australian team, and on his final first-class appearance during a 1922–23 Marylebone Cricket Club tour of New Zealand, he scored 200 runs. MacLaren had many jobs as he attempted to find ways to support his cricket, family and lifestyle. At various times, he worked as a teacher, a journalist and a cricket coach. For many years, he was employed as Lancashire's assistant secretary but such were his financial worries that he often had to ask for cash advances from the committee, with which he had a stormy relationship. He worked for several years as private secretary to K. S. Ranjitsinhji and he became involved in his employer's financial scandals. Many of MacLaren's later business ventures were failures, and only when his wife came into an inheritance did he and his family live in comfort. Throughout his life, MacLaren was involved in many disagreements and was never popular with teammates. However, he was a hero to the cricket writer Neville Cardus, who wrote prolifically on him. MacLaren died in 1944, aged 72. Early life MacLaren was born on 1 December 1871 in Whalley Range, a fairly prosperous district of Manchester, the second of seven sons to James MacLaren and Emily Carver. His father, a cotton merchant and cricket enthusiast, served as honorary treasurer to the Lancashire team from 1881 until his death in 1900. MacLaren senior encouraged his sons to play cricket. With the aim of improving their ability in the game, MacLaren senior sent Archie and his older brother James to Elstree, a school well-regarded for its coaching. MacLaren's cricket instruction was supplemented during the holidays at Old Trafford Cricket Ground, where his father paid professional cricketers to bowl at him. He was soon selected for the school's cricket team, scored his first century, and was the captain by his final year. From Elstree, MacLaren went to Harrow School in 1886 where he joined James; Geoffrey, their younger brother, followed them but financial difficulties prevented any other family members attending the school. MacLaren had little success in intra-school cricket during his first year there but in 1887, success in trial games resulted in his promotion to the school first eleven. A century in an early match ensured his selection for the important fixture against Eton College at Lord's. Although an inexperienced Harrow team was easily defeated, MacLaren top-scored in both innings with scores of 55 and 67, and in praising his batting, critics suggested he had a bright future. He came top of the school batting averages for the 1887 season. Wet weather in the following two years affected playing conditions, making the cricket pitches slow-paced and difficult to bat on. With little experience of such conditions, MacLaren had a succession of failures. His technique, based at the time on playing forward at the ball, was unsuited to wet pitches and it was only late in 1889 that he made the required technical adjustments and learned to play off the back foot (i.e. stepping backwards to play a shot). During 1890, his final year at Harrow, he captained the team and had his most successful season, scoring over 500 runs at an average of 42.54. In the match against Eton at Lord's, MacLaren once more succeeded when others struggled, and he scored 76 on a difficult pitch. In his four years at Harrow, MacLaren was twice awarded the prize for the school's best batsman, and received awards for his fielding. MacLaren also played football successfully: he captained his House team and played in the school first eleven in 1888 and 1889 before a knee injury forced him to miss the 1890 season. Unlike many of his fellow amateur cricketers in this period, MacLaren did not attend Oxford or Cambridge Universities, where he would have played a high level of cricket; his father could not afford to send him or his brothers there. On leaving Harrow, MacLaren found employment with the Manchester and Liverpool District Bank. Lancashire cricketer Lancashire monitored MacLaren's progress during his time at Harrow. When his season there ended in 1890, he was selected to play for Lancashire in the County Championship. Making his first-class debut on 14 August 1890 in a match against Sussex, he scored 108 runs on a difficult pitch in a relatively fast time of two hours. Although less successful in the remaining games of the season, he finished fourth in the Lancashire averages with 140 runs at an average of 23.33. MacLaren's financial circumstances forced him to keep working at the District Bank, limiting the amount of cricket he played in 1891 and 1892. When he did play for Lancashire, MacLaren was moderately successful. He led the county's batting averages in 1892 and in total scored 548 runs at 27.40. Of his two centuries, the second came when he opened the batting. During the winter of 1892–93, MacLaren studied cotton manufacture in New Orleans; when he returned home, he played more regularly for Lancashire. He scored consistently in 1893, totalling 831 runs at 25.18, had success in the high-profile match against Yorkshire, and led the team in the absence of the regular captain. As a result of his successes, he was selected to play for the North of England in a representative match against the Australian team who were touring England that year. He scored 66, sharing an opening partnership of 121 in 80 minutes with his county colleague Albert Ward. Later in the season, he was chosen to play for the amateur "Gentlemen" team in the prestigious Gentlemen v Players match at Lord's. Before the 1894 season, MacLaren resigned from the bank to play a whole season of cricket. Lancashire at the time were undergoing a period of transition, and the captaincy was unsettled: three men captained the county in the first part of the season. In the absence of other amateurs with county experience who could play regularly, MacLaren was appointed captain. Wisden Cricketers' Almanack observed that MacLaren was young for the position, and largely unproven in cricket, but it supported the decision. After losing his first match in charge, the team improved in the latter part of the season to finish fourth in the Championship. MacLaren finished sixth in the Lancashire averages, and in total scored 1,105 runs at 25.69, but his batting had made little progress since his debut. However, his successful leadership of Lancashire led some press critics to suggest him as a future England captain. At the end of the season, he was a last-minute selection to tour Australia with a team led by Andrew Stoddart. Test cricketer Test debut Approached to organise a touring team by the Australian cricket authorities, Stoddart had been unable to persuade several leading batsmen to join his squad. Stoddart only took 13 men, of whom two were wicket-keepers (only one of whom could realistically play in each match) and one was a lob bowler who did not play any Test matches; this guaranteed MacLaren's selection for all the matches against Australia. Consequently, he retained his place even when his form was poor. In his first game, against South Australia, he scored 228, and hit another half-century in the build-up to the first Test. He made his international debut on 14 December 1894, scoring 4 and 20 as England won despite being asked to follow on. England also won the next game, although MacLaren was caught from the opening delivery of the match, the first time anyone had been dismissed by the first ball of a Test. Australia took the third and fourth Tests to level the series. MacLaren had little personal success, and averaged only 12.50 in the series after four games. By then, MacLaren was in financial difficulties. As an amateur, his expenses were covered by the tour organisers but he received no money for playing. To support him financially, the Lancashire committee had given him £100 before the tour. By the latter stages of the tour, his money was running out; most of it was probably spent betting on horse races, and he sent Lancashire a request for further money. Just before the final Test, he received a £60 advance on his expenses for the upcoming English season. For the fifth Test, he dropped down from opening the batting, which he had done throughout the series, to batting at number five, and responded with his first Test century. Batting with greater caution than usual, he scored 120 before accidentally standing on his own wicket. England won the match to take the series 3–2, amid great public interest in England and Australia. MacLaren scored 240 runs at 26.67 in the Test series, finishing fourth in the English averages. He performed more effectively in the lesser matches, and following some final tour fixtures, he totalled 803 runs at 47.23 in all first-class games. On the six-week outward journey MacLaren met (Kathleen) Maud Power, an Australian socialite and the daughter of a horse racing official. They were married in 1898. World record holder MacLaren returned home via Japan, missing the start of the 1895 cricket season. In his absence, he was named as a "Young Batsman of the Year" in Wisden for his performances in 1894. After playing two games for Lancashire, MacLaren accepted the offer of a teaching job in a preparatory school in Harrow; although still Lancashire's captain, he missed several matches, to the disquiet of its supporters. The team's results were mixed in his absence, and he returned to play Somerset at Taunton. On the first day of the three-day game, MacLaren scored 289 not out in 330 minutes. On the second day, he took his score to 424 before he was dismissed, surpassing the previous highest individual innings in first-class cricket, W. G. Grace's score of 344, made in 1876. MacLaren batted for 470 minutes in total and hit 62 fours and a six. This remained the highest score in first-class cricket until 1923 when Bill Ponsford scored 429 in Australia, and was the largest first-class innings in England until Brian Lara scored 501 in 1994. In total, Lancashire scored 801 runs and won the game by an innings. After a spell of lower scores, MacLaren played several big innings, including three consecutive centuries in the last three games of the season. He ended 1895 top of the national batting averages with 1,229 runs at 51.20. MacLaren was elected a life member of Lancashire in recognition of his achievements. Teaching commitments left MacLaren unavailable for the start of the 1896 season, and his first appearance came in July. Although he had batted only once in the season, he was chosen to play in the second Test match of the summer between England and Australia, a selection made controversial by his lack of cricket. As the Test was played at Old Trafford, the England team was chosen by the Lancashire committee, who recognised that MacLaren would attract spectators as a local player. He was dismissed by the first ball he faced in the first innings, and scored 15 runs in the second as England were defeated. Shortly after the Test, he scored 226 against Kent to take Lancashire to a draw in a match they seemed likely to lose. This was enough for him to retain his place in the team for the final Test match, where he scored 20 and 6. He batted effectively for the rest of the season, finishing with 713 runs for Lancashire at 54.85. Critics praised his batting, but his absences may have prevented the team from winning the Championship; they finished second. In all first-class matches, he scored 922 runs at 36.88. Second tour of Australia MacLaren's teaching duties meant that in 1897 he again missed the start of the cricket season, and he felt it necessary to resign as Lancashire's captain. When he began playing, he scored heavily, including another double century against Kent, and his runs helped Lancashire to win the County Championship: concentrating on aggressive batting, he scored faster than in previous years, and hit 974 runs at 51.26. At the end of the season, MacLaren was included in Stoddart's second Australian touring team. Despite high expectations of success, the Test series was lost 4–1. Although nominally captain, Stoddart played in only two Tests; he was grief-stricken after the death of his mother and disillusioned by the failures of his team. MacLaren, after an unproductive start to the tour, scored 142 and 100 against New South Wales to become the first batsman to score two centuries in the same Australian first-class match. In the absence of Stoddart, he captained the England team in the first Test. He scored 109 in the first innings, batting more cautiously than usual, and 50 not out in the second as England won by nine wickets. His captaincy proved controversial when he refused to recall the Australian batsman Charlie McLeod to the wickets after he was dismissed; McLeod was out to a no-ball but, being deaf, did not hear the umpire's call and was run out when he left his crease. With Stoddart still absent, MacLaren was captain in the second Test. Australia won by an innings, and MacLaren was criticised in the Australian press for complaining about the pitch. Commentators also suggested that he underused the bowling of Ted Wainwright. Stoddart returned for the third and fourth Tests, both of which England lost by an innings. MacLaren scored 124 in the third game, but was mocked in the press after the fourth when he claimed that a fly in his eye caused him to be dismissed. When Stoddart withdrew from the final match, MacLaren once more assumed the leadership. He scored 65 in the first innings but could not prevent Australia winning again. In all first-class matches, MacLaren scored 1,037 runs at 54.57; in the Test matches, he aggregated 488 runs at an average of 54.22. Wisden noted that MacLaren batted "magnificently" and commented: "Of all the English players the one who had the best cause to look back upon the trip with satisfaction was MacLaren." At the conclusion of the tour, on 17 March 1898, he married Power. The wedding attracted media attention and was well attended. The couple later had two sons. England captain Appointment and start of captaincy MacLaren played little cricket in 1898, initially owing to his teaching commitments and the need to establish himself and his wife in a new home. After making his first appearance in July, he did not play again until August. He played nine first-class games, scoring 478 runs at 29.87, before his season was ended by neuralgia. Despite his frequent absences—again he missed the first part of the season—Lancashire re-appointed MacLaren as joint captain for 1899. That summer, the Australians toured England and the first Test took place before MacLaren had played any cricket. For the second game, MacLaren replaced W. G. Grace as England captain; the other candidate for the leadership was Stanley Jackson, who was senior to MacLaren at Harrow and had preceded him into the England side, but MacLaren was favoured owing to his previous experience in the role with Lancashire and England. Australia comfortably won the second Test, and on his first appearance of the season, MacLaren scored 4 runs opening the innings on the first day. In the second innings, he moved down the order to number six, but he came in to bat when England trailed heavily and had lost four wickets. He batted for around 150 minutes to score 88 not out. The Wisden match report stated: "There was ... some risk in playing MacLaren, who had not so far taken part in any first-class cricket during the season. In this case however, the [selection] committee had reason to congratulate themselves, MacLaren playing a magnificent second innings and making a great, though fruitless, effort to save the game ... Never has MacLaren played a greater innings." Afterwards, MacLaren scored a century in difficult batting conditions against Yorkshire. Jackson did not play in this game, and initially refused to play for England in the third Test; the press attributed this to jealousy of MacLaren and anger at being passed over for the captaincy. The third Test was drawn owing to poor weather, but England's revival continued in the next game, which was drawn with England in a dominant position. The final match was also drawn, but while England lost the series 1–0, critics believed the team had recovered from a poor start to the summer and held the ascendancy in the final three games. MacLaren's only score over fifty was that in the second Test, and he finished the series with 164 runs at 32.80. In all first-class cricket, he made 814 runs at 32.56, including two centuries against Yorkshire. Full-time cricketer In late 1899, MacLaren joined a private cricket tour of America and Canada organised by the cricket-playing Indian prince Ranjitsinhji. The following March, he was appointed as an assistant secretary at Lancashire. The position was a sinecure; his main role was to coach the first eleven which effectively meant that he was paid to play cricket, despite his amateur status. Surviving records do not indicate his salary, but some sources suggest he was paid comfortably more than Lancashire's leading professionals. In addition, MacLaren worked as a journalist for the Daily Express, reporting on matches in which he played, a common practice at the time for amateurs. Resuming sole control over the Lancashire side, and freed from his teaching responsibilities, MacLaren played from the beginning of the 1900 season, planning meticulously in a bid to lead Lancashire to the County Championship. His batting form suffered initially, but the team dominated the start of the season. Commentators gave much of the credit to MacLaren's captaincy. However, he was severely criticised for conservative tactics in one game, when he was reluctant to attempt to force a win. In the latter stages of the season, MacLaren scored prolifically, making a succession of high scores at rapid pace. He ended the 1900 season with 1,554 runs at 36.13. During that season, the leading Lancashire bowler Arthur Mold had been no-balled for throwing, but MacLaren defended him in the press. At a meeting of county captains in December, MacLaren was the only representative to defend the legality of Mold's bowling action, and in 1901, Mold was again no-balled and his career was effectively over. MacLaren struggled with injury in 1901, and his batting form suffered. He frequently dropped low in the batting order, and it was late in the season before he began to score runs regularly. His captaincy was criticised after some tactical decisions which were either unconventional or unsuccessful, and he clashed with the Lancashire committee over the poor state of Old Trafford's pitch. In total, he scored 1,069 first-class runs at 31.44. MacLaren was invited by the Melbourne Cricket Club to bring a team to Australia during the English winter of 1901–02. This was the last privately organised team to represent England at Test level in Australia, with subsequent ones playing under the colours of the MCC. Many leading players were unavailable—Yorkshire's Wilfred Rhodes and George Hirst were not permitted to tour by their captain Lord Hawke. The team was judged to be weak, but contained several players at the beginning of their careers who went on to success at Test level. Sydney Barnes was chosen by MacLaren after playing only a handful of county matches. Barnes' success on his single appearance for Lancashire in 1901 convinced MacLaren of his worth, to the surprise and disparagement of commentators, most of whom had never seen him. Barnes began the tour well, but did not get on with his captain. During a storm on part of the sea journey, MacLaren, speculating on their chances of survival, commented to a team member: "If we go down, at least that bugger Barnes will go down with us." The team lost their first match and continued to struggle. MacLaren clashed with authorities in Melbourne over his right to choose an umpire, but he began to bat well at Sydney, where he scored 145 and 73 in a tour match. In the first Test, MacLaren shared a century opening partnership with Tom Hayward and scored 116 to become the first man to score four Test centuries. This was the last Test century by an England captain in Australia for 57 years. Barnes bowled with great success; Colin Blythe and Len Braund, like Barnes chosen by MacLaren and making their Test debuts, performed effectively and England won by an innings. The remaining four Tests were lost as the team suffered from a lack of effective bowlers. MacLaren severely overbowled Barnes, who took 13 wickets, in the second Test; the bowler was injured in the next game and took no further part on the tour. MacLaren was successful with the bat. He scored 92 in the fourth Test, made centuries in the two first-class games played in between the Test matches, and finished top of the batting averages. Critics judged that his team had performed well despite the heavy defeat, and his captaincy attracted praise. In addition, the team were considered to be the best fielding side to visit Australia. In the Test series, MacLaren scored 412 runs at 45.77, while in all first-class matches he hit 929 runs at 58.06. Before the tour began, MacLaren resigned as Lancashire's captain and assistant secretary, owing to his concern for the health of his wife. Journalists speculated that MacLaren would join the Hampshire team as assistant secretary, as he lived in that county, or even move to Australia. Lancashire selected a replacement captain, but when MacLaren returned to England, he re-committed to the club, stating the visit to Australia had improved the health of his wife, and he was reappointed. Ashes series of 1902 MacLaren began the 1902 season well and, facing an Ashes series against Australia, began planning for the Tests; he arranged to receive reports on prospective players from both sides. England dominated the first Test, scoring 376 and bowling Australia out for 36; rain prevented a result and also heavily curtailed the drawn second Test. The team for the third Test, played in Sheffield, was to be chosen from 12 players picked by the selectors, with the final place contested between Bill Lockwood and Schofield Haigh. However, on the morning of the match, MacLaren, with the approval of the selector Lord Hawke, summoned Barnes from Manchester to play instead of either. The move was unpopular with spectators—their favoured choice, Haigh, was a Yorkshire player—but Barnes took six wickets in the first innings, although injury reduced his effectiveness in the second innings. England were bowled out in poor light—MacLaren's biographer Michael Down suggests that part of the blame lies with him for not appealing against the light—and needed an unlikely 339 runs to win in their second innings. MacLaren changed the batting order, asking Gilbert Jessop to open the batting. Jessop scored fifty, and MacLaren scored 63, but England lost by 143 runs. Following the defeat, the England selectors made several changes for the fourth Test; both Barnes and Jessop were left out. MacLaren favoured Jessop's inclusion but the selectors considered him unreliable. Although Barnes was not fully fit, later commentators suggested the selectors omitted him because of MacLaren's actions at Sheffield. A further player was added to the squad in case the pitch was affected by rain before the match, but rather than choosing Haigh, the leading wet-pitch bowler in the country, Hawke insisted that Sussex's Fred Tate was included—critics have suggested that Hawke wanted to prevent Haigh's absence from the Yorkshire team, of which Hawke was captain, given the unlikeliness of the extra bowler being needed. According to the cricket writer Neville Cardus, when MacLaren saw the list of players in the team, he responded: "My God, look what they've sent me". MacLaren was angry with Hawke, and when it rained before the match, included Tate in the final eleven at the expense of George Hirst, a leading all-rounder. Gibson suggests that Tate was included by the selectors only "because they thought MacLaren could not possibly pick him" and so he could not make any further late changes to the team; MacLaren, according to Gibson, in turn included Tate out of spite. Other writers have suggested that MacLaren, as a Lancastrian, preferred a Sussex player to a Yorkshire one. Australia won the toss. The match began in damp conditions, and before the pitch began to dry, at which point it would become extremely difficult for batting, the Australian opening batsmen scored 135 in 90 minutes; Australia's total reached 173 for one wicket at lunch, and Victor Trumper scored a century in that time. MacLaren was subsequently criticised for allowing Australia to score so quickly, but claimed that his carefully planned strategy was rendered obsolete when Trumper began to strike the ball out of the ground. MacLaren commented: "I couldn't very well have had a man fielding in the bloody practice ground, now could I?" The bowlers recovered the situation to some extent, and following a century from Jackson, England trailed by 37 runs after the first innings. In the second innings, Australia collapsed to the England bowlers, but Tate dropped a crucial catch while stationed by MacLaren at the edge of the field. MacLaren also received criticism for this, as Tate was unaccustomed to fielding on the boundary. Gibson notes that MacLaren "later spent much breath defending himself on this point"; although it is not clear how Tate came to be moved—a later interpretation is that MacLaren moved Tate there rather than ask an amateur player to cross the field for a few deliveries—most commentators agree that this was the turning point of the match. England were left needing 124 runs to win. MacLaren opened the batting, having batted at number four in the first innings, and tried to score quickly, but was caught from a big hit. According to Gibson, he returned to the dressing room in fury, throwing his bat across the room and saying that he had "thrown away the match and the bloody rubber [series]". Gibson suggests that the implication that only MacLaren could have guided England to victory must have had a demoralising effect on the remaining batsmen, and speculates that he felt guilty over the composition of a team that looked likely to lose. Gibson comments: "This does not say much for MacLaren as a captain. Indeed, it has always seemed to me a shocking performance, from the choice of the team to the chuck of the bat." Wickets continued to fall and Tate, the last batsman, was bowled when England needed four runs to win. England won the final match by one wicket, but lost the series 2–1. While contemporary critics did not blame MacLaren, the cricket authorities were less happy. MacLaren believed that the choices of the selectors had made it impossible to win, and continued to write about the series for many years. He finished the series with 198 runs at 28.28, and ended the season with 1,254 first-class runs at 32.15. Cricketing decline Replacement as England captain MacLaren took a new job with a wine merchant which allowed him to complete a full season in 1903. Wet weather caused many difficult pitches for batting, and MacLaren was often the only Lancashire batsman able to cope with the conditions. His highest-profile success came when he captained the Gentlemen against the Players at Lord's. When his team faced defeat on the final day on a difficult pitch, he scored 168 not out and shared a partnership of 309 with C. B. Fry in less than three hours. This innings was later praised as one of his finest. He ended the season with 1,886 runs at 42.86, and Lancashire finished fourth. However, his success with the bat was overshadowed by controversy over the England captaincy. MacLaren originally planned to tour Australia with another private team in the winter of 1903–04, but withdrew over his concerns that there was not enough strong bowling available. Frustrated with MacLaren, the cricket authorities in Melbourne asked the MCC, via Pelham Warner, to organise their own team. MacLaren was not offered the captaincy—Warner was chosen in June 1903 when Jackson proved unavailable. Newspaper rumours suggested that Lord Hawke played a part in this decision, and that MacLaren's recent paid role for Lancashire counted against him. The press favoured MacLaren, and Warner was widely criticised; one journal noted that he was "condemned as an interloper and a nonentity". The cricket establishment was less sympathetic to MacLaren. After publicly vacillating over the summer, he eventually decided not to tour under Warner, whom he perceived to be his junior. The tour proved a great success for Warner, and his team won the Test series. In 1904, MacLaren led Lancashire to victory in the County Championship, their only such success under his captaincy. Unusually for a Championship-winning team, the club relied heavily on batting rather than bowling. MacLaren played several big innings, scoring at a rapid pace, as his team began the season with a string of victories. Their form faded later in the season, but they remained unbeaten. In all first-class cricket, MacLaren scored 1,191 runs at 31.34. At some point during the season, he was asked by Ranjitsinhji, a close friend, to become his private secretary, and both men travelled to India during the winter of 1904–05. Ranjitsinhji at the time was pursuing his claim to the throne of Nawanagar, and he remained in India when MacLaren returned to England for the 1905 cricket season. The Australians toured England in 1905, but MacLaren was again passed over for the England captaincy; the team was captained by Jackson and won the series 2–0. MacLaren began the season well and played in the first Test. Australia led by 25 runs after the first innings, as England struggled to play the pace of Albert Cotter. According to a story later told by Neville Cardus, before the second innings he saw MacLaren muttering: "Cotter! I'll bloody Cotter him!". MacLaren attacked Cotter's bowling, and overcame the defensive bowling tactics used by Australia to slow down the game. He scored 140, his highest Test innings and only Test century in England. When Australia batted, Bernard Bosanquet took eight wickets to bowl England to a win; it was MacLaren's suggestion that Jackson persist with Bosanquet's bowling when it was initially unsuccessful. MacLaren scored 56 and 79 in the drawn second Test, but did not play in the third owing to injury. He played in the final two Tests but accomplished little. In the series, he scored 303 runs at 43.28. Jackson later wrote that MacLaren was an invaluable tactical aid during the series. Lancashire ended the season second in the Championship, and opened a testimonial fund for MacLaren which raised over £800 by the end of the season. He later clashed with committee members who were unhappy with his decision to use the money to buy a motor car. At the end of the season, MacLaren resigned the captaincy of Lancashire, but was persuaded to continue by the committee. In total during 1905, he scored 1,522 runs at an average of 35.39 in all first-class cricket. Private secretary to Ranjitsinhji A combination of injuries and work reduced the amount of cricket MacLaren played after 1905. He missed most of Lancashire's matches in June and July 1906. He returned against Middlesex at Lord's in August, but was involved in mild controversy when he declined to put Middlesex's batsmen under pressure when chasing a small but challenging total to win the game; this may have arisen from his dislike of Lord's and the figures in authority there. MacLaren ended the 1906 season with 599 runs at 20.65. In the winter of 1906–07, MacLaren returned to India to work for Ranjitsinhji. In January 1907, he wrote to Lancashire to inform them of his reduced availability for 1907; even so, the committee retained him as captain. In February, Ranjitsinhji was named as the new ruler of Nawanagar. MacLaren attended his installation on 11 March—MacLaren and the politician Arthur Priestley were the only English attendees—and did not return to England until mid-June, although he informed Lancashire that his absence in India was to recover from an illness. He resumed the captaincy of Lancashire, and made a good start with scores of 47 and 92 in his second match, but his form faded. One match provoked a public row between MacLaren and Lord's. MacLaren captained Lancashire against Middlesex at Lord's in July; rain restricted play on the first day of the three-day game, and at the start of the second day, the umpires ruled that the waterlogged pitch remained unfit to play on. Some spectators came on to the pitch to look for themselves, then protested outside the pavilion. The incident was defused by the ground authorities, but the following day MacLaren told the press: "Owing to the pitch having been deliberately torn up by the public, I, as captain of the Lancashire eleven, cannot see my way to continue the game, the groundsman bearing me out that the wicket [pitch] could not be again put right." Lancashire would not play—although all decisions about fitness for play should have been made by the umpires, not MacLaren—and the match was drawn. The incident provoked discussion in the press, but most critics agreed that MacLaren was in the wrong. MacLaren subsequently scored his first century for two years, but he did little in the remainder of the season, at the end of which he again resigned the captaincy of Lancashire, conscious of his failing form and fitness. In all first-class cricket in 1907, he scored 829 runs at 26.74. Much of MacLaren's time was now taken up working for Ranjitsinhji, who visited England between October 1907 and December 1908. MacLaren played just nine matches in 1908; Lancashire were eager for him to play, but he had little impact. His greatest success came for the Gentlemen against the Players at the Oval, when he shared a partnership of 141 with C. B. Fry. In total, he scored 428 runs at an average of 28.53. Meanwhile, Ranjitsinhji lived extravagantly in Sussex, running up huge bills and ignoring most attempts to make him pay. MacLaren was involved in several cases which resulted in either legal action or complaint to the India Office. When an artist had to go to court to make Ranjitsinhji pay for work she had done, MacLaren's attempts to delay and obstruct her caused the India Office, in its adjudication, to describe him as Ranjitsinhji's "ridiculous private secretary". In October, MacLaren was taken to court himself over non-payment of rent. He had a house close to Ranjitsinhji's residence, and claimed in court that Ranjitsinhji rented the house on his behalf, and, as a ruling prince, could not be prosecuted. The magistrates disagreed, ruled MacLaren liable, and forced him to pay—although Ranjitsinhji probably paid for him. In his biography of Ranjitsinhji, Simon Wilde suggests that MacLaren had to work very hard for his employer in this period, and found little time for cricket. In addition, his batting form was poor throughout, and he seemed to be in bad physical condition when he occasionally found time to play. Before Ranjitsinhji returned to India, MacLaren resigned as his secretary—although he went with him to India for a holiday. According to Wilde, the resignation was to allow MacLaren to play more regularly, but "he never really recovered his form". In summarising Ranjitsinhji's life at this time, Wilde suggests that his unreliability with money was quite calculated, and writes: "Many of his off-the-field exploits with A. C. MacLaren ... will probably never be known, but it seems clear that sometimes they were not averse to conducting themselves in the fashion of E. W. Hornung's fictional character Raffles, the cricketing burglar." Return as England captain For the 1909 season, MacLaren worked to improve his fitness prior to that summer's Test series against Australia. Jackson was first choice to lead the England team, but when he was unavailable, MacLaren was appointed captain, to the approval of critics and the public. MacLaren began the season well for Lancashire, and as Australia struggled in their early tour matches, England began the Tests as favourites to win. England won the low-scoring first match; the press praised MacLaren's deployment of fielders. In England's second innings Jack Hobbs, batting with Fry—whom MacLaren promoted to open the batting having done so himself in the first innings—scored the required runs to complete a ten-wicket win. Hobbs was making his first Test appearance in England, despite MacLaren's reluctance to include him in the team. The England selectors made several changes to the team for the second Test. Colin Blythe, a crucial bowler to the team, withdrew before the game. Other players were left out whom most commentators believed should have played, and the bowling attack was packed with medium-paced bowlers of a similar style. The report in Wisden suggested: "Never in the history of Test Matches in England has there been such blundering in the selection of an England eleven". The selectors later implied the controversial choices were at the behest of MacLaren, although other evidence suggests that MacLaren did not get the team he requested. England lost the game; MacLaren's reputation suffered and commentators began to blame him for the defeat. He offered his resignation, but the selectors retained him as captain and restored some of the players omitted from the second Test. When England lost the third Test after the batsmen failed, not helped by MacLaren's poor form, critics questioned his place in the team. MacLaren tried to excuse his position, suggesting in the press that he knew the team would struggle and played "in spite of my personal wishes". He also implied that the team's selection was out of his hands. When the fourth Test was rained off, England could not win the series and so Australia retained the Ashes. The final match of the series was drawn, mainly because the pitch heavily favoured batting. MacLaren was involved in another selection controversy when the fast bowler Claude Buckenham was left out of the England team at his instigation. The Wisden match report described this decision as "so grave a blunder that it is difficult to find words in which to speak of it." The Wisden editor, Sydney Pardon, commented: "A fatal blunder was committed in leaving out Buckenham—a blunder for which it was generally understood that MacLaren was responsible. Experts occasionally do strange things and this was one of the strangest. The idea of letting England go into the field in fine weather, on a typical Oval wicket, with no fast bowler except Sharp touched the confines of lunacy." Further issues arose over MacLaren's handling of his bowlers, and Wisden suggested "MacLaren was sadly at fault in his management of the England bowling". Douglas Carr, a 37-year-old, was called into the team after some success in preceding games and on the premise that the Australians would be unable to play his googly. After Carr had initial success, MacLaren kept him bowling for a long period until the player tired and was easily punished by the batsmen. In his only innings, MacLaren scored 12, and when the match ended, much of the blame for England's failures was apportioned to him. In the series, he scored 85 runs at 12.14. The Oval match was his final Test match; in 35 games he had scored 1,931 runs at 33.87. He ended the season with 613 runs at 19.77. Retirement from regular cricket MacLaren played regularly for Lancashire at the start of 1910, but his poor form continued until midway through the season, when he scored centuries in successive matches. He played once more for Lancashire and once for the "Gentlemen of England" before withdrawing from first-class cricket for the season, in which he scored 345 runs at 26.53. This was effectively the end of his Lancashire career and he played only sporadically for the team afterwards. He continued to play cricket, including a tour of Argentina with the MCC in 1910–11. He also played for the team of the businessman Lionel Robinson, including some first-class games, over the following seasons. During the 1914 season, MacLaren attempted to return to the Lancashire team, possibly to boost the circulation of a magazine for which he was writing. He appeared in one county match, without success, although he continued to play in other first-class games for the MCC and other teams. Later career Final cricket matches After MacLaren stopped playing regularly for Lancashire, he formed a business partnership with J. N. Pentelow, a cricket writer. Pentelow was the owner of The World of Cricket, a cricket magazine, and in 1914 MacLaren joined him in an attempt to improve its circulation. MacLaren was officially known as the editor of the publication and Pentelow his assistant, but the latter did most of the work. Pentelow was already struggling to keep the magazine going, but matters worsened after MacLaren joined. Pentelow's debts increased and by the end of 1914, the business folded; although details are obscure, Down suggests that "MacLaren's characteristic unreliability with money left Pentelow very much in the lurch." During the First World War, MacLaren joined the Royal Army Service Corps as a lieutenant and worked in the Manchester area recruiting men into the army. He was promoted to captain before leaving the Army on health grounds. After the war, he was employed as cricket manager for Lionel Robinson and wrote for various newspapers and cricket publications. MacLaren and his family lived for a time on Robinson's estate when their financial situation was poor. He advised Robinson on the best way to prepare cricket pitches and to organise matches which might bring about Robinson's greater acceptance in society. As part of this process, MacLaren arranged for the 1921 Australian touring team to play at Robinson's cricket ground against a team selected and captained by MacLaren himself. The Australians struggled against MacLaren's team, but went on to dominate the Test matches against England; MacLaren insisted throughout the summer that the Australian team was not as strong as it appeared, and that younger English players should be chosen. Eastbourne Cricket Club invited him to captain a team named "An England XI" against the tourists following the conclusion of the Tests. He was dismissed by critics when he claimed that he could beat the Australian team; prior to the game, the Australians were undefeated on the tour and had won 22 of their 36 games. MacLaren planned meticulously for the match; he chose an all-amateur team, selecting spin bowlers noted for their reliability and excellent fielders. Although bowled out for 43 in their first innings, MacLaren's team came back strongly to win by 28 runs, the touring team's first defeat, although his batting contribution was slight. Coach and senior figure Lancashire appointed MacLaren as coach for the 1922 season, to popular acclaim; he also captained the Lancashire second team. Even before he began work, his poor financial situation forced him to request two advances on his salary. As a coach, MacLaren was autocratic and demanding, but encouraged the players to think for themselves. He was unpopular with some players and clashed frequently with the Lancashire committee. During the winter of 1922–23, the MCC organised two cricket tours—a Test playing tour to South Africa and a tour to Australia and New Zealand intended to give experience to young, promising cricketers. MacLaren was chosen to captain the latter team on account of his experience and his success with young cricketers during his win over the Australians in 1921. He was given a good reception by the crowds when he played and press reports praised his tactical awareness. The team was undefeated in matches in New Zealand. Against the full New Zealand team, MacLaren scored 200 not out in 264 minutes in his final first-class innings; the effort placed a strain on his knee and he was unable to play again on the tour. He ended his first-class career with 22,236 runs at an average of 34.15. When the team returned to play more matches in Australia, MacLaren became involved in controversy for criticising the standards of play in New Zealand and for comments made in the press there. He also queried the first-class status of Bill Ponsford's record innings of 429, scored against Tasmania. On the journey home, MacLaren sent a message to Lancashire asking for more money; the committee declined to send the sum and shortly afterwards terminated his contract as coach. Lancashire told the press that MacLaren's knee injury meant that he could not continue. Final years In the following years, MacLaren and his family struggled financially. His wife's family sometimes sent money, but MacLaren often spent extravagantly whenever he had funds. On one occasion, when paid for writing an article, he moved out of his accommodation into an expensive hotel, and threw a dinner party for his friends. He ran up many debts—including an unpaid champagne bill at Old Trafford Cricket Ground in 1923—and borrowed money from friends. He supplemented his wife's income through working as a journalist and a coach. Among other business ventures, he designed a cricket bat, showed specially shot cricket films, briefly owned a hotel and attempted to start a horse bloodstock agency. He continued to play club cricket and in 1924–25 he managed a privately organised tour of South Africa. Shortly before the Second World War, MacLaren's wife inherited a large sum of money which enabled them to live in comfort. They bought an estate at Warfield Park near Bracknell in Berkshire and the couple were able to live in the extravagant manner he had always wanted. Around this time, on a visit to America, MacLaren made a brief appearance in the Hollywood film The Four Feathers, which starred his friend, former cricketer C. Aubrey Smith. In the 1940s, his health began to fail. He was hurt in a car crash and then contracted cancer. He died on 17 November 1944, aged 72; his wife died a few months later. Style, technique and captaincy MacLaren's obituary in The Times stated that he was "one of the outstanding opening batsmen of all time". As a batsman, he had a reputation for stylishness, but his technique was based on scoring runs safely. He always tried to seize the initiative in a game. Batting with his head slightly raised, he drew his bat back unusually far, which provided the power to his shots, and in particular his drives. He scored runs quickly, mainly through his ability to score from good length balls. When playing a shot, he either stepped right forward or moved far back in the batting crease and having hit the ball, he followed through with the bat, often holding his pose for effect. These qualities, and his quick footwork, made him effective on difficult batting pitches. One of his most highly regarded shots was the hook. In later years, Cardus described the shot: "To see MacLaren hook a fast ball ... from the front of his face, was in those days an experience which thrilled me like heroic poetry; he didn't merely hook the ball, he dismissed it from his presence." Cardus, for whom MacLaren was a boyhood hero, wrote prolifically about him in later years; he called one such essay on MacLaren "The Noblest Roman", and judged him among the best of all batsmen. Gideon Haigh suggests: "If ever a cricketer was the creation of a single writer, it is MacLaren, the luminous majesty with which he is associated owed in very large degree to his youthful acolyte Neville Cardus." MacLaren was also a highly proficient fielder, initially in the outfield but later at slip. Critics have looked less favourably on MacLaren as a captain. When he assumed the leadership of England, the press were reporting on the tactical performance of captains for the first time. MacLaren was among the first captains to study tactics. However, judgements on his effectiveness have varied greatly. For most of his career, he was regarded as an excellent captain. Contemporaries praised his tactical awareness; he planned minutely, and organised his fields extremely carefully to prevent batsmen scoring through blocking their favourite shots, a technique practically unheard of at the time. He liked to alter the batting order, a tactic which often divides critics, although it frequently succeeded for MacLaren. He was less successful in managing his team. Regarded as a pessimist, he openly showed disappointment at the composition of his sides, and became downcast when the course of the match was running against him. Some of those who played under him thought that his sides were unhappy ones which operated without joy and solely concentrated on winning. He encountered many difficulties over selection; he often promoted cricketers whom he considered to show potential and consequently railed against committees which did not provide him with the players he wanted. Down suggests that MacLaren was usually correct, being more experienced and a better judge than most of those who chose the teams. Peter Wynne-Thomas describes MacLaren's approach to selection as "unorthodox", and writes that while his ideas were sometimes successful, they failed badly at other times. Apart from his own failings, MacLaren had a reputation as an unlucky captain, both in terms of losing important players to injury and illness before vital games, and in the frequency with which he lost the toss before a match. Nor was MacLaren particularly popular; in later years, several people for whom he had been a hero changed their opinion once they met him. In his history of the club, Peter Wynne-Thomas describes MacLaren as the dominant figure in Lancashire cricket from his debut until the First World War. Gibson accepts that MacLaren was tactically a good captain, but observes that in his 12 seasons as leader of a strong Lancashire team, he only once won the County Championship. In addition, as the appointed captain in four series against Australia, he was beaten in each one, something no other England captain has repeated. Gibson suggests that "the excuses begin to run thin, sieved through such a tale of failure." Gibson summarises that "England under MacLaren must have been a good side to watch, save for the passionate partisans, but an uncomfortable side in which to play ... Bad captain or no, with no doubt ... MacLaren was one of the most entrancing, one of the most glamorous—though that word had not come into fashion in his day—characters of his cricketing epoch." Notes References Bibliography Military personnel from Manchester England Test cricket captains English cricketers English people of Scottish descent England Test cricketers English cricketers of 1890 to 1918 Lancashire cricketers Lancashire cricket captains People from Whalley Range Wisden Cricketers of the Year 1871 births 1944 deaths Norfolk cricketers Marylebone Cricket Club cricketers London County cricketers Gentlemen cricketers North v South cricketers People educated at Harrow School People from Warfield Liverpool and District cricketers Gentlemen of England cricketers Cricketers from Manchester H. D. G. Leveson Gower's XI cricketers C. I. Thornton's XI cricketers L. G. Robinson's XI cricketers A. E. Stoddart's XI cricketers British Army personnel of World War I Royal Army Service Corps officers People educated at Elstree School
```javascript /** * @license Apache-2.0 * * * * path_to_url * * Unless required by applicable law or agreed to in writing, software * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ 'use strict'; var randu = require( '@stdlib/random/base/randu' ); var logcdf = require( './../lib' ); var sigma; var x; var y; var i; for ( i = 0; i < 10; i++ ) { x = randu() * 10.0; sigma = randu() * 10.0; y = logcdf( x, sigma ); console.log( 'x: %d, : %d, log(F(x;)): %d', x.toFixed( 4 ), sigma.toFixed( 4 ), y.toFixed( 4 ) ); } ```
Rev John Blowick (1888–1972) was an Irish missionary priest and theologian. He was one of the founders of the Maynooth Mission to China which was later known as the Missionary Society of St. Columban. Life John Blowick was born 26 October 1888 in Belcarra, County Mayo, to John Blowick a farmer, and Honoria Blowick (née Madden). He was educated at Westport CBS, and St. Jarlath's College in Tuam, County Galway. He trained as a priest in St Patrick's College, Maynooth gaining a first in his BA degree, following postgraduate studies he was appointed a professor of theology at Maynooth in June 1914 after a competitive concursus (he was the last Maynooth professor selected in that way). He co-founded the Maynooth Mission to China with Rev Edward Galvin. In 1918 he founded St Columban's College, Dalgan Park, Shrule, County Galway, as the seminary for the Society, which in 1941 moved to Navan, Co. Meath. Two of Blowick's younger brothers became priests and a third Joseph Blowick entered the politics. Rev Stephen Blowick was Parish priest of Islandeady in Co. Mayo, Rev Peter Blowick served as Rector of St. Columbans College, and Joseph Blowick became TD for Mayo South, was a founder and leader of Clann na Talmhan a small farmers’ party, serving as Minister of Lands in the inter-party governments of 1948-51 and 1954-57. He died on 19 June 1972 at Dalgan Park, Navan, and was buried at the Missionary Society of Saint Columban Cemetery, in Navan. References 1888 births 1972 deaths Academics of St Patrick's College, Maynooth Alumni of St Patrick's College, Maynooth 20th-century Irish Roman Catholic priests 20th-century Irish Roman Catholic theologians Missionary Society of St. Columban People educated at St Jarlath's College Christian clergy from County Mayo Roman Catholic missionaries in China
Kemppainen is a Finnish surname. Notable people with the surname include: Antti-Jussi Kemppainen (born 1989), Finnish freestyle skier Johan Kemp (né Kemppainen, 1881–1941), Finnish gymnast Joonas Kemppainen (born 1988), Finnish ice hockey player Marko Kemppainen (born 1976), Finnish sport shooter Roosa Kemppainen, a character in the Finnish television series Salatut elämät Tuulikki Pyykkönen (born 1963), Finnish cross-country skier Finnish-language surnames
Sandy Shaw is a Canadian politician who was elected to the Legislative Assembly of Ontario in the 2018 provincial election. She represents the riding of Hamilton West—Ancaster—Dundas as a member of the Ontario New Democratic Party. Sandy currently serves as the Critic for Environment, Conservation and Parks. Electoral record |- style="background-color:#fcfcfc;" !rowspan="2" colspan="2" style="text-align:center;" |Candidate !colspan="3" style="text-align:center;" |Popular vote !rowspan="2" colspan="2" style="text-align:center;" |Expenditures |- style="background-color:#fcfcfc;" | style="text-align:center;" | Votes | style="text-align:center;" |% | style="text-align:center;" |±% |- | style="background-color:#88c759;" | | style="text-align:left;" | Aidan Johnson | style="text-align:right;" |3,030 | style="text-align:right;" |34.69% | style="text-align:right;" | – | style="text-align:right;" |$20,215.71 |- | style="background-color:#506621;" | | style="text-align:left;" | Sandy Shaw | style="text-align:right;" |2,390 | style="text-align:right;" |27.36% | style="text-align:right;" | – | style="text-align:right;" |$21,412.40 |- | style="background-color:#00aeea;" | | style="text-align:left;" | Jason Allen | style="text-align:right;" |1,050 | style="text-align:right;" |12.02% | style="text-align:right;" | – | style="text-align:right;" |$9,286.10 |- | style="background-color:#0000FF;" | | style="text-align:left;" | Tony Greco | style="text-align:right;" |1,024 | style="text-align:right;" |11.72% | style="text-align:right;" |−14.7% | style="text-align:right;" | n/a1 |- | style="background-color:#7b353c;" | | style="text-align:left;" | Brian Lewis | style="text-align:right;" |641 | style="text-align:right;" |7.34% | style="text-align:right;" | – | style="text-align:right;" |$9,101.20 |- | style="background-color:#0000ab;" | | style="text-align:left;" | Ira Rosen | style="text-align:right;" |600 | style="text-align:right;" |6.87% | style="text-align:right;" | – | style="text-align:right;" |$14,583.76 |- | style="text-align:right;background-color:#FFFFFF;" colspan="2" |Total votes | style="text-align:right;background-color:#FFFFFF;" |8,870 | style="text-align:right;background-color:#FFFFFF;" |40.74% | style="text-align:right;background-color:#FFFFFF;" |+.04% | style="text-align:right;" | |- | style="text-align:right;background-color:#FFFFFF;" colspan="2" |Registered voters | style="text-align:right;background-color:#FFFFFF;" |21,770 | style="text-align:right;background-color:#FFFFFF;" |100% | style="text-align:right;background-color:#FFFFFF;" | | style="text-align:right;" | |- | style="text-align:left;" colspan="6" |1 These candidates did not submit official Financial Statements and are, therefore, ineligible to run in the 2018 Municipal election Note: All Hamilton Municipal Elections are officially non-partisan. Note: Candidate campaign colours are based on the prominent colour used in campaign items (signs, literature, etc.)and are used as a visual differentiation between candidates. |- | style="text-align:left;" colspan="13" |Sources: City of Hamilton, "Nominated Candidates" |} References Ontario New Democratic Party MPPs 21st-century Canadian politicians 21st-century Canadian women politicians Living people Politicians from Hamilton, Ontario Women MPPs in Ontario 1960 births