text
stringlengths 1
22.8M
|
|---|
The Employers and Workmen Act 1875 (38 & 39 Vict. c. 90) was an Act of the Parliament of the United Kingdom, enacted during Benjamin Disraeli's second administration. The Act extended to Ireland, which at that time was part of the United Kingdom. This Act was repealed for Great Britain by the Statute Law (Repeals) Act 1973.
Background
The Act purported to place both sides of industry in equal footing allowing all breaches of contract to be covered by civil law. Prior to the Act, employers were subjected to civil law which could result in a fine while employees could be subjected to criminal law which may have led to a fine and imprisonment. Disraeli proudly commented, "We have settled the long and vexatious contest between capital and labour" and hoped this would "gain and retain for the Conservatives the lasting affection of the working classes".
Content
Section 3(3) was interpreted by the Courts to allow an award of specific performance for completion of work.
Section 4 was interpreted to mean that a worker who was absent from work could be prosecuted and pay damages to his employer (even if the employer could not show a monetary loss on ordinary principles).
Section 15 noted that in Ireland, the senior judicial officer was the Lord Chancellor of Ireland and the county courts in Ireland were known as the Civil Bill Courts.
See also
UK labour law
Conspiracy, and Protection of Property Act 1875
Nokes v Doncaster Amalgamated Collieries Ltd [1940] AC 1014
References
Thomas James Arnold. The Conspiracy and Protection of Property Act, 1875 (38 & 39 Vict. c. 86), and the Employers and Workmen Act, 1875 (38 & 39 Vict. c. 90). Shaw & Sons. Fetter Lane and Crane Court, London. 1876. Google Books.
George Howell. A Handy-Book of the Labour Laws. Third Edition, Revised. Macmillan & Co. London (and New York). 1895. Chapters 1 to 3. Pages 1 to 36.
External links
Hansard, Second Reading
United Kingdom Acts of Parliament 1875
United Kingdom labour law
1875 in labor relations
Employers
|
Anwar Abdul Ghanee (born 17 September 1980) is a former Maldivian footballer.
Club career
Anwar started his career, playing for Club Valencia, alongside his elder brother Assad and Akram. He suffered a serious knee injury, playing for Valencia in the season opening match of 2005 against New Radiant.
In 2006, he transferred to Victory Sports Club then to New Radiant in 2007.
Anwar agreed to sign for Vyansa in the 2008 season, when the club agreed to give free medical treatments to his injured knee. He played a season with Vyansa and moved to VB Sports Club in 2009, where he continued to play until retirement.
International career
Anwar played for the Maldives national football team alongside his elder brother Assad Abdul Ghanee. He was first called up for the senior national team side in 2003, and he has represented Maldives in FIFA World Cup qualification matches.
Personal life
Anwar is the younger brother of the retired former Maldives national football team captain Assad Abdul Ghanee, and elder brother of New Radiant player Akram Abdul Ghanee.
References
External links
1980 births
Living people
Maldivian men's footballers
Maldives men's international footballers
Club Valencia (Maldives) players
New Radiant S.C. players
Victory Sports Club players
Footballers at the 2002 Asian Games
Men's association football defenders
Asian Games competitors for the Maldives
|
The Troitskaya line (, lit. Trinity) (Line 16, previously Kommunarskaya line, , lit. Communards) is an under-construction line of the Moscow Metro that will initially extend to the settlement of Kommunarka in the Novomoskovsky Administrative Okrug, or New Moscow from Novatorskaya station. Future expansion plans will extend the line to the town of Troitsk. The city is constructing the line with a planned opening in 2023–2024.
Current timeline
The initial stage of the line will cover from Moscow to Kommunarka and have seven stations. The city projects completion in 2023-2024 at a cost of 49.8 billion rubles.
Development
Following the expansion of the city of Moscow, which doubled the city’s size, the city administration sought to increase public transit into the area, known as New Moscow. In 2014, the Mayor of Moscow, Sergey Sobyanin, undertook a visit to China where he signed an agreement with the China Railway Construction Corporation (CRCC) and China International Fund to build a line to New Moscow and finance construction by developing real estate at the stations. With the fall of the ruble in late 2014, negotiations over costs were held up and the Deputy Mayor for Construction Marat Khusnullin announced that the city would continue development using its own funds.
By 2016, the city was again negotiating with CRCC for construction of the line. Rather than CRCC handing the whole project, the city wanted to split the work between Russian and Chinese workers. The parties agreed not only on construction of the Troistkaya line, but also three stations of the Bolshaya Koltsevaya line: Michurinsky Prospekt, Aminyevskaya, and Prospekt Vernadskogo.
On 19 June 2019, construction began on the Universitet Druzhby Narodov station, and on 17 July it was announced that construction work at various stages was already underway at all stations of the first section.
On 26 August 2019 Sergei Sobyanin officially announced the extension of line 16 to the south from Kommunarka to Troitsk. According to him,
the southern section will be long and will have six stations. Part of the section from Sosenki to Desna will be at-ground.
On 25 November 2019 the construction of the first tunnel of the line between "Ulitsa Novatorov" and "Universitet Druzhby Narodov" began. On 4 December 2020, tunneling was completed, the shield passed at a depth of up to .
Stations
References
External links
Moscow Complex for Construction and Urban Development
Moscow Metro Official Website
Moscow Metro lines
|
```c++
/*
This file is part of melonDS.
melonDS is free software: you can redistribute it and/or modify it under
any later version.
melonDS is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
with melonDS. If not, see path_to_url
*/
#include <stdlib.h>
#include <time.h>
#include <stdio.h>
#include <string.h>
#include <optional>
#include <vector>
#include <string>
#include <algorithm>
#include <SDL2/SDL.h>
#include "main.h"
#include "types.h"
#include "version.h"
#include "ScreenLayout.h"
#include "Args.h"
#include "NDS.h"
#include "NDSCart.h"
#include "GBACart.h"
#include "GPU.h"
#include "SPU.h"
#include "Wifi.h"
#include "Platform.h"
#include "LocalMP.h"
#include "Config.h"
#include "RTC.h"
#include "DSi.h"
#include "DSi_I2C.h"
#include "GPU3D_Soft.h"
#include "GPU3D_OpenGL.h"
#include "GPU3D_Compute.h"
#include "Savestate.h"
#include "EmuInstance.h"
using namespace melonDS;
EmuThread::EmuThread(EmuInstance* inst, QObject* parent) : QThread(parent)
{
emuInstance = inst;
emuStatus = emuStatus_Paused;
emuPauseStack = emuPauseStackRunning;
emuActive = false;
}
void EmuThread::attachWindow(MainWindow* window)
{
connect(this, SIGNAL(windowUpdate()), window->panel, SLOT(repaint()));
connect(this, SIGNAL(windowTitleChange(QString)), window, SLOT(onTitleUpdate(QString)));
connect(this, SIGNAL(windowEmuStart()), window, SLOT(onEmuStart()));
connect(this, SIGNAL(windowEmuStop()), window, SLOT(onEmuStop()));
connect(this, SIGNAL(windowEmuPause(bool)), window, SLOT(onEmuPause(bool)));
connect(this, SIGNAL(windowEmuReset()), window, SLOT(onEmuReset()));
connect(this, SIGNAL(windowLimitFPSChange()), window->actLimitFramerate, SLOT(trigger()));
connect(this, SIGNAL(autoScreenSizingChange(int)), window->panel, SLOT(onAutoScreenSizingChanged(int)));
connect(this, SIGNAL(windowFullscreenToggle()), window, SLOT(onFullscreenToggled()));
connect(this, SIGNAL(swapScreensToggle()), window->actScreenSwap, SLOT(trigger()));
connect(this, SIGNAL(screenEmphasisToggle()), window, SLOT(onScreenEmphasisToggled()));
}
void EmuThread::detachWindow(MainWindow* window)
{
disconnect(this, SIGNAL(windowUpdate()), window->panel, SLOT(repaint()));
disconnect(this, SIGNAL(windowTitleChange(QString)), window, SLOT(onTitleUpdate(QString)));
disconnect(this, SIGNAL(windowEmuStart()), window, SLOT(onEmuStart()));
disconnect(this, SIGNAL(windowEmuStop()), window, SLOT(onEmuStop()));
disconnect(this, SIGNAL(windowEmuPause(bool)), window, SLOT(onEmuPause(bool)));
disconnect(this, SIGNAL(windowEmuReset()), window, SLOT(onEmuReset()));
disconnect(this, SIGNAL(windowLimitFPSChange()), window->actLimitFramerate, SLOT(trigger()));
disconnect(this, SIGNAL(autoScreenSizingChange(int)), window->panel, SLOT(onAutoScreenSizingChanged(int)));
disconnect(this, SIGNAL(windowFullscreenToggle()), window, SLOT(onFullscreenToggled()));
disconnect(this, SIGNAL(swapScreensToggle()), window->actScreenSwap, SLOT(trigger()));
disconnect(this, SIGNAL(screenEmphasisToggle()), window, SLOT(onScreenEmphasisToggled()));
}
void EmuThread::run()
{
Config::Table& globalCfg = emuInstance->getGlobalConfig();
u32 mainScreenPos[3];
Platform::FileHandle* file;
emuInstance->updateConsole(nullptr, nullptr);
// No carts are inserted when melonDS first boots
mainScreenPos[0] = 0;
mainScreenPos[1] = 0;
mainScreenPos[2] = 0;
autoScreenSizing = 0;
videoSettingsDirty = false;
if (emuInstance->usesOpenGL())
{
emuInstance->initOpenGL();
useOpenGL = true;
videoRenderer = globalCfg.GetInt("3D.Renderer");
}
else
{
useOpenGL = false;
videoRenderer = 0;
}
updateRenderer();
u32 nframes = 0;
double perfCountsSec = 1.0 / SDL_GetPerformanceFrequency();
double lastTime = SDL_GetPerformanceCounter() * perfCountsSec;
double frameLimitError = 0.0;
double lastMeasureTime = lastTime;
u32 winUpdateCount = 0, winUpdateFreq = 1;
u8 dsiVolumeLevel = 0x1F;
file = Platform::OpenLocalFile("rtc.bin", Platform::FileMode::Read);
if (file)
{
RTC::StateData state;
Platform::FileRead(&state, sizeof(state), 1, file);
Platform::CloseFile(file);
emuInstance->nds->RTC.SetState(state);
}
char melontitle[100];
while (emuStatus != emuStatus_Exit)
{
MPInterface::Get().Process();
emuInstance->inputProcess();
if (emuInstance->hotkeyPressed(HK_FastForwardToggle)) emit windowLimitFPSChange();
if (emuInstance->hotkeyPressed(HK_Pause)) emuTogglePause();
if (emuInstance->hotkeyPressed(HK_Reset)) emuReset();
if (emuInstance->hotkeyPressed(HK_FrameStep)) emuFrameStep();
if (emuInstance->hotkeyPressed(HK_FullscreenToggle)) emit windowFullscreenToggle();
if (emuInstance->hotkeyPressed(HK_SwapScreens)) emit swapScreensToggle();
if (emuInstance->hotkeyPressed(HK_SwapScreenEmphasis)) emit screenEmphasisToggle();
if (emuStatus == emuStatus_Running || emuStatus == emuStatus_FrameStep)
{
if (emuStatus == emuStatus_FrameStep) emuStatus = emuStatus_Paused;
if (emuInstance->hotkeyPressed(HK_SolarSensorDecrease))
{
int level = emuInstance->nds->GBACartSlot.SetInput(GBACart::Input_SolarSensorDown, true);
if (level != -1)
{
emuInstance->osdAddMessage(0, "Solar sensor level: %d", level);
}
}
if (emuInstance->hotkeyPressed(HK_SolarSensorIncrease))
{
int level = emuInstance->nds->GBACartSlot.SetInput(GBACart::Input_SolarSensorUp, true);
if (level != -1)
{
emuInstance->osdAddMessage(0, "Solar sensor level: %d", level);
}
}
if (emuInstance->nds->ConsoleType == 1)
{
DSi* dsi = static_cast<DSi*>(emuInstance->nds);
double currentTime = SDL_GetPerformanceCounter() * perfCountsSec;
// Handle power button
if (emuInstance->hotkeyDown(HK_PowerButton))
{
dsi->I2C.GetBPTWL()->SetPowerButtonHeld(currentTime);
}
else if (emuInstance->hotkeyReleased(HK_PowerButton))
{
dsi->I2C.GetBPTWL()->SetPowerButtonReleased(currentTime);
}
// Handle volume buttons
if (emuInstance->hotkeyDown(HK_VolumeUp))
{
dsi->I2C.GetBPTWL()->SetVolumeSwitchHeld(DSi_BPTWL::volumeKey_Up);
}
else if (emuInstance->hotkeyReleased(HK_VolumeUp))
{
dsi->I2C.GetBPTWL()->SetVolumeSwitchReleased(DSi_BPTWL::volumeKey_Up);
}
if (emuInstance->hotkeyDown(HK_VolumeDown))
{
dsi->I2C.GetBPTWL()->SetVolumeSwitchHeld(DSi_BPTWL::volumeKey_Down);
}
else if (emuInstance->hotkeyReleased(HK_VolumeDown))
{
dsi->I2C.GetBPTWL()->SetVolumeSwitchReleased(DSi_BPTWL::volumeKey_Down);
}
dsi->I2C.GetBPTWL()->ProcessVolumeSwitchInput(currentTime);
}
if (useOpenGL)
emuInstance->makeCurrentGL();
// update render settings if needed
if (videoSettingsDirty)
{
if (useOpenGL)
{
emuInstance->setVSyncGL(true);
videoRenderer = globalCfg.GetInt("3D.Renderer");
}
#ifdef OGLRENDERER_ENABLED
else
#endif
{
videoRenderer = 0;
}
updateRenderer();
videoSettingsDirty = false;
}
// process input and hotkeys
emuInstance->nds->SetKeyMask(emuInstance->inputMask);
if (emuInstance->hotkeyPressed(HK_Lid))
{
bool lid = !emuInstance->nds->IsLidClosed();
emuInstance->nds->SetLidClosed(lid);
emuInstance->osdAddMessage(0, lid ? "Lid closed" : "Lid opened");
}
// microphone input
emuInstance->micProcess();
// auto screen layout
{
mainScreenPos[2] = mainScreenPos[1];
mainScreenPos[1] = mainScreenPos[0];
mainScreenPos[0] = emuInstance->nds->PowerControl9 >> 15;
int guess;
if (mainScreenPos[0] == mainScreenPos[2] &&
mainScreenPos[0] != mainScreenPos[1])
{
// constant flickering, likely displaying 3D on both screens
// TODO: when both screens are used for 2D only...???
guess = screenSizing_Even;
}
else
{
if (mainScreenPos[0] == 1)
guess = screenSizing_EmphTop;
else
guess = screenSizing_EmphBot;
}
if (guess != autoScreenSizing)
{
autoScreenSizing = guess;
emit autoScreenSizingChange(autoScreenSizing);
}
}
// emulate
u32 nlines;
if (emuInstance->nds->GPU.GetRenderer3D().NeedsShaderCompile())
{
compileShaders();
nlines = 1;
}
else
{
nlines = emuInstance->nds->RunFrame();
}
if (emuInstance->ndsSave)
emuInstance->ndsSave->CheckFlush();
if (emuInstance->gbaSave)
emuInstance->gbaSave->CheckFlush();
if (emuInstance->firmwareSave)
emuInstance->firmwareSave->CheckFlush();
if (!useOpenGL)
{
FrontBufferLock.lock();
FrontBuffer = emuInstance->nds->GPU.FrontBuffer;
FrontBufferLock.unlock();
}
else
{
FrontBuffer = emuInstance->nds->GPU.FrontBuffer;
emuInstance->drawScreenGL();
}
#ifdef MELONCAP
MelonCap::Update();
#endif // MELONCAP
winUpdateCount++;
if (winUpdateCount >= winUpdateFreq && !useOpenGL)
{
emit windowUpdate();
winUpdateCount = 0;
}
bool fastforward = emuInstance->hotkeyDown(HK_FastForward);
if (useOpenGL)
{
// when using OpenGL: when toggling fast-forward, change the vsync interval
if (emuInstance->hotkeyPressed(HK_FastForward))
{
emuInstance->setVSyncGL(false);
}
else if (emuInstance->hotkeyReleased(HK_FastForward))
{
emuInstance->setVSyncGL(true);
}
}
if (emuInstance->audioDSiVolumeSync && emuInstance->nds->ConsoleType == 1)
{
DSi* dsi = static_cast<DSi*>(emuInstance->nds);
u8 volumeLevel = dsi->I2C.GetBPTWL()->GetVolumeLevel();
if (volumeLevel != dsiVolumeLevel)
{
dsiVolumeLevel = volumeLevel;
emit syncVolumeLevel();
}
emuInstance->audioVolume = volumeLevel * (256.0 / 31.0);
}
if (emuInstance->doAudioSync && !fastforward)
emuInstance->audioSync();
double frametimeStep = nlines / (60.0 * 263.0);
{
bool limitfps = emuInstance->doLimitFPS && !fastforward;
double practicalFramelimit = limitfps ? frametimeStep : 1.0 / emuInstance->maxFPS;
double curtime = SDL_GetPerformanceCounter() * perfCountsSec;
frameLimitError += practicalFramelimit - (curtime - lastTime);
if (frameLimitError < -practicalFramelimit)
frameLimitError = -practicalFramelimit;
if (frameLimitError > practicalFramelimit)
frameLimitError = practicalFramelimit;
if (round(frameLimitError * 1000.0) > 0.0)
{
SDL_Delay(round(frameLimitError * 1000.0));
double timeBeforeSleep = curtime;
curtime = SDL_GetPerformanceCounter() * perfCountsSec;
frameLimitError -= curtime - timeBeforeSleep;
}
lastTime = curtime;
}
nframes++;
if (nframes >= 30)
{
double time = SDL_GetPerformanceCounter() * perfCountsSec;
double dt = time - lastMeasureTime;
lastMeasureTime = time;
u32 fps = round(nframes / dt);
nframes = 0;
float fpstarget = 1.0/frametimeStep;
winUpdateFreq = fps / (u32)round(fpstarget);
if (winUpdateFreq < 1)
winUpdateFreq = 1;
int inst = emuInstance->instanceID;
if (inst == 0)
sprintf(melontitle, "[%d/%.0f] melonDS " MELONDS_VERSION, fps, fpstarget);
else
sprintf(melontitle, "[%d/%.0f] melonDS (%d)", fps, fpstarget, inst+1);
changeWindowTitle(melontitle);
}
}
else
{
// paused
nframes = 0;
lastTime = SDL_GetPerformanceCounter() * perfCountsSec;
lastMeasureTime = lastTime;
emit windowUpdate();
int inst = emuInstance->instanceID;
if (inst == 0)
sprintf(melontitle, "melonDS " MELONDS_VERSION);
else
sprintf(melontitle, "melonDS (%d)", inst+1);
changeWindowTitle(melontitle);
SDL_Delay(75);
if (useOpenGL)
{
emuInstance->drawScreenGL();
}
}
handleMessages();
}
file = Platform::OpenLocalFile("rtc.bin", Platform::FileMode::Write);
if (file)
{
RTC::StateData state;
emuInstance->nds->RTC.GetState(state);
Platform::FileWrite(&state, sizeof(state), 1, file);
Platform::CloseFile(file);
}
NDS::Current = nullptr;
}
void EmuThread::sendMessage(Message msg)
{
msgMutex.lock();
msgQueue.enqueue(msg);
msgMutex.unlock();
}
void EmuThread::waitMessage(int num)
{
if (QThread::currentThread() == this) return;
msgSemaphore.acquire(num);
}
void EmuThread::waitAllMessages()
{
if (QThread::currentThread() == this) return;
msgSemaphore.acquire(msgSemaphore.available());
}
void EmuThread::handleMessages()
{
msgMutex.lock();
while (!msgQueue.empty())
{
Message msg = msgQueue.dequeue();
switch (msg.type)
{
case msg_Exit:
emuStatus = emuStatus_Exit;
emuPauseStack = emuPauseStackRunning;
emuInstance->audioDisable();
break;
case msg_EmuRun:
emuStatus = emuStatus_Running;
emuPauseStack = emuPauseStackRunning;
emuActive = true;
emuInstance->audioEnable();
emit windowEmuStart();
break;
case msg_EmuPause:
emuPauseStack++;
if (emuPauseStack > emuPauseStackPauseThreshold) break;
prevEmuStatus = emuStatus;
emuStatus = emuStatus_Paused;
if (prevEmuStatus != emuStatus_Paused)
{
emuInstance->audioDisable();
emit windowEmuPause(true);
emuInstance->osdAddMessage(0, "Paused");
}
break;
case msg_EmuUnpause:
if (emuPauseStack < emuPauseStackPauseThreshold) break;
emuPauseStack--;
if (emuPauseStack >= emuPauseStackPauseThreshold) break;
emuStatus = prevEmuStatus;
if (emuStatus != emuStatus_Paused)
{
emuInstance->audioEnable();
emit windowEmuPause(false);
emuInstance->osdAddMessage(0, "Resumed");
}
break;
case msg_EmuStop:
if (msg.stopExternal) emuInstance->nds->Stop();
emuStatus = emuStatus_Paused;
emuActive = false;
emuInstance->audioDisable();
emit windowEmuStop();
break;
case msg_EmuFrameStep:
emuStatus = emuStatus_FrameStep;
break;
case msg_EmuReset:
emuInstance->reset();
emuStatus = emuStatus_Running;
emuPauseStack = emuPauseStackRunning;
emuActive = true;
emuInstance->audioEnable();
emit windowEmuReset();
emuInstance->osdAddMessage(0, "Reset");
break;
case msg_InitGL:
emuInstance->initOpenGL();
useOpenGL = true;
break;
case msg_DeInitGL:
emuInstance->deinitOpenGL();
useOpenGL = false;
break;
}
msgSemaphore.release();
}
msgMutex.unlock();
}
void EmuThread::changeWindowTitle(char* title)
{
emit windowTitleChange(QString(title));
}
void EmuThread::initContext()
{
sendMessage(msg_InitGL);
waitMessage();
}
void EmuThread::deinitContext()
{
sendMessage(msg_DeInitGL);
waitMessage();
}
void EmuThread::emuRun()
{
sendMessage(msg_EmuRun);
waitMessage();
}
void EmuThread::emuPause()
{
sendMessage(msg_EmuPause);
waitMessage();
}
void EmuThread::emuUnpause()
{
sendMessage(msg_EmuUnpause);
waitMessage();
}
void EmuThread::emuTogglePause()
{
if (emuStatus == emuStatus_Paused)
emuUnpause();
else
emuPause();
}
void EmuThread::emuStop(bool external)
{
sendMessage({.type = msg_EmuStop, .stopExternal = external});
waitMessage();
}
void EmuThread::emuExit()
{
sendMessage(msg_Exit);
waitAllMessages();
}
void EmuThread::emuFrameStep()
{
if (emuPauseStack < emuPauseStackPauseThreshold)
sendMessage(msg_EmuPause);
sendMessage(msg_EmuFrameStep);
waitAllMessages();
}
void EmuThread::emuReset()
{
sendMessage(msg_EmuReset);
waitMessage();
}
bool EmuThread::emuIsRunning()
{
return emuStatus == emuStatus_Running;
}
bool EmuThread::emuIsActive()
{
return emuActive;
}
void EmuThread::updateRenderer()
{
if (videoRenderer != lastVideoRenderer)
{
printf("creating renderer %d\n", videoRenderer);
switch (videoRenderer)
{
case renderer3D_Software:
emuInstance->nds->GPU.SetRenderer3D(std::make_unique<SoftRenderer>());
break;
case renderer3D_OpenGL:
emuInstance->nds->GPU.SetRenderer3D(GLRenderer::New());
break;
case renderer3D_OpenGLCompute:
emuInstance->nds->GPU.SetRenderer3D(ComputeRenderer::New());
break;
default: __builtin_unreachable();
}
}
lastVideoRenderer = videoRenderer;
auto& cfg = emuInstance->getGlobalConfig();
switch (videoRenderer)
{
case renderer3D_Software:
static_cast<SoftRenderer&>(emuInstance->nds->GPU.GetRenderer3D()).SetThreaded(
cfg.GetBool("3D.Soft.Threaded"),
emuInstance->nds->GPU);
break;
case renderer3D_OpenGL:
static_cast<GLRenderer&>(emuInstance->nds->GPU.GetRenderer3D()).SetRenderSettings(
cfg.GetBool("3D.GL.BetterPolygons"),
cfg.GetInt("3D.GL.ScaleFactor"));
break;
case renderer3D_OpenGLCompute:
static_cast<ComputeRenderer&>(emuInstance->nds->GPU.GetRenderer3D()).SetRenderSettings(
cfg.GetInt("3D.GL.ScaleFactor"),
cfg.GetBool("3D.GL.HiresCoordinates"));
break;
default: __builtin_unreachable();
}
}
void EmuThread::compileShaders()
{
int currentShader, shadersCount;
u64 startTime = SDL_GetPerformanceCounter();
// kind of hacky to look at the wallclock, though it is easier than
// than disabling vsync
do
{
emuInstance->nds->GPU.GetRenderer3D().ShaderCompileStep(currentShader, shadersCount);
} while (emuInstance->nds->GPU.GetRenderer3D().NeedsShaderCompile() &&
(SDL_GetPerformanceCounter() - startTime) * perfCountsSec < 1.0 / 6.0);
emuInstance->osdAddMessage(0, "Compiling shader %d/%d", currentShader+1, shadersCount);
}
```
|
```javascript
var DEFAULT_WIDTH = 600;
module.exports = {
re: /^https?:\/\/(?:www\.)?pinterest\.com\/((?!pin)[a-zA-Z0-9%_]+)\/?(?:$|\?|#)/i,
mixins: [
"og-image",
"favicon",
"canonical",
"og-description",
"og-site",
"og-title"
],
getLink: function(url, og, options) {
if (og.type !== 'profile') {
return;
}
return {
type: CONFIG.T.text_html,
rel: [CONFIG.R.app, CONFIG.R.ssl, CONFIG.R.html5],
template: "pinterest.widget",
template_context: {
url: url,
title: "Pinterest User",
type: "embedUser",
width: options.maxWidth || DEFAULT_WIDTH,
height: 600,
pinWidth: 120
},
width: options.maxWidth || DEFAULT_WIDTH,
height: 600+120
};
},
tests: [{
// No Test Feed here not to violate "scrapping" restrictions of Pinterest
noFeeds: true,
skipMixins: ["og-title", "og-description"]
},
"path_to_url",
"path_to_url"
]
};
```
|
Śniardwy () is a lake in the Masurian Lake District of the Warmian-Masurian Voivodeship, Poland.
At , Śniardwy is the largest lake in Poland. It was also the largest lake in Prussia, when Warmia-Masuria was under German rule. It is long and wide. The maximum depth is 23 metres (75 feet). There are eight islands on the Śniardwy lake.
Geography
Śniardwy was formed by retreating ice sheet and draining floodwaters occurring as the result of ice calving ahead of the receding glacier. Among the eight islands are: Szeroki Ostrów, Czarci Ostrów, Wyspa Pajęcza, Wyspa Kaczor and others. Surrounding settlements include Popielno, Głodowo, Niedźwiedzi Róg, Okartowo, Nowe Guty, Zdęgowo and Łuknajno.
Among the many inlets, two are named as separate lakes: Warnołty and Seksty. Śniardwy connects with the following lakes: Tuchlin, Łuknajno, Mikołajskie, Roś, Białoławki and Tyrkło. It is surrounded by the system of canals known as Kanały Mazurskie (Masurian Canals), with numerous sluices. Together, they form the Polish Masurian Lake District.
Bibliography
J. Szynkowski, Mazury. Przewodnik, Kengraf Kętrzyn, 2003
Lakes of Warmian-Masurian Voivodeship
|
The Great Festival of Fujisaki Hachimangu Shrine is a festival of Fujisaki-hachimangu at Chūō-ku, Kumamoto every September, characterized by a parade of Shinto priests, followed by groups of followers who chase their horses shouting, "Boshita, Boshita", in earlier times; but now the parade followers, "Dookai Dookai", or other phrases. Recently 17,000 people participated in this festival.
Name
The formal name of this festival is 藤崎八旛宮秋季例大祭, or Fujisaki-hachimangu, autumn great festival. Previously it was called Boshita Matsuri in Japanese, though it is not used officially, because of a view that this comes from "Horoboshita," or Japan destroyed Korea, although Korea was not in the shouting phrase. However, there are other views, as described below in the section entitled Controversy.
The origin of Boshita is not known; decorated horses were not employed, and there was no horse chasing at the time of Katō Kiyomasa. A view states that it had been used since the First Sino-Japanese War. The use of Boshita was claimed at the time of world exhibition at Osaka in 1970, since Japanese of Korean origin felt miserable at the time of the festival. New shouting phrases have been up to the groups which participate; it was decided upon in August 1990.
Parade of Shinto priests
The climax of the autumn great festival of Fujisaki-hachimangu comes on the last day of the festival. It consists of the parade of portable shrines, followed by a parade of samurai re-enactors, and a parade of decorated horses, chased by many followers.
History
This festival originated in Ho-jo-e (the ritual for releasing living beings), a festival of letting wild animals go into the fields, a Buddhist custom, but which was introduced to the Shinto shrines and of which, Ho-jo-e of Iwashimizu Hachiman-gū, Kyoto is well known. The Kami of Fujisaki Hachimangu came from Iwashimizu Hachiman-gū. However, no trace of Ho-jo-e can be found in the present festival.
The Zuibyo, or parade of following samurai, certainly originated from the returning samurai of Katō Kiyomasa from Korea during the Japanese invasions of Korea (1592-1598). Katō Kiyomasa thanked the Kami of the Fujisaki-hachimangu for the safe return by leading the parade of his followers. This custom continued into the Hosokawa clan period, with three important samurai figures: head of followers, head of spears, parade head.
The decorated horses were originally those for Shinto priests (kannushi), twelve in number, and in the Hosokawa clan period, only upper-class samurai families presented horses. The distance from the shrine to the otabisho (destination of the parade) was short, and kannushi did not ride on the horses. Therefore, the decorations on the horses became gradually gala and greater. The decorations on the horses were originally from the symbols of sexual organs. There had been two schools, but only Ando school has been observed. After the Meiji Restoration, decorated horses were prepared by town people, and recently the decorated horses number about 60. In 2007, the horses numbered 67, and following people (seko) numbered 17,000, indicating that this is the biggest festival of Kumamoto city.
Number of horse chasing groups
The Festival
The festival continues for 5 days. On the first day, the head of Fujisakigu believers prays, and there are ceremonies of lion dance dress purification, musical instrument purification and purification of various instruments.
On the next day, there are a tea dedication ceremony and a haiku dedication ceremony. On the third day, Kenpei Sai (a divine ceremony), dedication of Japanese traditional fighting matches such as fencing, and dedication of traditional Japanese dancing. On the fourth day, purification and decorations of horses, dedication of flower arrangement and travelling portable shrines.
On the fifth day is the parade, headed by kannushi, starting at 6 a.m. (starting ceremony), three portable shrines, parades of followers, lion dances, portable shrines carried by children, and finally the groups of decorated horses. Decorated horse group people are dressed in uniforms of their own, dancing with folding fans, drums, trumpets, shouting "Dookai Dookai" (meaning "how about this?"), chasing the decorated horse of their group. Some horses run violently and sometimes injure people nearby. These groups are from town groups, companies, and graduates of schools and other groups.
The order of the parade is determined by drawing lots. Exceptions are the top three groups which exist near the shrine; which must do preparations and cleanup after the festival.
Controversy
Korean language
The phrase "Boshita Boshita" originated in the Korean language. A book entitled History of Kumamoto city, published in 1932, wrote that "Ehekoroboshita" was used as the shouting phrase which came from the Korean language. A Korean association in Kumamoto said that it might mean a great man (Toyotomi Hideyoshi) died.
Erotic origin
The Boshita Boshita was short of Boboshita (did sex) view. In a document by a kannushi of the shrine written in 1870, "Boboshita boboshita was the phrase of horse chasing". Another document written in 1865 "Boboshita Boboshita(did sex) was the phrase of horse chasing".
Japan destroyed Korea
The latter document added that it might be a mistake of Horoboshita. In a letter by Lafcadio Hearn, he wrote that he heard the shouting phrase Korea was destroyed many times, and in a newspaper during World War two that the Japanese people should understand that Japan destroyed Korea, apparently to whip up war sentiment.
1970 Osaka World Exposition
Kumamoto City was going to exhibit a Boshita parade at the 1970 Osaka World Exposition but criticism arose concerning the name of the Boshita festival, since it may mean Japan destroyed Korea. The Osaka World Exposition rejected the Boshita parade. Since then, the problem of the shouting phrase of Boshita had been under discussion.
1989 dispute
This problem was again under fire since the Yomiuri newspaper introduced the Boshita festival in a Korean language book in December 1989. In August, 1990, the Fujisaki shrine audit committee published that it would rate a minus point if a group shouted Boshita. This was reported substantially stopping the shouting of Boshita.
Present status
Many Kumamoto people use of the word Boshita Festival even today, but they do not use "Boshita Boshita" at horse chasing. Some miss the word Boshita even today.
See also
History of Kumamoto Prefecture
References
Higogaku Koza, Fujisaki Festival now and olden times Iwashita C. p 92-105, Kumamoto NichiNichi Shinbun, 2006,
Festivals and modern sociology in religion Tetsuro Ashida, Sekai Shisousha, , 2001, p 64-111
Footnotes
External links
Horse festival
horse festival
autumn festival of Fujisaki Hachiman
Fujisaki Hachimangu Homepage
Kumamoto
Tourist attractions in Kumamoto Prefecture
Shinto festivals
Cultural festivals in Japan
Religious festivals in Japan
Parades in Japan
Festivals established in the 16th century
Autumn events in Japan
1592 establishments in Asia
|
```javascript
/**
* @license Apache-2.0
*
*
*
* path_to_url
*
* Unless required by applicable law or agreed to in writing, software
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/
'use strict';
// MODULES //
var setReadOnly = require( '@stdlib/utils/define-nonenumerable-read-only-property' );
var isFunction = require( '@stdlib/assert/is-function' );
var isNumber = require( '@stdlib/assert/is-number' ).isPrimitive;
var isIteratorLike = require( '@stdlib/assert/is-iterator-like' );
var iteratorSymbol = require( '@stdlib/symbol/iterator' );
var format = require( '@stdlib/string/format' );
// MAIN //
/**
* Returns an iterator which performs element-wise subtraction of two or more iterators.
*
* ## Notes
*
* - If provided a numeric value as an iterator argument, the value is broadcast as an **infinite** iterator which **always** returns the provided value.
* - If an iterated value is non-numeric (including `NaN`), the returned iterator returns `NaN`. If non-numeric iterated values are possible, you are advised to provide an iterator which type checks and handles non-numeric values accordingly.
* - The length of the returned iterator is equal to the length of the shortest provided iterator. In other words, the returned iterator ends once **one** of the provided iterators ends.
* - If an environment supports `Symbol.iterator` and all provided iterators are iterable, the returned iterator is iterable.
*
* @param {Iterator} iter0 - first input iterator
* @param {...(Iterator|number)} iterator - subsequent iterators
* @throws {Error} must provide two or more iterators
* @throws {TypeError} must provide iterator protocol-compliant objects
* @returns {Iterator} iterator
*
* @example
* var array2iterator = require( '@stdlib/array/to-iterator' );
*
* var it1 = array2iterator( [ 1.0, 5.0 ] );
* var it2 = array2iterator( [ 3.0, 4.0 ] );
*
* var iter = iterSubtract( it1, it2 );
*
* var v = iter.next().value;
* // returns -2.0
*
* v = iter.next().value;
* // returns 1.0
*
* var bool = iter.next().done;
* // returns true
*/
function iterSubtract() {
var iterators;
var types;
var niter;
var iter;
var FLG;
var i;
niter = arguments.length;
if ( niter < 2 ) {
throw new Error( 'insufficient arguments. Must provide two or more iterators.' );
}
iterators = [];
types = [];
for ( i = 0; i < niter; i++ ) {
iterators.push( arguments[ i ] );
if ( isIteratorLike( arguments[ i ] ) ) {
types.push( 1 );
} else if ( isNumber( arguments[ i ] ) ) {
types.push( 0 );
} else {
throw new TypeError( format( 'invalid argument. Must provide an iterator protocol-compliant object or a number. Argument: `%u`. Value: `%s`.', i, arguments[ i ] ) );
}
}
// Create an iterator protocol-compliant object:
iter = {};
setReadOnly( iter, 'next', next );
setReadOnly( iter, 'return', end );
// If an environment supports `Symbol.iterator` and all provided iterators are iterable, make the iterator iterable:
if ( iteratorSymbol ) {
for ( i = 0; i < niter; i++ ) {
if ( types[ i ] && !isFunction( iterators[ i ][ iteratorSymbol ] ) ) { // eslint-disable-line max-len
FLG = true;
break;
}
}
if ( !FLG ) {
setReadOnly( iter, iteratorSymbol, factory );
}
}
FLG = false;
i = 0;
return iter;
/**
* Returns an iterator protocol-compliant object containing the next iterated value.
*
* @private
* @returns {Object} iterator protocol-compliant object
*/
function next() {
var s;
var v;
var i;
if ( FLG ) {
return {
'done': true
};
}
if ( types[ 0 ] ) {
v = iterators[ 0 ].next();
if ( v.done ) {
FLG = true;
return v;
}
if ( typeof v.value === 'number' ) {
s = v.value;
} else {
s = NaN;
}
} else {
s = iterators[ 0 ];
}
for ( i = 1; i < niter; i++ ) {
if ( types[ i ] ) {
v = iterators[ i ].next();
if ( v.done ) {
FLG = true;
return v;
}
if ( typeof v.value === 'number' ) {
s -= v.value;
} else {
s = NaN;
}
} else {
s -= iterators[ i ];
}
}
return {
'value': s,
'done': false
};
}
/**
* Finishes an iterator.
*
* @private
* @param {*} [value] - value to return
* @returns {Object} iterator protocol-compliant object
*/
function end( value ) {
FLG = true;
if ( arguments.length ) {
return {
'value': value,
'done': true
};
}
return {
'done': true
};
}
/**
* Returns a new iterator.
*
* @private
* @returns {Iterator} iterator
*/
function factory() {
var args;
var i;
args = [];
for ( i = 0; i < niter; i++ ) {
if ( types[ i ] ) {
args.push( iterators[ i ][ iteratorSymbol ]() );
} else {
args.push( iterators[ i ] );
}
}
return iterSubtract.apply( null, args );
}
}
// EXPORTS //
module.exports = iterSubtract;
```
|
```smalltalk
namespace Volo.Docs.Utils;
public interface IDocsLinkGenerator
{
string GenerateLink(string projectName, string languageCode, string version, string documentName);
}
```
|
U125 or U-125 may refer to:
German submarine U-125, one of several German submarines
British Aerospace BAe 125 as used by the Japan Air Self-Defence Force
|
```c
/**
* @license Apache-2.0
*
*
*
* path_to_url
*
* Unless required by applicable law or agreed to in writing, software
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include <time.h>
#include <sys/time.h>
#define NAME "aversin"
#define ITERATIONS 1000000
#define REPEATS 3
/**
* Prints the TAP version.
*/
static void print_version( void ) {
printf( "TAP version 13\n" );
}
/**
* Prints the TAP summary.
*
* @param total total number of tests
* @param passing total number of passing tests
*/
static void print_summary( int total, int passing ) {
printf( "#\n" );
printf( "1..%d\n", total ); // TAP plan
printf( "# total %d\n", total );
printf( "# pass %d\n", passing );
printf( "#\n" );
printf( "# ok\n" );
}
/**
* Prints benchmarks results.
*
* @param elapsed elapsed time in seconds
*/
static void print_results( double elapsed ) {
double rate = (double)ITERATIONS / elapsed;
printf( " ---\n" );
printf( " iterations: %d\n", ITERATIONS );
printf( " elapsed: %0.9f\n", elapsed );
printf( " rate: %0.9f\n", rate );
printf( " ...\n" );
}
/**
* Returns a clock time.
*
* @return clock time
*/
static double tic( void ) {
struct timeval now;
gettimeofday( &now, NULL );
return (double)now.tv_sec + (double)now.tv_usec/1.0e6;
}
/**
* Generates a random number on the interval [0,1).
*
* @return random number
*/
static double rand_double( void ) {
int r = rand();
return (double)r / ( (double)RAND_MAX + 1.0 );
}
/**
* Runs a benchmark.
*
* @return elapsed time in seconds
*/
static double benchmark( void ) {
double elapsed;
double x;
double y;
double t;
int i;
t = tic();
for ( i = 0; i < ITERATIONS; i++ ) {
x = ( 2.0*rand_double() ) - 0.0;
y = acos( 1.0 - x );
if ( y != y ) {
printf( "should not return NaN\n" );
break;
}
}
elapsed = tic() - t;
if ( y != y ) {
printf( "should not return NaN\n" );
}
return elapsed;
}
/**
* Main execution sequence.
*/
int main( void ) {
double elapsed;
int i;
// Use the current time to seed the random number generator:
srand( time( NULL ) );
print_version();
for ( i = 0; i < REPEATS; i++ ) {
printf( "# c::%s\n", NAME );
elapsed = benchmark();
print_results( elapsed );
printf( "ok %d benchmark finished\n", i+1 );
}
print_summary( REPEATS, REPEATS );
}
```
|
Encounters is a card game published by Mayfair Games in 1982.
Gameplay
Encounters is fantasy card game involving heroes fighting against monsters.
Reception
William A. Barton reviewed Encounters in The Space Gamer No. 57. Barton commented that "Encounters is a very playable little game. If you like card games at all and fantasy games in general and don't think [the price] is too steep for one, you'll probably find Encounters an enjoyable investment."
References
Dedicated deck card games
Mayfair Games games
|
```c++
// Boost enable_if library
// Use, modification, and distribution is subject to the Boost Software
// path_to_url
// Authors: Jaakko Jarvi (jajarvi at osl.iu.edu)
// Jeremiah Willcock (jewillco at osl.iu.edu)
// Andrew Lumsdaine (lums at osl.iu.edu)
#include <boost/config.hpp>
#include <boost/utility/enable_if.hpp>
#include <boost/type_traits/is_arithmetic.hpp>
#include <boost/detail/lightweight_test.hpp>
using boost::enable_if;
using boost::is_arithmetic;
template<class T> struct not_
{
BOOST_STATIC_CONSTANT( bool, value = !T::value );
};
template<class T>
typename enable_if<is_arithmetic<T>, bool>::type
arithmetic_object(T t) { return true; }
template<class T>
typename enable_if<not_<is_arithmetic<T> >, bool>::type
arithmetic_object(T t) { return false; }
int main()
{
BOOST_TEST(arithmetic_object(1));
BOOST_TEST(arithmetic_object(1.0));
BOOST_TEST(!arithmetic_object("1"));
BOOST_TEST(!arithmetic_object(static_cast<void*>(0)));
return boost::report_errors();
}
```
|
```c++
///////////////////////////////////////////////////////////////////////////////
/// \file proto.hpp
/// Includes all of Proto.
//
// LICENSE_1_0.txt or copy at path_to_url
#ifndef BOOST_PROTO_HPP_EAN_04_01_2005
#define BOOST_PROTO_HPP_EAN_04_01_2005
#include <boost/proto/core.hpp>
#include <boost/proto/debug.hpp>
#include <boost/proto/context.hpp>
#include <boost/proto/transform.hpp>
#include <boost/proto/functional.hpp>
#endif
```
|
```java
package com.yahoo.vespa.clustercontroller.core;
import com.yahoo.vdslib.distribution.ConfiguredNode;
import com.yahoo.vdslib.distribution.Distribution;
import com.yahoo.vdslib.state.Node;
import com.yahoo.vespa.clustercontroller.core.listeners.NodeListener;
import java.util.Collection;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
import java.util.TreeMap;
/**
* Detailed information about the current state of all the distributor and storage nodes of the cluster.
*
* @author hakonhall
* @author bratseth
*/
public class ClusterInfo {
/** The configured nodes of this cluster, indexed by node index */
private final Map<Integer, ConfiguredNode> nodes = new HashMap<>();
/** Information about the current state of distributors */
private final Map<Integer, DistributorNodeInfo> distributorNodeInfo = new TreeMap<>();
/** Information about the current state of storage nodes */
private final Map<Integer, StorageNodeInfo> storageNodeInfo = new TreeMap<>();
/** Information about the current state of all nodes - always consists of both sets of nodes in the two maps above */
private final Map<Node, NodeInfo> allNodeInfo = new TreeMap<>(); // TODO: Remove
/** Returns non-null iff index is a configured nodes (except perhaps in tests). */
DistributorNodeInfo getDistributorNodeInfo(int index) { return distributorNodeInfo.get(index); }
/** Returns non-null iff index is a configured nodes (except perhaps in tests). */
StorageNodeInfo getStorageNodeInfo(int index) { return storageNodeInfo.get(index); }
/** Returns information about the given node id, or null if this node does not exist */
public NodeInfo getNodeInfo(Node node) { return allNodeInfo.get(node); }
Collection<DistributorNodeInfo> getDistributorNodeInfos() { return Collections.unmodifiableCollection(distributorNodeInfo.values()); }
Collection<StorageNodeInfo> getStorageNodeInfos() { return Collections.unmodifiableCollection(storageNodeInfo.values()); }
Collection<NodeInfo> getAllNodeInfos() { return Collections.unmodifiableCollection(allNodeInfo.values()); }
/** Returns the configured nodes of this as a read-only map indexed on node index (distribution key) */
Map<Integer, ConfiguredNode> getConfiguredNodes() { return Collections.unmodifiableMap(nodes); }
boolean hasConfiguredNode(int index) { return nodes.containsKey(index); }
/** Sets the nodes which belongs to this cluster */
void setNodes(Collection<ConfiguredNode> newNodes, ContentCluster owner,
Distribution distribution, NodeListener nodeListener) {
// Remove info for removed nodes
Set<ConfiguredNode> newNodesSet = new HashSet<>(newNodes);
for (ConfiguredNode existingNode : this.nodes.values()) {
if ( ! newNodesSet.contains(existingNode)) {
{
Node existingStorageNode = storageNodeInfo.remove(existingNode.index()).getNode();
allNodeInfo.remove(existingStorageNode);
nodeListener.handleRemovedNode(existingStorageNode);
}
{
Node existingDistributorNode = distributorNodeInfo.remove(existingNode.index()).getNode();
allNodeInfo.remove(existingDistributorNode);
nodeListener.handleRemovedNode(existingDistributorNode);
}
}
}
// Add and update new nodes info
for (ConfiguredNode node : newNodes) {
if ( ! nodes.containsKey(node.index())) { // add new node info
addNodeInfo(new DistributorNodeInfo(owner, node.index(), null, distribution));
addNodeInfo(new StorageNodeInfo(owner, node.index(), node.retired(), null, distribution));
}
else {
getStorageNodeInfo(node.index()).setConfiguredRetired(node.retired());
}
}
// Update node set
nodes.clear();
for (ConfiguredNode node : newNodes) {
this.nodes.put(node.index(), node);
}
}
private void addNodeInfo(NodeInfo nodeInfo) {
if (nodeInfo instanceof DistributorNodeInfo) {
distributorNodeInfo.put(nodeInfo.getNodeIndex(), (DistributorNodeInfo) nodeInfo);
} else {
storageNodeInfo.put(nodeInfo.getNodeIndex(), (StorageNodeInfo) nodeInfo);
}
allNodeInfo.put(nodeInfo.getNode(), nodeInfo);
nodeInfo.setReportedState(nodeInfo.getReportedState().setDescription("Node not seen in slobrok."), 0);
}
/** Returns true if no nodes are down or unknown */
boolean allStatesReported() {
if (nodes.isEmpty()) return false;
for (ConfiguredNode node : nodes.values()) {
if (getDistributorNodeInfo(node.index()).getReportedState().getState().oneOf("d-")) return false;
if (getStorageNodeInfo(node.index()).getReportedState().getState().oneOf("d-")) return false;
}
return true;
}
/**
* Sets the rpc address of a node. If the node does not exist this does nothing.
*
* @return the info to which an rpc address is set, or null if none
*/
public NodeInfo setRpcAddress(Node node, String rpcAddress) {
NodeInfo nodeInfo = getInfo(node);
if (nodeInfo != null) {
nodeInfo.setRpcAddress(rpcAddress);
}
return nodeInfo;
}
// TODO: Do all mutation of node info through setters in this
/** Returns the node info object for a given node identifier */
private NodeInfo getInfo(Node node) {
return switch (node.getType()) {
case DISTRIBUTOR -> getDistributorNodeInfo(node.getIndex());
case STORAGE -> getStorageNodeInfo(node.getIndex());
};
}
}
```
|
The 1875 Minnesota gubernatorial election was held on November 2, 1875, to elect the governor of Minnesota.
Results
References
1875
Minnesota
gubernatorial
November 1875 events
|
Svidnička (, until 1899: ) is a village and municipality in Svidník District in the Prešov Region of north-eastern Slovakia.
History
In historical records the village was first mentioned in 1572.
Geography
The municipality lies at an altitude of 330 metres and covers an area of 5.724 km². It has a population of about 132 people.
References
External links
Villages and municipalities in Svidník District
Šariš
Rusyn communities
|
```c++
// path_to_url
// (See accompanying LICENSE file or at
// path_to_url
#pragma once
#include "fdeep/layers/layer.hpp"
#include <string>
namespace fdeep {
namespace internal {
class add_layer : public layer {
public:
explicit add_layer(const std::string& name)
: layer(name)
{
}
protected:
tensors apply_impl(const tensors& input) const override
{
return { sum_tensors(input) };
}
};
}
}
```
|
```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\WorkloadManager;
class ResourceFilter extends \Google\Collection
{
protected $collection_key = 'scopes';
protected $gceInstanceFilterType = GceInstanceFilter::class;
protected $gceInstanceFilterDataType = '';
/**
* @var string[]
*/
public $inclusionLabels;
/**
* @var string[]
*/
public $resourceIdPatterns;
/**
* @var string[]
*/
public $scopes;
/**
* @param GceInstanceFilter
*/
public function setGceInstanceFilter(GceInstanceFilter $gceInstanceFilter)
{
$this->gceInstanceFilter = $gceInstanceFilter;
}
/**
* @return GceInstanceFilter
*/
public function getGceInstanceFilter()
{
return $this->gceInstanceFilter;
}
/**
* @param string[]
*/
public function setInclusionLabels($inclusionLabels)
{
$this->inclusionLabels = $inclusionLabels;
}
/**
* @return string[]
*/
public function getInclusionLabels()
{
return $this->inclusionLabels;
}
/**
* @param string[]
*/
public function setResourceIdPatterns($resourceIdPatterns)
{
$this->resourceIdPatterns = $resourceIdPatterns;
}
/**
* @return string[]
*/
public function getResourceIdPatterns()
{
return $this->resourceIdPatterns;
}
/**
* @param string[]
*/
public function setScopes($scopes)
{
$this->scopes = $scopes;
}
/**
* @return string[]
*/
public function getScopes()
{
return $this->scopes;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ResourceFilter::class, 'Google_Service_WorkloadManager_ResourceFilter');
```
|
```python
"""
I am making my contributions/submissions to this project solely in my personal
capacity and am not conveying any rights to any intellectual property of any
third parties.
"""
import pyjet
from pytest_utils import *
def test_volume_particle_emitter2():
# Basic ctor test
sphere = pyjet.Sphere2()
emitter = pyjet.VolumeParticleEmitter2(
sphere,
pyjet.BoundingBox2D((-1, -2), (4, 2)),
0.1,
(-1, 0.5),
(3, 4),
5.0,
30,
0.01,
False,
True,
42)
assert emitter.surface
assert_bounding_box_similar(
emitter.maxRegion, pyjet.BoundingBox2D((-1, -2), (4, 2)))
assert emitter.spacing == 0.1
assert_vector_similar(emitter.initialVelocity, (-1, 0.5))
assert_vector_similar(emitter.linearVelocity, (3, 4))
assert emitter.angularVelocity == 5.0
assert emitter.maxNumberOfParticles == 30
assert emitter.jitter == 0.01
assert not emitter.isOneShot
assert emitter.allowOverlapping
assert emitter.isEnabled
# Another basic ctor test
emitter2 = pyjet.VolumeParticleEmitter2(
implicitSurface=sphere,
maxRegion=pyjet.BoundingBox2D((-1, -2), (4, 2)),
spacing=0.1,
initialVelocity=(-1, 0.5),
linearVelocity=(3, 4),
angularVelocity=5.0,
maxNumberOfParticles=3000,
jitter=0.01,
isOneShot=False,
allowOverlapping=True,
seed=42)
assert emitter2.surface
assert_bounding_box_similar(
emitter2.maxRegion, pyjet.BoundingBox2D((-1, -2), (4, 2)))
assert emitter2.spacing == 0.1
assert_vector_similar(emitter2.initialVelocity, (-1, 0.5))
assert_vector_similar(emitter2.linearVelocity, (3, 4))
assert emitter2.angularVelocity == 5.0
assert emitter2.maxNumberOfParticles == 3000
assert emitter2.jitter == 0.01
assert not emitter2.isOneShot
assert emitter2.allowOverlapping
assert emitter2.isEnabled
# Emit some particles
frame = pyjet.Frame()
solver = pyjet.ParticleSystemSolver2()
solver.emitter = emitter2
solver.update(frame)
frame.advance()
assert solver.particleSystemData.numberOfParticles > 0
old_num_particles = solver.particleSystemData.numberOfParticles
solver.update(frame)
frame.advance()
assert solver.particleSystemData.numberOfParticles > old_num_particles
# Disabling emitter should stop emitting particles
emitter2.isEnabled = False
old_num_particles = solver.particleSystemData.numberOfParticles
solver.update(frame)
frame.advance()
assert solver.particleSystemData.numberOfParticles == old_num_particles
# Re-enabling emitter should resume emission
emitter2.isEnabled = True
old_num_particles = solver.particleSystemData.numberOfParticles
solver.update(frame)
frame.advance()
assert solver.particleSystemData.numberOfParticles > old_num_particles
# One-shot emitter
emitter3 = pyjet.VolumeParticleEmitter2(
implicitSurface=sphere,
maxRegion=pyjet.BoundingBox2D((-1, -2), (4, 2)),
spacing=0.1,
initialVelocity=(-1, 0.5),
linearVelocity=(3, 4),
angularVelocity=5.0,
maxNumberOfParticles=3000,
jitter=0.01,
isOneShot=True,
allowOverlapping=True,
seed=42)
# Emit some particles
frame = pyjet.Frame()
solver = pyjet.ParticleSystemSolver2()
solver.emitter = emitter3
solver.update(frame)
frame.advance()
assert solver.particleSystemData.numberOfParticles > 0
assert not emitter3.isEnabled
# Should not emit more particles
old_num_particles = solver.particleSystemData.numberOfParticles
solver.update(frame)
frame.advance()
assert solver.particleSystemData.numberOfParticles == old_num_particles
# Re-enabling the emitter should make it emit one more time
emitter3.isEnabled = True
old_num_particles = solver.particleSystemData.numberOfParticles
solver.update(frame)
frame.advance()
assert solver.particleSystemData.numberOfParticles > old_num_particles
# ...and gets disabled again
old_num_particles = solver.particleSystemData.numberOfParticles
solver.update(frame)
frame.advance()
assert solver.particleSystemData.numberOfParticles == old_num_particles
def test_volume_particle_emitter3():
sphere = pyjet.Sphere3()
emitter = pyjet.VolumeParticleEmitter3(
sphere,
pyjet.BoundingBox3D((-1, -2, -3), (4, 2, 9)),
0.1,
(-1, 0.5, 2),
(3, 4, 5),
(6, 7, 8),
30,
0.01,
False,
True,
42)
assert emitter.surface
assert_bounding_box_similar(
emitter.maxRegion, pyjet.BoundingBox3D((-1, -2, -3), (4, 2, 9)))
assert emitter.spacing == 0.1
assert_vector_similar(emitter.initialVelocity, (-1, 0.5, 2))
assert_vector_similar(emitter.linearVelocity, (3, 4, 5))
assert_vector_similar(emitter.angularVelocity, (6, 7, 8))
assert emitter.maxNumberOfParticles == 30
assert emitter.jitter == 0.01
assert not emitter.isOneShot
assert emitter.allowOverlapping
assert emitter.isEnabled
emitter2 = pyjet.VolumeParticleEmitter3(
implicitSurface=sphere,
maxRegion=pyjet.BoundingBox3D((-1, -2, -3), (4, 2, 9)),
spacing=0.1,
initialVelocity=(-1, 0.5, 2),
linearVelocity=(3, 4, 5),
angularVelocity=(6, 7, 8),
maxNumberOfParticles=300000,
jitter=0.01,
isOneShot=False,
allowOverlapping=True,
seed=42)
assert emitter2.surface
assert_bounding_box_similar(
emitter2.maxRegion, pyjet.BoundingBox3D((-1, -2, -3), (4, 2, 9)))
assert emitter2.spacing == 0.1
assert_vector_similar(emitter2.initialVelocity, (-1, 0.5, 2))
assert_vector_similar(emitter2.linearVelocity, (3, 4, 5))
assert_vector_similar(emitter2.angularVelocity, (6, 7, 8))
assert emitter2.maxNumberOfParticles == 300000
assert emitter2.jitter == 0.01
assert not emitter2.isOneShot
assert emitter2.allowOverlapping
assert emitter2.isEnabled
# Emit some particles
frame = pyjet.Frame()
solver = pyjet.ParticleSystemSolver3()
solver.emitter = emitter2
solver.update(frame)
frame.advance()
assert solver.particleSystemData.numberOfParticles > 0
old_num_particles = solver.particleSystemData.numberOfParticles
solver.update(frame)
frame.advance()
assert solver.particleSystemData.numberOfParticles > old_num_particles
# Disabling emitter should stop emitting particles
emitter2.isEnabled = False
old_num_particles = solver.particleSystemData.numberOfParticles
solver.update(frame)
frame.advance()
assert solver.particleSystemData.numberOfParticles == old_num_particles
# Re-enabling emitter should resume emission
emitter2.isEnabled = True
old_num_particles = solver.particleSystemData.numberOfParticles
solver.update(frame)
frame.advance()
assert solver.particleSystemData.numberOfParticles > old_num_particles
# One-shot emitter
emitter3 = pyjet.VolumeParticleEmitter3(
implicitSurface=sphere,
maxRegion=pyjet.BoundingBox3D((-1, -2, -3), (4, 2, 9)),
spacing=0.1,
initialVelocity=(-1, 0.5, 2),
linearVelocity=(3, 4, 5),
angularVelocity=(6, 7, 8),
maxNumberOfParticles=300000,
jitter=0.01,
isOneShot=True,
allowOverlapping=True,
seed=42)
# Emit some particles
frame = pyjet.Frame()
solver = pyjet.ParticleSystemSolver3()
solver.emitter = emitter3
solver.update(frame)
frame.advance()
assert solver.particleSystemData.numberOfParticles > 0
assert not emitter3.isEnabled
# Should not emit more particles
old_num_particles = solver.particleSystemData.numberOfParticles
solver.update(frame)
frame.advance()
assert solver.particleSystemData.numberOfParticles == old_num_particles
# Re-enabling the emitter should make it emit one more time
emitter3.isEnabled = True
old_num_particles = solver.particleSystemData.numberOfParticles
solver.update(frame)
frame.advance()
assert solver.particleSystemData.numberOfParticles > old_num_particles
# ...and gets disabled again
old_num_particles = solver.particleSystemData.numberOfParticles
solver.update(frame)
frame.advance()
assert solver.particleSystemData.numberOfParticles == old_num_particles
```
|
```php
<?php
namespace reflection\class_instance_001;
class TestClass1
{
}
class TestClass2
{
}
$tmp1 = new \ReflectionClass(TestClass1::class);
$tmp2 = new \ReflectionClass(TestClass2::class);
echo $tmp1->isInstance(new TestClass1()) ? "true" : "false";
echo $tmp1->isInstance(new TestClass2()) ? "true" : "false";
echo $tmp2->isInstance(new TestClass1()) ? "true" : "false";
echo $tmp2->isInstance(new TestClass2()) ? "true" : "false";
```
|
Dania Ramirez (born November 8, 1979) is a Dominican actress. Her credits include the roles of Maya Herrera in the NBC series Heroes, Alex in the HBO series Entourage, and Blanca during the last season of the HBO crime drama The Sopranos on television. Her film roles include Alex Guerrero in She Hate Me and Callisto in the feature film X-Men: The Last Stand. She portrayed Rosie Falta on Lifetime's Devious Maids from June 2013, until its cancellation in 2016. In July 2017, Ramirez joined the hit ABC series Once Upon a Time for its softly-rebooted seventh season in a starring role as Cinderella. In 2023, she began the starring role of Captain Nikki Batista in the Fox crime drama Alert: Missing Persons Unit.
Early life
Ramirez was born in Santo Domingo. At an early age, she decided to become an actress. As a young child, she would reenact telenovelas for her family. She was discovered by a modeling scout while working in a convenience store at the age of 15, and was offered a small part in a soda commercial. Later, she decided to pursue acting seriously and studied at the Actor's Workshop in New York City under Flo Greenberg.
At 16 years old, Ramirez started at Montclair State University, where her volleyball talents led her to be placed among the top five in career digs, digs/game, solo blocks and total blocks. She graduated in 2001. After graduation, Ramirez moved to Los Angeles to pursue her acting career.
Career
Music videos
Ramirez has appeared in several music videos, including Jay-Z's Streets is Watching (1998), De La Soul's "All Good?" feat. Chaka Khan (2000), Enrique Iglesias’ Could I Have This Kiss Forever, feat. Whitney Houston, LL Cool J's "Hush" (2005; directed by her then fiancé Jessy Terrero), Santana's "Into the Night" (2007), as well as "Cry Baby Cry" (a collaboration of Santana and Sean Paul). Ramirez appeared in Wisin & Yandel's music video "Dime Qué Te Pasó", in which she played the main character, the wife and mother of a military man in Iraq who finds out her husband died at war. She was also featured in hip-hop group Sporty Thievz's video "Cheapskate" in 1998.
Films
Ramirez appeared as an extra in the HBO film Subway Stories (1997), where she met filmmaker Spike Lee who would later cast her in the film She Hate Me (2004). She played older sister Laurie in the film Fat Albert (2004). She was Callisto (one of The Omegas) in the comic book film X-Men: The Last Stand (2006). She went on to star in The 5th Commandment, a film written by and starring Rick Yune, in 2008. In 2012, Ramirez appeared in two films, playing Selena in American Reunion and a bicycle messenger in Premium Rush.
Television
Ramirez appeared as the minor character Caridad in the final episodes of the television series Buffy the Vampire Slayer, and as Blanca Selgado, a recurring role during season six of The Sopranos.
Ramirez portrayed the character of Maya Herrera on the TV series Heroes.
Ramirez was a guest judge on episode five of Cycle 14 of America's Next Top Model.
Ramirez guest starred as Alex, an employee of Turtle's, who begins a relationship with Turtle in season seven on the TV series Entourage.
From 2013 to 2016, Ramirez had been part of the main cast of Devious Maids, which aired on the Lifetime network for four seasons. She portrayed Rosie Falta, one of the main characters and titular protagonists of the series.
In July 2017, Ramirez was cast as a series regular in the softly-rebooted final season of Once Upon a Time. She portrayed Jacinda Vidrio, the real-world counterpart of the series' second iteration of Cinderella. In 2018, Ramirez was cast in another fairytale-themed drama, Tell Me a Story for CBS All Access. Ramirez played Hannah Perez, loosely based on Gretel from Hansel and Gretel.
As of 2023, she stars in Alert: Missing Persons Unit, which premieres on Fox on January 8. Her casting was announced in August 2022.
Other media
Ramirez has appeared in several magazine spreads. She has also been listed in several of the world's top publications' "Sexiest Ladies of the Year" lists. In 2009, she was added to the roster of models for CoverGirl Cosmetics. In January 2010, Ramirez and Queen Latifah launched the company's "Clean Makeup for Clean Water Campaign".
Personal life
Dania dated Soul Plane director Jessy Terrero until 2008. She became engaged in September 2011 to director John Beverly "Bev" Land. The couple married on the beach in Punta Cana, Dominican Republic on February 16, 2013. Land has a son, Kai Miles, with former wife Sharon Leal.
On July 15, 2013, Ramirez announced that she was pregnant with twins. That December, she gave birth to fraternal boy-girl twins.
Filmography
Film
Television
Accolades
See also
List of people from the Dominican Republic
References
External links
1979 births
Living people
American film actresses
American television actresses
American voice actresses
American people of Dominican Republic descent
Dominican Republic emigrants to the United States
Hispanic and Latino American actresses
Mixed-race Dominicans
Montclair State University alumni
Actors from Santo Domingo
20th-century American actresses
21st-century American actresses
|
Ralph Rubio may refer to:
Ralph Rubio, owner of Rubio's Coastal Grill
Ralph Rubio (mayor), American politician who served as the first Latino mayor of Seaside, California
|
```go
package reminders
import (
"context"
"fmt"
"strings"
"time"
"github.com/botlabs-gg/yagpdb/v2/bot"
"github.com/botlabs-gg/yagpdb/v2/common"
"github.com/botlabs-gg/yagpdb/v2/common/mqueue"
"github.com/botlabs-gg/yagpdb/v2/common/scheduledevents2"
"github.com/botlabs-gg/yagpdb/v2/lib/discordgo"
"github.com/botlabs-gg/yagpdb/v2/reminders/models"
"github.com/sirupsen/logrus"
"github.com/volatiletech/sqlboiler/v4/boil"
)
//go:generate sqlboiler --no-hooks --add-soft-deletes psql
type Plugin struct{}
func RegisterPlugin() {
p := &Plugin{}
common.RegisterPlugin(p)
common.InitSchemas("reminders", DBSchemas...)
}
func (p *Plugin) PluginInfo() *common.PluginInfo {
return &common.PluginInfo{
Name: "Reminders",
SysName: "reminders",
Category: common.PluginCategoryMisc,
}
}
func TriggerReminder(r *models.Reminder) error {
r.DeleteG(context.Background(), false /* hardDelete */)
logger.WithFields(logrus.Fields{"channel": r.ChannelID, "user": r.UserID, "message": r.Message, "id": r.ID}).Info("Triggered reminder")
embed := &discordgo.MessageEmbed{
Title: "Reminder from YAGPDB",
Description: common.ReplaceServerInvites(r.Message, r.GuildID, "(removed-invite)"),
}
channelID, _ := discordgo.ParseID(r.ChannelID)
userID, _ := discordgo.ParseID(r.UserID)
return mqueue.QueueMessage(&mqueue.QueuedElement{
Source: "reminder",
SourceItemID: "",
GuildID: r.GuildID,
ChannelID: channelID,
MessageEmbed: embed,
MessageStr: "**Reminder** for <@" + r.UserID + ">",
AllowedMentions: discordgo.AllowedMentions{
Users: []int64{userID},
},
Priority: 10, // above all feeds
})
}
func NewReminder(userID int64, guildID int64, channelID int64, message string, when time.Time) (*models.Reminder, error) {
reminder := &models.Reminder{
UserID: discordgo.StrID(userID),
ChannelID: discordgo.StrID(channelID),
Message: message,
When: when.Unix(),
GuildID: guildID,
}
err := reminder.InsertG(context.Background(), boil.Infer())
if err != nil {
return nil, err
}
err = scheduledevents2.ScheduleEvent("reminders_check_user", guildID, when, userID)
return reminder, err
}
type DisplayRemindersMode int
const (
ModeDisplayChannelReminders DisplayRemindersMode = iota
ModeDisplayUserReminders
)
func DisplayReminders(reminders models.ReminderSlice, mode DisplayRemindersMode) string {
var out strings.Builder
for _, r := range reminders {
t := time.Unix(r.When, 0)
timeFromNow := common.HumanizeTime(common.DurationPrecisionMinutes, t)
switch mode {
case ModeDisplayChannelReminders:
// don't show the channel; do show the user
uid, _ := discordgo.ParseID(r.UserID)
member, _ := bot.GetMember(r.GuildID, uid)
username := "Unknown user"
if member != nil {
username = member.User.Username
}
fmt.Fprintf(&out, "**%d**: %s: '%s' - %s from now (<t:%d:f>)\n", r.ID, username, CutReminderShort(r.Message), timeFromNow, t.Unix())
case ModeDisplayUserReminders:
// do show the channel; don't show the user
channel := "<#" + r.ChannelID + ">"
fmt.Fprintf(&out, "**%d**: %s: '%s' - %s from now (<t:%d:f>)\n", r.ID, channel, CutReminderShort(r.Message), timeFromNow, t.Unix())
}
}
return out.String()
}
func CutReminderShort(msg string) string {
return common.CutStringShort(msg, 50)
}
```
|
Eurammon (stylised as eurammon) is a European non-profit initiative for natural refrigerants. It was set up in 1996 and comprises European companies, institutions, and industry experts. It is based in Frankfurt (Main), Germany. The initiative's name is composed of the words "Europe" and "ammonia". The objective of Eurammon is to jointly promote the greater use of natural refrigerants, as they have almost no effect on global warming and on the depletion of the ozone layer.
Background and objectives
Natural refrigerants have been used for refrigeration since the mid-19th century, mainly in food production and storage. Ammonia (NH3), in particular, has been the refrigerant in use in industrial refrigeration for more than 130 years. In the 1950s and 60s, however, it began to be replaced more and more in new plants by synthetic refrigerants.
The Eurammon initiative arose out of the lack of acceptance for natural refrigerants. The initiative's objective is to promote the use of natural refrigerants. For its members, Eurammon acts as a knowledge pool or platform facilitating the worldwide sharing of information and international networking.
Activities of the eurammon initiative
Eurammon Symposium
This annual event, organised by Eurammon and held in English, informs operators, planners, system engineers, and other interested parties about the applications of natural refrigerants. The latest legislation and the analysis of life-cycle costs of refrigeration systems are just some of the topics discussed.
Natural Refrigeration Award
Every two years, Eurammon awards the Natural Refrigeration Award at the Eurammon Symposium. It recognises young scientists for their outstanding theses in the field of natural refrigerants. The purpose of the award is to support the next generation of scientists and encourage them to engage in further research on natural refrigerants in the field of refrigeration technology. Degree and doctoral graduates can submit their official examination papers. Three prizes are awarded, totalling 5,000 euros. The winners also have the opportunity to present their thesis to the congregated experts at the international Eurammon symposium. In 2013, Eurammon announced the award together with the Faculty of Thermal Process Engineering of the Technical University of Hamburg-Harburg and the Norwegian trade magazine KULDE og Varmepumper.
Technical Committee
In May 2011, the European initiative for natural refrigerants Eurammon set up a new committee to consider technical issues and new developments in the field of natural refrigerants. The team, comprising around 25 experts, considers technical issues concerning all aspects of natural refrigerants that come to Eurammon's attention. Thematically, the issues concern all areas of refrigeration technology in which natural refrigerants are or could be used. The committee is open to all Eurammon members interested in technical debate and who wish to develop their know-how in this field. In addition to the Technical Committee, there is also a special working group, which deals specifically with all issues and topics relating to the refrigerant ammonia.
Working group on Ammonia
Members of Eurammon discuss current issues in the field of the natural refrigerant ammonia. The work group is headed by Eric Delforge (Mayekawa Europe) and aims to raise the general awareness of ammonia and its applications.
International network
Eurammon facilitates the worldwide sharing of information and international networking through an international network, which the initiative has been building up since its foundation in 1996. Mutual memberships and cooperations are currently in place with:
Association of Ammonia Refrigeration (AAR), India – Pune
Association Française du Froid (AFF), France – Paris
Australian Refrigeration Association, Australia – Bowral NSW
EUROVENT the European Committee of Air Handling & Refrigeration Equipment Manufacturers, Belgium Brussels
FRIO CALOR AIRE ACONDICIONADO,S.L., Spain – Madrid
Green Cooling Association, Australia – Castle Hill
HVAC&R Management Technology Development Center, Iran Tehran
International Academy of Refrigeration, Representative Office in Kazakhstan, Kazakhstan Almaty
International Institute of Ammonia Refrigeration (IIAR), USA – Arlington, VA
Islamic Azad University, Iran Tehran
Nederlandse Vereniging van Ondernemingen op het gebied van de Koudetechniek en Luchtbehandeling (NVKL), the Netherlands – Zoetermeer
Odesa State Academy of Refrigeration (OSAR), Ukraine – Odesa
Romanian General Association of Refrigeration, Romania Bucharest
Slovenian Association for Cooling and Air Conditioning (SDHK), Slovenia – Ljubljana
Southern African Refrigerated Distribution Association (SARDA), South Africa – Cape Town
Swiss Association for Refrigeration Technology (SVK), Switzerland – Maur
International Congress of Refrigeration
In 2011, Eurammon was an official partner of the 23rd International Congress of Refrigeration (ICR), which took place from 21 to 26 August 2011 in the Czech capital, Prague. The theme of the event was “Refrigeration for Sustainable Development”, and it was organised by the International Institute of Refrigeration (IIR). Visitors were invited to find out about the sustainable side of refrigeration and air-conditioning technology using natural refrigerants.
Executive Board
A new executive board is elected every two years. It is currently composed of the following five members:
Bernd Kaltenbrunner (KWN Engineering GmbH)
Monika Witt (Th. Witt Kältemaschinenfabrik GmbH)
Georges Hoeterickx (Evapco Europe N.V.)
Thomas Spänich (GEA Refrigeration Germany GmbH)
Mark Bulmer (Georg Fischer Piping Systems)
References
External links
http://www.eurammon.com
Green Cooling Initiative on alternative natural refrigerants cooling technologies
International sustainability organizations
Organizations established in 1996
Refrigerants
International organisations based in Germany
|
Black Jesus Voice is a solo album by Richard H. Kirk, released by Rough Trade Records in 1986. The album was also released on cassette doubled up with Kirk's Ugly Spirit album. In 1995, The Grey Area (Mute) re-released the CD.
Track listing
"Streetgang (It Really Hurts)"
"Hipnotic"
"Boom Shala"
"Black Jesus Voice"
"Martyrs of Palestine"
"This Is the H-Bomb Sound"
"Short Wave"
Personnel
Produced and recorded by Richard H. Kirk
References
1986 albums
Rough Trade Records albums
Richard H. Kirk albums
|
Fablo dos Santos Oliveira (born 15 February 1999), also known simply as Fablo, is a Brazilian professional footballer who plays as a forward for Barra da Tijuca.
Club career
Born in Rio de Janeiro, Fablo began his career with Barra da Tijuca, making his debut for the team on 16 June 2019 in a 2–0 defeat to Campos in the 2019 Campeonato Carioca Série B1 state championship.
In March 2020, Fablo joined American USL League One side Orlando City B on loan for the 2020 season. He made his debut for Orlando City B on 14 August 2020 as a 58th minute substitute for José Quintero during a 1–1 draw with Fort Lauderdale.
Career statistics
Club
References
External links
Fablo at Orlando City
1999 births
Living people
Footballers from Rio de Janeiro (city)
Brazilian men's footballers
Men's association football forwards
Orlando City B players
USL League One players
Brazilian expatriate men's footballers
Expatriate men's soccer players in the United States
|
```css
Drop caps with `:first-letter`
Use `text-transform` to avoid screen-reader pronunciation errors
Change the style of the decoration with `text-decoration-style`
Load custom fonts on a web page using `@font-face`
A great font resource: Google Font API
```
|
```go
package s3
import (
"net/http/httptest"
"testing"
"github.com/foxcpp/maddy/framework/config"
"github.com/foxcpp/maddy/framework/module"
"github.com/foxcpp/maddy/internal/storage/blob"
"github.com/johannesboyne/gofakes3"
"github.com/johannesboyne/gofakes3/backend/s3mem"
)
func TestFS(t *testing.T) {
var (
backend gofakes3.Backend
faker *gofakes3.GoFakeS3
ts *httptest.Server
)
blob.TestStore(t, func() module.BlobStore {
backend = s3mem.New()
faker = gofakes3.New(backend)
ts = httptest.NewServer(faker.Server())
if err := backend.CreateBucket("maddy-test"); err != nil {
panic(err)
}
st := &Store{instName: "test"}
err := st.Init(config.NewMap(map[string]interface{}{}, config.Node{
Children: []config.Node{
{
Name: "endpoint",
Args: []string{ts.Listener.Addr().String()},
},
{
Name: "secure",
Args: []string{"false"},
},
{
Name: "access_key",
Args: []string{"access-key"},
},
{
Name: "secret_key",
Args: []string{"secret-key"},
},
{
Name: "bucket",
Args: []string{"maddy-test"},
},
},
}))
if err != nil {
panic(err)
}
return st
}, func(store module.BlobStore) {
ts.Close()
backend = s3mem.New()
faker = gofakes3.New(backend)
ts = httptest.NewServer(faker.Server())
})
if ts != nil {
ts.Close()
}
}
```
|
```shell
#!/usr/bin/env bash
#
#
dir_path=$(dirname "$0")
$dir_path/csip.sh
$dir_path/csip_encrypted_sirk.sh
$dir_path/csip_forced_release.sh
$dir_path/csip_new_sirk.sh
$dir_path/csip_no_lock.sh
$dir_path/csip_no_rank.sh
$dir_path/csip_no_size.sh
```
|
```xml
//
//
// 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.
import { Request, Response } from "express";
import { warn } from "../logger";
import {
DEFAULT_FAILURE_POLICY,
DeploymentOptions,
RESET_VALUE,
FailurePolicy,
Schedule,
} from "./function-configuration";
export { Request, Response };
import {
convertIfPresent,
copyIfPresent,
serviceAccountFromShorthand,
durationFromSeconds,
} from "../common/encoding";
import {
initV1Endpoint,
initV1ScheduleTrigger,
ManifestEndpoint,
ManifestRequiredAPI,
} from "../runtime/manifest";
import { ResetValue } from "../common/options";
import { SecretParam } from "../params/types";
import { withInit } from "../common/onInit";
export { Change } from "../common/change";
/** @internal */
const WILDCARD_REGEX = new RegExp("{[^/{}]*}", "g");
/**
* Wire format for an event.
*/
export interface Event {
/**
* Wire format for an event context.
*/
context: {
eventId: string;
timestamp: string;
eventType: string;
resource: Resource;
domain?: string;
auth?: {
variable?: {
uid?: string;
token?: string;
};
admin: boolean;
};
};
/**
* Event data over wire.
*/
data: any;
}
/**
* The context in which an event occurred.
*
* @remarks
* An EventContext describes:
* - The time an event occurred.
* - A unique identifier of the event.
* - The resource on which the event occurred, if applicable.
* - Authorization of the request that triggered the event, if applicable and
* available.
*/
export interface EventContext<Params = Record<string, string>> {
/**
* Authentication information for the user that triggered the function.
*
* @remarks
* This object contains `uid` and `token` properties for authenticated users.
* For more detail including token keys, see the
* {@link path_to_url#properties | security rules reference}.
*
* This field is only populated for Realtime Database triggers and Callable
* functions. For an unauthenticated user, this field is null. For Firebase
* admin users and event types that do not provide user information, this field
* does not exist.
*/
auth?: {
token: object;
uid: string;
};
/**
* The level of permissions for a user.
*
* @remarks
* Valid values are:
*
* - `ADMIN`: Developer user or user authenticated via a service account.
*
* - `USER`: Known user.
*
* - `UNAUTHENTICATED`: Unauthenticated action
*
* - `null`: For event types that do not provide user information (all except
* Realtime Database).
*/
authType?: "ADMIN" | "USER" | "UNAUTHENTICATED";
/**
* The events unique identifier.
*/
eventId: string;
/**
* Type of event.
*
* @remarks
* Possible values are:
*
* - `google.analytics.event.log`
*
* - `google.firebase.auth.user.create`
*
* - `google.firebase.auth.user.delete`
*
* - `google.firebase.database.ref.write`
*
* - `google.firebase.database.ref.create`
*
* - `google.firebase.database.ref.update`
*
* - `google.firebase.database.ref.delete`
*
* - `google.firestore.document.write`
*
* - `google.firestore.document.create`
*
* - `google.firestore.document.update`
*
* - `google.firestore.document.delete`
*
* - `google.pubsub.topic.publish`
*
* - `google.firebase.remoteconfig.update`
*
* - `google.storage.object.finalize`
*
* - `google.storage.object.archive`
*
* - `google.storage.object.delete`
*
* - `google.storage.object.metadataUpdate`
*
* - `google.testing.testMatrix.complete`
*/
eventType: string;
/**
* An object containing the values of the wildcards in the `path` parameter
* provided to the {@link fireabase-functions.v1.database#ref | `ref()`} method for a Realtime Database trigger.
*/
params: Params;
/**
* The resource that emitted the event.
*
* @remarks
* Valid values are:
*
* Analytics: `projects/<projectId>/events/<analyticsEventType>`
*
* Realtime Database: `projects/_/instances/<databaseInstance>/refs/<databasePath>`
*
* Storage: `projects/_/buckets/<bucketName>/objects/<fileName>#<generation>`
*
* Authentication: `projects/<projectId>`
*
* Pub/Sub: `projects/<projectId>/topics/<topicName>`
*
* Because Realtime Database instances and Cloud Storage buckets are globally
* unique and not tied to the project, their resources start with `projects/_`.
* Underscore is not a valid project name.
*/
resource: Resource;
/**
* Timestamp for the event as an {@link path_to_url | RFC 3339} string.
*/
timestamp: string;
}
/**
* Resource is a standard format for defining a resource
* (google.rpc.context.AttributeContext.Resource). In Cloud Functions, it is the
* resource that triggered the function - such as a storage bucket.
*/
export interface Resource {
/** The name of the service that this resource belongs to. */
service: string;
/**
* The stable identifier (name) of a resource on the service.
* A resource can be logically identified as "//{resource.service}/{resource.name}"
*/
name: string;
/**
* The type of the resource. The syntax is platform-specific because different platforms define their resources differently.
* For Google APIs, the type format must be "{service}/{kind}"
*/
type?: string;
/** Map of Resource's labels. */
labels?: { [tag: string]: string };
}
/**
* TriggerAnnotion is used internally by the firebase CLI to understand what
* type of Cloud Function to deploy.
*/
interface TriggerAnnotation {
availableMemoryMb?: number;
blockingTrigger?: {
eventType: string;
options?: Record<string, unknown>;
};
eventTrigger?: {
eventType: string;
resource: string;
service: string;
};
failurePolicy?: FailurePolicy;
httpsTrigger?: {
invoker?: string[];
};
labels?: { [key: string]: string };
regions?: string[];
schedule?: Schedule;
timeout?: string;
vpcConnector?: string;
vpcConnectorEgressSettings?: string;
serviceAccountEmail?: string;
ingressSettings?: string;
secrets?: string[];
}
/**
* A Runnable has a `run` method which directly invokes the user-defined
* function - useful for unit testing.
*/
export interface Runnable<T> {
/** Directly invoke the user defined function. */
run: (data: T, context: any) => PromiseLike<any> | any;
}
/**
* The function type for HTTPS triggers. This should be exported from your
* JavaScript file to define a Cloud Function.
*
* @remarks
* This type is a special JavaScript function which takes Express
* {@link path_to_url#req | `Request` } and
* {@link path_to_url#res | `Response` } objects as its only
* arguments.
*/
export interface HttpsFunction {
(req: Request, resp: Response): void | Promise<void>;
/** @alpha */
__trigger: TriggerAnnotation;
/** @alpha */
__endpoint: ManifestEndpoint;
/** @alpha */
__requiredAPIs?: ManifestRequiredAPI[];
}
/**
* The function type for Auth Blocking triggers.
*
* @remarks
* This type is a special JavaScript function for Auth Blocking triggers which takes Express
* {@link path_to_url#req | `Request` } and
* {@link path_to_url#res | `Response` } objects as its only
* arguments.
*/
export interface BlockingFunction {
/** @public */
(req: Request, resp: Response): void | Promise<void>;
/** @alpha */
__trigger: TriggerAnnotation;
/** @alpha */
__endpoint: ManifestEndpoint;
/** @alpha */
__requiredAPIs?: ManifestRequiredAPI[];
}
/**
* The function type for all non-HTTPS triggers. This should be exported
* from your JavaScript file to define a Cloud Function.
*
* This type is a special JavaScript function which takes a templated
* `Event` object as its only argument.
*/
export interface CloudFunction<T> extends Runnable<T> {
(input: any, context?: any): PromiseLike<any> | any;
/** @alpha */
__trigger: TriggerAnnotation;
/** @alpha */
__endpoint: ManifestEndpoint;
/** @alpha */
__requiredAPIs?: ManifestRequiredAPI[];
}
/** @internal */
export interface MakeCloudFunctionArgs<EventData> {
after?: (raw: Event) => void;
before?: (raw: Event) => void;
contextOnlyHandler?: (context: EventContext) => PromiseLike<any> | any;
dataConstructor?: (raw: Event) => EventData;
eventType: string;
handler?: (data: EventData, context: EventContext) => PromiseLike<any> | any;
labels?: Record<string, string>;
legacyEventType?: string;
options?: DeploymentOptions;
/*
* TODO: should remove `provider` and require a fully qualified `eventType`
* once all providers have migrated to new format.
*/
provider: string;
service: string;
triggerResource: () => string;
}
/** @internal */
export function makeCloudFunction<EventData>({
contextOnlyHandler,
dataConstructor = (raw: Event) => raw.data,
eventType,
handler,
labels = {},
legacyEventType,
options = {},
provider,
service,
triggerResource,
}: MakeCloudFunctionArgs<EventData>): CloudFunction<EventData> {
handler = withInit(handler ?? contextOnlyHandler);
const cloudFunction: any = (data: any, context: any) => {
if (legacyEventType && context.eventType === legacyEventType) {
/*
* v1beta1 event flow has different format for context, transform them to
* new format.
*/
context.eventType = provider + "." + eventType;
context.resource = {
service,
name: context.resource,
};
}
const event: Event = {
data,
context,
};
if (provider === "google.firebase.database") {
context.authType = _detectAuthType(event);
if (context.authType !== "ADMIN") {
context.auth = _makeAuth(event, context.authType);
} else {
delete context.auth;
}
}
if (triggerResource() == null) {
Object.defineProperty(context, "params", {
get: () => {
throw new Error("context.params is not available when using the handler namespace.");
},
});
} else {
context.params = context.params || _makeParams(context, triggerResource);
}
let promise;
if (labels && labels["deployment-scheduled"]) {
// Scheduled function do not have meaningful data, so exclude it
promise = contextOnlyHandler(context);
} else {
const dataOrChange = dataConstructor(event);
promise = handler(dataOrChange, context);
}
if (typeof promise === "undefined") {
warn("Function returned undefined, expected Promise or value");
}
return Promise.resolve(promise);
};
Object.defineProperty(cloudFunction, "__trigger", {
get: () => {
if (triggerResource() == null) {
return {};
}
const trigger: any = {
...optionsToTrigger(options),
eventTrigger: {
resource: triggerResource(),
eventType: legacyEventType || provider + "." + eventType,
service,
},
};
if (!!labels && Object.keys(labels).length) {
trigger.labels = { ...trigger.labels, ...labels };
}
return trigger;
},
});
Object.defineProperty(cloudFunction, "__endpoint", {
get: () => {
if (triggerResource() == null) {
return undefined;
}
const endpoint: ManifestEndpoint = {
platform: "gcfv1",
...initV1Endpoint(options),
...optionsToEndpoint(options),
};
if (options.schedule) {
endpoint.scheduleTrigger = initV1ScheduleTrigger(options.schedule.schedule, options);
copyIfPresent(endpoint.scheduleTrigger, options.schedule, "timeZone");
copyIfPresent(
endpoint.scheduleTrigger.retryConfig,
options.schedule.retryConfig,
"retryCount",
"maxDoublings",
"maxBackoffDuration",
"maxRetryDuration",
"minBackoffDuration"
);
} else {
endpoint.eventTrigger = {
eventType: legacyEventType || provider + "." + eventType,
eventFilters: {
resource: triggerResource(),
},
retry: !!options.failurePolicy,
};
}
// Note: We intentionally don't make use of labels args here.
// labels is used to pass SDK-defined labels to the trigger, which isn't
// something we will do in the container contract world.
endpoint.labels = { ...endpoint.labels };
return endpoint;
},
});
if (options.schedule) {
cloudFunction.__requiredAPIs = [
{
api: "cloudscheduler.googleapis.com",
reason: "Needed for scheduled functions.",
},
];
}
cloudFunction.run = handler || contextOnlyHandler;
return cloudFunction;
}
function _makeParams(
context: EventContext,
triggerResourceGetter: () => string
): Record<string, string> {
if (context.params) {
// In unit testing, user may directly provide `context.params`.
return context.params;
}
if (!context.resource) {
// In unit testing, `resource` may be unpopulated for a test event.
return {};
}
const triggerResource = triggerResourceGetter();
const wildcards = triggerResource.match(WILDCARD_REGEX);
const params: { [option: string]: any } = {};
// Note: some tests don't set context.resource.name
const eventResourceParts = context?.resource?.name?.split?.("/");
if (wildcards && eventResourceParts) {
const triggerResourceParts = triggerResource.split("/");
for (const wildcard of wildcards) {
const wildcardNoBraces = wildcard.slice(1, -1);
const position = triggerResourceParts.indexOf(wildcard);
params[wildcardNoBraces] = eventResourceParts[position];
}
}
return params;
}
function _makeAuth(event: Event, authType: string) {
if (authType === "UNAUTHENTICATED") {
return null;
}
return {
uid: event.context?.auth?.variable?.uid,
token: event.context?.auth?.variable?.token,
};
}
function _detectAuthType(event: Event) {
if (event.context?.auth?.admin) {
return "ADMIN";
}
if (event.context?.auth?.variable) {
return "USER";
}
return "UNAUTHENTICATED";
}
/** @hidden */
export function optionsToTrigger(options: DeploymentOptions) {
const trigger: any = {};
copyIfPresent(
trigger,
options,
"regions",
"schedule",
"minInstances",
"maxInstances",
"ingressSettings",
"vpcConnectorEgressSettings",
"vpcConnector",
"labels",
"secrets"
);
convertIfPresent(trigger, options, "failurePolicy", "failurePolicy", (policy) => {
if (policy === false) {
return undefined;
} else if (policy === true) {
return DEFAULT_FAILURE_POLICY;
} else {
return policy;
}
});
convertIfPresent(trigger, options, "timeout", "timeoutSeconds", durationFromSeconds);
convertIfPresent(trigger, options, "availableMemoryMb", "memory", (mem) => {
const memoryLookup = {
"128MB": 128,
"256MB": 256,
"512MB": 512,
"1GB": 1024,
"2GB": 2048,
"4GB": 4096,
"8GB": 8192,
};
return memoryLookup[mem];
});
convertIfPresent(
trigger,
options,
"serviceAccountEmail",
"serviceAccount",
serviceAccountFromShorthand
);
return trigger;
}
export function optionsToEndpoint(options: DeploymentOptions): ManifestEndpoint {
const endpoint: ManifestEndpoint = {};
copyIfPresent(
endpoint,
options,
"omit",
"minInstances",
"maxInstances",
"ingressSettings",
"labels",
"timeoutSeconds"
);
convertIfPresent(endpoint, options, "region", "regions");
convertIfPresent(endpoint, options, "serviceAccountEmail", "serviceAccount", (sa) => sa);
convertIfPresent(
endpoint,
options,
"secretEnvironmentVariables",
"secrets",
(secrets: (string | SecretParam)[]) =>
secrets.map((secret) => ({ key: secret instanceof SecretParam ? secret.name : secret }))
);
if (options?.vpcConnector !== undefined) {
if (options.vpcConnector === null || options.vpcConnector instanceof ResetValue) {
endpoint.vpc = RESET_VALUE;
} else {
const vpc: ManifestEndpoint["vpc"] = { connector: options.vpcConnector };
convertIfPresent(vpc, options, "egressSettings", "vpcConnectorEgressSettings");
endpoint.vpc = vpc;
}
}
convertIfPresent(endpoint, options, "availableMemoryMb", "memory", (mem) => {
const memoryLookup = {
"128MB": 128,
"256MB": 256,
"512MB": 512,
"1GB": 1024,
"2GB": 2048,
"4GB": 4096,
"8GB": 8192,
};
return typeof mem === "object" ? mem : memoryLookup[mem];
});
return endpoint;
}
```
|
```java
package com.yahoo.collections;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashSet;
import java.util.List;
import java.util.Optional;
import java.util.Set;
import java.util.function.Predicate;
import java.util.stream.Collectors;
/**
* Utilities for java collections
*
* @author Tony Vaagenes
* @author gjoranv
*/
public class CollectionUtil {
/**
* Returns a String containing the string representation of all elements from
* the given collection, separated by the separator string.
*
* @param collection The collection
* @param sep The separator string
* @return A string: elem(0) + sep + ... + elem(N)
*/
public static String mkString(Collection<?> collection, String sep) {
return mkString(collection, "", sep, "");
}
/**
* Returns a String containing the string representation of all elements from
* the given collection, using a start string, separator strings, and an end string.
*
* @param collection The collection
* @param start The start string
* @param sep The separator string
* @param end The end string
* @param <T> The element type
* @return A string: start + elem(0) + sep + ... + elem(N) + end
*/
public static <T> String mkString(Collection<T> collection, String start, String sep, String end) {
return collection.stream()
.map(T::toString)
.collect(Collectors.joining(sep, start, end));
}
/**
* Returns true if the contents of the two given collections are equal, ignoring order.
*/
public static boolean equalContentsIgnoreOrder(Collection<?> c1, Collection<?> c2) {
return c1.size() == c2.size() && c1.containsAll(c2);
}
/**
* Returns the symmetric difference between two collections, i.e. the set of elements
* that occur in exactly one of the collections.
*/
public static <T> Set<T> symmetricDifference(Collection<? extends T> c1, Collection<? extends T> c2) {
Set<T> diff1 = new HashSet<>(c1);
diff1.removeAll(c2);
Set<T> diff2 = new HashSet<>(c2);
diff2.removeAll(c1);
diff1.addAll(diff2);
return diff1;
}
/**
* Returns the subset of elements from the given collection that can be cast to the reference
* type, defined by the given Class object.
*/
public static <T> Collection<T> filter(Collection<?> collection, Class<T> lowerBound) {
List<T> result = new ArrayList<>();
for (Object element : collection) {
if (lowerBound.isInstance(element)) {
result.add(lowerBound.cast(element));
}
}
return result;
}
/**
* Returns the first element in a collection according to iteration order.
* Returns null if the collection is empty.
*/
public static <T> T first(Collection<T> collection) {
return collection.isEmpty()? null: collection.iterator().next();
}
public static <T> Optional<T> firstMatching(T[] array, Predicate<? super T> predicate) {
for (T t: array) {
if (predicate.test(t))
return Optional.of(t);
}
return Optional.empty();
}
}
```
|
```javascript
// CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: path_to_url
(function() {
var mode = CodeMirror.getMode({tabSize: 4}, "markdown");
function MT(name) { test.mode(name, mode, Array.prototype.slice.call(arguments, 1)); }
var modeHighlightFormatting = CodeMirror.getMode({tabSize: 4}, {name: "markdown", highlightFormatting: true});
function FT(name) { test.mode(name, modeHighlightFormatting, Array.prototype.slice.call(arguments, 1)); }
FT("formatting_emAsterisk",
"[em&formatting&formatting-em *][em foo][em&formatting&formatting-em *]");
FT("formatting_emUnderscore",
"[em&formatting&formatting-em _][em foo][em&formatting&formatting-em _]");
FT("formatting_strongAsterisk",
"[strong&formatting&formatting-strong **][strong foo][strong&formatting&formatting-strong **]");
FT("formatting_strongUnderscore",
"[strong&formatting&formatting-strong __][strong foo][strong&formatting&formatting-strong __]");
FT("formatting_codeBackticks",
"[comment&formatting&formatting-code `][comment foo][comment&formatting&formatting-code `]");
FT("formatting_doubleBackticks",
"[comment&formatting&formatting-code ``][comment foo ` bar][comment&formatting&formatting-code ``]");
FT("formatting_atxHeader",
"[header&header-1&formatting&formatting-header&formatting-header-1 #][header&header-1 foo # bar ][header&header-1&formatting&formatting-header&formatting-header-1 #]");
FT("formatting_setextHeader",
"foo",
"[header&header-1&formatting&formatting-header&formatting-header-1 =]");
FT("formatting_blockquote",
"[quote"e-1&formatting&formatting-quote&formatting-quote-1 > ][quote"e-1 foo]");
FT("formatting_list",
"[variable-2&formatting&formatting-list&formatting-list-ul - ][variable-2 foo]");
FT("formatting_list",
"[variable-2&formatting&formatting-list&formatting-list-ol 1. ][variable-2 foo]");
FT("formatting_link",
"[link&formatting&formatting-link [][link foo][link&formatting&formatting-link ]]][string&formatting&formatting-link-string (][string path_to_url )]");
FT("formatting_linkReference",
"[link&formatting&formatting-link [][link foo][link&formatting&formatting-link ]]][string&formatting&formatting-link-string [][string bar][string&formatting&formatting-link-string ]]]",
"[link&formatting&formatting-link [][link bar][link&formatting&formatting-link ]]:] [string path_to_url");
FT("formatting_linkWeb",
"[link&formatting&formatting-link <][link path_to_url >]");
FT("formatting_linkEmail",
"[link&formatting&formatting-link <][link user@example.com][link&formatting&formatting-link >]");
FT("formatting_escape",
"[formatting-escape \\*]");
MT("plainText",
"foo");
// Don't style single trailing space
MT("trailingSpace1",
"foo ");
// Two or more trailing spaces should be styled with line break character
MT("trailingSpace2",
"foo[trailing-space-a ][trailing-space-new-line ]");
MT("trailingSpace3",
"foo[trailing-space-a ][trailing-space-b ][trailing-space-new-line ]");
MT("trailingSpace4",
"foo[trailing-space-a ][trailing-space-b ][trailing-space-a ][trailing-space-new-line ]");
// Code blocks using 4 spaces (regardless of CodeMirror.tabSize value)
MT("codeBlocksUsing4Spaces",
" [comment foo]");
// Code blocks using 4 spaces with internal indentation
MT("codeBlocksUsing4SpacesIndentation",
" [comment bar]",
" [comment hello]",
" [comment world]",
" [comment foo]",
"bar");
// Code blocks using 4 spaces with internal indentation
MT("codeBlocksUsing4SpacesIndentation",
" foo",
" [comment bar]",
" [comment hello]",
" [comment world]");
// Code blocks should end even after extra indented lines
MT("codeBlocksWithTrailingIndentedLine",
" [comment foo]",
" [comment bar]",
" [comment baz]",
" ",
"hello");
// Code blocks using 1 tab (regardless of CodeMirror.indentWithTabs value)
MT("codeBlocksUsing1Tab",
"\t[comment foo]");
// Inline code using backticks
MT("inlineCodeUsingBackticks",
"foo [comment `bar`]");
// Block code using single backtick (shouldn't work)
MT("blockCodeSingleBacktick",
"[comment `]",
"foo",
"[comment `]");
// Unclosed backticks
// Instead of simply marking as CODE, it would be nice to have an
// incomplete flag for CODE, that is styled slightly different.
MT("unclosedBackticks",
"foo [comment `bar]");
// Per documentation: "To include a literal backtick character within a
// code span, you can use multiple backticks as the opening and closing
// delimiters"
MT("doubleBackticks",
"[comment ``foo ` bar``]");
// Tests based on Dingus
// path_to_url
//
// Multiple backticks within an inline code block
MT("consecutiveBackticks",
"[comment `foo```bar`]");
// Multiple backticks within an inline code block with a second code block
MT("consecutiveBackticks",
"[comment `foo```bar`] hello [comment `world`]");
// Unclosed with several different groups of backticks
MT("unclosedBackticks",
"[comment ``foo ``` bar` hello]");
// Closed with several different groups of backticks
MT("closedBackticks",
"[comment ``foo ``` bar` hello``] world");
// atx headers
// path_to_url#header
MT("atxH1",
"[header&header-1 # foo]");
MT("atxH2",
"[header&header-2 ## foo]");
MT("atxH3",
"[header&header-3 ### foo]");
MT("atxH4",
"[header&header-4 #### foo]");
MT("atxH5",
"[header&header-5 ##### foo]");
MT("atxH6",
"[header&header-6 ###### foo]");
// H6 - 7x '#' should still be H6, per Dingus
// path_to_url
MT("atxH6NotH7",
"[header&header-6 ####### foo]");
// Inline styles should be parsed inside headers
MT("atxH1inline",
"[header&header-1 # foo ][header&header-1&em *bar*]");
// Setext headers - H1, H2
// Per documentation, "Any number of underlining =s or -s will work."
// path_to_url#header
// Ideally, the text would be marked as `header` as well, but this is
// not really feasible at the moment. So, instead, we're testing against
// what works today, to avoid any regressions.
//
// Check if single underlining = works
MT("setextH1",
"foo",
"[header&header-1 =]");
// Check if 3+ ='s work
MT("setextH1",
"foo",
"[header&header-1 ===]");
// Check if single underlining - works
MT("setextH2",
"foo",
"[header&header-2 -]");
// Check if 3+ -'s work
MT("setextH2",
"foo",
"[header&header-2 ---]");
// Single-line blockquote with trailing space
MT("blockquoteSpace",
"[quote"e-1 > foo]");
// Single-line blockquote
MT("blockquoteNoSpace",
"[quote"e-1 >foo]");
// No blank line before blockquote
MT("blockquoteNoBlankLine",
"foo",
"[quote"e-1 > bar]");
// Nested blockquote
MT("blockquoteSpace",
"[quote"e-1 > foo]",
"[quote"e-1 >][quote"e-2 > foo]",
"[quote"e-1 >][quote"e-2 >][quote"e-3 > foo]");
// Single-line blockquote followed by normal paragraph
MT("blockquoteThenParagraph",
"[quote"e-1 >foo]",
"",
"bar");
// Multi-line blockquote (lazy mode)
MT("multiBlockquoteLazy",
"[quote"e-1 >foo]",
"[quote"e-1 bar]");
// Multi-line blockquote followed by normal paragraph (lazy mode)
MT("multiBlockquoteLazyThenParagraph",
"[quote"e-1 >foo]",
"[quote"e-1 bar]",
"",
"hello");
// Multi-line blockquote (non-lazy mode)
MT("multiBlockquote",
"[quote"e-1 >foo]",
"[quote"e-1 >bar]");
// Multi-line blockquote followed by normal paragraph (non-lazy mode)
MT("multiBlockquoteThenParagraph",
"[quote"e-1 >foo]",
"[quote"e-1 >bar]",
"",
"hello");
// Check list types
MT("listAsterisk",
"foo",
"bar",
"",
"[variable-2 * foo]",
"[variable-2 * bar]");
MT("listPlus",
"foo",
"bar",
"",
"[variable-2 + foo]",
"[variable-2 + bar]");
MT("listDash",
"foo",
"bar",
"",
"[variable-2 - foo]",
"[variable-2 - bar]");
MT("listNumber",
"foo",
"bar",
"",
"[variable-2 1. foo]",
"[variable-2 2. bar]");
// Lists require a preceding blank line (per Dingus)
MT("listBogus",
"foo",
"1. bar",
"2. hello");
// List after header
MT("listAfterHeader",
"[header&header-1 # foo]",
"[variable-2 - bar]");
// Formatting in lists (*)
MT("listAsteriskFormatting",
"[variable-2 * ][variable-2&em *foo*][variable-2 bar]",
"[variable-2 * ][variable-2&strong **foo**][variable-2 bar]",
"[variable-2 * ][variable-2&strong **][variable-2&em&strong *foo**][variable-2&em *][variable-2 bar]",
"[variable-2 * ][variable-2&comment `foo`][variable-2 bar]");
// Formatting in lists (+)
MT("listPlusFormatting",
"[variable-2 + ][variable-2&em *foo*][variable-2 bar]",
"[variable-2 + ][variable-2&strong **foo**][variable-2 bar]",
"[variable-2 + ][variable-2&strong **][variable-2&em&strong *foo**][variable-2&em *][variable-2 bar]",
"[variable-2 + ][variable-2&comment `foo`][variable-2 bar]");
// Formatting in lists (-)
MT("listDashFormatting",
"[variable-2 - ][variable-2&em *foo*][variable-2 bar]",
"[variable-2 - ][variable-2&strong **foo**][variable-2 bar]",
"[variable-2 - ][variable-2&strong **][variable-2&em&strong *foo**][variable-2&em *][variable-2 bar]",
"[variable-2 - ][variable-2&comment `foo`][variable-2 bar]");
// Formatting in lists (1.)
MT("listNumberFormatting",
"[variable-2 1. ][variable-2&em *foo*][variable-2 bar]",
"[variable-2 2. ][variable-2&strong **foo**][variable-2 bar]",
"[variable-2 3. ][variable-2&strong **][variable-2&em&strong *foo**][variable-2&em *][variable-2 bar]",
"[variable-2 4. ][variable-2&comment `foo`][variable-2 bar]");
// Paragraph lists
MT("listParagraph",
"[variable-2 * foo]",
"",
"[variable-2 * bar]");
// Multi-paragraph lists
//
// 4 spaces
MT("listMultiParagraph",
"[variable-2 * foo]",
"",
"[variable-2 * bar]",
"",
" [variable-2 hello]");
// 4 spaces, extra blank lines (should still be list, per Dingus)
MT("listMultiParagraphExtra",
"[variable-2 * foo]",
"",
"[variable-2 * bar]",
"",
"",
" [variable-2 hello]");
// 4 spaces, plus 1 space (should still be list, per Dingus)
MT("listMultiParagraphExtraSpace",
"[variable-2 * foo]",
"",
"[variable-2 * bar]",
"",
" [variable-2 hello]",
"",
" [variable-2 world]");
// 1 tab
MT("listTab",
"[variable-2 * foo]",
"",
"[variable-2 * bar]",
"",
"\t[variable-2 hello]");
// No indent
MT("listNoIndent",
"[variable-2 * foo]",
"",
"[variable-2 * bar]",
"",
"hello");
// Blockquote
MT("blockquote",
"[variable-2 * foo]",
"",
"[variable-2 * bar]",
"",
" [variable-2"e"e-1 > hello]");
// Code block
MT("blockquoteCode",
"[variable-2 * foo]",
"",
"[variable-2 * bar]",
"",
" [comment > hello]",
"",
" [variable-2 world]");
// Code block followed by text
MT("blockquoteCodeText",
"[variable-2 * foo]",
"",
" [variable-2 bar]",
"",
" [comment hello]",
"",
" [variable-2 world]");
// Nested list
MT("listAsteriskNested",
"[variable-2 * foo]",
"",
" [variable-3 * bar]");
MT("listPlusNested",
"[variable-2 + foo]",
"",
" [variable-3 + bar]");
MT("listDashNested",
"[variable-2 - foo]",
"",
" [variable-3 - bar]");
MT("listNumberNested",
"[variable-2 1. foo]",
"",
" [variable-3 2. bar]");
MT("listMixed",
"[variable-2 * foo]",
"",
" [variable-3 + bar]",
"",
" [keyword - hello]",
"",
" [variable-2 1. world]");
MT("listBlockquote",
"[variable-2 * foo]",
"",
" [variable-3 + bar]",
"",
" [quote"e-1&variable-3 > hello]");
MT("listCode",
"[variable-2 * foo]",
"",
" [variable-3 + bar]",
"",
" [comment hello]");
// Code with internal indentation
MT("listCodeIndentation",
"[variable-2 * foo]",
"",
" [comment bar]",
" [comment hello]",
" [comment world]",
" [comment foo]",
" [variable-2 bar]");
// List nesting edge cases
MT("listNested",
"[variable-2 * foo]",
"",
" [variable-3 * bar]",
"",
" [variable-2 hello]"
);
MT("listNested",
"[variable-2 * foo]",
"",
" [variable-3 * bar]",
"",
" [variable-3 * foo]"
);
// Code followed by text
MT("listCodeText",
"[variable-2 * foo]",
"",
" [comment bar]",
"",
"hello");
// Following tests directly from official Markdown documentation
// path_to_url#hr
MT("hrSpace",
"[hr * * *]");
MT("hr",
"[hr ***]");
MT("hrLong",
"[hr *****]");
MT("hrSpaceDash",
"[hr - - -]");
MT("hrDashLong",
"[hr ---------------------------------------]");
// Inline link with title
MT("linkTitle",
"[link [[foo]]][string (path_to_url \"bar\")] hello");
// Inline link without title
MT("linkNoTitle",
"[link [[foo]]][string (path_to_url bar");
// Inline link with image
MT("linkImage",
"[link [[][tag ![[foo]]][string (path_to_url ]]][string (path_to_url bar");
// Inline link with Em
MT("linkEm",
"[link [[][link&em *foo*][link ]]][string (path_to_url bar");
// Inline link with Strong
MT("linkStrong",
"[link [[][link&strong **foo**][link ]]][string (path_to_url bar");
// Inline link with EmStrong
MT("linkEmStrong",
"[link [[][link&strong **][link&em&strong *foo**][link&em *][link ]]][string (path_to_url bar");
// Image with title
MT("imageTitle",
"[tag ![[foo]]][string (path_to_url \"bar\")] hello");
// Image without title
MT("imageNoTitle",
"[tag ![[foo]]][string (path_to_url bar");
// Image with asterisks
MT("imageAsterisks",
"[tag ![[*foo*]]][string (path_to_url bar");
// Not a link. Should be normal text due to square brackets being used
// regularly in text, especially in quoted material, and no space is allowed
// between square brackets and parentheses (per Dingus).
MT("notALink",
"[[foo]] (bar)");
// Reference-style links
MT("linkReference",
"[link [[foo]]][string [[bar]]] hello");
// Reference-style links with Em
MT("linkReferenceEm",
"[link [[][link&em *foo*][link ]]][string [[bar]]] hello");
// Reference-style links with Strong
MT("linkReferenceStrong",
"[link [[][link&strong **foo**][link ]]][string [[bar]]] hello");
// Reference-style links with EmStrong
MT("linkReferenceEmStrong",
"[link [[][link&strong **][link&em&strong *foo**][link&em *][link ]]][string [[bar]]] hello");
// Reference-style links with optional space separator (per docuentation)
// "You can optionally use a space to separate the sets of brackets"
MT("linkReferenceSpace",
"[link [[foo]]] [string [[bar]]] hello");
// Should only allow a single space ("...use *a* space...")
MT("linkReferenceDoubleSpace",
"[[foo]] [[bar]] hello");
// Reference-style links with implicit link name
MT("linkImplicit",
"[link [[foo]]][string [[]]] hello");
// @todo It would be nice if, at some point, the document was actually
// checked to see if the referenced link exists
// Link label, for reference-style links (taken from documentation)
MT("labelNoTitle",
"[link [[foo]]:] [string path_to_url");
MT("labelIndented",
" [link [[foo]]:] [string path_to_url");
MT("labelSpaceTitle",
"[link [[foo bar]]:] [string path_to_url \"hello\"]");
MT("labelDoubleTitle",
"[link [[foo bar]]:] [string path_to_url \"hello\"] \"world\"");
MT("labelTitleDoubleQuotes",
"[link [[foo]]:] [string path_to_url \"bar\"]");
MT("labelTitleSingleQuotes",
"[link [[foo]]:] [string path_to_url 'bar']");
MT("labelTitleParenthese",
"[link [[foo]]:] [string path_to_url (bar)]");
MT("labelTitleInvalid",
"[link [[foo]]:] [string path_to_url bar");
MT("labelLinkAngleBrackets",
"[link [[foo]]:] [string <path_to_url \"bar\"]");
MT("labelTitleNextDoubleQuotes",
"[link [[foo]]:] [string path_to_url",
"[string \"bar\"] hello");
MT("labelTitleNextSingleQuotes",
"[link [[foo]]:] [string path_to_url",
"[string 'bar'] hello");
MT("labelTitleNextParenthese",
"[link [[foo]]:] [string path_to_url",
"[string (bar)] hello");
MT("labelTitleNextMixed",
"[link [[foo]]:] [string path_to_url",
"(bar\" hello");
MT("linkWeb",
"[link <path_to_url foo");
MT("linkWebDouble",
"[link <path_to_url foo [link <path_to_url");
MT("linkEmail",
"[link <user@example.com>] foo");
MT("linkEmailDouble",
"[link <user@example.com>] foo [link <user@example.com>]");
MT("emAsterisk",
"[em *foo*] bar");
MT("emUnderscore",
"[em _foo_] bar");
MT("emInWordAsterisk",
"foo[em *bar*]hello");
MT("emInWordUnderscore",
"foo[em _bar_]hello");
// Per documentation: "...surround an * or _ with spaces, itll be
// treated as a literal asterisk or underscore."
MT("emEscapedBySpaceIn",
"foo [em _bar _ hello_] world");
MT("emEscapedBySpaceOut",
"foo _ bar[em _hello_]world");
MT("emEscapedByNewline",
"foo",
"_ bar[em _hello_]world");
// Unclosed emphasis characters
// Instead of simply marking as EM / STRONG, it would be nice to have an
// incomplete flag for EM and STRONG, that is styled slightly different.
MT("emIncompleteAsterisk",
"foo [em *bar]");
MT("emIncompleteUnderscore",
"foo [em _bar]");
MT("strongAsterisk",
"[strong **foo**] bar");
MT("strongUnderscore",
"[strong __foo__] bar");
MT("emStrongAsterisk",
"[em *foo][em&strong **bar*][strong hello**] world");
MT("emStrongUnderscore",
"[em _foo][em&strong __bar_][strong hello__] world");
// "...same character must be used to open and close an emphasis span.""
MT("emStrongMixed",
"[em _foo][em&strong **bar*hello__ world]");
MT("emStrongMixed",
"[em *foo][em&strong __bar_hello** world]");
// These characters should be escaped:
// \ backslash
// ` backtick
// * asterisk
// _ underscore
// {} curly braces
// [] square brackets
// () parentheses
// # hash mark
// + plus sign
// - minus sign (hyphen)
// . dot
// ! exclamation mark
MT("escapeBacktick",
"foo \\`bar\\`");
MT("doubleEscapeBacktick",
"foo \\\\[comment `bar\\\\`]");
MT("escapeAsterisk",
"foo \\*bar\\*");
MT("doubleEscapeAsterisk",
"foo \\\\[em *bar\\\\*]");
MT("escapeUnderscore",
"foo \\_bar\\_");
MT("doubleEscapeUnderscore",
"foo \\\\[em _bar\\\\_]");
MT("escapeHash",
"\\# foo");
MT("doubleEscapeHash",
"\\\\# foo");
MT("escapeNewline",
"\\",
"[em *foo*]");
// Tests to make sure GFM-specific things aren't getting through
MT("taskList",
"[variable-2 * [ ]] bar]");
MT("fencedCodeBlocks",
"[comment ```]",
"foo",
"[comment ```]");
// Tests that require XML mode
MT("xmlMode",
"[tag&bracket <][tag div][tag&bracket >]",
"*foo*",
"[tag&bracket <][tag path_to_url />]",
"[tag&bracket </][tag div][tag&bracket >]",
"[link <path_to_url");
MT("xmlModeWithMarkdownInside",
"[tag&bracket <][tag div] [attribute markdown]=[string 1][tag&bracket >]",
"[em *foo*]",
"[link <path_to_url",
"[tag </div>]",
"[link <path_to_url",
"[tag&bracket <][tag div][tag&bracket >]",
"[tag&bracket </][tag div][tag&bracket >]");
})();
```
|
```protocol buffer
// Go support for Protocol Buffers - Google's data interchange format
//
// path_to_url
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// * Redistributions in binary form must reproduce the above
// copyright notice, this list of conditions and the following disclaimer
// in the documentation and/or other materials provided with the
// distribution.
// * Neither the name of Google Inc. nor the names of its
// contributors may be used to endorse or promote products derived from
// this software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// A feature-rich test file for the protocol compiler and libraries.
syntax = "proto2";
package testdata;
enum FOO { FOO1 = 1; };
message GoEnum {
required FOO foo = 1;
}
message GoTestField {
required string Label = 1;
required string Type = 2;
}
message GoTest {
// An enum, for completeness.
enum KIND {
VOID = 0;
// Basic types
BOOL = 1;
BYTES = 2;
FINGERPRINT = 3;
FLOAT = 4;
INT = 5;
STRING = 6;
TIME = 7;
// Groupings
TUPLE = 8;
ARRAY = 9;
MAP = 10;
// Table types
TABLE = 11;
// Functions
FUNCTION = 12; // last tag
};
// Some typical parameters
required KIND Kind = 1;
optional string Table = 2;
optional int32 Param = 3;
// Required, repeated and optional foreign fields.
required GoTestField RequiredField = 4;
repeated GoTestField RepeatedField = 5;
optional GoTestField OptionalField = 6;
// Required fields of all basic types
required bool F_Bool_required = 10;
required int32 F_Int32_required = 11;
required int64 F_Int64_required = 12;
required fixed32 F_Fixed32_required = 13;
required fixed64 F_Fixed64_required = 14;
required uint32 F_Uint32_required = 15;
required uint64 F_Uint64_required = 16;
required float F_Float_required = 17;
required double F_Double_required = 18;
required string F_String_required = 19;
required bytes F_Bytes_required = 101;
required sint32 F_Sint32_required = 102;
required sint64 F_Sint64_required = 103;
// Repeated fields of all basic types
repeated bool F_Bool_repeated = 20;
repeated int32 F_Int32_repeated = 21;
repeated int64 F_Int64_repeated = 22;
repeated fixed32 F_Fixed32_repeated = 23;
repeated fixed64 F_Fixed64_repeated = 24;
repeated uint32 F_Uint32_repeated = 25;
repeated uint64 F_Uint64_repeated = 26;
repeated float F_Float_repeated = 27;
repeated double F_Double_repeated = 28;
repeated string F_String_repeated = 29;
repeated bytes F_Bytes_repeated = 201;
repeated sint32 F_Sint32_repeated = 202;
repeated sint64 F_Sint64_repeated = 203;
// Optional fields of all basic types
optional bool F_Bool_optional = 30;
optional int32 F_Int32_optional = 31;
optional int64 F_Int64_optional = 32;
optional fixed32 F_Fixed32_optional = 33;
optional fixed64 F_Fixed64_optional = 34;
optional uint32 F_Uint32_optional = 35;
optional uint64 F_Uint64_optional = 36;
optional float F_Float_optional = 37;
optional double F_Double_optional = 38;
optional string F_String_optional = 39;
optional bytes F_Bytes_optional = 301;
optional sint32 F_Sint32_optional = 302;
optional sint64 F_Sint64_optional = 303;
// Default-valued fields of all basic types
optional bool F_Bool_defaulted = 40 [default=true];
optional int32 F_Int32_defaulted = 41 [default=32];
optional int64 F_Int64_defaulted = 42 [default=64];
optional fixed32 F_Fixed32_defaulted = 43 [default=320];
optional fixed64 F_Fixed64_defaulted = 44 [default=640];
optional uint32 F_Uint32_defaulted = 45 [default=3200];
optional uint64 F_Uint64_defaulted = 46 [default=6400];
optional float F_Float_defaulted = 47 [default=314159.];
optional double F_Double_defaulted = 48 [default=271828.];
optional string F_String_defaulted = 49 [default="hello, \"world!\"\n"];
optional bytes F_Bytes_defaulted = 401 [default="Bignose"];
optional sint32 F_Sint32_defaulted = 402 [default = -32];
optional sint64 F_Sint64_defaulted = 403 [default = -64];
// Packed repeated fields (no string or bytes).
repeated bool F_Bool_repeated_packed = 50 [packed=true];
repeated int32 F_Int32_repeated_packed = 51 [packed=true];
repeated int64 F_Int64_repeated_packed = 52 [packed=true];
repeated fixed32 F_Fixed32_repeated_packed = 53 [packed=true];
repeated fixed64 F_Fixed64_repeated_packed = 54 [packed=true];
repeated uint32 F_Uint32_repeated_packed = 55 [packed=true];
repeated uint64 F_Uint64_repeated_packed = 56 [packed=true];
repeated float F_Float_repeated_packed = 57 [packed=true];
repeated double F_Double_repeated_packed = 58 [packed=true];
repeated sint32 F_Sint32_repeated_packed = 502 [packed=true];
repeated sint64 F_Sint64_repeated_packed = 503 [packed=true];
// Required, repeated, and optional groups.
required group RequiredGroup = 70 {
required string RequiredField = 71;
};
repeated group RepeatedGroup = 80 {
required string RequiredField = 81;
};
optional group OptionalGroup = 90 {
required string RequiredField = 91;
};
}
// For testing skipping of unrecognized fields.
// Numbers are all big, larger than tag numbers in GoTestField,
// the message used in the corresponding test.
message GoSkipTest {
required int32 skip_int32 = 11;
required fixed32 skip_fixed32 = 12;
required fixed64 skip_fixed64 = 13;
required string skip_string = 14;
required group SkipGroup = 15 {
required int32 group_int32 = 16;
required string group_string = 17;
}
}
// For testing packed/non-packed decoder switching.
// A serialized instance of one should be deserializable as the other.
message NonPackedTest {
repeated int32 a = 1;
}
message PackedTest {
repeated int32 b = 1 [packed=true];
}
message MaxTag {
// Maximum possible tag number.
optional string last_field = 536870911;
}
message OldMessage {
message Nested {
optional string name = 1;
}
optional Nested nested = 1;
optional int32 num = 2;
}
// NewMessage is wire compatible with OldMessage;
// imagine it as a future version.
message NewMessage {
message Nested {
optional string name = 1;
optional string food_group = 2;
}
optional Nested nested = 1;
// This is an int32 in OldMessage.
optional int64 num = 2;
}
// Smaller tests for ASCII formatting.
message InnerMessage {
required string host = 1;
optional int32 port = 2 [default=4000];
optional bool connected = 3;
}
message OtherMessage {
optional int64 key = 1;
optional bytes value = 2;
optional float weight = 3;
optional InnerMessage inner = 4;
}
message MyMessage {
required int32 count = 1;
optional string name = 2;
optional string quote = 3;
repeated string pet = 4;
optional InnerMessage inner = 5;
repeated OtherMessage others = 6;
repeated InnerMessage rep_inner = 12;
enum Color {
RED = 0;
GREEN = 1;
BLUE = 2;
};
optional Color bikeshed = 7;
optional group SomeGroup = 8 {
optional int32 group_field = 9;
}
// This field becomes [][]byte in the generated code.
repeated bytes rep_bytes = 10;
optional double bigfloat = 11;
extensions 100 to max;
}
message Ext {
extend MyMessage {
optional Ext more = 103;
optional string text = 104;
optional int32 number = 105;
}
optional string data = 1;
}
extend MyMessage {
repeated string greeting = 106;
}
message DefaultsMessage {
enum DefaultsEnum {
ZERO = 0;
ONE = 1;
TWO = 2;
};
extensions 100 to max;
}
extend DefaultsMessage {
optional double no_default_double = 101;
optional float no_default_float = 102;
optional int32 no_default_int32 = 103;
optional int64 no_default_int64 = 104;
optional uint32 no_default_uint32 = 105;
optional uint64 no_default_uint64 = 106;
optional sint32 no_default_sint32 = 107;
optional sint64 no_default_sint64 = 108;
optional fixed32 no_default_fixed32 = 109;
optional fixed64 no_default_fixed64 = 110;
optional sfixed32 no_default_sfixed32 = 111;
optional sfixed64 no_default_sfixed64 = 112;
optional bool no_default_bool = 113;
optional string no_default_string = 114;
optional bytes no_default_bytes = 115;
optional DefaultsMessage.DefaultsEnum no_default_enum = 116;
optional double default_double = 201 [default = 3.1415];
optional float default_float = 202 [default = 3.14];
optional int32 default_int32 = 203 [default = 42];
optional int64 default_int64 = 204 [default = 43];
optional uint32 default_uint32 = 205 [default = 44];
optional uint64 default_uint64 = 206 [default = 45];
optional sint32 default_sint32 = 207 [default = 46];
optional sint64 default_sint64 = 208 [default = 47];
optional fixed32 default_fixed32 = 209 [default = 48];
optional fixed64 default_fixed64 = 210 [default = 49];
optional sfixed32 default_sfixed32 = 211 [default = 50];
optional sfixed64 default_sfixed64 = 212 [default = 51];
optional bool default_bool = 213 [default = true];
optional string default_string = 214 [default = "Hello, string"];
optional bytes default_bytes = 215 [default = "Hello, bytes"];
optional DefaultsMessage.DefaultsEnum default_enum = 216 [default = ONE];
}
message MyMessageSet {
option message_set_wire_format = true;
extensions 100 to max;
}
message Empty {
}
extend MyMessageSet {
optional Empty x201 = 201;
optional Empty x202 = 202;
optional Empty x203 = 203;
optional Empty x204 = 204;
optional Empty x205 = 205;
optional Empty x206 = 206;
optional Empty x207 = 207;
optional Empty x208 = 208;
optional Empty x209 = 209;
optional Empty x210 = 210;
optional Empty x211 = 211;
optional Empty x212 = 212;
optional Empty x213 = 213;
optional Empty x214 = 214;
optional Empty x215 = 215;
optional Empty x216 = 216;
optional Empty x217 = 217;
optional Empty x218 = 218;
optional Empty x219 = 219;
optional Empty x220 = 220;
optional Empty x221 = 221;
optional Empty x222 = 222;
optional Empty x223 = 223;
optional Empty x224 = 224;
optional Empty x225 = 225;
optional Empty x226 = 226;
optional Empty x227 = 227;
optional Empty x228 = 228;
optional Empty x229 = 229;
optional Empty x230 = 230;
optional Empty x231 = 231;
optional Empty x232 = 232;
optional Empty x233 = 233;
optional Empty x234 = 234;
optional Empty x235 = 235;
optional Empty x236 = 236;
optional Empty x237 = 237;
optional Empty x238 = 238;
optional Empty x239 = 239;
optional Empty x240 = 240;
optional Empty x241 = 241;
optional Empty x242 = 242;
optional Empty x243 = 243;
optional Empty x244 = 244;
optional Empty x245 = 245;
optional Empty x246 = 246;
optional Empty x247 = 247;
optional Empty x248 = 248;
optional Empty x249 = 249;
optional Empty x250 = 250;
}
message MessageList {
repeated group Message = 1 {
required string name = 2;
required int32 count = 3;
}
}
message Strings {
optional string string_field = 1;
optional bytes bytes_field = 2;
}
message Defaults {
enum Color {
RED = 0;
GREEN = 1;
BLUE = 2;
}
// Default-valued fields of all basic types.
// Same as GoTest, but copied here to make testing easier.
optional bool F_Bool = 1 [default=true];
optional int32 F_Int32 = 2 [default=32];
optional int64 F_Int64 = 3 [default=64];
optional fixed32 F_Fixed32 = 4 [default=320];
optional fixed64 F_Fixed64 = 5 [default=640];
optional uint32 F_Uint32 = 6 [default=3200];
optional uint64 F_Uint64 = 7 [default=6400];
optional float F_Float = 8 [default=314159.];
optional double F_Double = 9 [default=271828.];
optional string F_String = 10 [default="hello, \"world!\"\n"];
optional bytes F_Bytes = 11 [default="Bignose"];
optional sint32 F_Sint32 = 12 [default=-32];
optional sint64 F_Sint64 = 13 [default=-64];
optional Color F_Enum = 14 [default=GREEN];
// More fields with crazy defaults.
optional float F_Pinf = 15 [default=inf];
optional float F_Ninf = 16 [default=-inf];
optional float F_Nan = 17 [default=nan];
// Sub-message.
optional SubDefaults sub = 18;
// Redundant but explicit defaults.
optional string str_zero = 19 [default=""];
}
message SubDefaults {
optional int64 n = 1 [default=7];
}
message RepeatedEnum {
enum Color {
RED = 1;
}
repeated Color color = 1;
}
message MoreRepeated {
repeated bool bools = 1;
repeated bool bools_packed = 2 [packed=true];
repeated int32 ints = 3;
repeated int32 ints_packed = 4 [packed=true];
repeated int64 int64s_packed = 7 [packed=true];
repeated string strings = 5;
repeated fixed32 fixeds = 6;
}
// GroupOld and GroupNew have the same wire format.
// GroupNew has a new field inside a group.
message GroupOld {
optional group G = 101 {
optional int32 x = 2;
}
}
message GroupNew {
optional group G = 101 {
optional int32 x = 2;
optional int32 y = 3;
}
}
message FloatingPoint {
required double f = 1;
}
message MessageWithMap {
map<int32, string> name_mapping = 1;
map<sint64, FloatingPoint> msg_mapping = 2;
map<bool, bytes> byte_mapping = 3;
map<string, string> str_to_str = 4;
}
message Communique {
optional bool make_me_cry = 1;
// This is a oneof, called "union".
oneof union {
int32 number = 5;
string name = 6;
bytes data = 7;
double temp_c = 8;
MyMessage.Color col = 9;
Strings msg = 10;
}
}
```
|
Rhabdochaeta pulchella is a species of tephritid or fruit flies in the genus Rhabdochaeta of the family Tephritidae.
Distribution
India, Sri Lanka, Thailand, Laos, Vietnam, Japan, Philippines, Malaysia, Indonesia, Papua New Guinea, Australia.
References
Tephritinae
Insects described in 1904
Taxa named by Johannes C. H. de Meijere
Diptera of Asia
|
```go
package routing
import (
"crypto/rand"
"crypto/sha256"
"fmt"
"io"
"reflect"
"testing"
"time"
"github.com/btcsuite/btcd/btcec/v2"
"github.com/davecgh/go-spew/spew"
"github.com/lightningnetwork/lnd/channeldb"
"github.com/lightningnetwork/lnd/lntypes"
"github.com/lightningnetwork/lnd/routing/route"
"github.com/stretchr/testify/require"
)
var (
priv, _ = btcec.NewPrivateKey()
pub = priv.PubKey()
testHop = &route.Hop{
PubKeyBytes: route.NewVertex(pub),
ChannelID: 12345,
OutgoingTimeLock: 111,
AmtToForward: 555,
LegacyPayload: true,
}
testRoute = route.Route{
TotalTimeLock: 123,
TotalAmount: 1234567,
SourcePubKey: route.NewVertex(pub),
Hops: []*route.Hop{
testHop,
testHop,
},
}
testTimeout = 5 * time.Second
)
// TestControlTowerSubscribeUnknown tests that subscribing to an unknown
// payment fails.
func TestControlTowerSubscribeUnknown(t *testing.T) {
t.Parallel()
db, err := initDB(t, false)
require.NoError(t, err, "unable to init db")
pControl := NewControlTower(channeldb.NewPaymentControl(db))
// Subscription should fail when the payment is not known.
_, err = pControl.SubscribePayment(lntypes.Hash{1})
if err != channeldb.ErrPaymentNotInitiated {
t.Fatal("expected subscribe to fail for unknown payment")
}
}
// TestControlTowerSubscribeSuccess tests that payment updates for a
// successful payment are properly sent to subscribers.
func TestControlTowerSubscribeSuccess(t *testing.T) {
t.Parallel()
db, err := initDB(t, false)
require.NoError(t, err, "unable to init db")
pControl := NewControlTower(channeldb.NewPaymentControl(db))
// Initiate a payment.
info, attempt, preimg, err := genInfo()
if err != nil {
t.Fatal(err)
}
err = pControl.InitPayment(info.PaymentIdentifier, info)
if err != nil {
t.Fatal(err)
}
// Subscription should succeed and immediately report the InFlight
// status.
subscriber1, err := pControl.SubscribePayment(info.PaymentIdentifier)
require.NoError(t, err, "expected subscribe to succeed, but got")
// Register an attempt.
err = pControl.RegisterAttempt(info.PaymentIdentifier, attempt)
if err != nil {
t.Fatal(err)
}
// Register a second subscriber after the first attempt has started.
subscriber2, err := pControl.SubscribePayment(info.PaymentIdentifier)
require.NoError(t, err, "expected subscribe to succeed, but got")
// Mark the payment as successful.
settleInfo := channeldb.HTLCSettleInfo{
Preimage: preimg,
}
htlcAttempt, err := pControl.SettleAttempt(
info.PaymentIdentifier, attempt.AttemptID, &settleInfo,
)
if err != nil {
t.Fatal(err)
}
if *htlcAttempt.Settle != settleInfo {
t.Fatalf("unexpected settle info returned")
}
// Register a third subscriber after the payment succeeded.
subscriber3, err := pControl.SubscribePayment(info.PaymentIdentifier)
require.NoError(t, err, "expected subscribe to succeed, but got")
// We expect all subscribers to now report the final outcome followed by
// no other events.
subscribers := []ControlTowerSubscriber{
subscriber1, subscriber2, subscriber3,
}
for i, s := range subscribers {
var result *channeldb.MPPayment
for result == nil || !result.Terminated() {
select {
case item := <-s.Updates():
result = item.(*channeldb.MPPayment)
case <-time.After(testTimeout):
t.Fatal("timeout waiting for payment result")
}
}
require.Equalf(t, channeldb.StatusSucceeded, result.GetStatus(),
"subscriber %v failed, want %s, got %s", i,
channeldb.StatusSucceeded, result.GetStatus())
attempt, _ := result.TerminalInfo()
if attempt.Settle.Preimage != preimg {
t.Fatal("unexpected preimage")
}
if len(result.HTLCs) != 1 {
t.Fatalf("expected one htlc, got %d", len(result.HTLCs))
}
htlc := result.HTLCs[0]
if !reflect.DeepEqual(htlc.Route, attempt.Route) {
t.Fatalf("unexpected htlc route: %v vs %v",
spew.Sdump(htlc.Route),
spew.Sdump(attempt.Route))
}
// After the final event, we expect the channel to be closed.
select {
case _, ok := <-s.Updates():
if ok {
t.Fatal("expected channel to be closed")
}
case <-time.After(testTimeout):
t.Fatal("timeout waiting for result channel close")
}
}
}
// TestPaymentControlSubscribeFail tests that payment updates for a
// failed payment are properly sent to subscribers.
func TestPaymentControlSubscribeFail(t *testing.T) {
t.Parallel()
t.Run("register attempt, keep failed payments", func(t *testing.T) {
testPaymentControlSubscribeFail(t, true, true)
})
t.Run("register attempt, delete failed payments", func(t *testing.T) {
testPaymentControlSubscribeFail(t, true, false)
})
t.Run("no register attempt, keep failed payments", func(t *testing.T) {
testPaymentControlSubscribeFail(t, false, true)
})
t.Run("no register attempt, delete failed payments", func(t *testing.T) {
testPaymentControlSubscribeFail(t, false, false)
})
}
// TestPaymentControlSubscribeAllSuccess tests that multiple payments are
// properly sent to subscribers of TrackPayments.
func TestPaymentControlSubscribeAllSuccess(t *testing.T) {
t.Parallel()
db, err := initDB(t, true)
require.NoError(t, err, "unable to init db: %v")
pControl := NewControlTower(channeldb.NewPaymentControl(db))
// Initiate a payment.
info1, attempt1, preimg1, err := genInfo()
require.NoError(t, err)
err = pControl.InitPayment(info1.PaymentIdentifier, info1)
require.NoError(t, err)
// Subscription should succeed and immediately report the Initiated
// status.
subscription, err := pControl.SubscribeAllPayments()
require.NoError(t, err, "expected subscribe to succeed, but got: %v")
// Register an attempt.
err = pControl.RegisterAttempt(info1.PaymentIdentifier, attempt1)
require.NoError(t, err)
// Initiate a second payment after the subscription is already active.
info2, attempt2, preimg2, err := genInfo()
require.NoError(t, err)
err = pControl.InitPayment(info2.PaymentIdentifier, info2)
require.NoError(t, err)
// Register an attempt on the second payment.
err = pControl.RegisterAttempt(info2.PaymentIdentifier, attempt2)
require.NoError(t, err)
// Mark the first payment as successful.
settleInfo1 := channeldb.HTLCSettleInfo{
Preimage: preimg1,
}
htlcAttempt1, err := pControl.SettleAttempt(
info1.PaymentIdentifier, attempt1.AttemptID, &settleInfo1,
)
require.NoError(t, err)
require.Equal(
t, settleInfo1, *htlcAttempt1.Settle,
"unexpected settle info returned",
)
// Mark the second payment as successful.
settleInfo2 := channeldb.HTLCSettleInfo{
Preimage: preimg2,
}
htlcAttempt2, err := pControl.SettleAttempt(
info2.PaymentIdentifier, attempt2.AttemptID, &settleInfo2,
)
require.NoError(t, err)
require.Equal(
t, settleInfo2, *htlcAttempt2.Settle,
"unexpected fail info returned",
)
// The two payments will be asserted individually, store the last update
// for each payment.
results := make(map[lntypes.Hash]*channeldb.MPPayment)
// After exactly 6 updates both payments will/should have completed.
for i := 0; i < 6; i++ {
select {
case item := <-subscription.Updates():
id := item.(*channeldb.MPPayment).Info.PaymentIdentifier
results[id] = item.(*channeldb.MPPayment)
case <-time.After(testTimeout):
require.Fail(t, "timeout waiting for payment result")
}
}
result1 := results[info1.PaymentIdentifier]
require.Equal(
t, channeldb.StatusSucceeded, result1.GetStatus(),
"unexpected payment state payment 1",
)
settle1, _ := result1.TerminalInfo()
require.Equal(t, preimg1, settle1.Settle.Preimage,
"unexpected preimage payment 1")
require.Len(
t, result1.HTLCs, 1, "expect 1 htlc for payment 1, got %d",
len(result1.HTLCs),
)
htlc1 := result1.HTLCs[0]
require.Equal(t, attempt1.Route, htlc1.Route, "unexpected htlc route.")
result2 := results[info2.PaymentIdentifier]
require.Equal(
t, channeldb.StatusSucceeded, result2.GetStatus(),
"unexpected payment state payment 2",
)
settle2, _ := result2.TerminalInfo()
require.Equal(t, preimg2, settle2.Settle.Preimage,
"unexpected preimage payment 2")
require.Len(
t, result2.HTLCs, 1, "expect 1 htlc for payment 2, got %d",
len(result2.HTLCs),
)
htlc2 := result2.HTLCs[0]
require.Equal(t, attempt2.Route, htlc2.Route, "unexpected htlc route.")
}
// TestPaymentControlSubscribeAllImmediate tests whether already inflight
// payments are reported at the start of the SubscribeAllPayments subscription.
func TestPaymentControlSubscribeAllImmediate(t *testing.T) {
t.Parallel()
db, err := initDB(t, true)
require.NoError(t, err, "unable to init db: %v")
pControl := NewControlTower(channeldb.NewPaymentControl(db))
// Initiate a payment.
info, attempt, _, err := genInfo()
require.NoError(t, err)
err = pControl.InitPayment(info.PaymentIdentifier, info)
require.NoError(t, err)
// Register a payment update.
err = pControl.RegisterAttempt(info.PaymentIdentifier, attempt)
require.NoError(t, err)
subscription, err := pControl.SubscribeAllPayments()
require.NoError(t, err, "expected subscribe to succeed, but got: %v")
// Assert the new subscription receives the old update.
select {
case update := <-subscription.Updates():
require.NotNil(t, update)
require.Equal(
t, info.PaymentIdentifier,
update.(*channeldb.MPPayment).Info.PaymentIdentifier,
)
require.Len(t, subscription.Updates(), 0)
case <-time.After(testTimeout):
require.Fail(t, "timeout waiting for payment result")
}
}
// TestPaymentControlUnsubscribeSuccess tests that when unsubscribed, there are
// no more notifications to that specific subscription.
func TestPaymentControlUnsubscribeSuccess(t *testing.T) {
t.Parallel()
db, err := initDB(t, true)
require.NoError(t, err, "unable to init db: %v")
pControl := NewControlTower(channeldb.NewPaymentControl(db))
subscription1, err := pControl.SubscribeAllPayments()
require.NoError(t, err, "expected subscribe to succeed, but got: %v")
subscription2, err := pControl.SubscribeAllPayments()
require.NoError(t, err, "expected subscribe to succeed, but got: %v")
// Initiate a payment.
info, attempt, _, err := genInfo()
require.NoError(t, err)
err = pControl.InitPayment(info.PaymentIdentifier, info)
require.NoError(t, err)
// Assert all subscriptions receive the update.
select {
case update1 := <-subscription1.Updates():
require.NotNil(t, update1)
case <-time.After(testTimeout):
require.Fail(t, "timeout waiting for payment result")
}
select {
case update2 := <-subscription2.Updates():
require.NotNil(t, update2)
case <-time.After(testTimeout):
require.Fail(t, "timeout waiting for payment result")
}
// Close the first subscription.
subscription1.Close()
// Register a payment update.
err = pControl.RegisterAttempt(info.PaymentIdentifier, attempt)
require.NoError(t, err)
// Assert only subscription 2 receives the update.
select {
case update2 := <-subscription2.Updates():
require.NotNil(t, update2)
case <-time.After(testTimeout):
require.Fail(t, "timeout waiting for payment result")
}
require.Len(t, subscription1.Updates(), 0)
// Close the second subscription.
subscription2.Close()
// Register another update.
failInfo := channeldb.HTLCFailInfo{
Reason: channeldb.HTLCFailInternal,
}
_, err = pControl.FailAttempt(
info.PaymentIdentifier, attempt.AttemptID, &failInfo,
)
require.NoError(t, err, "unable to fail htlc")
// Assert no subscriptions receive the update.
require.Len(t, subscription1.Updates(), 0)
require.Len(t, subscription2.Updates(), 0)
}
func testPaymentControlSubscribeFail(t *testing.T, registerAttempt,
keepFailedPaymentAttempts bool) {
db, err := initDB(t, keepFailedPaymentAttempts)
require.NoError(t, err, "unable to init db")
pControl := NewControlTower(channeldb.NewPaymentControl(db))
// Initiate a payment.
info, attempt, _, err := genInfo()
if err != nil {
t.Fatal(err)
}
err = pControl.InitPayment(info.PaymentIdentifier, info)
if err != nil {
t.Fatal(err)
}
// Subscription should succeed.
subscriber1, err := pControl.SubscribePayment(info.PaymentIdentifier)
require.NoError(t, err, "expected subscribe to succeed, but got")
// Conditionally register the attempt based on the test type. This
// allows us to simulate failing after attempting with an htlc or before
// making any attempts at all.
if registerAttempt {
// Register an attempt.
err = pControl.RegisterAttempt(info.PaymentIdentifier, attempt)
if err != nil {
t.Fatal(err)
}
// Fail the payment attempt.
failInfo := channeldb.HTLCFailInfo{
Reason: channeldb.HTLCFailInternal,
}
htlcAttempt, err := pControl.FailAttempt(
info.PaymentIdentifier, attempt.AttemptID, &failInfo,
)
if err != nil {
t.Fatalf("unable to fail htlc: %v", err)
}
if *htlcAttempt.Failure != failInfo {
t.Fatalf("unexpected fail info returned")
}
}
// Mark the payment as failed.
err = pControl.FailPayment(
info.PaymentIdentifier, channeldb.FailureReasonTimeout,
)
if err != nil {
t.Fatal(err)
}
// Register a second subscriber after the payment failed.
subscriber2, err := pControl.SubscribePayment(info.PaymentIdentifier)
require.NoError(t, err, "expected subscribe to succeed, but got")
// We expect both subscribers to now report the final outcome followed
// by no other events.
subscribers := []ControlTowerSubscriber{
subscriber1, subscriber2,
}
for i, s := range subscribers {
var result *channeldb.MPPayment
for result == nil || !result.Terminated() {
select {
case item := <-s.Updates():
result = item.(*channeldb.MPPayment)
case <-time.After(testTimeout):
t.Fatal("timeout waiting for payment result")
}
}
if result.GetStatus() == channeldb.StatusSucceeded {
t.Fatal("unexpected payment state")
}
// There will either be one or zero htlcs depending on whether
// or not the attempt was registered. Assert the correct number
// is present, and the route taken if the attempt was
// registered.
if registerAttempt {
if len(result.HTLCs) != 1 {
t.Fatalf("expected 1 htlc, got: %d",
len(result.HTLCs))
}
htlc := result.HTLCs[0]
if !reflect.DeepEqual(htlc.Route, testRoute) {
t.Fatalf("unexpected htlc route: %v vs %v",
spew.Sdump(htlc.Route),
spew.Sdump(testRoute))
}
} else if len(result.HTLCs) != 0 {
t.Fatalf("expected 0 htlcs, got: %d",
len(result.HTLCs))
}
require.Equalf(t, channeldb.StatusFailed, result.GetStatus(),
"subscriber %v failed, want %s, got %s", i,
channeldb.StatusFailed, result.GetStatus())
if *result.FailureReason != channeldb.FailureReasonTimeout {
t.Fatal("unexpected failure reason")
}
// After the final event, we expect the channel to be closed.
select {
case _, ok := <-s.Updates():
if ok {
t.Fatal("expected channel to be closed")
}
case <-time.After(testTimeout):
t.Fatal("timeout waiting for result channel close")
}
}
}
func initDB(t *testing.T, keepFailedPaymentAttempts bool) (*channeldb.DB, error) {
db, err := channeldb.Open(
t.TempDir(), channeldb.OptionKeepFailedPaymentAttempts(
keepFailedPaymentAttempts,
),
)
if err != nil {
return nil, err
}
return db, err
}
func genInfo() (*channeldb.PaymentCreationInfo, *channeldb.HTLCAttemptInfo,
lntypes.Preimage, error) {
preimage, err := genPreimage()
if err != nil {
return nil, nil, preimage, fmt.Errorf("unable to "+
"generate preimage: %v", err)
}
rhash := sha256.Sum256(preimage[:])
return &channeldb.PaymentCreationInfo{
PaymentIdentifier: rhash,
Value: testRoute.ReceiverAmt(),
CreationTime: time.Unix(time.Now().Unix(), 0),
PaymentRequest: []byte("hola"),
},
&channeldb.NewHtlcAttempt(
1, priv, testRoute, time.Time{}, nil,
).HTLCAttemptInfo, preimage, nil
}
func genPreimage() ([32]byte, error) {
var preimage [32]byte
if _, err := io.ReadFull(rand.Reader, preimage[:]); err != nil {
return preimage, err
}
return preimage, nil
}
```
|
```xml
import { I18nLanguage } from './i18n.js';
export const docOrigin = 'path_to_url
// pageName => tagName[]
const docComponents: Record<string, string[]> = {
button: ['mdui-button'],
'button-icon': ['mdui-button-icon'],
fab: ['mdui-fab'],
'segmented-button': ['mdui-segmented-button-group', 'mdui-segmented-button'],
chip: ['mdui-chip'],
card: ['mdui-card'],
checkbox: ['mdui-checkbox'],
radio: ['mdui-radio-group', 'mdui-radio'],
switch: ['mdui-switch'],
slider: ['mdui-slider'],
'range-slider': ['mdui-range-slider'],
list: ['mdui-list', 'mdui-list-item', 'mdui-list-subheader'],
collapse: ['mdui-collapse', 'mdui-collapse-item'],
tabs: ['mdui-tabs', 'mdui-tab', 'mdui-tab-panel'],
dropdown: ['mdui-dropdown'],
menu: ['mdui-menu', 'mdui-menu-item'],
select: ['mdui-select'],
'text-field': ['mdui-text-field'],
'linear-progress': ['mdui-linear-progress'],
'circular-progress': ['mdui-circular-progress'],
dialog: ['mdui-dialog'],
divider: ['mdui-divider'],
avatar: ['mdui-avatar'],
badge: ['mdui-badge'],
icon: ['mdui-icon'],
tooltip: ['mdui-tooltip'],
snackbar: ['mdui-snackbar'],
'navigation-bar': ['mdui-navigation-bar', 'mdui-navigation-bar-item'],
'navigation-drawer': ['mdui-navigation-drawer'],
'navigation-rail': ['mdui-navigation-rail', 'mdui-navigation-rail-item'],
'bottom-app-bar': ['mdui-bottom-app-bar'],
'top-app-bar': ['mdui-top-app-bar', 'mdui-top-app-bar-title'],
layout: ['mdui-layout', 'mdui-layout-item', 'mdui-layout-main'],
};
// vscode webstorm description
export const handleDescription = (
description: string,
language: I18nLanguage,
) => {
return (description || '').replaceAll(
'](/docs/2/',
`](${docOrigin}/${language}/docs/2/`,
);
};
// tagName pageName
const getPageNameByTagName = (tagName: string): string => {
return Object.keys(docComponents).find((pageName) =>
docComponents[pageName].includes(tagName),
)!;
};
// tagName url
export const getDocUrlByTagName = (
tagName: string,
language: I18nLanguage,
): string => {
const pageName = getPageNameByTagName(tagName);
return `${docOrigin}/${language}/docs/2/components/${pageName}`;
};
// radio mdui-radio mdui-radio-group
export const isDocHasMultipleComponents = (tagName: string) => {
const pageName = getPageNameByTagName(tagName);
return docComponents[pageName].length > 1;
};
```
|
```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\ChromePolicy;
class Proto2DescriptorProto extends \Google\Collection
{
protected $collection_key = 'oneofDecl';
protected $enumTypeType = Proto2EnumDescriptorProto::class;
protected $enumTypeDataType = 'array';
protected $fieldType = Proto2FieldDescriptorProto::class;
protected $fieldDataType = 'array';
/**
* @var string
*/
public $name;
protected $nestedTypeType = Proto2DescriptorProto::class;
protected $nestedTypeDataType = 'array';
protected $oneofDeclType = Proto2OneofDescriptorProto::class;
protected $oneofDeclDataType = 'array';
/**
* @param Proto2EnumDescriptorProto[]
*/
public function setEnumType($enumType)
{
$this->enumType = $enumType;
}
/**
* @return Proto2EnumDescriptorProto[]
*/
public function getEnumType()
{
return $this->enumType;
}
/**
* @param Proto2FieldDescriptorProto[]
*/
public function setField($field)
{
$this->field = $field;
}
/**
* @return Proto2FieldDescriptorProto[]
*/
public function getField()
{
return $this->field;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param Proto2DescriptorProto[]
*/
public function setNestedType($nestedType)
{
$this->nestedType = $nestedType;
}
/**
* @return Proto2DescriptorProto[]
*/
public function getNestedType()
{
return $this->nestedType;
}
/**
* @param Proto2OneofDescriptorProto[]
*/
public function setOneofDecl($oneofDecl)
{
$this->oneofDecl = $oneofDecl;
}
/**
* @return Proto2OneofDescriptorProto[]
*/
public function getOneofDecl()
{
return $this->oneofDecl;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Proto2DescriptorProto::class, 'Google_Service_ChromePolicy_Proto2DescriptorProto');
```
|
Epiperipatus isthmicola is a species of velvet worm in the Peripatidae family. This species is a dark brown, almost black, without any pattern on its dorsal surface. Females of this species have 29 to 32 pairs of legs; males have 26 or 27. Females range from 20 mm to 73 mm in length, whereas males range from 20 mm to 48 mm. The type locality is in Costa Rica.
References
Onychophorans of tropical America
Onychophoran species
Fauna of Costa Rica
Animals described in 1902
Taxa named by Eugène Louis Bouvier
|
```yaml
format_version: '2'
name: link
run_fields:
- name: llvm_project_revision
order: true
machine_fields:
- name: hardware
- name: os
metrics:
- name: branch-misses
bigger_is_better: false
type: Real
- name: stalled-cycles-frontend
bigger_is_better: false
type: Real
- name: branches
bigger_is_better: false
type: Real
- name: context-switches
bigger_is_better: false
type: Real
- name: cpu-migrations
bigger_is_better: false
type: Real
- name: cycles
bigger_is_better: false
type: Real
- name: instructions
bigger_is_better: false
type: Real
- name: seconds-elapsed
bigger_is_better: false
type: Real
- name: page-faults
bigger_is_better: false
type: Real
- name: task-clock
bigger_is_better: false
type: Real
```
|
Orajärvi is medium-sized lake in the Kemijoki main catchment area in Finland. It is located in Sodankylä municipality, in the eastern Lapland region.
Orajärvi is also a village comprising Orakylä, Hirviäkuru, Välisuvanto and Tepsanniemi. The population is 250. Orajärvi village is located 20 km south-east of Sodankylä. Orajärvi lake is also located there.
There are three other Orajärvi lakes in Finland, in the municipalities of Pello, Jyväskylä and Espoo.
See also
List of lakes in Finland
References
Lakes of Sodankylä
|
```python
from visidata import vd, IndexSheet
vd.option('load_lazy', False, 'load subsheets always (False) or lazily (True)')
vd.option('skip', 0, 'skip N rows before header', replay=True)
vd.option('header', 1, 'parse first N rows as column names', replay=True)
IndexSheet.options.header = 0
IndexSheet.options.skip = 0
```
|
```java
/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
package com.oracle.truffle.espresso.libjavavm;
import static com.oracle.truffle.espresso.libjavavm.jniapi.JNIErrors.JNI_ERR;
import java.io.File;
import java.io.PrintStream;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import java.util.Set;
import org.graalvm.nativeimage.RuntimeOptions;
import org.graalvm.nativeimage.c.struct.SizeOf;
import org.graalvm.nativeimage.c.type.CCharPointer;
import org.graalvm.nativeimage.c.type.CTypeConversion;
import org.graalvm.polyglot.Context;
import org.graalvm.word.Pointer;
import com.oracle.truffle.espresso.libjavavm.arghelper.ArgumentsHandler;
import com.oracle.truffle.espresso.libjavavm.jniapi.JNIErrors;
import com.oracle.truffle.espresso.libjavavm.jniapi.JNIJavaVMInitArgs;
import com.oracle.truffle.espresso.libjavavm.jniapi.JNIJavaVMOption;
public final class Arguments {
private static final PrintStream STDERR = System.err;
public static final String JAVA_PROPS = "java.Properties.";
private static final String AGENT_LIB = "java.AgentLib.";
private static final String AGENT_PATH = "java.AgentPath.";
private static final String JAVA_AGENT = "java.JavaAgent";
/*
* HotSpot comment:
*
* the -Djava.class.path and the -Dsun.java.command options are omitted from jvm_args string as
* each have their own PerfData string constant object.
*/
private static final List<String> ignoredJvmArgs = Arrays.asList(
"-Djava.class.path",
"-Dsun.java.command",
"-Dsun.java.launcher");
private Arguments() {
}
private static final Set<String> IGNORED_XX_OPTIONS = Set.of(
"ReservedCodeCacheSize",
// `TieredStopAtLevel=0` is handled separately, other values are ignored
"TieredStopAtLevel",
"MaxMetaspaceSize",
"HeapDumpOnOutOfMemoryError");
private static final Map<String, String> MAPPED_XX_OPTIONS = Map.of(
"TieredCompilation", "engine.MultiTier");
public static int setupContext(Context.Builder builder, JNIJavaVMInitArgs args) {
Pointer p = (Pointer) args.getOptions();
int count = args.getNOptions();
String classpath = null;
String bootClasspathPrepend = null;
String bootClasspathAppend = null;
ArgumentsHandler handler = new ArgumentsHandler(builder, IGNORED_XX_OPTIONS, MAPPED_XX_OPTIONS, args);
List<String> jvmArgs = new ArrayList<>();
boolean ignoreUnrecognized = false;
boolean autoAdjustHeapSize = true;
List<String> xOptions = new ArrayList<>();
for (int i = 0; i < count; i++) {
JNIJavaVMOption option = (JNIJavaVMOption) p.add(i * SizeOf.get(JNIJavaVMOption.class));
CCharPointer str = option.getOptionString();
try {
if (str.isNonNull()) {
String optionString = CTypeConversion.toJavaString(option.getOptionString());
buildJvmArg(jvmArgs, optionString);
if (optionString.startsWith("-Xbootclasspath:")) {
bootClasspathPrepend = null;
bootClasspathAppend = null;
builder.option("java.BootClasspath", optionString.substring("-Xbootclasspath:".length()));
} else if (optionString.startsWith("-Xbootclasspath/a:")) {
bootClasspathAppend = appendPath(bootClasspathAppend, optionString.substring("-Xbootclasspath/a:".length()));
} else if (optionString.startsWith("-Xbootclasspath/p:")) {
bootClasspathPrepend = prependPath(optionString.substring("-Xbootclasspath/p:".length()), bootClasspathPrepend);
} else if (optionString.startsWith("-Xverify:")) {
String mode = optionString.substring("-Xverify:".length());
builder.option("java.Verify", mode);
} else if (optionString.startsWith("-Xrunjdwp:")) {
String value = optionString.substring("-Xrunjdwp:".length());
builder.option("java.JDWPOptions", value);
} else if (optionString.startsWith("-agentlib:jdwp=")) {
String value = optionString.substring("-agentlib:jdwp=".length());
builder.option("java.JDWPOptions", value);
} else if (optionString.startsWith("-javaagent:")) {
String value = optionString.substring("-javaagent:".length());
builder.option(JAVA_AGENT, value);
handler.addModules("java.instrument");
} else if (optionString.startsWith("-agentlib:")) {
String[] split = splitEquals(optionString.substring("-agentlib:".length()));
builder.option(AGENT_LIB + split[0], split[1]);
} else if (optionString.startsWith("-agentpath:")) {
String[] split = splitEquals(optionString.substring("-agentpath:".length()));
builder.option(AGENT_PATH + split[0], split[1]);
} else if (optionString.startsWith("-D")) {
String key = optionString.substring("-D".length());
int splitAt = key.indexOf("=");
String value = "";
if (splitAt >= 0) {
value = key.substring(splitAt + 1);
key = key.substring(0, splitAt);
}
if (handler.isModulesOption(key)) {
warn("Ignoring system property -D" + key + " that is reserved for internal use.");
continue;
}
switch (key) {
case "espresso.library.path":
builder.option("java.EspressoLibraryPath", value);
break;
case "java.library.path":
builder.option("java.JavaLibraryPath", value);
break;
case "java.class.path":
classpath = value;
break;
case "java.ext.dirs":
builder.option("java.ExtDirs", value);
break;
case "sun.boot.class.path":
builder.option("java.BootClasspath", value);
break;
case "sun.boot.library.path":
builder.option("java.BootLibraryPath", value);
break;
}
builder.option(JAVA_PROPS + key, value);
} else if (optionString.equals("-ea") || optionString.equals("-enableassertions")) {
builder.option("java.EnableAssertions", "true");
} else if (optionString.equals("-esa") || optionString.equals("-enablesystemassertions")) {
builder.option("java.EnableSystemAssertions", "true");
} else if (optionString.startsWith("--add-reads=")) {
handler.addReads(optionString.substring("--add-reads=".length()));
} else if (optionString.startsWith("--add-exports=")) {
handler.addExports(optionString.substring("--add-exports=".length()));
} else if (optionString.startsWith("--add-opens=")) {
handler.addOpens(optionString.substring("--add-opens=".length()));
} else if (optionString.startsWith("--add-modules=")) {
handler.addModules(optionString.substring("--add-modules=".length()));
} else if (optionString.startsWith("--enable-native-access=")) {
handler.enableNativeAccess(optionString.substring("--enable-native-access=".length()));
} else if (optionString.startsWith("--module-path=")) {
builder.option("java.ModulePath", optionString.substring("--module-path=".length()));
} else if (optionString.startsWith("--upgrade-module-path=")) {
builder.option(JAVA_PROPS + "jdk.module.upgrade.path", optionString.substring("--upgrade-module-path=".length()));
} else if (optionString.startsWith("--limit-modules=")) {
builder.option(JAVA_PROPS + "jdk.module.limitmods", optionString.substring("--limit-modules=".length()));
} else if (optionString.equals("--enable-preview")) {
builder.option("java.EnablePreview", "true");
} else if (optionString.equals("-XX:-AutoAdjustHeapSize")) {
autoAdjustHeapSize = false;
} else if (optionString.equals("-XX:+AutoAdjustHeapSize")) {
autoAdjustHeapSize = true;
} else if (isXOption(optionString)) {
xOptions.add(optionString);
} else if (optionString.equals("-XX:+IgnoreUnrecognizedVMOptions")) {
ignoreUnrecognized = true;
} else if (optionString.equals("-XX:-IgnoreUnrecognizedVMOptions")) {
ignoreUnrecognized = false;
} else if (optionString.equals("-XX:+UnlockExperimentalVMOptions") ||
optionString.equals("-XX:+UnlockDiagnosticVMOptions")) {
// approximate UnlockDiagnosticVMOptions as UnlockExperimentalVMOptions
handler.setExperimental(true);
} else if (optionString.equals("-XX:-UnlockExperimentalVMOptions") ||
optionString.equals("-XX:-UnlockDiagnosticVMOptions")) {
handler.setExperimental(false);
} else if (optionString.startsWith("--vm.")) {
handler.handleVMOption(optionString);
} else if (optionString.startsWith("-Xcomp")) {
builder.option("engine.CompileImmediately", "true");
} else if (optionString.startsWith("-Xbatch")) {
builder.option("engine.BackgroundCompilation", "false");
builder.option("engine.CompileImmediately", "true");
} else if (optionString.startsWith("-Xint") || optionString.equals("-XX:TieredStopAtLevel=0")) {
builder.option("engine.Compilation", "false");
} else if (optionString.startsWith("-XX:")) {
handler.handleXXArg(optionString);
} else if (optionString.startsWith("--help:")) {
handler.help(optionString);
} else if (isExperimentalFlag(optionString)) {
// skip: previously handled
} else if (optionString.equals("--polyglot")) {
// skip: handled by mokapot
} else if (optionString.equals("--native")) {
// skip: silently succeed.
} else if (optionString.equals("--jvm")) {
throw abort("Unsupported flag: '--jvm' mode is not supported with this launcher.");
} else {
handler.parsePolyglotOption(optionString);
}
}
} catch (ArgumentException e) {
if (!ignoreUnrecognized) {
// Failed to parse
warn(e.getMessage());
return JNI_ERR();
}
}
}
for (String xOption : xOptions) {
var opt = xOption;
if (autoAdjustHeapSize) {
opt = maybeAdjustMaxHeapSize(xOption);
}
RuntimeOptions.set(opt.substring(2 /* drop the -X */), null);
}
if (bootClasspathPrepend != null) {
builder.option("java.BootClasspathPrepend", bootClasspathPrepend);
}
if (bootClasspathAppend != null) {
builder.option("java.BootClasspathAppend", bootClasspathAppend);
}
if (classpath != null) {
builder.option("java.Classpath", classpath);
}
for (int i = 0; i < jvmArgs.size(); i++) {
builder.option("java.VMArguments." + i, jvmArgs.get(i));
}
handler.argumentProcessingDone();
return JNIErrors.JNI_OK();
}
private static String maybeAdjustMaxHeapSize(String optionString) {
// (Jun 2024) Espresso uses more memory than HotSpot does, so if the user has set a very
// small heap size that would work on HotSpot then we have to bump it up. 64mb is too small
// to run Gradle's wrapper program which is required to use Espresso with Gradle, so, we
// go to the next power of two beyond that. This number can be reduced in future when
// memory efficiency is better.
if (!optionString.startsWith("-Xmx")) {
return optionString;
}
long maxHeapSizeBytes = parseLong(optionString.substring(4));
final int floorMB = 128;
if (maxHeapSizeBytes < floorMB * 1024 * 1024) {
return "-Xmx" + floorMB + "m";
} else {
return optionString;
}
}
private static long parseLong(String v) {
String valueString = v.trim().toLowerCase(Locale.ROOT);
long scale = 1;
if (valueString.endsWith("k")) {
scale = 1024L;
} else if (valueString.endsWith("m")) {
scale = 1024L * 1024L;
} else if (valueString.endsWith("g")) {
scale = 1024L * 1024L * 1024L;
} else if (valueString.endsWith("t")) {
scale = 1024L * 1024L * 1024L * 1024L;
}
if (scale != 1) {
/* Remove trailing scale character. */
valueString = valueString.substring(0, valueString.length() - 1);
}
return Long.parseLong(valueString) * scale;
}
private static void buildJvmArg(List<String> jvmArgs, String optionString) {
for (String ignored : ignoredJvmArgs) {
if (optionString.startsWith(ignored)) {
return;
}
}
jvmArgs.add(optionString);
}
private static boolean isExperimentalFlag(String optionString) {
// return false for "--experimental-options=[garbage]
return optionString.equals("--experimental-options") ||
optionString.equals("--experimental-options=true") ||
optionString.equals("--experimental-options=false") ||
optionString.equals("-XX:+UnlockDiagnosticVMOptions") ||
optionString.equals("-XX:-UnlockDiagnosticVMOptions");
}
private static boolean isXOption(String optionString) {
return optionString.startsWith("-Xms") || optionString.startsWith("-Xmx") || optionString.startsWith("-Xmn") || optionString.startsWith("-Xss");
}
private static String appendPath(String paths, String toAppend) {
if (paths != null && paths.length() != 0) {
return toAppend != null && toAppend.length() != 0 ? paths + File.pathSeparator + toAppend : paths;
} else {
return toAppend;
}
}
private static String prependPath(String toPrepend, String paths) {
if (paths != null && paths.length() != 0) {
return toPrepend != null && toPrepend.length() != 0 ? toPrepend + File.pathSeparator + paths : paths;
} else {
return toPrepend;
}
}
private static String[] splitEquals(String value) {
int eqIdx = value.indexOf('=');
String k;
String v;
if (eqIdx >= 0) {
k = value.substring(0, eqIdx);
v = value.substring(eqIdx + 1);
} else {
k = value;
v = "";
}
return new String[]{k, v};
}
public static class ArgumentException extends RuntimeException {
private static final long serialVersionUID = 5430103471994299046L;
private final boolean isExperimental;
ArgumentException(String message, boolean isExperimental) {
super(message);
this.isExperimental = isExperimental;
}
public boolean isExperimental() {
return isExperimental;
}
@Override
public synchronized Throwable fillInStackTrace() {
return this;
}
}
public static ArgumentException abort(String message) {
throw new Arguments.ArgumentException(message, false);
}
public static ArgumentException abortExperimental(String message) {
throw new Arguments.ArgumentException(message, true);
}
public static void warn(String message) {
STDERR.println(message);
}
}
```
|
Michael Kane is an American writer and journalist. He is currently the entertainment features writer for the New York Post. In 2009 he wrote a book published by Viking Press called GAME BOYS: PROFESSIONAL VIDEOGAMING'S RISE FROM THE BASEMENT TO THE BIG TIME, which details the American professional Counter-Strike community.
Kane was a sports writer and editor at the Denver Post. His work has appeared in ESPN Magazine, and Sport Magazine.
References
New York Post people
American sports journalists
Writers from Denver
Living people
Year of birth missing (living people)
|
Charles-Louis Saulx de Rosnevet (circa 1734 — Port au Prince, December 20, 1776) was a French Navy officer. He was a member of the Académie de Marine, and took part in the Second voyage of Kerguelen.
Biography
Rosnevet joined the Navy as a Garde-Marine on 6 July 1750. He was promoted to Lieutenant on 1 May 1763.
On 16 March 1773, he was given command of the frigate Oiseau, and took part in the Second voyage of Kerguelen.
Rosnevet was promoted to Captain on 28 June 1755.
Sources and references
Notes
References
Bibliography
External links
French Navy officers
|
The Military ranks of Somalia are the military insignia used by the Somali Armed Forces. Being a former Italian protectorate, Somalia shares a rank structure similar to that of Italy.
The highest rank is lieutenant general. The current person holding this rank is Bashir Mohamed Jama, former head of the Somali Custodial Corps ().
Commissioned officer ranks
The rank insignia of commissioned officers.
Other ranks
The rank insignia of non-commissioned officers and enlisted personnel.
References
External links
Somalia
Military of Somalia
|
```c
/* $OpenBSD: window.c,v 1.291 2024/06/24 08:30:50 nicm Exp $ */
/*
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
* WHATSOEVER RESULTING FROM LOSS OF MIND, USE, DATA OR PROFITS, WHETHER
* IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
* OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#include <sys/types.h>
#include <sys/ioctl.h>
#include <ctype.h>
#include <errno.h>
#include <fcntl.h>
#include <fnmatch.h>
#include <regex.h>
#include <signal.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <unistd.h>
#include <util.h>
#include <vis.h>
#include "tmux.h"
/*
* Each window is attached to a number of panes, each of which is a pty. This
* file contains code to handle them.
*
* A pane has two buffers attached, these are filled and emptied by the main
* server poll loop. Output data is received from pty's in screen format,
* translated and returned as a series of escape sequences and strings via
* input_parse (in input.c). Input data is received as key codes and written
* directly via input_key.
*
* Each pane also has a "virtual" screen (screen.c) which contains the current
* state and is redisplayed when the window is reattached to a client.
*
* Windows are stored directly on a global array and wrapped in any number of
* winlink structs to be linked onto local session RB trees. A reference count
* is maintained and a window removed from the global list and destroyed when
* it reaches zero.
*/
/* Global window list. */
struct windows windows;
/* Global panes tree. */
struct window_pane_tree all_window_panes;
static u_int next_window_pane_id;
static u_int next_window_id;
static u_int next_active_point;
struct window_pane_input_data {
struct cmdq_item *item;
u_int wp;
struct client_file *file;
};
static struct window_pane *window_pane_create(struct window *, u_int, u_int,
u_int);
static void window_pane_destroy(struct window_pane *);
RB_GENERATE(windows, window, entry, window_cmp);
RB_GENERATE(winlinks, winlink, entry, winlink_cmp);
RB_GENERATE(window_pane_tree, window_pane, tree_entry, window_pane_cmp);
int
window_cmp(struct window *w1, struct window *w2)
{
return (w1->id - w2->id);
}
int
winlink_cmp(struct winlink *wl1, struct winlink *wl2)
{
return (wl1->idx - wl2->idx);
}
int
window_pane_cmp(struct window_pane *wp1, struct window_pane *wp2)
{
return (wp1->id - wp2->id);
}
struct winlink *
winlink_find_by_window(struct winlinks *wwl, struct window *w)
{
struct winlink *wl;
RB_FOREACH(wl, winlinks, wwl) {
if (wl->window == w)
return (wl);
}
return (NULL);
}
struct winlink *
winlink_find_by_index(struct winlinks *wwl, int idx)
{
struct winlink wl;
if (idx < 0)
fatalx("bad index");
wl.idx = idx;
return (RB_FIND(winlinks, wwl, &wl));
}
struct winlink *
winlink_find_by_window_id(struct winlinks *wwl, u_int id)
{
struct winlink *wl;
RB_FOREACH(wl, winlinks, wwl) {
if (wl->window->id == id)
return (wl);
}
return (NULL);
}
static int
winlink_next_index(struct winlinks *wwl, int idx)
{
int i;
i = idx;
do {
if (winlink_find_by_index(wwl, i) == NULL)
return (i);
if (i == INT_MAX)
i = 0;
else
i++;
} while (i != idx);
return (-1);
}
u_int
winlink_count(struct winlinks *wwl)
{
struct winlink *wl;
u_int n;
n = 0;
RB_FOREACH(wl, winlinks, wwl)
n++;
return (n);
}
struct winlink *
winlink_add(struct winlinks *wwl, int idx)
{
struct winlink *wl;
if (idx < 0) {
if ((idx = winlink_next_index(wwl, -idx - 1)) == -1)
return (NULL);
} else if (winlink_find_by_index(wwl, idx) != NULL)
return (NULL);
wl = xcalloc(1, sizeof *wl);
wl->idx = idx;
RB_INSERT(winlinks, wwl, wl);
return (wl);
}
void
winlink_set_window(struct winlink *wl, struct window *w)
{
if (wl->window != NULL) {
TAILQ_REMOVE(&wl->window->winlinks, wl, wentry);
window_remove_ref(wl->window, __func__);
}
TAILQ_INSERT_TAIL(&w->winlinks, wl, wentry);
wl->window = w;
window_add_ref(w, __func__);
}
void
winlink_remove(struct winlinks *wwl, struct winlink *wl)
{
struct window *w = wl->window;
if (w != NULL) {
TAILQ_REMOVE(&w->winlinks, wl, wentry);
window_remove_ref(w, __func__);
}
RB_REMOVE(winlinks, wwl, wl);
free(wl);
}
struct winlink *
winlink_next(struct winlink *wl)
{
return (RB_NEXT(winlinks, wwl, wl));
}
struct winlink *
winlink_previous(struct winlink *wl)
{
return (RB_PREV(winlinks, wwl, wl));
}
struct winlink *
winlink_next_by_number(struct winlink *wl, struct session *s, int n)
{
for (; n > 0; n--) {
if ((wl = RB_NEXT(winlinks, wwl, wl)) == NULL)
wl = RB_MIN(winlinks, &s->windows);
}
return (wl);
}
struct winlink *
winlink_previous_by_number(struct winlink *wl, struct session *s, int n)
{
for (; n > 0; n--) {
if ((wl = RB_PREV(winlinks, wwl, wl)) == NULL)
wl = RB_MAX(winlinks, &s->windows);
}
return (wl);
}
void
winlink_stack_push(struct winlink_stack *stack, struct winlink *wl)
{
if (wl == NULL)
return;
winlink_stack_remove(stack, wl);
TAILQ_INSERT_HEAD(stack, wl, sentry);
wl->flags |= WINLINK_VISITED;
}
void
winlink_stack_remove(struct winlink_stack *stack, struct winlink *wl)
{
if (wl != NULL && (wl->flags & WINLINK_VISITED)) {
TAILQ_REMOVE(stack, wl, sentry);
wl->flags &= ~WINLINK_VISITED;
}
}
struct window *
window_find_by_id_str(const char *s)
{
const char *errstr;
u_int id;
if (*s != '@')
return (NULL);
id = strtonum(s + 1, 0, UINT_MAX, &errstr);
if (errstr != NULL)
return (NULL);
return (window_find_by_id(id));
}
struct window *
window_find_by_id(u_int id)
{
struct window w;
w.id = id;
return (RB_FIND(windows, &windows, &w));
}
void
window_update_activity(struct window *w)
{
gettimeofday(&w->activity_time, NULL);
alerts_queue(w, WINDOW_ACTIVITY);
}
struct window *
window_create(u_int sx, u_int sy, u_int xpixel, u_int ypixel)
{
struct window *w;
if (xpixel == 0)
xpixel = DEFAULT_XPIXEL;
if (ypixel == 0)
ypixel = DEFAULT_YPIXEL;
w = xcalloc(1, sizeof *w);
w->name = xstrdup("");
w->flags = 0;
TAILQ_INIT(&w->panes);
TAILQ_INIT(&w->last_panes);
w->active = NULL;
w->lastlayout = -1;
w->layout_root = NULL;
w->sx = sx;
w->sy = sy;
w->manual_sx = sx;
w->manual_sy = sy;
w->xpixel = xpixel;
w->ypixel = ypixel;
w->options = options_create(global_w_options);
w->references = 0;
TAILQ_INIT(&w->winlinks);
w->id = next_window_id++;
RB_INSERT(windows, &windows, w);
window_set_fill_character(w);
window_update_activity(w);
log_debug("%s: @%u create %ux%u (%ux%u)", __func__, w->id, sx, sy,
w->xpixel, w->ypixel);
return (w);
}
static void
window_destroy(struct window *w)
{
log_debug("window @%u destroyed (%d references)", w->id, w->references);
window_unzoom(w, 0);
RB_REMOVE(windows, &windows, w);
if (w->layout_root != NULL)
layout_free_cell(w->layout_root);
if (w->saved_layout_root != NULL)
layout_free_cell(w->saved_layout_root);
free(w->old_layout);
window_destroy_panes(w);
if (event_initialized(&w->name_event))
evtimer_del(&w->name_event);
if (event_initialized(&w->alerts_timer))
evtimer_del(&w->alerts_timer);
if (event_initialized(&w->offset_timer))
event_del(&w->offset_timer);
options_free(w->options);
free(w->fill_character);
free(w->name);
free(w);
}
int
window_pane_destroy_ready(struct window_pane *wp)
{
int n;
if (wp->pipe_fd != -1) {
if (EVBUFFER_LENGTH(wp->pipe_event->output) != 0)
return (0);
if (ioctl(wp->fd, FIONREAD, &n) != -1 && n > 0)
return (0);
}
if (~wp->flags & PANE_EXITED)
return (0);
return (1);
}
void
window_add_ref(struct window *w, const char *from)
{
w->references++;
log_debug("%s: @%u %s, now %d", __func__, w->id, from, w->references);
}
void
window_remove_ref(struct window *w, const char *from)
{
w->references--;
log_debug("%s: @%u %s, now %d", __func__, w->id, from, w->references);
if (w->references == 0)
window_destroy(w);
}
void
window_set_name(struct window *w, const char *new_name)
{
free(w->name);
utf8_stravis(&w->name, new_name, VIS_OCTAL|VIS_CSTYLE|VIS_TAB|VIS_NL);
notify_window("window-renamed", w);
}
void
window_resize(struct window *w, u_int sx, u_int sy, int xpixel, int ypixel)
{
if (xpixel == 0)
xpixel = DEFAULT_XPIXEL;
if (ypixel == 0)
ypixel = DEFAULT_YPIXEL;
log_debug("%s: @%u resize %ux%u (%ux%u)", __func__, w->id, sx, sy,
xpixel == -1 ? w->xpixel : (u_int)xpixel,
ypixel == -1 ? w->ypixel : (u_int)ypixel);
w->sx = sx;
w->sy = sy;
if (xpixel != -1)
w->xpixel = xpixel;
if (ypixel != -1)
w->ypixel = ypixel;
}
void
window_pane_send_resize(struct window_pane *wp, u_int sx, u_int sy)
{
struct window *w = wp->window;
struct winsize ws;
if (wp->fd == -1)
return;
log_debug("%s: %%%u resize to %u,%u", __func__, wp->id, sx, sy);
memset(&ws, 0, sizeof ws);
ws.ws_col = sx;
ws.ws_row = sy;
ws.ws_xpixel = w->xpixel * ws.ws_col;
ws.ws_ypixel = w->ypixel * ws.ws_row;
if (ioctl(wp->fd, TIOCSWINSZ, &ws) == -1)
fatal("ioctl failed");
}
int
window_has_pane(struct window *w, struct window_pane *wp)
{
struct window_pane *wp1;
TAILQ_FOREACH(wp1, &w->panes, entry) {
if (wp1 == wp)
return (1);
}
return (0);
}
void
window_update_focus(struct window *w)
{
if (w != NULL) {
log_debug("%s: @%u", __func__, w->id);
window_pane_update_focus(w->active);
}
}
void
window_pane_update_focus(struct window_pane *wp)
{
struct client *c;
int focused = 0;
if (wp != NULL && (~wp->flags & PANE_EXITED)) {
if (wp != wp->window->active)
focused = 0;
else {
TAILQ_FOREACH(c, &clients, entry) {
if (c->session != NULL &&
c->session->attached != 0 &&
(c->flags & CLIENT_FOCUSED) &&
c->session->curw->window == wp->window) {
focused = 1;
break;
}
}
}
if (!focused && (wp->flags & PANE_FOCUSED)) {
log_debug("%s: %%%u focus out", __func__, wp->id);
if (wp->base.mode & MODE_FOCUSON)
bufferevent_write(wp->event, "\033[O", 3);
notify_pane("pane-focus-out", wp);
wp->flags &= ~PANE_FOCUSED;
} else if (focused && (~wp->flags & PANE_FOCUSED)) {
log_debug("%s: %%%u focus in", __func__, wp->id);
if (wp->base.mode & MODE_FOCUSON)
bufferevent_write(wp->event, "\033[I", 3);
notify_pane("pane-focus-in", wp);
wp->flags |= PANE_FOCUSED;
} else
log_debug("%s: %%%u focus unchanged", __func__, wp->id);
}
}
int
window_set_active_pane(struct window *w, struct window_pane *wp, int notify)
{
struct window_pane *lastwp;
log_debug("%s: pane %%%u", __func__, wp->id);
if (wp == w->active)
return (0);
lastwp = w->active;
window_pane_stack_remove(&w->last_panes, wp);
window_pane_stack_push(&w->last_panes, lastwp);
w->active = wp;
w->active->active_point = next_active_point++;
w->active->flags |= PANE_CHANGED;
if (options_get_number(global_options, "focus-events")) {
window_pane_update_focus(lastwp);
window_pane_update_focus(w->active);
}
tty_update_window_offset(w);
if (notify)
notify_window("window-pane-changed", w);
return (1);
}
static int
window_pane_get_palette(struct window_pane *wp, int c)
{
if (wp == NULL)
return (-1);
return (colour_palette_get(&wp->palette, c));
}
void
window_redraw_active_switch(struct window *w, struct window_pane *wp)
{
struct grid_cell *gc1, *gc2;
int c1, c2;
if (wp == w->active)
return;
for (;;) {
/*
* If the active and inactive styles or palettes are different,
* need to redraw the panes.
*/
gc1 = &wp->cached_gc;
gc2 = &wp->cached_active_gc;
if (!grid_cells_look_equal(gc1, gc2))
wp->flags |= PANE_REDRAW;
else {
c1 = window_pane_get_palette(wp, gc1->fg);
c2 = window_pane_get_palette(wp, gc2->fg);
if (c1 != c2)
wp->flags |= PANE_REDRAW;
else {
c1 = window_pane_get_palette(wp, gc1->bg);
c2 = window_pane_get_palette(wp, gc2->bg);
if (c1 != c2)
wp->flags |= PANE_REDRAW;
}
}
if (wp == w->active)
break;
wp = w->active;
}
}
struct window_pane *
window_get_active_at(struct window *w, u_int x, u_int y)
{
struct window_pane *wp;
TAILQ_FOREACH(wp, &w->panes, entry) {
if (!window_pane_visible(wp))
continue;
if (x < wp->xoff || x > wp->xoff + wp->sx)
continue;
if (y < wp->yoff || y > wp->yoff + wp->sy)
continue;
return (wp);
}
return (NULL);
}
struct window_pane *
window_find_string(struct window *w, const char *s)
{
u_int x, y, top = 0, bottom = w->sy - 1;
int status;
x = w->sx / 2;
y = w->sy / 2;
status = options_get_number(w->options, "pane-border-status");
if (status == PANE_STATUS_TOP)
top++;
else if (status == PANE_STATUS_BOTTOM)
bottom--;
if (strcasecmp(s, "top") == 0)
y = top;
else if (strcasecmp(s, "bottom") == 0)
y = bottom;
else if (strcasecmp(s, "left") == 0)
x = 0;
else if (strcasecmp(s, "right") == 0)
x = w->sx - 1;
else if (strcasecmp(s, "top-left") == 0) {
x = 0;
y = top;
} else if (strcasecmp(s, "top-right") == 0) {
x = w->sx - 1;
y = top;
} else if (strcasecmp(s, "bottom-left") == 0) {
x = 0;
y = bottom;
} else if (strcasecmp(s, "bottom-right") == 0) {
x = w->sx - 1;
y = bottom;
} else
return (NULL);
return (window_get_active_at(w, x, y));
}
int
window_zoom(struct window_pane *wp)
{
struct window *w = wp->window;
struct window_pane *wp1;
if (w->flags & WINDOW_ZOOMED)
return (-1);
if (window_count_panes(w) == 1)
return (-1);
if (w->active != wp)
window_set_active_pane(w, wp, 1);
TAILQ_FOREACH(wp1, &w->panes, entry) {
wp1->saved_layout_cell = wp1->layout_cell;
wp1->layout_cell = NULL;
}
w->saved_layout_root = w->layout_root;
layout_init(w, wp);
w->flags |= WINDOW_ZOOMED;
notify_window("window-layout-changed", w);
return (0);
}
int
window_unzoom(struct window *w, int notify)
{
struct window_pane *wp;
if (!(w->flags & WINDOW_ZOOMED))
return (-1);
w->flags &= ~WINDOW_ZOOMED;
layout_free(w);
w->layout_root = w->saved_layout_root;
w->saved_layout_root = NULL;
TAILQ_FOREACH(wp, &w->panes, entry) {
wp->layout_cell = wp->saved_layout_cell;
wp->saved_layout_cell = NULL;
}
layout_fix_panes(w, NULL);
if (notify)
notify_window("window-layout-changed", w);
return (0);
}
int
window_push_zoom(struct window *w, int always, int flag)
{
log_debug("%s: @%u %d", __func__, w->id,
flag && (w->flags & WINDOW_ZOOMED));
if (flag && (always || (w->flags & WINDOW_ZOOMED)))
w->flags |= WINDOW_WASZOOMED;
else
w->flags &= ~WINDOW_WASZOOMED;
return (window_unzoom(w, 1) == 0);
}
int
window_pop_zoom(struct window *w)
{
log_debug("%s: @%u %d", __func__, w->id,
!!(w->flags & WINDOW_WASZOOMED));
if (w->flags & WINDOW_WASZOOMED)
return (window_zoom(w->active) == 0);
return (0);
}
struct window_pane *
window_add_pane(struct window *w, struct window_pane *other, u_int hlimit,
int flags)
{
struct window_pane *wp;
if (other == NULL)
other = w->active;
wp = window_pane_create(w, w->sx, w->sy, hlimit);
if (TAILQ_EMPTY(&w->panes)) {
log_debug("%s: @%u at start", __func__, w->id);
TAILQ_INSERT_HEAD(&w->panes, wp, entry);
} else if (flags & SPAWN_BEFORE) {
log_debug("%s: @%u before %%%u", __func__, w->id, wp->id);
if (flags & SPAWN_FULLSIZE)
TAILQ_INSERT_HEAD(&w->panes, wp, entry);
else
TAILQ_INSERT_BEFORE(other, wp, entry);
} else {
log_debug("%s: @%u after %%%u", __func__, w->id, wp->id);
if (flags & SPAWN_FULLSIZE)
TAILQ_INSERT_TAIL(&w->panes, wp, entry);
else
TAILQ_INSERT_AFTER(&w->panes, other, wp, entry);
}
return (wp);
}
void
window_lost_pane(struct window *w, struct window_pane *wp)
{
log_debug("%s: @%u pane %%%u", __func__, w->id, wp->id);
if (wp == marked_pane.wp)
server_clear_marked();
window_pane_stack_remove(&w->last_panes, wp);
if (wp == w->active) {
w->active = TAILQ_FIRST(&w->last_panes);
if (w->active == NULL) {
w->active = TAILQ_PREV(wp, window_panes, entry);
if (w->active == NULL)
w->active = TAILQ_NEXT(wp, entry);
}
if (w->active != NULL) {
window_pane_stack_remove(&w->last_panes, w->active);
w->active->flags |= PANE_CHANGED;
notify_window("window-pane-changed", w);
window_update_focus(w);
}
}
}
void
window_remove_pane(struct window *w, struct window_pane *wp)
{
window_lost_pane(w, wp);
TAILQ_REMOVE(&w->panes, wp, entry);
window_pane_destroy(wp);
}
struct window_pane *
window_pane_at_index(struct window *w, u_int idx)
{
struct window_pane *wp;
u_int n;
n = options_get_number(w->options, "pane-base-index");
TAILQ_FOREACH(wp, &w->panes, entry) {
if (n == idx)
return (wp);
n++;
}
return (NULL);
}
struct window_pane *
window_pane_next_by_number(struct window *w, struct window_pane *wp, u_int n)
{
for (; n > 0; n--) {
if ((wp = TAILQ_NEXT(wp, entry)) == NULL)
wp = TAILQ_FIRST(&w->panes);
}
return (wp);
}
struct window_pane *
window_pane_previous_by_number(struct window *w, struct window_pane *wp,
u_int n)
{
for (; n > 0; n--) {
if ((wp = TAILQ_PREV(wp, window_panes, entry)) == NULL)
wp = TAILQ_LAST(&w->panes, window_panes);
}
return (wp);
}
int
window_pane_index(struct window_pane *wp, u_int *i)
{
struct window_pane *wq;
struct window *w = wp->window;
*i = options_get_number(w->options, "pane-base-index");
TAILQ_FOREACH(wq, &w->panes, entry) {
if (wp == wq) {
return (0);
}
(*i)++;
}
return (-1);
}
u_int
window_count_panes(struct window *w)
{
struct window_pane *wp;
u_int n;
n = 0;
TAILQ_FOREACH(wp, &w->panes, entry)
n++;
return (n);
}
void
window_destroy_panes(struct window *w)
{
struct window_pane *wp;
while (!TAILQ_EMPTY(&w->last_panes)) {
wp = TAILQ_FIRST(&w->last_panes);
window_pane_stack_remove(&w->last_panes, wp);
}
while (!TAILQ_EMPTY(&w->panes)) {
wp = TAILQ_FIRST(&w->panes);
TAILQ_REMOVE(&w->panes, wp, entry);
window_pane_destroy(wp);
}
}
const char *
window_printable_flags(struct winlink *wl, int escape)
{
struct session *s = wl->session;
static char flags[32];
int pos;
pos = 0;
if (wl->flags & WINLINK_ACTIVITY) {
flags[pos++] = '#';
if (escape)
flags[pos++] = '#';
}
if (wl->flags & WINLINK_BELL)
flags[pos++] = '!';
if (wl->flags & WINLINK_SILENCE)
flags[pos++] = '~';
if (wl == s->curw)
flags[pos++] = '*';
if (wl == TAILQ_FIRST(&s->lastw))
flags[pos++] = '-';
if (server_check_marked() && wl == marked_pane.wl)
flags[pos++] = 'M';
if (wl->window->flags & WINDOW_ZOOMED)
flags[pos++] = 'Z';
flags[pos] = '\0';
return (flags);
}
struct window_pane *
window_pane_find_by_id_str(const char *s)
{
const char *errstr;
u_int id;
if (*s != '%')
return (NULL);
id = strtonum(s + 1, 0, UINT_MAX, &errstr);
if (errstr != NULL)
return (NULL);
return (window_pane_find_by_id(id));
}
struct window_pane *
window_pane_find_by_id(u_int id)
{
struct window_pane wp;
wp.id = id;
return (RB_FIND(window_pane_tree, &all_window_panes, &wp));
}
static struct window_pane *
window_pane_create(struct window *w, u_int sx, u_int sy, u_int hlimit)
{
struct window_pane *wp;
char host[HOST_NAME_MAX + 1];
wp = xcalloc(1, sizeof *wp);
wp->window = w;
wp->options = options_create(w->options);
wp->flags = PANE_STYLECHANGED;
wp->id = next_window_pane_id++;
RB_INSERT(window_pane_tree, &all_window_panes, wp);
wp->fd = -1;
TAILQ_INIT(&wp->modes);
TAILQ_INIT (&wp->resize_queue);
wp->sx = sx;
wp->sy = sy;
wp->pipe_fd = -1;
wp->control_bg = -1;
wp->control_fg = -1;
colour_palette_init(&wp->palette);
colour_palette_from_option(&wp->palette, wp->options);
screen_init(&wp->base, sx, sy, hlimit);
wp->screen = &wp->base;
window_pane_default_cursor(wp);
screen_init(&wp->status_screen, 1, 1, 0);
if (gethostname(host, sizeof host) == 0)
screen_set_title(&wp->base, host);
return (wp);
}
static void
window_pane_destroy(struct window_pane *wp)
{
struct window_pane_resize *r;
struct window_pane_resize *r1;
window_pane_reset_mode_all(wp);
free(wp->searchstr);
if (wp->fd != -1) {
bufferevent_free(wp->event);
close(wp->fd);
}
if (wp->ictx != NULL)
input_free(wp->ictx);
screen_free(&wp->status_screen);
screen_free(&wp->base);
if (wp->pipe_fd != -1) {
bufferevent_free(wp->pipe_event);
close(wp->pipe_fd);
}
if (event_initialized(&wp->resize_timer))
event_del(&wp->resize_timer);
TAILQ_FOREACH_SAFE(r, &wp->resize_queue, entry, r1) {
TAILQ_REMOVE(&wp->resize_queue, r, entry);
free(r);
}
RB_REMOVE(window_pane_tree, &all_window_panes, wp);
options_free(wp->options);
free((void *)wp->cwd);
free(wp->shell);
cmd_free_argv(wp->argc, wp->argv);
colour_palette_free(&wp->palette);
free(wp);
}
static void
window_pane_read_callback(__unused struct bufferevent *bufev, void *data)
{
struct window_pane *wp = data;
struct evbuffer *evb = wp->event->input;
struct window_pane_offset *wpo = &wp->pipe_offset;
size_t size = EVBUFFER_LENGTH(evb);
char *new_data;
size_t new_size;
struct client *c;
if (wp->pipe_fd != -1) {
new_data = window_pane_get_new_data(wp, wpo, &new_size);
if (new_size > 0) {
bufferevent_write(wp->pipe_event, new_data, new_size);
window_pane_update_used_data(wp, wpo, new_size);
}
}
log_debug("%%%u has %zu bytes", wp->id, size);
TAILQ_FOREACH(c, &clients, entry) {
if (c->session != NULL && (c->flags & CLIENT_CONTROL))
control_write_output(c, wp);
}
input_parse_pane(wp);
bufferevent_disable(wp->event, EV_READ);
}
static void
window_pane_error_callback(__unused struct bufferevent *bufev,
__unused short what, void *data)
{
struct window_pane *wp = data;
log_debug("%%%u error", wp->id);
wp->flags |= PANE_EXITED;
if (window_pane_destroy_ready(wp))
server_destroy_pane(wp, 1);
}
void
window_pane_set_event(struct window_pane *wp)
{
setblocking(wp->fd, 0);
wp->event = bufferevent_new(wp->fd, window_pane_read_callback,
NULL, window_pane_error_callback, wp);
if (wp->event == NULL)
fatalx("out of memory");
wp->ictx = input_init(wp, wp->event, &wp->palette);
bufferevent_enable(wp->event, EV_READ|EV_WRITE);
}
void
window_pane_resize(struct window_pane *wp, u_int sx, u_int sy)
{
struct window_mode_entry *wme;
struct window_pane_resize *r;
if (sx == wp->sx && sy == wp->sy)
return;
r = xmalloc(sizeof *r);
r->sx = sx;
r->sy = sy;
r->osx = wp->sx;
r->osy = wp->sy;
TAILQ_INSERT_TAIL (&wp->resize_queue, r, entry);
wp->sx = sx;
wp->sy = sy;
log_debug("%s: %%%u resize %ux%u", __func__, wp->id, sx, sy);
screen_resize(&wp->base, sx, sy, wp->base.saved_grid == NULL);
wme = TAILQ_FIRST(&wp->modes);
if (wme != NULL && wme->mode->resize != NULL)
wme->mode->resize(wme, sx, sy);
}
int
window_pane_set_mode(struct window_pane *wp, struct window_pane *swp,
const struct window_mode *mode, struct cmd_find_state *fs,
struct args *args)
{
struct window_mode_entry *wme;
if (!TAILQ_EMPTY(&wp->modes) && TAILQ_FIRST(&wp->modes)->mode == mode)
return (1);
TAILQ_FOREACH(wme, &wp->modes, entry) {
if (wme->mode == mode)
break;
}
if (wme != NULL) {
TAILQ_REMOVE(&wp->modes, wme, entry);
TAILQ_INSERT_HEAD(&wp->modes, wme, entry);
} else {
wme = xcalloc(1, sizeof *wme);
wme->wp = wp;
wme->swp = swp;
wme->mode = mode;
wme->prefix = 1;
TAILQ_INSERT_HEAD(&wp->modes, wme, entry);
wme->screen = wme->mode->init(wme, fs, args);
}
wp->screen = wme->screen;
wp->flags |= (PANE_REDRAW|PANE_CHANGED);
server_redraw_window_borders(wp->window);
server_status_window(wp->window);
notify_pane("pane-mode-changed", wp);
return (0);
}
void
window_pane_reset_mode(struct window_pane *wp)
{
struct window_mode_entry *wme, *next;
if (TAILQ_EMPTY(&wp->modes))
return;
wme = TAILQ_FIRST(&wp->modes);
TAILQ_REMOVE(&wp->modes, wme, entry);
wme->mode->free(wme);
free(wme);
next = TAILQ_FIRST(&wp->modes);
if (next == NULL) {
wp->flags &= ~PANE_UNSEENCHANGES;
log_debug("%s: no next mode", __func__);
wp->screen = &wp->base;
} else {
log_debug("%s: next mode is %s", __func__, next->mode->name);
wp->screen = next->screen;
if (next->mode->resize != NULL)
next->mode->resize(next, wp->sx, wp->sy);
}
wp->flags |= (PANE_REDRAW|PANE_CHANGED);
server_redraw_window_borders(wp->window);
server_status_window(wp->window);
notify_pane("pane-mode-changed", wp);
}
void
window_pane_reset_mode_all(struct window_pane *wp)
{
while (!TAILQ_EMPTY(&wp->modes))
window_pane_reset_mode(wp);
}
static void
window_pane_copy_key(struct window_pane *wp, key_code key)
{
struct window_pane *loop;
TAILQ_FOREACH(loop, &wp->window->panes, entry) {
if (loop != wp &&
TAILQ_EMPTY(&loop->modes) &&
loop->fd != -1 &&
(~loop->flags & PANE_INPUTOFF) &&
window_pane_visible(loop) &&
options_get_number(loop->options, "synchronize-panes"))
input_key_pane(loop, key, NULL);
}
}
int
window_pane_key(struct window_pane *wp, struct client *c, struct session *s,
struct winlink *wl, key_code key, struct mouse_event *m)
{
struct window_mode_entry *wme;
if (KEYC_IS_MOUSE(key) && m == NULL)
return (-1);
wme = TAILQ_FIRST(&wp->modes);
if (wme != NULL) {
if (wme->mode->key != NULL && c != NULL) {
key &= ~KEYC_MASK_FLAGS;
wme->mode->key(wme, c, s, wl, key, m);
}
return (0);
}
if (wp->fd == -1 || wp->flags & PANE_INPUTOFF)
return (0);
if (input_key_pane(wp, key, m) != 0)
return (-1);
if (KEYC_IS_MOUSE(key))
return (0);
if (options_get_number(wp->options, "synchronize-panes"))
window_pane_copy_key(wp, key);
return (0);
}
int
window_pane_visible(struct window_pane *wp)
{
if (~wp->window->flags & WINDOW_ZOOMED)
return (1);
return (wp == wp->window->active);
}
int
window_pane_exited(struct window_pane *wp)
{
return (wp->fd == -1 || (wp->flags & PANE_EXITED));
}
u_int
window_pane_search(struct window_pane *wp, const char *term, int regex,
int ignore)
{
struct screen *s = &wp->base;
regex_t r;
char *new = NULL, *line;
u_int i;
int flags = 0, found;
size_t n;
if (!regex) {
if (ignore)
flags |= FNM_CASEFOLD;
xasprintf(&new, "*%s*", term);
} else {
if (ignore)
flags |= REG_ICASE;
if (regcomp(&r, term, flags|REG_EXTENDED) != 0)
return (0);
}
for (i = 0; i < screen_size_y(s); i++) {
line = grid_view_string_cells(s->grid, 0, i, screen_size_x(s));
for (n = strlen(line); n > 0; n--) {
if (!isspace((u_char)line[n - 1]))
break;
line[n - 1] = '\0';
}
log_debug("%s: %s", __func__, line);
if (!regex)
found = (fnmatch(new, line, flags) == 0);
else
found = (regexec(&r, line, 0, NULL, 0) == 0);
free(line);
if (found)
break;
}
if (!regex)
free(new);
else
regfree(&r);
if (i == screen_size_y(s))
return (0);
return (i + 1);
}
/* Get MRU pane from a list. */
static struct window_pane *
window_pane_choose_best(struct window_pane **list, u_int size)
{
struct window_pane *next, *best;
u_int i;
if (size == 0)
return (NULL);
best = list[0];
for (i = 1; i < size; i++) {
next = list[i];
if (next->active_point > best->active_point)
best = next;
}
return (best);
}
/*
* Find the pane directly above another. We build a list of those adjacent to
* top edge and then choose the best.
*/
struct window_pane *
window_pane_find_up(struct window_pane *wp)
{
struct window *w;
struct window_pane *next, *best, **list;
u_int edge, left, right, end, size;
int status, found;
if (wp == NULL)
return (NULL);
w = wp->window;
status = options_get_number(w->options, "pane-border-status");
list = NULL;
size = 0;
edge = wp->yoff;
if (status == PANE_STATUS_TOP) {
if (edge == 1)
edge = w->sy + 1;
} else if (status == PANE_STATUS_BOTTOM) {
if (edge == 0)
edge = w->sy;
} else {
if (edge == 0)
edge = w->sy + 1;
}
left = wp->xoff;
right = wp->xoff + wp->sx;
TAILQ_FOREACH(next, &w->panes, entry) {
if (next == wp)
continue;
if (next->yoff + next->sy + 1 != edge)
continue;
end = next->xoff + next->sx - 1;
found = 0;
if (next->xoff < left && end > right)
found = 1;
else if (next->xoff >= left && next->xoff <= right)
found = 1;
else if (end >= left && end <= right)
found = 1;
if (!found)
continue;
list = xreallocarray(list, size + 1, sizeof *list);
list[size++] = next;
}
best = window_pane_choose_best(list, size);
free(list);
return (best);
}
/* Find the pane directly below another. */
struct window_pane *
window_pane_find_down(struct window_pane *wp)
{
struct window *w;
struct window_pane *next, *best, **list;
u_int edge, left, right, end, size;
int status, found;
if (wp == NULL)
return (NULL);
w = wp->window;
status = options_get_number(w->options, "pane-border-status");
list = NULL;
size = 0;
edge = wp->yoff + wp->sy + 1;
if (status == PANE_STATUS_TOP) {
if (edge >= w->sy)
edge = 1;
} else if (status == PANE_STATUS_BOTTOM) {
if (edge >= w->sy - 1)
edge = 0;
} else {
if (edge >= w->sy)
edge = 0;
}
left = wp->xoff;
right = wp->xoff + wp->sx;
TAILQ_FOREACH(next, &w->panes, entry) {
if (next == wp)
continue;
if (next->yoff != edge)
continue;
end = next->xoff + next->sx - 1;
found = 0;
if (next->xoff < left && end > right)
found = 1;
else if (next->xoff >= left && next->xoff <= right)
found = 1;
else if (end >= left && end <= right)
found = 1;
if (!found)
continue;
list = xreallocarray(list, size + 1, sizeof *list);
list[size++] = next;
}
best = window_pane_choose_best(list, size);
free(list);
return (best);
}
/* Find the pane directly to the left of another. */
struct window_pane *
window_pane_find_left(struct window_pane *wp)
{
struct window *w;
struct window_pane *next, *best, **list;
u_int edge, top, bottom, end, size;
int found;
if (wp == NULL)
return (NULL);
w = wp->window;
list = NULL;
size = 0;
edge = wp->xoff;
if (edge == 0)
edge = w->sx + 1;
top = wp->yoff;
bottom = wp->yoff + wp->sy;
TAILQ_FOREACH(next, &w->panes, entry) {
if (next == wp)
continue;
if (next->xoff + next->sx + 1 != edge)
continue;
end = next->yoff + next->sy - 1;
found = 0;
if (next->yoff < top && end > bottom)
found = 1;
else if (next->yoff >= top && next->yoff <= bottom)
found = 1;
else if (end >= top && end <= bottom)
found = 1;
if (!found)
continue;
list = xreallocarray(list, size + 1, sizeof *list);
list[size++] = next;
}
best = window_pane_choose_best(list, size);
free(list);
return (best);
}
/* Find the pane directly to the right of another. */
struct window_pane *
window_pane_find_right(struct window_pane *wp)
{
struct window *w;
struct window_pane *next, *best, **list;
u_int edge, top, bottom, end, size;
int found;
if (wp == NULL)
return (NULL);
w = wp->window;
list = NULL;
size = 0;
edge = wp->xoff + wp->sx + 1;
if (edge >= w->sx)
edge = 0;
top = wp->yoff;
bottom = wp->yoff + wp->sy;
TAILQ_FOREACH(next, &w->panes, entry) {
if (next == wp)
continue;
if (next->xoff != edge)
continue;
end = next->yoff + next->sy - 1;
found = 0;
if (next->yoff < top && end > bottom)
found = 1;
else if (next->yoff >= top && next->yoff <= bottom)
found = 1;
else if (end >= top && end <= bottom)
found = 1;
if (!found)
continue;
list = xreallocarray(list, size + 1, sizeof *list);
list[size++] = next;
}
best = window_pane_choose_best(list, size);
free(list);
return (best);
}
void
window_pane_stack_push(struct window_panes *stack, struct window_pane *wp)
{
if (wp != NULL) {
window_pane_stack_remove(stack, wp);
TAILQ_INSERT_HEAD(stack, wp, sentry);
wp->flags |= PANE_VISITED;
}
}
void
window_pane_stack_remove(struct window_panes *stack, struct window_pane *wp)
{
if (wp != NULL && (wp->flags & PANE_VISITED)) {
TAILQ_REMOVE(stack, wp, sentry);
wp->flags &= ~PANE_VISITED;
}
}
/* Clear alert flags for a winlink */
void
winlink_clear_flags(struct winlink *wl)
{
struct winlink *loop;
wl->window->flags &= ~WINDOW_ALERTFLAGS;
TAILQ_FOREACH(loop, &wl->window->winlinks, wentry) {
if ((loop->flags & WINLINK_ALERTFLAGS) != 0) {
loop->flags &= ~WINLINK_ALERTFLAGS;
server_status_session(loop->session);
}
}
}
/* Shuffle window indexes up. */
int
winlink_shuffle_up(struct session *s, struct winlink *wl, int before)
{
int idx, last;
if (wl == NULL)
return (-1);
if (before)
idx = wl->idx;
else
idx = wl->idx + 1;
/* Find the next free index. */
for (last = idx; last < INT_MAX; last++) {
if (winlink_find_by_index(&s->windows, last) == NULL)
break;
}
if (last == INT_MAX)
return (-1);
/* Move everything from last - 1 to idx up a bit. */
for (; last > idx; last--) {
wl = winlink_find_by_index(&s->windows, last - 1);
RB_REMOVE(winlinks, &s->windows, wl);
wl->idx++;
RB_INSERT(winlinks, &s->windows, wl);
}
return (idx);
}
static void
window_pane_input_callback(struct client *c, __unused const char *path,
int error, int closed, struct evbuffer *buffer, void *data)
{
struct window_pane_input_data *cdata = data;
struct window_pane *wp;
u_char *buf = EVBUFFER_DATA(buffer);
size_t len = EVBUFFER_LENGTH(buffer);
wp = window_pane_find_by_id(cdata->wp);
if (cdata->file != NULL && (wp == NULL || c->flags & CLIENT_DEAD)) {
if (wp == NULL) {
c->retval = 1;
c->flags |= CLIENT_EXIT;
}
file_cancel(cdata->file);
} else if (cdata->file == NULL || closed || error != 0) {
cmdq_continue(cdata->item);
server_client_unref(c);
free(cdata);
} else
input_parse_buffer(wp, buf, len);
evbuffer_drain(buffer, len);
}
int
window_pane_start_input(struct window_pane *wp, struct cmdq_item *item,
char **cause)
{
struct client *c = cmdq_get_client(item);
struct window_pane_input_data *cdata;
if (~wp->flags & PANE_EMPTY) {
*cause = xstrdup("pane is not empty");
return (-1);
}
if (c->flags & (CLIENT_DEAD|CLIENT_EXITED))
return (1);
if (c->session != NULL)
return (1);
cdata = xmalloc(sizeof *cdata);
cdata->item = item;
cdata->wp = wp->id;
cdata->file = file_read(c, "-", window_pane_input_callback, cdata);
c->references++;
return (0);
}
void *
window_pane_get_new_data(struct window_pane *wp,
struct window_pane_offset *wpo, size_t *size)
{
size_t used = wpo->used - wp->base_offset;
*size = EVBUFFER_LENGTH(wp->event->input) - used;
return (EVBUFFER_DATA(wp->event->input) + used);
}
void
window_pane_update_used_data(struct window_pane *wp,
struct window_pane_offset *wpo, size_t size)
{
size_t used = wpo->used - wp->base_offset;
if (size > EVBUFFER_LENGTH(wp->event->input) - used)
size = EVBUFFER_LENGTH(wp->event->input) - used;
wpo->used += size;
}
void
window_set_fill_character(struct window *w)
{
const char *value;
struct utf8_data *ud;
free(w->fill_character);
w->fill_character = NULL;
value = options_get_string(w->options, "fill-character");
if (*value != '\0' && utf8_isvalid(value)) {
ud = utf8_fromcstr(value);
if (ud != NULL && ud[0].width == 1)
w->fill_character = ud;
}
}
void
window_pane_default_cursor(struct window_pane *wp)
{
struct screen *s = wp->screen;
int c;
c = options_get_number(wp->options, "cursor-colour");
s->default_ccolour = c;
c = options_get_number(wp->options, "cursor-style");
s->default_mode = 0;
screen_set_cursor_style(c, &s->default_cstyle, &s->default_mode);
}
```
|
Postdoctoral researcher unionization is the formation of labor unions by postdoctoral researchers (postdocs). It has been driven by increasing competition for scarce tenure-track faculty positions, leading to more people residing in postdoctoral positions for a longer time. Unions often challenge the low pay, minimal benefits, and lack of job security that are typical of postdoctoral positions. Unionizing is however sometimes seen as creating a culture clash of tension between postdocs and their academic advisors, and some question the suitability of a union for a temporary position. Some universities seek to avoid pushes for unionization by proactively addressing the concerns of postdoctoral researchers.
Postdoctoral unions exist only at a few universities. They have often been formed with the help of other unions at the same institution; for example, before the University of Massachusetts Amherst union was formed, postdoctoral researchers were the only class of employees not already part of a union. The National Postdoctoral Association, which is a professional association rather than a labor union, is officially neutral on the issue of postdoctoral unionization. The Boston Postdoctoral Association, the largest 501c(6) postdoctoral organization and largest regional organization, has not publicly declared a position on postdoctoral organization.
History
The first stand-alone postdoctoral researcher union was UAW Local 5810 at the University of California system. As of 2010 it represented about 6,400 postdoctoral researchers, which was estimated to be about 10% of the United States total, and is the largest postdoctoral researcher union in North America. Efforts to form this union had begun in the early 2000s, and it was officially formed in 2008. Its first contract was ratified in August 2010. This led to establishing a minimum salary with annual increases, the availability of insurance benefits, guaranteed vacation time, paid maternity leave, and just cause protections for discipline or dismissal.
Postdocs at Rutgers University unionized in July 2009. In 2010, a postdoctoral union at the University of Massachusetts Amherst was formed, and in 2012 it ratified a contract providing for salary and benefits, the first of its kind in the University of Massachusetts system. Postdoctoral unions also exist at the University of Connecticut Health Center and the University of Alaska in the United States, and at McMaster University, the University of Western Ontario, and the Université Laval in Canada. In 2018, the 1,100 postdocs at the University of Washington voted to unionize, becoming the second-largest postdoc union in the United States. Also in 2018, postdocs at Columbia University formed the first certified postdoctoral union at a private university in the United States after successfully petitioning the NLRB, and the postdocs at the University of Connecticut formed a union.
See also
Graduate student employee unionization
References
Postdoctoral research
Tertiary education trade unions
|
```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 org.flowable.variable.service.event.impl;
import org.flowable.common.engine.api.delegate.event.FlowableEngineEventType;
import org.flowable.common.engine.api.delegate.event.FlowableEntityEvent;
import org.flowable.common.engine.api.delegate.event.FlowableEvent;
import org.flowable.common.engine.impl.event.FlowableEntityEventImpl;
import org.flowable.variable.api.event.FlowableVariableEvent;
import org.flowable.variable.api.persistence.entity.VariableInstance;
import org.flowable.variable.api.types.VariableType;
/**
* Builder class used to create {@link FlowableEvent} implementations.
*
* @author Frederik Heremans
*/
public class FlowableVariableEventBuilder {
/**
* @param type
* type of event
* @param entity
* the entity this event targets
* @return an {@link FlowableEntityEvent}. In case an ExecutionContext is active, the execution related event fields will be populated. If not, execution details will be retrieved from the
* {@link Object} if possible.
*/
public static FlowableEntityEvent createEntityEvent(FlowableEngineEventType type, Object entity) {
FlowableEntityEventImpl newEvent = new FlowableEntityEventImpl(entity, type);
return newEvent;
}
public static FlowableVariableEvent createVariableEvent(FlowableEngineEventType type, VariableInstance variableInstance, Object variableValue,
VariableType variableType) {
FlowableVariableEventImpl newEvent = new FlowableVariableEventImpl(type);
newEvent.setVariableName(variableInstance.getName());
newEvent.setVariableValue(variableValue);
newEvent.setVariableType(variableType);
newEvent.setTaskId(variableInstance.getTaskId());
newEvent.setVariableInstanceId(variableInstance.getId());
if (variableInstance.getScopeType() == null) {
newEvent.setExecutionId(variableInstance.getExecutionId());
newEvent.setProcessInstanceId(variableInstance.getProcessInstanceId());
newEvent.setProcessDefinitionId(variableInstance.getProcessDefinitionId());
newEvent.setExecutionId(variableInstance.getExecutionId());
} else {
newEvent.setScopeType(variableInstance.getScopeType());
newEvent.setScopeId(variableInstance.getScopeId());
newEvent.setSubScopeId(variableInstance.getSubScopeId());
}
return newEvent;
}
}
```
|
```css
Importer
Sass Operators
Using SassScripts Interactive Shell
SassScript Map and List Functions
SassScript String Operations
```
|
Forkhead box protein A1 (FOXA1), also known as hepatocyte nuclear factor 3-alpha (HNF-3A), is a protein that in humans is encoded by the FOXA1 gene.
Function
FOXA1 is a member of the forkhead class of DNA-binding proteins. These hepatocyte nuclear factors are transcriptional activators for liver-specific transcripts such as albumin and transthyretin, and they also interact with chromatin as a pioneer factor. Similar family members in mice have roles in the regulation of metabolism and in the differentiation of the pancreas and liver.
Marker in breast cancer
FOXA1 in breast cancer is highly correlated with ERα+, GATA3+, and PR+ protein expression as well as endocrine signaling. FOXA1 acts as a pioneer factor for ERa in ERα+ breast cancer, and its expression might identify ERα+ cancers that undergo rapid reprogramming of ERa signaling that is associated with poor outcomes and treatment resistance. Conversely, in ERα− breast cancer FOXA1 is highly correlated with low-grade morphology and improved disease free survival. FOXA1 is a downstream target of GATA3 in the mammary gland. Expression in ERα− cancers may identify a subset of tumors that is responsive to other endocrine therapies such as androgen receptor antagonist treatment.
Role in cancer
Mutations in this gene have been recurrently seen in instances of prostate cancer.
Expression of FOXA1 correlates with two EMT markers, namely Twist1 and E-cadherin in breast cancer.
References
Further reading
External links
Forkhead transcription factors
|
The 1964 Temple Owls football team was an American football team that represented Temple University as a member of the Middle Atlantic Conference (MAC) during the 1964 NCAA College Division football season. In its fifth season under head coach George Makris, the team compiled a 7–2 record (4–1 against MAC opponents) and finished third out of seven teams in the MAC's University Division. The team played its home games at Temple Stadium in Philadelphia.
Schedule
References
Temple
Temple Owls football seasons
Temple Owls football
|
Level C is a Japanese manga series written and illustrated by Futaba Aoi and Mitsuba Kurenai. The manga is licensed in North America by Media Blasters. It has also been made into an original video animation by J.C.Staff. It is the dramatic tale of a relationship between a salaryman and a high school-aged male model.
Plot
Mizuki Shinohara is a male teenage fashion model who lives on his own in a very nice apartment and is still in high school. An adult business man named Kazuomi Honjou had just broke up with his girlfriend and had been kicked out of her house leaving him homeless and having nowhere else to go, then he sets out to find someone new to live with and sees Mizuki on the street. Kazuomi thinks Mizuki is cute and asks to stay with him in exchange for great pleasurable sex. Mizuki thinks he is joking until they are at his apartment later that night and Kazuomi makes good on his promise.
Characters
Voiced by: Akira Ishida
Voiced by: Shinichiro Miki
Voiced by: Takehito Koyasu
Voiced by: Rica Fukami
Media
Manga
Level C is written and illustrated by Futaba Aoi and Mitsuba Kurenai. The manga is licensed in North America by Media Blasters. Biblos released the manga's three tankōbon between August 1993 and January 1996. Media Blasters released the manga in six tankōbon volumes between March 15, 2005 and May 31, 2006.
OVA
Directed by Yorifusa Yamaguchi the OVA titled was released by J.C.Staff in 1995. The OVA has been licensed in North America by Kitty Media and in Germany by Anime-House. The ending theme of the series is "Only Two Men's Eternity" by Yasuhiro Mizushima. The OVA was originally released in Japan on May 24, 1996 in VHS format. It was released in DVD format on March 25, 2005.
Production
Level C started as a doujinshi in 1989. The individual chapters were compiled into six tankōbon volumes in 1993. Frank Panonne of Media Blasters said that "Level C will be uncut, all characters portrayed having sex or in the nude will be depicted as aged 18 or older." The original Japanese version depicts the protagonist as a high-school student. Level C will be shrink wrapped when released. The bankruptcy of Biblos on April 5, 2006, will not affect the production of Level C "at least until the contracts expire".
Reception
Mike Dungan of Mania.com comments on the varying styles of art in the manga since the chapters were not written in order. He commends the art by saying "the art reproduction is more than serviceable, with some nice detailwork making the transition from tankouban to graphic novel, and nicely done reproduction of the screentoning."
Chris Beveridge of Mania.com comments on the hard subtitling of the OVA and lack of a menu "forces them to front-load the trailers for other shows". He also comments on the "auto-repeat mode" when the end of the last chapter is reached. THEM Anime Reviews criticises the OVA for a lack of plot.
References
External links
1993 manga
1995 anime OVAs
J.C.Staff
Josei manga
Media Blasters
Yaoi anime and manga
|
Tonometry is the procedure eye care professionals perform to determine the intraocular pressure (IOP), the fluid pressure inside the eye. It is an important test in the evaluation of patients at risk from glaucoma. Most tonometers are calibrated to measure pressure in millimeters of mercury (mmHg), with the normal eye pressure range between .
Methods
Applanation tonometry
In applanation tonometry the intraocular pressure (IOP) is inferred from the force required to flatten (applanate) a constant area of the cornea, for the Imbert-Fick law. The Maklakoff tonometer was an early example of this method, while the Goldmann tonometer is the most widely used version in current practice. Because the probe makes contact with the cornea, a topical anesthetic, such as proxymetacaine, is introduced on to the surface of the eye in the form of an eye drop.
Goldmann tonometry
Goldmann tonometry is considered to be the gold standard IOP test and is the most widely accepted method. A special disinfected prism is mounted on the tonometer head and then placed against the cornea. The examiner then uses a cobalt blue filter to view two green semicircles. The force applied to the tonometer head is then adjusted using a dial connected to a variable tension spring until the inner edges of the green semicircles in the viewfinder meet. When the area of a circle with diameter has been flattened, the opposing forces of corneal rigidity and the tear film are roughly approximate and cancel each other out allowing the pressure in the eye to be determined from the force applied. Like all non-invasive methods, it is inherently imprecise and may need to be adjusted.
Perkins tonometer
The Perkins tonometer is a type of portable applanation tonometer, which may be useful in children, anesthetised patients who need to lie flat, or patients unable to co-operate with a sitting slit lamp examination, that yields clinical results comparable to the Goldmann.
Dynamic contour tonometry
Dynamic contour tonometry (DCT) uses the principle of contour matching instead of applanation. The tip contains a hollow the same shape as the cornea with a miniature pressure sensor in its centre. In contrast to applanation tonometry it is designed to avoid deforming the cornea during measurement and is therefore thought to be less influenced by corneal thickness and other biomechanical properties of the cornea than other methods but because the tip shape is designed for the shape of a normal cornea, it is more influenced by corneal curvature.
The probe is placed on the pre-corneal tear film on the central cornea (see gallery) and the integrated piezoresistive pressure sensor automatically begins to acquire data, measuring IOP 100 times per second. The tonometer tip rests on the cornea with a constant appositional force of one gram. When the sensor is subjected to a change in pressure, the electrical resistance is altered and the tonometer's computer calculates a change in pressure according to the change in resistance. A complete measurement cycle requires about eight seconds of contact time. The device also measures the variation in pressure that occurs with the cardiac cycle.
Electronic indentation tonometry
Electronic indentation tonometers are modified Mackay-Marg tonometers that use a free floating transducer to detect the transmitted pressure. The transducer is surrounded by an outer ring that flattens the adjacent cornea reducing its influence on measurement. Because the device touches the cornea, topical anesthetic eye drops are used to numb the eye but as with non-contact tonometry, these devices are often used in children and non-cooperative patients because of their portability and ease of use. Portable electronic tonometers also play a major role in veterinary tonometry.
Rebound tonometry
Rebound tonometers determine intraocular pressure by bouncing a small plastic tipped metal probe against the cornea. The device uses an induction coil to magnetise the probe and fire it against the cornea. As the probe bounces against the cornea and back into the device, it creates an induction current from which the intraocular pressure is calculated. The device is simple and easy to use and self-use versions are available. It is portable, does not require the use of eye drops and is particularly suitable for children and non-cooperative patients.
Pneumatonometry
A pneumatonometer utilizes a pneumatic sensor (consisting of a piston floating on an air bearing). Filtered air is pumped into the piston and travels through a small ( diameter) fenestrated membrane at one end. This membrane is placed against the cornea. The balance between the flow of air from the machine and the resistance to flow from the cornea affect the movement of the piston and this movement is used to calculate the intra-ocular pressure.
Impression tonometry
Impression tonometry (also known as indentation tonometry) measures the depth of corneal indentation made by a small plunger carrying a known weight. The higher the intraocular pressure, the harder it is to push against and indent the cornea. For very high levels of IOP, extra weights can be added to make the plunger push harder. The movement of the plunger is measured using a calibrated scale. The Schiøtz tonometer is the most common device to use this principle.
Non-corneal and transpalpebral tonometry
Transpalpebral tonometry refers to methods of measuring intraocular pressure through the eyelid. The Diaton non-corneal tonometer calculates pressure by measuring the response of a free-falling rod, as it rebounds against the tarsal plate of the eyelid through the sclera. The patient is positioned so that the tip of the device and lid are overlying sclera. Non-corneal and transpalpebral tonometry does not involve contact with the cornea and does not require topical anesthetic during routine use. Transpalpebral tonometry may be useful for measuring postsurgery IOP after myopic LASIK ablation because this technique is not influenced by the treatment. The Diaton tonometer still requires further evaluation and is not a substitute or alternative for more established methods. The Diaton tonometer has a large margin of error compared with commonly used tonometers (e.g., GAT) in most patients (including those with ocular hypertension, glaucoma, and glaucoma tube shunts).
Non-contact tonometry
Non-contact tonometry (or air-puff tonometry) is different from pneumatonometry and was invented by Bernard Grolman of Reichert, Inc (formerly American Optical). It uses a rapid air pulse to applanate (flatten) the cornea. Corneal applanation is detected via an electro-optical system. Intraocular pressure is estimated by detecting the force of the air jet at the instance of applanation. Historically, non-contact tonometers were not considered to be an accurate way to measure IOP but instead a fast and simple way to screen for high IOP. However, modern non-contact tonometers have been shown to correlate well with Goldmann tonometry measurements and are particularly useful for measuring IOP in children and other non-compliant patient groups.
Ocular response analyzer
The ocular response analyser (ORA) is a non-contact (air puff) tonometer that does not require topical anaesthesia and provides additional information on the biomechanical properties of the cornea. It uses an air pulse to deform the cornea into a slight concavity. The difference between the pressures at which the cornea flattens inward and outward is measured by the machine and termed corneal hysteresis (CH). The machine uses this value to correct for the effects of the cornea on measurement. In a population based study in healthy children that compared non-contact IOP measuring tonometer, including ORA and CORVIS with a contact tonometer, GAT, which is a routine instrument for IOP measurement. It was firmly evident that due to significantly low positive or negligible correlation, none of these 2 non-contact tonometers can replace the GAT.
Palpation
Palpation (also known as digital tonometry) is the method of estimating intraocular pressure by gently pressing the index finger against the cornea of a closed eye. This method is notoriously unreliable.
Influencing factors
Central corneal thickness (CCT)
The thickness of the cornea affects most non-invasive methods by varying resistance to the tonometer probe. A thick cornea gives rise to a greater probability of an IOP being overestimated (and a thin cornea of an IOP being underestimated), but the extent of measurement error in individual patients cannot be ascertained from the CCT alone. The Ocular Response Analyzer and Pascal DCT Tonometers are less affected by CCT than the Goldmann tonometer. Conversely, non-contact and rebound tonometers are more affected. Corneal thickness varies among individuals as well as with age and race. It is reduced in certain disease and following LASIK surgery.
Gallery
References
External links
Tonometry - WebMD
Kirstein, E. "An Update on Methods for Assessing Intraocular Pressure." Retrieved June 7, 2006.
Diagnostic ophthalmology
Ophthalmic equipment
|
{{Infobox sportsperson
| name = Mark Felix
| nickname = The Miracle Man
| image = Mark Felix.jpg
| caption =
| birth_date =
| birth_place = St. George's, Grenada
| residence = Rishton, Lancashire, England
| education =
| height =
| weight =
| sport = Strongman
| medaltemplates =
{{CompetitionRecord|1st| 2016 WSF World Cup'| }}
}}Mark Felix (born 17 April 1966) is a Grenadian-English strongman competitor and regular entrant to the World's Strongest Man competition. He has competed at a record 18 World's Strongest Man contests, reaching the finals three times. He is the winner of the 2015 Ultimate Strongman Masters World Championships, 2016 WSF World Cup India and has won numerous international grip contests, including the Rolling Thunder World Championships in 2008 and 2009, as well as the Vice Grip Viking Challenge in 2011 and 2012. Having competed in over 100 international competitions throughout 19 years, Felix is the 3rd most prolific strongman contestant in history.
Felix has been affectionately called "The Miracle Man" due to his immense grip strength, deadlift ability, and continued impressive performance in strongman competition despite his relatively older age, with many of his competitors over a decade younger than him.
Early life
Mark Felix was born in 1966 in St. George's, Grenada. At the age of 23, he moved to Rishton, Lancashire, England. He was a dedicated bodybuilder and turned his attention to strongman competitions in 2003 at the age of 37, comparatively late in relation to other strength athletes.
Felix also works as a plasterer, with his strength training done four evenings a week.
Strongman career
Felix turned pro as a strongman within a year when the IFSA Strongman Federation was launched in 2004.
Felix came third in England's Strongest Man in 2004, and in 2005 he went on to come second to Eddy Elwood in the IFSA version of England's Strongest Man. This led him to the IFSA British Championships, which he won in 2005. Of the five events, Felix won three (Deadlift, Farmer's Walk and Atlas Stones). Afterwards, Felix credited his victory to "Big hands, big heart".
In 2005, Felix was invited to compete in the IFSA World Open in Sao Paulo, Brazil which was a qualifier for the 2005 IFSA Strongman World Championships later in the year, but he failed to finish in the top four and did not qualify for the IFSA World Championships.
Felix also competed in the IFSA World Team Championships in 2005 as a part of Team World' representing Grenada, where the team placed third overall.
In 2006, Felix placed second in the Britain's Strongest Man competition and this led to a place in the 2006 World's Strongest Man (WSM), where he placed fourth in the finals.
In 2007, he repeated his second-place finish in Britain's Strongest Man and finished seventh in the 2007 World's Strongest Man. In the same year, he also finished third in the Strongman Super Series 2007 Mohegan Sun Grand Prix.
In 2008, he came fourth in Europe's Strongest Man and went on to finish third in Britain's Strongest Man, qualifying him for a third successive WSM appearance. Felix has said, "Every year I gain more experience and learn more about what I am capable of."
Felix regularly competed at the Europe's Strongest Man from 2008 to 2020. His highest placings were coming in at 3rd place in the 2010 and 2015 competitions. He was also a perennial contender in Britain's Strongest Man competitions, coming in 3rd place two times (2008 and 2013) and 2nd place four times (2006, 2007, 2015, 2016).
In both 2010 and 2012, Felix placed 3rd at the Jón Páll Sigmarsson Classic held in Reykjavík, Iceland.
In 2016, Felix won the World Strongman Federation World Cup held in Varanasi, India. This was his second international competition win.
In 2023, Felix became the oldest competitor ever in the 2023 World's Strongest Man at 57 years old. A new award, the Knaack Tools of the Strongman Award, was also awarded to both Felix and four-time WSM champion Brian Shaw. The award was voted on by the athletes to recognize the hardest working athlete in the year's competition.
Rolling Thunder/Grip
Felix won the inaugural 2008 Rolling Thunder World Championships which took place during the 2008 Fortissimus contest in Canada. He also set a new world record with a lift of 301 lb.
In June 2009, Felix successfully defended his Rolling Thunder World Championships title.
Felix won the inaugural 2011 Vice Grip Viking Challenge which took place on 29–30 January at the LA Fitexpo.
Felix retained his Vice Grip title by winning the 2012 Vice Grip Viking Challenge. He also set a world record in the Captains of Crush "COC" Silver Bullet event (holding a suspended weight from within the handles of a Captains of Crush no. 3 gripper) with a time of 43.25 seconds.
Felix set a new Rolling Thunder world record at the 2012 Bodypower Expo in Birmingham, England with a lift of , more than 20 lbs. heavier than his previous world record of .
Felix set a new world record in the Hercules Hold event at Giants live Manchester 2019 with a time of 87.52 seconds.
Felix set a new world record in the Dinnie Stone hold at the 2020 Arnold Strongman Classic with a time of 31.40 seconds.
Personal recordsdone in the gym Squat –
Bench press –
Deadlift (without wrist straps) – done in competition Equipped Deadlift – 420kg
Strongmandone in official Strongman competition''
Hummer Tire Deadlift (with straps) – (Arnold Strongman Classic 2013)
Hercules Hold – 92.37 seconds (World Record, Europe's Strongest Man 2020)
Silver Dollar Deadlift (no deadlift suit) – (UK's Strongest Man 2021)
References
1966 births
English strength athletes
Grenadian strength athletes
English sportsmen
Grenadian sportsmen
People from Great Harwood
Living people
Grenadian emigrants to England
Grenadian male athletes
|
```javascript
/*
* bootstrap-table - v1.12.1 - 2018-03-12
* path_to_url
*/
!function(a){"use strict";var b=function(b,c){function d(b,f){if(Object(b)!==b)e[f]=b;else if(a.isArray(b))for(var g=0,h=b.length;h>g;g++)d(b[g],f?f+c.options.flatSeparator+g:""+g),0==h&&(e[f]=[]);else{var i=!0;for(var j in b)i=!1,d(b[j],f?f+c.options.flatSeparator+j:j);i&&(e[f]={})}}var e={};return d(b,""),e},c=function(c,d){var e=[];return a.each(a.isArray(c)?c:[c],function(a,c){e.push(b(c,d))}),e};a.extend(a.fn.bootstrapTable.defaults,{flat:!1,flatSeparator:"."});var d=a.fn.bootstrapTable.Constructor,e=d.prototype.initData;d.prototype.initData=function(a,b){this.options.flat&&(a=c(a?a:this.options.data,this)),e.apply(this,[a,b])}}(jQuery);
```
|
The 1724 Taunton by-election to the Parliament of Great Britain was held on 18 January 1724 in Taunton, Somerset, following the death of the incumbent, John Trenchard. The by-election was contested by Abraham Elton, George Deane, William Molyneux and Griffith Pugh. Elton, a Whig who had been a late entrant to the election won, and despite a petition from Deane, was returned as the Member of Parliament for Taunton.
Background
During the 1722 British general election, two Whigs were elected for the Parliamentary constituency of Taunton, John Trenchard and James Smith. Their Tory opponent petitioned Parliament against their return, but the petition was rejected. Trenchard died on 16 December 1723, leaving a vacancy. George Deane, who had been one of the losing Tories in 1722, stood once again, and was joined by William Molyneux, a secretary to the Prince of Wales and Griffith Pugh, of Covent Garden. Then, two days before the election, Abraham Elton revealed himself as a candidate for the Whiggish interest.
Result
The election was held on 18 January 1724. Two separate returns were made; the mayor declared Elton to have been elected, but the "constables and bailiffs, and several of the inhabitants" suggested that Deane had won. The High Sheriff of Somerset, Walter Robinson, accepted the decision of the mayor, who acted as the returning officer for elections, and Elton was duly elected as the second member for Taunton.
Aftermath
Deane lodged a petition against the result, which was heard by a committee, and dismissed by a vote of 151 to 104, therefore upholding the election of Elton to parliament. Elton only served Taunton until the general election, in 1727, when he contested the seat vacated by his father in Bristol.
References
1724 in England
1724 in politics
By-elections to the Parliament of Great Britain
18th century in Somerset
By-elections to the Parliament of the United Kingdom in Somerset constituencies
History of Taunton
|
Young Sinatra is the second mixtape by American rapper Logic. It was released on September 19, 2011, by Visionary. It has been downloaded over 750,000 times on DatPiff since its release. It was followed by Young Sinatra: Undeniable, Young Sinatra: Welcome to Forever and YSIV. The album cover features a mugshot of musician and singer Frank Sinatra at the age of 20.
Logic samples several of Frank Sinatra’s songs throughout the album.
Background
Logic's Mixtape Young Sinatra is the first installment of four in the series and is titled after his alter ego which is based on one of his favorite singers Frank Sinatra. Since it couldn't be released on major platforms due to the inability to get the samples cleared, Logic released it to datpiff.com, a site known for having some of the best mixtapes released. There the mixtape received over 750,000 downloads since its initial release. On this mixtape he samples Frank Sinatra's song It Was Very Good Year on the record One. The song is now on all platforms as he was able to get the sample cleared in 2021. Logic published a Music Videos for his songs All I Do, Mind of Logic, Live on Air, Young Sinatra II, and Just Another Day. The music videos have acquired 73,628,002 combined views.
Production
The mixtape was produced by Logic, Black Diamond, 6ix, C Dot Castro, OB, Baum Beats, Inspired Mindz, Charli Brown Beatz, Project Marvel, and Sunny Norway.
Track listing
Reviews
One review on Albumoftheyear.org said "Definitely better than his previous ''Young, Broke & Infamous'' mixtape by and being way more cohesive and not all over the place. The production is much better and interesting with the BoomBap style production being here fucking addictive asf, the instrumental choices are great to the hear here." Another Review this one coming from Rateyourmusic.com said "This and Undeniable are in my opinion Logic's best 2 projects, around this time it truly felt like Logic had no filler bars and could just rap for hours at a time and still have great lines up until the finish and that's what I feel this mixtape and Undeniable are, Logic shortened his career by making these as good as they are." Lastly a review from Sputnikmusic.com said this about the project " Logic’s first efforts- mainly the Young Sinatra mixtapes and the original Psychological Logic tape- showcase minimal development in terms of sound, but the utmost expansion in confidence and prowess. This single-minded approach by the young rapper has undoubtedly produced a large number of tracks focusing on the achievement of his goal, but it has also created a metric by which his progress can be monitored."
References
External links
Official site
Albumoftheyear.org
Rateyourmusic.com
Spunikmusic.com
Logic (rapper) albums
2011 mixtape albums
|
```kotlin
package com.tamsiree.rxui.view.wavesidebar.adapter
import androidx.recyclerview.widget.RecyclerView
interface OnItemLongClickListener {
fun onItemLongClick(vh: RecyclerView.ViewHolder?, position: Int)
}
```
|
Leslie Peter Wilkinson (born 9 May 1969 in Liverpool) in an English bass player and singer-songwriter, formerly of Shack, Cast, and Echo & the Bunnymen.
He is currently concentrating on his Aviator project and has recorded and released an album with Michael Blyth as Michael Blyth and the Wild Braid, getting 4/5 star reviews in Uncut/Mojo/Maverick and Classic Rock.
Biography
Although having taught himself to play bass at an early age by listening to new wave bands such as The Stranglers and Siouxsie and the Banshees, Wilkinson took an interest in jazz and went on to tour the jazz circuit across the north west of England and North Wales. He gained a college diploma in the genre before deciding that he would never be able to move out of the small clubs he was already playing whilst playing jazz.
In 1990, Wilkinson joined Shack with whom he worked on the album Waterpistol. The album however would not be released until 1995, due to problems with the loss of the master tapes and the original record label folding leading to the band splitting up.
In 1992, he co-founded Cast with former La's bassist John Power whom fronted the band.
Following the band's split in 2001, Wilkinson released a solo album in October 2002 Huxley Pig Part 1 under the guise of Aviator. He also began working as a session musician, playing with artists including Ian McCulloch, Echo & the Bunnymen, Canadian songwriter/vocalist Simon Wilcox and The Hours with whom he took on lead guitar duties.
In 2005, Wilkinson rejoined the reformed Shack, who released two albums on Noel Gallagher's record label, Sour Mash.
Wilkinson also composes and performs music for TV commercials.
In 2010, Wilkinson re-joined the reformed Cast for a UK tour in November 2010. The band went on to release the album Troubled Times in 2012 with drummer Steve Pilgrim replacing Keith O'Neill who was too busy tour managing to participate. Following an abrupt departure from a tour in December 2014, Wilkinson confirmed in March 2015 that he had left the band and wouldn't be working on their forthcoming album or touring with the band,
Wilkinson released the long delayed Aviator follow up album Huxley Pig, Part 2 in 2012 and follow up single Desolation Peaks on limited edition 7" via Eighties Vinyl Records in 2013. He released the third Aviator album No Friend Of Mind in August 2015 on his own label AV8.
Associated acts
Shack (1990–1991, 2005–present)
Cast (1992–2001, 2010–2014)
Aviator (2002–present)
Echo & the Bunnymen (2001–2005)
The Hours (2006–2007)
Michael Blyth and the Wild Braid (2017–present)
Discography
Shack – Waterpistol (1995)
Cast – All Change (1995)
Cast – Mother Nature Calls (1997)
Cast – Magic Hour (1999)
Cast – Beetroot (2001)
Aviator – Huxley Pig, Part 1 (2002)
Ian McCulloch – Slideling (2003)
Echo & the Bunnymen – Siberia (2005)
Shack – ...The Corner of Miles & Gil (2006)
Simon Wilcox – Charm and the Strange (2007)
Baltic Fleet – Baltic Fleet (2008)
Cast – Troubled Times (2011)
Aviator – Huxley Pig, Part 2 (2012)
Aviator – By the By: Unreleased Sessions 2002–2012 (2013)
Michael Head & the Red Elastic Band – Artorius Revisisted (2013)
Aviator – No Friend Of Mind (2015)
Aviator – The Strawberry Field Sessions (2016)
Aviator – OMNI (2018)
David Boone – A Bubble to Burst (2018)
Michael Blyth and the Wild Braid – Indigo Train (2018)
Aviator – AV8OR (2022)
References
External links
1969 births
Living people
English rock bass guitarists
Male bass guitarists
Musicians from Liverpool
Cast (band) members
Echo & the Bunnymen members
Shack (band) members
Britpop musicians
|
```makefile
################################################################################
#
# ti-utils
#
################################################################################
TI_UTILS_VERSION = 06dbdb2727354b5f3ad7c723897f40051fddee49
TI_UTILS_SITE = $(call github,gxk,ti-utils,$(TI_UTILS_VERSION))
TI_UTILS_DEPENDENCIES = libnl
TI_UTILS_LICENSE = BSD-3c
TI_UTILS_LICENSE_FILES = COPYING
define TI_UTILS_BUILD_CMDS
$(MAKE1) NFSROOT="$(STAGING_DIR)" \
CC="$(TARGET_CC) $(TARGET_CFLAGS) $(TARGET_LDFLAGS) -I$(STAGING_DIR)/usr/include/libnl3" \
LIBS="-lnl-3 -lnl-genl-3 -lpthread -lm" -C $(@D) all
endef
define TI_UTILS_INSTALL_TARGET_CMDS
$(INSTALL) -m 0755 -D $(@D)/calibrator \
$(TARGET_DIR)/usr/bin/calibrator
$(INSTALL) -m 0755 -D $(@D)/scripts/go.sh \
$(TARGET_DIR)/usr/share/ti-utils/scripts/go.sh
cp -r $(@D)/ini_files $(TARGET_DIR)/usr/share/ti-utils
endef
$(eval $(generic-package))
```
|
```objective-c
/*
* This file is part of FFmpeg.
*
* FFmpeg is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
*
* FFmpeg is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
*
* You should have received a copy of the GNU Lesser General Public
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef AVRESAMPLE_AARCH64_ASM_OFFSETS_H
#define AVRESAMPLE_AARCH64_ASM_OFFSETS_H
/* struct ResampleContext */
#define FILTER_BANK 0x10
#define FILTER_LENGTH 0x18
#define PHASE_SHIFT 0x34
#define PHASE_MASK (PHASE_SHIFT + 0x04) // loaded as pair
#endif /* AVRESAMPLE_AARCH64_ASM_OFFSETS_H */
```
|
```objective-c
//
// LLGIFDisplayController.h
// LLWeChat
//
// Created by GYJZH on 06/11/2016.
//
#import <UIKit/UIKit.h>
#import "LLMessageModel.h"
@interface LLGIFDisplayController : UIViewController
@property (nonatomic) LLMessageModel *messageModel;
@end
```
|
James Moir (1900 – 11 February 1961) was a soccer player who played as a defender for Toronto Ulster United. Born in Scotland, he played for Canada.
Career
Moir was born in Edinburgh, Scotland, and moved to Toronto, Canada in 1913. He played with Linfield Rovers junior team, and later with Toronto All Scots. He played with Toronto Ulster United in the Inter-City League and later in the National Soccer League. Throughout his tenure with Toronto he would secure the Challenge Trophy in 1925, and was named the tournament's MVP. In 1932, he participated in the NSL Championship final where Toronto defeated Montreal Carsteel for the title.
He died on February 11, 1961, in Toronto from coronary thrombosis. In 2017, he was inducted into the Canada Soccer Hall of Fame.
International career
Moir made his debut for the Canada men's national soccer team on November 8, 1925, against the United States in a friendly match.
References
External links
/ Canada Soccer Hall of Fame
1900 births
1961 deaths
Canada men's international soccer players
Canadian men's soccer players
Toronto Ulster United players
Canadian National Soccer League players
Footballers from Edinburgh
Soccer players from Toronto
British emigrants to Canada
Canada Soccer Hall of Fame inductees
Men's association football forwards
|
The United Nations Educational, Scientific and Cultural Organization (UNESCO) World Heritage Sites are places of importance to cultural or natural heritage as described in the UNESCO World Heritage Convention, established in 1972. Mauritania ratified the convention on 2 March 1981, making its historical sites eligible for inclusion on the list.
World Heritage Sites
UNESCO lists sites under ten criteria; each entry must meet at least one of the criteria. Criteria i through vi are cultural, and vii through x are natural.
Tentative list
In addition to sites inscribed on the World Heritage list, member states can maintain a list of tentative sites that they may consider for nomination. Nominations for the World Heritage list are only accepted if the site was previously listed on the tentative list. , Mauretania recorded 3 sites on its tentative list.
Intangible cultural heritage
Mauritania has one item in the UNESCO-List of Intangible Cultural Heritage in Need of Urgent Safeguarding: The Moorish epic T'heydinn. The epic encompasses dozens of poems propounding ancestral values underpinning the way of life of the Moorish community in Mauritania, and constitutes a literary and artistic manifestation of the Hassaniya language.
References
World Heritage Sites in Mauritania
World Heritage Sites
Mauritania
Mauritanian culture
|
Lake Ubinskoye () is a freshwater lake located in the Baraba steppe in Novosibirsk Oblast, Russia, where it is divided between Ubinsky District in the west and Kargatsky District in the east. The name of the lake derives from Siberian Tatar ubu, meaning swamp or marsh.
During spring melt Lake Ubinskoye covers a maximum area of and is deep; during periods of low water it is only deep, and in October 2013 it was estimated from aerial imagery to cover . The lake drains an area of . Lake Ubinskoye is mainly fed by melting snow and usually has no outlet, but in the spring of some years it overflows into the Ubinke River, a tributary of the Om River.
Lake Ubinskoye is an oval-shaped lake with gently sloping banks. The lake bottom consists of clayey sand covered by a thick layer of gray fine-grained silt. There are several islands in the lake, the largest of which is called Medyakovsky. The western part of the Ubinskoye basin also contains a number of other small lakes.
Lake Ubinskoye freezes over from November to late May. The ice on the lake is thick. In summer the water warms up to . The temperature is uniform throughout the water column due to good mixing. The water pH is between 7.6 and 9.0. Ubinskoye is a mesotrophic lake whose plankton is dominated by green and blue-green algae.
The shores of the lake are overgrown with reeds and sedges. In the mid-20th century Lake Ubinskoye was well known for its abundance of fish: bream (introduced in 1929), roach, pike, ide, carp, and peled were exploited commercially. Fish stocks crashed in the 1990s, likely due to the lowering of the water level; currently only small crucian carp remain. Attempts to restock the lake have failed, but a recent increase in water levels gives hope for future efforts. The lake and its surrounding wetlands continue to host a great variety of bird life.
Lake Ubinskoye is surrounded by several villages, the largest of which is Chernyy Mys on the north shore. According to legend, Kuchum, the last Khan of Sibir, flooded his treasure in the lake while fleeing from the Russians.
See also
Relict Lime Grove (Novosibirsk Oblast)
References
Lakes of Novosibirsk Oblast
Endorheic lakes of Asia
|
Teakettle Junction is a road junction in Inyo County, California. It lies at an elevation of in Death Valley near the Racetrack Playa and Ubehebe Crater.
At the junction where the unimproved road from Ubehebe Crater meets roads to the Racetrack Playa and Hunter Mountain, there is a sign reading "Teakettle Junction." While the origin of the name is unknown, it has become a tradition for visitors to attach teakettles to the sign with messages written on them. National Park Service rangers will sometimes remove a number of teakettles when there are too many.
The rock at the junction includes the bedrock sandstone of the Eureka Quartzite strata.
The quickest way to get to Tea Kettle Junction is to follow Scott's Castle Road from Stovepipe Wells. Turn left to Ubehebe Crater road at Grapevine Ranger Station and follow directions to Ubehebe Crater Road. The road is paved until this point. Then follow directions for Racetrack Playa. Tea Kettle Junction is about 20miles from here, and most of the travel will be through washboard. Travellers carry spare tires and extra gasoline on this journey as it is a less frequently travelled.
See also
Places of interest in the Death Valley area
References
Death Valley
Tourist attractions in Inyo County, California
Road junctions in the United States
|
Lakes on Post Oak is a commercial complex located in Uptown Houston, Texas, United States.
The complex includes the 19-story 3000 Post Oak Boulevard, the 22-story 3040 Post Oak Boulevard, and the 17-story 3050 Post Oak Boulevard. Each building has a dedicated parking garage. Together the buildings, on a site, have of Class A office space.
History
Hines Interests Limited Partnership developed Lakes on Post Oak as an integrated office project between 1979 and 1981. The 3040 Post Oak Boulevard building opened in 1982. The buildings were originally owned by Hines.
In 1997 Cottonwood Partners, a Dallas-based company, bought a portion of Lakes on Post Oak, consisting of 3000 Post Oak Boulevard and 3050 Post Oak Boulevard In 1997 the combined value of all of the buildings in Lakes of Post Oak were between $138 million to $150 million ($110–120 per square foot). Logan Brown, an office broker of Grubb & Ellis, said that the complex's "unique views of the lake, proximity to the Galleria and the fact that the lakes have become a gathering place during the day and in the evenings" make the complex "the only one in Houston that is widely appealing to office and non-office users."
Before 2002, 3040 Post Oak Boulevard was owned by Nippon Life. In 2002 Koger Equity, Inc. acquired the entire Lakes on Post Oak project for $102 million ($85 per square foot) from Cottonwood and Nippon Life, reunifying the complex. Thomas Crocker, the Chief Executive Officer of Koger Equity, said Its 'suburban in-fill' characteristics combined with the fact that the properties were purchased at a significant discount to replacement cost integrates perfectly with our long-term investment strategy." As of 2002 the Lakes on Post Oak complex was 75% occupied. In 2003 Koger announced that Trammell Crow would manage and lease units in the complex.
Buildings
3000 Post Oak Boulevard
3000 Post Oak has about of space. In 1997 3000 Post Oak Boulevard was 100% occupied and housed Bechtel.
3040 Post Oak Boulevard
3040 Post Oak has about of space. In 1997 3040 Post Oak Boulevard was 95% occupied. The Consulate-General of Angola is in Suite 780. In 2009 Opicoil Houston renewed and expanded its lease at 3040 Post Oak Boulevard.
3050 Post Oak Boulevard
3050 Post Oak has about of space. In 1997 3050 Post Oak Boulevard was 97% occupied. In 2009 Galway Group renewed and expanded its lease in 3050 Post Oak Boulevard. The Consulate-General of Argentina was formerly located in Suite 1625 - As of June 2, 2009 it is located in a different facility in Uptown.
Gallery
See also
List of tallest buildings in Houston
List of tallest buildings in Texas
References
External links
Lakes on Post Oak
Office buildings in Houston
Nippon Life
|
```objective-c
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
* Authors: Rolf Bjarne Kvinge
*
*
*/
#ifndef __TRAMPOLINES_H__
#define __TRAMPOLINES_H__
#ifdef __cplusplus
extern "C" {
#endif
// Must be kept in sync with the same enum in NSObject2.cs
enum XamarinGCHandleFlags : uint32_t {
XamarinGCHandleFlags_None = 0,
XamarinGCHandleFlags_WeakGCHandle = 1,
XamarinGCHandleFlags_HasManagedRef = 2,
XamarinGCHandleFlags_InitialSet = 4,
};
void * xamarin_trampoline (id self, SEL sel, ...);
void xamarin_stret_trampoline (void *buffer, id self, SEL sel, ...);
float xamarin_fpret_single_trampoline (id self, SEL sel, ...);
double xamarin_fpret_double_trampoline (id self, SEL sel, ...);
void xamarin_release_trampoline (id self, SEL sel);
void xamarin_calayer_release_trampoline (id self, SEL sel);
id xamarin_retain_trampoline (id self, SEL sel);
void xamarin_dealloc_trampoline (id self, SEL sel);
void * xamarin_static_trampoline (id self, SEL sel, ...);
void * xamarin_ctor_trampoline (id self, SEL sel, ...);
void xamarin_x86_double_abi_stret_trampoline ();
float xamarin_static_fpret_single_trampoline (id self, SEL sel, ...);
double xamarin_static_fpret_double_trampoline (id self, SEL sel, ...);
void xamarin_static_stret_trampoline (void *buffer, id self, SEL sel, ...);
void xamarin_static_x86_double_abi_stret_trampoline ();
long long xamarin_longret_trampoline (id self, SEL sel, ...);
long long xamarin_static_longret_trampoline (id self, SEL sel, ...);
id xamarin_copyWithZone_trampoline1 (id self, SEL sel, NSZone *zone);
id xamarin_copyWithZone_trampoline2 (id self, SEL sel, NSZone *zone);
GCHandle xamarin_get_gchandle_trampoline (id self, SEL sel);
bool xamarin_set_gchandle_trampoline (id self, SEL sel, GCHandle gc_handle, enum XamarinGCHandleFlags flags);
enum XamarinGCHandleFlags xamarin_get_flags_trampoline (id self, SEL sel);
void xamarin_set_flags_trampoline (id self, SEL sel, enum XamarinGCHandleFlags flags);
int xamarin_get_frame_length (id self, SEL sel);
bool xamarin_collapse_struct_name (const char *type, char struct_name[], int max_char, GCHandle *exception_gchandle);
GCHandle xamarin_create_mt_exception (char *msg);
size_t xamarin_get_primitive_size (char type);
enum ArgumentSemantic /* Xcode 4.4 doesn't like this ': int' */ {
ArgumentSemanticNone = -1,
ArgumentSemanticAssign = 0,
ArgumentSemanticCopy = 1,
ArgumentSemanticRetain = 2,
ArgumentSemanticMask = ArgumentSemanticAssign | ArgumentSemanticCopy | ArgumentSemanticRetain,
ArgumentSemanticRetainReturnValue = 1 << 10,
ArgumentSemanticCategoryInstance = 1 << 11,
};
/* Conversion functions */
// The xamarin_id_to_managed_func and xamarin_managed_to_id_func typedefs
// represents functions to convert to/from id and managed types.
//
// The `value` parameter is the value to convert.
//
// The `ptr` parameter must not be passed if the managed type is a class. If
// the managed type is a value type, `ptr` is optional, and if passed the
// resulting value will be stored here. If NULL, memory is allocated and
// returned, and the return value must be freed using `xamarin_free`.
//
// The `managedType` parameter is the managed type to convert to.
//
// The `context` parameter is a conversion-specific value that may or may not
// be provided:
// * Smart enum conversions: The `context` parameter represents a token ref to
// the conversion method. The static registrar bakes those token refs in to
// the generated code, thus avoiding the need for finding the conversion
// method at runtime).
// * Other conversions: The `context` parameter is not used in other
// conversions at the moment.
//
// The `exception_gchandle` parameter is required, and will contain a GCHandle
// to any exceptions that occur.
//
// The return value is:
// * xamarin_id_to_managed_func: a pointer to the resulting value. If
// `ptr` was passed, this value is also returned, otherwise newly allocated
// memory is returned (which must be freed with `xamarin_free`). If an
// exception occurs, 'ptr' is returned (and no memory allocated).
// If the return value is a MonoObject*, then it's a retained MonoObject*.
// * xamarin_managed_to_id_func: the resulting Objective-C object.
typedef void * (*xamarin_id_to_managed_func) (id value, void *ptr, MonoClass *managedType, void *context, GCHandle *exception_gchandle);
typedef id (*xamarin_managed_to_id_func) (MonoObject *value, void *context, GCHandle *exception_gchandle);
id xamarin_generate_conversion_to_native (MonoObject *value, MonoType *inputType, MonoType *outputType, MonoMethod *method, void *context, GCHandle *exception_gchandle);
void * xamarin_generate_conversion_to_managed (id value, MonoType *inputType, MonoType *outputType, MonoMethod *method, GCHandle *exception_gchandle, void *context, /*SList*/ void **free_list, /*SList*/ void **release_list_ptr);
NSNumber * xamarin_convert_managed_to_nsnumber (MonoObject *value, MonoClass *managedType, MonoMethod *method, void *context, GCHandle *exception_gchandle);
NSValue * xamarin_convert_managed_to_nsvalue (MonoObject *value, MonoClass *managedType, MonoMethod *method, void *context, GCHandle *exception_gchandle);
NSString * xamarin_convert_managed_to_nsstring (MonoObject *value, MonoType *managedType, MonoType *nativeType, MonoMethod *method, GCHandle *exception_gchandle);
MonoObject * xamarin_convert_nsnumber_to_managed (NSNumber *value, MonoType *nativeType, MonoType *managedType, MonoMethod *method, GCHandle *exception_gchandle);
MonoObject * xamarin_convert_nsvalue_to_managed (NSValue *value, MonoType *nativeType, MonoType *managedType, MonoMethod *method, GCHandle *exception_gchandle);
MonoObject * xamarin_convert_nsstring_to_managed (NSString *value, MonoType *nativeType, MonoType *managedType, MonoMethod *method, GCHandle *exception_gchandle);
GCHandle xamarin_create_bindas_exception (MonoType *inputType, MonoType *outputType, MonoMethod *method);
GCHandle xamarin_get_exception_for_parameter (int code, GCHandle inner_exception_gchandle, const char *reason, SEL sel, MonoMethod *method, MonoType *p, int i, bool to_managed);
xamarin_id_to_managed_func xamarin_get_nsnumber_to_managed_func (MonoClass *managedType, MonoMethod *method, GCHandle *exception_gchandle);
xamarin_managed_to_id_func xamarin_get_managed_to_nsnumber_func (MonoClass *managedType, MonoMethod *method, GCHandle *exception_gchandle);
xamarin_id_to_managed_func xamarin_get_nsvalue_to_managed_func (MonoClass *managedType, MonoMethod *method, GCHandle *exception_gchandle);
xamarin_managed_to_id_func xamarin_get_managed_to_nsvalue_func (MonoClass *managedType, MonoMethod *method, GCHandle *exception_gchandle);
xamarin_id_to_managed_func xamarin_get_nsstring_to_smart_enum_func (MonoClass *managedType, MonoMethod *method, GCHandle *exception_gchandle);
xamarin_managed_to_id_func xamarin_get_smart_enum_to_nsstring_func (MonoClass *managedType, MonoMethod *method, GCHandle *exception_gchandle);
NSArray * xamarin_convert_managed_to_nsarray_with_func (MonoArray *array, xamarin_managed_to_id_func convert, void *context, GCHandle *exception_gchandle);
MonoArray * xamarin_convert_nsarray_to_managed_with_func (NSArray *array, MonoClass *managedElementType, xamarin_id_to_managed_func convert, void *context, GCHandle *exception_gchandle);
void * xamarin_nsstring_to_smart_enum (id value, void *ptr, MonoClass *managedType, void *context, GCHandle *exception_gchandle);
void * xamarin_smart_enum_to_nsstring (MonoObject *value, void *context /* token ref */, GCHandle *exception_gchandle);
// Returns a pointer to the value type, which must be freed using xamarin_free.
void *xamarin_nsnumber_to_bool (NSNumber *number, void *ptr, MonoClass *managedType, void *context, GCHandle *exception_gchandle);
void *xamarin_nsnumber_to_sbyte (NSNumber *number, void *ptr, MonoClass *managedType, void *context, GCHandle *exception_gchandle);
void *xamarin_nsnumber_to_byte (NSNumber *number, void *ptr, MonoClass *managedType, void *context, GCHandle *exception_gchandle);
void *xamarin_nsnumber_to_short (NSNumber *number, void *ptr, MonoClass *managedType, void *context, GCHandle *exception_gchandle);
void *xamarin_nsnumber_to_ushort (NSNumber *number, void *ptr, MonoClass *managedType, void *context, GCHandle *exception_gchandle);
void *xamarin_nsnumber_to_int (NSNumber *number, void *ptr, MonoClass *managedType, void *context, GCHandle *exception_gchandle);
void *xamarin_nsnumber_to_uint (NSNumber *number, void *ptr, MonoClass *managedType, void *context, GCHandle *exception_gchandle);
void *xamarin_nsnumber_to_long (NSNumber *number, void *ptr, MonoClass *managedType, void *context, GCHandle *exception_gchandle);
void *xamarin_nsnumber_to_ulong (NSNumber *number, void *ptr, MonoClass *managedType, void *context, GCHandle *exception_gchandle);
void *xamarin_nsnumber_to_nint (NSNumber *number, void *ptr, MonoClass *managedType, void *context, GCHandle *exception_gchandle);
void *xamarin_nsnumber_to_nuint (NSNumber *number, void *ptr, MonoClass *managedType, void *context, GCHandle *exception_gchandle);
void *xamarin_nsnumber_to_float (NSNumber *number, void *ptr, MonoClass *managedType, void *context, GCHandle *exception_gchandle);
void *xamarin_nsnumber_to_double (NSNumber *number, void *ptr, MonoClass *managedType, void *context, GCHandle *exception_gchandle);
void *xamarin_nsnumber_to_nfloat (NSNumber *number, void *ptr, MonoClass *managedType, void *context, GCHandle *exception_gchandle);
// Returns a pointer to the value type, which must be freed using xamarin_free
void *xamarin_nsvalue_to_nsrange (NSValue *value, void *ptr, MonoClass *managedType, void *context, GCHandle *exception_gchandle);
void *xamarin_nsvalue_to_cgaffinetransform (NSValue *value, void *ptr, MonoClass *managedType, void *context, GCHandle *exception_gchandle);
void *xamarin_nsvalue_to_cgpoint (NSValue *value, void *ptr, MonoClass *managedType, void *context, GCHandle *exception_gchandle);
void *xamarin_nsvalue_to_cgrect (NSValue *value, void *ptr, MonoClass *managedType, void *context, GCHandle *exception_gchandle);
void *xamarin_nsvalue_to_cgsize (NSValue *value, void *ptr, MonoClass *managedType, void *context, GCHandle *exception_gchandle);
void *xamarin_nsvalue_to_cgvector (NSValue *value, void *ptr, MonoClass *managedType, void *context, GCHandle *exception_gchandle);
void *xamarin_nsvalue_to_catransform3d (NSValue *value, void *ptr, MonoClass *managedType, void *context, GCHandle *exception_gchandle);
void *xamarin_nsvalue_to_cllocationcoordinate2d (NSValue *value, void *ptr, MonoClass *managedType, void *context, GCHandle *exception_gchandle);
void *xamarin_nsvalue_to_cmtime (NSValue *value, void *ptr, MonoClass *managedType, void *context, GCHandle *exception_gchandle);
void *xamarin_nsvalue_to_cmtimemapping (NSValue *value, void *ptr, MonoClass *managedType, void *context, GCHandle *exception_gchandle);
void *xamarin_nsvalue_to_cmtimerange (NSValue *value, void *ptr, MonoClass *managedType, void *context, GCHandle *exception_gchandle);
void *xamarin_nsvalue_to_cmvideodimensions (NSValue *value, void *ptr, MonoClass *managedType, void *context, GCHandle *exception_gchandle);
void *xamarin_nsvalue_to_mkcoordinatespan (NSValue *value, void *ptr, MonoClass *managedType, void *context, GCHandle *exception_gchandle);
void *xamarin_nsvalue_to_scnmatrix4 (NSValue *value, void *ptr, MonoClass *managedType, void *context, GCHandle *exception_gchandle);
void *xamarin_nsvalue_to_scnvector3 (NSValue *value, void *ptr, MonoClass *managedType, void *context, GCHandle *exception_gchandle);
void *xamarin_nsvalue_to_scnvector4 (NSValue *value, void *ptr, MonoClass *managedType, void *context, GCHandle *exception_gchandle);
void *xamarin_nsvalue_to_uiedgeinsets (NSValue *value, void *ptr, MonoClass *managedType, void *context, GCHandle *exception_gchandle);
void *xamarin_nsvalue_to_uioffset (NSValue *value, void *ptr, MonoClass *managedType, void *context, GCHandle *exception_gchandle);
void *xamarin_nsvalue_to_nsdirectionaledgeinsets(NSValue *value, void *ptr, MonoClass *managedType, void *context, GCHandle *exception_gchandle);
id xamarin_bool_to_nsnumber (MonoObject *value, void *context, GCHandle *exception_gchandle);
id xamarin_sbyte_to_nsnumber (MonoObject *value, void *context, GCHandle *exception_gchandle);
id xamarin_byte_to_nsnumber (MonoObject *value, void *context, GCHandle *exception_gchandle);
id xamarin_short_to_nsnumber (MonoObject *value, void *context, GCHandle *exception_gchandle);
id xamarin_ushort_to_nsnumber (MonoObject *value, void *context, GCHandle *exception_gchandle);
id xamarin_int_to_nsnumber (MonoObject *value, void *context, GCHandle *exception_gchandle);
id xamarin_uint_to_nsnumber (MonoObject *value, void *context, GCHandle *exception_gchandle);
id xamarin_long_to_nsnumber (MonoObject *value, void *context, GCHandle *exception_gchandle);
id xamarin_ulong_to_nsnumber (MonoObject *value, void *context, GCHandle *exception_gchandle);
id xamarin_nint_to_nsnumber (MonoObject *value, void *context, GCHandle *exception_gchandle);
id xamarin_nuint_to_nsnumber (MonoObject *value, void *context, GCHandle *exception_gchandle);
id xamarin_float_to_nsnumber (MonoObject *value, void *context, GCHandle *exception_gchandle);
id xamarin_double_to_nsnumber (MonoObject *value, void *context, GCHandle *exception_gchandle);
id xamarin_nfloat_to_nsnumber (MonoObject *value, void *context, GCHandle *exception_gchandle);
id xamarin_nfloat_to_nsnumber (MonoObject *value, void *context, GCHandle *exception_gchandle);
id xamarin_nsrange_to_nsvalue (MonoObject *value, void *context, GCHandle *exception_gchandle);
id xamarin_cgaffinetransform_to_nsvalue (MonoObject *value, void *context, GCHandle *exception_gchandle);
id xamarin_cgpoint_to_nsvalue (MonoObject *value, void *context, GCHandle *exception_gchandle);
id xamarin_cgrect_to_nsvalue (MonoObject *value, void *context, GCHandle *exception_gchandle);
id xamarin_cgsize_to_nsvalue (MonoObject *value, void *context, GCHandle *exception_gchandle);
id xamarin_cgvector_to_nsvalue (MonoObject *value, void *context, GCHandle *exception_gchandle);
id xamarin_catransform3d_to_nsvalue (MonoObject *value, void *context, GCHandle *exception_gchandle);
id xamarin_cllocationcoordinate2d_to_nsvalue (MonoObject *value, void *context, GCHandle *exception_gchandle);
id xamarin_cmtime_to_nsvalue (MonoObject *value, void *context, GCHandle *exception_gchandle);
id xamarin_cmtimemapping_to_nsvalue (MonoObject *value, void *context, GCHandle *exception_gchandle);
id xamarin_cmtimerange_to_nsvalue (MonoObject *value, void *context, GCHandle *exception_gchandle);
id xamarin_cmvideodimensions_to_nsvalue (MonoObject *value, void *context, GCHandle *exception_gchandle);
id xamarin_mkcoordinatespan_to_nsvalue (MonoObject *value, void *context, GCHandle *exception_gchandle);
id xamarin_scnmatrix4_to_nsvalue (MonoObject *value, void *context, GCHandle *exception_gchandle);
id xamarin_scnvector3_to_nsvalue (MonoObject *value, void *context, GCHandle *exception_gchandle);
id xamarin_scnvector4_to_nsvalue (MonoObject *value, void *context, GCHandle *exception_gchandle);
id xamarin_uiedgeinsets_to_nsvalue (MonoObject *value, void *context, GCHandle *exception_gchandle);
id xamarin_uioffset_to_nsvalue (MonoObject *value, void *context, GCHandle *exception_gchandle);
id xamarin_nsdirectionaledgeinsets_to_nsvalue(MonoObject *value, void *context, GCHandle *exception_gchandle);
// These functions can be passed as xamarin_id_to_managed_func/xamarin_managed_to_id_func parameters
id xamarin_convert_string_to_nsstring (MonoObject *obj, void *context, GCHandle *exception_gchandle);
void * xamarin_convert_nsstring_to_string (id value, void *ptr, MonoClass *managedType, void *context, GCHandle *exception_gchandle);
// These are simpler versions of the above string<->nsstring conversion functions.
NSString * xamarin_string_to_nsstring (MonoString *obj, bool retain);
// domain is optional, if NULL the function will call mono_get_domain.
MonoString * xamarin_nsstring_to_string (MonoDomain *domain, NSString *obj);
// Either managed_type or managed_class has to be provided
NSArray * xamarin_managed_array_to_nsarray (MonoArray *array, MonoType *managed_type, MonoClass *managed_class, GCHandle *exception_gchandle);
// Either managed_type or managed_class has to be provided
MonoArray * xamarin_nsarray_to_managed_array (NSArray *array, MonoType *managed_type, MonoClass *managed_class, GCHandle *exception_gchandle);
NSArray * xamarin_managed_string_array_to_nsarray (MonoArray *array, GCHandle *exception_gchandle);
NSArray * xamarin_managed_nsobject_array_to_nsarray (MonoArray *array, GCHandle *exception_gchandle);
NSArray * xamarin_managed_inativeobject_array_to_nsarray (MonoArray *array, GCHandle *exception_gchandle);
MonoArray * xamarin_nsarray_to_managed_string_array (NSArray *array, GCHandle *exception_gchandle);
MonoArray * xamarin_nsarray_to_managed_nsobject_array (NSArray *array, MonoType *array_type, MonoClass *element_class, GCHandle *exception_gchandle);
MonoArray * xamarin_nsarray_to_managed_inativeobject_array (NSArray *array, MonoType *array_type, MonoClass *element_class, GCHandle *exception_gchandle);
MonoArray * xamarin_nsarray_to_managed_inativeobject_array_static (NSArray *array, MonoType *array_type, MonoClass *element_class, uint32_t iface_token_ref, uint32_t implementation_token_ref, GCHandle *exception_gchandle);
void * xamarin_nsobject_to_object (id object, void *ptr, MonoClass *managedType, void *context, GCHandle *exception_gchandle);
id xamarin_object_to_nsobject (MonoObject *object, void *context, GCHandle *exception_gchandle);
id xamarin_inativeobject_to_nsobject (MonoObject *object, void *context, GCHandle *exception_gchandle);
void * xamarin_nsobject_to_inativeobject (id object, void *ptr, MonoClass *managedType, void *context, GCHandle *exception_gchandle);
void * xamarin_nsobject_to_inativeobject_static (id object, void *ptr, MonoClass *managedType, void *context, GCHandle *exception_gchandle);
/* Copied from SGen */
static inline void
mt_dummy_use (void *v) {
#if defined(__GNUC__)
__asm__ volatile ("" : "=r"(v) : "r"(v));
#elif defined(_MSC_VER)
__asm {
mov eax, v;
and eax, eax;
};
#else
#error "Implement mt_dummy_use for your compiler"
#endif
}
#ifdef __cplusplus
} /* extern "C" */
#endif
#endif /* __TRAMPOLINES_H__ */
```
|
```xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "path_to_url">
<plist version="1.0">
<dict>
<key>BuildMachineOSBuild</key>
<string>18A377a</string>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleExecutable</key>
<string>VirtualSMC</string>
<key>CFBundleIdentifier</key>
<string>as.vit9696.VirtualSMC</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>VirtualSMC</string>
<key>CFBundlePackageType</key>
<string>KEXT</string>
<key>CFBundleShortVersionString</key>
<string>1.0.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleSupportedPlatforms</key>
<array>
<string>MacOSX</string>
</array>
<key>CFBundleVersion</key>
<string>1.0.0</string>
<key>DTCompiler</key>
<string>com.apple.compilers.llvm.clang.1_0</string>
<key>DTPlatformBuild</key>
<string>10L232m</string>
<key>DTPlatformVersion</key>
<string>GM</string>
<key>DTSDKBuild</key>
<string>18A361a</string>
<key>DTSDKName</key>
<string>macosx10.14</string>
<key>DTXcode</key>
<string>1000</string>
<key>DTXcodeBuild</key>
<string>10L232m</string>
<key>IOKitPersonalities</key>
<dict>
<key>as.vit9696.VirtualSMC</key>
<dict>
<key>CFBundleIdentifier</key>
<string>as.vit9696.VirtualSMC</string>
<key>IOClass</key>
<string>VirtualSMC</string>
<key>IODeviceMemory</key>
<array>
<array>
<dict>
<key>address</key>
<integer>768</integer>
<key>length</key>
<integer>32</integer>
</dict>
</array>
<array>
<dict>
<key>address</key>
<integer>4277141504</integer>
<key>length</key>
<integer>65536</integer>
</dict>
</array>
</array>
<key>IOInterruptControllers</key>
<array>
<string>io-apic-0</string>
</array>
<key>IOInterruptSpecifiers</key>
<array>
<data>
BgAAAAAAAAA=
</data>
</array>
<key>IOMatchCategory</key>
<string>IOACPIPlatformDevice</string>
<key>IOName</key>
<string>SMC</string>
<key>IOProbeScore</key>
<integer>60000</integer>
<key>IOProviderClass</key>
<string>AppleACPIPlatformExpert</string>
<key>Keystore</key>
<dict>
<key>Generic</key>
<array>
<dict>
<key>attr</key>
<data>
iA==
</data>
<key>comment</key>
<string>Total fan number, this should be put to a plugin</string>
<key>name</key>
<data>
Rk51bQ==
</data>
<key>type</key>
<data>
dWk4IA==
</data>
<key>value</key>
<data>
AA==
</data>
</dict>
<dict>
<key>attr</key>
<data>
gA==
</data>
<key>comment</key>
<string>CPU plimit</string>
<key>name</key>
<data>
TVNUYw==
</data>
<key>type</key>
<data>
dWk4IA==
</data>
<key>value</key>
<data>
AA==
</data>
</dict>
<dict>
<key>attr</key>
<data>
gA==
</data>
<key>comment</key>
<string>FAN plimit (supposedly)</string>
<key>name</key>
<data>
TVNUZg==
</data>
<key>type</key>
<data>
dWk4IA==
</data>
<key>value</key>
<data>
AA==
</data>
</dict>
<dict>
<key>attr</key>
<data>
gA==
</data>
<key>comment</key>
<string>Memory plimit</string>
<key>name</key>
<data>
TVNUbQ==
</data>
<key>type</key>
<data>
dWk4IA==
</data>
<key>value</key>
<data>
AA==
</data>
</dict>
<dict>
<key>attr</key>
<data>
gA==
</data>
<key>comment</key>
<string>This should be 1 on laptops, and is overriden by sensors</string>
<key>name</key>
<data>
QkFUUA==
</data>
<key>type</key>
<data>
ZmxhZw==
</data>
<key>value</key>
<data>
AA==
</data>
</dict>
<dict>
<key>attr</key>
<data>
gA==
</data>
<key>comment</key>
<string>Only MacPros have custom illumination controllers</string>
<key>name</key>
<data>
THNOTQ==
</data>
<key>type</key>
<data>
dWk4IA==
</data>
<key>value</key>
<data>
AA==
</data>
</dict>
</array>
<key>GenericDesktopV1</key>
<array/>
<key>GenericDesktopV2</key>
<array/>
<key>GenericLaptopV1</key>
<array/>
<key>GenericLaptopV2</key>
<array/>
<key>GenericV1</key>
<array>
<dict>
<key>attr</key>
<data>
gA==
</data>
<key>comment</key>
<string>GPU plimit</string>
<key>name</key>
<data>
TVNUZw==
</data>
<key>type</key>
<data>
dWk4IA==
</data>
<key>value</key>
<data>
AA==
</data>
</dict>
</array>
<key>GenericV2</key>
<array>
<dict>
<key>attr</key>
<data>
gA==
</data>
<key>comment</key>
<string>E plimit (???)</string>
<key>name</key>
<data>
TVNUZQ==
</data>
<key>type</key>
<data>
dWk4IA==
</data>
<key>value</key>
<data>
AA==
</data>
</dict>
<dict>
<key>attr</key>
<data>
gA==
</data>
<key>comment</key>
<string>I plimit (???)</string>
<key>name</key>
<data>
TVNUaQ==
</data>
<key>type</key>
<data>
dWk4IA==
</data>
<key>value</key>
<data>
AA==
</data>
</dict>
<dict>
<key>attr</key>
<data>
gA==
</data>
<key>comment</key>
<string>J plimit (???)</string>
<key>name</key>
<data>
TVNUag==
</data>
<key>type</key>
<data>
dWk4IA==
</data>
<key>value</key>
<data>
AA==
</data>
</dict>
</array>
</dict>
<key>ModelInfo</key>
<dict>
<key>GenericV1</key>
<dict>
<key>branch</key>
<data>
ajUyAAAAAAA=
</data>
<key>hwname</key>
<data>
c21jLXBpa2V0b24A
</data>
<key>platform</key>
<data>
ajUyAAAAAAA=
</data>
<key>rev</key>
<data>
AXQPAAAE
</data>
<key>revfb</key>
<data>
AXQPAAAE
</data>
<key>revfu</key>
<data>
AXQPAAAE
</data>
</dict>
<key>GenericV2</key>
<dict>
<key>branch</key>
<data>
ajUyAAAAAAA=
</data>
<key>hwname</key>
<data>
c21jLWh1cm9ucml2ZXIA
</data>
<key>platform</key>
<data>
ajUyAAAAAAA=
</data>
<key>rev</key>
<data>
AigPAAAH
</data>
<key>revfb</key>
<data>
AigPAAAH
</data>
<key>revfu</key>
<data>
AigPAAAH
</data>
</dict>
<key>Mac-27ADBB7B4CEE8E61</key>
<dict>
<key>branch</key>
<data>
ajE2ajE3AAA=
</data>
<key>platform</key>
<data>
ajE3AAAAAAA=
</data>
<key>rev</key>
<data>
AhUPAAAH
</data>
<key>revfb</key>
<data>
AhUPAAAH
</data>
<key>revfu</key>
<data>
AhUPAAAH
</data>
</dict>
<key>Mac-42FD25EABCABB274</key>
<dict>
<key>branch</key>
<data>
ajc4ajc4YW0=
</data>
<key>platform</key>
<data>
ajc4AAAAAAA=
</data>
<key>rev</key>
<data>
AiIPAAAW
</data>
<key>revfb</key>
<data>
AiIPAAAW
</data>
<key>revfu</key>
<data>
AiIPAAAW
</data>
</dict>
<key>Mac-7DF21CB3ED6977E5</key>
<dict>
<key>branch</key>
<data>
ajc4ajc4YW0=
</data>
<key>hwname</key>
<data>
c21jLXBpa2V0b24A
</data>
<key>platform</key>
<data>
ajc4AAAAAAA=
</data>
<key>rev</key>
<data>
AiIPAAAW
</data>
<key>revfb</key>
<data>
AiIPAAAW
</data>
<key>revfu</key>
<data>
AiIPAAAW
</data>
</dict>
</dict>
<key>_STA</key>
<integer>11</integer>
<key>name</key>
<data>
QVBQMDAwMQA=
</data>
</dict>
</dict>
<key>OSBundleCompatibleVersion</key>
<string>1.0</string>
<key>OSBundleLibraries</key>
<dict>
<key>as.vit9696.Lilu</key>
<string>1.2.0</string>
<key>com.apple.iokit.IOACPIFamily</key>
<string>1.0.0d1</string>
<key>com.apple.kpi.bsd</key>
<string>12.0.0</string>
<key>com.apple.kpi.dsep</key>
<string>12.0.0</string>
<key>com.apple.kpi.iokit</key>
<string>12.0.0</string>
<key>com.apple.kpi.libkern</key>
<string>12.0.0</string>
<key>com.apple.kpi.mach</key>
<string>12.0.0</string>
<key>com.apple.kpi.unsupported</key>
<string>12.0.0</string>
</dict>
<key>OSBundleRequired</key>
<string>Root</string>
</dict>
</plist>
```
|
Earl of Effingham, in the County of Surrey, is a title in the Peerage of the United Kingdom, created in 1837 for Kenneth Howard, 11th Baron Howard of Effingham, named after the village of Effingham, Surrey, where heads of the family owned the manor.
This branch of the House of Howard stems from the naval commander and statesman Lord William Howard, senior son of Thomas Howard, 2nd Duke of Norfolk from his second marriage to Agnes Tylney. William served as Lord High Admiral of England, as Lord Chamberlain of the Household and as Lord Privy Seal. In 1554 he was created Baron Howard of Effingham in the Peerage of England after leading the defence of London against Wyatt's rebellion. His son and successor was better known to history as Charles Howard, 1st Earl of Nottingham, after being granted that title in 1596. He was Lord High Admiral from 1585 to 1618 and served as commander-in-chief of the English fleet against the Spanish Armada in 1588. In 1603 his eldest son and heir apparent William Howard (1577–1615), was summoned to the House of Lords through a writ of acceleration in his father's junior title of Baron Howard of Effingham. He predeceased his father.
The titles of the Earl of Nottingham passed to a younger son, the second Earl. He represented Bletchingley, Surrey and Sussex in the House of Commons and served as Lord-Lieutenant of Surrey. He was childless and was succeeded by his half-brother, the third Earl. On his death in 1681 the earldom became extinct.
The barony descended to the most senior male heir, who was a first cousin twice removed, who became the fifth Lord Howard. He was the great-grandson of Sir William Howard (d. 1600), a younger son of the first Baron: this Lord Howard of Effingham served as Governor of Virginia from 1683 to 1692.
His eldest son, the sixth Baron, died childless and was succeeded by his younger brother, the seventh Baron, a prominent military commander. In 1731 he was made Earl of Effingham in the Peerage of Great Britain. His grandson, the third Earl, served under William Pitt the Younger as Master of the Mint from 1784 to 1789 and was Governor of Jamaica from 1789 to 1791. He died childless and was succeeded by his younger brother, the fourth Earl. On his death in 1816 the earldom became extinct.
The barony descended to a third cousin, the eleventh Baron. He was the grandson of Lieutenant-General Thomas Howard, a son of George Howard, younger brother of the fifth Baron. Lord Howard of Effingham was a General in the Army. In 1837 the earldom of Effingham was revived when he was made Earl of Effingham, in the County of Surrey, in the Peerage of the United Kingdom. He was succeeded by his eldest son, the second Earl. He represented Shaftesbury in Parliament as a Whig from 1841 to 1845. The titles descended from father to son until the death of his grandson, the fourth Earl, in 1927. He never married and was succeeded by a first cousin, the fifth Earl, the son of Captain the Hon. Frederick Charles Howard (1840–1893), second son of the second Earl. His eldest son, the sixth Earl, died childless in 1996. He was succeeded by his nephew David, the seventh Earl, who died in 2022, being succeeded by his son, the 8th earl (born 1971), the present holder of the titles.
Another member of this branch of the Howard family was Field Marshal Sir George Howard active in the mid-18th century. He was the son of the aforementioned Lieutenant-General Thomas Howard and the brother of Henry Howard, father of Kenneth Alexander Howard, 1st Earl of Effingham.
The family seat in the 21st century is Readings Farmhouse, near Blackmore End, Essex.
Barons Howard of Effingham (1554)
William Howard, 1st Baron Howard of Effingham (1510–1573)
Charles Howard, 2nd Baron Howard of Effingham (1536–1624) (created Earl of Nottingham in 1596)
Earls of Nottingham (1596)
Charles Howard, 1st Earl of Nottingham, 2nd Baron Howard of Effingham (1536–1624)
William Howard, Lord Howard of Effingham (1577–1615)
Charles Howard, 2nd Earl of Nottingham, 3rd Baron Howard of Effingham (1579–1642)
Charles Howard, 3rd Earl of Nottingham, 4th Baron Howard of Effingham (1610–1681)
Barons Howard of Effingham (1554; reverted)
Francis Howard, 5th Baron Howard of Effingham (1643–1695)
Thomas Howard, 6th Baron Howard of Effingham (1682–1725)
Francis Howard, 7th Baron Howard of Effingham (1683–1743; created Earl of Effingham in 1731)
Earls of Effingham, first creation (1731)
Francis Howard, 1st Earl of Effingham (1683–1743)
Thomas Howard, 2nd Earl of Effingham (1714–1763)
Thomas Howard, 3rd Earl of Effingham (1746–1791)
Richard Howard, 4th Earl of Effingham (1748–1816)
Barons Howard of Effingham (1554; reverted)
Kenneth Alexander Howard, 11th Baron Howard of Effingham (1767–1845; created Earl of Effingham in 1837)
Earls of Effingham, second creation (1837)
Kenneth Alexander Howard, 1st Earl of Effingham (1767–1845)
Henry Howard, 2nd Earl of Effingham (1806–1889)
Henry Howard, 3rd Earl of Effingham (1837–1898)
Henry Alexander Gordon Howard, 4th Earl of Effingham (1866–1927)
Gordon Frederick Henry Charles Howard, 5th Earl of Effingham (1873–1946)
Mowbray Henry Gordon Howard, 6th Earl of Effingham (1905–1996)
David Peter Mowbray Algernon Howard, 7th Earl of Effingham (1939–2022)
Edward Mowbray Nicholas Howard, 8th Earl of Effingham (born 1971)
The heir apparent is the present holder's son Frederick Henry Charles Howard, Lord Howard of Effingham (born 2007).
See also
Howard family
Duke of Norfolk
Earl of Carlisle
Earl of Suffolk (1603 creation)
Earl of Berkshire (1626 creation)
Baron Lanerton
Viscount Fitzalan of Derwent
Baron Howard of Penrith
Baron Howard of Escrick
Baron Stafford (1640 creation)
Baron Howard de Walden
References
Attribution
Kidd, Charles, Williamson, David (editors). Debrett's Peerage and Baronetage (1990 edition). New York: St Martin's Press, 1990,
External links
1731 establishments in Great Britain
1816 disestablishments in the United Kingdom
1837 establishments in the United Kingdom
Extinct earldoms in the Peerage of Great Britain
Earldoms in the Peerage of the United Kingdom
Noble titles created in 1731
Noble titles created in 1837
|
GRO J0422+32 is an X-ray nova and black hole candidate that was discovered by the BATSE instrument on the Compton Gamma Ray Observatory satellite on 5 August 1992.
During outburst, it was observed to be stronger than the Crab Nebula gamma-ray source out to photon energies of about 500 keV.
The mass of the black hole in GRO J0422+32 falls in the range 3.66 to 4.97 solar masses. This is the smallest yet found for any stellar black hole, and near the theoretical upper mass limit (~2.7 ) for a neutron star. Further analysis in 2012 calculated a mass of , which raises questions as to what the object actually is.
It is also known to have a companion M-type main-sequence star, V518 Per, in the constellation Perseus. It has a magnitude of 13.5 in the B spectral band, and 13.2 in the visible band.
See also
List of nearest black holes
References
Stellar black holes
Persei, V518
19920805
M-type main-sequence stars
Perseus (constellation)
|
Ben William Nugent (born 29 November 1992) is an English professional footballer who plays as a defender for Cambodian Premier League club Angkor Tiger.
Career
Cardiff City
Born in Welwyn Garden City, Hertfordshire, Nugent attended Millfield with his sports scholarships before he joined the academy at Championship side Cardiff City in 2007. However, Nugent was released in 2009 by manager Dave Jones. But his youth coach Neal Ardley convinced Jones to keep Nugent while he played for Western Premier side Street. Malky Mackay tipped Nugent to be a future captain at Cardiff City.
His professional debut for Cardiff came on 14 August 2012, in a 2–1 defeat to Northampton Town in the League Cup. His first league game came on 17 November, when he came on to replace Ben Turner against Middlesbrough and was awarded Man of the Match. On 24 November, Nugent made his first league start for the Bluebirds in a 2–1 win at Barnsley, and opened the scoring with his first senior goal. Nugent continued to captain the Development Squad, and on 4 January he signed a new deal until 2016. He then went on to start the next day against Macclesfield Town, which Cardiff lost 2–1, knocking them out of the FA Cup. Nugent continued to be a part of match-day squads throughout his debut season and was a substitute as Cardiff sealed promotion to the Premier League with a 0–0 draw at home against Charlton Athletic on 16 April 2013.
Nugent was named Cardiff City Young Player of Year 2012–13.
Loan spells
Nugent signed for League One side Brentford on 1 August 2013 on loan until 5 January 2014. He had played for Cardiff in a pre-season friendly at Griffin Park two days previously. He made his Brentford debut on 6 August, playing the full 90 minutes in a 3–2 victory over Dagenham & Redbridge in the League Cup. He scored his first goal for the club on 3 September, in a 5–3 victory over Wimbledon in the Football League Trophy, his third appearance. He scored again in the next round, against Peterborough United on 8 October. Nugent made an impact in a 5–0 FA Cup first-round win over Staines Town on 9 November 2013. Having made five appearances for the club, it was announced that Nugent would return to his parent club.
On 13 February 2014, Nugent joined League One side Peterborough United on loan. Nugent made his debut for the club on 14 February 2014, making his first start, in a 0–0 draw against Walsall. Nugent made eleven appearances for the club and returned to his parent club. He was however cup-tied for Peterborough's victory in the 2014 Football League Trophy Final.
On 11 July 2014, Nugent joined Yeovil Town on loan until 4 January 2015. Nugent made his debut for the club on 16 August 2014, making his first start, in a 2–0 loss against Gillingham. Nugent scored his first Yeovil Town goal on 26 December 2014, in a 2–1 loss against Bristol City. A week later, Nugent had his loan spell at Yeovil Town extended until the end of the season. Nugent was then sent off in the 26th minute after elbowing George Waring on 10 January 2015, in a 2–0 loss against Barnsley. After serving a four-match ban, Nugent made his first team return on 7 February 2015, making a start and playing 90 minutes, in a 2–1 win over Crawley Town. However, his first team opportunities was soon limited, due to a rule limiting numbers of loanees and was told to fight for the first-team place. Nugent went on to make twenty-three appearances and scored once for the club before returning to his parent club.
Crewe Alexandra
On 3 August 2015, Nugent joined League One side Crewe Alexandra on a free transfer, signing a two-year deal. Upon joining Crewe Alexandra, Nugent believed his move to the club could see his career "some much-needed stability". However, on 9 May 2017, Crewe announced that Nugent had been released by the club.
Gillingham
On 15 August 2017, Nugent signed for League One club Gillingham on a one-year contract.
Stevenage
Nugent was offered a new contract by Gillingham at the end of the 2017–18 season, but turned it down and signed for Stevenage of League Two. He remained with the club until the end of the 2019–20 season until he was released at the end of the season.
Barnet
Nugent signed for National League club Barnet on 8 September 2020.
Gloucester City
On 7 October 2021, Nugent transferred to National League North club Gloucester City.
In July 2023, Nugent signed for Cambodian Premier League side Angkor Tiger.
Personal life
Nugent finished in the top three in the 1500 metres national championship, but decided to focus on football instead. Nugent's father Richard was also a footballer and also played for Stevenage and Barnet.
Career statistics
Honours
Cardiff City
Football League Championship: 2012–13
Individual
Cardiff City Young Player of the Year: 2012–13
References
External links
1992 births
Living people
Sportspeople from Welwyn Garden City
Footballers from Hertfordshire
English men's footballers
Men's association football defenders
Street F.C. players
Crewe Alexandra F.C. players
Cardiff City F.C. players
Brentford F.C. players
Peterborough United F.C. players
Yeovil Town F.C. players
Gillingham F.C. players
Stevenage F.C. players
Barnet F.C. players
Gloucester City A.F.C. players
Angkor Tiger FC players
English Football League players
Cambodian Premier League players
Expatriate men's footballers in Cambodia
English expatriate men's footballers
English expatriate sportspeople in Cambodia
|
Frank E. Higgins (19 August 1865 – 4 January 1915) was an American Presbyterian minister and evangelist to logging camps in Minnesota. He was known as the "Lumberjacks' Sky Pilot".
Higgins was born in Toronto and grew up in Shelburne, Ontario. He moved to the United States in 1890, and studied at Hamline University in the hopes of becoming a Methodist minister. He did poorly in his studies, however, and dropped out. He started pastoring a Presbyterian church in 1899 and was ordained by the Presbyterian Church in the United States of America in 1902. He preached his first sermon to the lumberjacks in 1895, and was appointed Superintendent of Lumber Camp Work in 1908.
Higgins recruited many other evangelists to his work, including Richard T. Ferrell. He was the subject of three novels by Thomas D. Whittles: The Lumberjack Sky Pilot (1908), The Parish in the Pines (1912), and Frank Higgins, Trail Blazer (1920).
The Book News Monthly described him as "a man of sterling worth – simple, whole-souled, sincere. He possessed a vigorous body, a cool head, a loving heart, and a genuine contempt for hardship".
References
Further reading
1865 births
1915 deaths
Presbyterian Church in the United States of America ministers
People from Dufferin County
Canadian evangelists
Canadian people of Irish descent
|
```smalltalk
using Foundation;
namespace BindingWithUncompressedResourceBundle {
[BaseType (typeof (NSObject))]
interface MyNativeClass {
}
}
```
|
Çağatay Ulusoy (; born 23 September 1990) is a Turkish actor and model who started his acting career in the TV series Adını Feriha Koydum (2011–2012) as Emir Sarrafoğlu. Since then, he has had further lead roles in Medcezir (2013–2015), a remake of the television series The O.C., in the TV series İçerde and from 2018 to 2020 he played the lead role in the first Turkish Netflix series The Protector.
Ulusoy has been a recipient of several awards, including Golden Butterfly Award, Elle style awards, GQ Man of the Year Turkey, and GQ Middle East Television Star of the year.
Life and career
Ulusoy was born in Istanbul, Turkey. His father immigrated to Turkey when he was 10 years old. He has a younger brother named Atalay. His maternal family is of Bosniak descent. After graduating from high school, Ulusoy first started studying at the Istanbul University's Department of Garden Design and Landscaping. Cagatay Ulusoy was a hyperactive kid. His parents put him in sports at an early age to utilise his energy to maximum. He dreamt of being a basketball player for nine years. He was also good at swimming and diving. As a student, he then started to work as a model at the age of 19. In 2010, he won a modelling contest in Turkey and was named Best Model of Turkey. On the same night that he was named Best Model of the Year, he received his first acting job offer for the TV series Adini Feriha Koydum. In 2011 he shot his first movie Anadolu Kartallari, in a supporting role. Earlier in the same year, Ulusoy starred in the TV series Adını Feriha Koydum as the lead playing Emir Sarrafoğlu. While the first two seasons of the series were successful, the third season that aired under another title Emir'in Yolu (Emir's way), was less successful and due to low ratings, it was cancelled after a few episodes in 2012. This was mainly due to the fact that Ulusoy's co-star Hazal Kaya was not in the third season.<ref>{{Cite web |title=Adını Feriha koydumda son noktayı koyamadım/ Hazal KAYA- Çağatay ULUSOY/TV Programları/milliyet blog |url=http://blog.milliyet.com.tr/--adini-feriha-koydum-da-son-noktayi-koyamadim--hazal-kaya--cagatay-ulusoy/Blog/?BlogNo=423209 |access-date=2022-04-21 |website=blog.milliyet.com.tr}}</ref>Adını Feriha Koydum was later sold and aired in various countries such as Ukraine, Pakistan, Iran, Serbia, Peru, India.
On 25 January 2013, 30 Turkish actors, including Çağatay Ulusoy, were taken into custody for a drugs probe by Istanbul's narcotics police. However, in 2018, upon the request of some of the defendant's lawyers, the decision was examined by the 18th High Criminal Court. The court decided to repeal the verdict established for the crime of drug trafficking.
In 2012, Ulusoy shot a short film, Paranoia. From 2013 until 2015, he played the lead role Yaman Koper in Medcezir (Tide in English), loosely based on The O.C. His character, Yaman, was based on Ben McKenzie’s character in The O.C, Ryan Atwood. From 2016 until 2017, Ulusoy played the lead role in the TV series İçerde with his co-star Aras Bulut Iynemli and Bensu Soral (Inside, partially based on the movie The Departed).
In 2016 alongside Leyla Lydia Tuğutlu, Ulusoy shot the movie Delibal. The same year he became the face of "Colin's" in Turkey and with Victoria's Secret model Taylor Hill acted in the commercial Bize Uyar for the company.
Between 2018 and 2020, Ulusoy played the lead role Hakan in the Netflix series The Protector. The Protector was the first ever Turkish Netflix series.
In March 2021, Ulusoy appeared as garbage collector Mehmet in the Can Ulkay directed Netflix movie Paper Lives. In April 2021, Turkish streaming platform BluTV announced that Ulusoy would return as the lead character Semih Ates in the period piece Yeşilçam''.
Filmography
References
External links
Cagatay Ulusoy on TurkishStarsDaily
1990 births
Living people
Turkish male film actors
Turkish male models
Male actors from Istanbul
Turkish male television actors
Turkish people of Bosniak descent
Golden Butterfly Award winners
Turkish people of Bulgarian descent
|
General Sir John Wright Guise, 3rd Baronet (20 July 1777 – 1 April 1865) was a British Army general.
Life
Guise was born at Elmore, Gloucestershire, the second son of John Guise of Highnam Court, who was created a baronet in 1783, and died in 1794; his mother was the daughter and heiress of Thomas Wright. He was appointed ensign in the 70th (Surrey) Regiment of Foot on 4 November 1794, and was transferred the year after to the 3rd Foot Guards, later the Scots Guards, in which he became lieutenant and captain in 1798, captain and lieutenant-colonel in 1805, and regimental first major in 1814.
Guise served with his regiment in the Ferrol Expedition, Vigo, and Cadiz in 1800, in Egypt in 1801, in Hanover in 1805–06, and accompanied it to Portugal in 1809. He was present at the Battle of Bussaco, and commanded the light companies of the guards, with some companies of the 95th Rifles attached, at the Battle of Fuentes de Oñoro. He commanded the first battalion 3rd Guards in the Peninsular War of 1812–14, including the Battle of Salamanca, the capture of Madrid, the Siege of Burgos and subsequent retreat, the Battle of Vittoria, the Battle of the Bidassoa, the Battle of the Nive, and the passage of the Adour. At the investment of and repulse of the sortie from Bayonne, he succeeded to the command of the second brigade of Guards when Maj-Gen Edward Stopford was wounded (gold cross and war medal).
Guise became a major-general in 1819, was appointed CB in 1831, became a lieutenant-general and KCB in 1841, colonel 85th light infantry in 1847, general 1851, and was made GCB 1863. He succeeded to the baronetcy on the death of his brother Berkeley, the second baronet, in 1834. In 1863 he was granted heraldic supporters (usually only borne by peers) to descend to heirs male of the body on succession to the baronetcy.
At the time of his death, Guise was senior general in the Army List. It took place at Elmore Court on 1 April 1865, at the age of 87.
Family
Guise married in 1815 Charlotte Diana, daughter of John Vernon of Clontarf Castle, Dublin. They had seven children:
Jane Elizabeth Guise (d. 20 Feb 1897) married John Wingfield-Stratford, grandson of Richard Wingfield, 3rd Viscount Powerscourt. They had seven sons, and six daughters.
Georgiana Maria Guise (d. 23 Nov 1859) married Capt. Henry Thomas Howard, son of Thomas Howard, 16th Earl of Suffolk and Countess Elizabeth Jane Dutton. They had one daughter that survived childhood, Elizabeth Frances.
Sir William Vernon Guise, 4th Baronet (19 Aug 1816 - 24 Sep 1887). He married Margaret Anna Maria Lee-Warner, daughter of Rev. Daniel Henry Lee-Warner. They had three sons, and seven daughters.
Major Henry John Guise (25 Aug 1817 - 4 Jun 1857). He married Frederica Verner, daughter of Sir William Verner, 1st Baronet and Harriet Wingfield (the daughter of the Viscount Powerscourt). They had at least two sons.
Francis Edward Guise (20 Apr 1820 - 20 Jan 1893). He married Henrietta Carnac, daughter of Sir James Rivett-Carnac, 1st Baronet. They had four sons, and a daughter.
Reverend Vernon George Guise (5 Sep 1823 - 10 Mar 1861) married Mary Harriet Lane. They had three sons.
Lt.-Gen. John Christopher Guise, V.C. (27 Jul 1826 - 5 Feb 1895). Married Isabella Newcombe, daughter of Reverend Arthur Newcombe and Hon. Catherine Wingfield (also a daughter of the Viscount Powerscourt). They had two son, and two daughters.
Of the several estates he inherited from his brother in 1834, he sold Rendcombe, Eighnam and Brockworth, retaining Highnam, Elmore and Rodley.
Notes
Attribution
1777 births
1865 deaths
Knights Grand Cross of the Order of the Bath
Baronets in the Baronetage of Great Britain
British Army generals
|
```java
/*
*
*
* path_to_url
*
* Unless required by applicable law or agreed to in writing,
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* specific language governing permissions and limitations
*/
package org.wso2.ballerinalang.compiler.tree.expressions;
import org.ballerinalang.model.tree.NodeKind;
import org.ballerinalang.model.tree.expressions.ReAssertionNode;
import org.wso2.ballerinalang.compiler.tree.BLangNodeAnalyzer;
import org.wso2.ballerinalang.compiler.tree.BLangNodeTransformer;
import org.wso2.ballerinalang.compiler.tree.BLangNodeVisitor;
/**
* Represents `ReAssertion` in regular expression.
*
* @since 2201.3.0
*/
public class BLangReAssertion extends BLangReTerm implements ReAssertionNode {
public BLangExpression assertion;
@Override
public NodeKind getKind() {
return NodeKind.REG_EXP_ASSERTION;
}
@Override
public void accept(BLangNodeVisitor visitor) {
visitor.visit(this);
}
@Override
public <T> void accept(BLangNodeAnalyzer<T> analyzer, T props) {
analyzer.visit(this, props);
}
@Override
public <T, R> R apply(BLangNodeTransformer<T, R> modifier, T props) {
return modifier.transform(this, props);
}
}
```
|
Shibi may refer to:
Shibi (king), a figure in Hindu and Buddhist mythology
Shibi (roof tile), a roof ornament in Japanese traditional architecture
Shibi Khan, 9th khagan of the Göktürk empire, a rebel against Chinese suzerainty, reigned 611–619 CE
China
Shibi Railway Station, or New Guangzhou Railway Station, a railway station in Panyu, Guangzhou
Shibi, Fujian (石壁镇), town in Ninghua County
Shibi, Hainan (石壁镇), town in Qionghai
Shibi, Jiangxi (石鼻镇), town in Anyi County
See also
Sibi (disambiguation)
|
The Battle of Okolona took place on February 22, 1864, in Chickasaw County, Mississippi, between Confederate and Union forces during the American Civil War. Confederate cavalry, commanded by Maj. Gen. Nathan Bedford Forrest, faced over 7,000 cavalry under the command of Brig. Gen. William Sooy Smith and defeated them at Okolona, causing 100 casualties for the loss of 50.
Smith's force had been ordered to set off from Memphis, Tennessee, and rendezvous with the main Union army of 20,000 that was marching on Meridian, Mississippi, and was under the command of Maj. Gen. William Tecumseh Sherman. However, Smith disobeyed orders and delayed his march for ten days waiting on a unit that was ice bound in Kentucky. When he eventually left, he encountered the Confederate cavalry force on February 21, and on February 22 was engaged in a running battle across eleven miles with Forrest's forces. With Confederate reinforcements, Forrest routed Smith but did not pursue due to lack of ammunition, and Smith limped over the state line to Tennessee on February 26, where he was criticized for putting Sherman's Meridian Expedition in danger.
Background
Meridian was an important railroad center, and was the objective of a campaign launched from Vicksburg, Mississippi, on February 3 by Sherman, who brought 20,000 men to the outskirts of the town. Seven thousand cavalry under Smith's command were stationed in Memphis, and on February 1 these were ordered to leave for Meridian along the Mobile & Ohio Railroad and rendezvous with the main Union force on February 10. While Sherman feinted his way towards Meridian to throw off Confederate forces, Smith delayed his own advance for 10 days before leaving on February 11. His force moved unopposed through the countryside, destroying railroads and crops as well as picking up 1,000 slaves. On February 16 he passed through New Albany, his progress slowed due to muddy roads. On February 18 he drove a Confederate force from West Point, and he was 90 miles from Meridian, just outside West Point, on February 20 when Sherman eventually left his position in the town and returned to Vicksburg, fearing for Smith's whereabouts. Smith, hearing of this, turned about and headed for Okolona.
Later on February 20, Smith fought an initial battle with Confederate forces under Forrest's command at Prairie Station and Aberdeen. On February 21, having decided to withdraw to West Point because of concern over the size of the Confederate forces and the fate of the slaves if they were captured, Smith was lured into the swampy area around the Tombigbee River by a Confederate cavalry brigade under Col. Jeffrey Forrest. Smith was forced again to retreat, leaving a rearguard, which followed his main force two hours later.
The battle
Forrest arrived to conduct the battle as the rearguard began to retreat, and led the first attack at dawn on February 22 on the prairie south of Okolona. The Union forces had dismounted and constructed barricades around their positions. Forrest began a frontal assault and probing flank attacks, and with Confederate reinforcements, cut gaps in the Union battle lines and prompted a general retreat, with five cannons being abandoned.
The Union forces reformed on a ridge, and during a flurry of attacks and counterattacks Col. Forrest, the major general's younger brother, was killed by a shot to the neck. He allegedly died in the arms of his brother, who muttered "Jeffrey, Jeffrey." Faltering after the colonel's death, the Confederate attack was revitalized by the older Forrest, who led a charge to "exact vengeance" and break the Union positions. During the pursuit, Forrest and his group were briefly overwhelmed before Col. McCullough arrived with reinforcements.
The Union forces began an eleven-mile running battle as they withdrew, falling back through a series of defensive positions including plantations and roadblocks. However, these positions were quickly abandoned in the face of Confederate attacks. Towards the end of the day, the Union forces drew into three lines on a field, and charged the Confederates, who used volley fire to disrupt both charges at a range of 40 yards. Facing such defeat, Smith began a further withdrawal. Forrest quickly ordered the end of the pursuit due to lack of ammunition, but Smith was forced to contend with other Mississippi militia units for the rest of his retreat to the Tennessee border.
At Collierville, Tennessee, Smith crossed the state line on February 26 with the remainder of his forces, where he was reprimanded for disobeying his initial orders to start out for Meridian on February 1. Due to failing health Smith left the military in September 1864 and returned to civilian life.
Battlefield preservation
The American Battlefield Trust and its partners have acquired and preserved more than of the Okolona battlefield.
References
Browning, Robert M., Forrest: The Confederacy's Relentless Warrior, Brassey's, 2004, .
Wyeth, John Allan, That Devil Forrest: Life of General Nathan Bedford Forrest, Harper, 1959, .
The American Battlefield Protection Program Okolona retrieved July 7, 2007.
Civil War Reference CWR accessed and retrieved 2011-07-03
CWSAC Report Update
Further reading
Beck, Brandon H. The Battle of Okolona: Defending the Mississippi Prairie. Charleston, SC: The History Press, 2009. .
Notes
Meridian and Yazoo River Expeditions
Battles of the Western Theater of the American Civil War
Confederate victories of the American Civil War
Battles of the American Civil War in Mississippi
Chickasaw County, Mississippi
Conflicts in 1864
1864 in Mississippi
Nathan Bedford Forrest
February 1864 events
|
Fontenermont () is a former commune in the Calvados department in the Normandy region in northwestern France. On 1 January 2017, it was merged into the new commune Noues de Sienne.
Population
See also
Communes of the Calvados department
References
Former communes of Calvados (department)
Calvados communes articles needing translation from French Wikipedia
Populated places disestablished in 2017
|
The arrondissement of Céret is an arrondissement of France in the Pyrénées-Orientales department (Northern Catalonia) in the Occitanie region. It has 64 communes. Its population is 129,464 (2016), and its area is .
Composition
The communes of the arrondissement of Céret, and their INSEE codes, are:
L'Albère (66001)
Alénya (66002)
Amélie-les-Bains-Palalda (66003)
Argelès-sur-Mer (66008)
Arles-sur-Tech (66009)
Bages (66011)
Banyuls-dels-Aspres (66015)
Banyuls-sur-Mer (66016)
La Bastide (66018)
Le Boulou (66024)
Brouilla (66026)
Caixas (66029)
Calmeilles (66032)
Camélas (66033)
Castelnou (66044)
Cerbère (66048)
Céret (66049)
Les Cluses (66063)
Collioure (66053)
Corneilla-del-Vercol (66059)
Corsavy (66060)
Coustouges (66061)
Elne (66065)
Fourques (66084)
Lamanère (66091)
Laroque-des-Albères (66093)
Latour-Bas-Elne (66094)
Llauro (66099)
Maureillas-las-Illas (66106)
Montauriol (66112)
Montbolo (66113)
Montescot (66114)
Montesquieu-des-Albères (66115)
Montferrer (66116)
Oms (66126)
Ortaffa (66129)
Palau-del-Vidre (66133)
Passa (66134)
Le Perthus (66137)
Port-Vendres (66148)
Prats-de-Mollo-la-Preste (66150)
Reynès (66160)
Saint-André (66168)
Saint-Cyprien (66171)
Sainte-Colombe-de-la-Commanderie (66170)
Saint-Génis-des-Fontaines (66175)
Saint-Jean-Lasseille (66177)
Saint-Jean-Pla-de-Corts (66178)
Saint-Laurent-de-Cerdans (66179)
Saint-Marsal (66183)
Serralongue (66194)
Sorède (66196)
Taillet (66199)
Taulis (66203)
Le Tech (66206)
Terrats (66207)
Théza (66208)
Thuir (66210)
Tordères (66211)
Tresserre (66214)
Trouillas (66217)
Villelongue-dels-Monts (66225)
Villemolaque (66226)
Vivès (66233)
History
The arrondissement of Céret was created in 1800. In January 2017 it gained 24 communes from the arrondissement of Perpignan.
As a result of the reorganisation of the cantons of France which came into effect in 2015, the borders of the cantons are no longer related to the borders of the arrondissements. The cantons of the arrondissement of Céret were, as of January 2015:
Argelès-sur-Mer
Arles-sur-Tech
Céret
Côte Vermeille
Prats-de-Mollo-la-Preste
References
Céret
Ceret
Northern Catalonia
|
```html
<html>
<body>
Similar to a built-in inspection, but has improved reporting (distinguishes values match).
</body>
</html>
```
|
The Australian Journal of International Affairs is an academic journal that was established in 1947 as Australian Outlook. It is published by Routledge on behalf of the Australian Institute of International Affairs. Its forerunner was the Austral-Asiatic Bulletin, which was published from 1936 by the Victorian Branch of the Institute until the Institute decided that it needed a journal "so that each branch of the AIIA could feel ownership of the publication." It has been suggested that a focus on the Australian war effort and destruction of Europe during World War II made the focus on the "Asiatic" outdated and prompted the editors of the new journal to name it Australian Outlook. The journal marked a shift in focus for Australian International Relations scholarship which until then, and reflected in the Austral-Asiatic Bulletin considered questions of the development of the internal territories of Australia, particularly the Northern Territory, as an "international" question.
The editors-in-chief are Ian Hall and Sara Davies (Griffith University). Earlier editors include Nick Bisley (La Trobe University), Andrew O'Neil (Griffith University), Michael Wesley (Griffith University), and William T. Tow (Australian National University).
References
Bibliography
External links
Journal page at publisher website
International relations journals
Routledge academic journals
|
```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 g
import (
"encoding/json"
"github.com/toolkits/file"
"log"
"sync"
)
type HttpConfig struct {
Enabled bool `json:"enabled"`
Listen string `json:"listen"`
}
type PlusAPIConfig struct {
Addr string `json:"addr"`
Token string `json:"token"`
ConnectTimeout int32 `json:"connectTimeout"`
RequestTimeout int32 `json:"requestTimeout"`
}
type NdConfig struct {
Enabled bool `json:"enabled"`
Dsn string `json:"dsn"`
MaxIdle int32 `json:"maxIdle"`
}
type CollectorConfig struct {
Enabled bool `json:"enabled"`
Batch int32 `json:"batch"`
Concurrent int32 `json:"concurrent"`
}
type SenderConfig struct {
Enabled bool `json:"enabled"`
TransferAddr string `json:"transferAddr"`
ConnectTimeout int32 `json:"connectTimeout"`
RequestTimeout int32 `json:"requestTimeout"`
Batch int32 `json:"batch"`
}
type GlobalConfig struct {
Debug bool `json:"debug"`
Http *HttpConfig `json:"http"`
PlusApi *PlusAPIConfig `json:"plus_api"`
Config *NdConfig `json:"config"`
Collector *CollectorConfig `json:"collector"`
Sender *SenderConfig `json:"sender"`
}
var (
ConfigFile string
config *GlobalConfig
configLock = new(sync.RWMutex)
)
func Config() *GlobalConfig {
configLock.RLock()
defer configLock.RUnlock()
return config
}
func ParseConfig(cfg string) {
if cfg == "" {
log.Fatalln("use -c to specify configuration file")
}
if !file.IsExist(cfg) {
log.Fatalln("config file:", cfg, "is not existent")
}
ConfigFile = cfg
configContent, err := file.ToTrimString(cfg)
if err != nil {
log.Fatalln("read config file:", cfg, "fail:", err)
}
var c GlobalConfig
err = json.Unmarshal([]byte(configContent), &c)
if err != nil {
log.Fatalln("g.ParseConfig error, parse config file", cfg, "fail,", err)
}
configLock.Lock()
defer configLock.Unlock()
config = &c
log.Println("g.ParseConfig ok, file ", cfg)
}
```
|
Cherokee Studios is a recording studio facility in Hollywood founded in 1972 by members of 1960s pop band The Robbs. Cherokee has been the location of many notable recordings by such artists as Steely Dan, David Bowie, Journey, Toto, Michael Jackson, Van Halen, Guns N' Roses, The Cars, Foreigner, Tom Petty and the Heartbreakers, Devo, X, Mötley Crüe, "Weird Al" Yankovic, Dokken, John Mellencamp, Melissa Etheridge, and The Replacements.
At the peak of its success, Cherokee operated eight studios in two locations. In his autobiography, Beatles producer George Martin dubbed Cherokee Studios the best studio in America.
History
Background
The studio was founded by members of The Robbs, an American pop band from Oconomowoc, Wisconsin centered on three brothers who all adopted pseudonyms: Robert Donaldson ("Bruce Robb"), George Donaldson ("Joe Robb"), David Donaldson ("Dee Robb"), and family friend Craig Krampf ("Craig Robb"). Dick Clark discovered the band in 1962 when they were the opening act at the “Summer Caravan of Stars” in Wisconsin and invited them to continue on with the “Caravan” tour as essentially the house band. At the 1964 “Young World's Fair” in Chicago, the band won Clark's “Battle of the Bands”. The band was signed to Mercury Records in 1966, and moved to California to appear as regular performers on Clark's show Where the Action Is.
By 1969 the band, now signed to ABC/Dunhill, had changed their sound to a more country rock orientation and changed its name to Cherokee. ABC/Dunhill's studios were booked solid at the time, and the studio's chief technical engineer, Roger Nichols, was spending a lot of time at the band's ranch in rural Chatsworth. Nichols suggested the band buy some recording gear and set it up in the barn. Eventually, the band evolved from recording their own music to producing and engineering for other artists, including longtime friend Del Shannon and Steely Dan, who recorded overdubs for and mixed their 1974 album Pretzel Logic at "Cherokee's Ranch." The studio was even the location of the first demo recording by the Van Halen lineup of David Lee Roth, Eddie Van Halen, Alex Van Halen, and Michael Anthony. After being threatened to be evicted for running an "illegal home studio," the studio's owners began looking for a bigger facility.
Fairfax Avenue
In January 1975, Cherokee purchased the former location of MGM Studios at 751 N. Fairfax Avenue in Hollywood, including its large 35 x 58 foot live room (known as "Frank Sinatra's string room") and five isolation booths. The brothers approached Trident Studios to build a custom 80-input A-Range mixing console - one of the first in the United States. Focused on making the recording studio a creative space designed for musicians and engineers, Cherokee's new studio featured five live rooms, 24-track mixing consoles, 24-hour session times, and a lounge bar, and quickly became one of the city's busiest studios, attracting such notable artists as David Bowie, Frank Sinatra, and Rod Stewart.
Cherokee's Fairfax Avenue location closed on August 31, 2007, with the last album recorded at that location being the Robert Bradley's Blackwater Surprise album Out of the Wilderness (2008). The studio closed to make way for a new building. Under the direction of a leading green developer, the site was to become the Lofts @ Cherokee Studios – a Green LEED Platinum Live/Work complex offering professional recording studios in select units designed by Cherokee owner Bruce Robb, but those plans did not come to fruition. The original developers went into foreclosure in 2008. New owners purchased the property and have had no contact or relationship with Bruce Robb and or Cherokee Studios.
Melrose Avenue
In late August 2011, Cherokee Studio's website announced "New Studio Coming to Hollywood", and in 2020 Cherokee Studios opened a recording studio on Melrose Avenue across the street from Paramount Film Studios. Built in collaboration with George Augsberger and Bruce Robb, the new studio features Cherokee Studio's original Trident A-Range 48-channel, 24-bus, 24 monitor channel mixing console, as well as a large tracking space that can hold up to 40 string players comfortably. Of the new studio and location, it has been said the new location is a continuation of the Cherokee tradition while going above and beyond.
Prominent clients
Under MGM Records
Acts that recorded at M.G.M. Recording Studios include: Count Basie, Ella Fitzgerald, Judy Garland, Oscar Peterson, Lou Rawls, The Sylvers, Elvis Presley and the Nelson Riddle Orchestra.
Tom Petty
Petty recorded his third album Damn the Torpedoes and fourth Hard Promises at both Sound City Studios and Cherokee Studios respectively. During the recording of Hard Promises, John Lennon was scheduled to be in the recording studio at the same time as Petty and the Heartbreakers. However, the meeting never occurred due to the murder of Lennon in New York in December 1980. Both Damn the Torpedoes and Hard Promises were mixed at Cherokee Studios.
David Bowie
English musician David Bowie recorded his tenth studio album Station to Station at Cherokee in late 1975. Co-produced by Harry Maslin, it was released in January 1976 and was a massive commercial success.
Mötley Crüe
Mötley Crüe recorded the platinum selling albums Theatre of Pain and Shout at the Devil at Cherokee Studios. Technicians working on Shout at the Devil noted that the members of Mötley Crüe would "stay up for three days straight making music and not even think we were working hard, with girls were streaming in and out of the studio."
Harry Nilsson
Harry Nilsson recorded his final album Flash Harry at Cherokee Studios between 1978 and 1980. Produced by Steve Cropper and engineered by Bruce Robb, the album has a very clean, soulful sound and features a who's-who of collaborators including Ringo Starr, Paul Stallworth, Eric Idle and Mac Rebennack.
Bonnie Raitt
While living in one of the West Hollywood apartment complexes directly behind Cherokee Studios, Bonnie Raitt would pick up backup singing recording gigs with music producers Bruce Robb and Steve Cropper.
Frank Sinatra
Frank Sinatra recorded the Sinatra Christmas Album at Cherokee in 1975.
Ringo Starr
While he was recording Stop and Smell the Roses at Cherokee Studios in 1980, Ringo Starr invited George Harrison, Paul McCartney and Linda McCartney to guest on the album; Paul McCartney and Harrison also produced some of the tracks. Starr had approached John Lennon to help out as well, had received two demos of songs which eventually wound up on the posthumous Lennon album Milk and Honey, and reportedly, Lennon had agreed to come to Los Angeles in January 1981 and take part in the recording; the album then would have been a modest Beatles reunion. The assassination of Lennon prevented those plans from coming to fruition. Ronnie Wood of the Rolling Stones also collaborated with Starr on the album at Cherokee, adding guitar, bass, saxophone, keyboards, and back-up vocals.
Weird Al Yankovic
Weird Al Yankovic recorded his first album at Cherokee in 1982. The album sold over 500,000 copies.
Warren Zevon
In 2002, a terminally ill Warren Zevon came to Cherokee Studios to record what would be his final album, The Wind. Nick Read filmed Zevon's final recordings at Cherokee for the documentary,Warren Zevon: Keep Me In Your Heart. Bruce Springsteen joined Zevon at Cherokee for the single "Disorder in the House," Cherokee owner Bruce Robb provided lead guitar on the first track of The Wind and support vocals on two other tracks.
Michael Jackson
Michael Jackson's 1979 album Off the Wall was recorded at Cherokee Studios. The album is among the best-selling albums of all time.
Other acts
Acts that have recorded at Cherokee Studios include:
Aerosmith
Alice Cooper
Automatic 7
Barbra Streisand
Donny Osmond
Osmonds
Bliss 66
Buffalo Tom
The Cars
Chris DeMarco
Dave Matthews Band
David Bowie
Device
Devo
Diana Ross
Dokken
Donovan (Lady of the Stars)
Elis Regina
Fear
Charly García
The Go-Go's
Toto
Guns N' Roses
Sammy Hagar
Human Drama
Jean-Luc Ponty
JetSet
John Cougar Mellencamp
Journey
Lillian Axe
Korn
The Lemonheads
Lenny Kravitz
Lita Ford
Oingo Boingo
Olivia Newton-John
Percy Sledge
Rod Stewart
Redbone
Renegade
Rollins Band
Steely Dan
Steppen Stones
Stryper
Stylus Automatic
Suicidal Tendencies
The Replacements (band)
The Textones
Taj Mahal
The Choirboys
Thirty Seconds to Mars
Van Halen
Vesuvius
Vinnie Vincent Invasion
WARRIOR
X
The Broken Homes
Radio Active Cats
Bihlman Bros
Film and TV
South Park
Shrek
The Doors
Twin Peaks
Twin Peaks: Fire Walk with Me
Good Morning America
The Last of the Mohicans
Three for the Road
The Three Musketeers
Dragnet
Sgt. Pepper's Lonely Hearts Club Band
Ocean's Twelve
Miami Vice
Boyz n the Hood
Uncle Buck
Blue Velvet
Ally McBeal
Casper
The Spooktacular New Adventures of Casper
21 Jump Street
Alien 3
Saturday Night Fever
Coyote Ugly
Popeye
XXX
Fame
The Great Outdoors
Innerspace
Any Given Sunday
Sneakers
Menace II Society
Southland Tales
Village of the Damned
The Wiz
Young Guns II
Turner & Hooch
White Men Can't Jump
Twins
Earth Girls Are Easy
Vampires
Colors
The Larry Sanders Show
Pay It Forward
The Power of One
Ghosts of Mars
Masters of Horror
Don Juan DeMarco
Necessary Roughness
The Parkers
Boston Public
Crime Story
Air America
Driven
Strong Medicine
Satisfaction
Neighbors
The Experts
Run Ronnie Run!
Cousins
Maid to Order
Give My Regards to Broad Street
Lackawanna Blues
Burglar
Down and Dirty Duck
The Idolmaker
Sphinx
Honky Tonk Freeway
Love N' Dancing
Mortuary Academy
Melanie
Guilty as Charged
All This and World War II
Crime Story
Masters of Horror
Selected gear list
Studio 1 (1976)
Custom Trident A-Range Mixing Console with 80 Channels
Universal Audio 1176 Limiting Amplifier - 2
dbx 160x
GML 8200
Pultec EQ P1-A
Pultec MEQ-1
Ampex MM-1200 Series 24-Track Recorder
Ampex MM-Series 2-Track Mixdown Recorder
also
Studio 3 (1976)
MCI JH Series 24 Input Mixing Console
MCI JH Series 24-Track Recorder
MCI JH Series 2-Track Mixdown Recorder
BGW Power Amplifiers
Neumann U47, AKG C-414, AKG C-451, Shure SM-57 and SM-7 microphones
Sennheiser and AKG Stereo Headphones
EMT Echoplate Units
UREI & dbx Compressor/Limiters plus Various Additional Outboard Gear and Musical Instruments, i.e. Electric Guitars & Synthesizer Keyboards
References
External links
Mixonline.com article
REthink Development, official website for Lofts @ Cherokee Studios
THE RECORD @ Cherokee Studios, Lofts @ Cherokee Studios official blog
A Conversation with Bruce Robb on the Conversion of Cherokee Studios into Lofts
Recording studios in California
Music of Los Angeles
Culture of Hollywood, Los Angeles
1972 establishments in California
|
Jim Taylor (born 1962) is an American producer and screenwriter who has often collaborated on projects with Alexander Payne. The two are business partners in the Santa Monica based Ad Hominem Enterprises, and are credited as co-writers of six films released between 1996 and 2007: Citizen Ruth (1996),
Election (1999),
Jurassic Park III (2001, with Peter Buchman),
About Schmidt (2002),
Sideways (2004), and
I Now Pronounce You Chuck and Larry (2007, with Barry Fanaro and Lew Gallo). Taylor's credits as a producer include films such as Cedar Rapids and The Descendants.
Early years
Taylor was born in Seattle, Washington. He graduated from Bellevue High School in neighboring Bellevue, and subsequently from Pomona College, a liberal arts school in California that he attended instead of accepting an offer from the USC School of Cinematic Arts.
Career
Taylor began working for Cannon Films in 1987. After visiting China on an Avery Foundation grant, Taylor returned to L.A. and spent three years working with Ivan Passer; he also worked for Devon Foster, a director at HBO, as Foster's assistant.
Taylor met Payne while working temporary jobs in Los Angeles, eventually moving in with him for financial reasons. While roommates the two wrote short films and started writing Citizen Ruth. After winning money on the game show Wheel of Fortune, Taylor entered Tisch School of the Arts at the age of 30. He and Payne did further rewrites on Citizen Ruth while Taylor was a graduate student; the film got made during his third year there. Taylor received an M.F.A. in Filmmaking from New York University in 1996.
Awards and nominations
Taylor has received numerous awards and nominations (including an Oscar win for co-writing Sideways, two Golden Globe Award wins for co-writing About Schmidt and Sideways, and additional Oscar nominations for co-writing Election and for producing The Descendants); those listed below are for his work on Sideways (all shared with Alexander Payne):
References
External links
American male screenwriters
Best Adapted Screenplay Academy Award winners
Best Adapted Screenplay BAFTA Award winners
Independent Spirit Award winners
Writers Guild of America Award winners
Writers from Seattle
1963 births
Living people
Pomona College alumni
Tisch School of the Arts alumni
Best Screenplay Golden Globe winners
Golden Globe Award-winning producers
Screenwriters from California
|
```go
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
package configflag
import (
"errors"
"flag"
"fmt"
"io"
"os"
"github.com/m3db/m3/src/x/config"
)
var _ flag.Value = (*FlagStringSlice)(nil)
// Options represents the values of config command line flags
type Options struct {
// set by commandline flags
// ConfigFiles (-f) is a list of config files to load
ConfigFiles FlagStringSlice
// ShouldDumpConfigAndExit (-d) causes MainLoad to print config to stdout,
// and then exit.
ShouldDumpConfigAndExit bool
// for Usage()
cmd *flag.FlagSet
// test mocking options
osFns osIface
}
// Register registers commandline options with the default flagset.
func (opts *Options) Register() {
opts.RegisterFlagSet(flag.CommandLine)
}
// RegisterFlagSet registers commandline options with the given flagset.
func (opts *Options) RegisterFlagSet(cmd *flag.FlagSet) {
opts.cmd = cmd
cmd.Var(&opts.ConfigFiles, "f", "Configuration files to load")
cmd.BoolVar(&opts.ShouldDumpConfigAndExit, "d", false, "Dump configuration and exit")
}
// MainLoad is a convenience method, intended for use in main(), which handles all
// config commandline options. It:
// - Dumps config and exits if -d was passed.
// - Loads configuration otherwise.
//
// Users who want a subset of this behavior should call individual methods.
func (opts *Options) MainLoad(target interface{}, loadOpts config.Options) error {
osFns := opts.osFns
if osFns == nil {
osFns = realOS{}
}
if len(opts.ConfigFiles.Value) == 0 {
opts.cmd.Usage()
return errors.New("-f is required (no config files provided)")
}
if err := config.LoadFiles(target, opts.ConfigFiles.Value, loadOpts); err != nil {
return fmt.Errorf("unable to load config from %s: %v", opts.ConfigFiles.Value, err)
}
if opts.ShouldDumpConfigAndExit {
if err := config.Dump(target, osFns.Stdout()); err != nil {
return fmt.Errorf("failed to dump config: %v", err)
}
osFns.Exit(0)
}
return nil
}
// FlagStringSlice represents a slice of strings. When used as a flag variable,
// it allows for multiple string values. For example, it can be used like this:
//
// var configFiles FlagStringSlice
// flag.Var(&configFiles, "f", "configuration file(s)")
//
// Then it can be invoked like this:
//
// ./app -f file1.yaml -f file2.yaml -f valueN.yaml
//
// Finally, when the flags are parsed, the variable contains all the values.
type FlagStringSlice struct {
Value []string
overridden bool
}
// String() returns a string implementation of the slice.
func (i *FlagStringSlice) String() string {
if i == nil {
return ""
}
return fmt.Sprintf("%v", i.Value)
}
// Set appends a string value to the slice.
func (i *FlagStringSlice) Set(value string) error {
// on first call, reset
// afterwards, append. This allows better defaulting behavior (defaults
// are overridden by explicitly specified flags).
if !i.overridden {
// make this a new slice.
i.overridden = true
i.Value = nil
}
i.Value = append(i.Value, value)
return nil
}
type osIface interface {
Exit(status int)
Stdout() io.Writer
}
type realOS struct{}
func (r realOS) Exit(status int) {
os.Exit(status)
}
func (r realOS) Stdout() io.Writer {
return os.Stdout
}
```
|
The privateer brig Admiral Juel was the second largest ship in Denmark-Norway to be granted letters of marque during the Gunboat War between Denmark and Britain. The British Royal Navy captured her in a notable single ship action in 1808.
Background
The 1807 British attack on Copenhagen by land and sea left Denmark with few warships and poor options in continuing the fight with her new enemy. The ship-of-the-line and a handful of brigs were (temporarily) safe in Norwegian ports, and the squadrons of gunboats elsewhere on the coast were primarily for defence.
Within one week of the British forces departing with the remains of the Danish fleet, King Christian VII's government in Copenhagen promulgated the Danish Privateers Regulations (1807). Denmark was at war with Britain, and a part of the fight would fall to privateers.
Denmark and Norway issued Kaperbrev (letters of marque).
From 1807 to 1813 Danish shipping companies donated suitable ships (brigs, schooners and galleases) to the state which could then equip the ships for their new privateering role. One such ship was the brig Admiral Juel.
Danish privateers were an important tactical weapon in the furtherance of the war. They were not on an equal footing with the British men-of-war but by forcing British merchant ships to follow a convoy system for protection fewer warships were available for active warfare against Denmark.
Admiral Juel
Three Danish merchant ships afloat in 1807 were named Admiral Juel or Admiral N Juel. All three received letters of marque from the Danish authorities, but only one was a brig. The ships were named for the seventeenth century Danish admiral Niels Juel. It is worth emphasising that no ship of this name is recorded as being in the Royal Danish Navy, although four more recent naval ships have been named Niels Juel - nor is her appointed captain Jørgen Jørgensen listed as a Danish naval officer.
Events
In September 1807 the brewer and captain Jens Lind & partners of Copenhagen acquired the brig Christine Henriette, a French-built merchant ship, and presented her to the state for converting and equipping as a privateer of 28 cannon, and a crew of 91. Jens Lind and partners also invested in another three privateers being equipped at Helsingør by a younger namesake of Jens Lind. On completion of her refit Christine Henriette was renamed Admiral Juel. At 170 tons (bm), the ship was the second largest in the whole of the Danish privateer fleet.
On 4 December 1807 Jørgen Jørgensen was in audience with Crown Prince Frederik and with a little ceremony was granted command of the refitted Admiral Juel. He was awarded a letter of marque and made to swear to respect the rules for privateering that had been formulated a few months earlier. Jörgensen's seamanship and international experience weighed heavily in this decision and rumours of his incorrect political views were discounted.
Impatient to be actively at sea, Jörgensen had his crew break the ice which kept so many ships inactive and sailed out. So early in the season, privateers were not expected and Admiral Juel quickly captured three vessels and brought them back to Copenhagen, where they were greeted with much jubilation.
Sally of London, an English merchant ship
Flyvefisken, a Swedish herring boat
Spring, of Danzig, a Prussian merchant ship
Winter ice reasserted its hold on the harbours of Denmark and it was not until February that he could sail again.
Capture
Sailing in the North Sea Admiral Juel did not find many ships until, off the Yorkshire coast, she encountered two British warships, and .
Admiral Juel hoisted British colours when challenged by Sappho but when ordered to stop with a warning shot replied with a broadside and hoisted the Danish colours. After half-an-hour of close action Admiral Juel surrendered to Sappho. Her sails, masts, and rigging had been shot to pieces, and two of her crew had been killed. When the news of her loss reached Denmark, conspiracy theorists were sure Jörgensen had turned traitor and deliberately sought out British warships in order to surrender his ship. Jörgensen and his crew were incarcerated on 4 March 1808 at Yarmouth prison as prisoners-of-war.
Two separate notices on the same page of the London Gazette report awards of prize money for the capture of Admiral Juuls (sic) and the presentation of accounts for the proceeds of the hull, stores, and head money.
In 1849 the Admiralty awarded the Naval General Service Medal with clasp "Sappho 2 March 1808" to the surviving claimants from HMS Sappho.
Notes
Citations
References
Danish Yachtskipper Association website
J Marcussen for a private website listing all Danish merchant ships from the year dot. Listed alphabetically (nb Æ, Ø, and Å come at the end of the Danish alphabet)
T. A. Topsøe-Jensen og Emil Marquard (1935) “Officerer i den dansk-norske Søetat 1660-1814 og den danske Søetat 1814-1932“. Two volumes. Download here.
Danish author :da:Kay Larsen and his book Dansk Kapervæsen 1807-14", Gyldendal 1915 samt genudgivet i 1972. (Danish privateers 1807 -1814) republished 1972 (Full view is not available for this item due to copyright © restrictions) Pages 25 and 56 mention Admiral Juel but cannot be accessed on-line. Available at several libraries but none near me.(Viking)
Olsen, Claus Ib "Vi, Jörgen Jörgensen" Lindhardt og Ringhof, 2009 on Google Books. (For relevant text - click search inside)
Further reading
:no:Kaperfart - article on Norwegian Wikipedia
Article in Danish about Danish privateers
Article Hijacking and licensing during the Napoleonic Wars. Author: Bård Frydenlund
1800s ships
Ships built in France
Privateering in the Gunboat War
Captured ships
Napoleonic Wars
Privateer ships
|
Stanley Norman Evans (1 February 1898 – 25 June 1970) was a British industrialist and Labour Party politician. He served very briefly as an Agriculture Minister in the post-war Attlee government but was forced to resign when he claimed that farmers were being "featherbedded". During the Suez Crisis, Evans broke from the party line and supported the Conservative government's policy, which led his local association successfully to press him to resign from Parliament.
Wartime service
Evans was a native of Birmingham where he went to Harborne Elementary School. His first job after leaving school was in a chartered accountants firm, but in 1915 he left to enlist in the Northumberland Hussars. He served in France and Belgium during the First World War, and was discharged in 1919.
Industry
Returning to the West Midlands, Evans established Stanley N. Evans (Birmingham) Ltd, who supplied sand for moulds used in the many cast metal foundries in the Black Country. Evans was also involved in the publishing industry, being Chairman of Town Crier Publishing Society Ltd. During the Second World War, Evans was a road transport organiser employed by the Ministry of War Transport.
Election to Parliament
Evans was chosen as Labour Party candidate for Wednesbury to follow John Banfield, who died at the end of May 1945 while still in post. At the 1945 general election he had no difficulty in being elected, winning a majority of 15,935.
In his maiden speech on 22 August 1945, Evans spoke in a debate on the ratification of the United Nations Charter. He concentrated on the post-war reconstruction and opposed attempts to indict 70,000,000 Germans for the misdeeds of a few. In October he criticised the restrictive practices of trade associations in several fields of industry, and urged an investigation into their activities. His speech drew a protest from Imperial Chemical Industries Ltd, whom he had singled out. Evans opposed the Anglo-American loan and the Bretton Woods agreement.
Steel nationalisation
Evans was a supporter of economic planning who was very conscious of his origins in the industrial midlands of England; in a debate in February 1946 he declared to laughter and cheers that "the elbow grease would be forthcoming from those who had always saved Britain – the common people, the best bred mongrels in the world". He distrusted the Soviet Union for its "constant stream of vilification, invective and abuse" directed at the British people, and in June 1947 made an outspoken attack on Soviet domination of Europe led by the "hermits of the Kremlin".
In a free vote on abolition of the death penalty, Evans spoke loudly in support of retaining capital punishment on the grounds that public opinion was not supportive, and reported that the people to whom he spoke were concerned that too many condemned prisoners were being reprieved. He was also a supporter of the Government's plan to nationalise the steel industry, which was the most controversial of all its nationalisation proposals. Because of his experience in the industry, Evans was placed on the Standing Committee examining the Bill.
Ministry of Food
Evans was re-elected for Wednesbury at the 1950 general election, his majority almost unchanged on that of 1945 despite a three-way fight. In the government reshuffle that followed, he was appointed Parliamentary Secretary to the Ministry of Food. At his first press conference on 17 March, a fortnight into his job, Evans warned that Britain "must be careful not to cosset any section of the population at the expense of the community as a whole". He said the Ministry should consider themselves the representatives of housewives; later Evans had to stress that these were his personal views.
He had a tough debut on the front bench of the House of Commons on 3 April 1950 when he made a statement about Commonwealth sugar negotiations. Many Members of Parliament thought that the West Indies had been treated discourteously and the Leader of the House of Commons Herbert Morrison had to come to the aid of the junior Food Minister.
Controversy
The controversy caused by his initial press conference had continued. The National Farmers Union had protested and the Minister (Maurice Webb) had to give an assurance to them that the Ministry would fail if it did not assist food producers. However, Evans was to cause further problems at a press conference in Manchester on 14 April. He asserted that farmers were provided with guaranteed prices and assured markets at taxpayers' expense, and asked how long it could continue. Evans then went on to claim that subsidies concealed inefficiency and inertia, and commented that "no other nation feather-beds its agriculture like Britain".
Dismissal
The National Farmers Unions of England and Wales, Scotland and Northern Ireland immediately responded in a joint statement expressing their amazement and giving detailed figures to refute his argument. At this Clement Attlee asked for Evans' resignation, dismissing him from office after only six weeks. Evans stuck by his opinions even though "the National Farmers' Unions have my scalp under their belt". He later denied as "fantastic" rumours that he intended to resign his Parliamentary seat. On 16 May Evans used a debate on the Finance Bill to set out a full defence of his charges against agriculture.
Parliamentary activity
Evans opposed the opening of Battersea Park funfair on Sundays, saying it would cause dismay to millions of people. Despite his sacking he paid tribute to Attlee for his statesmanlike diplomacy with the United States over the Korean War. He was a frequent member of Parliamentary delegations to other countries, including that to Hungary in 1946. In 1951 he led a delegation to Northern and Southern Rhodesia, Nyasaland, Mauritius and Malta. He was also a member of a delegation to the Soviet Union in 1954.
In 1953 Evans annoyed his own side by speaking against a Labour amendment on the issue of the Central African Federation. He agreed with the Conservative government that federation would lead to economic development and would make Central Africa the Ruhr Valley of Africa. He was a cautious supporter of German rearmament, because it would assist in the defence against Soviet expansionism.
Attitude toward America
The summer of 1956 saw Evans involved in two controversies, first over the sale of the Trinidad Oil Company to the Texas Oil Company, and second over his allegation that the United States was discriminating against British shipping. When speaking at the outbreak of the Suez Crisis, Evans was critical of the lack of American support for what he described as the British crusade against totalitarianism.
Suez
As the situation became more grave, Evans pressed Prime Minister Anthony Eden to withhold military action until Parliament had debated it. When Eden called a vote of confidence on 1 November 1956, Evans abstained from voting rather than vote with his party against the Government; he was the only Labour Member of Parliament to break the whip but was not disciplined for his failure to vote.
Constituency discontent
However, Evans' tacit support for the invasion of Suez caused unrest in his constituency. After several local organisations sent in resolutions strongly condemning his action, the Wednesbury divisional Labour Party called a meeting to discuss his future on 17 November. Evans spoke in defence of his position, but the meeting unanimously passed a resolution calling on Evans to resign his seat. A few days later, Evans complied, also resigning from membership of the Labour Party. He declared that when military action had begun, it was "against the best interests of the British people to divide the House of Commons while fighting was still in progress".
Although supporters of Evans raised a petition asking him to stand for re-election as an Independent candidate, Evans rejected the idea of standing again under any banner. He declared that he was not a turncoat and would do nothing to embarrass his friends in the Parliamentary Labour Party.
Death
Having held to his decision, Evans died of cancer in 1970 aged 72.
References
External links
1898 births
1970 deaths
Labour Party (UK) MPs for English constituencies
Politicians from Birmingham, West Midlands
UK MPs 1945–1950
UK MPs 1950–1951
UK MPs 1951–1955
UK MPs 1955–1959
Ministers in the Attlee governments, 1945–1951
|
Shawforth ( ) is a ward in the township of Whitworth within the Rossendale borough of Lancashire, England. It lies amongst the South Pennines along the course of the River Spodden and A671 road.
Shawforth in the Middle Ages was a hamlet within the township of Spotland and parish of Rochdale.
Shawforth railway station served Shawforth from 1881 until its closure in 1947.
It is part of the Rossendale and Darwen constituency, with Jake Berry having been the Member of Parliament since 2010.
References
Notes
Bibliography
External links
Villages in Lancashire
Geography of the Borough of Rossendale
|
```c++
//
//
// path_to_url
//
// Unless required by applicable law or agreed to in writing, software
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
#include "paddle/fluid/pir/transforms/onednn/squeeze_transpose_onednn_fuse_pass.h"
#include "paddle/fluid/pir/dialect/operator/ir/onednn_op.h"
#include "paddle/fluid/pir/dialect/operator/ir/pd_op.h"
#include "paddle/fluid/pir/drr/include/drr_pattern_base.h"
#include "paddle/pir/include/pass/pass.h"
#include "paddle/pir/include/pass/pass_registry.h"
namespace {
class SqueezeTransposePattern : public paddle::drr::DrrPatternBase {
public:
SqueezeTransposePattern() = default;
std::string name() const override { return "SqueezeTransposePattern"; }
uint32_t benefit() const override { return 2; }
void operator()(paddle::drr::DrrPatternContext *ctx) const override {
paddle::drr::SourcePattern pat = ctx->SourcePattern();
const auto &squeeze = pat.Op(paddle::dialect::SqueezeOp::name());
const auto &full_1 = pat.Op(paddle::dialect::FullIntArrayOp::name(),
{{"value", pat.Attr("full_1_value")}});
squeeze({&pat.Tensor("x"), &full_1()}, {&pat.Tensor("squeeze_out")});
const auto &transpose = pat.Op(paddle::dialect::TransposeOp::name(),
{{"perm", pat.Attr("perm")}});
transpose({&pat.Tensor("squeeze_out")}, {&pat.Tensor("transpose_op_out")});
pat.AddConstraint([&](const paddle::drr::MatchContext &match_ctx) {
auto axis = match_ctx.Attr<std::vector<int64_t>>("full_1_value");
auto perm = match_ctx.Attr<std::vector<int>>("perm");
if (perm.size() <= 0) return false;
if (axis.size() <= 0) return false;
return true;
});
paddle::drr::ResultPattern res = pat.ResultPattern();
const auto &fused_reshape_attr = res.ComputeAttr(
[](const paddle::drr::MatchContext &match_ctx) -> std::vector<int> {
std::vector<int> int_array_value;
auto shape = match_ctx.Attr<std::vector<int64_t>>("full_1_value");
for (auto i : shape) {
int_array_value.emplace_back(static_cast<int>(i));
}
return int_array_value;
});
const auto &fused_transpose =
res.Op(paddle::onednn::dialect::FusedTransposeOp::name(),
{{
{"axis", pat.Attr("perm")},
{"fused_squeeze2_axes", fused_reshape_attr},
{"fused_unsqueeze2_axes", res.VectorInt32Attr({})},
{"fused_reshape2_shape", res.VectorInt32Attr({})},
{"scale", res.Float32Attr(1.0f)},
{"shift", res.Float32Attr(0.0f)},
{"output_data_type", res.StrAttr("fp32")},
{"data_format", res.StrAttr("AnyLayout")},
{"mkldnn_data_type", res.StrAttr("float32")},
}});
fused_transpose({&res.Tensor("x")}, {&res.Tensor("transpose_op_out")});
}
};
class SqueezeTransposePass : public pir::PatternRewritePass {
public:
SqueezeTransposePass()
: pir::PatternRewritePass("squeeze_transpose_onednn_fuse_pass", 3) {}
pir::RewritePatternSet InitializePatterns(pir::IrContext *context) override {
pir::RewritePatternSet ps(context);
ps.Add(paddle::drr::Create<SqueezeTransposePattern>(context));
return ps;
}
};
} // namespace
namespace pir {
std::unique_ptr<Pass> CreateSqueezeTransposeOneDNNPass() {
// pd_op.squeeze + transpose2 -> onednn_op.fused_transpose
return std::make_unique<SqueezeTransposePass>();
}
} // namespace pir
REGISTER_IR_PASS(squeeze_transpose_onednn_fuse_pass, SqueezeTransposePass);
```
|
Walter Gilbert (born 1932) is an American scientist and Nobel laureate.
Walter Gilbert may also refer to:
Walter Gilbert (American football) (1915–1979), American football player
Walter Gilbert (cricketer) (1853–1924), English cricketer
Walter Gilbert (pilot) (1899–1986), Canadian aviator
Walter Gilbert (sculptor) (1871–1946), English sculptor
Walter J. "Wally" Gilbert (1900–1958), American athlete in baseball, football and basketball
Sir Walter Gilbert, 1st Baronet (1785–1853), British East India Company Army officer
Walter fitz Gilbert of Cadzow (died c. 1346), Scottish nobleman
See also
Walter G. Alexander (Walter Gilbert Alexander, 1880–1953), American physician and politician
Walter Dinsdale (Walter Gilbert Dinsdale, 1916–1982), Canadian politician
|
Murder on the Second Floor is a 1932 British thriller film directed by William C. McGann and starring Pat Paterson, John Longden and Sydney Fairbrother. The screenplay concerns a novelist who imagines the murders of his fellow boarding-house tenants. It was based on a play of the same name by Frank Vosper. Warner Brothers later remade it in Hollywood as Shadows on the Stairs (1941).
Cast
John Longden as Hugh Bromilow
Pat Paterson as Sylvia Armitage
Sydney Fairbrother as Miss Snell
Ben Field as Mr. Armitage
Florence Desmond as Lucy
Franklyn Bellamy as Joseph Reynolds
John Turnbull as Inspector
References
External links
1932 films
British mystery thriller films
1930s crime thriller films
British detective films
1930s English-language films
British black-and-white films
1930s mystery thriller films
Films set in London
Films directed by William C. McGann
1930s British films
|
```java
package com.thealgorithms.strings;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertThrows;
import java.util.List;
import java.util.stream.Stream;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.Arguments;
import org.junit.jupiter.params.provider.MethodSource;
public class LetterCombinationsOfPhoneNumberTest {
@ParameterizedTest
@MethodSource("provideTestCases")
public void testLetterCombinationsOfPhoneNumber(int[] numbers, List<String> expectedOutput) {
assertEquals(expectedOutput, LetterCombinationsOfPhoneNumber.getCombinations(numbers));
}
@ParameterizedTest
@MethodSource("wrongInputs")
void throwsForWrongInput(int[] numbers) {
assertThrows(IllegalArgumentException.class, () -> LetterCombinationsOfPhoneNumber.getCombinations(numbers));
}
private static Stream<Arguments> provideTestCases() {
return Stream.of(Arguments.of(null, List.of("")), Arguments.of(new int[] {}, List.of("")), Arguments.of(new int[] {2}, List.of("a", "b", "c")), Arguments.of(new int[] {2, 3}, List.of("ad", "ae", "af", "bd", "be", "bf", "cd", "ce", "cf")),
Arguments.of(new int[] {2, 3, 4}, List.of("adg", "adh", "adi", "aeg", "aeh", "aei", "afg", "afh", "afi", "bdg", "bdh", "bdi", "beg", "beh", "bei", "bfg", "bfh", "bfi", "cdg", "cdh", "cdi", "ceg", "ceh", "cei", "cfg", "cfh", "cfi")),
Arguments.of(new int[] {3, 3}, List.of("dd", "de", "df", "ed", "ee", "ef", "fd", "fe", "ff")), Arguments.of(new int[] {8, 4}, List.of("tg", "th", "ti", "ug", "uh", "ui", "vg", "vh", "vi")), Arguments.of(new int[] {2, 0}, List.of("a ", "b ", "c ")),
Arguments.of(new int[] {9, 2}, List.of("wa", "wb", "wc", "xa", "xb", "xc", "ya", "yb", "yc", "za", "zb", "zc")), Arguments.of(new int[] {0}, List.of(" ")), Arguments.of(new int[] {1}, List.of("")), Arguments.of(new int[] {2}, List.of("a", "b", "c")),
Arguments.of(new int[] {1, 2, 0, 4}, List.of("a g", "a h", "a i", "b g", "b h", "b i", "c g", "c h", "c i")));
}
private static Stream<Arguments> wrongInputs() {
return Stream.of(Arguments.of(new int[] {-1}), Arguments.of(new int[] {10}), Arguments.of(new int[] {2, 2, -1, 0}), Arguments.of(new int[] {0, 0, 0, 10}));
}
}
```
|
The 20th Century Limited was an express passenger train on the New York Central Railroad (NYC) from 1902 to 1967. The train traveled between Grand Central Terminal in New York City and LaSalle Street Station in Chicago, Illinois, along the railroad's "Water Level Route".
NYC inaugurated the 20th Century Limited as competition to the Pennsylvania Railroad, aimed at upper-class and business travellers. It made few station stops along the way and used track pans to take water at speed. On June15, 1938, streamlined train sets designed by Henry Dreyfuss were added to the route.
The 20th Century Limited was the flagship train of the New York Central and was advertised as "The Most Famous Train in the World". It was described in The New York Times as having been "[...] known to railroad buffs for 65 years as the world's greatest train", and its style was described as "spectacularly understated". The phrase "red-carpet treatment" is derived from passengers' walking to the train on a specially-designed crimson carpet.
History
Early history
The 20th Century Limited first ran on June17, 1902. It completed its run from New York to Chicago in 20hours, four hours less than previous trains, and arrived three minutes ahead of schedule. It offered a barbershop and secretarial services. The New York Times report stressed the routine nature of the trip, with no special procedures being followed and no extra efforts being made to break records. It said that there "was no excitement along the way," and quoted a railroad official's claim: "it is a perfectly practical run and will be continued." Engineer William Gates said, "This schedule can be made without any difficulty. I can do it every time, barring accidents."
The schedule cut two more hours off the run in June 1905, and, on the 21st of that month, the train was intentionally derailed on the Lake Shore & Michigan Southern Railway line at Mentor, Ohio, killing 21 passengers. It reverted to 20 hours in 1912 and was unchanged until 1932. In 1935, it dropped to 16hours, 30minutes; then to 16hours on June15, 1938, when lightweight cars were implemented.
The engine change point was moved to Croton–Harmon station in 1913, when the NYC line was electrified south of that point.
In the 1920s, the New York-Chicago fare was $32.70 plus the extra fare of $9.60, plus the Pullman charge (e.g. $9 for a lower berth), for a total of $51.30, equal to $ today. This fare entitled a passenger to a bed closed off from the aisle by curtains; a compartment to oneself cost more. In 1928, the peak year, the train earned revenue of $10million and was believed to be the most profitable train in the world.
The cars of the 20th Century Limited were lit with fluorescent lamps soon after their introduction, which coincided with the introduction of the new Art Deco train sets on June15, 1938.
New train sets
In 1938, industrial designer Henry Dreyfuss was commissioned by the New York Central to design streamlined train sets in Art Deco style, with the locomotive and passenger cars rendered in blues and grays (the colors of NYC). The streamlined sets were inaugurated on June 15, 1938. His design was probably the most famous American passenger train. The first new 20th Century Limited train left New York City at 18:00 Eastern Time and arrived at Chicago's La Salle Street Station the following morning at 09:00 Central Time, traveling the at an average . The eastbound train left La Salle Street Station in Chicago at 15:00 and arrived at Grand Central Terminal the following morning at 08:00. For a few years after World War II, the eastward schedule was shortened to 15½ hours.
In 1945, EMD diesel-electrics replaced steam, and two new diesel-electric-powered trainsets were commissioned. The replacement was inaugurated by General Dwight D. Eisenhower in September, 1948. This set was featured in postwar films such as North by Northwest and The Band Wagon.
Like many express passenger trains through the mid-1960s, the 20th Century Limited carried an East Division (E.D.) Railway Post Office (R.P.O.) car operated by the Railway Mail Service (RMS) of the United States Post Office Department which was staffed by USPOD clerks as a "fast mail" on each of its daily runs. The mails received by, postmarked, processed, sorted and dispatched from the 20th Century Limited RPOs were either canceled or backstamped (as appropriate) during the trip by hand-applied circular date stamps (CDS) reading "N.Y. & CHI. R.P.O. E.D. 20TH CEN.LTD." and the train's number: "25" (NY–CHI) or "26" (CHI–NY).
For much of its history before 1957, the all-Pullman train made station stops only at Grand Central Terminal and Harmon for New York–area passengers and LaSalle Street Station and Englewood for Chicago-area passengers. These traveled in as many as seven sections (each was a separate, complete train), of which the first was named the Advance 20th Century Limited. In 1957, the 20th Century Limited schedule added more station stops to the original four (two terminals and two suburban stops). In the 1960s, the NYC added slumbercoaches to the roster of sleeping cars.
Demise
By the late 1960s, the train was in decline. On December2, 1967 at 18:00, the half-full train left Grand Central Terminal's Track34 for the last time. As always, carnations were given to men and perfume and flowers to women boarding the train. The next day, it arrived at LaSalle Street Station in Chicago 9hours 50minutes late due to a freight derailment near Conneaut, Ohio, which forced a slow rerouting over the parallel Nickel Plate railroad freight line.
Present day
Amtrak now operates the Lake Shore Limited between New York Penn Station and Chicago Union Station. It follows a route similar to the 20th Century's, except west of Whiting, Indiana (near Chicago), where it switches to the former Pennsylvania Railroad's Pittsburgh, Fort Wayne and Chicago Railway.
On August26, 1999, the United States Postal Service issued 33-cent All Aboard! 20th Century American Trains commemorative stamps featuring five celebrated American passenger trains from the 1930s and 1940s. One of the five stamps features an image of a streamlined J-3a steam locomotive leading the 20th Century Limited out of the Chicago railyards on its way to New York, with the Board of Trade Building in the background.
Several 20th Century Limited traincars and its red carpet were included in the Grand Central Centennial Parade of Trains, part of the terminal centennial celebration in 2013.
For 2023, two of the restored traincars, Hickory Creek and Tavern-Lounge No. 43, are being offered for Spring and Fall day trip excursions between New York City and Albany, New York while attached to the rear of an Amtrak Empire Service train. In September, a special trip from New York to Chicago and back will be offered. All 2023 tickets were sold, but there is a waiting list.
Sample consists
Eastbound train #38—Advance 20th Century Limited, on February 7, 1930; Sampled at Chicago.
Locomotive: J-1 Class (4-6-4 Hudson) steam locomotive; NYC #5270;
Class CS Baggage-club car: NYC EAGLE HEIGHTS;
Class PS Sleeper (14-section): STAR VIEW;
Class PS Sleeper (8-section 1-drawing room 2-compartment): SPRING GAP;
Class PS Sleeper (6-compartment 3-drawing room): GLEN ALICE;
Class DA Dining car: NYC 387;
Class PS Sleeper (14-section): STAR SPUR;
Class PS Sleeper (10-section 2-double drawing rooms): GANNETT PEAK;
Class PS Sleeper (8-section 1-drawing room 2-compartments): GLOVER GAP;
Class PSO Sleeper-Buffet-Lounge-Observation (1-drawing room 1-single bedroom): MOHAWK VALLEY.
Westbound train #25—20th Century Limited, on March 17, 1938; Sampled at New York City
Locomotive: Class T3A Electric Locomotive;
Class MP Postal car: NYC #4857;
Class CS Baggage-club car: NYC VAN TWILLER;
Class PS Sleeper (8-section 1-drawing room 2-compartment): CENTACORRA;
Class PS Sleepers (6-section 6-double bedroom): POPLAR PARK;
Class PS Sleepers (6-section 6-double bedroom): POPLAR HIGHLANDS;
Class PS Sleeper (6-compartment 3-drawing room): GLEN ANNA;
Class DA Dining cars: NYC 654;
Class DA Dining cars: NYC 655;
Class PS Sleeper (6-section 6-double bedroom): POPLAR GROVE;
Class PS Sleepers (13-double bedroom): MACOMB HOUSE;
Class PS Sleepers (13-double bedroom): PRINGLE HOUSE;
Class PSO Sleeper-Buffet-Lounge-Observation (1-drawing room 1-single bedroom): ELKHART VALLEY.
Eastbound train #26—20th Century Limited, on September 6, 1943; departing Chicago.
Class J-3a (4-6-4 Hudson) steam locomotive: NYC 5450;
Class MB Baggage-mail car: NYC #5017;
Class DDL Dormitory-buffet-lounge car: CENTURY CLUB;
Class PS Sleeper (10-roomettes 5-double bedroom): CASCADE WONDER;
Class PS Sleeper (17-roomette): CITY OF CLEVELAND;
Class PS Sleeper (17-roomette): CITY OF DAYTON;
Class PS Sleeper (10-roomette 5-double bedroom): CASCADE GLORY;
Class PS Sleeper (10-roomette 5-double bedroom): CASCADE WHIRL;
Class PS Sleeper (4-Double Bedroom 4-compartment 2-drawing room): IMPERIAL FOUNTAIN;
Class DA Dining car: NYC 680;
Class DA Dining car: NYC 684;
Class PS Sleeper (4-double bedroom 4 compartment 2-drawing room); IMPERIAL CITY;
Class PS Sleeper (4-double bedroom 4 compartment 2-drawing room); IMPERIAL DOME;
Class PS Sleeper (13-double bedroom): ONONDAGA COUNTY;
Class PS Sleeper (13-double bedroom): HAMPDEN COUNTY;
Class PS Sleeper (13-double bedroom): MONTGOMERY COUNTY;
Class PS Sleeper (13-double bedroom): ASHTABULA COUNTY;
Class PSO Sleeper-Buffet-Lounge-Observation (2-double bedrooms; 1-compartment; 1-drawing room): MAUMEE RIVER.
Westbound train #25—20th Century Limited, on March 30, 1965, sampled at Cleveland, Ohio
E7A diesel locomotive: NYC 4025;
E8A diesel locomotive: NYC 4080;
E7A diesel locomotive: NYC 4007;
Class MB Baggage-mail car: NYC 5018;
Class CSB Baggage-dormitory car: NYC 8979;
Class PB Coach: NYC 2942;
Class DG Grill-diner: NYC 450;
Class PAS Sleepercoach (16-Single Room 10-Double Room): NYC 10811;
Class PAS Sleepercoach (16-Single Room 10-Double Room): NYC 10817;
Class PS Sleeper (22-roomette): NYC 10355 BOSTON HARBOR;
Class DKP Kitchen-Lounge Car: NYC 477;
Class DE Dining Room Car: NYC 406;
Class PS Sleeper (10-roomette 6-double bedroom): NYC 10171 CURRENT RIVER;
Class PS Sleeper (12-double bedroom): NYC 10511 PORT OF DETROIT;
Class PS Sleeper (12-double bedroom): NYC 10501 PORT BYRON;
Class PSO Sleeper-Buffet-Lounge-Observation (5-double bedroom): NYC 10633 HICKORY CREEK.
Legacy
The 20th Century Limited was advertised as "The Most Famous Train in the World". In the year of its last run, The New York Times said that it "...was known to railroad buffs for 65 years as the world's greatest train". Its style was described as "spectacularly understated ... suggesting exclusivity and sophistication". Passengers walked to the train in New York and Chicago on a specially designed crimson carpet, giving rise to the phrase "the red-carpet treatment". "Transportation historians", said the writers of The Art of the Streamliner, "consistently rate the 1938edition of the Century to be the world's ultimate passenger conveyance—at least on the ground".
In 1926, Lucille Ball made her first trip to California from New York on the 20th Century Limited.
On 15 October 1942 after a meeting in Chicago on the Manhattan Project General Leslie Groves invited J. Robert Oppenheimer to join himself, James C. Marshall and Kenneth Nichols on their return trip to New York. After dinner on the train they discussed the project while squeezed into Nichol’s one-person roomette (of about 40" by 80" or 1m by 2m). Shortly afterwards Oppenheimer was appointed to head the Los Alamos Laboratory.
Regular passengers included Theodore Roosevelt, William Jennings Bryan, Lillian Russell, "Diamond Jim" Brady, J. P. Morgan, Enrico Caruso and Nellie Melba.
In fiction
The 20th Century Limited was the setting for a Broadway musical composed by Cy Coleman and written by Betty Comden and Adolph Green entitled On the Twentieth Century, about the romantic complications of a beautiful actress and an egocentric producer/director. Madeline Kahn and John Cullum starred in the award-winning production (five Tony Awards out of nine nominations), whose spectacular production design featured both the lavish Art Deco details of the time period as well innovative staging to open up what could be cramped quarters inside a train car. The musical was based on the 1932 Ben Hecht-Charles MacArthur stage play of the same subject, which in 1934 they adapted as a film entitled Twentieth Century, directed by Howard Hawks, with Carole Lombard and John Barrymore in the lead roles. The train also figured prominently as a setting for major scenes in both Alfred Hitchcock's North by Northwest and George Roy Hill's The Sting (which incorrectly had the train arrive in Chicago at night, not in the morning as it did in reality).
While doing research for her novel Atlas Shrugged, Ayn Rand learned the operation of the train and subsequently devised a fictional company– the "Twentieth Century Motor Company"– which would be important to the novel's plot.
The 20th Century Limited is frequently referenced as a main means of train transportation of the fictional Van Dorn detective Isaac Bell in several Clive Cussler period books featuring the early 1900s detective. The Wrecker (Clive Cussler with Justin Scott) is the second in the long-running series and has Bell with other Van Dorn detectives riding the 20th Century Limited often as they pursue a train-wrecking villain.
Other namesakes
The 20th Century Limited was also the inspiration for several cultural works. A recipe for the 20th Century cocktail was published in the Cafe Royal Bar Book in 1937.
See also
George Henry Daniels
References
General
Specific
Further reading
External links
Greatest Highway in the World Gutenberg.org e-book version of The Greatest Highway in the World: Historical, Industrial and Descriptive Information of the Towns, Cities and Country passed through between New York and Chicago via The New York Central Lines (c. 1921)
Named passenger trains of the United States
Night trains of the United States
Passenger trains of the New York Central Railroad
Railway services introduced in 1902
Railway services discontinued in 1967
1902 establishments in the United States
1967 disestablishments in the United States
North American streamliner trains
|
```objective-c
/**
* @file winposix.h
*
* @copyright 2015-2024 Bill Zissimopoulos
*/
/*
* This file is part of WinFsp.
*
* You can redistribute it and/or modify it under the terms of the GNU
* Foundation.
*
* in accordance with the commercial license agreement provided in
* conjunction with the software. The terms and conditions of any such
* commercial license agreement shall govern, supersede, and render
* ineffective any application of the GPLv3 license to this software,
* notwithstanding of any reference thereto in the software or
* associated repository.
*/
#ifndef WINPOSIX_H_INCLUDED
#define WINPOSIX_H_INCLUDED
#define O_RDONLY _O_RDONLY
#define O_WRONLY _O_WRONLY
#define O_RDWR _O_RDWR
#define O_APPEND _O_APPEND
#define O_CREAT _O_CREAT
#define O_EXCL _O_EXCL
#define O_TRUNC _O_TRUNC
#define PATH_MAX 1024
#define AT_FDCWD -2
#define AT_SYMLINK_NOFOLLOW 2
typedef struct _DIR DIR;
struct dirent
{
struct fuse_stat d_stat;
char d_name[255 * 4];
};
char *realpath(const char *path, char *resolved);
int statvfs(const char *path, struct fuse_statvfs *stbuf);
int open(const char *path, int oflag, ...);
int fstat(int fd, struct fuse_stat *stbuf);
int ftruncate(int fd, fuse_off_t size);
int pread(int fd, void *buf, size_t nbyte, fuse_off_t offset);
int pwrite(int fd, const void *buf, size_t nbyte, fuse_off_t offset);
int fsync(int fd);
int close(int fd);
int lstat(const char *path, struct fuse_stat *stbuf);
int chmod(const char *path, fuse_mode_t mode);
int lchown(const char *path, fuse_uid_t uid, fuse_gid_t gid);
int lchflags(const char *path, uint32_t flags);
int truncate(const char *path, fuse_off_t size);
int utime(const char *path, const struct fuse_utimbuf *timbuf);
int utimensat(int dirfd, const char *path, const struct fuse_timespec times[2], int flag);
int setcrtime(const char *path, const struct fuse_timespec *tv);
int unlink(const char *path);
int rename(const char *oldpath, const char *newpath);
int lsetxattr(const char *path, const char *name, const void *value, size_t size, int flags);
int lgetxattr(const char *path, const char *name, void *value, size_t size);
int llistxattr(const char *path, char *namebuf, size_t size);
int lremovexattr(const char *path, const char *name);
int mkdir(const char *path, fuse_mode_t mode);
int rmdir(const char *path);
DIR *opendir(const char *path);
int dirfd(DIR *dirp);
void rewinddir(DIR *dirp);
struct dirent *readdir(DIR *dirp);
int closedir(DIR *dirp);
long WinFspLoad(void);
#undef fuse_main
#define fuse_main(argc, argv, ops, data)\
(WinFspLoad(), fuse_main_real(argc, argv, ops, sizeof *(ops), data))
#endif
```
|
Oskar von Hardegg (19 October 1815 – 25 September 1877) was a Württemberger officer who was notable for being the commanding Württemberger figure at the Battle of Werbach during the Austro-Prussian War.
Biography
Hardegg was the fifth son of the chief medical officer and personal physician Johann Georg von Hardegg in Ludwigsburg. His brother was the military writer .
He grew up in his home town, attended the Lyceum there and, from March 1831, the . In April 1834 he left the educational institution as a lieutenant and joined the 7th Infantry Regiment of the Württemberg Army in Stuttgart. After some time he was transferred to the Pioneer Corps, in which he was promoted to Oberleutnant in 1842. He then joined the General Staff and in 1847 advanced to the rank of captain . When Generalleutnant took over the War Office on 2 July 1850; he made Hardegg his adjutant. In the course of his work in the Ministry of War, Hardegg was promoted to Major in 1850, Lieutenant colonel in 1852 and promoted to colonel in 1856. In order to be able to gain practical experience again, Hardegg now asked to be transferred to a line infantry regiment and was appointed commander of the 4th Infantry Regiment. He served the regiment from 22 September 1856 to 27 April 1857. He was then promoted to major general, Hardegg became brigade commander and lieutenant governor of Ulm. In 1865 he was promoted to lieutenant general, division commander and governor of Stuttgart. After the resignation of Minister of War on 5 May 1866, he took over the management of the Ministry of War.
At the outbreak of the Austro-Prussian War in 1866, as commander of the field division, he led the troops into the Battle of Tauberbischofsheim. During the war, he had a dispute with his Bavarian counterpart, Siegmund von Pranckh over whether to use the new Prussian system or the Swiss Guard System. Knowing the danger the lack of centralization the Southern German States, in October 1866, Hardegg sent a memorandum to Baden, Württemberg, Hesse-Darmstadt, and Bavaria to work on standardizing the equipment, organization, and training of their armies. After the end of the war, he returned to the War Ministry in Stuttgart and retired in April 1867 when the Luxembourg question occurred.
In addition to his professional and specialist knowledge, Hardegg cultivated music with a special passion, both as a pianist and as a composer. One of his most popular compositions was the song Schwarzes Band.
Family
Oskar von Hardegg married Ottilie Kausler, the daughter of Colonel von Kausler. The marriage produced two children. The daughter married the Bavarian Colonel Freiherr von Freyberg-Eisenberg in Dillingen, Hardegg's son became a captain and commander of the 8th Württemberg Infantry Regiment No. 126.
Awards
Order of the Crown, 1851
Friedrich Order, 1864
Military Merit Order, 18 August 1866 (Knight's Cross)
References
Bibliography
Hermann Niethammer: Das Offizierskorps des Infanterie-Regiments „Kaiser Friedrich, König von Preußen“ (7. Württ.) Vol. 125. 1809–1909. Stuttgart 1909. p. 119.
Staatsanzeiger für Württemberg. N. 208 Vol. 8. September 1877. p. 1425.
Schwäbische Chronik.'' N. 203 Vol. 23, August 1877. p. 1813.
1815 births
1877 deaths
People of the Austro-Prussian War
Major generals of Württemberg
People from Ludwigsburg
Military personnel from Baden-Württemberg
Minister of War of Württemberg
|
Mihkel Varrik (also Mihkel Warrik; 9 September 1879 Rannu Parish, Tartu County - 8 January 1967 Toronto) was an Estonian politician. He was a member of Estonian Constituent Assembly. On 6 October 1919, he resigned his position and he was replaced by Anna Tellman.
References
1879 births
1967 deaths
Members of the Estonian Constituent Assembly
|
```xml
import * as React from 'react';
import { Image } from '../Image';
const icon = require('../../assets/chevron-right-icon.png');
export function ChevronRightIcon(props: Partial<React.ComponentProps<typeof Image>>) {
return <Image source={icon} {...props} />;
}
```
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.