text
stringlengths 1
22.8M
|
|---|
Thomas Mainwaring Penson (1818–64) was an English surveyor and architect. His father and grandfather, who were both named Thomas Penson, were also surveyors and architects. His grandfather Thomas Penson (c. 1760–1824) worked from an office in Wrexham, North Wales, and was responsible for the design of bridges, roads, gaols and buildings in North Wales. His son Thomas Penson (1790–1859) was county surveyor to a number of Welsh counties and also designed bridges. He later moved to Oswestry, Shropshire where he established an architectural practice. Thomas Mainwaring Penson was born in Oswestry, and was educated at Oswestry School. His elder brother was Richard Kyrke Penson who became a partner in the Oswestry practice in 1854, before developing an extensive architectural practice of his own, mainly in South Wales. Thomas Mainwaring Penson trained in his father's practice. Thomas Mainwaring initially designed buildings in the area of the practice, including stations for the Shrewsbury and Chester Railway.
He was then appointed as County Surveyor of Cheshire and moved to Chester, Cheshire. Here he laid out Overleigh Cemetery in 1848–50. This has been designated by English Heritage at Grade II in the National Register of Historic Parks and Gardens. He is credited with pioneering the Black-and-white Revival (vernacular or half-timbered) style in the city during the 1850s. His first building in this style was constructed in Eastgate Street in 1852, but it has since been demolished. His other notable buildings in Chester were designed both in Black-and-white Revival and in other styles. They include Crypt Chambers (1858) in Eastgate Street, which is in Gothic Revival style, Queen Hotel (1860–61) opposite Chester railway station, which is Italianate, and Grosvenor Hotel (1863–86) in Eastgate Street, which is constructed in a mixture of timber-framing, brick and stone. These three buildings have all been designated by English Heritage as listed buildings, Crypt Chambers at Grade I, and the other two at Grade II.
See also
List of works by Thomas Mainwaring Penson
References
Bibliography
1818 births
1864 deaths
19th-century English architects
People from Oswestry
People from Chester
People educated at Oswestry School
Architects from Shropshire
|
Andrés Antonio Parada Barrera (born 20 March 1984) is a Chilean footballer.
He played for Deportes Iquique.
Honours
Club
Universidad Católica
Primera División de Chile (1): 2005 Clausura
Provincial Osorno
Primera B (1): 2007
References
1984 births
Living people
Chilean men's footballers
Chilean Primera División players
Provincial Osorno footballers
Deportes Copiapó footballers
O'Higgins F.C. footballers
Club Deportivo Universidad Católica footballers
San Luis de Quillota footballers
Santiago Morning footballers
Men's association football goalkeepers
Footballers from Santiago
|
Ekhtyiarabad-e Do Ziyarati (, also Romanized as Ekhtyīārābād-e Do Zīyāratī; also known as Ekhtyīārābād) is a village in Nakhlestan Rural District, in the Central District of Kahnuj County, Kerman Province, Iran. At the 2006 census, its population was 111, in 25 families.
References
Populated places in Kahnuj County
|
```kotlin
package wangdaye.com.geometricweather.remoteviews.presenters
import android.appwidget.AppWidgetManager
import android.content.ComponentName
import android.content.Context
import android.widget.RemoteViews
import androidx.annotation.LayoutRes
import wangdaye.com.geometricweather.GeometricWeather
import wangdaye.com.geometricweather.R
import wangdaye.com.geometricweather.background.receiver.widget.WidgetMaterialYouCurrentProvider
import wangdaye.com.geometricweather.common.basic.models.Location
import wangdaye.com.geometricweather.common.basic.models.options.NotificationTextColor
import wangdaye.com.geometricweather.settings.SettingsManager
import wangdaye.com.geometricweather.theme.resource.ResourceHelper
import wangdaye.com.geometricweather.theme.resource.ResourcesProviderFactory
class MaterialYouCurrentWidgetIMP: AbstractRemoteViewsPresenter() {
companion object {
@JvmStatic
fun isEnable(context: Context): Boolean {
return AppWidgetManager.getInstance(
context
).getAppWidgetIds(
ComponentName(
context,
WidgetMaterialYouCurrentProvider::class.java
)
).isNotEmpty()
}
@JvmStatic
fun updateWidgetView(context: Context, location: Location) {
AppWidgetManager.getInstance(context).updateAppWidget(
ComponentName(context, WidgetMaterialYouCurrentProvider::class.java),
buildRemoteViews(context, location, R.layout.widget_material_you_current)
)
}
}
}
private fun buildRemoteViews(
context: Context,
location: Location,
@LayoutRes layoutId: Int,
): RemoteViews {
val views = RemoteViews(
context.packageName,
layoutId
)
val weather = location.weather
val dayTime = location.isDaylight
val provider = ResourcesProviderFactory.getNewInstance()
val settings = SettingsManager.getInstance(context)
val temperatureUnit = settings.temperatureUnit
if (weather == null) {
return views
}
// current.
views.setImageViewUri(
R.id.widget_material_you_current_currentIcon,
ResourceHelper.getWidgetNotificationIconUri(
provider,
weather.current.weatherCode,
dayTime,
false,
NotificationTextColor.LIGHT
)
)
views.setTextViewText(
R.id.widget_material_you_current_currentTemperature,
weather.current.temperature.getShortTemperature(context, temperatureUnit)
)
// pending intent.
views.setOnClickPendingIntent(
android.R.id.background,
AbstractRemoteViewsPresenter.getWeatherPendingIntent(
context,
location,
GeometricWeather.WIDGET_MATERIAL_YOU_CURRENT_PENDING_INTENT_CODE_WEATHER
)
)
return views
}
```
|
```shell
Proxifying `ssh` connections
Logging dropped firewall packets
Find services running on your host
Get real network statistics with `slurm`
Getting the connection speed from the terminal
```
|
```c
/*
*
* This file is part of librtmp.
*
* librtmp is free software; you can redistribute it and/or modify
* published by the Free Software Foundation; either version 2.1,
* or (at your option) any later version.
*
* librtmp is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
*
* along with librtmp see the file COPYING. If not, write to
* the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301, USA.
* path_to_url
*/
#include <assert.h>
#include <ctype.h>
#include <stdarg.h>
#include <stdio.h>
#include <string.h>
#include "log.h"
#include "rtmp_sys.h"
#define MAX_PRINT_LEN 2048
RTMP_LogLevel RTMP_debuglevel = RTMP_LOGERROR;
static int neednl;
static FILE *fmsg;
static RTMP_LogCallback rtmp_log_default, *cb = rtmp_log_default;
static const char *levels[] = {
"CRIT", "ERROR", "WARNING", "INFO",
"DEBUG", "DEBUG2"};
static void rtmp_log_default(int level, const char *format, va_list vl) {
char str[MAX_PRINT_LEN] = "";
vsnprintf(str, MAX_PRINT_LEN - 1, format, vl);
/* Filter out 'no-name' */
if (RTMP_debuglevel < RTMP_LOGALL && strstr(str, "no-name") != NULL)
return;
if (!fmsg) fmsg = stderr;
if (level <= RTMP_debuglevel) {
if (neednl) {
putc('\n', fmsg);
neednl = 0;
}
fprintf(fmsg, "%s: %s\n", levels[level], str);
#ifdef _DEBUG
fflush(fmsg);
#endif
}
}
void RTMP_LogSetOutput(FILE *file) {
fmsg = file;
}
void RTMP_LogSetLevel(RTMP_LogLevel level) {
RTMP_debuglevel = level;
}
void RTMP_LogSetCallback(RTMP_LogCallback *cbp) {
cb = cbp;
}
RTMP_LogLevel RTMP_LogGetLevel() {
return RTMP_debuglevel;
}
void RTMP_Log(int level, const char *format, ...) {
va_list args;
va_start(args, format);
cb(level, format, args);
va_end(args);
}
static const char hexdig[] = "0123456789abcdef";
void RTMP_LogHex(int level, const uint8_t *data, unsigned long len) {
unsigned long i;
char line[50], *ptr;
if (level > RTMP_debuglevel)
return;
ptr = line;
for (i = 0; i < len; i++) {
*ptr++ = hexdig[0x0f & (data[i] >> 4)];
*ptr++ = hexdig[0x0f & data[i]];
if ((i & 0x0f) == 0x0f) {
*ptr = '\0';
ptr = line;
RTMP_Log(level, "%s", line);
} else {
*ptr++ = ' ';
}
}
if (i & 0x0f) {
*ptr = '\0';
RTMP_Log(level, "%s", line);
}
}
void RTMP_LogHexString(int level, const uint8_t *data, unsigned long len) {
#define BP_OFFSET 9
#define BP_GRAPH 60
#define BP_LEN 80
char line[BP_LEN];
unsigned long i;
if (!data || level > RTMP_debuglevel)
return;
/* in case len is zero */
line[0] = '\0';
for (i = 0; i < len; i++) {
int n = i % 16;
unsigned off;
if (!n) {
if (i) RTMP_Log(level, "%s", line);
memset(line, ' ', sizeof(line) - 2);
line[sizeof(line) - 2] = '\0';
off = i % 0x0ffffU;
line[2] = hexdig[0x0f & (off >> 12)];
line[3] = hexdig[0x0f & (off >> 8)];
line[4] = hexdig[0x0f & (off >> 4)];
line[5] = hexdig[0x0f & off];
line[6] = ':';
}
off = BP_OFFSET + n * 3 + ((n >= 8) ? 1 : 0);
line[off] = hexdig[0x0f & (data[i] >> 4)];
line[off + 1] = hexdig[0x0f & data[i]];
off = BP_GRAPH + n + ((n >= 8) ? 1 : 0);
if (isprint(data[i])) {
line[BP_GRAPH + n] = data[i];
} else {
line[BP_GRAPH + n] = '.';
}
}
RTMP_Log(level, "%s", line);
}
/* These should only be used by apps, never by the library itself */
void RTMP_LogPrintf(const char *format, ...) {
char str[MAX_PRINT_LEN] = "";
int len;
va_list args;
va_start(args, format);
len = vsnprintf(str, MAX_PRINT_LEN - 1, format, args);
va_end(args);
if (RTMP_debuglevel == RTMP_LOGCRIT)
return;
if (!fmsg) fmsg = stderr;
if (neednl) {
putc('\n', fmsg);
neednl = 0;
}
if (len > MAX_PRINT_LEN - 1)
len = MAX_PRINT_LEN - 1;
fprintf(fmsg, "%s", str);
if (str[len - 1] == '\n')
fflush(fmsg);
}
void RTMP_LogStatus(const char *format, ...) {
char str[MAX_PRINT_LEN] = "";
va_list args;
va_start(args, format);
vsnprintf(str, MAX_PRINT_LEN - 1, format, args);
va_end(args);
if (RTMP_debuglevel == RTMP_LOGCRIT)
return;
if (!fmsg) fmsg = stderr;
fprintf(fmsg, "%s", str);
fflush(fmsg);
neednl = 1;
}
```
|
```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 "ion/remote/remoteserver.h"
#if !ION_PRODUCTION
#include "ion/base/invalid.h"
#include "ion/base/logging.h"
#include "ion/base/once.h"
#include "ion/base/stringutils.h"
#include "ion/base/zipassetmanager.h"
#include "ion/base/zipassetmanagermacros.h"
#include "ion/remote/calltracehandler.h"
#include "ion/remote/nodegraphhandler.h"
#include "ion/remote/resourcehandler.h"
#include "ion/remote/settinghandler.h"
#include "ion/remote/shaderhandler.h"
#include "ion/remote/tracinghandler.h"
ION_REGISTER_ASSETS(IonRemoteGetUri);
ION_REGISTER_ASSETS(IonRemoteRoot);
#endif // !ION_PRODUCTION
namespace ion {
namespace remote {
namespace {
#if !ION_PRODUCTION
static const int kRemoteThreads = 8;
static const char kRootPage[] =
"<!DOCTYPE html>"
"<html>\n"
"<head>\n"
" <title>Ion Remote</title>\n"
" <link rel=\"stylesheet\" href=\"/ion/css/style.css\">\n"
" <script type=\"text/javascript\">\n"
" window.location = \"/ion/settings/#^\"\n"
" </script>\n"
"</head>\n"
"<body></body>\n"
"</html>\n";
class IonRootHandler : public HttpServer::RequestHandler {
public:
IonRootHandler() : RequestHandler("/ion") {}
~IonRootHandler() override {}
const std::string HandleRequest(const std::string& path_in,
const HttpServer::QueryMap& args,
std::string* content_type) override {
const std::string path = path_in.empty() ? "index.html" : path_in;
if (path == "index.html") {
return kRootPage;
} else {
const std::string& data =
base::ZipAssetManager::GetFileData("ion/" + path);
return base::IsInvalidReference(data) ? std::string() : data;
}
}
};
// Override / to redirect to /ion so that when clients connect to the root they
// will not get a 404.
class RootHandler : public HttpServer::RequestHandler {
public:
RootHandler() : RequestHandler("/") {}
~RootHandler() override {}
const std::string HandleRequest(const std::string& path_in,
const HttpServer::QueryMap& args,
std::string* content_type) override {
if (path_in.empty() || path_in == "index.html") {
*content_type = "text/html";
return kRootPage;
} else {
return std::string();
}
}
};
static void RegisterAssetsForRemoteServer() {
IonRemoteGetUri::RegisterAssets();
IonRemoteRoot::RegisterAssets();
}
#else
static const int kRemoteThreads = 0;
#endif // !ION_PRODUCTION
} // anonymous namespace
RemoteServer::RemoteServer(int port)
: HttpServer(port, kRemoteThreads) {
Init(port);
}
RemoteServer::RemoteServer(
const gfx::RendererPtr& renderer,
const gfxutils::ShaderManagerPtr& shader_manager,
const gfxutils::FramePtr& frame,
int port) : HttpServer(port, kRemoteThreads) {
#if !ION_PRODUCTION
Init(port);
// Create and register NodeGraphHandler.
node_graph_handler_.Reset(new NodeGraphHandler);
node_graph_handler_->SetFrame(frame);
RegisterHandler(node_graph_handler_);
// Register all other handles.
RegisterHandler(
HttpServer::RequestHandlerPtr(
new CallTraceHandler()));
RegisterHandler(
HttpServer::RequestHandlerPtr(
new ResourceHandler(renderer)));
RegisterHandler(
HttpServer::RequestHandlerPtr(
new SettingHandler()));
RegisterHandler(
HttpServer::RequestHandlerPtr(
new ShaderHandler(shader_manager, renderer)));
RegisterHandler(
HttpServer::RequestHandlerPtr(
new TracingHandler(frame, renderer)));
#endif
}
void RemoteServer::Init(int port) {
#if !ION_PRODUCTION
ION_STATIC_ONCE(RegisterAssetsForRemoteServer);
static const char kHeaderHtml[] =
"<div class=\"ion_header\">\n"
"<span><a href=\"/ion/resources/\">OpenGL resources</a></span>\n"
"<span><a href=\"/ion/settings/#^\">Settings</a></span>\n"
"<span><a href=\"/ion/shaders/shader_editor\">Shader editor</a></span>\n"
"<span><a href=\"/ion/nodegraph\">Node graph display</a></span>\n"
"<span><a href=\"/ion/tracing\">OpenGL tracing</a></span>\n"
"<span><a href=\"/ion/calltrace\">Run-time profile "
"diagram</a></span></div>\n";
SetHeaderHtml(kHeaderHtml);
// Register the root handler.
if (!IsRunning() && port) {
LOG(ERROR) << "*** ION: Unable to start Remote server.";
} else {
RegisterHandler(
HttpServer::RequestHandlerPtr(new(base::kLongTerm) RootHandler));
RegisterHandler(
HttpServer::RequestHandlerPtr(new(base::kLongTerm) IonRootHandler));
}
#endif
}
void RemoteServer::AddNode(const gfx::NodePtr& node) const {
#if !ION_PRODUCTION
HttpServer::HandlerMap handler_map = GetHandlers();
auto iter = handler_map.find("/ion/nodegraph");
if (iter != handler_map.end()) {
// Safe because we know a priori that this RequestHandler can be
// downcasted to a NodeGraphHandler.
static_cast<NodeGraphHandler*>(iter->second.Get())->AddNode(node);
}
#endif
}
bool RemoteServer::RemoveNode(const gfx::NodePtr& node) const {
#if !ION_PRODUCTION
HttpServer::HandlerMap handler_map = GetHandlers();
auto iter = handler_map.find("/ion/nodegraph");
if (iter != handler_map.end()) {
// Safe because we know a priori that this RequestHandler can be
// downcasted to a NodeGraphHandler.
return static_cast<NodeGraphHandler*>(iter->second.Get())->RemoveNode(node);
}
#endif
return false;
}
RemoteServer::~RemoteServer() {}
} // namespace remote
} // namespace ion
```
|
Alan Deyermond FBA (24 February 1932 – 19 September 2009) was a British professor of medieval Spanish literature and Hispanist. His obituary called him "the English-speaking world's leading scholar of medieval Hispanic literature". He spent his academic career associated with one University of London college, Westfield College (later merged with Queen Mary College, to form Queen Mary and Westfield College).
Deyermond started his career in 1955 as a lecturer at Westfield College, London. When Westfield merged with Queen Mary College in 1992, he moved to the Mile End site. In the period 1978–1980 he held a joint chair at Westfield and at Princeton University.
Biography
Deyermond was born in Cairo, Egypt, where his father, an officer in the British Army, was stationed. He returned to England with his family in 1936. He began his secondary schooling in Liverpool, and switched to Victoria College, Jersey after the family moved in 1946. He entered Pembroke College, Oxford in 1950 on a scholarship, to read Modern Languages. An upper-level course which introduced Medieval Spanish literature showed him that much fruitful research could be accomplished in that field, and this became the focus of his subsequent research.
In 1953 Deyermond began BLitt research. He published his first article in 1954. He became an assistant lecturer at Westfield in 1955; he received his advanced degree in 1957. Also in 1957, he married Ann Bracken, a History graduate of St Hugh's College, Oxford (they had one daughter, Ruth). He became a tenured professor in 1969. From 1986 to 1989 he was Vice-Principal of Westfield. From 1978 to 1980 he held a joint Chair, split between Westfield and Princeton University. He was visiting professor at the University of Wisconsin (1972), UCLA (1977), Northern Arizona University (1986), Johns Hopkins University (1987), Universidad Nacional Autónoma de México (1992), Universidade da Coruña (1996), UC Irvine (Distinguished Visiting Professor, 1998), and Spanish National Research Council (2002–04).
Deyermond was a vegetarian from the age of 50 and a lifelong advocate of animal welfare and humane treatment. He was an active supporter of women's rights and feminist academic freedom. He was a member of the Liberal Party in the 1950s and 1960s, when he was involved in the Radical Reform Group. Throughout his life, he was an active member of the Anglican Church. He died on 19 September 2009.
Published works
Deyermond's published output was prodigious – 40 books, written or edited, and almost 200 articles ranging through four centuries of medieval Hispanic literature. He recognised that a comprehensive study of Medieval literature would require several books which exist for studies in English but which were lacking for Spanish. He particularly lamented the lack of complete dictionaries, bibliographies and historical syntheses; as a result he authored the medieval volume for the Ernest Benn History of Spanish Literature (1969), which addressed the lack of an historical synthesis.
His volumes of History and Criticism of Spanish Literature (1980 and 1991) carry an in-depth bibliography. A twenty-year research effort culminated in Lost Literature of the Castilian Middle Ages (1995), which Deyermond cited as his favourite work. His last major work was as editor of A Century of British Medieval Studies for the British Academy (2007).
Deyermond founded the Medieval Hispanic Research Seminar (1968) at Westfield, which has come to attract scholars from around the world. As part of the Seminar's scope, Deyermond began publishing (1995) the Publications of the Medieval Hispanic Research Seminar, which carried articles that would be too long for a journal but not book-length. Some sixty volumes were issued, with Deyermond performing nearly all the work.
Deyermond participated in founding Tamesis Books (now part of Boydell & Brewer) and of the series Research Bibliographies & Checklists (Grant & Cutler), of which he was General Editor. He was General Editor of Critical Guides to Spanish Texts (Grant & Cutler).
Partial list of published works
Alan Deyermond, A Century of British Medieval Studies (British Academy Centenary Monographs, 2007)
Alan Deyermond, Keith Whinnom, Jeremy Lawrance, The Textual History and Authorship of Celestina (Department of Hispanic Studies, Queen Mary, University of London, 2007)
Alan Deyermond, David Graham Pattison, Eric Southworth, Peter Edward Russell Mio Cid Studies: 'some Problems of Diplomatic' Fifty Years on (Dept. of Hispanic Studies, Queen Mary, University of London, 2002)
Alan Deyermond, Point of View in the Ballad: The Prisoner, The Lady and the Shepherd and Others (Department of Hispanic Studies, Queen Mary and Westfield College, 1996)
Alan Deyermond, Historical Literature in Medieval Iberia (Department of Hispanic Studies, Queen Mary and Westfield College, 1996)
Alan Deyermond, La literatura perdida de la Edad Media castellana: catálogo y estudio, I: Épica y romances, Obras de Referencia, 7 (Salamanca: Ediciones Univ. de Salamanca)
Alan Deyermond, Historia De La Literatura Espanola : La Edad Media (Letras e ideas: Instrumenta) (Editorial Ariel, 1995)
Alan Deyermond, Jeremy Lawrance (eds), Letters and Society in Fifteenth-century Spain: Studies Presented to P.E. Russell on His Eightieth Birthday (Dolphin Book Co., 1993)
Alan Deyermond, Tradiciones y puntos de vista en la ficción sentimental (UNAM, 1993)
Alan Deyermond and Charles Davis (eds.), Golden Age Spanish Literature: Studies in Honour of John Varey by His Colleagues and Pupils (Westfield College, 1991)
Alan Deyermond, "Mio Cid" Studies (Támesis Books, 1977)
Alan Deyermond, The Lost Literature of Medieval Spain: Notes for a Tentative Catalogue (Medieval Research Seminar, Department of Spanish, Westfield College, 1977)
Alan Deyermond, Lazarillo de Tormes: A Critical Guide (Grant and Cutler, 1975)
Alan Deyermond, Historia de la literatura española: La edad media (Editorial Ariel, 1973)
Alan Deyermond, A Literary History of Spain: The Middle Ages (Barnes & Noble, 1971)
Alan Deyermond, Epic Poetry and the Clergy: Studies on the Mocedades de Rodrigo (Tamesis Books, 1968)
Alan Deyermond, The Petrarchan Sources of La Celestina'' (Oxford: Oxford University Press, 1961; with new preface and supplementary bibliography, Greenwood, 1975, )
Honours
Deyermond became a fellow of the British Academy in 1988. In June 2009 he was elected corresponding Fellow of the Real Academia Española, a distinction granted very few foreign academics.
Honours were heaped upon him by scholarly societies worldwide. When he retired in 1997, two festschrifts were issued in his honour (the first such issue in his honour was compiled by American scholars in 1986). He gave hundreds of lectures and conference papers in over a dozen countries.
Deyermond received honorary degrees from the universities of Oxford, Valencia, and Georgetown. He was a Fellow of the British Academy and became one of the small number of corresponding members of the Real Academia Española in 2009. He was elected a Corresponding Fellow of the Medieval Academy of America in 1979. In 1994 he was awarded the Nebrija Prize, given each year by the University of Salamanca to the non-Spanish scholar who has contributed most to the understanding of Spanish culture and the Spanish language.
A reflection of his standing in the world of Hispanism and medieval studies was his presidency of the :es:Asociación Internacional de Hispanistas (1992–95; honorary life president since 1995) and of the International Courtly Literature Society (1983). In 1985 he was made a socio de honour of the Asociación Hispánica de Literatura Medieval and, since 1999, an honorary fellow of Queen Mary, University of London.
References
Weblinks
David Hook. "Alan Deyermond (1932-2009)", in: Asociación hispánica de Literatura Medieval.Miembros de Honor
English literary critics
Literary critics of Spanish
Fellows of the British Academy
2009 deaths
Academics of Westfield College
Academics of Queen Mary University of London
British Hispanists
People educated at Calderstones School
1932 births
Corresponding Fellows of the Medieval Academy of America
|
Whitney Lee Thompson Forrester (born September 26, 1987) is an American plus-size model and is the winner of the tenth cycle of America's Next Top Model.
Early life
Before her appearance on the show, Thompson worked locally in northern Florida and appeared on the cover of Jacksonville Magazine three times. She attended Duncan U. Fletcher High School and the University of North Florida.
America's Next Top Model
Thompson competed against 13 other contestants to win cycle 10 of America's Next Top Model. She was selected as one of the finalists to enter the Top Model house. Almost every judge, except for Tyra Banks, criticized her performances and personality as being "too pageant" and "fake", this came along by a CoverGirl commercial, Thompson landed in the bottom two with contestant Lauren Utter. Thompson received a first call-out during the music-themed photo shoot, and won one CoverGirl of the Week title, from the final photo-shoot challenge of cycle 10. She landed in the bottom two a total of four times, which makes her the winner with most bottom two appearances.
Thompson competed in the finale against Anya Kop and won the title, making her the first plus-size model to win the show.
Although she is naturally a brunette, Thompson received blonde hair extensions for her makeover on the show. After the show, she changed her hair color to dark blonde.
The prize package included a contract with CoverGirl cosmetics and a contract with Elite Model Management. She also received the cover and six-page editorial spread in the July 2008 issue of Seventeen magazine. Thompson's CoverGirl contract includes a US national TV commercial, print advertising, and a billboard in Times Square.
After America's Next Top Model
Thompson has been on the cover of Jacksonville Magazine August 2005, October 2005, March 2006, and August 2008, as well as Plus Model Magazine January 2010, Animal Fair Magazine, and Supermodels Unlimited, September/October 2008. She's also a spokesmodel for Smile Stylists, modeled for Metrostyle, JC Penney, People Magazine, Diana Warner Jewelry, Forever 21, Saks Fifth Avenue, the face for Torrid, Converse One Star, Fashion Bug, and a campaign with Pure Energy/Target, Fall 2010, and the face for Panache lingerie, Winter 2014.
She's also an ambassador for the National Eating Disorders Association, and a spokesperson for the Right Fit brand of Fashion Bug.
In December 2009/January 2010, Thompson was a model for the Faith 21 line by Forever 21.
Other accomplishments
Thompson was noted by Lifestyle MSN as one of the 'Most Influential Women of 2008'.
In 2009, Thompson launched a jewelry and candle collection called "Supermodel."
References
External links
Whitney Thompson's profile on The CW
Whitney Thompson summary on TV.com
1987 births
Female models from Florida
Plus-size models
Living people
People from Atlantic Beach, Florida
America's Next Top Model winners
21st-century American women
|
The Siedlec Desert () is an area of sand near the village of Siedlec, district of Gmina Janów, within Częstochowa County, Silesian Voivodeship, in the Kraków-Częstochowa Upland area of southern Poland. The "desert" was formed during sand-mining operations, with the sand itself coming from a buried Jurassic-era sea-bed. The sand-mine finally closed in the 1960's. The desert covers approximately 30 hectares, of which 25 hectares is sand and the rest is made up by a pond and pine-trees planted in the area during the 1960's. The dunes at Siedlec reach up to 30 meters high and mirages are visible there in summer. Local legend has it that the desert was formed when a clever sorcerer pursued by the Devil escaped through the gates of hell, leaving the area around scorched.
The desert forms part of the Olsztyńsko-Gorzkowskie micro-region, and the dunes within it are the result of Aeolian processes.
The area has been used in motor sports to allow racing in desert-style conditions. An annual festival held by local villagers involves dressing up as bedouins.
References
Deserts of Poland
Deserts of Europe
|
Craugastor noblei is a species of frog in the family Craugastoridae.
It is found in Costa Rica, Honduras, Nicaragua, and Panama.
Its natural habitat is subtropical or tropical moist lowland forests.
It is threatened by habitat loss.
References
noblei
Amphibians described in 1921
Taxonomy articles created by Polbot
|
```xml
import * as semver from "semver"
import * as zmq from "../../src"
import {assert} from "chai"
describe("zmq", function () {
describe("exports", function () {
it("should include functions and constructors", function () {
const expected = [
/* Utility functions. */
"version",
"capability",
"curveKeyPair",
/* The global/default context. */
"context",
/* Generic constructors. */
"Context",
"Socket",
"Observer",
"Proxy",
/* Specific socket constructors. */
"Pair",
"Publisher",
"Subscriber",
"Request",
"Reply",
"Dealer",
"Router",
"Pull",
"Push",
"XPublisher",
"XSubscriber",
"Stream",
]
/* ZMQ < 4.0.5 has no steerable proxy support. */
if (semver.satisfies(zmq.version, "< 4.0.5")) {
expected.splice(expected.indexOf("Proxy"), 1)
}
assert.sameMembers(Object.keys(zmq), expected)
})
})
describe("version", function () {
it("should return version string", function () {
if (typeof process.env.ZMQ_VERSION === "string") {
assert.equal(zmq.version, process.env.ZMQ_VERSION)
} else {
assert.match(zmq.version, /^\d+\.\d+\.\d+$/)
}
})
})
describe("capability", function () {
it("should return library capability booleans", function () {
assert.equal(
Object.values(zmq.capability).every(c => typeof c === "boolean"),
true,
)
})
})
describe("curve keypair", function () {
beforeEach(function () {
if (zmq.capability.curve !== true) {
this.skip()
}
})
it("should return keypair", function () {
const {publicKey, secretKey} = zmq.curveKeyPair()
assert.match(publicKey, /^[\x20-\x7F]{40}$/)
assert.match(secretKey, /^[\x20-\x7F]{40}$/)
})
})
})
```
|
Mary Bird Perkins Cancer Center is a cancer care organization with locations in Louisiana and Mississippi.
History
In the late 1960s, community leaders headed by Dr. M.J. Rathbone, Jr. and Anna B. Lipsey saw the need for a community owned, nonprofit radiation cancer facility in the greater Baton Rouge area. With both the vision and financial support of the Baton Rouge community the Cancer Radiation and Research Foundation – now known as Mary Bird Perkins Cancer Center – was established.
In 1968, the Foundation held a capital campaign capped by a donation of land from philanthropist Paul D. Perkins, whom he made in honor of his late daughter, Mary Bird. In 1971, the Mary Bird Perkins Radiation Treatment Center opened its doors in Baton Rouge. After 14 years of operation, in 1985, Mary Bird Perkins relocated to its present site on Essen Lane and installed the first linear accelerator in the state. The following year, in 1986, the name of the center was changed to Mary Bird Perkins Cancer Center.
In 1988, the first satellite treatment center was opened in Hammond, followed by six more Centers in southeast Louisiana and Mississippi: Covington in 1998, Houma in 2008, Gonzales in 2009 and Natchez in 2019. In 2018, Mary Bird Perkins – Our Lady of the Lake Cancer Center and Woman's Hospital opened the Breast & GYN Cancer Pavilion and partnered with Lane Regional Medical Center in Zachary. Additionally, the Cancer Center partners with LSU Health Baton Rouge North Clinic.
From its inception, the mission of Mary Bird Perkins has been to provide the highest quality radiation therapy and compassionate support to all patients and their families. This commitment, created by the center's founders, has been supported year after year by the local community.
Today, Mary Bird Perkins is not only a leader in providing state-of-the-art radiation therapy across southeast Louisiana and the Natchez, MS area, but it is also bringing screenings and early detection programs, education and research to its service areas. Through multiple innovative partnerships, Mary Bird Perkins is succeeding in its mission to fight cancer.
Mary Bird Perkins was and still remains a community initiative. It is through support from the community and partner organizations that the organization will successfully meet future challenges of providing patients with state-of-the-art technology and comprehensive community cancer care.
The co-founders, Dr. M.J. Rathbone, Jr. and Anna B. Lipsey are recognized throughout the Essen Lane facility. The main waiting room is dedicated to Anna B. Lipsey.
References
External links
Cancer hospitals
Hospitals in Louisiana
Hospitals established in 1971
1971 establishments in Louisiana
Baton Rouge, Louisiana
Buildings and structures in Baton Rouge, Louisiana
|
```javascript
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = void 0;
var _VtPerPageSelector = _interopRequireDefault(require("./VtPerPageSelector"));
var _VtTable = _interopRequireDefault(require("./VtTable"));
var _VtPagination = _interopRequireDefault(require("./VtPagination"));
var _VtDropdownPagination = _interopRequireDefault(require("./VtDropdownPagination"));
var _VtGenericFilter = _interopRequireDefault(require("./VtGenericFilter"));
var _VtColumnsDropdown = _interopRequireDefault(require("./VtColumnsDropdown"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
var _default2 = {
name: 'VtClientTable',
components: {
VtPerPageSelector: _VtPerPageSelector["default"],
VtTable: _VtTable["default"],
VtPagination: _VtPagination["default"],
VtDropdownPagination: _VtDropdownPagination["default"],
VtColumnsDropdown: _VtColumnsDropdown["default"],
VtGenericFilter: _VtGenericFilter["default"]
},
props: {
columns: {
type: Array,
required: true
},
data: {
type: Array,
required: true
},
name: {
type: String,
required: false
},
options: {
type: Object,
required: false,
"default": function _default() {
return {};
}
}
},
methods: {
setLoadingState: function setLoadingState(isLoading) {
this.$refs.table.loading = isLoading;
},
setFilter: function setFilter(val) {
this.$refs.table.setFilter(val);
},
setPage: function setPage(val) {
this.$refs.table.setPage(val);
},
setOrder: function setOrder(column, asc) {
this.$refs.table.setOrder(column, asc);
},
setLimit: function setLimit(limit) {
this.$refs.table.setLimit(limit);
},
toggleChildRow: function toggleChildRow(rowId) {
this.$refs.table.toggleChildRow(rowId);
},
getOpenChildRows: function getOpenChildRows() {
var rows = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
return this.$refs.table.getOpenChildRows(rows);
},
resetQuery: function resetQuery() {
this.$refs.table.resetQuery();
},
setCustomFilters: function setCustomFilters(params) {
var sendRequest = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
return this.$refs.table.setCustomFilters(params, sendRequest);
}
},
computed: {
filteredData: function filteredData() {
return this.$refs.table.filteredData;
},
allFilteredData: function allFilteredData() {
return this.$refs.table.allFilteredData;
},
filtersCount: function filtersCount() {
return this.$refs.table.filtersCount;
}
},
provide: function provide() {
var _this = this;
return {
scopedSlots: function scopedSlots() {
return _this.$scopedSlots;
},
slots: function slots() {
return _this.$slots;
}
};
},
model: {
prop: "data"
},
render: function render(h) {
return h("r-l-client-table", {
attrs: {
data: this.data,
columns: this.columns,
name: this.name,
options: this.options
},
ref: "table",
scopedSlots: {
"default": function _default(props) {
return props.override ? h(props.override, {
attrs: {
props: props
}
}) : h("div", {
"class": "VueTables VueTables--" + props.source
}, [h("div", {
"class": props.theme.row
}, [h("div", {
"class": props.theme.column
}, [!props.opts.filterByColumn && props.opts.filterable ? h("div", {
"class": "".concat(props.theme.field, " ").concat(props.theme.inline, " ").concat(props.theme.left, " VueTables__search")
}, [props.slots.beforeFilter, h("vt-generic-filter", {
ref: "genericFilter"
}), props.slots.afterFilter]) : '', props.slots.afterFilterWrapper, props.perPageValues.length > 1 || props.opts.alwaysShowPerPageSelect ? h("div", {
"class": "".concat(props.theme.field, " ").concat(props.theme.inline, " ").concat(props.theme.right, " VueTables__limit")
}, [props.slots.beforeLimit, h("vt-per-page-selector"), props.slots.afterLimit]) : '', props.opts.pagination.dropdown && props.totalPages > 1 ? h("div", {
"class": "VueTables__pagination-wrapper"
}, [h("div", {
"class": "".concat(props.theme.field, " ").concat(props.theme.inline, " ").concat(props.theme.right, " VueTables__dropdown-pagination")
}, [h("vt-dropdown-pagination")])]) : '', props.opts.columnsDropdown ? h("div", {
"class": "VueTables__columns-dropdown-wrapper ".concat(props.theme.right, " ").concat(props.theme.dropdown.container)
}, [h("vt-columns-dropdown")]) : ''])]), props.slots.beforeTable, h("div", {
"class": "table-responsive"
}, [h("vt-table", {
ref: "vt_table"
})]), props.slots.afterTable, props.opts.pagination.show ? h("vt-pagination") : '']);
}
}
});
}
};
exports["default"] = _default2;
```
|
```java
/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
*
* Subject to the condition set forth below, permission is hereby granted to any
* person obtaining a copy of this software, associated documentation and/or
* data (collectively the "Software"), free of charge and under any and all
* copyright rights in the Software, and any and all patent rights owned or
* freely licensable by each licensor hereunder covering either (i) the
* unmodified Software as contributed to or provided by such licensor, or (ii)
* the Larger Works (as defined below), to deal in both
*
* (a) the Software, and
*
* (b) any piece of software and/or hardware listed in the lrgrwrks.txt file if
* one is included with the Software each a "Larger Work" to which the Software
* is contributed by such licensors),
*
* without restriction, including without limitation the rights to copy, create
* derivative works of, display, perform, and distribute the Software and make,
* use, sell, offer for sale, import, export, have made, and have sold the
* Software and the Larger Work(s), and to sublicense the foregoing rights on
* either these or other terms.
*
* This license is subject to the following condition:
*
* The above copyright notice and either this complete permission notice or at a
* minimum a reference to the UPL must be included in all copies or substantial
* portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
package com.oracle.truffle.runtime;
import com.oracle.truffle.api.CompilerDirectives;
public enum CompilationState {
INTERPRETED,
FIRST_TIER_ROOT,
LAST_TIER_ROOT,
FIRST_TIER_INLINED,
LAST_TIER_INLINED;
boolean isCompilationRoot() {
return this == FIRST_TIER_ROOT || this == LAST_TIER_ROOT;
}
boolean isCompiled() {
return this != INTERPRETED;
}
int getTier() {
switch (this) {
case INTERPRETED:
return 0;
case FIRST_TIER_INLINED:
case FIRST_TIER_ROOT:
return 1;
case LAST_TIER_INLINED:
case LAST_TIER_ROOT:
return 2;
default:
throw CompilerDirectives.shouldNotReachHere("invalid state");
}
}
}
```
|
```objective-c
/*
*
*
* path_to_url
*
* Unless required by applicable law or agreed to in writing, software
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/
@class ZXByteArray, ZXDecoderResult;
/**
* Data Matrix Codes can encode text as bits in one of several modes, and can use multiple modes
* in one Data Matrix Code. This class decodes the bits back into text.
*
* See ISO 16022:2006, 5.2.1 - 5.2.9.2
*/
@interface ZXDataMatrixDecodedBitStreamParser : NSObject
+ (ZXDecoderResult *)decode:(ZXByteArray *)bytes error:(NSError **)error;
@end
```
|
```objective-c
//
// Event.h
//
// Library: Foundation
// Package: Threading
// Module: Event
//
// Definition of the Event class.
//
// and Contributors.
//
//
#ifndef Foundation_Event_INCLUDED
#define Foundation_Event_INCLUDED
#include "Poco/Exception.h"
#include "Poco/Foundation.h"
# include "Poco/Event_POSIX.h"
namespace Poco
{
class Foundation_API Event : private EventImpl
/// An Event is a synchronization object that
/// allows one thread to signal one or more
/// other threads that a certain event
/// has happened.
/// Usually, one thread signals an event,
/// while one or more other threads wait
/// for an event to become signalled.
{
public:
Event(bool autoReset = true);
/// Creates the event. If autoReset is true,
/// the event is automatically reset after
/// a wait() successfully returns.
~Event();
/// Destroys the event.
void set();
/// Signals the event. If autoReset is true,
/// only one thread waiting for the event
/// can resume execution.
/// If autoReset is false, all waiting threads
/// can resume execution.
void wait();
/// Waits for the event to become signalled.
void wait(long milliseconds);
/// Waits for the event to become signalled.
/// Throws a TimeoutException if the event
/// does not become signalled within the specified
/// time interval.
bool tryWait(long milliseconds);
/// Waits for the event to become signalled.
/// Returns true if the event
/// became signalled within the specified
/// time interval, false otherwise.
void reset();
/// Resets the event to unsignalled state.
private:
Event(const Event &);
Event & operator=(const Event &);
};
//
// inlines
//
inline void Event::set()
{
setImpl();
}
inline void Event::wait()
{
waitImpl();
}
inline void Event::wait(long milliseconds)
{
if (!waitImpl(milliseconds))
throw TimeoutException();
}
inline bool Event::tryWait(long milliseconds)
{
return waitImpl(milliseconds);
}
inline void Event::reset()
{
resetImpl();
}
} // namespace Poco
#endif // Foundation_Event_INCLUDED
```
|
WTEL (610 kHz) — branded "Philadelphia's BIN 610" — is a commercial all-news AM radio station licensed to serve Philadelphia, Pennsylvania. While owned by the Beasley Broadcast Group, the station is currently operated by iHeartMedia, Inc. as part of their Philadelphia cluster under a long-term local marketing agreement. The station services the Greater Philadelphia and Delaware Valley area as the market affiliate of the Black Information Network.
The WTEL studios are located in the nearby suburb of Bala Cynwyd, while the transmitter site is in Bellmawr, New Jersey. In addition to a standard analog transmission, WTEL programming is simulcast over the second HD Radio digital subchannel of WDAS-FM, and is available online via iHeartRadio.
WTEL is a primary entry point for the Emergency Alert System in eastern Pennsylvania and Delaware.
History
WIP
On December 1, 1921, the U.S. Department of Commerce, in charge of radio at the time, adopted a regulation formally establishing a broadcasting station category, which set aside the wavelength of 360 meters (833 kHz) for entertainment broadcasts, and 485 meters (619 kHz) for market and weather reports. Philadelphia's first broadcasting station, WGL, was licensed on February 8, 1922, to Thomas F. J. Howlett.
This was followed by a scramble among four of the city's department stores to become the first to establish its own station. On March 20, 1922 Gimbel Brothers, with Benedict Gimbel Jr. as its president, was issued a license with the call letters WIP, for a new station operating on the 360 meter "entertainment" wavelength. Although the WIP call sign was randomly assigned, later slogans based on the call letters have included "Wireless In Philadelphia", "We're In Philadelphia" and "Watch Its Progress". The station later received an additional authorization to broadcast weather reports on 485 meters.
The other three Philadelphia department store stations authorized in the first half of 1922 were WOO (licensed March 18, 1922, to John Wanamaker), WFI (later WFIL, licensed March 18, 1922, to Strawbridge & Clothier), and WDAR (later WLIT, licensed May 20, 1922, to the Lit Brothers).
Because 360 meters was the only designated broadcasting wavelength, WIP had to operate within the restrictions of a timesharing arrangement with the other local stations. In the race to be the first department store on the air, Strawbridge & Clothier's WFI debuted on March 18, starting with a 10:16 a.m. speech by John F. Braun, president of the Art Alliance and the Music League. WIP's formal debut came a short time later, beginning with an 11:00 a.m. speech by J. Hampton Moore, Mayor of Philadelphia. However, an advertisement placed by Gimbels on the previous day claimed that "Philadelphia's first radio broadcasting by any store, opened this morning at 9 o'clock", and, somewhat vaguely, "Details of programs will speedily unfold". The department store's March 18 advertisement for WIP further asserted that "Yesterday's broadcasting was most successful", although it provided no details about the nature of any earlier transmissions. Under the local timesharing agreement, WIP's August 17, 1922, schedule on 360 meters consisted of a variety of short programs, beginning with New York and Philadelphia stock price quotes at 1:00 p.m., and ending with its "Uncle Wip" children's programs starting at 7:15 p.m.
In late September 1922, the Department of Commerce set aside a second entertainment wavelength, 400 meters (750 kHz) for "Class B" stations that had quality equipment and programming, and WIP was assigned use of this more exclusive wavelength, joining WOO, WFI, and WDAR. WIP's March 27, 1923, time slots were entertainment programs from 2:00 to 3:00 and 6:00 to 6:30 p.m., followed by "Uncle Wip's Bedtime Stories and roll call" beginning at 7:00 p.m. In May 1923 additional "Class B" frequencies were made available, which included two Philadelphia allocations, with WIP and WOO assigned to 590 kHz on a timesharing basis, while WFI and WDAR were assigned to the second Philadelphia Class B frequency, 760 kHz. In late 1927 WIP and WOO were reassigned to 860 kHz. On November 11, 1928, as part of the implementation of a major nationwide reallocation under the provisions of the Federal Radio Commission's General Order 40, WIP was assigned to a "regional" frequency, 610 kHz, along with a new timesharing partner, the Keystone Broadcasting Company's WFAN.
On January 20, 1933, WIP's owners took over WFAN, eliminating that station in order to allow WIP to begin broadcasting on an unlimited schedule. Beginning in the mid-1930s, WIP's Morning Cheer program presented by George A. Palmer was a popular daily feature. In the 1940s and 1950s, the station was an affiliate of the Mutual Broadcasting System. From the 1950s until the early 1960s, the station was owned by Metropolitan Broadcasting (successor to Dumont) and had a rock and roll format. In the early 60s the parent company name was changed from Metropolitan to Metromedia, and WIP adopted an MOR format (after an unsuccessful attempt at a Top 40 format branded as Color Radio). With this format, the station played pop hits of the 1960s, along with some 50s pop mixed in. Announcers during this time period included Joe McCauley (the "Morning Mayor"), Ned Powers, Tom Brown, and Chuck Daugherty.
During this time WIP called themselves "The Big W" after a phrase in the 1960s comedy, "It's A Mad, Mad, Mad, Mad World," and the slogan was justified. WIP was number one in the market ratings through the 1960s and for most of the 1970s. In the late 60s they began including more soft-rock until the format gradually evolved into an Adult Contemporary format which survived through the 1970s and into the 1980s. The music mix continued to include pop from the previous two decades. In addition, the station was full service in approach, as they had a heavy emphasis on news as well.
1970s and 1980s
By the early 1970s, WIP evolved to an adult contemporary format, and for a while, they were heavy on 1950s and 1960s rock and roll oldies. At the height of its popularity as a full service/adult contemporary station in the early to mid-1970s, WIP was the home to some of the most well-known air personalities in the city, including popular rush hour host Ken Garland (who had replaced Joe McCauley, the "Morning Mayor"), late morning host Bill "Wee Willie" Webber, early afternoon host Tom Moran, late PM host, Dick Clayton, evening host Tom Lamaine, and overnight host Nat Wright. Weekend coverage included Allan Michaels, Alan Drew, Bill St. James, and Mark Andrews. During this time, Metromedia's station in New York, WNEW, had similar programming and it was not uncommon for DJs to swap back and forth for subbing duties. WNEW's Julius LaRosa was a frequent guest. WIP's presentation, like other full-service stations, was heavily dependent on its personalities to entertain the audience as much as the music itself.
In addition to music, full-service music stations in that era were typically home to strong news operations, and WIP had local newscasts every hour, seven days a week (at one point they offered half-hourly newscasts around the clock). The weekday morning news was so extensive that they had two anchors in later years, and even introduced a 5 a.m. 30 minute newscast. One of WIP's news reporters, Jan Gorham, remained with the station after the switch to sports and continued to work there until retiring in 2009.
The station hosted a popular radiothon for one weekend a year for several years, raising funds to fight leukemia. The events were staged on a large scale, in venues like hotel ballrooms, with local and national celebrities visiting the live broadcast.
WIP's best-known contest was Cash Call, a call-out game in which the DJs picked numbers out of the phone book or from postcards submitted by listeners. The intro to the contest was the first 10 seconds of a song called "The Sound Of Money" by the J's with Jamie, a vocal group that recorded many commercial jingles and three albums. If the person at the other end of the call could identify the exact amount of money in the “jackpot,” down to the standard 61¢ ending, they won the current jackpot. Players who knew the 61¢ but not the dollar amount typically won a token prize from a sponsor. Every incorrect guess lead to a few dollars being added to the jackpot; a correct guess resulted in the jackpot being reset to $61.61. Another long-running contest late in WIP's run as a music station was Team Trivia. Two area businesses competed, one on the morning show with Ken Garland, the other on the afternoon show with (Bruce) Stevens and (Nick) Seneca (who had replaced Tom Moran).
As the popularity of music on FM radio grew, stations like Magic 103 (now 102.9 WMGK) and Kiss 100 began to eat away at WIP's audience. For a time, the station experimented with general interest talk. Michele Iaia was brought on to host "WIPeople Talk", a weeknight call-in show from 8 p.m. to midnight. The show later expanded to include a weekend edition, and over time the talk block was extended to run from 6 p.m. to 6 a.m. (with the station touting that it played music all day and talked all night). One of the regular features was a Friday night segment called Desperate & Dateless, a show that eventually spun off into a stand-alone Saturday night program that included music mixed in with the calls from single listeners.
The local talk was scaled back to make room for Larry King's syndicated radio show in the overnight hours, and eventually most of the local talk was replaced by music once again. The station later tried a programming experiment known as Midday Infotainment, a features-based midday show hosted by Bill Gallagher and Lynn Adkins. That move pushed Bill Webber out of his longtime midday slot into the early evening shift. The show was canceled in less than a year, and the regular music format, hosted once more by Webber, returned.
As WIP continued adding more current music, it also added the weekly countdown show “Dick Clark’s National Music Survey.” WIP aired the version produced for adult contemporary stations, while WSTW in Wilmington, Delaware, listenable in much of the Philadelphia market, aired the top 40 version.
Sports radio
WIP gradually adopted a sports radio format in the late 1980s, and had been regarded in the industry for its influence on the Philadelphia sports fanbase headlined by prominent hosts Angelo Cataldi, Al Morganti and Howard Eskin, and was one of the first radio homes for Tony Bruno. WIP's transition to sports was gradual, unlike many so-called format flips that happen instantaneously. The station began adding sports programming in the mid-1980s, adding a daily sports program hosted by Howard Eskin in afternoon drive by September 1986. More and more sports hosts were brought on to replace the music hosts that left, including Ken Garland, who moved to cross-town WPEN, then a nostalgia-based music station. Garland was initially replaced by WIP part-timer Jeff Brown before the sports-based morning show debuted. Bill Webber's show, then limited to 9 a.m. to noon, was the last regularly scheduled weekday music program. Webber also would eventually join WPEN, hosting his familiar midday slot on Saturdays.
After many years of ownership by Metromedia the station was purchased by Ed Snider's Spectacor Group, the longtime owner of the National Hockey League's Philadelphia Flyers, in 1988. Snider sold the station to CBS Radio in 1994. WIP continued playing music on Saturday mornings for a short time before the transition to all-sports (save for an overnight talk show with Larry King/Jim Bohannon) was complete on November 1988. The morning show itself was converted to all-sports with the pairing of Angelo Cataldi and Tom Brookshier—dubbed Brookie and the Rookie—on November 1990.
Joe Conklin left WIP in January 2003, and was followed by Mike Missanelli that May 1; both joined WMMR to begin a morning show called Philly Guys. WIP later filed a restraining order against Conklin on May 23, 2003, over comments made about WIP on-air. Missanelli rejoined WIP in July 2005 to co-host a midday show with Anthony Gargano, but was fired on March 20, 2006, for on- and off-air altercations with workers. Missanelli's replacement, Steve Martorano, left WIP on March 25, 2008, with Glen Macnow as Gargano's co-host.
Throughout much of this era, WIP was the flagship radio station for the Philadelphia Eagles and Philadelphia Phillies. When both teams were playing at the same time, WPHT and/or WYSP usually carried one of the games. WIP was the full-time flagship radio station for the Eagles until 1992, when Eagles broadcasts moved to WYSP. WIP later added play-by-play coverage of the Philadelphia Flyers in 1998 and the Philadelphia Phantoms in 2005, and also retained coverage of the Philadelphia 76ers in 2005.
The station, and Angelo Cataldi, made headlines when Cataldi arranged for a group of Eagles fans to attend the 1999 NFL Draft in New York City and demand the Eagles select University of Texas at Austin running back Ricky Williams with the team's #2 pick; this led to the infamous booing of the decision to select Donovan McNabb. Howard Eskin's achievements included a "funeral" for Terrell Owens following the announcement of Owens's four-game suspension from the Eagles during the 2005-2006 season, and a short-lived hunger strike in support of trading Philadelphia 76ers superstar Allen Iverson; Eskin was suspended by WIP for 30 days on September 9, 2004, in order to settle a defamation lawsuit brought by Richard Sprague, a lawyer for Iverson. Despite the controversies, WIP also hosted multiple programs co-hosted by sports stars, including Brian Dawkins and Maurice Cheeks, and co-produced with WAXY a weekly program with Terrell Owens hosted by Dan Le Batard. The station was also known for hosting the annual eating contest, the Wing Bowl, successor station WIP-FM would continue the event until 2018.
On February 20, 2008, the station announced that broadcasts of Eagles games would return to WIP, plus remain on WYSP, with each radio station broadcasting different feeds to make it easier for local fans to watch television coverage of Eagles games but to lower the volume on their TV and listen to the game on the radio. The advent of digital television signals was putting television and radio signals too far out of sync. The station also carried Philadelphia Phillies games on Friday nights during the 2005 season, allowing WPHT to pick up some regularly scheduled programming on Friday nights. In 2008, WIP broadcast the Phillies' March 31 season opener against Washington along with WPHT.
Transition to FM, trade to Beasley
Under the ownership of Infinity Broadcasting Corporation/CBS Radio during much of this era, WIP's call sign and format subsumed that of co-owned WYSP in 2011 to become WIP-FM, and was eventually traded to Beasley Broadcast Group to become the second incarnation of WTEL. From 2011 to 2020, this station was the market's full-time CBS Sports Radio affiliate, and later the market's full-time ESPN Radio outlet.
On September 2, 2011, WIP began simulcasting on 94.1 FM, replacing rock station WYSP. The simulcast of WIP and WIP-FM soon began to gradually split, as certain sporting events are not heard on both frequencies (such as most Philadelphia Phillies broadcasts, which began to air on WIP-FM in 2012 but are still carried on the AM dial by WPHT), and the syndicated The Nick & Artie Show was added to 610 AM's programming in February 2012, while local programming airs on WIP-FM; the simulcast ended entirely January 2, 2013, when WIP became a full-time affiliate of CBS Sports Radio, airing national programming to complement the local programming on WIP-FM.
On October 2, 2014, CBS Radio announced that it would trade 14 radio stations located in Tampa, Charlotte and Philadelphia (only WIP (AM) would be sold) to the Beasley Broadcast Group in exchange for 3 stations located in Miami and WRDW-FM and WXTU in Philadelphia. The swap was completed on December 1, 2014. As a result, WIP changed its call letters to WTEL, the longtime former call sign of Beasley-owned sister station WWDB, as CBS Radio (which has since been merged into Entercom) continues to own WIP-FM.
In early 2015, WTEL became an affiliate of ESPN Radio, dropping affiliation with CBS Sports Radio. The station began airing Mike and Mike in the Morning on April 20, 2015, on the day that former ESPN affiliate WPEN started a local morning show with former WIP host Anthony Gargano. WPEN continues to be affiliated with ESPN, but only airs live sporting events distributed by the network. WTEL airs ESPN shows almost around the clock, except for Philadelphia Union Soccer Games, the Philadelphia Phillies farm team, the Reading Fightin Phils, and public access shows on weekends which include food, real estate, gardening and Italian-American programs.
Leasing to iHeartMedia, format change
On August 18, 2020, it was initially reported by Philadelphia sports blog Crossing Broad, and later independently verified by radio news website RadioInsight, that Beasley Broadcast Group would soon lease out WTEL's operation to iHeartMedia. Upon closure of the leasing on August 31, the station became the Philadelphia affiliate of iHeart's Black Information Network, a news/talk format simulcast on WDAS-FM's HD2 sub-channel and oriented towards African American audiences, competing with Entercom (now Audacy)'s heritage all-news stations KYW/WPHI-FM.
Notable former on-air staff
Michael Barkann
Tom Brookshier
Tony Bruno
Bill Campbell
Craig Carton
Angelo Cataldi
Garry Cobb
Pat Croce
Ray Didinger
Howard Eskin
Keith Jones
Glen Macnow
John Marzano
Mike Missanelli
Al Morganti
Ike Reese
Bill "Wee Willie" Webber
References
External links
FCC History Cards for WTEL (covering 1927-1981 as WIP)
History of WIP (broadcastpioneers.com)
TEL
Metromedia
Radio stations established in 1922
TEL
All-news radio stations in the United States
Black Information Network stations
1922 establishments in Pennsylvania
|
Dora Boothby and Winifred McNair were the defending champions, but Boothby did not participate. McNair partnered with Mabel Parton but they lost in the second round to Edith Hannam and Ethel Larcombe.
Agnes Morton and Elizabeth Ryan defeated Hannam and Larcombe in the final, 6–1, 6–3 to win the ladies' doubles tennis title at the 1914 Wimbledon Championships.
Draw
Finals
Top half
Bottom half
References
External links
Women's Doubles
Wimbledon Championship by year – Women's doubles
Wimbledon Championships - Doubles
Wimbledon Championships - Doubles
|
Prateek Baid is an Indian model, actor, automobile engineer and beauty pageant titleholder. He hails from the city of Bikaner in the Indian state of Rajasthan.
Biography
Prateek Baid was born on 15 September 1991 in Bikaner, a city in Rajasthan. He went to Central Academy Bikaner School. He graduated with a degree in mechanical engineering from Manda institute of technology College Bikaner. He won the Glam Icon 2015 held on 22 November 2015 at Kurla, Mumbai organized by Phoenix Market City Mumbai. He made his television debut with Maharakshak: Devi aired on Zee TV. Later in 2016 he won Rubaru Mr. India 2016 contest held on 24 April 2016 at Anya Hotel in Gurugram (previously Gurgaon) and represented India at Mister Global 2016 contest held at Central Plaza in Chiang Mai, Thailand and won the Best Model award and placed as the Top 15 semi-finalist.
Awards and honours
• Below is the list of awards won by Prateek Baid.
See also
Rohit Khandelwal
Puneet Beniwal
References
External links
Prateek Baid: Mister Global India 2016
Mister Global website
Rubaru Mister India 2016 winners
Rubaru Mister India 2016 winners (Photos)
Mister Global 2016 contestants in swimwear
Asian contenders in Mr Global 2016
Mister Global - Pageantopolis
Prateek Baid official facebook
Living people
1991 births
Indian male models
Male actors from Rajasthan
Indian male television actors
Indian beauty pageant winners
Male beauty pageant winners
Beauty pageant contestants from India
People from Bikaner
|
The Autovía CA-36 is a Spanish highway that connects the Autovía CA-35 with José León de Carranza Bridge, from where it continues as a national road, but with the same nomenclature, until the Autovía CA-33 in Cádiz City. It has a total length of 5.68 kilometers. The last part of the road used to be called N-443.
References
CA-36
Transport in Andalusia
|
```c++
// (See accompanying file LICENSE_1_0.txt or copy at
// path_to_url
#include <boost/metaparse/accept.hpp>
#include <boost/metaparse/start.hpp>
#include <boost/metaparse/string.hpp>
#include <boost/metaparse/get_result.hpp>
#include <boost/metaparse/get_position.hpp>
#include <boost/metaparse/get_remaining.hpp>
#include <boost/mpl/assert.hpp>
#include <boost/type_traits.hpp>
#include "test_case.hpp"
namespace
{
template <class T>
struct returns
{
typedef T type;
};
template <class T>
struct gets_foo
{
typedef typename T::foo type;
};
}
BOOST_METAPARSE_TEST_CASE(accept)
{
using boost::metaparse::accept;
using boost::metaparse::start;
using boost::metaparse::string;
using boost::metaparse::get_result;
using boost::metaparse::get_position;
using boost::metaparse::get_remaining;
using boost::is_same;
typedef string<'H','e','l','l','o'> s;
// test_accept_is_metaprogramming_value
BOOST_MPL_ASSERT((
is_same<accept<int, s, start>, accept<int, s, start>::type>
));
// test_accept_is_not_lazy
BOOST_MPL_ASSERT((
is_same<
accept<gets_foo<int>, s, start>,
accept<gets_foo<int>, returns<s>, returns<start> >::type
>
));
// test_get_result_of_accept
BOOST_MPL_ASSERT((is_same<int, get_result<accept<int, s, start> >::type>));
// test_get_remaining_of_accept
BOOST_MPL_ASSERT((is_same<s, get_remaining<accept<int, s, start> >::type>));
// test_get_position_of_accept
BOOST_MPL_ASSERT((
is_same<start, get_position<accept<int, s, start> >::type>
));
}
```
|
```html
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Index of new symbols in 2.18: GIO Reference Manual</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
<link rel="home" href="index.html" title="GIO Reference Manual">
<link rel="up" href="index.html" title="GIO Reference Manual">
<link rel="prev" href="api-index-deprecated.html" title="Index of deprecated symbols">
<link rel="next" href="api-index-2-20.html" title="Index of new symbols in 2.20">
<meta name="generator" content="GTK-Doc V1.25.1 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">
<td width="100%" align="left" class="shortcuts"><span id="nav_index"><a class="shortcut" href="#idxC">C</a>
<span class="dim">|</span>
<a class="shortcut" href="#idxD">D</a>
<span class="dim">|</span>
<a class="shortcut" href="#idxE">E</a>
<span class="dim">|</span>
<a class="shortcut" href="#idxF">F</a>
<span class="dim">|</span>
<a class="shortcut" href="#idxM">M</a>
<span class="dim">|</span>
<a class="shortcut" href="#idxT">T</a>
<span class="dim">|</span>
<a class="shortcut" href="#idxU">U</a>
<span class="dim">|</span>
<a class="shortcut" href="#idxV">V</a></span></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
<td><img src="up-insensitive.png" width="16" height="16" border="0"></td>
<td><a accesskey="p" href="api-index-deprecated.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
<td><a accesskey="n" href="api-index-2-20.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
</tr></table>
<div class="index">
<div class="titlepage"><div><div><h1 class="title">
<a name="api-index-2-18"></a>Index of new symbols in 2.18</h1></div></div></div>
<a name="idx"></a><a name="idxC"></a><h3 class="title">C</h3>
<dt>
<a class="link" href="gio-GContentType.html#g-content-type-from-mime-type" title="g_content_type_from_mime_type()">g_content_type_from_mime_type</a>, function in <a class="link" href="gio-GContentType.html" title="GContentType">GContentType</a>
</dt>
<dd></dd>
<dt>
<a class="link" href="gio-GContentType.html#g-content-type-guess-for-tree" title="g_content_type_guess_for_tree()">g_content_type_guess_for_tree</a>, function in <a class="link" href="gio-GContentType.html" title="GContentType">GContentType</a>
</dt>
<dd></dd>
<a name="idxD"></a><h3 class="title">D</h3>
<dt>
<a class="link" href="gio-Desktop-file-based-GAppInfo.html#g-desktop-app-info-new-from-keyfile" title="g_desktop_app_info_new_from_keyfile()">g_desktop_app_info_new_from_keyfile</a>, function in <a class="link" href="gio-Desktop-file-based-GAppInfo.html" title="GDesktopAppInfo">Desktop file based GAppInfo</a>
</dt>
<dd></dd>
<a name="idxE"></a><h3 class="title">E</h3>
<dt>
<a class="link" href="GEmblemedIcon.html#g-emblemed-icon-add-emblem" title="g_emblemed_icon_add_emblem()">g_emblemed_icon_add_emblem</a>, function in <a class="link" href="GEmblemedIcon.html" title="GEmblemedIcon">GEmblemedIcon</a>
</dt>
<dd></dd>
<dt>
<a class="link" href="GEmblemedIcon.html#g-emblemed-icon-get-emblems" title="g_emblemed_icon_get_emblems()">g_emblemed_icon_get_emblems</a>, function in <a class="link" href="GEmblemedIcon.html" title="GEmblemedIcon">GEmblemedIcon</a>
</dt>
<dd></dd>
<dt>
<a class="link" href="GEmblemedIcon.html#g-emblemed-icon-get-icon" title="g_emblemed_icon_get_icon()">g_emblemed_icon_get_icon</a>, function in <a class="link" href="GEmblemedIcon.html" title="GEmblemedIcon">GEmblemedIcon</a>
</dt>
<dd></dd>
<dt>
<a class="link" href="GEmblemedIcon.html#g-emblemed-icon-new" title="g_emblemed_icon_new()">g_emblemed_icon_new</a>, function in <a class="link" href="GEmblemedIcon.html" title="GEmblemedIcon">GEmblemedIcon</a>
</dt>
<dd></dd>
<dt>
<a class="link" href="GEmblem.html#GEmblemOrigin" title="enum GEmblemOrigin">GEmblemOrigin</a>, enum in <a class="link" href="GEmblem.html" title="GEmblem">GEmblem</a>
</dt>
<dd></dd>
<dt>
<a class="link" href="GEmblem.html#g-emblem-get-icon" title="g_emblem_get_icon()">g_emblem_get_icon</a>, function in <a class="link" href="GEmblem.html" title="GEmblem">GEmblem</a>
</dt>
<dd></dd>
<dt>
<a class="link" href="GEmblem.html#g-emblem-get-origin" title="g_emblem_get_origin()">g_emblem_get_origin</a>, function in <a class="link" href="GEmblem.html" title="GEmblem">GEmblem</a>
</dt>
<dd></dd>
<dt>
<a class="link" href="GEmblem.html#g-emblem-new" title="g_emblem_new()">g_emblem_new</a>, function in <a class="link" href="GEmblem.html" title="GEmblem">GEmblem</a>
</dt>
<dd></dd>
<dt>
<a class="link" href="GEmblem.html#g-emblem-new-with-origin" title="g_emblem_new_with_origin()">g_emblem_new_with_origin</a>, function in <a class="link" href="GEmblem.html" title="GEmblem">GEmblem</a>
</dt>
<dd></dd>
<a name="idxF"></a><h3 class="title">F</h3>
<dt>
<a class="link" href="GFileEnumerator.html#g-file-enumerator-get-container" title="g_file_enumerator_get_container()">g_file_enumerator_get_container</a>, function in <a class="link" href="GFileEnumerator.html" title="GFileEnumerator">GFileEnumerator</a>
</dt>
<dd></dd>
<dt>
<a class="link" href="GFile.html#g-file-make-directory-with-parents" title="g_file_make_directory_with_parents()">g_file_make_directory_with_parents</a>, function in <a class="link" href="GFile.html" title="GFile">GFile</a>
</dt>
<dd></dd>
<dt>
<a class="link" href="GFile.html#g-file-monitor" title="g_file_monitor()">g_file_monitor</a>, function in <a class="link" href="GFile.html" title="GFile">GFile</a>
</dt>
<dd></dd>
<dt>
<a class="link" href="GFile.html#g-file-query-file-type" title="g_file_query_file_type()">g_file_query_file_type</a>, function in <a class="link" href="GFile.html" title="GFile">GFile</a>
</dt>
<dd></dd>
<a name="idxM"></a><h3 class="title">M</h3>
<dt>
<a class="link" href="GMemoryOutputStream.html#g-memory-output-stream-get-data-size" title="g_memory_output_stream_get_data_size()">g_memory_output_stream_get_data_size</a>, function in <a class="link" href="GMemoryOutputStream.html" title="GMemoryOutputStream">GMemoryOutputStream</a>
</dt>
<dd></dd>
<dt>
<a class="link" href="GMount.html#g-mount-guess-content-type" title="g_mount_guess_content_type()">g_mount_guess_content_type</a>, function in <a class="link" href="GMount.html" title="GMount">GMount</a>
</dt>
<dd></dd>
<dt>
<a class="link" href="GMount.html#g-mount-guess-content-type-finish" title="g_mount_guess_content_type_finish()">g_mount_guess_content_type_finish</a>, function in <a class="link" href="GMount.html" title="GMount">GMount</a>
</dt>
<dd></dd>
<dt>
<a class="link" href="GMount.html#g-mount-guess-content-type-sync" title="g_mount_guess_content_type_sync()">g_mount_guess_content_type_sync</a>, function in <a class="link" href="GMount.html" title="GMount">GMount</a>
</dt>
<dd></dd>
<a name="idxT"></a><h3 class="title">T</h3>
<dt>
<a class="link" href="GThemedIcon.html#g-themed-icon-prepend-name" title="g_themed_icon_prepend_name()">g_themed_icon_prepend_name</a>, function in <a class="link" href="GThemedIcon.html" title="GThemedIcon">GThemedIcon</a>
</dt>
<dd></dd>
<a name="idxU"></a><h3 class="title">U</h3>
<dt>
<a class="link" href="gio-Unix-Mounts.html#g-unix-mount-monitor-set-rate-limit" title="g_unix_mount_monitor_set_rate_limit()">g_unix_mount_monitor_set_rate_limit</a>, function in <a class="link" href="gio-Unix-Mounts.html" title="Unix Mounts">Unix Mounts</a>
</dt>
<dd></dd>
<a name="idxV"></a><h3 class="title">V</h3>
<dt>
<a class="link" href="GVolumeMonitor.html#GVolumeMonitor-drive-eject-button" title="The drive-eject-button signal">GVolumeMonitor::drive-eject-button</a>, object signal in <a class="link" href="GVolumeMonitor.html" title="GVolumeMonitor">GVolumeMonitor</a>
</dt>
<dd></dd>
<dt>
<a class="link" href="GVolume.html#g-volume-get-activation-root" title="g_volume_get_activation_root()">g_volume_get_activation_root</a>, function in <a class="link" href="GVolume.html" title="GVolume">GVolume</a>
</dt>
<dd></dd>
</div>
<div class="footer">
<hr>Generated by GTK-Doc V1.25.1</div>
</body>
</html>
```
|
```java
package com.yahoo.component;
import java.util.concurrent.atomic.AtomicInteger;
/**
* The id of a component.
* Consists of a name, optionally a version, and optionally a namespace.
* This is an immutable value object.
*
* @author bratseth
* @author Tony Vaagenes
*/
public final class ComponentId implements Comparable<ComponentId> {
private final Spec<Version> spec;
private final boolean anonymous;
private static final AtomicInteger threadIdCounter = new AtomicInteger(0);
private static final ThreadLocal<Counter> threadLocalUniqueId = ThreadLocal.withInitial(Counter::new);
private static final ThreadLocal<String> threadId = ThreadLocal.withInitial(() -> "_" + threadIdCounter.getAndIncrement() + "_");
/** Precomputed string value */
private final String stringValue;
/**
* Creates a component id from the id string form: name(:version)?(@namespace)?,
* where version has the form 1(.2(.3(.identifier)?)?)?
* and namespace is a component id
*/
public ComponentId(String id) {
this(new SpecSplitter(id));
}
private ComponentId(SpecSplitter splitter) {
this(splitter.name, Version.fromString(splitter.version), splitter.namespace);
}
public ComponentId(String name, Version version, ComponentId namespace) {
this(name, version, namespace, false);
}
/** Creates a component id from a name and version. The version may be null */
public ComponentId(String name, Version version) {
this(name, version, null);
}
private ComponentId(String id, Version version, ComponentId namespace, boolean anonymous) {
this.spec = new Spec<>(new VersionHandler(), id, version, namespace);
this.anonymous = anonymous;
this.stringValue = spec.createStringValue();
}
public ComponentId nestInNamespace(ComponentId namespace) {
if (namespace == null) {
return this;
} else {
ComponentId newNamespace = (getNamespace() == null)
? namespace
: getNamespace().nestInNamespace(namespace);
return new ComponentId(getName(), getVersion(), newNamespace);
}
}
/** Returns the name of this. This is never null */
public String getName() { return spec.name; }
/** Returns the version of this id, or emptyVersion if no version is specified */
public Version getVersion() { return spec.version; }
/** The namespace is null if this is a top level component id **/
public ComponentId getNamespace() { return spec.namespace; }
/**
* Returns the string value of this id.
* If no version is given, this is simply the name.
* If a version is given, it is name:version.
* Trailing ".0"'s are stripped from the version part.
*/
public String stringValue() { return stringValue; }
@Override
public String toString() {
return spec.toString();
}
@Override
public boolean equals(Object o) {
if (o == this) return true;
if ( ! (o instanceof ComponentId c)) return false;
if (isAnonymous() || c.isAnonymous()) // TODO: Stop doing this
return false;
return c.stringValue().equals(stringValue);
}
@Override
public int hashCode() {
return stringValue.hashCode();
}
public ComponentSpecification toSpecification() {
if (isAnonymous())
throw new RuntimeException("Can't generate a specification for an anonymous component id.");
return new ComponentSpecification(getName(),
getVersion().toSpecification(), getNamespace());
}
public int compareTo(ComponentId other) {
//anonymous must never be equal to non-anonymous
if (isAnonymous() ^ other.isAnonymous()) {
return isAnonymous() ? -1 : 1;
}
return spec.compareTo(other.spec);
}
/** Creates a componentId that is unique for this run-time instance */
public static ComponentId createAnonymousComponentId(String baseName) {
return new ComponentId(createAnonymousId(baseName), null, null, true);
}
public boolean isAnonymous() {
return anonymous;
}
/** Returns a copy of this id with namespace set to null **/
public ComponentId withoutNamespace() {
return new ComponentId(getName(), getVersion(), null);
}
/**
* Creates a component id from the id string form: name(:version)?(@namespace)?,
* where version has the form 1(.2(.3(.identifier)?)?)?
* and namespace is a component id.
*
* @return new ComponentId(componentId), or null if the input string is null
*/
public static ComponentId fromString(String componentId) {
try {
return (componentId != null) ? new ComponentId(componentId) : null;
} catch(Exception e) {
throw new IllegalArgumentException("Illegal component id: '" + componentId + "'", e);
}
}
/**
* Returns this id's stringValue (i.e the id without trailing ".0"'s) translated to a file name using the
* <i>standard translation:</i>
* <pre><code>
* : -
* / _
* </code></pre>
*/
public String toFileName() {
return stringValue.replace(":","-").replace("/",".");
}
/**
* Creates an id from a file <b>first</b> name string encoded in the standard translation (see {@link #toFileName}).
* <b>Note</b> that any file last name, like e.g ".xml" must be stripped off before handoff to this method.
*/
public static ComponentId fromFileName(String fileName) {
// Initial assumptions
String id = fileName;
Version version = null;
ComponentId namespace = null;
// Split out namespace, if any
int at = id.indexOf("@");
if (at > 0) {
String newId = id.substring(0, at);
namespace = ComponentId.fromString(id.substring(at + 1));
id = newId;
}
// Split out version, if any
int dash = id.lastIndexOf("-");
if (dash > 0) {
String newId = id.substring(0, dash);
try {
version = new Version(id.substring(dash + 1));
id = newId;
}
catch (IllegalArgumentException e) {
// don't interpret the text following the dash as a version
}
}
// Convert dots in id portion back - this is the part which prevents us from
id=id.replace(".","/");
return new ComponentId(id,version,namespace);
}
/** WARNING: For testing only: Resets counters creating anonymous component ids for this thread. */
public static void resetGlobalCountersForTests() {
threadId.set("_0_");
threadLocalUniqueId.set(new Counter());
}
private static String createAnonymousId(String name) {
return name + threadId.get() + threadLocalUniqueId.get().getAndIncrement();
}
/** Creates a component id with the given value, marked as anonymous */
public static ComponentId newAnonymous(String spec) {
var splitter = new SpecSplitter(spec);
return new ComponentId(splitter.name, Version.fromString(splitter.version), splitter.namespace, true);
}
private static final class VersionHandler implements Spec.VersionHandler<Version> {
@Override
public Version emptyVersion() {
return Version.emptyVersion;
}
@Override
public int compare(Version v1, Version v2) {
return v1.compareTo(v2);
}
}
private final static class Counter {
private int count = 0;
public int getAndIncrement() { return count++; }
}
}
```
|
```shell
Test disk speed with `dd`
List current logged on users with `w`
Force a time update with `ntp`
Changing the timezone on deb based systems
Get hardware stack details with `lspci`
```
|
```smalltalk
using System.Collections.Generic;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using System.Threading.Tasks;
using Ombi.Core.Engine.V2;
using Ombi.Core.Models.Search.V2;
namespace Ombi.Controllers.V2
{
public class CalendarController : V2Controller
{
public CalendarController(ICalendarEngine calendarEngine)
{
_calendarEngine = calendarEngine;
}
private readonly ICalendarEngine _calendarEngine;
[HttpGet]
public async Task<List<CalendarViewModel>> GetCalendarEntries()
{
return await _calendarEngine.GetCalendarData();
}
}
}
```
|
Frank Sullivan may refer to:
Frank Sullivan (baseball) (1930–2016), American baseball pitcher
Frank Sullivan (basketball), college men's basketball coach
Frank Sullivan (film editor) (1896–1972), American film editor
Frank J. Sullivan (1852–?), state senator in California's 13th State Senate district
Frank Sullivan (ice hockey, born 1898) (1898–1989), Canadian ice hockey player for the University of Toronto Grads and Canada
Frank Sullivan (ice hockey, born 1929) (1929–2009), Canadian ice hockey player for the Toronto Maple Leafs and Chicago Blackhawks
Frank Sullivan (medical doctor), Scottish general practitioner and medical researcher
Frank Sullivan (writer) (1892–1976), American journalist and humorist
Frank Sullivan Jr. (born 1950), justice of the Indiana Supreme Court
Frank Sullivan (American football), American football player
See also
Francis Sullivan (disambiguation)
|
```objective-c
/*
*
*/
#ifndef ZEPHYR_INCLUDE_DT_BINDINGS_ST_LSM6DSV16X_H_
#define ZEPHYR_INCLUDE_DT_BINDINGS_ST_LSM6DSV16X_H_
/* Accel range */
#define LSM6DSV16X_DT_FS_2G 0
#define LSM6DSV16X_DT_FS_4G 1
#define LSM6DSV16X_DT_FS_8G 2
#define LSM6DSV16X_DT_FS_16G 3
/* Gyro range */
#define LSM6DSV16X_DT_FS_125DPS 0x0
#define LSM6DSV16X_DT_FS_250DPS 0x1
#define LSM6DSV16X_DT_FS_500DPS 0x2
#define LSM6DSV16X_DT_FS_1000DPS 0x3
#define LSM6DSV16X_DT_FS_2000DPS 0x4
#define LSM6DSV16X_DT_FS_4000DPS 0xc
/* Accel and Gyro Data rates */
#define LSM6DSV16X_DT_ODR_OFF 0x0
#define LSM6DSV16X_DT_ODR_AT_1Hz875 0x1
#define LSM6DSV16X_DT_ODR_AT_7Hz5 0x2
#define LSM6DSV16X_DT_ODR_AT_15Hz 0x3
#define LSM6DSV16X_DT_ODR_AT_30Hz 0x4
#define LSM6DSV16X_DT_ODR_AT_60Hz 0x5
#define LSM6DSV16X_DT_ODR_AT_120Hz 0x6
#define LSM6DSV16X_DT_ODR_AT_240Hz 0x7
#define LSM6DSV16X_DT_ODR_AT_480Hz 0x8
#define LSM6DSV16X_DT_ODR_AT_960Hz 0x9
#define LSM6DSV16X_DT_ODR_AT_1920Hz 0xA
#define LSM6DSV16X_DT_ODR_AT_3840Hz 0xB
#define LSM6DSV16X_DT_ODR_AT_7680Hz 0xC
#define LSM6DSV16X_DT_ODR_HA01_AT_15Hz625 0x13
#define LSM6DSV16X_DT_ODR_HA01_AT_31Hz25 0x14
#define LSM6DSV16X_DT_ODR_HA01_AT_62Hz5 0x15
#define LSM6DSV16X_DT_ODR_HA01_AT_125Hz 0x16
#define LSM6DSV16X_DT_ODR_HA01_AT_250Hz 0x17
#define LSM6DSV16X_DT_ODR_HA01_AT_500Hz 0x18
#define LSM6DSV16X_DT_ODR_HA01_AT_1000Hz 0x19
#define LSM6DSV16X_DT_ODR_HA01_AT_2000Hz 0x1A
#define LSM6DSV16X_DT_ODR_HA01_AT_4000Hz 0x1B
#define LSM6DSV16X_DT_ODR_HA01_AT_8000Hz 0x1C
#define LSM6DSV16X_DT_ODR_HA02_AT_12Hz5 0x23
#define LSM6DSV16X_DT_ODR_HA02_AT_25Hz 0x24
#define LSM6DSV16X_DT_ODR_HA02_AT_50Hz 0x25
#define LSM6DSV16X_DT_ODR_HA02_AT_100Hz 0x26
#define LSM6DSV16X_DT_ODR_HA02_AT_200Hz 0x27
#define LSM6DSV16X_DT_ODR_HA02_AT_400Hz 0x28
#define LSM6DSV16X_DT_ODR_HA02_AT_800Hz 0x29
#define LSM6DSV16X_DT_ODR_HA02_AT_1600Hz 0x2A
#define LSM6DSV16X_DT_ODR_HA02_AT_3200Hz 0x2B
#define LSM6DSV16X_DT_ODR_HA02_AT_6400Hz 0x2C
#endif /* ZEPHYR_INCLUDE_DT_BINDINGS_ST_LSM6DSV16X_H_ */
```
|
```html
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "path_to_url">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<title>Global extended_p_square_quantile</title>
<link rel="stylesheet" href="../../../../../doc/src/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
<link rel="home" href="../../../index.html" title="The Boost C++ Libraries BoostBook Documentation Subset">
<link rel="up" href="../../../accumulators/reference.html#header.boost.accumulators.statistics.extended_p_square_quantile_hpp" title="Header <boost/accumulators/statistics/extended_p_square_quantile.hpp>">
<link rel="prev" href="../feature__1_3_2_6_3_8_1_1_2.html" title="Struct feature_of<tag::weighted_extended_p_square>">
<link rel="next" href="exten_1_3_2_6_3_9_1_1_11_2.html" title="Global extended_p_square_quantile_quadratic">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr>
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../boost.png"></td>
<td align="center"><a href="../../../../../index.html">Home</a></td>
<td align="center"><a href="../../../../../libs/libraries.htm">Libraries</a></td>
<td align="center"><a href="path_to_url">People</a></td>
<td align="center"><a href="path_to_url">FAQ</a></td>
<td align="center"><a href="../../../../../more/index.htm">More</a></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="../feature__1_3_2_6_3_8_1_1_2.html"><img src="../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../../accumulators/reference.html#header.boost.accumulators.statistics.extended_p_square_quantile_hpp"><img src="../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="exten_1_3_2_6_3_9_1_1_11_2.html"><img src="../../../../../doc/src/images/next.png" alt="Next"></a>
</div>
<div class="refentry">
<a name="boost.accumulators.extract.extended_p_square_quantile"></a><div class="titlepage"></div>
<div class="refnamediv">
<h2><span class="refentrytitle">Global extended_p_square_quantile</span></h2>
<p>boost::accumulators::extract::extended_p_square_quantile</p>
</div>
<h2 xmlns:rev="path_to_url~gregod/boost/tools/doc/revision" class="refsynopsisdiv-title">Synopsis</h2>
<div xmlns:rev="path_to_url~gregod/boost/tools/doc/revision" class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: <<a class="link" href="../../../accumulators/reference.html#header.boost.accumulators.statistics.extended_p_square_quantile_hpp" title="Header <boost/accumulators/statistics/extended_p_square_quantile.hpp>">boost/accumulators/statistics/extended_p_square_quantile.hpp</a>>
</span><a class="link" href="../extractor.html" title="Struct template extractor">extractor</a><span class="special"><</span> <a class="link" href="../tag/extended_p_square_quantile.html" title="Struct extended_p_square_quantile">tag::extended_p_square_quantile</a> <span class="special">></span> <span class="keyword">const</span> extended_p_square_quantile<span class="special">;</span></pre></div>
</div>
<table xmlns:rev="path_to_url~gregod/boost/tools/doc/revision" width="100%"><tr>
<td align="left"></td>
file LICENSE_1_0.txt or copy at <a href="path_to_url" target="_top">path_to_url
</p>
</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="../feature__1_3_2_6_3_8_1_1_2.html"><img src="../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../../accumulators/reference.html#header.boost.accumulators.statistics.extended_p_square_quantile_hpp"><img src="../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="exten_1_3_2_6_3_9_1_1_11_2.html"><img src="../../../../../doc/src/images/next.png" alt="Next"></a>
</div>
</body>
</html>
```
|
```markdown
SOP017 - Add app-deploy AD group
================================
Description
-----------
If the Big Data Cluster was installed without an Active Directory group,
you can add one post install using this notebook.
### Steps
### Parameters```
```python
user_or_group_name = "<INSERT USER/GROUP NAME>"
realm = "<INSERT REALM>" # Upper case
sid = "" # To find the SID of the user or the group being added, you can use Get-ADUser or Get-ADGroup PowerShell commands.
role = "appReader"
```
```markdown
### Instantiate Kubernetes client```
```python
# Instantiate the Python Kubernetes client into 'api' variable
import os
from IPython.display import Markdown
try:
from kubernetes import client, config
from kubernetes.stream import stream
except ImportError:
# Install the Kubernetes module
import sys
!{sys.executable} -m pip install kubernetes
try:
from kubernetes import client, config
from kubernetes.stream import stream
except ImportError:
display(Markdown(f'HINT: Use [SOP059 - Install Kubernetes Python module](../install/sop059-install-kubernetes-module.ipynb) to resolve this issue.'))
raise
if "KUBERNETES_SERVICE_PORT" in os.environ and "KUBERNETES_SERVICE_HOST" in os.environ:
config.load_incluster_config()
else:
try:
config.load_kube_config()
except:
display(Markdown(f'HINT: Use [TSG118 - Configure Kubernetes config](../repair/tsg118-configure-kube-config.ipynb) to resolve this issue.'))
raise
api = client.CoreV1Api()
print('Kubernetes client instantiated')
```
```markdown
### Get the namespace for the big data cluster
Get the namespace of the Big Data Cluster from the Kuberenetes API.
**NOTE:**
If there is more than one Big Data Cluster in the target Kubernetes
cluster, then either:
- set \[0\] to the correct value for the big data cluster.
- set the environment variable AZDATA\_NAMESPACE, before starting
Azure Data Studio.```
```python
# Place Kubernetes namespace name for BDC into 'namespace' variable
if "AZDATA_NAMESPACE" in os.environ:
namespace = os.environ["AZDATA_NAMESPACE"]
else:
try:
namespace = api.list_namespace(label_selector='MSSQL_CLUSTER').items[0].metadata.name
except IndexError:
from IPython.display import Markdown
display(Markdown(f'HINT: Use [TSG081 - Get namespaces (Kubernetes)](../monitor-k8s/tsg081-get-kubernetes-namespaces.ipynb) to resolve this issue.'))
display(Markdown(f'HINT: Use [TSG010 - Get configuration contexts](../monitor-k8s/tsg010-get-kubernetes-contexts.ipynb) to resolve this issue.'))
display(Markdown(f'HINT: Use [SOP011 - Set kubernetes configuration context](../common/sop011-set-kubernetes-context.ipynb) to resolve this issue.'))
raise
print('The kubernetes namespace for your big data cluster is: ' + namespace)
```
```markdown
### Create helper function to run `sqlcmd` against the controller database```
```python
try:
import pandas
except ModuleNotFoundError:
!{sys.executable} -m pip install --user pandas
import pandas
from io import StringIO
pandas.set_option('display.max_colwidth', -1)
name = 'controldb-0'
container = 'mssql-server'
def run_sqlcmd(query):
command=f"""export SQLCMDPASSWORD=$(cat /var/run/secrets/credentials/mssql-sa-password/password); /opt/mssql-tools/bin/sqlcmd -b -S . -U sa -Q "SET NOCOUNT ON; {query}" -d controller -s"^" -W > /tmp/out.csv; sed -i 2d /tmp/out.csv; cat /tmp/out.csv"""
output=stream(api.connect_get_namespaced_pod_exec, name, namespace, command=['/bin/sh', '-c', command], container=container, stderr=True, stdout=True)
print(output)
print("Function defined")
```
```markdown
### Insert user or group into the controller database roles table```
```python
run_sqlcmd(f"INSERT INTO [controller].[auth].[roles] VALUES (N'{user_or_group_name}@{realm}', '{role}')")
```
```markdown
### Insert user or group into the controller database active\_directory\_principals tables```
```python
run_sqlcmd(f"INSERT INTO [controller].[auth].[active_directory_principals] VALUES (N'{user_or_group_name}@{realm}', N'{sid}')")
```
```python
print("Notebook execution is complete.")
```
|
```less
.topic-banner {
padding: 24px 48px;
.display {
font-size: 18px;
color: @font-level-2;
margin-bottom: 8px;
}
.line {
margin-top: 16px;
}
.display-default {
.button {
color: white;
display: inline-flex;
flex-direction: horizontal;
align-items: center;
.ti {
margin-right: 8px;
}
&.add-members {
@color: #7986CB;
background-color: @color;
&:hover {
background-color: darken(@color, 10%)
}
}
&.add-integrations {
@color: #4DB6AC;
background-color: @color;
&:hover {
background-color: darken(@color, 10%)
}
}
&.guest-mode {
@color: #9CCC65;
background-color: @color;
&:hover {
background-color: darken(@color, 10%)
}
}
&.help-center {
@color: @color-blue;
background-color: @color;
&:hover {
background-color: darken(@color, 10%)
}
}
}
}
.display-slim {
margin-top: 20px;
margin-bottom: 30px;
.display-name {
margin-bottom: 10px;
font-size: 18px;
line-height: 20px;
}
.display-guide{
font-size: 14px;
line-height: 14px;
}
.button {
height: 24px;
line-height: 24px;
background-color: transparent!important;
&.add-members {
color: #7986CB;
}
&.add-integrations {
color: #4DB6AC;
}
&.guest-mode {
color: #9CCC65;
}
}
}
}
.topic-banner .clients {
margin-top: 32px;
.talk-download {
margin-top: 8px;
}
}
```
|
"Drive" is a song by British electronic music group Clean Bandit and German DJ Topic featuring English recording artist Wes Nelson. It was released on 30 July 2021, via Atlantic Records.
Critical reception
Simone Ciaravolo of Edm-Lab opined that the track "[is] full of positive vibes", and "brings [us] on a metaphorical nocturnal journey: the scenery of a newborn love story."
Music video
The music video was released on 6 August 2021, and directed by Dan Massie. It features Nelson as "a happy lorry driver, performing from the cab of his big truck through country and city, and into outer space." Katrina Rees of Celebmix praised the visual "perfectly captures the upbeat nature of the track, which is laced with pulsating beats and glossy strings."
Credits and personnel
Credits adapted from AllMusic.
Grace Chatto – cello, producer, vocal producer
Clean Bandit – primary artist
Molly Fletcher – violin
Stuart Hawkes – mastering
Chloe Kraemer – engineer
Wes Nelson – featured artist, vocals
Alex Oriet – bass, composer, drums, keyboards, programmer, synthesizer
Jack Patterson – composer, drums, keyboards, producer, programmer, synthesizer, vocal producer
Luke Patterson – drums, keyboards, programmer, synthesizer
David Phelan – bass, composer, drums, keyboards, programmer, synthesizer
Beatrice Philips – violin
Mark Ralph – drums, keyboards, mixing, producer, programmer, synthesizer
Salt Wives – producer
Alexander Tidebrink – composer
Topic – drums, keyboards, primary artist, producer, programmer, synthesizer, composer
Henry Tucker – composer
Charts
Weekly charts
Year-end charts
Certifications
References
2021 songs
2021 singles
Clean Bandit songs
Topic (DJ) songs
Song recordings produced by Mark Ralph (record producer)
Songs written by Topic (DJ)
Songs written by A7S
Songs written by Jack Patterson (Clean Bandit)
Atlantic Records singles
|
Catocala helena is a moth of the family Erebidae. It is found in Siberia and Manchuria.
Expansion of its distribution westward, presumably due to human activity, was recorded.
The length of the forewings is about 30 mm.
Subspecies
Catocala helena helena
Catocala helena kurenzovi (Moltrecht, 1927) (South-eastern Siberia)
Catocala helena beicki (Mell, 1936) (Manchuria)
References
External links
Image
Species info
Moths described in 1856
helena
Moths of Asia
|
Godlewo is a village in the administrative district of Gmina Grajewo, Poland
Godlewo may also refer to:
Godlewo Wielkie, village in the administrative district of Gmina Nur, Poland
Former Polish name of Garliava, Lithuania
|
The 1998–99 Liga Alef season was held between 11 September 1998 and 29 May 1999. It was the last season (until 2009–10) in which Liga Alef was the third tier of Israeli football, as the creation of the Israeli Premier League in the summer of 1999 meant that it became the fourth tier.
Due to the restructuring, two clubs were due to be promoted from each division; Hapoel Ra'anana and Hapoel Nazareth Illit from the north and Hapoel Dimona and Hapoel Ramat Gan from the south.
During the summer of 1999, Maccabi Jaffa were demoted to Liga Alef (from Liga Leumit) after their budget was not approved by the Israel Football Association, which resulted in Maccabi Sha'arayim (the third-placed club with the highest points total) being promoted alongside the top two from the South Division. In addition, Hapoel Ashdod, Hapoel Lod and SK Nes Tziona were all demoted from Liga Artzit after their budgets were not approved by the IFA. This resulted in the third- and fourth-placed clubs from the North Division (Hapoel Iksal and Hapoel Acre) and the fourth-placed club in the South Division (Shimshon Tel Aviv) also being promoted.
North Division
South Division
References
Israel Third Level 1998/99 RSSSF
Liga Alef seasons
3
Israel
|
```groff
.\" $OpenBSD: pwmreg.4,v 1.1 2019/09/30 21:00:51 kettenis 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 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.
.\"
.Dd $Mdocdate: September 30 2019 $
.Dt PWMREG 4
.Os
.Sh NAME
.Nm pwmreg
.Nd PWM voltage regulator
.Sh SYNOPSIS
.Cd "pwmreg* at fdt?"
.Sh DESCRIPTION
The
.Nm
driver provides support for voltage regulators that are controlled by
a PWM signal.
.Sh SEE ALSO
.Xr intro 4
.Sh HISTORY
The
.Nm
device driver first appeared in
.Ox 6.6 .
.Sh AUTHORS
.An -nosplit
The
.Nm
driver was written by
.An Mark Kettenis Aq Mt kettenis@openbsd.org .
```
|
Kozibrod () is a village in Croatia. It is connected by the D47 highway.
References
Populated places in Sisak-Moslavina County
|
The women's shot put competition at the 2011 Pan American Games in Guadalajara was held on October 27 at the newly built Telmex Athletics Stadium. The previous champion was Misleydis González of Cuba.
Records
Prior to this competition, the existing world and Pan American Games records were as follows:
Qualification
Each National Olympic Committee (NOC) was able to enter up to two entrants providing they had met the minimum standard (14.50 meters) in the qualifying period (January 1, 2010 to September 14, 2011).
Schedule
Results
All distances shown are in meters:centimeters
Final
References
Athletics at the 2011 Pan American Games
2011
2011 in women's athletics
|
```xml
import { Commands } from '../constants';
import type { Container } from '../container';
import { command } from '../system/command';
import { Command } from './base';
@command()
export class DisableRebaseEditorCommand extends Command {
constructor(private readonly container: Container) {
super(Commands.DisableRebaseEditor);
}
execute() {
return this.container.rebaseEditor.setEnabled(false);
}
}
@command()
export class EnableRebaseEditorCommand extends Command {
constructor(private readonly container: Container) {
super(Commands.EnableRebaseEditor);
}
execute() {
return this.container.rebaseEditor.setEnabled(true);
}
}
```
|
Donald's Off Day is a 1944 Walt Disney animated short by Jack Hannah starring Donald Duck and Huey, Louie and Dewey. It stars the nephews tricking Donald into thinking that he is seriously ill.
This cartoon was Hannah's debut as an animation director. Veteran animator Jack King was slated to direct the short, but Hannah argued that King wasn't up to it:
Plot
Donald wakes up one morning noticing that it is a sunny day outside he feels excited and prepares himself to go out to play golf as quickly as possible. However, as soon as he leaves his house, out of nowhere, a rainy thunderstorm comes crashing down the sky. Now in a bad mood, he acts rudely towards his nephews Huey, Dewey and Louie, who decide to play a trick on him. As Donald reads through a medical book to pass the time while it rains outside, the nephews manage to fool him into believing he actually is sick. As Donald is laid to rest on his couch, they sneak a little toy rabbit with an air pump underneath his blanket and start pumping air into it. Donald assumes it is his heart beating overtime and fears that he is about to die. Eventually he discovers he has been fooled all along and wants to punish Huey, Louie and Dewey, but then it stops raining and Donald is immediately overjoyed. He runs outside with his golf gear, only for the thunderstorm to return immediately, and Donald is struck by lightning.
Voice cast
Clarence Nash as Donald Duck, Huey, Dewey and Louie
Adriana Caselotti as Singer of opening song
Home media
The short was released on December 6, 2005, on Walt Disney Treasures: The Chronological Donald, Volume Two: 1942-1946.
References
External links
Donald Duck short films
1944 films
1940s Disney animated short films
1944 animated films
Films directed by Jack Hannah
Films produced by Walt Disney
Golf animation
Films scored by Paul Smith (film and television composer)
Films about hypochondriasis
|
Henri-Charles Puech (; 20 July 1902, Montpellier – 11 January 1986, aged 83) was a French historian who long held the chair of History of religions at the Collège de France from 1952 to 1972.
Biography
A philosopher by training, he was interested in Greek philosophy, especially in hermeticism and neoplatonism, before turning to the study of Christian doctrines of the early centuries, a discipline he long taught in the École pratique des hautes études.
His teaching had a great influence on the development of patristics studies in the second half of the twentieth in France. But it is primarily as a result of the discovery of new documents in the study of Manichaeism and the various systems of Gnostic thought that he gained international recognition.
A long collaborator of the before he directed it, he presided the Association internationale pour l'étude de l'histoire des religions from 1950 to 1965.
Honours
Officier of the Légion d'honneur (1963)
Commandeur of the Ordre of the Palmes académiques (1965)
Commandeur of the Ordre national du Mérite (1969)
Work
1970: Histoire des religions, 3 vol., Éditions Gallimard
1978: En quête de la gnose, Paris, Gallimard, series "Bibliothèque des Sciences Humaines", 2 volumes Tome 1 : La Gnose et le Temps. Tome 2 : Sur l'évangile selon Thomas
1979: Sur le manichéisme et autres essais, Paris, Flammarion, series "Idées et recherches"
External links
Henri-Charles Puech on the site of the collège de France
Notice sur la vie et les travaux d'Henri-Charles Puech, membre de l'Académie on Persée
Puech, Henri-Charles on E. Universalis
Allocution de M. Henri-Charles Puech, président on Persée
Lycée Louis-le-Grand alumni
École Normale Supérieure alumni
20th-century French historians
French historians of religion
Historians of Gnosticism
Academic staff of the Collège de France
Academic staff of the École pratique des hautes études
Officers of the Legion of Honour
Commandeurs of the Ordre des Palmes Académiques
Commanders of the Ordre national du Mérite
Fellows of the British Academy
Members of the Académie des Inscriptions et Belles-Lettres
Writers from Montpellier
1902 births
1986 deaths
Corresponding Fellows of the British Academy
|
```go
// +build !windows
package main
import (
"fmt"
"strings"
"github.com/docker/docker/integration-cli/checker"
"github.com/docker/docker/integration-cli/daemon"
"github.com/go-check/check"
)
var (
authzPluginName = "riyaz/authz-no-volume-plugin"
authzPluginTag = "latest"
authzPluginNameWithTag = authzPluginName + ":" + authzPluginTag
authzPluginBadManifestName = "riyaz/authz-plugin-bad-manifest"
nonexistentAuthzPluginName = "riyaz/nonexistent-authz-plugin"
)
func init() {
check.Suite(&DockerAuthzV2Suite{
ds: &DockerSuite{},
})
}
type DockerAuthzV2Suite struct {
ds *DockerSuite
d *daemon.Daemon
}
func (s *DockerAuthzV2Suite) SetUpTest(c *check.C) {
testRequires(c, DaemonIsLinux, Network)
s.d = daemon.New(c, dockerBinary, dockerdBinary, daemon.Config{
Experimental: testEnv.ExperimentalDaemon(),
})
s.d.Start(c)
}
func (s *DockerAuthzV2Suite) TearDownTest(c *check.C) {
if s.d != nil {
s.d.Stop(c)
s.ds.TearDownTest(c)
}
}
func (s *DockerAuthzV2Suite) TestAuthZPluginAllowNonVolumeRequest(c *check.C) {
testRequires(c, DaemonIsLinux, IsAmd64, Network)
// Install authz plugin
_, err := s.d.Cmd("plugin", "install", "--grant-all-permissions", authzPluginNameWithTag)
c.Assert(err, checker.IsNil)
// start the daemon with the plugin and load busybox, --net=none build fails otherwise
// because it needs to pull busybox
s.d.Restart(c, "--authorization-plugin="+authzPluginNameWithTag)
c.Assert(s.d.LoadBusybox(), check.IsNil)
// defer disabling the plugin
defer func() {
s.d.Restart(c)
_, err = s.d.Cmd("plugin", "disable", authzPluginNameWithTag)
c.Assert(err, checker.IsNil)
_, err = s.d.Cmd("plugin", "rm", authzPluginNameWithTag)
c.Assert(err, checker.IsNil)
}()
// Ensure docker run command and accompanying docker ps are successful
out, err := s.d.Cmd("run", "-d", "busybox", "top")
c.Assert(err, check.IsNil)
id := strings.TrimSpace(out)
out, err = s.d.Cmd("ps")
c.Assert(err, check.IsNil)
c.Assert(assertContainerList(out, []string{id}), check.Equals, true)
}
func (s *DockerAuthzV2Suite) TestAuthZPluginDisable(c *check.C) {
testRequires(c, DaemonIsLinux, IsAmd64, Network)
// Install authz plugin
_, err := s.d.Cmd("plugin", "install", "--grant-all-permissions", authzPluginNameWithTag)
c.Assert(err, checker.IsNil)
// start the daemon with the plugin and load busybox, --net=none build fails otherwise
// because it needs to pull busybox
s.d.Restart(c, "--authorization-plugin="+authzPluginNameWithTag)
c.Assert(s.d.LoadBusybox(), check.IsNil)
// defer removing the plugin
defer func() {
s.d.Restart(c)
_, err = s.d.Cmd("plugin", "rm", "-f", authzPluginNameWithTag)
c.Assert(err, checker.IsNil)
}()
out, err := s.d.Cmd("volume", "create")
c.Assert(err, check.NotNil)
c.Assert(out, checker.Contains, fmt.Sprintf("Error response from daemon: plugin %s failed with error:", authzPluginNameWithTag))
// disable the plugin
_, err = s.d.Cmd("plugin", "disable", authzPluginNameWithTag)
c.Assert(err, checker.IsNil)
// now test to see if the docker api works.
_, err = s.d.Cmd("volume", "create")
c.Assert(err, checker.IsNil)
}
func (s *DockerAuthzV2Suite) TestAuthZPluginRejectVolumeRequests(c *check.C) {
testRequires(c, DaemonIsLinux, IsAmd64, Network)
// Install authz plugin
_, err := s.d.Cmd("plugin", "install", "--grant-all-permissions", authzPluginNameWithTag)
c.Assert(err, checker.IsNil)
// restart the daemon with the plugin
s.d.Restart(c, "--authorization-plugin="+authzPluginNameWithTag)
// defer disabling the plugin
defer func() {
s.d.Restart(c)
_, err = s.d.Cmd("plugin", "disable", authzPluginNameWithTag)
c.Assert(err, checker.IsNil)
_, err = s.d.Cmd("plugin", "rm", authzPluginNameWithTag)
c.Assert(err, checker.IsNil)
}()
out, err := s.d.Cmd("volume", "create")
c.Assert(err, check.NotNil)
c.Assert(out, checker.Contains, fmt.Sprintf("Error response from daemon: plugin %s failed with error:", authzPluginNameWithTag))
out, err = s.d.Cmd("volume", "ls")
c.Assert(err, check.NotNil)
c.Assert(out, checker.Contains, fmt.Sprintf("Error response from daemon: plugin %s failed with error:", authzPluginNameWithTag))
// The plugin will block the command before it can determine the volume does not exist
out, err = s.d.Cmd("volume", "rm", "test")
c.Assert(err, check.NotNil)
c.Assert(out, checker.Contains, fmt.Sprintf("Error response from daemon: plugin %s failed with error:", authzPluginNameWithTag))
out, err = s.d.Cmd("volume", "inspect", "test")
c.Assert(err, check.NotNil)
c.Assert(out, checker.Contains, fmt.Sprintf("Error response from daemon: plugin %s failed with error:", authzPluginNameWithTag))
out, err = s.d.Cmd("volume", "prune", "-f")
c.Assert(err, check.NotNil)
c.Assert(out, checker.Contains, fmt.Sprintf("Error response from daemon: plugin %s failed with error:", authzPluginNameWithTag))
}
func (s *DockerAuthzV2Suite) TestAuthZPluginBadManifestFailsDaemonStart(c *check.C) {
testRequires(c, DaemonIsLinux, IsAmd64, Network)
// Install authz plugin with bad manifest
_, err := s.d.Cmd("plugin", "install", "--grant-all-permissions", authzPluginBadManifestName)
c.Assert(err, checker.IsNil)
// start the daemon with the plugin, it will error
c.Assert(s.d.RestartWithError("--authorization-plugin="+authzPluginBadManifestName), check.NotNil)
// restarting the daemon without requiring the plugin will succeed
s.d.Restart(c)
}
func (s *DockerAuthzV2Suite) TestNonexistentAuthZPluginFailsDaemonStart(c *check.C) {
testRequires(c, DaemonIsLinux, Network)
// start the daemon with a non-existent authz plugin, it will error
c.Assert(s.d.RestartWithError("--authorization-plugin="+nonexistentAuthzPluginName), check.NotNil)
// restarting the daemon without requiring the plugin will succeed
s.d.Start(c)
}
```
|
These are the official results of the athletics competition at the 2022 Mediterranean Games which took place between 30 June and 3 July 2022 in Oran, Algeria.
Men's results
100 metres
Heats – 30 JuneWind:Heat 1: +0.6 m/s, Heat 2: +0.4 m/s
Final – 30 JuneWind: +0.9 m/s
200 metres
Heats – 2 JulyWind:Heat 1: +0.9 m/s, Heat 2: +0.9 m/s
Final – 3 JulyWind: +0.8 m/s
400 metres
Heats – 1 July
Final – 2 July
800 metres
Heats – 1 July
Final – 3 July
1500 metres
2 July
5000 metres
3 July
Half marathon
1 July
110 metres hurdles
Heats – 2 JulyWind:Heat 1: +0.7 m/s, Heat 2: -0.4 m/s
Final – 3 JulyWind: +0.3 m/s
400 metres hurdles
Heats – 30 June
Final – 1 July
3000 metres steeplechase
30 June
4 × 100 metres relay
1 July
4 × 400 metres relay
3 July
High jump
1 July
Pole vault
2 July
Long jump
3 July
Triple jump
30 June
Shot put
30 June
Discus throw
3 July
Hammer throw
1 July
Javelin throw
2 July
Women's results
100 metres
Heats – 30 JuneWind:Heat 1: +0.7 m/s, Heat 2: +0.6 m/s
Final – 30 JuneWind: +0.5 m/s
200 metres
Heats – 2 JulyWind:Heat 1: +0.6 m/s, Heat 2: +0.8 m/s
Final – 3 JulyWind: +0.9 m/s
400 metres
2 July
800 metres
Heats – 30 June
Final – 2 July
1500 metres
3 July
5000 metres
2 July
Half marathon
1 July
100 metres hurdles
Heats – 2 JulyWind:Heat 1: +0.5 m/s, Heat 2: +1.0 m/s
Final – 3 JulyWind: +1.0 m/s
400 metres hurdles
Heats – 30 June
Final – 1 July
3000 metres steeplechase
1 July
4 × 100 metres relay
1 July
4 × 400 metres relay
3 July
High jump
3 July
Long jump
1 July
Triple jump
2 July
Discus throw
30 June
Hammer throw
30 June
Javelin throw
2 July
References
Mediterranean Games
2022 Results
Sports at the 2022 Mediterranean Games
|
Edenville may refer to:
Edenville, Free State, South Africa
Edenville, Michigan, United States
Edenville Township, Michigan, United States
See also
Edanville, Missouri
|
Sir Morell Mackenzie (7 July 1837 – 3 February 1892) was a British physician, one of the pioneers of laryngology in the United Kingdom.
Biography
Morell Mackenzie was born at Leytonstone, Essex, England on 7 July 1837. He was the eldest of nine children of Stephen Mackenzie (1803-1851), a general practitioner and surgeon, and Margaret Frances (died 1877), daughter of wine merchant Adam Harvey, of Lewes, East Sussex. He was educated at Dr Greig's school in Walthamstow and at King's College London.
After going through the medical course at the London Hospital and becoming a member to the Royal College of Surgeons in 1858, he studied abroad in Paris, Vienna and Budapest where he learned the use of the newly invented laryngoscope under Johann Czermak.
Returning to London in 1862, he worked at the London Hospital and earned his degree in medicine. In 1863 he won the Jacksonian prize at the Royal College of Surgeons for an essay on the Pathology and Treatment of Diseases of the Larynx: The Diagnostic Indications to include the Appearance as Seen in the Living Person. He was the first to use the terms abductors and adductors to describe the muscles that govern the opening and closing of the glottis. He then devoted himself to becoming a specialist in diseases of the throat.
In 1863 the Hospital for Diseases of the Throat in King Street, Golden Square, was founded, largely owing to his initiative, and by his work there and at the London Hospital (where he was one of the physicians from 1866 to 1873) Morell Mackenzie rapidly became recognized throughout Europe as a leading authority, and acquired an extensive practice. A plaque at 32 Golden Square, unveiled in May 1995, commemorates the original hospital.
His reputation grew even more with the publication of three important books, which became the founding stones of the new specialty of laryngology:
The Use of the Laryngoscope in Diseases of the Throat (1865).
Growths in the Larynx (1871).
Diseases of the Nose and Throat (1880 and 1884).
In 1887 Mackenzie was one of the founders of the Journal of Laryngology and Rhinology and of the British Rhino-Laryngological Association.
So great was his reputation that in May 1887, when the crown prince of Germany (afterwards the Emperor Frederick III) was attacked by the affection of the throat of which he ultimately died, Morell Mackenzie was specially summoned to attend him. The German physicians who had attended the prince since the beginning of March (Karl Gerhardt, and subsequently Adalbert Tobold, Ernst von Bergmann, and others), had diagnosed his ailment on 18 May as cancer of the throat; but Morell Mackenzie insisted (basing his opinion on a microscopical examination by a great pathologist, Rudolf Virchow, of a portion of the tissue) that the disease was not demonstrably cancerous, that an operation for the extirpation of the larynx (planned for the 21 May) was unjustifiable, and that the growth might well be a benign one and therefore curable by other treatment.
The question was one not only of personal but of political importance, since it was unsure whether any one suffering from an incapacitating disease like cancer could, according to the family law of the Hohenzollerns, occupy the German throne, and there was talk of a renunciation of the succession by the crown prince. It was freely hinted, moreover, that some of the doctors themselves were influenced by political considerations. At any rate, Morell Mackenzie's opinion was followed: the crown prince went to England, under his treatment, and was present at the celebrations of the Golden Jubilee of Queen Victoria in June. Morell Mackenzie was knighted in September 1887 for his services, and appointed a Grand Commander of the Royal House Order of Hohenzollern.
In November, however, the German doctors were again called into consultation, and it was ultimately admitted that the disease really was cancer; but Mackenzie, with very questionable judgment, more than hinted that it had become malignant since his first examination, in consequence of the irritating effect of the treatment by the German doctors. The crown prince became emperor on 9 March 1888 and died on 15 June. During all this period, a violent quarrel raged between Mackenzie and the German medical world. The German doctors published an account of the illness, to which Mackenzie replied by a work entitled The Fatal Illness of Frederick the Noble (1888), the publication of which caused him to be censured by the Royal College of Surgeons.
After this sensational episode in his career, the remainder of Sir Morell Mackenzie's life was uneventful, and he died somewhat suddenly in London, on 3 February 1892 and was buried in the churchyard at Wargrave in Berkshire where he had a house in the country. He published several books on laryngoscopy and diseases of the throat.
Biographies of Mackenzie were published by H.R. Haweis (1893) and R. Scott Stevenson (1946).
Writings
The Use of the Laryngoscope in Diseases of the Throat. Philadelphia: Lindsay & Blakiston, 1865.
Hoarseness, Loss of Voice, and Stridulous Breathing in Relation to Nervo-Muscular Affectations of the Larynx. London: Churchill, 1868.
Essays on Growths in the Larynx. Philadelphia: Lindsay & Blakiston, 1871.
The Pharmacopoeia of the Hospital for Diseases of the Throat. London: Churchill, 1872.
Diphtheria: Its Nature and Treatment, Varieties and Local Expressions. Philadelphia: Lindsay & Blakiston, 1879.
Diseases of the Pharynx, Larynx, and Trachea. New York: W. Wood, 1880.
A Manual of the Diseases of the Nose and Throat. London: Churchill, 1880–1884.
The Pharmacopoeia of the Hospital for Diseases of the Throat and Chest : based on the British Pharmacopoeia . Churchill, London 4th Ed. 1881 Digital edition by the University and State Library Düsseldorf
The Hygiene of the Vocal Organs: A Practical Handbook for Singers and Speakers. London: Macmillan, 1886.
Hay Fever and Paroxysmal Sneezing: Their Etiology and Treatment. London: Churchill, 1887.
The Fatal Illness of Frederick the Noble. London: Low, Marston, Searle, 1888.
Essays. London: Sampson Low, Marston, 1893. Digital edition available through the HathiTrust Digital Library (original from Harvard University).
See also
Fall of Eagles; he is portrayed in the 3rd episode under the name "Mackenzie."
References
External links
Extensive biography and his role in the history of laryngology.
1837 births
1892 deaths
Alumni of King's College London
Alumni of the London Hospital Medical College
19th-century English medical doctors
Knights Bachelor
People from Wargrave
People from Leytonstone
|
The Fall of Hyperion may refer to:
The Fall of Hyperion: A Dream, an unfinished epic poem by John Keats
The Fall of Hyperion (novel), a 1990 science fiction novel by Dan Simmons
|
Elizabeth Wallwork (née Donaldson, 20 July 1883 – 4 June 1969) was a New Zealand artist.
Early life
Born Elizabeth Donaldson on 20 July 1883, in Broughton, England, she was the sixth of nine children of Elizabeth Ann Hibbert and John Donaldson.
In 1911 she moved to New Zealand with her husband, fellow artist, Richard Wallwork, after he was offered position of life master at the Canterbury College School of Art, Christchurch.
Education
Wallwork studied at Manchester School of Art (previously Municipal School of Art) and at the Slade School of Fine Art in London, receiving two first-class certificates in drawing and in painting in 1907–1908. She was awarded the Lady Whitworth Scholarship.
Career
Wallwork was known as one of the foremost exponents of pastel portraiture in New Zealand. She also painted in oil and exhibited landscapes.
While in England Wallwork exhibited with Manchester and Liverpool Art Galleries, and the Salon in Paris. In New Zealand she exhibited with several art societies including:
Auckland Society of Arts
Canterbury Society of Arts
New Zealand Academy of Fine Arts
Otago Art Society
Her work was included in the:
British Empire Exhibition, London, 1924
New Zealand and South Seas Exhibition, Dunedin, 1925–1926
New Zealand Centennial Exhibition of 1940
Work by Wallwork can be found in the collections of the Museum of New Zealand Te Papa Tongarewa and Christchurch Art Gallery Te Puna o Waiwhetu.
References
Further reading
Artist files for Wallwork are held at:
Robert and Barbara Stewart Library and Archives, Christchurch Art Gallery Te Puna o Waiwhetu
Hocken Collections Uare Taoka o Hākena
Te Aka Matua Research Library, Museum of New Zealand Te Papa Tongarewa
Also see:
Concise Dictionary of New Zealand Artists McGahey, Kate (2000) Gilt Edge
Nineteenth Century New Zealand Artists: A Guide and Handbook Platts, Una (1980) Avon Fine Prints
1883 births
1969 deaths
New Zealand painters
New Zealand women painters
People associated with the Museum of New Zealand Te Papa Tongarewa
People associated with the Canterbury Society of Arts
Alumni of the Slade School of Fine Art
People associated with the Auckland Society of Arts
British emigrants to New Zealand
|
```smalltalk
using System;
using System.Collections.Generic;
using System.Linq;
using AngleSharp.Parser.Html;
using Newtonsoft.Json;
using RestSharp;
using System.Data;
using MySql.Data.MySqlClient;
using System.Data.SqlClient;
using Dapper;
using AngleSharp.Dom;
using HouseMap.Dao;
using HouseMap.Dao.DBEntity;
using HouseMap.Crawler.Common;
using Newtonsoft.Json.Linq;
using System.Security.Cryptography;
using System.Text;
using HouseMap.Common;
namespace HouseMap.Crawler
{
public class Zuber : BaseCrawler, IHouseCrawler
{
static string API_VERSION = "v3/";
static string API_VERSION_V2 = "client";
static string SCENE = "2567a5ec9705eb7ac2c984033e06189d";
static string SCENEV2 = "2567a5ec9705eb7ac2c984033e06189d";
public Zuber(HouseDapper houseDapper, ConfigDapper configDapper, ElasticService elasticService, RedisTool redisTool)
: base(houseDapper, configDapper, elasticService, redisTool)
{
this.Source = SourceEnum.Zuber;
}
public override string GetJsonOrHTML(DBConfig config, int page)
{
var cityName = JToken.Parse(config.Json)["cityname"].ToString();
var sequence = JToken.Parse(config.Json)["sequence"]?.ToString();
return GetResultV2(cityName, sequence); ;
}
public override List<DBHouse> ParseHouses(DBConfig config, string data)
{
var houses = new List<DBHouse>();
var resultJObject = JsonConvert.DeserializeObject<JObject>(data);
if (resultJObject["code"].ToString() != "0" || resultJObject["result"] == null)
return houses;
if (resultJObject["result"]["has_next_page"].ToObject<bool>())
{
var json = JToken.Parse(config.Json);
json["sequence"] = resultJObject["result"]["sequence"].ToObject<string>();
config.Json = json.ToString();
}
var city = config.City;
foreach (var item in resultJObject["result"]["items"])
{
var house = ConvertHouses(city, item);
houses.AddRange(house);
}
return houses;
}
private static List<DBHouse> ConvertHouses(string city, JToken item)
{
var houses = new List<DBHouse>();
var room = item["room"];
if (room["client_attr"] == null || room["client_attr"]["beds"] == null)
{
Console.WriteLine($"houses not found, item:{item?.ToString()}");
return houses;
}
foreach (var bed in room["client_attr"]["beds"])
{
var housePrice = bed["money"].ToObject<int>();
var house = new DBHouse()
{
Location = room["region"]?.ToString() + room["road"]?.ToString() + room["street"]?.ToString(),
Title = room["full_title"]?.ToString() + "-" + bed["title"]?.ToString(),
OnlineURL = $"path_to_url{bed["id"]?.ToString()}?biz=false",
Text = bed["content"]?.ToString(),
Price = housePrice,
Source = SourceEnum.Zuber.GetSourceName(),
City = city,
RentType = ConvertToRentType(room["room_type_affirm"]?.ToString()),
Longitude = room["longitude"]?.ToString(),
Latitude = room["latitude"]?.ToString(),
PicURLs = GetBedPhotos(bed),
JsonData = item.ToString(),
Tags = $"{room["subway_line"]?.ToString()}|{room["subway_station"]?.ToString()}",
PubTime = room["last_modify_time"].ToObject<DateTime>(),
Id = Tools.GetGuid()
};
houses.Add(house);
}
return houses;
}
private static int ConvertToRentType(string summary)
{
if (summary.Contains(""))
return (int)RentTypeEnum.AllInOne;
if (summary.Contains(""))
return (int)RentTypeEnum.OneRoom;
if (summary.Contains("") || summary.Contains("") || summary.Contains("") || summary.Contains("") || summary.Contains(""))
return (int)RentTypeEnum.Shared;
return (int)RentTypeEnum.Undefined;
}
private static string GetBedPhotos(JToken bed)
{
var photos = new List<String>();
if (bed["photo"] != null)
{
photos.Add(bed["photo"]["src"].ToString().Replace("?imageView2/0/w/300", ""));
}
return JsonConvert.SerializeObject(photos);
}
private static string GetResultV2(string cityName, string sequence)
{
try
{
var client = new RestClient($"path_to_url{cityName}&cost1=0&cost2=0&has_short_rent=0&has_bathroom=0&has_video=0®ion=&subway_line=&sex=&bed_count=&type=&room_type_affirm=&sequence={sequence}&longitude=&latitude=");
var request = new RestRequest(Method.GET);
request.AddHeader("terminal", "device_platform=web;app_version=4.6.8");
request.AddHeader("user-agent", "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.121 Safari/537.36");
request.AddHeader("origin", "path_to_url");
request.AddHeader("referer", "path_to_url");
request.AddHeader("accept", "application/json, text/plain, */*");
var _stamp = GetTimestamp().ToString();
var _secret = "";
var _token = md5(_stamp);
var _scene = SCENEV2;
var _method = "get";
var _param = "{}";//(_method === 'get' || _method === 'delete') ? '{}' : JSON.stringify(param)
var api = "/search/bed";
var _source = "request_url=" + API_VERSION_V2 + api + "&" +
"content=" + _param + "&" +
"request_method=" + _method + '&' +
"timestamp=" + _stamp + '&' +
"secret=" + _secret;
var _signature = md5(_source);
var _auth = "timestamp=" + _stamp + ";" +
"oauth2=" + _token + ";"
+ "signature=" + _signature + ";"
+ "scene=" + _scene + ";deployKey=";
request.AddHeader("authorization", _auth);
LogHelper.Debug($"_source:{_source},_auth:{_auth}");
IRestResponse response = client.Execute(request);
return response.IsSuccessful ? response.Content : "";
}
catch (Exception ex)
{
LogHelper.Error("ZuberHouseCrawler", ex);
return string.Empty;
}
}
private static string md5(string observedText)
{
string result;
using (MD5 hash = MD5.Create())
{
result = String.Join
(
"",
from ba in hash.ComputeHash
(
Encoding.UTF8.GetBytes(observedText)
)
select ba.ToString("x2")
);
}
return result;
}
private static int GetTimestamp()
{
return (int)(DateTime.Now.ToLocalTime() - new DateTime(1970, 1, 1).ToLocalTime()).TotalSeconds;
}
}
}
```
|
```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/stats/base/smaxabssorted.h"
#include "stdlib/math/base/assert/is_nanf.h"
#include <stdint.h>
#include <math.h>
/**
* Computes the maximum absolute value of a sorted single-precision floating-point strided array.
*
* @param N number of indexed elements
* @param X sorted input array
* @param stride stride length
* @return output value
*/
float stdlib_strided_smaxabssorted( const int64_t N, const float *X, const int64_t stride ) {
float v1;
float v2;
if ( N <= 0 ) {
return 0.0f / 0.0f; // NaN
}
if ( N == 1 || stride == 0 ) {
return X[ 0 ];
}
if ( stride < 0 ) {
v1 = X[ (1-N) * stride ];
v2 = X[ 0 ];
} else {
v1 = X[ 0 ];
v2 = X[ (N-1) * stride ];
}
if ( stdlib_base_is_nanf( v1 ) || stdlib_base_is_nanf( v2 ) ) {
return 0.0f / 0.0f; // NaN
}
v1 = fabsf( v1 );
v2 = fabsf( v2 );
if ( v1 > v2 ) {
return v1;
}
return v2;
}
```
|
```java
package com.ctrip.xpipe.redis.console.controller.consoleportal;
import com.ctrip.xpipe.redis.console.config.ConsoleConfig;
import com.ctrip.xpipe.redis.console.controller.AbstractConsoleController;
import com.ctrip.xpipe.redis.checker.controller.result.RetMessage;
import com.ctrip.xpipe.redis.console.migration.status.MigrationStatus;
import com.ctrip.xpipe.redis.console.model.*;
import com.ctrip.xpipe.redis.console.service.ClusterService;
import com.ctrip.xpipe.redis.console.service.DcService;
import com.ctrip.xpipe.redis.console.service.migration.MigrationService;
import com.ctrip.xpipe.redis.console.service.migration.exception.ClusterNotFoundException;
import com.ctrip.xpipe.redis.console.util.DataModifiedTimeGenerator;
import com.ctrip.xpipe.utils.StringUtil;
import com.google.common.collect.Lists;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.util.*;
/**
* @author shyin
*
* Dec 12, 2016
*/
@RestController
@RequestMapping(AbstractConsoleController.CONSOLE_PREFIX)
public class MigrationController extends AbstractConsoleController {
@Autowired
private MigrationService migrationService;
@Autowired
private ClusterService clusterService;
@Autowired
private ConsoleConfig consoleConfig;
@Autowired
private DcService dcService;
@RequestMapping(value = "/migration/events", method = RequestMethod.POST)
public Map<String, Long> createEvent(@RequestBody MigrationEventModel event) {
Map<String, Long> res = new HashMap<>();
logger.info("[Create Event]{}", event);
String user = userInfoHolder.getUser().getUserId();
String tag = generateUniqueEventTag(user);
Long migrationEventId = migrationService.createMigrationEvent(event.createMigrationRequest(user, tag));
res.put("value", migrationEventId);
logger.info("[Create Event][Done]{}", migrationEventId);
return res;
}
private String generateUniqueEventTag(String user) {
StringBuilder sb = new StringBuilder();
sb.append(DataModifiedTimeGenerator.generateModifiedTime());
sb.append("-");
sb.append(user);
return sb.toString();
}
@RequestMapping(value = "/migration/events", method = RequestMethod.GET)
public PageModal<MigrationModel> getEventAndCluster(@RequestParam(required = false) String clusterName,
@RequestParam(defaultValue = "false") boolean withoutTestClusters,
@RequestParam Long size, @RequestParam Long page) {
if (null == size || size <= 0) size = 10L;
if (null == page || page < 0) page = 0L;
if (!StringUtil.isEmpty(clusterName)) {
ClusterTbl clusterTbl = clusterService.find(clusterName);
if (null == clusterTbl) return new PageModal<>(Collections.emptyList(), size, page, 0);
long totalSize = migrationService.countAllByCluster(clusterTbl.getId());
if (page * size >= totalSize) return new PageModal<>(Collections.emptyList(), size, page, totalSize);
return new PageModal<>(
migrationService.findByCluster(clusterTbl.getId(), size, size * page),
size, page, totalSize);
} else if (withoutTestClusters) {
long totalSize = migrationService.countAllWithoutTestCluster();
if (page * size >= totalSize) return new PageModal<>(Collections.emptyList(), size, page, totalSize);
return new PageModal<>(migrationService.findWithoutTestClusters(size, size * page), size, page, totalSize);
} else {
long totalSize = migrationService.countAll();
if (page * size >= totalSize) return new PageModal<>(Collections.emptyList(), size, page, totalSize);
return new PageModal<>(migrationService.find(size, size * page), size, page, totalSize);
}
}
@RequestMapping(value = "/migration/events/by/operator", method = RequestMethod.GET)
public PageModal<MigrationModel> getEventAndClusterByOperator(@RequestParam String operator, @RequestParam Long size, @RequestParam Long page) {
if (null == size || size <=0) size = 10L;
if (null == page || page < 0) page = 0L;
long totalSize = migrationService.countAllByOperator(operator);
if (page * size >= totalSize) return new PageModal<>(Collections.emptyList(), size, page, totalSize);
return new PageModal<>(
migrationService.findByOperator(operator, size, size * page), size, page, totalSize);
}
@RequestMapping(value = "/migration/events/by/migration/status/type", method = RequestMethod.GET)
public PageModal<MigrationModel> getEventAndClusterByMigrationStatus(@RequestParam String type, @RequestParam Long size, @RequestParam Long page) {
if (null == size || size <=0) size = 10L;
if (null == page || page < 0) page = 0L;
List<MigrationStatus> statuses = MigrationStatus.getByType(type);
long totalSize = 0;
for (MigrationStatus status : statuses) {
totalSize += migrationService.countAllByStatus(status.toString());
}
if (page * size >= totalSize) return new PageModal<>(Collections.emptyList(), size, page, totalSize);
List<MigrationModel> models = Lists.newArrayList();
for (MigrationStatus status : statuses) {
models.addAll(migrationService.findByStatus(status.toString(), size, size * page));
}
return new PageModal<>(models, size, page, totalSize);
}
@RequestMapping(value = "/migration/events/all", method = RequestMethod.GET)
public List<MigrationEventTbl> getAllEvents() {
return migrationService.findAll();
}
@RequestMapping(value = "/migration/events/{eventId}", method = RequestMethod.GET)
public List<MigrationClusterModel> getEventDetailsWithEventId(@PathVariable Long eventId) {
logger.info("[getEventDetailsWithEventId][begin] eventId: {}", eventId);
List<MigrationClusterModel> res = new LinkedList<>();
if (null != eventId) {
res = migrationService.getMigrationClusterModel(eventId);
} else {
logger.error("[GetEvent][fail]Cannot findRedisHealthCheckInstance with null event id.");
}
logger.info("[getEventDetailsWithEventId][end] eventId: {}", eventId);
return res;
}
@RequestMapping(value = "/migration/events/{eventId}/clusters/{clusterId}", method = RequestMethod.POST)
public void continueMigrationCluster(@PathVariable Long eventId, @PathVariable Long clusterId) {
logger.info("[continueMigrationCluster]{}, {}", eventId, clusterId);
migrationService.continueMigrationCluster(eventId, clusterId);
}
@RequestMapping(value = "/migration/events/{eventId}/clusters/{clusterId}/cancel", method = RequestMethod.POST)
public void cancelMigrationCluster(@PathVariable Long eventId, @PathVariable Long clusterId) {
logger.info("[cancelMigrationCluster]{}, {}", eventId, clusterId);
migrationService.cancelMigrationCluster(eventId, clusterId);
}
@RequestMapping(value = "/migration/events/{eventId}/clusters/{clusterId}/tryRollback", method = RequestMethod.POST)
public void rollbackMigrationCluster(@PathVariable Long eventId, @PathVariable Long clusterId) throws ClusterNotFoundException {
logger.info("[rollbackMigrationCluster]{}, {}", eventId, clusterId);
migrationService.rollbackMigrationCluster(eventId, clusterId);
}
@RequestMapping(value = "/migration/events/{eventId}/clusters/{clusterId}/forceProcess", method = RequestMethod.POST)
public void forceProcessMigrationCluster(@PathVariable Long eventId, @PathVariable Long clusterId) {
logger.info("[forceProcessMigrationCluster]{}, {}", eventId, clusterId);
migrationService.forceProcessMigrationCluster(eventId, clusterId);
}
@RequestMapping(value = "/migration/events/{eventId}/clusters/{clusterId}/forceEnd", method = RequestMethod.POST)
public void forceEndMigrationCluster(@PathVariable Long eventId, @PathVariable Long clusterId) {
logger.info("[forceEndMigrationCluster]{}, {}", eventId, clusterId);
migrationService.forceEndMigrationCluster(eventId, clusterId);
}
@RequestMapping(value = "/migration/system/health/status", method = RequestMethod.GET)
public RetMessage getMigrationSystemHealthStatus() {
logger.info("[getMigrationSystemHealthStatus][begin]");
try {
return migrationService.getMigrationSystemHealth();
} catch (Exception e) {
logger.error("[getMigrationSystemHealthStatus]", e);
return RetMessage.createFailMessage(e.getMessage());
}
}
@RequestMapping(value = "/migration/default/cluster", method = RequestMethod.GET)
public ClusterTbl getDefaultMigrationCluster() {
String clusterName = consoleConfig.getClusterShardForMigrationSysCheck().getKey();
ClusterTbl clusterTbl = clusterService.findClusterAndOrg(clusterName);
if(clusterTbl == null || clusterTbl.getClusterName() == null) {
logger.warn("[getDefaultMigrationCluster]not found default cluster: {}", clusterName);
}
return clusterTbl;
}
@GetMapping("/bi-migration/events")
public List<BiMigrationRecord> findAllBiMigrationEvents() {
return migrationService.loadAllBiMigration();
}
@PostMapping("/bi-migration/sync")
public RetMessage syncBiMigration(@RequestBody BiMigrationReq biMigrationReq) {
if (null == biMigrationReq || null == biMigrationReq.clusters || biMigrationReq.clusters.isEmpty()) {
return RetMessage.createSuccessMessage();
}
if (null == biMigrationReq.excludedDcs) biMigrationReq.excludedDcs = Collections.emptyList();
try {
String user = userInfoHolder.getUser().getUserId();
boolean rst = migrationService.syncBiMigration(biMigrationReq, user);
if (rst) return RetMessage.createSuccessMessage();
else return RetMessage.createFailMessage("credis fail");
} catch (Throwable th) {
return RetMessage.createFailMessage(th.getMessage());
}
}
}
```
|
```javascript
import { UndefinedParserError } from "../common/errors.js";
import { getSupportInfo } from "../main/support.js";
import inferParser from "../utils/infer-parser.js";
import normalizeOptions from "./normalize-options.js";
import {
getParserPluginByParserName,
getPrinterPluginByAstFormat,
initParser,
initPrinter,
} from "./parser-and-printer.js";
const formatOptionsHiddenDefaults = {
astFormat: "estree",
printer: {},
originalText: undefined,
locStart: null,
locEnd: null,
};
// Copy options and fill in default values.
async function normalizeFormatOptions(options, opts = {}) {
const rawOptions = { ...options };
if (!rawOptions.parser) {
if (!rawOptions.filepath) {
throw new UndefinedParserError(
"No parser and no file path given, couldn't infer a parser.",
);
} else {
rawOptions.parser = inferParser(rawOptions, {
physicalFile: rawOptions.filepath,
});
if (!rawOptions.parser) {
throw new UndefinedParserError(
`No parser could be inferred for file "${rawOptions.filepath}".`,
);
}
}
}
const supportOptions = getSupportInfo({
plugins: options.plugins,
showDeprecated: true,
}).options;
const defaults = {
...formatOptionsHiddenDefaults,
...Object.fromEntries(
supportOptions
.filter((optionInfo) => optionInfo.default !== undefined)
.map((option) => [option.name, option.default]),
),
};
const parserPlugin = getParserPluginByParserName(
rawOptions.plugins,
rawOptions.parser,
);
const parser = await initParser(parserPlugin, rawOptions.parser);
rawOptions.astFormat = parser.astFormat;
rawOptions.locEnd = parser.locEnd;
rawOptions.locStart = parser.locStart;
const printerPlugin = parserPlugin.printers?.[parser.astFormat]
? parserPlugin
: getPrinterPluginByAstFormat(rawOptions.plugins, parser.astFormat);
const printer = await initPrinter(printerPlugin, parser.astFormat);
rawOptions.printer = printer;
const pluginDefaults = printerPlugin.defaultOptions
? Object.fromEntries(
Object.entries(printerPlugin.defaultOptions).filter(
([, value]) => value !== undefined,
),
)
: {};
const mixedDefaults = { ...defaults, ...pluginDefaults };
for (const [k, value] of Object.entries(mixedDefaults)) {
if (rawOptions[k] === null || rawOptions[k] === undefined) {
rawOptions[k] = value;
}
}
if (rawOptions.parser === "json") {
rawOptions.trailingComma = "none";
}
return normalizeOptions(rawOptions, supportOptions, {
passThrough: Object.keys(formatOptionsHiddenDefaults),
...opts,
});
}
export default normalizeFormatOptions;
export { formatOptionsHiddenDefaults };
```
|
```c++
/**
* Authors:
* - Paul Asmuth <paul@eventql.io>
*
* This program is free software: you can redistribute it and/or modify it under
* or any later version.
*
* In accordance with Section 7(e) of the license, the licensing of the Program
* under the license does not imply a trademark license. Therefore any rights,
* title and interest in our trademarks remain entirely with us.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the license for more details.
*
* You can be released from the requirements of the license by purchasing a
* commercial license. Buying such a license is mandatory as soon as you develop
* commercial activities involving this program without disclosing the source
* code of your own applications
*/
#include "eventql/util/http/cookies.h"
#include "eventql/util/inspect.h"
namespace http {
bool Cookies::getCookie(
const CookieList& cookies,
const std::string& key,
std::string* dst) {
for (const auto& cookie : cookies) {
if (cookie.first == key) {
*dst = cookie.second;
return true;
}
}
return false;
}
Cookies::CookieList Cookies::parseCookieHeader(const std::string& header_str) {
std::vector<std::pair<std::string, std::string>> cookies;
auto begin = header_str.c_str();
auto end = begin + header_str.length();
auto cur = begin;
while (begin < end) {
for (; begin < end && *begin == ' '; ++begin);
for (; cur < end && *cur != '='; ++cur);
auto split = ++cur;
for (; cur < end && *cur != ';'; ++cur);
cookies.emplace_back(
std::make_pair(
URI::urlDecode(std::string(begin, split - 1)),
URI::urlDecode(std::string(split, cur))));
begin = ++cur;
}
return cookies;
}
std::string Cookies::mkCookie(
const std::string& key,
const std::string& value,
const UnixTime& expire /* = UnixTime::epoch() */,
const std::string& path /* = "" */,
const std::string& domain /* = "" */,
bool secure /* = false */,
bool httponly /* = false */) {
auto cookie_str = StringUtil::format(
"$0=$1",
URI::urlEncode(key),
URI::urlEncode(value));
if (path.length() > 0) {
cookie_str.append(StringUtil::format("; Path=$0", path));
}
if (domain.length() > 0) {
cookie_str.append(StringUtil::format("; Domain=$0", domain));
}
if (static_cast<uint64_t>(expire) > 0) {
cookie_str.append(StringUtil::format("; Expires=$0",
expire.toString("%a, %d-%b-%Y %H:%M:%S UTC")));
}
if (httponly) {
cookie_str.append("; HttpOnly");
}
if (secure) {
cookie_str.append("; Secure");
}
return cookie_str;
}
} // namespace http
```
|
Wayne Holloway-Smith is a British poet. He was born in Swindon, Wiltshire, and currently lives in London.
Holloway-Smith's first poetry publication was the pamphlet Beloved, in case you've been wondering, published by Donut Press in 2011. His first book-length collection, Alarum (2017), was a Poetry Book Society Wildcard Choice for Winter 2017, and was shortlisted for the Roehampton Poetry Prize 2018 and the Seamus Heaney Centre for Poetry Prize for the First Full Collection in 2018.
The final poem in the collection – "Short" – won the Geoffrey Dearmer Prize in 2016. His second pamphlet, I CAN'T WAIT FOR THE WENDING, was published by Test Centre in 2018.
His poem "the posh mums are boxing in the square" won the National Poetry Competition in 2018.
His second full-length collection, Love minus Love, was shortlisted for the 2020 T. S. Eliot Prize as well as being a Poetry Book Society Wild Card choice.
His pamphlet, Lasagne, was published by Out-Spoken Press in spring 2020.
Holloway-Smith is also a lecturer in Literature and Creative Writing in the School of Humanities at the University of Hertfordshire.
References
21st-century British poets
Living people
People from Swindon
Year of birth missing (living people)
|
```assembly
;;
;; 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.
;;
;; typedef void (*PushAllRegistersCallback)(SafePointBarrier*, ThreadState*, intptr_t*);
;; extern "C" void pushAllRegisters(SafePointBarrier*, ThreadState*, PushAllRegistersCallback)
.CODE
pushAllRegisters PROC
push 0
push rsi
push rdi
push rbx
push rbp
push r12
push r13
push r14
push r15
;; Pass the two first arguments unchanged (rcx, rdx)
;; and the stack pointer after pushing callee-saved
;; registers to the callback.
mov r9, r8
mov r8, rsp
call r9
;; Pop the callee-saved registers. None of them were
;; modified so no restoring is needed.
add rsp, 72
ret
pushAllRegisters ENDP
END
```
|
```shell
Fast file indexing with `updatedb` and `locate`
Practical `du` command
Converting between Unix and Windows text files
Get disk space usage with `df`
Deleting non-empty directories
```
|
```makefile
################################################################################
#
# erlang-p1-oauth2
#
################################################################################
ERLANG_P1_OAUTH2_VERSION = 0.6.10
ERLANG_P1_OAUTH2_SITE = $(call github,processone,p1_oauth2,$(ERLANG_P1_OAUTH2_VERSION))
ERLANG_P1_OAUTH2_LICENSE = MIT
ERLANG_P1_OAUTH2_LICENSE_FILES = LICENSE
ERLANG_P1_OAUTH2_INSTALL_STAGING = YES
$(eval $(rebar-package))
```
|
Great Easton is a village and civil parish in the Harborough district of Leicestershire, England. The parish had a population of 558 according to the 2001 census, increasing to 671 at the 2011 census.
Overview
The village's name means 'eastern farm/settlement'.
The village sits in the Welland Valley in the rolling south Leicestershire countryside. It is located in the extreme south-east of the county and is very close to the borders with Northamptonshire and Rutland; it is just south of the Eyebrook Reservoir. Nearby places are Bringhurst and Drayton in Leicestershire, Caldecott in Rutland, and Rockingham and Cottingham in Northamptonshire. The nearest town is Corby in Northamptonshire.
The village has public transport services to Corby town centre, Oakham and Uppingham, Market Harborough town centre and St Margaret's Bus Station in Leicester.
The village also formerly had a cricket team, but after the playing field was destroyed they relocated to Rockingham Castle and now go by the name of Old Eastonians.
Newspapers available in Great Easton include the Harborough Mail and the Northamptonshire Evening Telegraph. Radio stations that can be picked up in the village are Smooth East Midlands, Harborough FM, BBC Radio Northampton and BBC Radio Leicester.
Great Easton is also home to the Opera Minima, which is an opera/theatre group registered as a charitable trust and based at the Old Corset Factory in the village and is sponsored by Leicestershire County Council, Harborough District Council, Creative LeicesterShire and the Welland Sub-Regional Strategic Partnership.
The parish is protected and served by Leicestershire Constabulary (Harborough North Division).
The local telephone dialling code is the Kettering and Corby code (01536) due to its proximity to Northamptonshire.
Great Easton is the largest village and civil parish in South-East Leicestershire, however is only a small village itself. Many people who live in Great Easton commute to work in the nearby towns of Corby and Kettering in neighbouring Northants, to Market Harborough and indeed the county town, Leicester.
Local government and politics
Great Easton is a civil parish in the Harborough District however, as the boundaries of Harborough Parliamentary constituency differ from those of the district, it forms part of the Rutland and Melton Parliamentary constituency. Great Easton is in the Nevill Ward of Harborough District Council and is represented by Cllr Michael Rickman (Con).
Time Team
Great Easton was visited by archaeological television programme Time Team and the finds included 14th century pottery, a brick surface thought to be related to the village's old slaughterhouse and a Chinese "cash coin". It appeared on Channel 4 as part of Time Team's Big Dig. The Chinese "cash coin" was placed in the ground for a joke by a local and made the feature in that episode.
References
Villages in Leicestershire
Civil parishes in Harborough District
|
```c
/*
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are
* permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this list of
* conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright notice, this list of
* conditions and the following disclaimer in the documentation and/or other materials provided
* with the distribution.
*
* 3. Neither the name of the copyright holder 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 HOLDER 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.
*/
struct test {
int a;
int b;
};
struct b {
struct test first;
struct test second;
};
int main() {
struct b xxx = { { 2, 3 }, { 4, 6 } };
return xxx.first.a + xxx.first.b; // + xxx.second.a + xxx.second.b;
}
```
|
José de la Cruz may refer to:
José de la Cruz (writer) (1746–1829), Filipino writer
José de la Cruz Sánchez (1749–1878), Californio statesman and ranchero
José María de la Cruz (1799–1875), Chilean soldier
José de la Cruz Porfirio Díaz Mor (1830–1915), better known as Porfirio Díaz, Mexican President
José de la Cruz Mena (1874–1907), Nicaraguan composer
José de la Cruz (footballer) (born 1952), Paraguayan football goalkeeper
José Luis de la Cruz (born 2000), Dominican football right-back
See also
Jose Cruz (disambiguation)
|
The athletics competition at the 2015 African Games was held from 13–17 September 2015 at the New Kintele Stadium in Brazzaville, in the Republic of Congo.
The original winners of the long jump competitions, Chinaza Amadi and Samson Idiata of Nigeria, failed drugs tests at the competition and were disqualified.
Medal summary
Men
Women
Para-sport
Men
Women
Medal tables
Elite competition
Para-sport competition
Participating nations
According to an unofficial count, there were 564 athletes from 48 nations participating in the elite competition.
References
Reports
Mulkeen, Jon (2015-09-15). Ivorian sprint double for Meite and Ta Lou at All-African Games. IAAF. Retrieved on 2017-03-22.
Minshull, Phil (2015-09-17). Kenya's 4x400m men finish off the All-Africa Games in style. IAAF. Retrieved on 2017-03-22.
External links
Results
Results for Athletics
Para-sport Detailed Results
Para-sport Medal Table
2015
African Games
Athletics
2015 African Games
|
Yevhen Rudakov club () is an unofficial list of Soviet and Ukrainian football goalkeepers that have achieved 100 or more clean sheets during their professional career in top Soviet and Ukrainian league, cup, European cups, national team and foreign league and cup. This club is named after the first Soviet (Ukrainian) goalkeeper to achieve 100 clean sheets - Yevhen Rudakov.
Which clean sheets are counted
Traditionally, counted goals and clean sheets in the following matches:
UL - goals scored in top leagues of Ukrainian football competitions.
UC - goals in Ukrainian Cup and Supercup scored in the stages where top league teams participate.
EC - goals scored in European Champion Clubs Cup, UEFA Champions League, UEFA Europa League, UEFA Cup, Cup Winners Cup and Intertoto Cup for both home and foreign clubs.
NT - goals scored for national and olympic teams of Ukraine, USSR, CIS in the official matches.
SL - goals scored in top leagues of Soviet football competitions..
SC - goals in Soviet Cup and Supercup scored in the stages where top league teams participate.
FL - goals scored in top leagues of foreign football competitions: Argentina, Armenia, Austria, Azerbaijan, Belarus, Belgium, Brazil, Bulgaria, China, Croatia, Cyprus, Czech Republic, Denmark, England, Finland, France, Georgia, Germany, Greece, Hungary, Italy, Israel, Japan, Kazakhstan, Mexico, Moldova, Netherlands, Norway, Poland, Portugal, Romania, Russia, Serbia, Scotland, Slovakia, Slovenia, South Korea, Sweden, Spain, Switzerland, Turkey, United States, Uzbekistan
FC - goals in foreign Cup and Supercup scored in the stages where top league teams participate: Argentina, Armenia, Austria, Azerbaijan, Belarus, Belgium, Brazil, Bulgaria, China, Croatia, Cyprus, Czech Republic, Denmark, England, Finland, France, Georgia, Germany, Greece, Hungary, Israel, Italy, Japan, Kazakhstan, Mexico, Moldova, Netherlands, Norway, Poland, Portugal, Romania, Russia, Serbia, Scotland, Slovakia, Slovenia, South Korea, Sweden, Spain, Switzerland, Turkey, United States, Uzbekistan
Yevhen Rudakov Club
As of June 22, 2015
Players still playing are shown in bold.
Candidates
These players may become members of Oleh Blokhin club soon:
Players still playing are shown in bold.
See also
Oleh Blokhin club
Serhiy Rebrov club
Timerlan Huseinov club
Lev Yashin club
Grigory Fedotov club
References
Yevhen Rudakov club
Ukrainian football trophies and awards
Lists of men's association football players
Men's association football goalkeepers
Association football player non-biographical articles
|
Tropomodulin 2 (neuronal) also known as TMOD2 is a protein which in humans is encoded by the TMOD2 gene.
Function
This gene encodes a neuronal-specific member of the tropomodulin family of actin-regulatory proteins. The encoded protein caps the pointed end of actin filaments preventing both elongation and depolymerization. The capping activity of this protein is dependent on its association with tropomyosin. Alternatively spliced transcript variants encoding different isoforms have been described.
References
Further reading
Tropomodulin
|
```c++
#include "source/common/tls/ssl_handshaker.h"
#include "envoy/stats/scope.h"
#include "source/common/common/assert.h"
#include "source/common/common/empty_string.h"
#include "source/common/http/headers.h"
#include "source/common/runtime/runtime_features.h"
#include "source/common/tls/context_impl.h"
#include "source/common/tls/utility.h"
using Envoy::Network::PostIoAction;
namespace Envoy {
namespace Extensions {
namespace TransportSockets {
namespace Tls {
void ValidateResultCallbackImpl::onSslHandshakeCancelled() { extended_socket_info_.reset(); }
void ValidateResultCallbackImpl::onCertValidationResult(bool succeeded,
Ssl::ClientValidationStatus detailed_status,
const std::string& /*error_details*/,
uint8_t tls_alert) {
if (!extended_socket_info_.has_value()) {
return;
}
extended_socket_info_->setCertificateValidationStatus(detailed_status);
extended_socket_info_->setCertificateValidationAlert(tls_alert);
extended_socket_info_->onCertificateValidationCompleted(succeeded, true);
}
void CertificateSelectionCallbackImpl::onSslHandshakeCancelled() { extended_socket_info_.reset(); }
void CertificateSelectionCallbackImpl::onCertificateSelectionResult(
OptRef<const Ssl::TlsContext> selected_ctx, bool staple) {
if (!extended_socket_info_.has_value()) {
return;
}
extended_socket_info_->onCertificateSelectionCompleted(selected_ctx, staple, true);
}
SslExtendedSocketInfoImpl::~SslExtendedSocketInfoImpl() {
if (cert_validate_result_callback_.has_value()) {
cert_validate_result_callback_->onSslHandshakeCancelled();
}
if (cert_selection_callback_.has_value()) {
cert_selection_callback_->onSslHandshakeCancelled();
}
}
void SslExtendedSocketInfoImpl::setCertificateValidationStatus(
Envoy::Ssl::ClientValidationStatus validated) {
certificate_validation_status_ = validated;
}
Envoy::Ssl::ClientValidationStatus SslExtendedSocketInfoImpl::certificateValidationStatus() const {
return certificate_validation_status_;
}
void SslExtendedSocketInfoImpl::onCertificateValidationCompleted(bool succeeded, bool async) {
cert_validation_result_ =
succeeded ? Ssl::ValidateStatus::Successful : Ssl::ValidateStatus::Failed;
if (cert_validate_result_callback_.has_value()) {
cert_validate_result_callback_.reset();
// Resume handshake.
if (async) {
ssl_handshaker_.handshakeCallbacks()->onAsynchronousCertValidationComplete();
}
}
}
Ssl::ValidateResultCallbackPtr SslExtendedSocketInfoImpl::createValidateResultCallback() {
auto callback = std::make_unique<ValidateResultCallbackImpl>(
ssl_handshaker_.handshakeCallbacks()->connection().dispatcher(), *this);
cert_validate_result_callback_ = *callback;
cert_validation_result_ = Ssl::ValidateStatus::Pending;
return callback;
}
void SslExtendedSocketInfoImpl::onCertificateSelectionCompleted(
OptRef<const Ssl::TlsContext> selected_ctx, bool staple, bool async) {
RELEASE_ASSERT(cert_selection_result_ == Ssl::CertificateSelectionStatus::Pending,
"onCertificateSelectionCompleted twice");
if (!selected_ctx.has_value()) {
cert_selection_result_ = Ssl::CertificateSelectionStatus::Failed;
} else {
cert_selection_result_ = Ssl::CertificateSelectionStatus::Successful;
// Apply the selected context. This must be done before OCSP stapling below
// since applying the context can remove the previously-set OCSP response.
// This will only return NULL if memory allocation fails.
RELEASE_ASSERT(SSL_set_SSL_CTX(ssl_handshaker_.ssl(), selected_ctx->ssl_ctx_.get()) != nullptr,
"");
if (staple) {
// We avoid setting the OCSP response if the client didn't request it, but doing so is safe.
RELEASE_ASSERT(selected_ctx->ocsp_response_,
"OCSP response must be present under OcspStapleAction::Staple");
const std::vector<uint8_t>& resp_bytes = selected_ctx->ocsp_response_->rawBytes();
const int rc =
SSL_set_ocsp_response(ssl_handshaker_.ssl(), resp_bytes.data(), resp_bytes.size());
RELEASE_ASSERT(rc != 0, "");
}
}
if (cert_selection_callback_.has_value()) {
cert_selection_callback_.reset();
// Resume handshake.
if (async) {
ssl_handshaker_.handshakeCallbacks()->onAsynchronousCertificateSelectionComplete();
}
}
}
Ssl::CertificateSelectionCallbackPtr
SslExtendedSocketInfoImpl::createCertificateSelectionCallback() {
auto callback = std::make_unique<CertificateSelectionCallbackImpl>(
ssl_handshaker_.handshakeCallbacks()->connection().dispatcher(), *this);
cert_selection_callback_ = *callback;
cert_selection_result_ = Ssl::CertificateSelectionStatus::Pending;
return callback;
}
SslHandshakerImpl::SslHandshakerImpl(bssl::UniquePtr<SSL> ssl, int ssl_extended_socket_info_index,
Ssl::HandshakeCallbacks* handshake_callbacks)
: ssl_(std::move(ssl)), handshake_callbacks_(handshake_callbacks),
extended_socket_info_(*this) {
SSL_set_ex_data(ssl_.get(), ssl_extended_socket_info_index, &(this->extended_socket_info_));
}
bool SslHandshakerImpl::peerCertificateValidated() const {
return extended_socket_info_.certificateValidationStatus() ==
Envoy::Ssl::ClientValidationStatus::Validated;
}
Network::PostIoAction SslHandshakerImpl::doHandshake() {
ASSERT(state_ != Ssl::SocketState::HandshakeComplete && state_ != Ssl::SocketState::ShutdownSent);
int rc = SSL_do_handshake(ssl());
if (rc == 1) {
state_ = Ssl::SocketState::HandshakeComplete;
handshake_callbacks_->onSuccess(ssl());
// It's possible that we closed during the handshake callback.
return handshake_callbacks_->connection().state() == Network::Connection::State::Open
? PostIoAction::KeepOpen
: PostIoAction::Close;
} else {
int err = SSL_get_error(ssl(), rc);
ENVOY_CONN_LOG(trace, "ssl error occurred while read: {}", handshake_callbacks_->connection(),
Utility::getErrorDescription(err));
switch (err) {
case SSL_ERROR_WANT_READ:
case SSL_ERROR_WANT_WRITE:
return PostIoAction::KeepOpen;
case SSL_ERROR_PENDING_CERTIFICATE:
case SSL_ERROR_WANT_PRIVATE_KEY_OPERATION:
case SSL_ERROR_WANT_CERTIFICATE_VERIFY:
state_ = Ssl::SocketState::HandshakeInProgress;
return PostIoAction::KeepOpen;
default:
handshake_callbacks_->onFailure();
return PostIoAction::Close;
}
}
}
} // namespace Tls
} // namespace TransportSockets
} // namespace Extensions
} // namespace Envoy
```
|
Artzenheim (; ; ) is a commune in the Haut-Rhin department in Grand Est in north-eastern France.
See also
Communes of the Haut-Rhin department
References
Communes of Haut-Rhin
|
```javascript
import React from 'react';
import SvgIcon from '../../SvgIcon';
const ImageImage = (props) => (
<SvgIcon {...props}>
<path d="M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2zM8.5 13.5l2.5 3.01L14.5 12l4.5 6H5l3.5-4.5z"/>
</SvgIcon>
);
ImageImage.displayName = 'ImageImage';
ImageImage.muiName = 'SvgIcon';
export default ImageImage;
```
|
```objective-c
#pragma once
#include <base/types.h>
namespace DB
{
using RegionID = UInt32;
using RegionDepth = UInt8;
using RegionPopulation = UInt32;
enum class RegionType : int8_t
{
Hidden = -1,
Continent = 1,
Country = 3,
District = 4,
Area = 5,
City = 6,
};
}
```
|
The 1967–68 Sussex County Football League season was the 43rd in the history of Sussex County Football League a football competition in England.
Division One
Division One featured 14 clubs which competed in the division last season, along with two new clubs, promoted from Division Two:
Arundel
Wadhurst
League table
Division Two
Division Two featured 13 clubs which competed in the division last season, along with two new clubs, relegated from Division One:
Shoreham
Whitehawk
League table
References
1967-68
S
|
```objective-c
/**
* @license Apache-2.0
*
*
*
* path_to_url
*
* Unless required by applicable law or agreed to in writing, software
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/
/*
* The following is auto-generated. Do not manually edit. See scripts/loops.js.
*/
#ifndef STDLIB_NDARRAY_BASE_UNARY_B_F_AS_B_F_H
#define STDLIB_NDARRAY_BASE_UNARY_B_F_AS_B_F_H
#include "stdlib/ndarray/ctor.h"
#include <stdint.h>
/*
* If C++, prevent name mangling so that the compiler emits a binary file having undecorated names, thus mirroring the behavior of a C compiler.
*/
#ifdef __cplusplus
extern "C" {
#endif
/**
* Applies a unary callback to an input ndarray and assigns results to elements in an output ndarray.
*/
int8_t stdlib_ndarray_b_f_as_b_f( struct ndarray *arrays[], void *fcn );
/**
* Applies a unary callback to a zero-dimensional input ndarray and assigns results to elements in a zero-dimensional output ndarray.
*/
int8_t stdlib_ndarray_b_f_as_b_f_0d( struct ndarray *arrays[], void *fcn );
/**
* Applies a unary callback to a one-dimensional input ndarray and assigns results to elements in a one-dimensional output ndarray.
*/
int8_t stdlib_ndarray_b_f_as_b_f_1d( struct ndarray *arrays[], void *fcn );
/**
* Applies a unary callback to a two-dimensional input ndarray and assigns results to elements in a two-dimensional output ndarray.
*/
int8_t stdlib_ndarray_b_f_as_b_f_2d( struct ndarray *arrays[], void *fcn );
/**
* Applies a unary callback to a two-dimensional input ndarray and assigns results to elements in a two-dimensional output ndarray.
*/
int8_t stdlib_ndarray_b_f_as_b_f_2d_blocked( struct ndarray *arrays[], void *fcn );
/**
* Applies a unary callback to a three-dimensional input ndarray and assigns results to elements in a three-dimensional output ndarray.
*/
int8_t stdlib_ndarray_b_f_as_b_f_3d( struct ndarray *arrays[], void *fcn );
/**
* Applies a unary callback to a three-dimensional input ndarray and assigns results to elements in a three-dimensional output ndarray.
*/
int8_t stdlib_ndarray_b_f_as_b_f_3d_blocked( struct ndarray *arrays[], void *fcn );
/**
* Applies a unary callback to a four-dimensional input ndarray and assigns results to elements in a four-dimensional output ndarray.
*/
int8_t stdlib_ndarray_b_f_as_b_f_4d( struct ndarray *arrays[], void *fcn );
/**
* Applies a unary callback to a four-dimensional input ndarray and assigns results to elements in a four-dimensional output ndarray.
*/
int8_t stdlib_ndarray_b_f_as_b_f_4d_blocked( struct ndarray *arrays[], void *fcn );
/**
* Applies a unary callback to a five-dimensional input ndarray and assigns results to elements in a five-dimensional output ndarray.
*/
int8_t stdlib_ndarray_b_f_as_b_f_5d( struct ndarray *arrays[], void *fcn );
/**
* Applies a unary callback to a five-dimensional input ndarray and assigns results to elements in a five-dimensional output ndarray.
*/
int8_t stdlib_ndarray_b_f_as_b_f_5d_blocked( struct ndarray *arrays[], void *fcn );
/**
* Applies a unary callback to a six-dimensional input ndarray and assigns results to elements in a six-dimensional output ndarray.
*/
int8_t stdlib_ndarray_b_f_as_b_f_6d( struct ndarray *arrays[], void *fcn );
/**
* Applies a unary callback to a six-dimensional input ndarray and assigns results to elements in a six-dimensional output ndarray.
*/
int8_t stdlib_ndarray_b_f_as_b_f_6d_blocked( struct ndarray *arrays[], void *fcn );
/**
* Applies a unary callback to a seven-dimensional input ndarray and assigns results to elements in a seven-dimensional output ndarray.
*/
int8_t stdlib_ndarray_b_f_as_b_f_7d( struct ndarray *arrays[], void *fcn );
/**
* Applies a unary callback to a seven-dimensional input ndarray and assigns results to elements in a seven-dimensional output ndarray.
*/
int8_t stdlib_ndarray_b_f_as_b_f_7d_blocked( struct ndarray *arrays[], void *fcn );
/**
* Applies a unary callback to an eight-dimensional input ndarray and assigns results to elements in an eight-dimensional output ndarray.
*/
int8_t stdlib_ndarray_b_f_as_b_f_8d( struct ndarray *arrays[], void *fcn );
/**
* Applies a unary callback to an eight-dimensional input ndarray and assigns results to elements in an eight-dimensional output ndarray.
*/
int8_t stdlib_ndarray_b_f_as_b_f_8d_blocked( struct ndarray *arrays[], void *fcn );
/**
* Applies a unary callback to a nine-dimensional input ndarray and assigns results to elements in a nine-dimensional output ndarray.
*/
int8_t stdlib_ndarray_b_f_as_b_f_9d( struct ndarray *arrays[], void *fcn );
/**
* Applies a unary callback to a nine-dimensional input ndarray and assigns results to elements in a nine-dimensional output ndarray.
*/
int8_t stdlib_ndarray_b_f_as_b_f_9d_blocked( struct ndarray *arrays[], void *fcn );
/**
* Applies a unary callback to a ten-dimensional input ndarray and assigns results to elements in a ten-dimensional output ndarray.
*/
int8_t stdlib_ndarray_b_f_as_b_f_10d( struct ndarray *arrays[], void *fcn );
/**
* Applies a unary callback to a ten-dimensional input ndarray and assigns results to elements in a ten-dimensional output ndarray.
*/
int8_t stdlib_ndarray_b_f_as_b_f_10d_blocked( struct ndarray *arrays[], void *fcn );
/**
* Applies a unary callback to an n-dimensional input ndarray and assigns results to elements in an n-dimensional output ndarray.
*/
int8_t stdlib_ndarray_b_f_as_b_f_nd( struct ndarray *arrays[], void *fcn );
#ifdef __cplusplus
}
#endif
#endif // !STDLIB_NDARRAY_BASE_UNARY_B_F_AS_B_F_H
```
|
```c++
#define TORCH_ASSERT_ONLY_METHOD_OPERATORS
#include <ATen/core/Tensor.h>
#include <ATen/Config.h>
#include <ATen/Dispatch.h>
#include <ATen/native/Resize.h>
#include <ATen/native/SpectralOpsUtils.h>
#include <c10/util/accumulate.h>
#include <c10/util/irange.h>
#ifndef AT_PER_OPERATOR_HEADERS
#include <ATen/Functions.h>
#include <ATen/NativeFunctions.h>
#else
#include <ATen/ops/_fft_c2c_native.h>
#include <ATen/ops/_fft_c2r_native.h>
#include <ATen/ops/_fft_r2c_native.h>
#include <ATen/ops/empty.h>
#endif
#if AT_MKL_ENABLED() || AT_POCKETFFT_ENABLED()
#include <ATen/Parallel.h>
#include <ATen/TensorIterator.h>
namespace at { namespace native {
// In real-to-complex transform, MKL FFT only fills half of the values due to
// conjugate symmetry. See native/SpectralUtils.h for more details.
// The following structs are used to fill in the other half with symmetry in
// case of real-to-complex transform with onesided=False flag.
// See NOTE [ Fourier Transform Conjugate Symmetry ] in native/SpectralOpsUtils.h.
template <typename scalar_t>
static __ubsan_ignore_undefined__ // UBSAN gives false positives on using negative indexes with a pointer
void _fft_fill_with_conjugate_symmetry_slice(
Range range, at::ArrayRef<bool> is_mirrored_dim, IntArrayRef signal_half_sizes,
IntArrayRef in_strides, const scalar_t * in_ptr,
IntArrayRef out_strides, scalar_t * out_ptr) {
const auto ndim = signal_half_sizes.size();
DimVector iter_index(ndim, 0);
// We explicitly loop over one row, then use this lambda to iterate over
// n-dimensions. This advances iter_index by one row, while updating in_ptr
// and out_ptr to point to the new row of data.
auto advance_index = [&] () __ubsan_ignore_undefined__ {
for (const auto i : c10::irange(1, iter_index.size())) {
if (iter_index[i] + 1 < signal_half_sizes[i]) {
++iter_index[i];
in_ptr += in_strides[i];
if (is_mirrored_dim[i]) {
if (iter_index[i] == 1) {
out_ptr += (signal_half_sizes[i] - 1) * out_strides[i];
} else {
out_ptr -= out_strides[i];
}
} else {
out_ptr += out_strides[i];
}
return;
}
in_ptr -= in_strides[i] * iter_index[i];
if (is_mirrored_dim[i]) {
out_ptr -= out_strides[i];
} else {
out_ptr -= out_strides[i] * iter_index[i];
}
iter_index[i] = 0;
}
};
// The data slice we operate on may start part-way into the data
// Update iter_index and pointers to reference the start of the slice
if (range.begin > 0) {
iter_index[0] = range.begin % signal_half_sizes[0];
auto linear_idx = range.begin / signal_half_sizes[0];
for (size_t i = 1; i < ndim && linear_idx > 0; ++i) {
iter_index[i] = linear_idx % signal_half_sizes[i];
linear_idx = linear_idx / signal_half_sizes[i];
if (iter_index[i] > 0) {
in_ptr += in_strides[i] * iter_index[i];
if (is_mirrored_dim[i]) {
out_ptr += out_strides[i] * (signal_half_sizes[i] - iter_index[i]);
} else {
out_ptr += out_strides[i] * iter_index[i];
}
}
}
}
auto numel_remaining = range.end - range.begin;
if (is_mirrored_dim[0]) {
// Explicitly loop over a Hermitian mirrored dimension
if (iter_index[0] > 0) {
auto end = std::min(signal_half_sizes[0], iter_index[0] + numel_remaining);
for (const auto i : c10::irange(iter_index[0], end)) {
out_ptr[(signal_half_sizes[0] - i) * out_strides[0]] = std::conj(in_ptr[i * in_strides[0]]);
}
numel_remaining -= (end - iter_index[0]);
iter_index[0] = 0;
advance_index();
}
while (numel_remaining > 0) {
auto end = std::min(signal_half_sizes[0], numel_remaining);
out_ptr[0] = std::conj(in_ptr[0]);
for (const auto i : c10::irange(1, end)) {
out_ptr[(signal_half_sizes[0] - i) * out_strides[0]] = std::conj(in_ptr[i * in_strides[0]]);
}
numel_remaining -= end;
advance_index();
}
} else {
// Explicit loop over a non-mirrored dimension, so just a simple conjugated copy
while (numel_remaining > 0) {
auto end = std::min(signal_half_sizes[0], iter_index[0] + numel_remaining);
for (int64_t i = iter_index[0]; i != end; ++i) {
out_ptr[i * out_strides[0]] = std::conj(in_ptr[i * in_strides[0]]);
}
numel_remaining -= (end - iter_index[0]);
iter_index[0] = 0;
advance_index();
}
}
}
static void _fft_fill_with_conjugate_symmetry_cpu_(
ScalarType dtype, IntArrayRef mirror_dims, IntArrayRef signal_half_sizes,
IntArrayRef in_strides_bytes, const void * in_data,
IntArrayRef out_strides_bytes, void * out_data) {
// Convert strides from bytes to elements
const auto element_size = scalarTypeToTypeMeta(dtype).itemsize();
const auto ndim = signal_half_sizes.size();
DimVector in_strides(ndim), out_strides(ndim);
for (const auto i : c10::irange(ndim)) {
TORCH_INTERNAL_ASSERT(in_strides_bytes[i] % element_size == 0);
in_strides[i] = in_strides_bytes[i] / element_size;
TORCH_INTERNAL_ASSERT(out_strides_bytes[i] % element_size == 0);
out_strides[i] = out_strides_bytes[i] / element_size;
}
// Construct boolean mask for mirrored dims
c10::SmallVector<bool, at::kDimVectorStaticSize> is_mirrored_dim(ndim, false);
for (const auto& dim : mirror_dims) {
is_mirrored_dim[dim] = true;
}
const auto numel = c10::multiply_integers(signal_half_sizes);
AT_DISPATCH_COMPLEX_TYPES(dtype, "_fft_fill_with_conjugate_symmetry", [&] {
at::parallel_for(0, numel, at::internal::GRAIN_SIZE,
[&](int64_t begin, int64_t end) {
_fft_fill_with_conjugate_symmetry_slice(
{begin, end}, is_mirrored_dim, signal_half_sizes,
in_strides, static_cast<const scalar_t*>(in_data),
out_strides, static_cast<scalar_t*>(out_data));
});
});
}
// Register this one implementation for all cpu types instead of compiling multiple times
REGISTER_ARCH_DISPATCH(fft_fill_with_conjugate_symmetry_stub, DEFAULT, &_fft_fill_with_conjugate_symmetry_cpu_)
REGISTER_AVX2_DISPATCH(fft_fill_with_conjugate_symmetry_stub, &_fft_fill_with_conjugate_symmetry_cpu_)
REGISTER_AVX512_DISPATCH(fft_fill_with_conjugate_symmetry_stub, &_fft_fill_with_conjugate_symmetry_cpu_)
REGISTER_ZVECTOR_DISPATCH(fft_fill_with_conjugate_symmetry_stub, &_fft_fill_with_conjugate_symmetry_cpu_)
REGISTER_VSX_DISPATCH(fft_fill_with_conjugate_symmetry_stub, &_fft_fill_with_conjugate_symmetry_cpu_)
// _out variants can be shared between PocketFFT and MKL
Tensor& _fft_r2c_mkl_out(const Tensor& self, IntArrayRef dim, int64_t normalization,
bool onesided, Tensor& out) {
auto result = _fft_r2c_mkl(self, dim, normalization, /*onesided=*/true);
if (onesided) {
resize_output(out, result.sizes());
return out.copy_(result);
}
resize_output(out, self.sizes());
auto last_dim = dim.back();
auto last_dim_halfsize = result.sizes()[last_dim];
auto out_slice = out.slice(last_dim, 0, last_dim_halfsize);
out_slice.copy_(result);
at::native::_fft_fill_with_conjugate_symmetry_(out, dim);
return out;
}
Tensor& _fft_c2r_mkl_out(const Tensor& self, IntArrayRef dim, int64_t normalization,
int64_t last_dim_size, Tensor& out) {
auto result = _fft_c2r_mkl(self, dim, normalization, last_dim_size);
resize_output(out, result.sizes());
return out.copy_(result);
}
Tensor& _fft_c2c_mkl_out(const Tensor& self, IntArrayRef dim, int64_t normalization,
bool forward, Tensor& out) {
auto result = _fft_c2c_mkl(self, dim, normalization, forward);
resize_output(out, result.sizes());
return out.copy_(result);
}
}} // namespace at::native
#endif /* AT_MKL_ENABLED() || AT_POCKETFFT_ENABLED() */
#if AT_POCKETFFT_ENABLED()
#include <pocketfft_hdronly.h>
namespace at { namespace native {
namespace {
using namespace pocketfft;
stride_t stride_from_tensor(const Tensor& t) {
stride_t stride(t.strides().begin(), t.strides().end());
for(auto& s: stride) {
s *= t.element_size();
}
return stride;
}
inline shape_t shape_from_tensor(const Tensor& t) {
return shape_t(t.sizes().begin(), t.sizes().end());
}
template<typename T>
inline std::complex<T> *tensor_cdata(Tensor& t) {
return reinterpret_cast<std::complex<T>*>(t.data_ptr<c10::complex<T>>());
}
template<typename T>
inline const std::complex<T> *tensor_cdata(const Tensor& t) {
return reinterpret_cast<const std::complex<T>*>(t.const_data_ptr<c10::complex<T>>());
}
template<typename T>
T compute_fct(int64_t size, int64_t normalization) {
constexpr auto one = static_cast<T>(1);
switch (static_cast<fft_norm_mode>(normalization)) {
case fft_norm_mode::none: return one;
case fft_norm_mode::by_n: return one / static_cast<T>(size);
case fft_norm_mode::by_root_n: return one / std::sqrt(static_cast<T>(size));
}
AT_ERROR("Unsupported normalization type", normalization);
}
template<typename T>
T compute_fct(const Tensor& t, IntArrayRef dim, int64_t normalization) {
if (static_cast<fft_norm_mode>(normalization) == fft_norm_mode::none) {
return static_cast<T>(1);
}
const auto& sizes = t.sizes();
int64_t n = 1;
for(auto idx: dim) {
n *= sizes[idx];
}
return compute_fct<T>(n, normalization);
}
} // anonymous namespace
Tensor _fft_c2r_mkl(const Tensor& self, IntArrayRef dim, int64_t normalization, int64_t last_dim_size) {
auto in_sizes = self.sizes();
DimVector out_sizes(in_sizes.begin(), in_sizes.end());
out_sizes[dim.back()] = last_dim_size;
auto out = at::empty(out_sizes, self.options().dtype(c10::toRealValueType(self.scalar_type())));
pocketfft::shape_t axes(dim.begin(), dim.end());
if (self.scalar_type() == kComplexFloat) {
pocketfft::c2r(shape_from_tensor(out), stride_from_tensor(self), stride_from_tensor(out), axes, false,
tensor_cdata<float>(self),
out.data_ptr<float>(), compute_fct<float>(out, dim, normalization));
} else {
pocketfft::c2r(shape_from_tensor(out), stride_from_tensor(self), stride_from_tensor(out), axes, false,
tensor_cdata<double>(self),
out.data_ptr<double>(), compute_fct<double>(out, dim, normalization));
}
return out;
}
Tensor _fft_r2c_mkl(const Tensor& self, IntArrayRef dim, int64_t normalization, bool onesided) {
TORCH_CHECK(self.is_floating_point());
auto input_sizes = self.sizes();
DimVector out_sizes(input_sizes.begin(), input_sizes.end());
auto last_dim = dim.back();
auto last_dim_halfsize = (input_sizes[last_dim]) / 2 + 1;
if (onesided) {
out_sizes[last_dim] = last_dim_halfsize;
}
auto out = at::empty(out_sizes, self.options().dtype(c10::toComplexType(self.scalar_type())));
pocketfft::shape_t axes(dim.begin(), dim.end());
if (self.scalar_type() == kFloat) {
pocketfft::r2c(shape_from_tensor(self), stride_from_tensor(self), stride_from_tensor(out), axes, true,
self.const_data_ptr<float>(),
tensor_cdata<float>(out), compute_fct<float>(self, dim, normalization));
} else {
pocketfft::r2c(shape_from_tensor(self), stride_from_tensor(self), stride_from_tensor(out), axes, true,
self.const_data_ptr<double>(),
tensor_cdata<double>(out), compute_fct<double>(self, dim, normalization));
}
if (!onesided) {
at::native::_fft_fill_with_conjugate_symmetry_(out, dim);
}
return out;
}
Tensor _fft_c2c_mkl(const Tensor& self, IntArrayRef dim, int64_t normalization, bool forward) {
TORCH_CHECK(self.is_complex());
if (dim.empty()) {
return self.clone();
}
auto out = at::empty(self.sizes(), self.options());
pocketfft::shape_t axes(dim.begin(), dim.end());
if (self.scalar_type() == kComplexFloat) {
pocketfft::c2c(shape_from_tensor(self), stride_from_tensor(self), stride_from_tensor(out), axes, forward,
tensor_cdata<float>(self),
tensor_cdata<float>(out), compute_fct<float>(self, dim, normalization));
} else {
pocketfft::c2c(shape_from_tensor(self), stride_from_tensor(self), stride_from_tensor(out), axes, forward,
tensor_cdata<double>(self),
tensor_cdata<double>(out), compute_fct<double>(self, dim, normalization));
}
return out;
}
}}
#elif AT_MKL_ENABLED()
#include <ATen/Dispatch.h>
#include <algorithm>
#include <numeric>
#include <cmath>
#include <mkl_dfti.h>
#include <ATen/mkl/Exceptions.h>
#include <ATen/mkl/Descriptors.h>
#include <ATen/mkl/Limits.h>
namespace at { namespace native {
// Constructs an mkl-fft plan descriptor representing the desired transform
// For complex types, strides are in units of 2 * element_size(dtype)
// sizes are for the full signal, including batch size and always two-sided
static DftiDescriptor _plan_mkl_fft(
IntArrayRef in_strides, IntArrayRef out_strides, IntArrayRef sizes,
bool complex_input, bool complex_output,
int64_t normalization, bool forward, ScalarType dtype) {
const int64_t signal_ndim = sizes.size() - 1;
TORCH_INTERNAL_ASSERT(in_strides.size() == sizes.size());
TORCH_INTERNAL_ASSERT(out_strides.size() == sizes.size());
// precision
const DFTI_CONFIG_VALUE prec = [&]{
switch (c10::toRealValueType(dtype)) {
case ScalarType::Float: return DFTI_SINGLE;
case ScalarType::Double: return DFTI_DOUBLE;
default: TORCH_CHECK(false, "MKL FFT doesn't support tensors of type: ", dtype);
}
}();
// signal type
const DFTI_CONFIG_VALUE signal_type = [&]{
if (forward) {
return complex_input ? DFTI_COMPLEX : DFTI_REAL;
} else {
return complex_output ? DFTI_COMPLEX : DFTI_REAL;
}
}();
// create descriptor with signal size
using MklDimVector = c10::SmallVector<MKL_LONG, at::kDimVectorStaticSize>;
MklDimVector mkl_signal_sizes(sizes.begin() + 1, sizes.end());
DftiDescriptor descriptor;
descriptor.init(prec, signal_type, signal_ndim, mkl_signal_sizes.data());
// out of place FFT
MKL_DFTI_CHECK(DftiSetValue(descriptor.get(), DFTI_PLACEMENT, DFTI_NOT_INPLACE));
// batch mode
MKL_LONG mkl_batch_size = sizes[0];
MKL_DFTI_CHECK(DftiSetValue(descriptor.get(), DFTI_NUMBER_OF_TRANSFORMS, mkl_batch_size));
// batch dim stride, i.e., dist between each data
TORCH_CHECK(in_strides[0] <= MKL_LONG_MAX && out_strides[0] <= MKL_LONG_MAX);
MKL_LONG idist = in_strides[0];
MKL_LONG odist = out_strides[0];
MKL_DFTI_CHECK(DftiSetValue(descriptor.get(), DFTI_INPUT_DISTANCE, idist));
MKL_DFTI_CHECK(DftiSetValue(descriptor.get(), DFTI_OUTPUT_DISTANCE, odist));
// signal strides
// first val is offset, set to zero (ignored)
MklDimVector mkl_istrides(1 + signal_ndim, 0), mkl_ostrides(1 + signal_ndim, 0);
for (int64_t i = 1; i <= signal_ndim; i++) {
TORCH_CHECK(in_strides[i] <= MKL_LONG_MAX && out_strides[i] <= MKL_LONG_MAX);
mkl_istrides[i] = in_strides[i];
mkl_ostrides[i] = out_strides[i];
}
MKL_DFTI_CHECK(DftiSetValue(descriptor.get(), DFTI_INPUT_STRIDES, mkl_istrides.data()));
MKL_DFTI_CHECK(DftiSetValue(descriptor.get(), DFTI_OUTPUT_STRIDES, mkl_ostrides.data()));
// if conjugate domain of real is involved, set standard CCE storage type
// this will become default in MKL in future
if (!complex_input || !complex_output) {
MKL_DFTI_CHECK(DftiSetValue(descriptor.get(), DFTI_CONJUGATE_EVEN_STORAGE, DFTI_COMPLEX_COMPLEX));
}
// rescale if requested
const auto norm = static_cast<fft_norm_mode>(normalization);
int64_t signal_numel = c10::multiply_integers(IntArrayRef(sizes.data() + 1, signal_ndim));
if (norm != fft_norm_mode::none) {
const double scale = (
(norm == fft_norm_mode::by_root_n) ?
1.0 / std::sqrt(static_cast<double>(signal_numel)) :
1.0 / static_cast<double>(signal_numel));
const auto scale_direction = forward ? DFTI_FORWARD_SCALE : DFTI_BACKWARD_SCALE;
MKL_DFTI_CHECK(DftiSetValue(descriptor.get(), scale_direction, scale));
}
if (sizeof(MKL_LONG) < sizeof(int64_t)) {
TORCH_CHECK(signal_numel <= MKL_LONG_MAX,
"MKL FFT: input signal numel exceeds allowed range [1, ", MKL_LONG_MAX, "]");
}
// finalize
MKL_DFTI_CHECK(DftiCommitDescriptor(descriptor.get()));
return descriptor;
}
// Execute a general fft operation (can be c2c, onesided r2c or onesided c2r)
static Tensor& _exec_fft(Tensor& out, const Tensor& self, IntArrayRef out_sizes,
IntArrayRef dim, int64_t normalization, bool forward) {
const auto ndim = self.dim();
const int64_t signal_ndim = dim.size();
const auto batch_dims = ndim - signal_ndim;
// Permute dimensions so batch dimensions come first, and in stride order
// This maximizes data locality when collapsing to a single batch dimension
DimVector dim_permute(ndim);
std::iota(dim_permute.begin(), dim_permute.end(), int64_t{0});
c10::SmallVector<bool, kDimVectorStaticSize> is_transformed_dim(ndim);
for (const auto& d : dim) {
is_transformed_dim[d] = true;
}
auto batch_end = std::partition(dim_permute.begin(), dim_permute.end(),
[&](int64_t d) {return !is_transformed_dim[d]; });
auto self_strides = self.strides();
std::sort(dim_permute.begin(), batch_end,
[&](int64_t a, int64_t b) { return self_strides[a] > self_strides[b]; });
std::copy(dim.cbegin(), dim.cend(), batch_end);
auto input = self.permute(dim_permute);
// Collapse batch dimensions into a single dimension
DimVector batched_sizes(signal_ndim + 1);
batched_sizes[0] = -1;
std::copy(input.sizes().cbegin() + batch_dims, input.sizes().cend(), batched_sizes.begin() + 1);
input = input.reshape(batched_sizes);
const auto batch_size = input.sizes()[0];
DimVector signal_size(signal_ndim + 1);
signal_size[0] = batch_size;
for (const auto i : c10::irange(signal_ndim)) {
auto in_size = input.sizes()[i + 1];
auto out_size = out_sizes[dim[i]];
signal_size[i + 1] = std::max(in_size, out_size);
TORCH_INTERNAL_ASSERT(in_size == signal_size[i + 1] ||
in_size == (signal_size[i + 1] / 2) + 1);
TORCH_INTERNAL_ASSERT(out_size == signal_size[i + 1] ||
out_size == (signal_size[i + 1] / 2) + 1);
}
batched_sizes[0] = batch_size;
DimVector batched_out_sizes(batched_sizes.begin(), batched_sizes.end());
for (const auto i : c10::irange(dim.size())) {
batched_out_sizes[i + 1] = out_sizes[dim[i]];
}
const auto value_type = c10::toRealValueType(input.scalar_type());
out.resize_(batched_out_sizes, MemoryFormat::Contiguous);
auto descriptor = _plan_mkl_fft(
input.strides(), out.strides(), signal_size, input.is_complex(),
out.is_complex(), normalization, forward, value_type);
// run the FFT
if (forward) {
MKL_DFTI_CHECK(DftiComputeForward(descriptor.get(), const_cast<void*>(input.const_data_ptr()), out.data_ptr()));
} else {
MKL_DFTI_CHECK(DftiComputeBackward(descriptor.get(), const_cast<void*>(input.const_data_ptr()), out.data_ptr()));
}
// Inplace reshaping to original batch shape and inverting the dimension permutation
DimVector out_strides(ndim);
int64_t batch_numel = 1;
for (int64_t i = batch_dims - 1; i >= 0; --i) {
out_strides[dim_permute[i]] = batch_numel * out.strides()[0];
batch_numel *= out_sizes[dim_permute[i]];
}
for (const auto i : c10::irange(batch_dims, ndim)) {
out_strides[dim_permute[i]] = out.strides()[1 + (i - batch_dims)];
}
out.as_strided_(out_sizes, out_strides, out.storage_offset());
return out;
}
// Sort transform dimensions by input layout, for best performance
// exclude_last is for onesided transforms where the last dimension cannot be reordered
static DimVector _sort_dims(const Tensor& self, IntArrayRef dim, bool exclude_last=false) {
DimVector sorted_dims(dim.begin(), dim.end());
auto self_strides = self.strides();
std::sort(sorted_dims.begin(), sorted_dims.end() - exclude_last,
[&](int64_t a, int64_t b) { return self_strides[a] > self_strides[b]; });
return sorted_dims;
}
// n-dimensional complex to real IFFT
Tensor _fft_c2r_mkl(const Tensor& self, IntArrayRef dim, int64_t normalization, int64_t last_dim_size) {
TORCH_CHECK(self.is_complex());
// NOTE: Multi-dimensional C2R transforms don't agree with numpy in cases
// where the input isn't strictly Hermitian-symmetric. Instead, we use a
// multi-dim C2C transform followed by a 1D C2R transform.
//
// Such inputs are technically out of contract though, so maybe a disagreement
// is okay.
auto input = self;
if (dim.size() > 1) {
auto c2c_dims = dim.slice(0, dim.size() - 1);
input = _fft_c2c_mkl(self, c2c_dims, normalization, /*forward=*/false);
dim = dim.slice(dim.size() - 1);
}
auto in_sizes = input.sizes();
DimVector out_sizes(in_sizes.begin(), in_sizes.end());
out_sizes[dim.back()] = last_dim_size;
auto out = at::empty(out_sizes, self.options().dtype(c10::toRealValueType(self.scalar_type())));
return _exec_fft(out, input, out_sizes, dim, normalization, /*forward=*/false);
}
// n-dimensional real to complex FFT
Tensor _fft_r2c_mkl(const Tensor& self, IntArrayRef dim, int64_t normalization, bool onesided) {
TORCH_CHECK(self.is_floating_point());
auto input_sizes = self.sizes();
DimVector out_sizes(input_sizes.begin(), input_sizes.end());
auto last_dim = dim.back();
auto last_dim_halfsize = (input_sizes[last_dim]) / 2 + 1;
if (onesided) {
out_sizes[last_dim] = last_dim_halfsize;
}
auto sorted_dims = _sort_dims(self, dim, /*exclude_last=*/true);
auto out = at::empty(out_sizes, self.options().dtype(c10::toComplexType(self.scalar_type())));
_exec_fft(out, self, out_sizes, sorted_dims, normalization, /*forward=*/true);
if (!onesided) {
at::native::_fft_fill_with_conjugate_symmetry_(out, dim);
}
return out;
}
// n-dimensional complex to complex FFT/IFFT
Tensor _fft_c2c_mkl(const Tensor& self, IntArrayRef dim, int64_t normalization, bool forward) {
TORCH_CHECK(self.is_complex());
if (dim.empty()) {
return self.clone();
}
const auto sorted_dims = _sort_dims(self, dim);
auto out = at::empty(self.sizes(), self.options());
return _exec_fft(out, self, self.sizes(), sorted_dims, normalization, forward);
}
}} // namespace at::native
#else
namespace at { namespace native {
REGISTER_NO_CPU_DISPATCH(fft_fill_with_conjugate_symmetry_stub);
Tensor _fft_c2r_mkl(const Tensor& self, IntArrayRef dim, int64_t normalization, int64_t last_dim_size) {
AT_ERROR("fft: ATen not compiled with FFT support");
}
Tensor _fft_r2c_mkl(const Tensor& self, IntArrayRef dim, int64_t normalization, bool onesided) {
AT_ERROR("fft: ATen not compiled with FFT support");
}
Tensor _fft_c2c_mkl(const Tensor& self, IntArrayRef dim, int64_t normalization, bool forward) {
AT_ERROR("fft: ATen not compiled with FFT support");
}
Tensor& _fft_r2c_mkl_out(const Tensor& self, IntArrayRef dim, int64_t normalization,
bool onesided, Tensor& out) {
AT_ERROR("fft: ATen not compiled with FFT support");
}
Tensor& _fft_c2r_mkl_out(const Tensor& self, IntArrayRef dim, int64_t normalization,
int64_t last_dim_size, Tensor& out) {
AT_ERROR("fft: ATen not compiled with FFT support");
}
Tensor& _fft_c2c_mkl_out(const Tensor& self, IntArrayRef dim, int64_t normalization,
bool forward, Tensor& out) {
AT_ERROR("fft: ATen not compiled with FFT support");
}
}} // namespace at::native
#endif
```
|
```objective-c
/*
* Nexus.js - The next-gen JavaScript platform
*
* This program is free software: you can redistribute it and/or modify
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
*
* along with this program. If not, see <path_to_url
*
*/
#ifndef CLASSES_NET_HTCOMMON_RESPONSE_H
#define CLASSES_NET_HTCOMMON_RESPONSE_H
#include <JavaScriptCore/API/JSObjectRef.h>
#include "classes/net/htcommon/connection.h"
#include "classes/io/device.h"
namespace NX {
namespace Classes {
namespace Net {
namespace HTCommon {
class Response: public NX::Classes::IO::SinkDevice {
protected:
Response (NX::Classes::Net::HTCommon::Connection * connection):
NX::Classes::IO::SinkDevice(), myConnection(connection)
{
}
public:
virtual ~Response() {}
static NX::Classes::Net::HTCommon::Response * FromObject(JSObjectRef obj) {
return dynamic_cast<NX::Classes::Net::HTCommon::Response*>(NX::Classes::Base::FromObject(obj));
}
static JSClassRef createClass(NX::Context * context) {
JSClassDefinition def = NX::Classes::Net::HTCommon::Response::Class;
def.parentClass = NX::Classes::IO::SinkDevice::createClass (context);
return context->nexus()->defineOrGetClass (def);
}
const boost::system::error_code & deviceError() const override { return myError; }
virtual JSObjectRef attach(JSContextRef ctx, JSObjectRef thisObject, JSObjectRef connection) = 0;
static const JSClassDefinition Class;
static const JSStaticFunction Methods[];
static const JSStaticValue Properties[];
virtual unsigned status() const = 0;
virtual void status(unsigned) = 0;
virtual void set(const std::string & name, const std::string & value) = 0;
virtual void send(JSContextRef context, JSValueRef body) = 0;
virtual boost::system::error_code & error() { return myError; }
void deviceClose() override { }
NX::Classes::Net::HTCommon::Connection * connection() { return myConnection; }
private:
NX::Classes::Net::HTCommon::Connection * myConnection;
boost::system::error_code myError;
};
}
}
}
}
#endif
```
|
```html
<html lang="en">
<head>
<title>The Print Command with Objective-C - Debugging with GDB</title>
<meta http-equiv="Content-Type" content="text/html">
<meta name="description" content="Debugging with GDB">
<meta name="generator" content="makeinfo 4.11">
<link title="Top" rel="start" href="index.html#Top">
<link rel="up" href="Objective_002dC.html#Objective_002dC" title="Objective-C">
<link rel="prev" href="Method-Names-in-Commands.html#Method-Names-in-Commands" title="Method Names in Commands">
<link href="path_to_url" rel="generator-home" title="Texinfo Homepage">
<!--
Permission is granted to copy, distribute and/or modify this document
any later version published by the Free Software Foundation; with the
Invariant Sections being ``Free Software'' and ``Free Software Needs
Free Documentation'', with the Front-Cover Texts being ``A GNU Manual,''
and with the Back-Cover Texts as in (a) below.
(a) The FSF's Back-Cover Text is: ``You are free to copy and modify
this GNU Manual. Buying copies from GNU Press supports the FSF in
developing GNU and promoting software freedom.''
-->
<meta http-equiv="Content-Style-Type" content="text/css">
<style type="text/css"><!--
pre.display { font-family:inherit }
pre.format { font-family:inherit }
pre.smalldisplay { font-family:inherit; font-size:smaller }
pre.smallformat { font-family:inherit; font-size:smaller }
pre.smallexample { font-size:smaller }
pre.smalllisp { font-size:smaller }
span.sc { font-variant:small-caps }
span.roman { font-family:serif; font-weight:normal; }
span.sansserif { font-family:sans-serif; font-weight:normal; }
--></style>
</head>
<body>
<div class="node">
<p>
<a name="The-Print-Command-with-Objective-C"></a>
<a name="The-Print-Command-with-Objective_002dC"></a>
Previous: <a rel="previous" accesskey="p" href="Method-Names-in-Commands.html#Method-Names-in-Commands">Method Names in Commands</a>,
Up: <a rel="up" accesskey="u" href="Objective_002dC.html#Objective_002dC">Objective-C</a>
<hr>
</div>
<h5 class="subsubsection">15.4.4.2 The Print Command With Objective-C</h5>
<p><a name="index-Objective_002dC_002c-print-objects-976"></a><a name="index-print_002dobject-977"></a><a name=your_sha256_hash9_007d-978"></a>
The print command has also been extended to accept methods. For example:
<pre class="smallexample"> print -[<var>object</var> hash]
</pre>
<p><a name="index-print-an-Objective_002dC-object-description-979"></a><a name=your_sha256_hashnting-Objective_002dC-objects-980"></a>will tell <span class="sc">gdb</span> to send the <code>hash</code> message to <var>object</var>
and print the result. Also, an additional command has been added,
<code>print-object</code> or <code>po</code> for short, which is meant to print
the description of an object. However, this command may only work
with certain Objective-C libraries that have a particular hook
function, <code>_NSPrintForDebugger</code>, defined.
</body></html>
```
|
Legal gender, or legal sex, is a sex or gender that is recognized under the law. Biological sex, sex reassignment and gender identity are used to determine legal gender. The details vary by jurisdiction.
History
In European societies, Roman law, post-classical canon law, and later common law, referred to a person's sex as male, female or hermaphrodite, with legal rights as male or female depending on the characteristics that appeared most dominant. Under Roman law, a hermaphrodite had to be classed as either male or female. The 12th-century Decretum Gratiani states that "Whether an hermaphrodite may witness a testament, depends on which sex prevails". The foundation of common law, the 16th Century Institutes of the Lawes of England, described how a hermaphrodite could inherit "either as male or female, according to that kind of sexe which doth prevaile." Legal cases where legal sex was placed in doubt have been described over the centuries.
In 1930, Lili Elbe received sexual reassignment surgery and an ovary transplant and changed her legal gender as female. In 1931, Dora Richter received removal of the penis and vaginoplasty. A few weeks after Lili Elbe had her final surgery including uterus transplant and vaginoplasty. Immune rejection from transplanted uterus caused her death. In May 1933, the Institute for Sexual Research was attacked by Nazis, losing any surviving records about Richter.
After World War II, transgender issues received public attention again. Christine Jorgensen was unable to marry a man because her birth certificate listed her as male. Some transgender people changed their birth certificates, but the validity of these documents were challenged. In the United Kingdom, Sir Ewan Forbes' case recognized the process of legal gender change. However. legal gender change was not recognized in Corbett v Corbett.
Nowadays, many jurisdictions allow transgender individuals to change their legal gender, but some jurisdictions require sterilization, childlessness or an unmarried status for legal gender change. In some cases, sex reassignment surgery is a requirement for legal recognition. The transgender rights movement has promoted legal change in many jurisdictions.
Present views
See also
References
Gender
Transgender law
|
```smalltalk
/*****************************************************************************
*
* ReoGrid - .NET Spreadsheet Control
*
* path_to_url
*
* THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
* KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
* PURPOSE.
*
* ReoGrid and ReoGrid Demo project is released under MIT license.
*
*
****************************************************************************/
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace unvell.ReoGrid.Demo.Features.EdgeFreeze
{
public partial class LeftFreezeDemo : UserControl
{
public LeftFreezeDemo()
{
InitializeComponent();
}
protected override void OnLoad(EventArgs e)
{
base.OnLoad(e);
var worksheet = reoGridControl.CurrentWorksheet;
// freeze to left
worksheet.FreezeToCell(0, 5, FreezeArea.Left);
worksheet[5, 1] = "frozen region";
worksheet[5, 7] = "active region";
}
}
}
```
|
```shell
#!/bin/bash
set -e
# Directory of the script file, independent of where it's called from.
DIR="$(cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd)"
# Use the user's cache directories
GOCACHE=`go env GOCACHE`
GOMODCACHE=`go env GOMODCACHE`
echo "Generating sql models and queries in go..."
docker run \
--rm \
--user "$UID:$(id -g)" \
-e UID=$UID \
-v "$DIR/../:/build" \
-w /build \
sqlc/sqlc:1.25.0 generate
```
|
Pepita; or, the Girl with the Glass Eyes, based on a story by E. T. A. Hoffmann, is a comic opera in three acts written by Alfred Thompson and composed by Edward Solomon. The opera was produced and directed by Thompson and Solomon and debuted at the Union Square Theatre, New York, then under the management of J. M. Hill, on March 16, 1886, and closed after a nine-week run on May 22.
Principal roles and original cast
Sources:
Pepita, Professor Pongo's Daughter .. Lillian Russell
Don Pablo, the governor's son and heir .. Chauncey Olcott/ G. Taglieri
Professor Pongo, Doctor of Sciences . . Jacques Kruger
Donna Carmansuita, Directress of Seminary for Young Ladies .. Alma Stuart Stanley
Don Giavolo, Governor of Scaliwaxico .... Fred Clifton
Don Juan, Pablo's inevitable friend .. George Wilkinson
Curaso, valet to Pablo .. Frederick Solomon
Pasquela, a forward pupil .. Lizzie Hughes
Maraquita, an advanced idem .. Clara Jackson
Chiquita, a prominent ditto .. Cora Striker
Juana, a maid in waiting .. Julia Wilson
Ballet Coryphée .. Miles. Pasta, S. Watson/ Forstner Atkins.
Synopsis
Setting: The City Of Scaliwaxico.
Time—High Old. Period—Uncertain.
ACT I.—The Students' Frolic. Before Professor Pongo's House in Scaliwaxico.
ACT II.—The Professor's Prodigy. Interior of Pongo's Sanctum.
ACT III.—The Governor's Fete. Don Giavolo's Palace. In this scene will appear The Mechanical Waiters and The Humming Birds.
Plot
Professor Pongo is obsessed with automata, as is Governor Giavolo. Pepita, the professor's daughter and Pablo, the governor's son, are in love. Her father disapproves and Pablo is forbidden to visit. To gain entry past her father, Pablo disguises himself as one of the cadavers Pongo planned to use to augment his mechanical devices. That night when Giavolo paid Pongo a visit, curious to view his mechanisms, neither knew that two of the automatons entertaining them were actually Pepita and Pablo concealed inside.
References
1886 plays
1886 operas
1886 in music
Operas based on works by E. T. A. Hoffmann
|
```c
/*****************************************************************************
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
* Neither the name of Intel Corporation nor the names of its contributors
may be used to endorse or promote products derived from this software
without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS 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.
******************************************************************************
* Contents: Native middle-level C interface to LAPACK function ztprfb
* Author: Intel Corporation
*****************************************************************************/
#include "lapacke_utils.h"
lapack_int API_SUFFIX(LAPACKE_ztprfb_work)( int matrix_layout, char side, char trans,
char direct, char storev, lapack_int m,
lapack_int n, lapack_int k, lapack_int l,
const lapack_complex_double* v, lapack_int ldv,
const lapack_complex_double* t, lapack_int ldt,
lapack_complex_double* a, lapack_int lda,
lapack_complex_double* b, lapack_int ldb,
lapack_complex_double* work, lapack_int ldwork )
{
lapack_int info = 0;
if( matrix_layout == LAPACK_COL_MAJOR ) {
/* Call LAPACK function and adjust info */
LAPACK_ztprfb( &side, &trans, &direct, &storev, &m, &n, &k, &l, v, &ldv,
t, &ldt, a, &lda, b, &ldb, work, &ldwork );
if( info < 0 ) {
info = info - 1;
}
} else if( matrix_layout == LAPACK_ROW_MAJOR ) {
lapack_int lda_t = MAX(1,k);
lapack_int ldb_t = MAX(1,m);
lapack_int ldt_t = MAX(1,ldt);
lapack_int ldv_t = MAX(1,ldv);
lapack_complex_double* v_t = NULL;
lapack_complex_double* t_t = NULL;
lapack_complex_double* a_t = NULL;
lapack_complex_double* b_t = NULL;
/* Check leading dimension(s) */
if( lda < m ) {
info = -15;
API_SUFFIX(LAPACKE_xerbla)( "LAPACKE_ztprfb_work", info );
return info;
}
if( ldb < n ) {
info = -17;
API_SUFFIX(LAPACKE_xerbla)( "LAPACKE_ztprfb_work", info );
return info;
}
if( ldt < k ) {
info = -13;
API_SUFFIX(LAPACKE_xerbla)( "LAPACKE_ztprfb_work", info );
return info;
}
if( ldv < k ) {
info = -11;
API_SUFFIX(LAPACKE_xerbla)( "LAPACKE_ztprfb_work", info );
return info;
}
/* Allocate memory for temporary array(s) */
v_t = (lapack_complex_double*)
LAPACKE_malloc( sizeof(lapack_complex_double) * ldv_t * MAX(1,k) );
if( v_t == NULL ) {
info = LAPACK_TRANSPOSE_MEMORY_ERROR;
goto exit_level_0;
}
t_t = (lapack_complex_double*)
LAPACKE_malloc( sizeof(lapack_complex_double) * ldt_t * MAX(1,k) );
if( t_t == NULL ) {
info = LAPACK_TRANSPOSE_MEMORY_ERROR;
goto exit_level_1;
}
a_t = (lapack_complex_double*)
LAPACKE_malloc( sizeof(lapack_complex_double) * lda_t * MAX(1,m) );
if( a_t == NULL ) {
info = LAPACK_TRANSPOSE_MEMORY_ERROR;
goto exit_level_2;
}
b_t = (lapack_complex_double*)
LAPACKE_malloc( sizeof(lapack_complex_double) * ldb_t * MAX(1,n) );
if( b_t == NULL ) {
info = LAPACK_TRANSPOSE_MEMORY_ERROR;
goto exit_level_3;
}
/* Transpose input matrices */
API_SUFFIX(LAPACKE_zge_trans)( matrix_layout, ldv, k, v, ldv, v_t, ldv_t );
API_SUFFIX(LAPACKE_zge_trans)( matrix_layout, ldt, k, t, ldt, t_t, ldt_t );
API_SUFFIX(LAPACKE_zge_trans)( matrix_layout, k, m, a, lda, a_t, lda_t );
API_SUFFIX(LAPACKE_zge_trans)( matrix_layout, m, n, b, ldb, b_t, ldb_t );
/* Call LAPACK function and adjust info */
LAPACK_ztprfb( &side, &trans, &direct, &storev, &m, &n, &k, &l, v_t,
&ldv_t, t_t, &ldt_t, a_t, &lda_t, b_t, &ldb_t, work,
&ldwork );
info = 0; /* LAPACK call is ok! */
/* Transpose output matrices */
API_SUFFIX(LAPACKE_zge_trans)( LAPACK_COL_MAJOR, k, m, a_t, lda_t, a, lda );
API_SUFFIX(LAPACKE_zge_trans)( LAPACK_COL_MAJOR, m, n, b_t, ldb_t, b, ldb );
/* Release memory and exit */
LAPACKE_free( b_t );
exit_level_3:
LAPACKE_free( a_t );
exit_level_2:
LAPACKE_free( t_t );
exit_level_1:
LAPACKE_free( v_t );
exit_level_0:
if( info == LAPACK_TRANSPOSE_MEMORY_ERROR ) {
API_SUFFIX(LAPACKE_xerbla)( "LAPACKE_ztprfb_work", info );
}
} else {
info = -1;
API_SUFFIX(LAPACKE_xerbla)( "LAPACKE_ztprfb_work", info );
}
return info;
}
```
|
The Hospital for Sick Children (HSC), corporately branded as SickKids, is a major pediatric teaching hospital located on University Avenue in Toronto, Ontario, Canada. Affiliated with the Faculty of Medicine of the University of Toronto, the hospital was ranked the top pediatric hospital in the world by Newsweek in 2021.
The hospital's Peter Gilgan Centre for Research and Learning is believed to be the largest pediatric research tower in the world, at .
History
During 1875, an eleven-room house was rented for a year by a Toronto women's bible study group, led by Elizabeth McMaster. Opened on March 1, it set up six iron cots and "declared open a hospital 'for the admission and treatment of all sick children.'" The first patient, a scalding victim named Maggie, came in on April 3. In its first year of operation, 44 patients were admitted to the hospital, and 67 others were treated in outpatient clinics.
In 1876, the hospital moved to larger facilities. In 1891, it moved from rented premises to a purposely-constructed building at College and Elizabeth Streets. It would remain there for 60 years. The building, known as the Victoria Hospital for Sick Children, is now the Toronto area headquarters of Canadian Blood Services. In 1951, the hospital moved to its present University Avenue location. On its grounds once stood the childhood home of the Canadian-born movie star Mary Pickford.
In 1972, the hospital became equipped with a rooftop helipad (CNW8).
From 1980 to 1981, the hospital was the site of a series of baby deaths.
In December 2022, the hospital was attacked by the LockBit ransomware gang, who apologized 13 days later and provided a decryptor to the hospital for free.
Contributions to medicine
The hospital was an early leader in the fields of food safety and nutrition. In 1908, a pasteurization facility for milk was established at the hospital, the first in Toronto, 30 years before milk pasteurization became mandatory. Researchers at the hospital invented an infant cereal, Pablum. The research that led to the discovery of insulin took place at the nearby University of Toronto and was soon applied in the hospital by Gladys Boyd. Dr. Frederick Banting, one of the researchers, had served his internship at the hospital and went on to become an attending physician there. In 1963, William Thornton Mustard developed the Mustard surgical procedure to help correct heart problems in blue baby syndrome. In 1989, a team of researchers at the hospital discovered the gene responsible for cystic fibrosis.
SickKids is a member of the Biotechnology Innovation Organization (BIO), the world's largest advocacy organization representing the biotechnology industry.
COVID-19 pandemic
During the COVID-19 pandemic, SickKids engaged in several campaigns to promote COVID-19 vaccines.
SickKids received $99,680.00 from the Government of Canada for two projects through a grant program titled "Encouraging vaccine confidence in Canada." The grant was jointly administered by the Natural Sciences and Engineering Research Council (NSERC), the Social Sciences and Humanities Research Council (SSHRC), and the Canadian Institutes of Health Research (CIHR).
One of the funded proposals was titled “Building COVID-19 Vaccine Confidence: Educating the Educators.” The result was a promotional video titled “COVID-19 Vaccination Information for Education & Child Care Sector Staff” narrated by Dr. Danielle Martin. It was produced by 19 to Zero, and distributed by the Ontario Ministry of Education to school boards, private schools and child care centres to use in COVID-19 vaccination educational programs.
A second proposal was titled “Stop COVID in Kids - School based vaccine education outreach to build trust and empower families”, which received additional funding in the form of a $440,000 grant from the Public Health Agency of Canada's Immunization Partnership Fund.
Unqualified forensic testing
The hospital housed the Motherisk Drug Testing Laboratory. At the request of various child protection agencies, 16,000 hair samples were tested from 2005 to 2015. The former Ontario Appeal Court judge Susan Lang reviewed Motherisk Drug Testing Laboratory and determined that it was not qualified to do forensic testing. Lang also stated, "That SickKids failed to exercise meaningful oversight over MDTL's work must be considered in the context of the hospital's experience with Dr. Charles Smith." The 2008 Goudge Report found also that Dr. Charles Smith, whose forensic testimony led to wrongful convictions in the deaths of children, was not qualified to do forensic testing.
Future
The hospital is in its initial stages of expansion. In 2017, it established the "SickKids VS Limits" fundraising campaign, which will continue until 2022 to raise $1.5 billion for the expansion project. The funds will be used to build a patient care centre on University Avenue and a support centre on Elizabeth Street, to renovate the atrium, and to fund pediatric health research.
To provide the required area for the buildings, demolition of existing structures was required. That included the removal of a skyway spanning Elizabeth Street, the demolition of the Elizabeth McMaster Building at the northeast corner of Elizabeth Street and Elm Street, and the demolition of the laboratory and administrative building.
Construction of the 22-storey Patient Support Centre administrative building will occur on the site of the Elizabeth McMaster Building and finish in 2022. The Peter Gilgan Family Patient Care Tower is expected to open in 2029, and the atrium's renovation is expected to be completed by 2031.
Notable patients
Peter Czerwinski (born 1985), competitive eater known as "Furious Pete"; admitted as a teen while battling anorexia
Mel Hague (born 1943), author and country singer; admitted at 9 for infantile paralysis (now known as cerebral palsy)
Morgan Holmes, sociologist; had a clitorectomy at 7
Peter G. Kavanagh (1953-2016), radio and television producer; was treated for paralytic poliomyelitis in infancy and childhood
Aqsa Parvez (1991-2007), murder victim; died at the hospital
Leonard Thompson (1908-1935), the first diabetic patient to be treated with insulin; received treatment as a teen
Peter Woodcock (1939-2010), serial killer; was treated extensively throughout his childhood
Notable staff
Benjamin Alman, professor and head of the division of orthopedic surgery, senior scientist in developmental and stem cell biology
Jean Augustine (born 1937), member of the Board of Trustees
Harry Bain (1921-2001), paediatrician (1951-85)
Frederick Banting (1891-1941), resident surgeon
Sonia Baxendale, member of the Board of Trustees
Jalynn Bennett (1943-2015), member of the Board of Directors
Zulfiqar Bhutta, co-director of the centre for global child health
Gladys Boyd (1894-1969), paediatrician, head of endocrine services
Susan Bradley (born 1940), head of the division of child psychiatry and psychiatrist-in-chief
Manuel Buchwald (born 1940), staff geneticist, scientist, senior scientist, and director of the research institute
Kevin Chan, emergency physician
Jim Coutts (1938-2013), member of the board and foundation
A. Jamie Cuticchia (born 1966), director of bioinformatics
Arlington Franklin Dungy (????-2016), chief of paedodontics
John Taylor Fotheringham (1860-1940), staff member
Julie Forman-Kay, scientist
Vicky Forster, postdoctoral researcher
Anna Goldenberg, senior scientist
William A. Goldie (1873-1950), chief of the infection division
Camilla Gryski, therapeutic clown
Mary Jo Haddad, president and CEO for ten years
Mark Henkelman, senior scientist emeritus
Lisa Houghton, worked at the hospital
Sanford Jackson, research biochemist and biochemist-in-chief
Monica Justice, program head of genetics and genome biology
Lewis E. Kay (born 1961), senior scientist in molecular medicine
Shaf Keshavjee, became a director of the Toronto lung transplant program in 1997 and later a scientist in 2012
Gideon Koren (born 1947), doctor
Arlette Lefebvre (born 1947), child psychiatrist
Kellie Leitch (born 1970), orthopaedic pediatric surgeon
James MacCallum (1860-1943), ophthalmologist
Sabi Marwah (born 1951), board member
Michael McCain (born 1958), member of the Board of Trustees
Kathryn McGarry, critical care nurse
Pleasantine Mill, cell biologist who worked at the hospital
Freda Miller, developmental neurobiologist
Caroline Mulroney (born 1974), board member
Edward G. Murphy (1921-2020), senior staff member
Aideen Nicholson (1927-2019), social worker
Isaac Odame, staff physician
Edmund Boyd Osler (1845-1924), trustee
Blake Papsin (born 1959), otolaryngologist
Rulan S. Parekh, former senior scientist in child health evaluative sciences and associate chief of clinical research
Tom Pashby, former senior staff ophthalmologist and sport safety advocate
Debra Pepler, senior associate scientist
Audrius V. Plioplys, chief resident of child neurology
John Russell Reynolds (1828-1896), assistant physician
Lisa Robinson, former head of the division of nephrology
Edward S. Rogers III (born 1969), director
Johanna Rommens, senior scientist emeritus
Miriam Rossi (1937-2018), pediatrician in the division of adolescent medicine
James Rutka (born 1956), subspecializes in pediatric neurosurgery
Robert B. Salter (1924-2010), surgeon
Harry Schachter (born 1933), head of the division of biochemistry research
Chandrakant Shah (born 1936), honorary staff
Louis Siminovitch (1920-2021), helped establish the department of genetics and became geneticist-in-chief
Sheila Singh, neurosurgeon
Charles R. Smith, head forensic pathologist
Valerie Speirs, professor
Ambrose Thomas Stanton (1875-1938), house surgeon
Martin J. Steinbach (1941-2017), senior scientist in department of ophthalmology
Anna Taddio (born 1967), adjunct senior scientist and clinical pharmacist
Kathleen P. Taylor (born 1957), member of the Board of Trustees
Ahmad Teebi (1949-2010), clinical geneticist
John M. Thompson (born 1949), vice chairman of the Board of Trustees
Margaret W. Thompson (1920-2014), genetics researcher
Richard M. Thomson (born 1933), member on the Board of Directors
James Thorburn (1830-1905), physician of the boys' home
Frederick Tisdall (1893-1949), pediatrician
James Marshall Tory (1930-2013), chairman of the board
Lap-Chee Tsui (born 1950), member of department of genetics
Norma Ford Walker (1893-1968), first director of the department of genetics
Prem Watsa (born 1950), member of the Board of Trustees
Bryan R.G. Williams, held various positions at the hospital
Ronald Worton (born 1942), director of the diagnostic cytogenetics laboratory
Stanley Zlotkin, clinical nutritionist
References
Footnotes
External links
The Hospital for Sick Children website
SickKids Foundation website
1875 establishments in Ontario
Certified airports in Ontario
Children's hospitals in Canada
Heliports in Ontario
Hospital buildings completed in 1891
Hospitals affiliated with the University of Toronto
Hospitals established in 1875
Hospitals in Toronto
|
```go
package parse_test
import (
"errors"
"path/filepath"
"strings"
"testing"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"gopkg.in/reform.v1/internal/test/models"
"gopkg.in/reform.v1/internal/test/models/bogus"
. "gopkg.in/reform.v1/parse"
)
//nolint:gochecknoglobals
var (
person = StructInfo{
Type: "Person",
SQLSchema: "",
SQLName: "people",
Fields: []FieldInfo{
{Name: "ID", Type: "int32", Column: "id"},
{Name: "GroupID", Type: "*int32", Column: "group_id"},
{Name: "Name", Type: "string", Column: "name"},
{Name: "Email", Type: "*string", Column: "email"},
{Name: "CreatedAt", Type: "time.Time", Column: "created_at"},
{Name: "UpdatedAt", Type: "*time.Time", Column: "updated_at"},
},
PKFieldIndex: 0,
}
project = StructInfo{
Type: "Project",
SQLSchema: "",
SQLName: "projects",
Fields: []FieldInfo{
{Name: "Name", Type: "string", Column: "name"},
{Name: "ID", Type: "string", Column: "id"},
{Name: "Start", Type: "time.Time", Column: "start"},
{Name: "End", Type: "*time.Time", Column: "end"},
},
PKFieldIndex: 1,
}
personProject = StructInfo{
Type: "PersonProject",
SQLSchema: "",
SQLName: "person_project",
Fields: []FieldInfo{
{Name: "PersonID", Type: "int32", Column: "person_id"},
{Name: "ProjectID", Type: "string", Column: "project_id"},
},
PKFieldIndex: -1,
}
idOnly = StructInfo{
Type: "IDOnly",
SQLSchema: "",
SQLName: "id_only",
Fields: []FieldInfo{
{Name: "ID", Type: "int32", Column: "id"},
},
PKFieldIndex: 0,
}
constraints = StructInfo{
Type: "Constraints",
SQLSchema: "",
SQLName: "constraints",
Fields: []FieldInfo{
{Name: "I", Type: "int32", Column: "i"},
{Name: "ID", Type: "string", Column: "id"},
},
PKFieldIndex: 1,
}
compositePk = StructInfo{
Type: "CompositePk",
SQLSchema: "",
SQLName: "composite_pk",
Fields: []FieldInfo{
{Name: "I", Type: "int32", Column: "i"},
{Name: "Name", Type: "string", Column: "name"},
{Name: "J", Type: "string", Column: "j"},
},
PKFieldIndex: -1,
}
legacyPerson = StructInfo{
Type: "LegacyPerson",
SQLSchema: "legacy",
SQLName: "people",
Fields: []FieldInfo{
{Name: "ID", Type: "int32", Column: "id"},
{Name: "Name", Type: "*string", Column: "name"},
},
PKFieldIndex: 0,
}
extra = StructInfo{
Type: "Extra",
SQLSchema: "",
SQLName: "extra",
Fields: []FieldInfo{
{Name: "ID", Type: "Integer", Column: "id"},
{Name: "Name", Type: "*String", Column: "name"},
{Name: "Byte", Type: "uint8", Column: "byte"},
{Name: "Uint8", Type: "uint8", Column: "uint8"},
{Name: "ByteP", Type: "*uint8", Column: "bytep"},
{Name: "Uint8P", Type: "*uint8", Column: "uint8p"},
{Name: "Bytes", Type: "[]uint8", Column: "bytes"},
{Name: "Uint8s", Type: "[]uint8", Column: "uint8s"},
{Name: "BytesA", Type: "[512]uint8", Column: "bytesa"},
{Name: "Uint8sA", Type: "[512]uint8", Column: "uint8sa"},
{Name: "BytesT", Type: "Bytes", Column: "bytest"},
{Name: "Uint8sT", Type: "Uint8s", Column: "uint8st"},
},
PKFieldIndex: 0,
}
notExported = StructInfo{
Type: "notExported",
SQLSchema: "",
SQLName: "not_exported",
Fields: []FieldInfo{
{Name: "ID", Type: "string", Column: "id"},
},
PKFieldIndex: 0,
}
)
func TestFileGood(t *testing.T) {
s, err := File(filepath.FromSlash("../internal/test/models/good.go"))
assert.NoError(t, err)
require.Len(t, s, 7)
assert.Equal(t, person, s[0])
assert.Equal(t, project, s[1])
assert.Equal(t, personProject, s[2])
assert.Equal(t, idOnly, s[3])
assert.Equal(t, constraints, s[4])
assert.Equal(t, compositePk, s[5])
assert.Equal(t, legacyPerson, s[6])
}
func TestFileExtra(t *testing.T) {
s, err := File(filepath.FromSlash("../internal/test/models/extra.go"))
assert.NoError(t, err)
require.Len(t, s, 2)
assert.Equal(t, extra, s[0])
assert.Equal(t, notExported, s[1])
}
func TestFileBogus(t *testing.T) {
dir := filepath.FromSlash("../internal/test/models/bogus/")
for file, msg := range map[string]error{
"bogus1.go": errors.New(`reform: Bogus1 has anonymous field BogusType with "reform:" tag, it is not allowed`),
"bogus2.go": errors.New(`reform: Bogus2 has anonymous field bogusType with "reform:" tag, it is not allowed`),
"bogus3.go": errors.New(`reform: Bogus3 has non-exported field bogus with "reform:" tag, it is not allowed`),
"bogus4.go": errors.New(`reform: Bogus4 has field Bogus with invalid "reform:" tag value, it is not allowed`),
"bogus5.go": errors.New(`reform: Bogus5 has field Bogus with invalid "reform:" tag value, it is not allowed`),
"bogus6.go": errors.New(`reform: Bogus6 has no fields with "reform:" tag, it is not allowed`),
"bogus7.go": errors.New(`reform: Bogus7 has pointer field Bogus with with "pk" label in "reform:" tag, it is not allowed`),
// "bogus8.go": errors.New(`reform: Bogus8 has pointer field Bogus with with "omitempty" label in "reform:" tag, it is not allowed`),
"bogus8.go": errors.New(`reform: Bogus8 has field Bogus with invalid "reform:" tag value, it is not allowed`),
"bogus9.go": errors.New(`reform: Bogus9 has field Bogus2 with "reform:" tag with duplicate column name bogus (used by Bogus1), it is not allowed`),
"bogus10.go": errors.New(`reform: Bogus10 has field Bogus2 with with duplicate "pk" label in "reform:" tag (first used by Bogus1), it is not allowed`),
"bogus11.go": errors.New(`reform: Bogus11 has slice field Bogus with with "pk" label in "reform:" tag, it is not allowed`),
"bogus_ignore.go": nil,
} {
s, err := File(filepath.Join(dir, file))
assert.Nil(t, s)
assert.Equal(t, msg, err)
}
}
func TestObjectGood(t *testing.T) {
s, err := Object(new(models.Person), "", "people")
assert.NoError(t, err)
assert.Equal(t, &person, s)
s, err = Object(new(models.Project), "", "projects")
assert.NoError(t, err)
assert.Equal(t, &project, s)
s, err = Object(new(models.PersonProject), "", "person_project")
assert.NoError(t, err)
assert.Equal(t, &personProject, s)
s, err = Object(new(models.IDOnly), "", "id_only")
assert.NoError(t, err)
assert.Equal(t, &idOnly, s)
s, err = Object(new(models.Constraints), "", "constraints")
assert.NoError(t, err)
assert.Equal(t, &constraints, s)
s, err = Object(new(models.CompositePk), "", "composite_pk")
assert.NoError(t, err)
assert.Equal(t, &compositePk, s)
s, err = Object(new(models.LegacyPerson), "legacy", "people")
assert.NoError(t, err)
assert.Equal(t, &legacyPerson, s)
}
func TestObjectExtra(t *testing.T) {
s, err := Object(new(models.Extra), "", "extra")
assert.NoError(t, err)
assert.Equal(t, &extra, s)
// s, err := Object(new(models.notExported), "", "not_exported")
// assert.NoError(t, err)
// assert.Equal(t, ¬Exported, s)
}
func TestObjectBogus(t *testing.T) {
for obj, msg := range map[interface{}]error{
new(bogus.Bogus1): errors.New(`reform: Bogus1 has anonymous field BogusType with "reform:" tag, it is not allowed`),
new(bogus.Bogus2): errors.New(`reform: Bogus2 has anonymous field bogusType with "reform:" tag, it is not allowed`),
new(bogus.Bogus3): errors.New(`reform: Bogus3 has non-exported field bogus with "reform:" tag, it is not allowed`),
new(bogus.Bogus4): errors.New(`reform: Bogus4 has field Bogus with invalid "reform:" tag value, it is not allowed`),
new(bogus.Bogus5): errors.New(`reform: Bogus5 has field Bogus with invalid "reform:" tag value, it is not allowed`),
new(bogus.Bogus6): errors.New(`reform: Bogus6 has no fields with "reform:" tag, it is not allowed`),
new(bogus.Bogus7): errors.New(`reform: Bogus7 has pointer field Bogus with with "pk" label in "reform:" tag, it is not allowed`),
// new(bogus.Bogus8): errors.New(`reform: Bogus8 has pointer field Bogus with with "omitempty" label in "reform:" tag, it is not allowed`),
new(bogus.Bogus8): errors.New(`reform: Bogus8 has field Bogus with invalid "reform:" tag value, it is not allowed`),
new(bogus.Bogus9): errors.New(`reform: Bogus9 has field Bogus2 with "reform:" tag with duplicate column name bogus (used by Bogus1), it is not allowed`),
new(bogus.Bogus10): errors.New(`reform: Bogus10 has field Bogus2 with with duplicate "pk" label in "reform:" tag (first used by Bogus1), it is not allowed`),
new(bogus.Bogus11): errors.New(`reform: Bogus11 has slice field Bogus with with "pk" label in "reform:" tag, it is not allowed`),
// new(bogus.BogusIgnore): do not test,
} {
s, err := Object(obj, "", "bogus")
assert.Nil(t, s)
assert.Equal(t, msg, err)
}
}
func TestHelpersGood(t *testing.T) {
t.Parallel()
t.Run("person", func(t *testing.T) {
t.Parallel()
assert.Equal(t, strings.TrimSpace(`
parse.StructInfo{
Type: "Person",
SQLName: "people",
Fields: []parse.FieldInfo{
{Name: "ID", Type: "int32", Column: "id"},
{Name: "GroupID", Type: "*int32", Column: "group_id"},
{Name: "Name", Type: "string", Column: "name"},
{Name: "Email", Type: "*string", Column: "email"},
{Name: "CreatedAt", Type: "time.Time", Column: "created_at"},
{Name: "UpdatedAt", Type: "*time.Time", Column: "updated_at"},
},
PKFieldIndex: 0,
}`), person.GoString())
assert.Equal(t, []string{"id", "group_id", "name", "email", "created_at", "updated_at"}, person.Columns())
assert.Equal(t, strings.TrimSpace(`
[]string{
"id",
"group_id",
"name",
"email",
"created_at",
"updated_at",
}`), person.ColumnsGoString())
assert.True(t, person.IsTable())
assert.Equal(t, FieldInfo{Name: "ID", Type: "int32", Column: "id"}, person.PKField())
})
t.Run("project", func(t *testing.T) {
t.Parallel()
assert.Equal(t, strings.TrimSpace(`
parse.StructInfo{
Type: "Project",
SQLName: "projects",
Fields: []parse.FieldInfo{
{Name: "Name", Type: "string", Column: "name"},
{Name: "ID", Type: "string", Column: "id"},
{Name: "Start", Type: "time.Time", Column: "start"},
{Name: "End", Type: "*time.Time", Column: "end"},
},
PKFieldIndex: 1,
}`), project.GoString())
assert.Equal(t, []string{"name", "id", "start", "end"}, project.Columns())
assert.Equal(t, strings.TrimSpace(`
[]string{
"name",
"id",
"start",
"end",
}`), project.ColumnsGoString())
assert.True(t, project.IsTable())
assert.Equal(t, FieldInfo{Name: "ID", Type: "string", Column: "id"}, project.PKField())
})
t.Run("personProject", func(t *testing.T) {
t.Parallel()
assert.Equal(t, strings.TrimSpace(`
parse.StructInfo{
Type: "PersonProject",
SQLName: "person_project",
Fields: []parse.FieldInfo{
{Name: "PersonID", Type: "int32", Column: "person_id"},
{Name: "ProjectID", Type: "string", Column: "project_id"},
},
PKFieldIndex: -1,
}`), personProject.GoString())
assert.Equal(t, []string{"person_id", "project_id"}, personProject.Columns())
assert.Equal(t, strings.TrimSpace(`
[]string{
"person_id",
"project_id",
}`), personProject.ColumnsGoString())
assert.False(t, personProject.IsTable())
})
t.Run("idOnly", func(t *testing.T) {
t.Parallel()
assert.Equal(t, strings.TrimSpace(`
parse.StructInfo{
Type: "IDOnly",
SQLName: "id_only",
Fields: []parse.FieldInfo{
{Name: "ID", Type: "int32", Column: "id"},
},
PKFieldIndex: 0,
}`), idOnly.GoString())
assert.Equal(t, []string{"id"}, idOnly.Columns())
assert.Equal(t, strings.TrimSpace(`
[]string{
"id",
}`), idOnly.ColumnsGoString())
assert.True(t, idOnly.IsTable())
assert.Equal(t, FieldInfo{Name: "ID", Type: "int32", Column: "id"}, idOnly.PKField())
})
t.Run("constraints", func(t *testing.T) {
t.Parallel()
assert.Equal(t, strings.TrimSpace(`
parse.StructInfo{
Type: "Constraints",
SQLName: "constraints",
Fields: []parse.FieldInfo{
{Name: "I", Type: "int32", Column: "i"},
{Name: "ID", Type: "string", Column: "id"},
},
PKFieldIndex: 1,
}`), constraints.GoString())
assert.Equal(t, []string{"i", "id"}, constraints.Columns())
assert.Equal(t, strings.TrimSpace(`
[]string{
"i",
"id",
}`), constraints.ColumnsGoString())
assert.True(t, constraints.IsTable())
assert.Equal(t, FieldInfo{Name: "ID", Type: "string", Column: "id"}, constraints.PKField())
})
t.Run("compositePk", func(t *testing.T) {
t.Parallel()
assert.Equal(t, strings.TrimSpace(`
parse.StructInfo{
Type: "CompositePk",
SQLName: "composite_pk",
Fields: []parse.FieldInfo{
{Name: "I", Type: "int32", Column: "i"},
{Name: "Name", Type: "string", Column: "name"},
{Name: "J", Type: "string", Column: "j"},
},
PKFieldIndex: -1,
}`), compositePk.GoString())
assert.Equal(t, []string{"i", "name", "j"}, compositePk.Columns())
assert.Equal(t, strings.TrimSpace(`
[]string{
"i",
"name",
"j",
}`), compositePk.ColumnsGoString())
assert.False(t, compositePk.IsTable())
})
t.Run("legacyPerson", func(t *testing.T) {
t.Parallel()
assert.Equal(t, strings.TrimSpace(`
parse.StructInfo{
Type: "LegacyPerson",
SQLSchema: "legacy",
SQLName: "people",
Fields: []parse.FieldInfo{
{Name: "ID", Type: "int32", Column: "id"},
{Name: "Name", Type: "*string", Column: "name"},
},
PKFieldIndex: 0,
}`), legacyPerson.GoString())
assert.Equal(t, []string{"id", "name"}, legacyPerson.Columns())
assert.Equal(t, strings.TrimSpace(`
[]string{
"id",
"name",
}`), legacyPerson.ColumnsGoString())
assert.True(t, legacyPerson.IsTable())
assert.Equal(t, FieldInfo{Name: "ID", Type: "int32", Column: "id"}, legacyPerson.PKField())
})
}
func TestHelpersExtra(t *testing.T) {
t.Run("extra", func(t *testing.T) {
assert.Equal(t, strings.TrimSpace(`
parse.StructInfo{
Type: "Extra",
SQLName: "extra",
Fields: []parse.FieldInfo{
{Name: "ID", Type: "Integer", Column: "id"},
{Name: "Name", Type: "*String", Column: "name"},
{Name: "Byte", Type: "uint8", Column: "byte"},
{Name: "Uint8", Type: "uint8", Column: "uint8"},
{Name: "ByteP", Type: "*uint8", Column: "bytep"},
{Name: "Uint8P", Type: "*uint8", Column: "uint8p"},
{Name: "Bytes", Type: "[]uint8", Column: "bytes"},
{Name: "Uint8s", Type: "[]uint8", Column: "uint8s"},
{Name: "BytesA", Type: "[512]uint8", Column: "bytesa"},
{Name: "Uint8sA", Type: "[512]uint8", Column: "uint8sa"},
{Name: "BytesT", Type: "Bytes", Column: "bytest"},
{Name: "Uint8sT", Type: "Uint8s", Column: "uint8st"},
},
PKFieldIndex: 0,
}`), extra.GoString())
columns := []string{
"id", "name",
"byte", "uint8", "bytep", "uint8p", "bytes", "uint8s", "bytesa", "uint8sa", "bytest", "uint8st",
}
assert.Equal(t, columns, extra.Columns())
columnsS := strings.TrimSpace(`
[]string{
"id",
"name",
"byte",
"uint8",
"bytep",
"uint8p",
"bytes",
"uint8s",
"bytesa",
"uint8sa",
"bytest",
"uint8st",
}`)
assert.Equal(t, columnsS, extra.ColumnsGoString())
assert.True(t, extra.IsTable())
assert.Equal(t, FieldInfo{Name: "ID", Type: "Integer", Column: "id"}, extra.PKField())
})
t.Run("notExported", func(t *testing.T) {
assert.Equal(t, strings.TrimSpace(`
parse.StructInfo{
Type: "notExported",
SQLName: "not_exported",
Fields: []parse.FieldInfo{
{Name: "ID", Type: "string", Column: "id"},
},
PKFieldIndex: 0,
}`), notExported.GoString())
assert.Equal(t, []string{"id"}, notExported.Columns())
assert.Equal(t, strings.TrimSpace(`
[]string{
"id",
}`), notExported.ColumnsGoString())
assert.True(t, notExported.IsTable())
assert.Equal(t, FieldInfo{Name: "ID", Type: "string", Column: "id"}, notExported.PKField())
})
}
func TestAssertUpToDate(t *testing.T) {
AssertUpToDate(&person, new(models.Person))
func() {
defer func() {
expected := `reform:
Person struct information is not up-to-date.
Typically this means that Person type definition was changed, but 'reform' command / 'go generate' was not run.
`
assert.Equal(t, expected, recover())
}()
p := person
p.PKFieldIndex = 1
AssertUpToDate(&p, new(models.Person))
}()
}
```
|
```javascript
'use strict';
const stripAnsi = require('strip-ansi');
const ArrayPrompt = require('../types/array');
const utils = require('../utils');
class LikertScale extends ArrayPrompt {
constructor(options = {}) {
super(options);
this.widths = [].concat(options.messageWidth || 50);
this.align = [].concat(options.align || 'left');
this.linebreak = options.linebreak || false;
this.edgeLength = options.edgeLength || 3;
this.newline = options.newline || '\n ';
let start = options.startNumber || 1;
if (typeof this.scale === 'number') {
this.scaleKey = false;
this.scale = Array(this.scale).fill(0).map((v, i) => ({ name: i + start }));
}
}
async reset() {
this.tableized = false;
await super.reset();
return this.render();
}
tableize() {
if (this.tableized === true) return;
this.tableized = true;
let longest = 0;
for (let ch of this.choices) {
longest = Math.max(longest, ch.message.length);
ch.scaleIndex = ch.initial || 2;
ch.scale = [];
for (let i = 0; i < this.scale.length; i++) {
ch.scale.push({ index: i });
}
}
this.widths[0] = Math.min(this.widths[0], longest + 3);
}
async dispatch(s, key) {
if (this.multiple) {
return this[key.name] ? await this[key.name](s, key) : await super.dispatch(s, key);
}
this.alert();
}
heading(msg, item, i) {
return this.styles.strong(msg);
}
separator() {
return this.styles.muted(this.symbols.ellipsis);
}
right() {
let choice = this.focused;
if (choice.scaleIndex >= this.scale.length - 1) return this.alert();
choice.scaleIndex++;
return this.render();
}
left() {
let choice = this.focused;
if (choice.scaleIndex <= 0) return this.alert();
choice.scaleIndex--;
return this.render();
}
indent() {
return '';
}
format() {
if (this.state.submitted) {
let values = this.choices.map(ch => this.styles.info(ch.index));
return values.join(', ');
}
return '';
}
pointer() {
return '';
}
/**
* Render the scale "Key". Something like:
* @return {String}
*/
renderScaleKey() {
if (this.scaleKey === false) return '';
if (this.state.submitted) return '';
let scale = this.scale.map(item => ` ${item.name} - ${item.message}`);
let key = ['', ...scale].map(item => this.styles.muted(item));
return key.join('\n');
}
/**
* Render the heading row for the scale.
* @return {String}
*/
renderScaleHeading(max) {
let keys = this.scale.map(ele => ele.name);
if (typeof this.options.renderScaleHeading === 'function') {
keys = this.options.renderScaleHeading.call(this, max);
}
let diff = this.scaleLength - keys.join('').length;
let spacing = Math.round(diff / (keys.length - 1));
let names = keys.map(key => this.styles.strong(key));
let headings = names.join(' '.repeat(spacing));
let padding = ' '.repeat(this.widths[0]);
return this.margin[3] + padding + this.margin[1] + headings;
}
/**
* Render a scale indicator => or by default
*/
scaleIndicator(choice, item, i) {
if (typeof this.options.scaleIndicator === 'function') {
return this.options.scaleIndicator.call(this, choice, item, i);
}
let enabled = choice.scaleIndex === item.index;
if (item.disabled) return this.styles.hint(this.symbols.radio.disabled);
if (enabled) return this.styles.success(this.symbols.radio.on);
return this.symbols.radio.off;
}
/**
* Render the actual scale =>
*/
renderScale(choice, i) {
let scale = choice.scale.map(item => this.scaleIndicator(choice, item, i));
let padding = this.term === 'Hyper' ? '' : ' ';
return scale.join(padding + this.symbols.line.repeat(this.edgeLength));
}
/**
* Render a choice, including scale =>
* "The website is easy to navigate. "
*/
async renderChoice(choice, i) {
await this.onChoice(choice, i);
let focused = this.index === i;
let pointer = await this.pointer(choice, i);
let hint = await choice.hint;
if (hint && !utils.hasColor(hint)) {
hint = this.styles.muted(hint);
}
let pad = str => this.margin[3] + str.replace(/\s+$/, '').padEnd(this.widths[0], ' ');
let newline = this.newline;
let ind = this.indent(choice);
let message = await this.resolve(choice.message, this.state, choice, i);
let scale = await this.renderScale(choice, i);
let margin = this.margin[1] + this.margin[3];
this.scaleLength = stripAnsi(scale).length;
this.widths[0] = Math.min(this.widths[0], this.width - this.scaleLength - margin.length);
let msg = utils.wordWrap(message, { width: this.widths[0], newline });
let lines = msg.split('\n').map(line => pad(line) + this.margin[1]);
if (focused) {
scale = this.styles.info(scale);
lines = lines.map(line => this.styles.info(line));
}
lines[0] += scale;
if (this.linebreak) lines.push('');
return [ind + pointer, lines.join('\n')].filter(Boolean);
}
async renderChoices() {
if (this.state.submitted) return '';
this.tableize();
let choices = this.visible.map(async(ch, i) => await this.renderChoice(ch, i));
let visible = await Promise.all(choices);
let heading = await this.renderScaleHeading();
return this.margin[0] + [heading, ...visible.map(v => v.join(' '))].join('\n');
}
async render() {
let { submitted, size } = this.state;
let prefix = await this.prefix();
let separator = await this.separator();
let message = await this.message();
let prompt = '';
if (this.options.promptLine !== false) {
prompt = [prefix, message, separator, ''].join(' ');
this.state.prompt = prompt;
}
let header = await this.header();
let output = await this.format();
let key = await this.renderScaleKey();
let help = await this.error() || await this.hint();
let body = await this.renderChoices();
let footer = await this.footer();
let err = this.emptyError;
if (output) prompt += output;
if (help && !prompt.includes(help)) prompt += ' ' + help;
if (submitted && !output && !body.trim() && this.multiple && err != null) {
prompt += this.styles.danger(err);
}
this.clear(size);
this.write([header, prompt, key, body, footer].filter(Boolean).join('\n'));
if (!this.state.submitted) {
this.write(this.margin[2]);
}
this.restore();
}
submit() {
this.value = {};
for (let choice of this.choices) {
this.value[choice.name] = choice.scaleIndex;
}
return this.base.submit.call(this);
}
}
module.exports = LikertScale;
```
|
```objective-c
/* Interface between the opcode library and its callers.
This program is free software; you can redistribute it and/or modify
the Free Software Foundation; either version 3, or (at your option)
any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street - Fifth Floor,
Boston, MA 02110-1301, USA.
Written by Cygnus Support, 1993.
The opcode library (libopcodes.a) provides instruction decoders for
a large variety of instruction sets, callable with an identical
interface, for making instruction-processing programs more independent
of the instruction set being processed. */
#ifndef DIS_ASM_H
#define DIS_ASM_H
#ifdef __cplusplus
extern "C" {
#endif
#include <stdio.h>
#include "bfd.h"
typedef int (*fprintf_ftype) (void *, const char*, ...) ATTRIBUTE_FPTR_PRINTF_2;
enum dis_insn_type
{
dis_noninsn, /* Not a valid instruction. */
dis_nonbranch, /* Not a branch instruction. */
dis_branch, /* Unconditional branch. */
dis_condbranch, /* Conditional branch. */
dis_jsr, /* Jump to subroutine. */
dis_condjsr, /* Conditional jump to subroutine. */
dis_dref, /* Data reference instruction. */
dis_dref2 /* Two data references in instruction. */
};
/* This struct is passed into the instruction decoding routine,
and is passed back out into each callback. The various fields are used
for conveying information from your main routine into your callbacks,
for passing information into the instruction decoders (such as the
addresses of the callback functions), or for passing information
back from the instruction decoders to their callers.
It must be initialized before it is first passed; this can be done
by hand, or using one of the initialization macros below. */
typedef struct disassemble_info
{
fprintf_ftype fprintf_func;
void *stream;
void *application_data;
/* Target description. We could replace this with a pointer to the bfd,
but that would require one. There currently isn't any such requirement
so to avoid introducing one we record these explicitly. */
/* The bfd_flavour. This can be bfd_target_unknown_flavour. */
enum bfd_flavour flavour;
/* The bfd_arch value. */
enum bfd_architecture arch;
/* The bfd_mach value. */
unsigned long mach;
/* Endianness (for bi-endian cpus). Mono-endian cpus can ignore this. */
enum bfd_endian endian;
/* Endianness of code, for mixed-endian situations such as ARM BE8. */
enum bfd_endian endian_code;
/* An arch/mach-specific bitmask of selected instruction subsets, mainly
for processors with run-time-switchable instruction sets. The default,
zero, means that there is no constraint. CGEN-based opcodes ports
may use ISA_foo masks. */
void *insn_sets;
/* Some targets need information about the current section to accurately
display insns. If this is NULL, the target disassembler function
will have to make its best guess. */
asection *section;
/* An array of pointers to symbols either at the location being disassembled
or at the start of the function being disassembled. The array is sorted
so that the first symbol is intended to be the one used. The others are
present for any misc. purposes. This is not set reliably, but if it is
not NULL, it is correct. */
asymbol **symbols;
/* Number of symbols in array. */
int num_symbols;
/* Symbol table provided for targets that want to look at it. This is
used on Arm to find mapping symbols and determine Arm/Thumb code. */
asymbol **symtab;
int symtab_pos;
int symtab_size;
/* For use by the disassembler.
The top 16 bits are reserved for public use (and are documented here).
The bottom 16 bits are for the internal use of the disassembler. */
unsigned long flags;
/* Set if the disassembler has determined that there are one or more
relocations associated with the instruction being disassembled. */
#define INSN_HAS_RELOC (1 << 31)
/* Set if the user has requested the disassembly of data as well as code. */
#define DISASSEMBLE_DATA (1 << 30)
/* Set if the user has specifically set the machine type encoded in the
mach field of this structure. */
#define USER_SPECIFIED_MACHINE_TYPE (1 << 29)
/* Use internally by the target specific disassembly code. */
void *private_data;
/* Function used to get bytes to disassemble. MEMADDR is the
address of the stuff to be disassembled, MYADDR is the address to
put the bytes in, and LENGTH is the number of bytes to read.
INFO is a pointer to this struct.
Returns an errno value or 0 for success. */
int (*read_memory_func)
(bfd_vma memaddr, bfd_byte *myaddr, unsigned int length,
struct disassemble_info *dinfo);
/* Function which should be called if we get an error that we can't
recover from. STATUS is the errno value from read_memory_func and
MEMADDR is the address that we were trying to read. INFO is a
pointer to this struct. */
void (*memory_error_func)
(int status, bfd_vma memaddr, struct disassemble_info *dinfo);
/* Function called to print ADDR. */
void (*print_address_func)
(bfd_vma addr, struct disassemble_info *dinfo);
/* Function called to determine if there is a symbol at the given ADDR.
If there is, the function returns 1, otherwise it returns 0.
This is used by ports which support an overlay manager where
the overlay number is held in the top part of an address. In
some circumstances we want to include the overlay number in the
address, (normally because there is a symbol associated with
that address), but sometimes we want to mask out the overlay bits. */
int (* symbol_at_address_func)
(bfd_vma addr, struct disassemble_info *dinfo);
/* Function called to check if a SYMBOL is can be displayed to the user.
This is used by some ports that want to hide special symbols when
displaying debugging outout. */
bfd_boolean (* symbol_is_valid)
(asymbol *, struct disassemble_info *dinfo);
/* These are for buffer_read_memory. */
bfd_byte *buffer;
bfd_vma buffer_vma;
unsigned int buffer_length;
/* This variable may be set by the instruction decoder. It suggests
the number of bytes objdump should display on a single line. If
the instruction decoder sets this, it should always set it to
the same value in order to get reasonable looking output. */
int bytes_per_line;
/* The next two variables control the way objdump displays the raw data. */
/* For example, if bytes_per_line is 8 and bytes_per_chunk is 4, the */
/* output will look like this:
00: 00000000 00000000
with the chunks displayed according to "display_endian". */
int bytes_per_chunk;
enum bfd_endian display_endian;
/* Number of octets per incremented target address
Normally one, but some DSPs have byte sizes of 16 or 32 bits. */
unsigned int octets_per_byte;
/* The number of zeroes we want to see at the end of a section before we
start skipping them. */
unsigned int skip_zeroes;
/* The number of zeroes to skip at the end of a section. If the number
of zeroes at the end is between SKIP_ZEROES_AT_END and SKIP_ZEROES,
they will be disassembled. If there are fewer than
SKIP_ZEROES_AT_END, they will be skipped. This is a heuristic
attempt to avoid disassembling zeroes inserted by section
alignment. */
unsigned int skip_zeroes_at_end;
/* Whether the disassembler always needs the relocations. */
bfd_boolean disassembler_needs_relocs;
/* Results from instruction decoders. Not all decoders yet support
this information. This info is set each time an instruction is
decoded, and is only valid for the last such instruction.
To determine whether this decoder supports this information, set
insn_info_valid to 0, decode an instruction, then check it. */
char insn_info_valid; /* Branch info has been set. */
char branch_delay_insns; /* How many sequential insn's will run before
a branch takes effect. (0 = normal) */
char data_size; /* Size of data reference in insn, in bytes */
enum dis_insn_type insn_type; /* Type of instruction */
bfd_vma target; /* Target address of branch or dref, if known;
zero if unknown. */
bfd_vma target2; /* Second target address for dref2 */
/* Command line options specific to the target disassembler. */
char * disassembler_options;
/* If non-zero then try not disassemble beyond this address, even if
there are values left in the buffer. This address is the address
of the nearest symbol forwards from the start of the disassembly,
and it is assumed that it lies on the boundary between instructions.
If an instruction spans this address then this is an error in the
file being disassembled. */
bfd_vma stop_vma;
} disassemble_info;
/* Standard disassemblers. Disassemble one instruction at the given
target address. Return number of octets processed. */
typedef int (*disassembler_ftype) (bfd_vma, disassemble_info *);
extern int print_insn_aarch64 (bfd_vma, disassemble_info *);
extern int print_insn_alpha (bfd_vma, disassemble_info *);
extern int print_insn_avr (bfd_vma, disassemble_info *);
extern int print_insn_bfin (bfd_vma, disassemble_info *);
extern int print_insn_big_arm (bfd_vma, disassemble_info *);
extern int print_insn_big_mips (bfd_vma, disassemble_info *);
extern int print_insn_big_nios2 (bfd_vma, disassemble_info *);
extern int print_insn_big_powerpc (bfd_vma, disassemble_info *);
extern int print_insn_big_score (bfd_vma, disassemble_info *);
extern int print_insn_cr16 (bfd_vma, disassemble_info *);
extern int print_insn_crx (bfd_vma, disassemble_info *);
extern int print_insn_d10v (bfd_vma, disassemble_info *);
extern int print_insn_d30v (bfd_vma, disassemble_info *);
extern int print_insn_dlx (bfd_vma, disassemble_info *);
extern int print_insn_epiphany (bfd_vma, disassemble_info *);
extern int print_insn_fr30 (bfd_vma, disassemble_info *);
extern int print_insn_frv (bfd_vma, disassemble_info *);
extern int print_insn_ft32 (bfd_vma, disassemble_info *);
extern int print_insn_h8300 (bfd_vma, disassemble_info *);
extern int print_insn_h8300h (bfd_vma, disassemble_info *);
extern int print_insn_h8300s (bfd_vma, disassemble_info *);
extern int print_insn_h8500 (bfd_vma, disassemble_info *);
extern int print_insn_hppa (bfd_vma, disassemble_info *);
extern int print_insn_i370 (bfd_vma, disassemble_info *);
extern int print_insn_i386 (bfd_vma, disassemble_info *);
extern int print_insn_i386_att (bfd_vma, disassemble_info *);
extern int print_insn_i386_intel (bfd_vma, disassemble_info *);
extern int print_insn_i860 (bfd_vma, disassemble_info *);
extern int print_insn_i960 (bfd_vma, disassemble_info *);
extern int print_insn_ia64 (bfd_vma, disassemble_info *);
extern int print_insn_ip2k (bfd_vma, disassemble_info *);
extern int print_insn_iq2000 (bfd_vma, disassemble_info *);
extern int print_insn_little_arm (bfd_vma, disassemble_info *);
extern int print_insn_little_mips (bfd_vma, disassemble_info *);
extern int print_insn_little_nios2 (bfd_vma, disassemble_info *);
extern int print_insn_little_powerpc (bfd_vma, disassemble_info *);
extern int print_insn_little_score (bfd_vma, disassemble_info *);
extern int print_insn_lm32 (bfd_vma, disassemble_info *);
extern int print_insn_m32c (bfd_vma, disassemble_info *);
extern int print_insn_m32r (bfd_vma, disassemble_info *);
extern int print_insn_m68hc11 (bfd_vma, disassemble_info *);
extern int print_insn_m68hc12 (bfd_vma, disassemble_info *);
extern int print_insn_m9s12x (bfd_vma, disassemble_info *);
extern int print_insn_m9s12xg (bfd_vma, disassemble_info *);
extern int print_insn_m68k (bfd_vma, disassemble_info *);
extern int print_insn_m88k (bfd_vma, disassemble_info *);
extern int print_insn_mcore (bfd_vma, disassemble_info *);
extern int print_insn_mep (bfd_vma, disassemble_info *);
extern int print_insn_metag (bfd_vma, disassemble_info *);
extern int print_insn_microblaze (bfd_vma, disassemble_info *);
extern int print_insn_mmix (bfd_vma, disassemble_info *);
extern int print_insn_mn10200 (bfd_vma, disassemble_info *);
extern int print_insn_mn10300 (bfd_vma, disassemble_info *);
extern int print_insn_moxie (bfd_vma, disassemble_info *);
extern int print_insn_msp430 (bfd_vma, disassemble_info *);
extern int print_insn_mt (bfd_vma, disassemble_info *);
extern int print_insn_nds32 (bfd_vma, disassemble_info *);
extern int print_insn_ns32k (bfd_vma, disassemble_info *);
extern int print_insn_or1k (bfd_vma, disassemble_info *);
extern int print_insn_pdp11 (bfd_vma, disassemble_info *);
extern int print_insn_pj (bfd_vma, disassemble_info *);
extern int print_insn_rs6000 (bfd_vma, disassemble_info *);
extern int print_insn_s390 (bfd_vma, disassemble_info *);
extern int print_insn_sh (bfd_vma, disassemble_info *);
extern int print_insn_sh64 (bfd_vma, disassemble_info *);
extern int print_insn_sh64x_media (bfd_vma, disassemble_info *);
extern int print_insn_sparc (bfd_vma, disassemble_info *);
extern int print_insn_spu (bfd_vma, disassemble_info *);
extern int print_insn_tic30 (bfd_vma, disassemble_info *);
extern int print_insn_tic4x (bfd_vma, disassemble_info *);
extern int print_insn_tic54x (bfd_vma, disassemble_info *);
extern int print_insn_tic6x (bfd_vma, disassemble_info *);
extern int print_insn_tic80 (bfd_vma, disassemble_info *);
extern int print_insn_tilegx (bfd_vma, disassemble_info *);
extern int print_insn_tilepro (bfd_vma, disassemble_info *);
extern int print_insn_v850 (bfd_vma, disassemble_info *);
extern int print_insn_vax (bfd_vma, disassemble_info *);
extern int print_insn_visium (bfd_vma, disassemble_info *);
extern int print_insn_w65 (bfd_vma, disassemble_info *);
extern int print_insn_xc16x (bfd_vma, disassemble_info *);
extern int print_insn_xgate (bfd_vma, disassemble_info *);
extern int print_insn_xstormy16 (bfd_vma, disassemble_info *);
extern int print_insn_xtensa (bfd_vma, disassemble_info *);
extern int print_insn_z80 (bfd_vma, disassemble_info *);
extern int print_insn_z8001 (bfd_vma, disassemble_info *);
extern int print_insn_z8002 (bfd_vma, disassemble_info *);
extern int print_insn_rx (bfd_vma, disassemble_info *);
extern int print_insn_rl78 (bfd_vma, disassemble_info *);
extern int print_insn_rl78_g10 (bfd_vma, disassemble_info *);
extern int print_insn_rl78_g13 (bfd_vma, disassemble_info *);
extern int print_insn_rl78_g14 (bfd_vma, disassemble_info *);
extern disassembler_ftype arc_get_disassembler (bfd *);
extern disassembler_ftype cris_get_disassembler (bfd *);
extern disassembler_ftype rl78_get_disassembler (bfd *);
extern void print_aarch64_disassembler_options (FILE *);
extern void print_i386_disassembler_options (FILE *);
extern void print_mips_disassembler_options (FILE *);
extern void print_ppc_disassembler_options (FILE *);
extern void print_arm_disassembler_options (FILE *);
extern void parse_arm_disassembler_option (char *);
extern void print_s390_disassembler_options (FILE *);
extern int get_arm_regname_num_options (void);
extern int set_arm_regname_option (int);
extern int get_arm_regnames (int, const char **, const char **, const char *const **);
extern bfd_boolean aarch64_symbol_is_valid (asymbol *, struct disassemble_info *);
extern bfd_boolean arm_symbol_is_valid (asymbol *, struct disassemble_info *);
extern void disassemble_init_powerpc (struct disassemble_info *);
/* Fetch the disassembler for a given BFD, if that support is available. */
extern disassembler_ftype disassembler (bfd *);
/* Amend the disassemble_info structure as necessary for the target architecture.
Should only be called after initialising the info->arch field. */
extern void disassemble_init_for_target (struct disassemble_info * dinfo);
/* Document any target specific options available from the disassembler. */
extern void disassembler_usage (FILE *);
/* This block of definitions is for particular callers who read instructions
into a buffer before calling the instruction decoder. */
/* Here is a function which callers may wish to use for read_memory_func.
It gets bytes from a buffer. */
extern int buffer_read_memory
(bfd_vma, bfd_byte *, unsigned int, struct disassemble_info *);
/* This function goes with buffer_read_memory.
It prints a message using info->fprintf_func and info->stream. */
extern void perror_memory (int, bfd_vma, struct disassemble_info *);
/* Just print the address in hex. This is included for completeness even
though both GDB and objdump provide their own (to print symbolic
addresses). */
extern void generic_print_address
(bfd_vma, struct disassemble_info *);
/* Always true. */
extern int generic_symbol_at_address
(bfd_vma, struct disassemble_info *);
/* Also always true. */
extern bfd_boolean generic_symbol_is_valid
(asymbol *, struct disassemble_info *);
/* Method to initialize a disassemble_info struct. This should be
called by all applications creating such a struct. */
extern void init_disassemble_info (struct disassemble_info *dinfo, void *stream,
fprintf_ftype fprintf_func);
/* For compatibility with existing code. */
#define INIT_DISASSEMBLE_INFO(INFO, STREAM, FPRINTF_FUNC) \
init_disassemble_info (&(INFO), (STREAM), (fprintf_ftype) (FPRINTF_FUNC))
#define INIT_DISASSEMBLE_INFO_NO_ARCH(INFO, STREAM, FPRINTF_FUNC) \
init_disassemble_info (&(INFO), (STREAM), (fprintf_ftype) (FPRINTF_FUNC))
#ifdef __cplusplus
}
#endif
#endif /* ! defined (DIS_ASM_H) */
```
|
Debby Susanto (born 3 May 1989) is an Indonesian former badminton player who specializes in doubles. She joined PB Djarum, a badminton club in Kudus, Central Java from 2006 until her retirement. Susanto known as Muhammad Rijal's longtime partner in the mixed doubles. The partnership ended in the end of the 2013 shortly after they won gold medal in 2013 SEA Games in Myanmar due to Rijal's resignation from national team.
Since the beginning of 2014, she is pairing fellow Indonesian Praveen Jordan who was called up to the national team. The duo won the oldest badminton tournament All England Open in 2016, and also the gold medal at the 2015 SEA Games.
Awards and nominations
Achievements
Asian Games
Mixed doubles
SEA Games
Mixed doubles
World Junior Championships
Mixed doubles
Asian Junior Championships
Girls' doubles
BWF Superseries (2 titles, 3 runners-up)
The BWF Superseries, which was launched on 14 December 2006 and implemented in 2007, was a series of elite badminton tournaments, sanctioned by the Badminton World Federation (BWF). BWF Superseries levels were Superseries and Superseries Premier. A season of Superseries consisted of twelve tournaments around the world that had been introduced since 2011. Successful players were invited to the Superseries Finals, which were held at the end of each year.
Mixed doubles
BWF Superseries Finals tournament
BWF Superseries Premier tournament
BWF Superseries tournament
BWF Grand Prix (2 titles, 9 runners-up)
The BWF Grand Prix had two levels, the Grand Prix and Grand Prix Gold. It was a series of badminton tournaments sanctioned by the Badminton World Federation (BWF) and played between 2007 and 2017.
Mixed doubles
BWF Grand Prix Gold tournament
BWF Grand Prix tournament
BWF International Challenge/Series (1 title)
Women's doubles
BWF International Challenge tournament
BWF International Series tournament
Performance timeline
National team
Junior level
Senior level
Individual competitions
Junior level
Senior level
Record against selected opponents
Mixed doubles results against World Superseries finalists, World Superseries Finals finalists, World Championships semifinalists, and Olympic quarterfinalists paired with:
Praveen Jordan
Liu Cheng & Bao Yixin 3–2
Lu Kai & Huang Yaqiong 2–2
Xu Chen & Ma Jin 2–2
Zhang Nan & Li Yinhui 1–0
Zhang Nan & Zhao Yunlei 1–8
Zheng Siwei & Chen Qingchen 0–6
Joachim Fischer Nielsen & Christinna Pedersen 6–6
Chris Adcock & Gabby Adcock 0–5
Lee Chun Hei & Chau Hoi Wah 5–4
Riky Widianto & Richi Puspita Dili 2–0
Tontowi Ahmad & Liliyana Natsir 1–4
Kenta Kazuno & Ayane Kurihara 2–0
Ko Sung-hyun & Kim Ha-na 4–4
Yoo Yeon-seong & Chang Ye-na 1–0
Chan Peng Soon & Goh Liu Ying 1–1
Robert Mateusiak & Nadieżda Zięba 0–1
Muhammad Rijal
Qiu Zihan & Bao Yixin 0–1
Tao Jiaming & Tian Qing 0–2
Xu Chen & Ma Jin 1–2
Zhang Nan & Zhao Yunlei 0–7
Chen Hung-ling & Cheng Wen-hsing 1–2
Joachim Fischer Nielsen & Christinna Pedersen 1–2
Thomas Laybourn & Kamilla Rytter Juhl 0–1
Nathan Robertson & Jenny Wallwork 1–1
Michael Fuchs & Birgit Michels 2–1
Lee Chun Hei & Chau Hoi Wah 1–0
Fran Kurniawan & Pia Zebadiah Bernadet 0–2
Hendra Aprida Gunawan & Vita Marissa 0–1
Hendra Setiawan & Anastasia Russkikh 0–1
Riky Widianto & Richi Puspita Dili 2–0
Tontowi Ahmad & Liliyana Natsir 0–3
Ko Sung-hyun & Eom Hye-won 0–1
Ko Sung-hyun & Ha Jung-eun 0–1
Lee Yong-dae & Lee Hyo-jung 0–1
Shin Baek-cheol & Eom Hye-won 0–1
Yoo Yeon-seong & Chang Ye-na 0–2
Chan Peng Soon & Goh Liu Ying 3–2
Robert Mateusiak & Nadieżda Zięba 0–1
Songphon Anugritayawon & Kunchala Voravichitchaikul 3–0
Sudket Prapakamol & Saralee Thungthongkam 0–2
References
External links
1989 births
Living people
People from Palembang
Sportspeople from South Sumatra
Indonesian people of Chinese descent
Indonesian female badminton players
Badminton players at the 2016 Summer Olympics
Olympic badminton players for Indonesia
Badminton players at the 2014 Asian Games
Badminton players at the 2018 Asian Games
Asian Games bronze medalists for Indonesia
Asian Games medalists in badminton
Medalists at the 2014 Asian Games
Medalists at the 2018 Asian Games
Competitors at the 2011 SEA Games
Competitors at the 2013 SEA Games
Competitors at the 2015 SEA Games
SEA Games gold medalists for Indonesia
SEA Games silver medalists for Indonesia
SEA Games bronze medalists for Indonesia
SEA Games medalists in badminton
|
```c++
// Boost.Geometry (aka GGL, Generic Geometry Library)
// This file was modified by Oracle on 2014, 2015, 2017.
// Modifications copyright (c) 2014-2017 Oracle and/or its affiliates.
// Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle
// Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
// path_to_url
#include "test_overlaps.hpp"
template <typename P>
void test_pp()
{
typedef bg::model::multi_point<P> mpt;
test_geometry<P, P>("POINT(0 0)", "POINT(0 0)", false);
test_geometry<P, P>("POINT(0 0)", "POINT(1 1)", false);
test_geometry<P, mpt>("POINT(0 0)", "MULTIPOINT(0 0, 1 1)", false);
test_geometry<mpt, P>("MULTIPOINT(0 0, 1 1)", "POINT(0 0)", false);
test_geometry<mpt, mpt>("MULTIPOINT(0 0,1 1,2 2)", "MULTIPOINT(1 1,3 3,4 4)", true);
test_geometry<mpt, mpt>("MULTIPOINT(0 0,1 1,2 2)", "MULTIPOINT(1 1,2 2)", false);
}
template <typename P>
void test_ll()
{
typedef bg::model::linestring<P> ls;
typedef bg::model::multi_linestring<ls> mls;
test_geometry<ls, ls>("LINESTRING(0 0,2 2,3 1)", "LINESTRING(1 1,2 2,4 4)", true);
test_geometry<ls, ls>("LINESTRING(0 0,2 2,4 0)", "LINESTRING(0 1,2 1,3 2)", false);
test_geometry<ls, mls>("LINESTRING(0 0,2 2,3 1)", "MULTILINESTRING((1 1,2 2),(2 2,4 4))", true);
test_geometry<ls, mls>("LINESTRING(0 0,2 2,3 1)", "MULTILINESTRING((1 1,2 2),(3 3,4 4))", true);
test_geometry<ls, mls>("LINESTRING(0 0,3 3,3 1)", "MULTILINESTRING((3 3,2 2),(0 0,1 1))", false);
}
template <typename P>
void test_2d()
{
test_pp<P>();
test_ll<P>();
}
int test_main( int , char* [] )
{
test_2d<bg::model::d2::point_xy<int> >();
test_2d<bg::model::d2::point_xy<double> >();
#if defined(HAVE_TTMATH)
test_2d<bg::model::d2::point_xy<ttmath_big> >();
#endif
return 0;
}
```
|
```c
/*
*
*/
#define DT_DRV_COMPAT ams_iaqcore
#include <zephyr/device.h>
#include <zephyr/drivers/i2c.h>
#include <zephyr/kernel.h>
#include <zephyr/sys/byteorder.h>
#include <zephyr/sys/util.h>
#include <zephyr/drivers/sensor.h>
#include <zephyr/sys/__assert.h>
#include <zephyr/logging/log.h>
#include "iAQcore.h"
LOG_MODULE_REGISTER(IAQ_CORE, CONFIG_SENSOR_LOG_LEVEL);
static int iaqcore_sample_fetch(const struct device *dev,
enum sensor_channel chan)
{
struct iaq_core_data *drv_data = dev->data;
const struct iaq_core_config *config = dev->config;
struct iaq_registers buf;
struct i2c_msg msg;
int ret, tries;
__ASSERT_NO_MSG(chan == SENSOR_CHAN_ALL);
msg.buf = (uint8_t *)&buf;
msg.len = sizeof(struct iaq_registers);
msg.flags = I2C_MSG_READ | I2C_MSG_STOP;
for (tries = 0; tries < CONFIG_IAQ_CORE_MAX_READ_RETRIES; tries++) {
ret = i2c_transfer_dt(&config->i2c, &msg, 1);
if (ret < 0) {
LOG_ERR("Failed to read registers data [%d].", ret);
return -EIO;
}
drv_data->status = buf.status;
if (buf.status == 0x00) {
drv_data->co2 = sys_be16_to_cpu(buf.co2_pred);
drv_data->voc = sys_be16_to_cpu(buf.voc);
drv_data->status = buf.status;
drv_data->resistance = sys_be32_to_cpu(buf.resistance);
return 0;
}
k_sleep(K_MSEC(100));
}
if (drv_data->status == 0x01) {
LOG_INF("Sensor data not available");
}
if (drv_data->status == 0x80) {
LOG_ERR("Sensor Error");
}
return -EIO;
}
static int iaqcore_channel_get(const struct device *dev,
enum sensor_channel chan,
struct sensor_value *val)
{
struct iaq_core_data *drv_data = dev->data;
switch (chan) {
case SENSOR_CHAN_CO2:
val->val1 = drv_data->co2;
val->val2 = 0;
break;
case SENSOR_CHAN_VOC:
val->val1 = drv_data->voc;
val->val2 = 0;
break;
case SENSOR_CHAN_RESISTANCE:
val->val1 = drv_data->resistance;
val->val2 = 0;
break;
default:
return -ENOTSUP;
}
return 0;
}
static const struct sensor_driver_api iaq_core_driver_api = {
.sample_fetch = iaqcore_sample_fetch,
.channel_get = iaqcore_channel_get,
};
static int iaq_core_init(const struct device *dev)
{
const struct iaq_core_config *config = dev->config;
if (!device_is_ready(config->i2c.bus)) {
LOG_ERR("Bus device is not ready");
return -ENODEV;
}
return 0;
}
#define IAQ_CORE_DEFINE(inst) \
static struct iaq_core_data iaq_core_data_##inst; \
\
static const struct iaq_core_config iaq_core_config_##inst = { \
.i2c = I2C_DT_SPEC_INST_GET(inst), \
}; \
\
SENSOR_DEVICE_DT_INST_DEFINE(inst, iaq_core_init, NULL, &iaq_core_data_##inst, \
&iaq_core_config_##inst, POST_KERNEL, \
CONFIG_SENSOR_INIT_PRIORITY, &iaq_core_driver_api); \
DT_INST_FOREACH_STATUS_OKAY(IAQ_CORE_DEFINE)
```
|
```kotlin
/*
* that can be found in the LICENSE file.
*/
import org.jetbrains.kotlin.PlatformInfo
import org.jetbrains.kotlin.getCompileOnlyBenchmarksOpts
import org.jetbrains.kotlin.getNativeProgramExtension
import org.jetbrains.kotlin.mingwPath
plugins {
id("compile-benchmarking")
}
val dist = file(findProperty("kotlin.native.home") ?: "dist")
val toolSuffix = if (System.getProperty("os.name").startsWith("Windows")) ".bat" else ""
val binarySuffix = getNativeProgramExtension()
val linkerOpts = when {
PlatformInfo.isMac() -> listOf("-linker-options","-L/opt/local/lib", "-linker-options", "-L/usr/local/lib")
PlatformInfo.isLinux() -> listOf("-linker-options", "-L/usr/lib/x86_64-linux-gnu", "-linker-options", "-L/usr/lib64")
PlatformInfo.isWindows() -> listOf("-linker-options", "-L$mingwPath/lib")
else -> error("Unsupported platform")
}
var includeDirsFfmpeg = emptyList<String>()
var filterDirsFfmpeg = emptyList<String>()
when {
PlatformInfo.isMac() -> filterDirsFfmpeg = listOf(
"-headerFilterAdditionalSearchPrefix", "/opt/local/include",
"-headerFilterAdditionalSearchPrefix", "/usr/local/include"
)
PlatformInfo.isLinux() -> filterDirsFfmpeg = listOf(
"-headerFilterAdditionalSearchPrefix", "/usr/include",
"-headerFilterAdditionalSearchPrefix", "/usr/include/x86_64-linux-gnu",
"-headerFilterAdditionalSearchPrefix", "/usr/include/ffmpeg"
)
PlatformInfo.isWindows() -> includeDirsFfmpeg = listOf("-compiler-option", "-I$mingwPath/include")
}
var includeDirsSdl = when {
PlatformInfo.isMac() -> listOf(
"-compiler-option", "-I/opt/local/include/SDL2",
"-compiler-option", "-I/usr/local/include/SDL2"
)
PlatformInfo.isLinux() -> listOf("-compiler-option", "-I/usr/include/SDL2")
PlatformInfo.isWindows() -> listOf("-compiler-option", "-I$mingwPath/include/SDL2")
else -> error("Unsupported platform")
}
val defaultCompilerOpts = listOf("-g")
val buildOpts = getCompileOnlyBenchmarksOpts(project, defaultCompilerOpts)
compileBenchmark {
applicationName = "Videoplayer"
repeatNumber = 10
compilerOpts = buildOpts
buildSteps {
step("runCinteropFfmpeg") {
command = listOf(
"$dist/bin/cinterop$toolSuffix",
"-o", "$dist/../samples/videoplayer/build/classes/kotlin/videoPlayer/main/videoplayer-cinterop-ffmpeg.klib",
"-def", "$dist/../samples/videoplayer/src/nativeInterop/cinterop/ffmpeg.def"
) + filterDirsFfmpeg + includeDirsFfmpeg
}
step("runCinteropSdl") {
command = listOf(
"$dist/bin/cinterop$toolSuffix",
"-o", "$dist/../samples/videoplayer/build/classes/kotlin/videoPlayer/main/videoplayer-cinterop-sdl.klib",
"-def", "$dist/../samples/videoplayer/src/nativeInterop/cinterop/sdl.def"
) + includeDirsSdl
}
step("runKonanProgram") {
command = listOf(
"$dist/bin/konanc$toolSuffix",
"-ea", "-p", "program",
"-o", "${buildDir.absolutePath}/program$binarySuffix",
"-l", "$dist/../samples/videoplayer/build/classes/kotlin/videoPlayer/main/videoplayer-cinterop-ffmpeg.klib",
"-l", "$dist/../samples/videoplayer/build/classes/kotlin/videoPlayer/main/videoplayer-cinterop-sdl.klib",
"-Xmulti-platform", "$dist/../samples/videoplayer/src/videoPlayerMain/kotlin",
"-entry", "sample.videoplayer.main"
) + buildOpts + linkerOpts
}
}
}
```
|
The R. H. Stearns Building is an 11-story residence building (with shops at ground level) at 140 Tremont Street in Boston. It was built in 1909 for the businessman R. H. Stearns and his company and was the home of the R. H. Stearns and Company department store until the company's demise in 1978.
The Stearns store had been in many locations in Boston before finally settling in its new building and headquarters at 140 Tremont Street.
Since 1886 Stearns & Co. occupied and leased a re-modeled building on the site of the old Boston Masonic Temple, until it was completely torn down and the new R. H. Stearns building put up in 1908.
R. H. Stearns & Company ceased operations in 1978, and the building was converted to 140 studio and one-bedroom apartments for older adults and people with disabilities. The building was added to the National Register of Historic Places as R. H. Stearns House in 1980.
See also
National Register of Historic Places listings in northern Boston, Massachusetts
References
Images
External links
Residential buildings on the National Register of Historic Places in Massachusetts
Beaux-Arts architecture in Massachusetts
Residential buildings completed in 1909
Financial District, Boston
Buildings and structures in Boston
National Register of Historic Places in Boston
|
```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 io.camunda.zeebe.client.impl.search.query;
import static io.camunda.zeebe.client.api.search.SearchRequestBuilders.processInstanceFilter;
import static io.camunda.zeebe.client.api.search.SearchRequestBuilders.processInstanceSort;
import static io.camunda.zeebe.client.api.search.SearchRequestBuilders.searchRequestPage;
import io.camunda.zeebe.client.api.JsonMapper;
import io.camunda.zeebe.client.api.ZeebeFuture;
import io.camunda.zeebe.client.api.search.SearchRequestPage;
import io.camunda.zeebe.client.api.search.filter.ProcessInstanceFilter;
import io.camunda.zeebe.client.api.search.query.FinalSearchQueryStep;
import io.camunda.zeebe.client.api.search.query.ProcessInstanceQuery;
import io.camunda.zeebe.client.api.search.response.ProcessInstance;
import io.camunda.zeebe.client.api.search.response.SearchQueryResponse;
import io.camunda.zeebe.client.api.search.sort.ProcessInstanceSort;
import io.camunda.zeebe.client.impl.http.HttpClient;
import io.camunda.zeebe.client.impl.http.HttpZeebeFuture;
import io.camunda.zeebe.client.impl.search.SearchResponseMapper;
import io.camunda.zeebe.client.impl.search.TypedSearchRequestPropertyProvider;
import io.camunda.zeebe.client.protocol.rest.ProcessInstanceFilterRequest;
import io.camunda.zeebe.client.protocol.rest.ProcessInstanceSearchQueryRequest;
import io.camunda.zeebe.client.protocol.rest.ProcessInstanceSearchQueryResponse;
import io.camunda.zeebe.client.protocol.rest.SearchQueryPageRequest;
import io.camunda.zeebe.client.protocol.rest.SearchQuerySortRequest;
import java.time.Duration;
import java.util.List;
import java.util.concurrent.TimeUnit;
import java.util.function.Consumer;
import org.apache.hc.client5.http.config.RequestConfig;
public class ProcessInstanceQueryImpl
extends TypedSearchRequestPropertyProvider<ProcessInstanceSearchQueryRequest>
implements ProcessInstanceQuery {
private final ProcessInstanceSearchQueryRequest request;
private final JsonMapper jsonMapper;
private final HttpClient httpClient;
private final RequestConfig.Builder httpRequestConfig;
public ProcessInstanceQueryImpl(final HttpClient httpClient, final JsonMapper jsonMapper) {
request = new ProcessInstanceSearchQueryRequest();
this.jsonMapper = jsonMapper;
this.httpClient = httpClient;
httpRequestConfig = httpClient.newRequestConfig();
}
@Override
public ProcessInstanceQuery filter(final ProcessInstanceFilter value) {
final ProcessInstanceFilterRequest filter = provideSearchRequestProperty(value);
request.setFilter(filter);
return this;
}
@Override
public ProcessInstanceQuery filter(final Consumer<ProcessInstanceFilter> fn) {
return filter(processInstanceFilter(fn));
}
@Override
public ProcessInstanceQuery sort(final ProcessInstanceSort value) {
final List<SearchQuerySortRequest> sorting = provideSearchRequestProperty(value);
request.setSort(sorting);
return this;
}
@Override
public ProcessInstanceQuery sort(final Consumer<ProcessInstanceSort> fn) {
return sort(processInstanceSort(fn));
}
@Override
public ProcessInstanceQuery page(final SearchRequestPage value) {
final SearchQueryPageRequest page = provideSearchRequestProperty(value);
request.setPage(page);
return this;
}
@Override
public ProcessInstanceQuery page(final Consumer<SearchRequestPage> fn) {
return page(searchRequestPage(fn));
}
@Override
protected ProcessInstanceSearchQueryRequest getSearchRequestProperty() {
return request;
}
@Override
public FinalSearchQueryStep<ProcessInstance> requestTimeout(final Duration requestTimeout) {
httpRequestConfig.setResponseTimeout(requestTimeout.toMillis(), TimeUnit.MILLISECONDS);
return this;
}
@Override
public ZeebeFuture<SearchQueryResponse<ProcessInstance>> send() {
final HttpZeebeFuture<SearchQueryResponse<ProcessInstance>> result = new HttpZeebeFuture<>();
httpClient.post(
"/process-instances/search",
jsonMapper.toJson(request),
httpRequestConfig.build(),
ProcessInstanceSearchQueryResponse.class,
SearchResponseMapper::toProcessInstanceSearchResponse,
result);
return result;
}
}
```
|
```objective-c
/*
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* * Redistributions in binary form must reproduce the above
* copyright notice, this list of conditions and the following disclaimer
* in the documentation and/or other materials provided with the
* distribution.
* * Neither the name of 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.
*/
#ifndef SaturatedArithmetic_h
#define SaturatedArithmetic_h
#include "wtf/CPU.h"
#include <limits>
#include <stdint.h>
#if CPU(ARM) && COMPILER(GCC) && __OPTIMIZE__
// If we're building ARM on GCC we replace the C++ versions with some
// native ARM assembly for speed.
#include "wtf/asm/SaturatedArithmeticARM.h"
#else
ALWAYS_INLINE int32_t saturatedAddition(int32_t a, int32_t b)
{
uint32_t ua = a;
uint32_t ub = b;
uint32_t result = ua + ub;
// Can only overflow if the signed bit of the two values match. If the
// signed bit of the result and one of the values differ it overflowed.
if (~(ua ^ ub) & (result ^ ua) & (1 << 31))
return std::numeric_limits<int>::max() + (ua >> 31);
return result;
}
ALWAYS_INLINE int32_t saturatedSubtraction(int32_t a, int32_t b)
{
uint32_t ua = a;
uint32_t ub = b;
uint32_t result = ua - ub;
// Can only overflow if the signed bit of the two input values differ. If
// the signed bit of the result and the first value differ it overflowed.
if ((ua ^ ub) & (result ^ ua) & (1 << 31))
return std::numeric_limits<int>::max() + (ua >> 31);
return result;
}
inline int getMaxSaturatedSetResultForTesting(int FractionalShift)
{
// For C version the set function maxes out to max int, this differs from
// the ARM asm version, see SaturatedArithmetiARM.h for the equivalent asm
// version.
return std::numeric_limits<int>::max();
}
inline int getMinSaturatedSetResultForTesting(int FractionalShift)
{
return std::numeric_limits<int>::min();
}
ALWAYS_INLINE int saturatedSet(int value, int FractionalShift)
{
const int intMaxForLayoutUnit =
std::numeric_limits<int>::max() >> FractionalShift;
const int intMinForLayoutUnit =
std::numeric_limits<int>::min() >> FractionalShift;
if (value > intMaxForLayoutUnit)
return std::numeric_limits<int>::max();
if (value < intMinForLayoutUnit)
return std::numeric_limits<int>::min();
return value << FractionalShift;
}
ALWAYS_INLINE int saturatedSet(unsigned value, int FractionalShift)
{
const unsigned intMaxForLayoutUnit =
std::numeric_limits<int>::max() >> FractionalShift;
if (value >= intMaxForLayoutUnit)
return std::numeric_limits<int>::max();
return value << FractionalShift;
}
#endif // CPU(ARM) && COMPILER(GCC)
#endif // SaturatedArithmetic_h
```
|
Cedar Township is a civil township of Osceola County in the U.S. state of Michigan. The population was 406 at the 2000 census.
History
Cedar Township was established in 1871.
Geography
According to the United States Census Bureau, the township has a total area of , of which is land and (1.57%) is water.
Demographics
As of the census of 2000, there were 406 people, 147 households, and 114 families residing in the township. The population density was . There were 335 housing units at an average density of . The racial makeup of the township was 97.29% White, 1.23% Native American, 0.25% Asian, 0.25% from other races, and 0.99% from two or more races. Hispanic or Latino of any race were 1.48% of the population.
There were 147 households, out of which 31.3% had children under the age of 18 living with them, 70.1% were married couples living together, 4.1% had a female householder with no husband present, and 22.4% were non-families. 15.0% of all households were made up of individuals, and 8.8% had someone living alone who was 65 years of age or older. The average household size was 2.72 and the average family size was 3.08.
In the township the population was spread out, with 27.8% under the age of 18, 4.2% from 18 to 24, 23.4% from 25 to 44, 26.8% from 45 to 64, and 17.7% who were 65 years of age or older. The median age was 40 years. For every 100 females, there were 104.0 males. For every 100 females age 18 and over, there were 106.3 males.
The median income for a household in the township was $38,500, and the median income for a family was $39,583. Males had a median income of $30,795 versus $23,750 for females. The per capita income for the township was $16,618. About 2.7% of families and 2.2% of the population were below the poverty line, including none of those under age 18 and 2.8% of those age 65 or over.
References
Notes
Sources
Townships in Osceola County, Michigan
1871 establishments in Michigan
Townships in Michigan
|
```objective-c
/* Public domain. */
#ifndef _LINUX_LLIST_H
#define _LINUX_LLIST_H
#include <sys/atomic.h>
struct llist_node {
struct llist_node *next;
};
struct llist_head {
struct llist_node *first;
};
#define llist_entry(ptr, type, member) container_of(ptr, type, member)
static inline struct llist_node *
llist_del_all(struct llist_head *head)
{
return atomic_swap_ptr(&head->first, NULL);
}
static inline struct llist_node *
llist_del_first(struct llist_head *head)
{
struct llist_node *first, *next;
do {
first = head->first;
if (first == NULL)
return NULL;
next = first->next;
} while (atomic_cas_ptr(&head->first, first, next) != first);
return first;
}
static inline bool
llist_add(struct llist_node *new, struct llist_head *head)
{
struct llist_node *first;
do {
new->next = first = head->first;
} while (atomic_cas_ptr(&head->first, first, new) != first);
return (first == NULL);
}
static inline bool
llist_add_batch(struct llist_node *new_first, struct llist_node *new_last,
struct llist_head *head)
{
struct llist_node *first;
do {
new_last->next = first = head->first;
} while (atomic_cas_ptr(&head->first, first, new_first) != first);
return (first == NULL);
}
static inline void
init_llist_head(struct llist_head *head)
{
head->first = NULL;
}
static inline bool
llist_empty(struct llist_head *head)
{
return (head->first == NULL);
}
#define llist_for_each_safe(pos, n, node) \
for ((pos) = (node); \
(pos) != NULL && \
((n) = (pos)->next, pos); \
(pos) = (n))
#define llist_for_each_entry_safe(pos, n, node, member) \
for (pos = llist_entry((node), __typeof(*pos), member); \
((char *)(pos) + offsetof(typeof(*(pos)), member)) != NULL && \
(n = llist_entry(pos->member.next, __typeof(*pos), member), pos); \
pos = n)
#define llist_for_each_entry(pos, node, member) \
for ((pos) = llist_entry((node), __typeof(*(pos)), member); \
((char *)(pos) + offsetof(typeof(*(pos)), member)) != NULL; \
(pos) = llist_entry((pos)->member.next, __typeof(*(pos)), member))
#endif
```
|
Boro may refer to:
People
Boro people, indigenous peoples of Amazonas, Brazil
A variant spelling for the Bodo people of northeast India
Charan Boro, Indian politician
Isaac Adaka Boro, a celebrated Niger Delta nationalist and Nigerian civil war hero
Sadun Boro (1928–2015), first Turkish global circumnavigator
Places
Boro, New South Wales, a locality in Australia
Boro, a division in Alego Usonga constituency, Siaya County in Kenya
Boro, Burkina Faso, a town in Burkina Faso
Boro, Togo is a village is the Kara region of Togo
A local nickname for the English town Middlesbrough and its football team Middlesbrough F.C.
Boro (River Boro), a distributary of River Slaney
Birsk, a town in Bashkortostan, Russia, known as Бөрө (Börö) in Bashkir
Boro, Purulia, a village, with a police station, in Purulia district, West Bengal, India
Sporting
Boro (Formula One), a Dutch Formula One constructor
"Boro" association football club nicknames, based in northern England:
Middlesbrough FC
Scarborough Athletic
Defunct Scarborough FC
Radcliffe F.C.
Other
Boro (textile), a class of Japanese textiles that have been mended or patched together
The BORO approach, a process for developing formal ontologies
Boro rice, an ecotype of rice used for the spring dry-season crop
Boro, short for borosilicate glass
Boro language (disambiguation)
See also
Borro, a UK based personal asset finance company
Borough
Boros (disambiguation)
|
```c
/*****************************************************************************
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
* Neither the name of Intel Corporation nor the names of its contributors
may be used to endorse or promote products derived from this software
without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS 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.
*****************************************************************************
* Contents: Native middle-level C interface to LAPACK function ssterf
* Author: Intel Corporation
*****************************************************************************/
#include "lapacke_utils.h"
lapack_int API_SUFFIX(LAPACKE_ssterf_work)( lapack_int n, float* d, float* e )
{
lapack_int info = 0;
/* Call LAPACK function and adjust info */
LAPACK_ssterf( &n, d, e, &info );
return info;
}
```
|
The Balochistan women's cricket team is the women's representative cricket team for the Pakistani province of Balochistan. They competed in the Women's Cricket Challenge Trophy in 2011–12 and 2012–13.
History
Balochistan competed in the Twenty20 Women's Cricket Challenge Trophy in its first two seasons, in 2011–12 and 2012–13. They finished second in their group in both seasons, winning one match and losing one match in both tournaments.
Players
Notable players
Players who played for Balochistan and played internationally are listed below, in order of first international appearance (given in brackets):
Sajjida Shah (2000)
Armaan Khan (2005)
Sabahat Rasheed (2005)
Almas Akram (2008)
Nahida Khan (2009)
Sukhan Faiz (2009)
Shumaila Qureshi (2010)
Elizebath Khan (2012)
Muneeba Ali (2016)
Omaima Sohail (2018)
Saba Nazir (2019)
Seasons
Women's Cricket Challenge Trophy
See also
Balochistan cricket team
References
Women's cricket teams in Pakistan
Cricket in Balochistan, Pakistan
|
```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.ballerinalang.langserver.codeaction.providers.docs;
import io.ballerina.compiler.syntax.tree.SyntaxKind;
import org.ballerinalang.annotation.JavaSPIService;
import org.ballerinalang.langserver.command.executors.AddAllDocumentationExecutor;
import org.ballerinalang.langserver.common.constants.CommandConstants;
import org.ballerinalang.langserver.commons.CodeActionContext;
import org.ballerinalang.langserver.commons.codeaction.spi.RangeBasedCodeActionProvider;
import org.ballerinalang.langserver.commons.codeaction.spi.RangeBasedPositionDetails;
import org.ballerinalang.langserver.commons.command.CommandArgument;
import org.eclipse.lsp4j.CodeAction;
import org.eclipse.lsp4j.CodeActionKind;
import org.eclipse.lsp4j.Command;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
/**
* Code Action provider for adding all documentation for top level items.
*
* @since 1.1.1
*/
@JavaSPIService("org.ballerinalang.langserver.commons.codeaction.spi.LSCodeActionProvider")
public class AddAllDocumentationCodeAction implements RangeBasedCodeActionProvider {
public static final String NAME = "Add All Documentation";
@Override
public List<SyntaxKind> getSyntaxKinds() {
return Arrays.asList(SyntaxKind.FUNCTION_DEFINITION,
SyntaxKind.OBJECT_TYPE_DESC,
SyntaxKind.CLASS_DEFINITION,
SyntaxKind.SERVICE_DECLARATION,
SyntaxKind.RESOURCE_ACCESSOR_DEFINITION,
SyntaxKind.RECORD_TYPE_DESC,
SyntaxKind.METHOD_DECLARATION,
SyntaxKind.ANNOTATION_DECLARATION,
SyntaxKind.OBJECT_METHOD_DEFINITION,
SyntaxKind.ENUM_DECLARATION,
SyntaxKind.CONST_DECLARATION);
}
/**
* {@inheritDoc}
*/
@Override
public List<CodeAction> getCodeActions(CodeActionContext context,
RangeBasedPositionDetails posDetails) {
// We don't show 'Document All' for nodes other than top level nodes
if (posDetails.matchedDocumentableNode().isEmpty()
|| posDetails.matchedDocumentableNode().get().parent().kind() != SyntaxKind.MODULE_PART) {
return Collections.emptyList();
}
String docUri = context.fileUri();
CommandArgument docUriArg = CommandArgument.from(CommandConstants.ARG_KEY_DOC_URI, docUri);
List<Object> args = new ArrayList<>(Collections.singletonList(docUriArg));
CodeAction action = new CodeAction(CommandConstants.ADD_ALL_DOC_TITLE);
action.setCommand(new Command(CommandConstants.ADD_ALL_DOC_TITLE, AddAllDocumentationExecutor.COMMAND, args));
action.setKind(CodeActionKind.Source);
return Collections.singletonList(action);
}
@Override
public String getName() {
return NAME;
}
}
```
|
Luigi Vassalli (also Luigi Vassalli-bey) (January 8, 1812 – June 13, 1887) was an Italian Egyptologist and patriot.
Biography
Vassalli was born in 1812 in Milan. In 1828 he enrolled at the Brera Academy and around this period he joined the Mazzinian activism but after a failed conspiracy he was sentenced to death, only to be pardoned but exiled. He moved in several places across Europe and later he traveled to Egypt where he began working for the local government.
In 1848 Vassalli returned to his homeland to join the revolutionary movements against the Austrian Empire, but after the failure he returned to Egypt where he became a portrait painter and an archaeological guide for wealthy foreigners. Around 1858 he was appointed Inspector of excavations by the French Egyptologist Auguste Mariette, who was Director of Antiquities at this time. Vassalli assisted in excavations at Giza and Saqqara until 1860, when he gave resignation and returned again home to give his contribution to the Expedition of the Thousand led by Giuseppe Garibaldi. After the victory he was appointed First Class Conservator at the Naples National Archaeological Museum; however, the office was soon abolished by the still pro-Borbonic museum management and Vassalli again came back to Cairo.
In Egypt he made several archaeological explorations in many sites such as Tanis, Saqqara, Dendera and Edfu from 1861 to 1868. He sent many mummy remains to the Museo Civico di Storia Naturale of Milan and in 1871 he made around 150 casts from monuments exhibited in the Bulaq Museum which he brought to Florence with him. During his short stay here the Italian government asked him to inspect many Egyptian collections in Italy, after which he returned to his duties in Cairo.
Still in 1871, along with Mariette he discovered the mastaba of Nefermaat at Meidum, which is well known for the famous scene commonly referred as the "Meidum geese". Vassalli carefully removed the whole scene from the tomb wall and reassembled it inside the Bulaq Museum. This fact sparked a controversy over a century later, when in a 2015 research the Egyptologist Francesco Tiradritti suggested that the Meidum geese scene is a 19th-century forgery possibly made by Vassalli himself, a claim dismissed by Egyptian authorities.
After Mariette's death in 1881, Vassalli became Director ad interim until the installation of Gaston Maspero. He retired in 1884 and returned to Milan and then to Rome; he committed suicide there on June 13, 1887. According to his will, all his papers were donated to the city of Milan.
Significant works
1867. I monumenti istorici egizi: il museo e gli scavi d'antichità eseguiti per ordine di S.A. Il vicerè Ismail Pascia. Milano 1867.
References
1812 births
1887 deaths
1880s suicides
19th-century archaeologists
Archaeologists from Milan
Italian Egyptologists
Egyptian Museum
Suicides in Italy
Italian people of the Italian unification
|
Jordi Carbonell i de Ballester (; 23 April 1924 – 22 August 2016) was a Spanish politician from Catalonia.
A graduate in Romance philology from the University of Barcelona, Carbonell was a professor in Catalan Language at the Autonomous University of Barcelona, from which he was expelled in 1972 for political reasons. He was a professor at the University of Cagliari (Casteddu, Sardinia) and a lecturer in Catalan at the University of Liverpool.
A founding member of the Society for Catalan Historical Studies (Societat Catalana d’Estudis Històrics), a branch of the Institute for Catalan Studies (Institut d'Estudis Catalans), he directed the Great Catalan Encyclopaedia from 1965 to 1971.
He participated in several initiatives to oppose the Francoist State, such as the Assembly of Catalonia (Assemblea de Catalunya), and was a founder of the left-wing Catalan nationalist movement, Nacionalistes d’Esquerra. From 1996 to July 2004, he was the President of Esquerra Republicana de Catalunya, and later held the post of Honorary President, following his having been succeeded in the active political position by Josep-Lluís Carod-Rovira.
References
1924 births
2016 deaths
Politicians from Barcelona
Linguists from Catalonia
Academic staff of the Autonomous University of Barcelona
University of Barcelona alumni
Members of the Institute for Catalan Studies
Presidents of the Republican Left of Catalonia
Spanish expatriates in Italy
Spanish expatriates in the United Kingdom
Teachers of Catalan
|
```html
<?xml version="1.0" encoding="ascii"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"DTD/xhtml1-transitional.dtd">
<html xmlns="path_to_url" xml:lang="en" lang="en">
<head>
<title>pypattyrn.creational.prototype</title>
<link rel="stylesheet" href="epydoc.css" type="text/css" />
<script type="text/javascript" src="epydoc.js"></script>
</head>
<body bgcolor="white" text="black" link="blue" vlink="#204080"
alink="#204080">
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
bgcolor="#a0c0ff" cellspacing="0">
<tr valign="middle">
<!-- Home link -->
<th> <a
href="pypattyrn-module.html">Home</a> </th>
<!-- Tree link -->
<th> <a
href="module-tree.html">Trees</a> </th>
<!-- Index link -->
<th> <a
href="identifier-index.html">Indices</a> </th>
<!-- Help link -->
<th> <a
href="help.html">Help</a> </th>
<th class="navbar" width="100%"></th>
</tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
<tr valign="top">
<td width="100%">
<span class="breadcrumbs">
<a href="pypattyrn-module.html">Package pypattyrn</a> ::
<a href="pypattyrn.creational-module.html">Package creational</a> ::
Module prototype
</span>
</td>
<td>
<table cellpadding="0" cellspacing="0">
<!-- hide/show private -->
<tr><td align="right"><span class="options">[<a href="javascript:void(0);" class="privatelink"
onclick="toggle_private();">hide private</a>]</span></td></tr>
<tr><td align="right"><span class="options"
>[<a href="frames.html" target="_top">frames</a
>] | <a href="pypattyrn.creational.prototype-pysrc.html"
target="_top">no frames</a>]</span></td></tr>
</table>
</td>
</tr>
</table>
<h1 class="epydoc">Source Code for <a href="pypattyrn.creational.prototype-module.html">Module pypattyrn.creational.prototype</a></h1>
<pre class="py-src">
<a name="L1"></a><tt class="py-lineno"> 1</tt> <tt class="py-line"><tt class="py-keyword">from</tt> <tt class="py-name">copy</tt> <tt class="py-keyword">import</tt> <tt class="py-name">deepcopy</tt> </tt>
<a name="L2"></a><tt class="py-lineno"> 2</tt> <tt class="py-line"><tt class="py-keyword">from</tt> <tt class="py-name">types</tt> <tt class="py-keyword">import</tt> <tt class="py-name">MethodType</tt> </tt>
<a name="L3"></a><tt class="py-lineno"> 3</tt> <tt class="py-line"> </tt>
<a name="L4"></a><tt class="py-lineno"> 4</tt> <tt class="py-line"> </tt>
<a name="Prototype"></a><div id="Prototype-def"><a name="L5"></a><tt class="py-lineno"> 5</tt> <a class="py-toggle" href="#" id="Prototype-toggle" onclick="return toggle('Prototype');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="pypattyrn.creational.prototype.Prototype-class.html">Prototype</a><tt class="py-op">(</tt><tt class="py-base-class">object</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Prototype-collapsed" style="display:none;" pad="++" indent="++++"></div><div id="Prototype-expanded"><a name="L6"></a><tt class="py-lineno"> 6</tt> <tt class="py-line"> <tt class="py-docstring">"""</tt> </tt>
<a name="L7"></a><tt class="py-lineno"> 7</tt> <tt class="py-line"><tt class="py-docstring"> Prototype design pattern abstract class.</tt> </tt>
<a name="L8"></a><tt class="py-lineno"> 8</tt> <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L9"></a><tt class="py-lineno"> 9</tt> <tt class="py-line"><tt class="py-docstring"> - External Usage documentation: U{path_to_url}</tt> </tt>
<a name="L10"></a><tt class="py-lineno">10</tt> <tt class="py-line"><tt class="py-docstring"> - External Prototype Pattern documentation: U{path_to_url}</tt> </tt>
<a name="L11"></a><tt class="py-lineno">11</tt> <tt class="py-line"><tt class="py-docstring"> """</tt> </tt>
<a name="Prototype.prototype"></a><div id="Prototype.prototype-def"><a name="L12"></a><tt class="py-lineno">12</tt> <a class="py-toggle" href="#" id="Prototype.prototype-toggle" onclick="return toggle('Prototype.prototype');">-</a><tt class="py-line"> <tt class="py-keyword">def</tt> <a class="py-def-name" href="pypattyrn.creational.prototype.Prototype-class.html#prototype">prototype</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-op">**</tt><tt class="py-param">attributes</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Prototype.prototype-collapsed" style="display:none;" pad="++" indent="++++++++"></div><div id="Prototype.prototype-expanded"><a name="L13"></a><tt class="py-lineno">13</tt> <tt class="py-line"> <tt class="py-docstring">"""</tt> </tt>
<a name="L14"></a><tt class="py-lineno">14</tt> <tt class="py-line"><tt class="py-docstring"> Copy the prototype this object and optionally update attributes.</tt> </tt>
<a name="L15"></a><tt class="py-lineno">15</tt> <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L16"></a><tt class="py-lineno">16</tt> <tt class="py-line"><tt class="py-docstring"> @param attributes: Keyword arguments of any attributes you wish to update.</tt> </tt>
<a name="L17"></a><tt class="py-lineno">17</tt> <tt class="py-line"><tt class="py-docstring"> @return: A copy of this object with the updated attributes.</tt> </tt>
<a name="L18"></a><tt class="py-lineno">18</tt> <tt class="py-line"><tt class="py-docstring"> """</tt> </tt>
<a name="L19"></a><tt class="py-lineno">19</tt> <tt class="py-line"> <tt class="py-name">obj</tt> <tt class="py-op">=</tt> <tt class="py-name">deepcopy</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">)</tt> </tt>
<a name="L20"></a><tt class="py-lineno">20</tt> <tt class="py-line"> <tt class="py-keyword">for</tt> <tt class="py-name">attribute</tt> <tt class="py-keyword">in</tt> <tt class="py-name">attributes</tt><tt class="py-op">:</tt> </tt>
<a name="L21"></a><tt class="py-lineno">21</tt> <tt class="py-line"> <tt class="py-keyword">if</tt> <tt class="py-name">callable</tt><tt class="py-op">(</tt><tt class="py-name">attributes</tt><tt class="py-op">[</tt><tt class="py-name">attribute</tt><tt class="py-op">]</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L22"></a><tt class="py-lineno">22</tt> <tt class="py-line"> <tt class="py-name">setattr</tt><tt class="py-op">(</tt><tt class="py-name">obj</tt><tt class="py-op">,</tt> <tt class="py-name">attribute</tt><tt class="py-op">,</tt> <tt class="py-name">MethodType</tt><tt class="py-op">(</tt><tt class="py-name">attributes</tt><tt class="py-op">[</tt><tt class="py-name">attribute</tt><tt class="py-op">]</tt><tt class="py-op">,</tt> <tt class="py-name">obj</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L23"></a><tt class="py-lineno">23</tt> <tt class="py-line"> <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L24"></a><tt class="py-lineno">24</tt> <tt class="py-line"> <tt class="py-name">setattr</tt><tt class="py-op">(</tt><tt class="py-name">obj</tt><tt class="py-op">,</tt> <tt class="py-name">attribute</tt><tt class="py-op">,</tt> <tt class="py-name">attributes</tt><tt class="py-op">[</tt><tt class="py-name">attribute</tt><tt class="py-op">]</tt><tt class="py-op">)</tt> </tt>
<a name="L25"></a><tt class="py-lineno">25</tt> <tt class="py-line"> </tt>
<a name="L26"></a><tt class="py-lineno">26</tt> <tt class="py-line"> <tt class="py-keyword">return</tt> <tt class="py-name">obj</tt> </tt>
</div></div><a name="L27"></a><tt class="py-lineno">27</tt> <tt class="py-line"> </tt><script type="text/javascript">
<!--
expandto(location.href);
// -->
</script>
</pre>
<br />
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
bgcolor="#a0c0ff" cellspacing="0">
<tr valign="middle">
<!-- Home link -->
<th> <a
href="pypattyrn-module.html">Home</a> </th>
<!-- Tree link -->
<th> <a
href="module-tree.html">Trees</a> </th>
<!-- Index link -->
<th> <a
href="identifier-index.html">Indices</a> </th>
<!-- Help link -->
<th> <a
href="help.html">Help</a> </th>
<th class="navbar" width="100%"></th>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
<tr>
<td align="left" class="footer">
Generated by Epydoc 3.0.1 on Sat Sep 10 22:03:57 2016
</td>
<td align="right" class="footer">
<a target="mainFrame" href="path_to_url"
>path_to_url
</td>
</tr>
</table>
<script type="text/javascript">
<!--
// Private objects are initially displayed (because if
// javascript is turned off then we want them to be
// visible); but by default, we want to hide them. So hide
// them unless we have a cookie that says to show them.
checkCookie();
// -->
</script>
</body>
</html>
```
|
```objective-c
/**
* \class metrics::MetricSet
* \ingroup metrics
*
* \brief Class containing a set of metrics.
*
* This is a class to bundle related metrics. Note that the metricsset is
* itself a metric so this generates a tree where metricssets are leaf nodes.
*/
#pragma once
#include "metric.h"
namespace metrics {
class MetricSet : public Metric
{
std::vector<Metric*> _metricOrder; // Keep added order for reporting
bool _registrationAltered; // Set to true if metrics have been
// registered/unregistered since last time
// it was reset
public:
MetricSet(const String& name, Tags dimensions, const String& description) :
MetricSet(name, std::move(dimensions), description, nullptr)
{}
MetricSet(const String& name, Tags dimensions, const String& description, MetricSet* owner);
MetricSet(const MetricSet&, std::vector<Metric::UP> &ownerList, CopyType, MetricSet* owner, bool includeUnused);
// Do not generate default copy constructor or assignment operator
// These would screw up metric registering
MetricSet(const MetricSet&) = delete;
MetricSet& operator=(const MetricSet&) = delete;
~MetricSet();
// If no path, this metric is not registered within another
bool isTopSet() const { return _owner == 0; }
/**
* Returns true if registration has been altered since it was last
* cleared. Used by the metric manager to know when it needs to recalculate
* which consumers will see what.
*/
bool isRegistrationAltered() const { return _registrationAltered; }
/** Clear all registration altered flags. */
void clearRegistrationAltered();
void registerMetric(Metric& m);
void unregisterMetric(Metric& m);
MetricSet* clone(std::vector<Metric::UP> &ownerList, CopyType type, MetricSet* owner, bool includeUnused) const override;
void reset() override;
bool visit(MetricVisitor&, bool tagAsAutoGenerated = false) const override;
void print(std::ostream&, bool verbose, const std::string& indent, uint64_t secondsPassed) const override;
// These should never be called on metrics set.
int64_t getLongValue(string_view id) const override;
double getDoubleValue(string_view id) const override;
const Metric* getMetric(string_view name) const;
Metric* getMetric(string_view name) {
return const_cast<Metric*>(const_cast<const MetricSet*>(this)->getMetric(name));
}
void addToSnapshot(Metric& m, std::vector<Metric::UP> &o) const override { addTo(m, &o); }
const std::vector<Metric*>& getRegisteredMetrics() const { return _metricOrder; }
bool used() const override;
void addMemoryUsage(MemoryConsumption&) const override;
void printDebug(std::ostream&, const std::string& indent="") const override;
bool isMetricSet() const override { return true; }
void addToPart(Metric& m) const override { addTo(m, 0); }
private:
void tagRegistrationAltered();
const Metric* getMetricInternal(string_view name) const;
virtual void addTo(Metric&, std::vector<Metric::UP> *ownerList) const;
};
} // metrics
```
|
Candola is a village and census town in Ponda Sub-District, North Goa district in the state of Goa, India. It is located in the Novas Conquistas region of the state.
History
Candola was founded by the Portuguese, in 1783, after Raja Bahadur Khem Savant III from the Kingdom of Sawantwadi ceded its lands to Portugal, in order to receive military help against the Kingdom of Kolhapur.
Geography
The Mandovi River flows to through village's East and North, separating it from the village of Amona. Another waterbody - the Cumbarjua Canal, which is a distributary of the Mandovi, flows on its North-Western border, separating it from the island of St Estevam. There is a bridge over River, connecting it to the inner parts of Goa, and another over the canal, connecting it to the island.
References
Cities and towns in North Goa district
Villages in North Goa district
|
```elixir
defmodule Wallaby.Integration.Browser.Actions.ClickButtonTest do
use Wallaby.Integration.SessionCase, async: true
alias Wallaby.Integration.Pages.IndexPage
import Wallaby.Query, only: [button: 1, button: 2, css: 1]
setup %{session: session} do
page =
session
|> visit("forms.html")
{:ok, page: page}
end
test "clicking button with no type via button text (submits form)", %{page: page} do
current_url =
page
|> click(button("button with no type"))
|> IndexPage.ensure_page_loaded()
|> current_url
assert current_url =~ "path_to_url#{URI.parse(current_url).port}/index.html"
end
test "clicking button with no type via name (submits form)", %{page: page} do
current_url =
page
|> click(button("button-no-type"))
|> IndexPage.ensure_page_loaded()
|> current_url
assert current_url =~ "path_to_url#{URI.parse(current_url).port}/index.html"
end
test "clicking button with no type via id (submits form)", %{page: page} do
current_url =
page
|> click(button("button-no-type-id"))
|> IndexPage.ensure_page_loaded()
|> current_url
assert current_url =~ "path_to_url#{URI.parse(current_url).port}/index.html"
end
test "clicking button type[submit] via button text (submits form)", %{page: page} do
current_url =
page
|> click(button("Submit button"))
|> IndexPage.ensure_page_loaded()
|> current_url
assert current_url =~ "path_to_url#{URI.parse(current_url).port}/index.html"
end
test "clicking button type[submit] via name (submits form)", %{page: page} do
current_url =
page
|> click(button("button-submit"))
|> IndexPage.ensure_page_loaded()
|> current_url
assert current_url =~ "path_to_url#{URI.parse(current_url).port}/index.html"
end
test "clicking button type[submit] via id (submits form)", %{page: page} do
current_url =
page
|> click(button("button-submit-id"))
|> IndexPage.ensure_page_loaded()
|> current_url
assert current_url =~ "path_to_url#{URI.parse(current_url).port}/index.html"
end
test "clicking button type[button] via button text (resets input via JS)", %{page: page} do
page
|> fill_in(Query.text_field("name_field"), with: "Erlich Bachman")
assert find(page, css("#name_field")) |> has_value?("Erlich Bachman")
click(page, button("Button button"))
assert find(page, css("#name_field")) |> has_value?("")
end
test "clicking button type[button] via name (resets input via JS)", %{page: page} do
page
|> fill_in(Query.text_field("name_field"), with: "Erlich Bachman")
assert find(page, css("#name_field")) |> has_value?("Erlich Bachman")
click(page, button("button-button"))
assert find(page, css("#name_field")) |> has_value?("")
end
test "clicking button type[button] via id (resets input via JS)", %{page: page} do
page
|> fill_in(Query.text_field("name_field"), with: "Erlich Bachman")
assert find(page, css("#name_field")) |> has_value?("Erlich Bachman")
click(page, button("button-button-id"))
assert find(page, css("#name_field")) |> has_value?("")
end
test "clicking button type[reset] via button text resets form", %{page: page} do
page
|> fill_in(Query.text_field("name_field"), with: "Erlich Bachman")
assert find(page, css("#name_field")) |> has_value?("Erlich Bachman")
click(page, button("Reset button"))
assert find(page, css("#name_field")) |> has_value?("")
end
test "clicking button type[reset] via name resets form", %{page: page} do
page
|> fill_in(Query.text_field("name_field"), with: "Erlich Bachman")
assert find(page, css("#name_field")) |> has_value?("Erlich Bachman")
click(page, button("button-reset"))
assert find(page, css("#name_field")) |> has_value?("")
end
test "clicking button type[reset] via id resets form", %{page: page} do
page
|> fill_in(Query.text_field("name_field"), with: "Erlich Bachman")
assert find(page, css("#name_field")) |> has_value?("Erlich Bachman")
click(page, button("button-reset-id"))
assert find(page, css("#name_field")) |> has_value?("")
end
test "clicking input type[submit] via button text submits form", %{page: page} do
current_url =
page
|> click(button("Submit input"))
|> IndexPage.ensure_page_loaded()
|> current_url
assert current_url =~ "path_to_url#{URI.parse(current_url).port}/index.html"
end
test "clicking input type[submit] via name submits form", %{page: page} do
current_url =
page
|> click(button("input-submit"))
|> IndexPage.ensure_page_loaded()
|> current_url
assert current_url =~ "path_to_url#{URI.parse(current_url).port}/index.html"
end
test "clicking input type[submit] via id submits form", %{page: page} do
current_url =
page
|> click(button("input-submit-id"))
|> IndexPage.ensure_page_loaded()
|> current_url
assert current_url =~ "path_to_url#{URI.parse(current_url).port}/index.html"
end
test "clicking input type[button] via button text resets input via JS", %{page: page} do
page
|> fill_in(Query.text_field("name_field"), with: "Erlich Bachman")
assert find(page, css("#name_field")) |> has_value?("Erlich Bachman")
click(page, button("Button input"))
assert find(page, css("#name_field")) |> has_value?("")
end
test "clicking input type[button] via name resets input via JS", %{page: page} do
page
|> fill_in(Query.text_field("name_field"), with: "Erlich Bachman")
assert find(page, css("#name_field")) |> has_value?("Erlich Bachman")
click(page, button("input-button"))
assert find(page, css("#name_field")) |> has_value?("")
end
test "clicking input type[button] via id resets input via JS", %{page: page} do
page
|> fill_in(Query.text_field("name_field"), with: "Erlich Bachman")
assert find(page, css("#name_field")) |> has_value?("Erlich Bachman")
click(page, button("input-button-id"))
assert find(page, css("#name_field")) |> has_value?("")
end
test "clicking input type[reset] via button text resets form", %{page: page} do
page
|> fill_in(Query.text_field("name_field"), with: "Erlich Bachman")
assert find(page, css("#name_field")) |> has_value?("Erlich Bachman")
click(page, button("Reset input"))
assert find(page, css("#name_field")) |> has_value?("")
end
test "clicking input type[reset] via name resets form", %{page: page} do
page
|> fill_in(Query.text_field("name_field"), with: "Erlich Bachman")
assert find(page, css("#name_field")) |> has_value?("Erlich Bachman")
click(page, button("input-reset"))
assert find(page, css("#name_field")) |> has_value?("")
end
test "clicking input type[reset] via id resets form", %{page: page} do
page
|> fill_in(Query.text_field("name_field"), with: "Erlich Bachman")
assert find(page, css("#name_field")) |> has_value?("Erlich Bachman")
click(page, button("input-reset-id"))
assert find(page, css("#name_field")) |> has_value?("")
end
test "clicking input type[image] via name submits form", %{page: page} do
current_url =
page
|> click(button("input-image"))
|> IndexPage.ensure_page_loaded()
|> current_url
assert current_url =~ "path_to_url#{URI.parse(current_url).port}/index.html"
end
test "clicking input type[image] via id submits form", %{page: page} do
current_url =
page
|> click(button("input-image-id"))
|> IndexPage.ensure_page_loaded()
|> current_url
assert current_url =~ "path_to_url#{URI.parse(current_url).port}/index.html"
end
test "waits until the button appears", %{page: page} do
assert click(page, button("Hidden Button"))
end
test "throws an error if the button does not include a valid type attribute", %{page: page} do
assert_raise Wallaby.QueryError, ~r/button has an invalid 'type'/, fn ->
click(page, button("button with bad type", []))
end
end
test "throws an error if clicking on an input with no type", %{page: page} do
assert_raise Wallaby.QueryError, ~r/Expected (.*) 1/, fn ->
click(page, button("input-no-type", []))
end
end
test "throws an error if the button cannot be found on the page", %{page: page} do
assert_raise Wallaby.QueryError, ~r/Expected (.*) 1/, fn ->
click(page, button("unfound button", []))
end
end
test "escapes quotes", %{page: page} do
assert click(page, button("I'm a button"))
end
test "with duplicate buttons", %{page: page} do
assert_raise Wallaby.QueryError, ~r/Expected (.*) 1/, fn ->
page
|> find(css(".duplicate-buttons"))
|> click(button("Duplicate Button"))
end
end
test "works with elements", %{page: page} do
assert page
|> find(button("I'm a button"))
|> Element.click()
end
end
```
|
Kemeraltı (more fully, Kemeraltı Çarşısı) is a historical market (bazaar) district of İzmir, Turkey. It remains one of the liveliest districts of İzmir.
Location
The district covers a vast area extending from the level of the Agora of Smyrna (the quarters of Namazgah, Mezarlıkbaşı and İkiçeşmelik), to the seashore along the Konak Square.
It is bounded by the streets Fevzipaşa Boulevard on the northeast, Eşrefpaşa Street on the southwest, and Halil Rıfat Bashaw Street on the southeast, surrounded by ridges of Kadifekale.
History
The bazaar formed originally around a long street. In medieval times, it was called Street of the Mevlevis, in reference to the presence of a "dergah" (a building designed for gatherings of a Sufi brotherhood). During the 17th Century, this street was filled in, which allowed the bazaar to extend. Today, the street, now called Anafartalar Caddesi ("Anafartalar Street"), winds to complete the circle of the shallow inner bay in a wide curve.
16th century
A milestone in the bazaar's development was the building in 1592 of the Hisar Mosque ("Fortress Mosque"). This is the oldest, most significant Ottoman landmark in İzmir (although built by Aydınoğlu Yakup Bey, descendant of the dynasty that had founded the Beylik, whose family the (Aydinids) had controlled İzmir prior to Ottoman conquest). "Fortress" in the name of the mosque refers to its predecessor, the Genoese Castle or Fortress of "San Pietro", earlier called Neon Kastron in Byzantine times, which stood on the same location. Final remains of the castle were removed during construction of new port installations (1867–1876).
17th century
The market itself came into existence with the filling between 1650–1670 of the shallowest parts of the inner bay. The process of gaining ground from the bay was pursued in 1744 with the construction of Kızlarağası Han, an impressive caravanserai (and surviving to the present) that emerged as the nucleus of the market, together with two older "hans", the term implying a caravanserai with more markedly urban characteristics, that have not survived to this day. These was the "Great Vezir Han" constructed by the 17th-century grand vizier Köprülü Fazıl Ahmed Pasha, and the neighboring "Little Vezir Han" constructed by his successor Merzifonlu Kara Mustafa Pasha. Another historically important han (that no longer exists) was "Cezayir Han" (literally "Han of Algiers"), from where western Anatolia's excess labor force had been annually dispatched to the Ottoman protectorate of Algiers for centuries.
18th-19th centuries
The remaining part of the inner bay silted up throughout the 18th century. The shoreline facing Kemeraltı took its present straight form in the beginning of the 19th century, although some of the land along the berth remained unused until the end of that century. In 1829, Sarı Kışla, the Yellow Barracks, the principal Ottoman barracks of the city, gigantic for its time, was built immediately on the sea-side, and a private residence (konak), situated slightly diagonally behind the barracks, was extended and converted into the governor's mansion, demarcating Konak Square that holds its name from the mansion, and which in its turn gave the name to the central metropolitan district of İzmir (Konak) and at the level of which Kemeraltı is considered to start.
20th century
After the 1922 Great Fire of Smyrna and thereafter, of hundreds of "hans" that Kemeraltı counted at the beginning of the 20th century (and clearly visible on a 1905 map drawn by French cartographers on behalf of international insurance companies), only a dozen remained, in full or in part: most were destroyed.
The governor's mansion still stands, although the Yellow Barracks was demolished in 1955 under instructions from the then Prime Minister Adnan Menderes, who wanted to see Konak Square re-shaped, to the ongoing regret of many İzmirians who had come to adopt the oversize building as one of the main landmarks of their city.
21st century
Though the loss of shoe manufacturing in the 1990s left a void in the business well into the 2000s, eventually the commercial activities in Kemeraltı recuperated with the growth of Izmir's population throughout the 2010s. In 2020, Kemeraltı became a Tentative World Heritage Site as part of "The Historical Port City of Izmir."
Mosques
Kemeraltı is home to Başdurak Mosque, Hisar Mosque, Kemeraltı Mosque, Kestanepazarı Mosque, Salepçioğlu Mosque, and Şadırvanaltı Mosque.
Synagogues
In 2004, the World Monuments Fund added "Central Izmir Synagogues" as #81 to its World Monuments Watch annual list. The fund states: Hidden behind walls and gardens, along the alleyways of the colorful historic bazaar, the Central Izmir Synagogues are an unparalleled testament to the city’s rich Jewish heritage. The oldest district in Izmir, Kemeralti dates back to Roman times and is home to the densest concentration of Jewish landmarks in all of Turkey. The six mosques surrounding the synagogue complex evince the centuries of peaceful co-habitation among the local Ottoman and Jewish communities. A heritage organization, the "Izmir Project" (planned and partly funded by the Mordechai Kiriaty Foundation, the Izmir-Konak municipality, the Izmir Sephardic Cultural Heritage Association (ISCHA), and the American Friends of Izmir Jewish Heritage Museum) calls Izmir "the only city in the world in which an unusual cluster of synagogues bearing a typical medieval Spanish architectural style is preserved." At its peak, there were 34 synagogues in Izmir, "creating an historical architectural complex unique in the world." There, Sephardic Jews, originally expelled from Spain and Portugal (e.g., by the Alhambra Decree (or Edict of Expulsion) of 31 March 1492) came to Izmir with their Sephardic Jewish heritage, Ladino language, Sephardic traditions of worship.
This heritage included Sephardic architectural styles of synagogues that came from medieval Spain. The World Monuments Fund notes that Izmir synagogues often feature a “triple arrangement” of the Torah ark, "which creates a unique harmonious ambience." The central positioning of the bimah (elevated platform) between four columns divides synagogues into nine parts. The Izmir Project notes that this style features central stage upon which the ark for the Torah rests across the holy chest at the eastern wall. It includes a central platform, supported by four pillars that resemble a canopy for a ceiling. Seating around the stage allows members of a congregation to see each other's faces and adds to the bonding experience of public prayer (in contrast to Ashkenazi architectural style, in which seating lies in rows that limits eye contact).
A documentary film called Hidden Secrets of the Ancient Synagogues of Izmir presents a history and film some of the synagogues. A second documentary called About the Izmir Delegation shows some of the synagogues amidst discussions by Israel Jews about how to preserve them.
In addition to synagogues, there were at least four Jewish mezarliği (cemeteries): Gürçeşme, Bahribaba, Bornova, and Altındağ. A main attraction of Gurcesme is "the grave of Rabbi Palaggi, which was moved to this cemetery from its original burial place, in the 1920s... and people from all over the world come to pray at his grave" as "pilgrimage to Rabbi Palaggi’s grave." In 2013, a new, perhaps fifth Jewish cemetery.
Remaining synagogues
Of the 34 synagogues, eight remain today in the Kemeraltı Çaršisi area of Izmir (mostly on Havra Sokagi) and another 10 nearby. Some remain intact, some in ruins, and others are in the process of restoration. "These synagogues constitute a living testimony to the history of the community in Izmir, which was one of the most spectacular of its kind and had the most spiritual and cultural influence on all Jewish diaspora communities in the 17th and 18th centuries."
The remaining synagogues in or near the bazaar are:
Ashkenazi Synagogue (20th-century, unrestored, inactive)
Beit Hillel Synagogue (Avraham Palache Synagogue) (19th-century, restored 2014, inactive)
Bikur Holim Synagogue (18th-century, restored, active)
Algazi Synagogue (18th-century, restored, active)
Etz Hayim Synagogue (14th-15th-century, restoration planned)
Hevra Synagogue (17th-century, unrestored, inactive)
Los Foresteros Synagogue (17th-century, unrestored, inactive)
Portugal Synagogue (17th-century, unrestored, inactive)
Señora Synagogue (17th-century, restored, active)
Shalom Synagogue (17th-Century, restored, active)
Nearby synagogues
In Karataş:
Bet Israel Synagogue (20th-century, restored, active)
Rosh Ha-Har Synagogue (19th-century, restored, active)
In Karşıyaka:
Kahal Kadosh Synagogue (19th-century, conservatory)
See also
Resources
External links
Walking Routes in Izmir
Konak District
Tourist attractions in İzmir
Bazaars in Turkey
World Heritage Tentative List for Turkey
Jews and Judaism in İzmir
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.