text
stringlengths 1
22.8M
|
|---|
Tillandsia paraisoensis is a species of flowering plant in the genus Tillandsia. This species is endemic to Mexico.
References
paraisoensis
Flora of Mexico
|
```c++
// Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
// path_to_url
#if !defined(BOOST_VMD_DETAIL_DATA_EQUAL_7_HPP)
#define BOOST_VMD_DETAIL_DATA_EQUAL_7_HPP
#include <boost/vmd/detail/recurse/data_equal/data_equal_headers.hpp>
#define BOOST_VMD_DETAIL_DATA_EQUAL_7_OP_TEQ_CMP_PARENS(d,em1,em2) \
BOOST_VMD_IDENTITY_RESULT \
( \
BOOST_PP_IIF \
( \
BOOST_VMD_DETAIL_DATA_EQUAL_IS_BOTH_COMPOSITE(em1,em2), \
BOOST_VMD_IDENTITY(2), \
BOOST_VMD_DETAIL_EQUAL_SIMPLE_D \
) \
(d,em1,em2) \
) \
/**/
#define BOOST_VMD_DETAIL_DATA_EQUAL_7_OP_TEQ_CMP_PARENS_D(d,em1,em2) \
BOOST_VMD_IDENTITY_RESULT \
( \
BOOST_PP_IIF \
( \
BOOST_VMD_DETAIL_DATA_EQUAL_IS_BOTH_COMPOSITE(em1,em2), \
BOOST_VMD_IDENTITY(2), \
BOOST_VMD_DETAIL_EQUAL_SIMPLE_D \
) \
(d,em1,em2) \
) \
/**/
#define BOOST_VMD_DETAIL_DATA_EQUAL_7_OP_TEQ_CMP(d,state,em1,em2) \
BOOST_PP_IIF \
( \
BOOST_VMD_DETAIL_DATA_EQUAL_STATE_COMP_PROCESSING(d,state), \
BOOST_VMD_DETAIL_EQUAL_SIMPLE_D, \
BOOST_VMD_DETAIL_DATA_EQUAL_7_OP_TEQ_CMP_PARENS \
) \
(d,em1,em2) \
/**/
#define BOOST_VMD_DETAIL_DATA_EQUAL_7_OP_TEQ_CMP_D(d,state,em1,em2) \
BOOST_PP_IIF \
( \
BOOST_VMD_DETAIL_DATA_EQUAL_STATE_COMP_PROCESSING(d,state), \
BOOST_VMD_DETAIL_EQUAL_SIMPLE_D, \
BOOST_VMD_DETAIL_DATA_EQUAL_7_OP_TEQ_CMP_PARENS_D \
) \
(d,em1,em2) \
/**/
#define BOOST_VMD_DETAIL_DATA_EQUAL_7_OP_TEQ(d,state) \
BOOST_VMD_DETAIL_DATA_EQUAL_7_OP_TEQ_CMP \
( \
d, \
state, \
BOOST_VMD_DETAIL_DATA_EQUAL_STATE_GET_FIRST_ELEMENT(d,state), \
BOOST_VMD_DETAIL_DATA_EQUAL_STATE_GET_SECOND_ELEMENT(d,state) \
) \
/**/
#define BOOST_VMD_DETAIL_DATA_EQUAL_7_OP_TEQ_D(d,state) \
BOOST_VMD_DETAIL_DATA_EQUAL_7_OP_TEQ_CMP_D \
( \
d, \
state, \
BOOST_VMD_DETAIL_DATA_EQUAL_STATE_GET_FIRST_ELEMENT(d,state), \
BOOST_VMD_DETAIL_DATA_EQUAL_STATE_GET_SECOND_ELEMENT(d,state) \
) \
/**/
#define BOOST_VMD_DETAIL_DATA_EQUAL_7_OP(d,state) \
BOOST_VMD_DETAIL_DATA_EQUAL_OP_RESULT \
( \
d, \
state, \
BOOST_VMD_DETAIL_DATA_EQUAL_7_OP_TEQ(d,state) \
) \
/**/
#define BOOST_VMD_DETAIL_DATA_EQUAL_7_OP_D(d,state) \
BOOST_VMD_DETAIL_DATA_EQUAL_OP_RESULT \
( \
d, \
state, \
BOOST_VMD_DETAIL_DATA_EQUAL_7_OP_TEQ_D(d,state) \
) \
/**/
#define BOOST_VMD_DETAIL_DATA_EQUAL_7_LOOP(dataf,datas,sz,vtype) \
BOOST_PP_TUPLE_ELEM \
( \
0, \
BOOST_PP_WHILE \
( \
BOOST_VMD_DETAIL_DATA_EQUAL_PRED, \
BOOST_VMD_DETAIL_DATA_EQUAL_7_OP, \
( \
1, \
dataf, \
datas, \
sz, \
vtype, \
0, \
) \
) \
) \
/**/
#define BOOST_VMD_DETAIL_DATA_EQUAL_7_LOOP_D(d,dataf,datas,sz,vtype) \
BOOST_PP_TUPLE_ELEM \
( \
0, \
BOOST_PP_WHILE_ ## d \
( \
BOOST_VMD_DETAIL_DATA_EQUAL_PRED, \
BOOST_VMD_DETAIL_DATA_EQUAL_7_OP_D, \
( \
1, \
dataf, \
datas, \
sz, \
vtype, \
0, \
) \
) \
) \
/**/
#define BOOST_VMD_DETAIL_DATA_EQUAL_7_SZ(dataf,datas,szf,szs,vtype) \
BOOST_VMD_IDENTITY_RESULT \
( \
BOOST_PP_IIF \
( \
BOOST_PP_EQUAL(szf,szs), \
BOOST_VMD_DETAIL_DATA_EQUAL_7_LOOP, \
BOOST_VMD_IDENTITY(0) \
) \
(dataf,datas,szf,vtype) \
) \
/**/
#define BOOST_VMD_DETAIL_DATA_EQUAL_7_SZ_D(d,dataf,datas,szf,szs,vtype) \
BOOST_VMD_IDENTITY_RESULT \
( \
BOOST_PP_IIF \
( \
BOOST_PP_EQUAL_D(d,szf,szs), \
BOOST_VMD_DETAIL_DATA_EQUAL_7_LOOP_D, \
BOOST_VMD_IDENTITY(0) \
) \
(d,dataf,datas,szf,vtype) \
) \
/**/
#define BOOST_VMD_DETAIL_DATA_EQUAL_7(dataf,datas,vtype) \
BOOST_VMD_DETAIL_DATA_EQUAL_7_SZ \
( \
dataf, \
datas, \
BOOST_VMD_DETAIL_DATA_EQUAL_GET_SIZE(dataf,vtype), \
BOOST_VMD_DETAIL_DATA_EQUAL_GET_SIZE(datas,vtype), \
vtype \
) \
/**/
#define BOOST_VMD_DETAIL_DATA_EQUAL_7_D(d,dataf,datas,vtype) \
BOOST_VMD_DETAIL_DATA_EQUAL_7_SZ_D \
( \
d, \
dataf, \
datas, \
BOOST_VMD_DETAIL_DATA_EQUAL_GET_SIZE_D(d,dataf,vtype), \
BOOST_VMD_DETAIL_DATA_EQUAL_GET_SIZE_D(d,datas,vtype), \
vtype \
) \
/**/
#endif /* BOOST_VMD_DETAIL_DATA_EQUAL_7_HPP */
```
|
```swift
//
//
//
// 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.
//
import UIKit
import FirebaseCore
import FirebaseAuth
import FirebaseAuthUI
@UIApplicationMain
// [START signin_delegate]
class AppDelegate: UIResponder, UIApplicationDelegate {
// [END signin_delegate]
var window: UIWindow?
func application(_ application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [
UIApplication.LaunchOptionsKey: Any
]?) -> Bool {
// [START firebase_configure]
// Use Firebase library to configure APIs
FirebaseApp.configure()
// [END firebase_configure]
if Auth.auth().currentUser == nil {
window?.rootViewController = SignInViewController()
}
return true
}
@available(iOS 9.0, *)
func application(_ app: UIApplication, open url: URL,
options: [UIApplication.OpenURLOptionsKey: Any]) -> Bool {
guard let sourceApplication =
options[UIApplication.OpenURLOptionsKey.sourceApplication] as? String else {
return false
}
return handleOpenUrl(url, sourceApplication: sourceApplication)
}
@available(iOS 8.0, *)
func application(_ application: UIApplication, open url: URL, sourceApplication: String?,
annotation: Any) -> Bool {
return handleOpenUrl(url, sourceApplication: sourceApplication)
}
func handleOpenUrl(_ url: URL, sourceApplication: String?) -> Bool {
return FUIAuth.defaultAuthUI()?.handleOpen(url, sourceApplication: sourceApplication) ?? false
}
}
```
|
An adverse party is an opposing party in a lawsuit under an adversary system of law. In general, an adverse party is a party against whom judgment is sought or "a party interested in sustaining a judgment or decree." For example, the adverse party for a defendant is the plaintiff.
Adverse party's witnesses
A witness called on behalf of an adverse party is usually an adverse witness. In general, the examination of an adverse party's witness may include leading questions and follows the rules of cross examination.
See also
Adverse
Adverse possession
Hostile witness
References
Legal terminology
|
John McIlwraith may refer to:
John McIlwraith (cricketer) (1857–1938), Australian cricketer
John McIlwraith (businessman) (1828–1902), Scottish-Australian manufacturer and ship owner, brother of Andrew and Thomas McIlwraith
John McIlwraith (commentator) (?–2006), Scottish-Canadian radio broadcaster, columnist, and commentator
|
The Golden Apple Award (1941–2001) was an American award presented to entertainers by the Hollywood Women's Press Club, usually in recognition of behavior rather than performance.
History
The award was presented from 1941 until 2001, when the Hollywood Women's Press Club became inactive. The awards ceremony included Golden Apples to recognize actors for being easy to work with, as well as the Sour Apple Award (not presented in some years) chastising actors for being rude or difficult. Winners of the former include Bob Hope (1941), Mae West (1969) and Billy Crystal (1989) and winners of the latter include Frank Sinatra (1946, 1951, and 1974), Elvis Presley (1966) Joan Rivers (1983), and Dale Robertson (3 times).
From 1941 to 1966, the Golden Apple winners were specifically called "The Most Cooperative Actor/Actress", while the Sour Apple winners were specifically called "The Least Cooperative Actor/Actress". Starting in 1967, the Golden Apple winners were specifically called "The Male/Female Star of the Year", while the Sour Apple winner was called, simply, "The Sour Apple Winner". From 1974 onwards, there were additional—though sporadic—presentations of Golden Apples for "New Star", "New Discovery", "Daytime Star" and "Hollywood Legend".
Louella Parsons Award
The Louella Parsons Award was introduced in 1970. This "Lifetime Achievement" award was named for columnist Louella Parsons, founder of the Hollywood Women's Press Club. Recipients include Danny Thomas (1970), Bob Hope (1975), Henry Winkler (1982), George Sidney (1995), Kirk Douglas (1999), Aaron Spelling (1998), and Liz Smith (2000).
References
External links
Official Database 1941–2001
American film awards
Awards established in 1941
|
John Reginald "Jack" Spratt, Detective Inspector, Nursery Crime Division, Oxford and Berkshire Constabulary, Officer Number 8216. Jack Spratt is the protagonist in a series of alternate history science fiction fantasy novels by Jasper Fforde. He was named after the character from the English nursery rhyme. As revealed in The Big Over Easy, for example, he hates eating fat, and was once married to a woman who ate nothing else (hence, she died).
Character
Spratt is an obvious satire on the general detective stereotype. Whereas famous detectives such as Sam Spade, Philip Marlowe and Sherlock Holmes have been portrayed as confident, successful, substance-abusing loners, Spratt does not have a substance abuse problem, and is happily married with five children. In addition, he is shown in the beginning of The Big Over Easy to be an experienced and accomplished police detective, but low on self-confidence, virtually incapable of securing convictions and never recognized for the ones he does make. The reason for this is that police funding is based on public approval, which is in turn influenced by the news magazine Amazing Crime Stories. This enormously popular "true crime" magazine prints glamorous police cases—usually involving noir clichés like secret societies, mafia assassins and baffling, meticulously planned murders—that are allegedly true and unedited, but actually largely fabricated. It is revealed that early on in Spratt's career, his ambitious and self-obsessed partner Friedland Chymes stole most of the credit for their greatest cases, thereby rising to the top to become one of the most popular detectives in England. Jack, being totally honest and unwilling to cater the media's demand for glamorous hero detectives, was unable or unwilling to stand up for himself; Friedland and Jack have been enemies since. However, as the story progresses it becomes clear that Jack is not only honest, but highly intelligent and a much better detective than Chymes.
Spratt is a Detective Inspector with the Reading, Berkshire "Nursery Crimes Division", with his assistant Sergeant Mary Mary (another nursery rhyme character).
History
Spratt and Mary were originally introduced into the alternate Fforde universe in the Thursday Next novel The Well of Lost Plots (2003) before taking over their own "Nursery Crimes" series:
The Big Over Easy (2005)
The Fourth Bear (2006)
References
Spratt, Jack
|
```xml
/**
* These are fake dom type definitions that rxjs depends on.
* Another solution is to add the 'dom' lib to tsconfig, but that's even worse.
* We don't need dom, as the extension does nothing with the dom (dom = HTML entities and the like).
*/
interface EventTarget { }
interface NodeList { }
interface HTMLCollection { }
interface XMLHttpRequest { }
interface Event { }
interface MessageEvent { }
interface CloseEvent { }
interface WebSocket { }
```
|
```objective-c
/*
* NAppGUI Cross-platform C SDK
* 2015-2024 Francisco Garcia Collado
* MIT Licence
* path_to_url
*
* File: url.h
* path_to_url
*
*/
/* URL parser */
#include "inet.hxx"
__EXTERN_C
_inet_api Url *url_parse(const char_t *url);
_inet_api void url_destroy(Url **url);
_inet_api const char_t *url_scheme(const Url *url);
_inet_api const char_t *url_user(const Url *url);
_inet_api const char_t *url_pass(const Url *url);
_inet_api const char_t *url_host(const Url *url);
_inet_api const char_t *url_path(const Url *url);
_inet_api const char_t *url_params(const Url *url);
_inet_api const char_t *url_query(const Url *url);
_inet_api const char_t *url_fragment(const Url *url);
_inet_api String *url_resource(const Url *url);
_inet_api uint16_t url_port(const Url *url);
__END_C
```
|
Santissimo Nome di Maria may refer to two different churches in Rome:
Santissimo Nome di Maria al Foro Traiano Church
Santissimo Nome di Maria in Via Latina
See also:
Santissimo Nome di Gesù e Maria in Via Lata, a church in Rome
|
The finals and the qualifying heats of the men's 200 metres freestyle event at the 1998 European Short Course Swimming Championships were held on the second day of the competition, on Saturday, 12 December 1998 in Sheffield, England.
Finals
Qualifying Heats
References
Results
Swimsite
F
E
|
Kristina Koljaka (Hoshi) (6 June 1915 – 21 October 2005) was an Albanian sculptor and one of the first women to achieve success in sculpture in Albania.
Early life
Kristina Koljaka was born on June 6, 1915, in the city of Kavajë, west-central Albania to Jani Koljaka, an intellectual who was fluent in 12 foreign languages and Angja Petro Bidoshi. She was the second eldest of the couple's seven children.
Kristina fell in love with art in her early youth and her parents cultivated this passion by providing her with professional artistic training in neighboring Italy.
Education and career
Initially, Koljaka studied at Tirana's Arts Lyceum from 1930 to 1934. A few years later, she enrolled at the Accademia di Belle Arti di Roma from 1938 until 1941, in the studio of Angelo Zanelli, where years prior, the painters Vangjush Mio (1920–1924) and Zef Kolombi (1929–1933) had studied.
Koljaka was a member of the teaching staff at the Jordan Misja Artistic Lyceum along with colleagues Odhise Paskali, Janaq Paço and Sadik Kaceli. She later taught at the Higher Institute of Arts that opened in Tirana in 1960.
She made her début with My Friend (marble, 1941; Rome, private collection). Her success was affirmed with the monumental statue of Vladimir Lenin (bronze, h. 4 m, 1954; Tiranë). She made sculptures on various themes, for example Seedlings (Afforestation) (coloured plaster, 1951), as well as portraits, like the life-size Dr Shiroka (marble, 1956; both Tiranë, A.G.). The gentle plasticity and clear outlines in her work convey a human warmth and awareness of space. The hands and other details of a portrait are often underpinned by a characteristic acumen.
Koljaka is considered among the finest Albanian sculptors and teachers of sculpture. She died on October 21, 2005, at the age of 90.
Notable works
"Shën Gjon Pagëzori i vogël", portrait in toned plaster (1931)
"Eros", portrait of a young girl in basorelief plaster (1931)
"Shipion Afrikani", portrait in plaster (1933)
"Nerina", portrait in clay (1941)
"Pyllëzimi", composed in bronze (1951)
"Gjok Doçi", portrait in plaster (1953)
"Monumenti i Leninit", composed in bronze (1954)
"Dita e parë e shkollës", relief in plaster (1955)
"Fëmijët dhe Pëllumbi", composed in plaster (1955)
"Doktor Shiroka", worked in marble (1956)
"Ali Kelmendi", portrait in bronze (1956)
"Djali me delfin", composed in plaster (1957)
"Kolektivizimi", relief in plaster (1958)
"Ndoc Dedë Marku", portrait in plaster (1963)
"Balerina", composed in plaster (1963)
"Soprano Tefta Tashko Koço", portrait in plaster (1974)
"Justina Shkupi", portrait in toned plaster (1974)
"Dora d'Istria", portrait in plaster (1978)
"Nëna dhe fëmija", composed in plaster (1983)
Recognition
On April 21, 2000, the municipality of Tirana awarded Koljaka with the title "Gratitude of the City of Tirana". The following year, on January 19, 2001, the municipality of Kavajë presented her the title "Honorary Citizen" of the city by calling her " ...an honorable daughter of the city of Kavajë, the first Albanian female sculptor ...". Seven of Koljaka's works are exhibited at the National Museum of Fine Arts in Tirana, covering the years from 1940 to 1974, a time period which entails the rich history of Albanian art of the twentieth century.
Gallery
References
Place of death missing
2005 deaths
1915 births
20th-century Albanian sculptors
21st-century Albanian sculptors
Albanian expatriates in Italy
Sculptors from Kavajë
Albanian women sculptors
20th-century women artists
21st-century women artists
|
```html
<!DOCTYPE html>
<html lang="en">
<head>
<title>three.js webgl - loaders - Draco loader</title>
<style>
body {
font-family: Monospace;
background-color: #000;
color: #fff;
margin: 0px;
overflow: hidden;
}
</style>
</head>
<body>
<div id="page-wrapper">
<h1>Open a draco compressed file (.drc):</h1>
<div>
<input type="file" id="fileInput">
</div>
</div>
<div>
<pre id="decoderType"><pre>
</div>
<div>
<pre id="fileDisplayArea"><pre>
</div>
<script src="path_to_url"></script>
<script src="DRACOLoader.js"></script>
<script src="geometry_helper.js"></script>
<script>
'use strict';
// Configure decoder and create loader.
var dracoLoader = new THREE.DRACOLoader();
// It is recommended to always pull your Draco JavaScript and WASM decoders
// from this URL. Users will benefit from having the Draco decoder in cache
// as more sites start using the static URL.
dracoLoader.setDecoderPath('path_to_url
var camera, cameraTarget, scene, renderer;
function init() {
var container = document.createElement('div');
document.body.appendChild(container);
camera = new THREE.PerspectiveCamera(35, window.innerWidth / window.innerHeight, 1, 15);
camera.position.set(3, 0.15, 3);
cameraTarget = new THREE.Vector3(0, 0, 0);
scene = new THREE.Scene();
scene.fog = new THREE.Fog(0x72645b, 2, 15);
// Ground
var plane = new THREE.Mesh(
new THREE.PlaneBufferGeometry(40, 40),
new THREE.MeshPhongMaterial({color: 0x999999, specular: 0x101010}));
plane.rotation.x = -Math.PI/2;
plane.position.y = -0.5;
scene.add(plane);
plane.receiveShadow = true;
// Lights
scene.add(new THREE.HemisphereLight(0x443333, 0x111122));
addShadowedLight(1, 1, 1, 0xffffff, 1.35);
addShadowedLight(0.5, 1, -1, 0xffaa00, 1);
// renderer
renderer = new THREE.WebGLRenderer({antialias: true});
renderer.setClearColor(scene.fog.color);
renderer.setPixelRatio(window.devicePixelRatio);
renderer.setSize(window.innerWidth, window.innerHeight);
container.appendChild(renderer.domElement);
window.addEventListener('resize', onWindowResize, false);
}
function addShadowedLight(x, y, z, color, intensity) {
var directionalLight = new THREE.DirectionalLight(color, intensity);
directionalLight.position.set(x, y, z);
scene.add(directionalLight);
}
function onWindowResize() {
camera.aspect = window.innerWidth / window.innerHeight;
camera.updateProjectionMatrix();
renderer.setSize(window.innerWidth, window.innerHeight);
}
function animate() {
requestAnimationFrame(animate);
render();
}
function render() {
var timer = Date.now() * 0.0005;
camera.position.x = Math.sin(timer) * 2.5;
camera.position.z = Math.cos(timer) * 2.5;
camera.lookAt(cameraTarget);
renderer.render(scene, camera);
}
window.onload = function() {
var fileInput = document.getElementById('fileInput');
var fileDisplayArea = document.getElementById('fileDisplayArea');
fileInput.onclick = function() {
this.value = '';
}
fileInput.addEventListener('change', function(e) {
var file = fileInput.files[0];
var reader = new FileReader();
reader.onload = function(e) {
dracoLoader.decodeDracoFile(reader.result, function(bufferGeometry) {
if (dracoLoader.decode_time !== undefined) {
fileDisplayArea.innerText = 'Decode time = ' + dracoLoader.decode_time + '\n' +
'Import time = ' + dracoLoader.import_time;
}
var material = new THREE.MeshStandardMaterial({vertexColors: THREE.VertexColors});
var geometry;
// Point cloud does not have face indices.
if (bufferGeometry.index == null) {
geometry = new THREE.Points(bufferGeometry, material);
} else {
if (bufferGeometry.attributes.normal === undefined) {
var geometryHelper = new GeometryHelper();
geometryHelper.computeVertexNormals(bufferGeometry);
}
geometry = new THREE.Mesh(bufferGeometry, material);
}
// Compute range of the geometry coordinates for proper rendering.
bufferGeometry.computeBoundingBox();
var sizeX = bufferGeometry.boundingBox.max.x - bufferGeometry.boundingBox.min.x;
var sizeY = bufferGeometry.boundingBox.max.y - bufferGeometry.boundingBox.min.y;
var sizeZ = bufferGeometry.boundingBox.max.z - bufferGeometry.boundingBox.min.z;
var diagonalSize = Math.sqrt(sizeX * sizeX + sizeY * sizeY + sizeZ * sizeZ);
var scale = 1.0 / diagonalSize;
var midX =
(bufferGeometry.boundingBox.min.x + bufferGeometry.boundingBox.max.x) / 2;
var midY =
(bufferGeometry.boundingBox.min.y + bufferGeometry.boundingBox.max.y) / 2;
var midZ =
(bufferGeometry.boundingBox.min.z + bufferGeometry.boundingBox.max.z) / 2;
geometry.scale.multiplyScalar(scale);
geometry.position.x = -midX * scale;
geometry.position.y = -midY * scale;
geometry.position.z = -midZ * scale;
geometry.castShadow = true;
geometry.receiveShadow = true;
var selectedObject = scene.getObjectByName("my_mesh");
scene.remove(selectedObject);
geometry.name = "my_mesh";
scene.add(geometry);
});
}
reader.readAsArrayBuffer(file);
});
init();
animate();
}
</script>
</body>
</html>
```
|
Boggs Valley () is a glaciated valley, heavily strewn with morainal debris, which indents the east side of the Helliwell Hills between Mount Van der Hoeven and Mount Alford, Victoria Land, Antarctica. The geographical feature was first mapped by the United States Geological Survey from surveys and from U.S. Navy air photos, 1960–1963, and named by the Advisory Committee on Antarctic Names for William J. Boggs, United States Antarctic Research Program biologist who performed his biological observations while situated at McMurdo Station, Hut Point Peninsula, Ross Island, during the summer of 1967–1968. The valley lies situated on the Pennell Coast, a portion of Antarctica lying between Cape Williams and Cape Adare.
References
Valleys of Victoria Land
Pennell Coast
|
Ulrike Liedtke (née Nehrdich, 17 November 1958) is a German musicologist and politician (SPD). From 1991 to 2014 she was founding director of the Musikakademie Rheinsberg. Since 2014 she has been a member of the Landtag of Brandenburg. After her re-election in 2019 she was elected President of the Landtag.
Career
Liedtke was born in Weimar in 1958, the daughter of a conductor and a musicologist. She attended six schools and studied musicology after her Abitur in Stralsund in 1977 at the Karl-Marx-University Leipzig. During her studies in 1980 she became a member of the and the extra choir of the Oper Leipzig. From 1978 to 1985, she worked as a dramaturgical freelancer in the field of booklets and introductions for the Gewandhaus in Leipzig. She also wrote numerous reviews for the Leipzig and Magdeburg regional press. She completed her studies in 1982 with a diploma. In 1985 she was awarded the Promotion A with a thesis Siegfried Matthus – Tendenzen im Schaffen eines Komponisten der DDR (Siegfried Matthus – Tendencies in the Work of a Composer of the GDR).
In 1985 and 1986, Liedtke was music editor for festival and opera broadcasts at the Deutscher Fernsehfunk in Berlin. She was responsible for the concept and editing and presented a series of broadcasts on Neue Musik (21 broadcasts until 1997). In 1986 she moved to the Akademie der Künste der DDR.
After the , she became head of the department for music, theatre, museums and film of the city council. From 1991 to 1993, she worked in the of Brandenburg, responsible for Rheinsberg from September 1991.
From 1991 to 2014 she was founding director of the Musikakademie Rheinsberg. From 1993 she was also managing director and artistic director of the Musikakademie Rheinsberg, also running its Schlosstheater from 2000, with music theatre, ballet and concerts. A focus on works from the 18th century and contemporary music also enabled formats such as performance art. In 2001, the academy was named a "Federal and State Academy". The institution was awarded the critics' prize for music of the Association of German Critics in 2004. In 2006, it received a place of honour at the further education award of the state of Brandenburg.
Liedtke lectured about music theatre, including in 1998/99 at the Hochschule für Musik Franz Liszt, Weimar, and the Hochschule für Musik Hanns Eisler in Berlin. In 2017, she was appointed professor of musicology at the University of Potsdam. Her research is focused on music of the 18th century and contemporary music, also opera and opéra comique, Brandenburg regional music history, and critical editing. She wrote contributions to standard works including Komponisten der Gegenwart, The New Grove Dictionary of Music and Musicians and Die Musik in Geschichte und Gegenwart. She has been a member of the Verband deutscher Schriftstellerinnen und Schriftsteller since 1999.
Liedtke is the mother of two children. Her son was a member of the Leipzig Thomanerchor.
Politics
Liedtke was an independent until the fall of the Berlin Wall in 1989. In 1989 she was then co-founder of the Social Democratic Party in the GDR in Berlin-Hohenschönhausen. Since 1990 she has been a member of the Social Democratic Party of Germany and was a member of the board in Berlin-Hohenschönhausen, , Rheinsberg. From 2016 to 2019 she was chairman of the SPD of Ostprignitz-Ruppin. She is also the spokeswoman of the cultural forum of the .
From 1990 to 2002 she was a member, and temporarily head, of the , Bezirk Hohenschönhausen and Bezirk Lichtenberg, respectively. In May 2019 she became a city councillor in Rheinsberg. She is the leader of the SPD parliamentary group.
In the 2014 Brandenburg state elections she won a direct mandate in the (Constituency 3). She defended her mandate with 23.6 percent of the first votes in the 2019 state elections, and on 25 September 2019 was elected president of the state parliament with 77 of 88 votes at the constituent session.
Memberships
From 1995 to 1997 Liedtke was a member of the National Committee of the UNESCO Cultural Decade. From 1997 until the rotation in 2009 she was a member and (temporarily) chairperson of the of the Ostdeutscher Rundfunk Brandenburg and the Rundfunk Berlin-Brandenburg. After having been vice-president of the e.V. since 1995, she was elected as its president in 2016. From 2000 to 2002 she was the spokeswoman of the Arbeitskreis der Musikbildungsstätten in Deutschland. In 2000 she became a member of the executive committee, and in 2005 also a member of the supervisory board, of the Deutscher Musikrat. From 2000 to 2005 she was an expert for the Culture 2000 funding programme of the European Commission. From 2000 to 2017 she was an author and chairperson of the advisory board of the CD documentation of the DMR. From 2001 to 2017 she was an author and member of the editorial board of the music magazine . In addition, since 2009 she has been the chairperson of the conference of the state music councils in the Deutscher Musikrat (DMR) and since 2013 vice president and member of the supervisory board of the DMR. Liedtke was a member of the board of trustees of Musikfonds e.V. from 2016 until 2020, for which she did the conceptual groundwork. The German Council of Cultural Advisors elected Liedtke in 2019 as one of two vice presidents of the Deutscher Kulturrat. She is an individual member of the Brandenburgischer Chorverband, as well as chairwoman of Tanz & Art Rheinsberg and the Ferdinand Möhring Gesellschaft.
Honours
Hans Stieber Prize (1988)
Order of Merit of the Federal Republic of Germany am Bande (2001)
Kunstpreis des Landes Brandenburg (main prize) (2001)
Leo-Wistuba-Medaille of the Brandenburgischer Chorverband (2001)
Ehrennadel of the Landesmusikrat Brandenburg (2003)
"Kritikerpreis für Musik 2004" for the Rheinsberg Music Academy of the Association of German Critics
Place of Honour "Further Education Prize of the State of Brandenburg" for the Rheinsberg Music Academy (2006)
Integrationspreis of the Landrat Ostprignitz-Ruppin for Tanz & Art Rheinsberg (2016)
Integrationspreis of the Bundespräsident for the Rheinsberg model (2017)
Publications
Liedtke wrote composers' biographies for encyclopedias, including those of Gerd Domhardt, Siegfried Matthus, Günter Neubert and Karl Ottomar Treibmann:
With Gert Belkius (ed.): Musik für die Oper? Mit Komponisten im Gespräch. Henschel-Verlag, Berlin 1990, .
With Helge Bartholomäus (ed.): Festschrift 10 Jahre Berliner Fagottquartett, 5 Jahre Meisterkurse der Musikakademie Rheinsberg. Musik- und Buchverlag Feja, Berlin 1996, .
Matthus, Siegfried, in Komponisten der Gegenwart, edited by Hans-Werner Heister and Wolfgang Sparrer, edition text + kritik, München 1996
(Ed.): Jeder nach seiner Fasson. Musikalische Neuansätze heute. Eine Veröffentlichung der Musikakademie Rheinsberg. Pfau, Saarbrücken 1997, .
Landesmusikplan Brandenburg. Landesmusikrat Brandenburg, Senftenberg 1997/2000.
Domhardt, Gerd, Siegfried, in Komponisten der Gegenwart, edited by Hans-Werner Heister and Wolfgang Sparrer, edition text + kritik, Munich 1996
Karl Ottomar Treibmann, in Komponisten der Gegenwart, ed. by Hans-Werner Heister and Wolfgang Sparrer, edition text + kritik, Munich 1998
Treibmann, Karl Ottomar, in The New Grove Dictionary of Music and Musicians, 1998
Domhardt, Gerd, in The New Grove Dictionary of Music and Musicians, 1998
With Claudia Schurz (ed.): Das Theater des Prinzen Heinrich. Ein Lesebuch zum Schloßtheater Rheinsberg. Hofmeister, Leipzig 2000, .
Günter Neubert, in Komponisten der Gegenwart, ed. by Hans-Werner Heister and Wolfgang Sparrer, edition text + kritik, München 2003
Thomas Heyn, in Komponisten der Gegenwart, ed. by Hans-Werner Heister and Wolfgang Sparrer, edition text + kritik, Munich 2004 Karl Ottomar Treibmann: Klangwanderungen. Kamprad, Altenburg 2004, .
(ed.): Die Rheinsberger Hofkapelle von Friedrich II. Musiker auf dem Weg zum Berliner „Capell-Bedienten“. Veröffentlichung der Musikakademie Rheinsberg GmbH. 2nd revised edition, Hofmeister, Leipzig, 2005, .
(ed.): Frau Musica heute. Konzepte für Kompositionen. Veröffentlichung der Musikakademie Rheinsberg gGmbh. Hofmeister, Leipzig 2005, .
Contributions to Lothar Voigtländer, Wilhelm Weismann, Walter Zimmermann: Die Musik in Geschichte und Gegenwart (MGG), Bärenreiter, Kassel 2007
Contributions to Romely Pfund, Annette Schlünz, Juliane Klein, Genderhandbuch, ed. by Annette Kreutziger-Herr and Melanie Unseld, Bärenreiter Kassel, 2010, .
Ich bin Komponist. Friedrich II. als Musiker. Ries & Erler, Berlin 2012, .
Leidenschaftliche Bekenntnisse, Erlebnisse mit Musik von Lothar Voigtländer, in: Ein Prisma Ostdeutscher Musik, ed. by Albrecht von Massow, Thomas Grysko and Josephine Orkno, Böhlau-Verlag Cologne, Weimar, Vienna, 2015, , .
hören: multisensorial, in Internationales Klangkunstfest Berlin 2014, Jubiläumsausgabe with DVD 2004–2014, ed. by Thomas Gerwin, Berlin 2015, .
Musik von Anfang an, in Wolfgang Kurth: Musikerziehung. Lehrbuch für Staatlich anerkannte Erzieher, Facherzieher für Musik und andere Sozialpädagogische Berufe in Ausbildung und Studium, Westermann Braunschweig 2019, .
Rheinsberg ist schön, Das Auf und Ab und neue Aufmerksamkeit für den ländlichen Raum, in Ein schöner Land'', Loccumer Protokolle 13/2018, ed. by Albert Drews, Rehburg-Loccum 2019, . .
References
External links
Ulrike Liedke abgeordnetenwatch.de
Ulrike Liedtke SPD fraction Brandenburg
Literatur von Ulrike Liedtke Bibliography of Music Literature
Ulrike Liedtke Deutscher Musikrat
21st-century German musicologists
German women musicologists
20th-century German musicologists
German women editors
Music journalists
German women television journalists
German television journalists
German women journalists
Leipzig University alumni
Academic staff of the University of Potsdam
Recipients of the Cross of the Order of Merit of the Federal Republic of Germany
Social Democratic Party of Germany politicians
1958 births
Living people
Politicians from Weimar
Writers from Weimar
|
```kotlin
package com.cyl.musiclake.ui.download.ui
import com.cyl.musiclake.common.Constants
import com.cyl.musiclake.event.FileEvent
import com.cyl.musiclake.event.PlaylistEvent
import com.cyl.musiclake.ui.base.BasePresenter
import com.cyl.musiclake.ui.download.DownloadLoader
import com.cyl.musiclake.utils.LogUtil
import org.greenrobot.eventbus.EventBus
import org.greenrobot.eventbus.Subscribe
import org.greenrobot.eventbus.ThreadMode
import org.jetbrains.anko.doAsync
import org.jetbrains.anko.uiThread
import javax.inject.Inject
/**
* Author : D22434
* version : 2018/1/24
* function :
*/
class DownloadPresenter @Inject
constructor() : BasePresenter<DownloadContract.View>(), DownloadContract.Presenter {
var isCache = true
override fun attachView(view: DownloadContract.View) {
super.attachView(view)
EventBus.getDefault().register(this)
}
@Subscribe(threadMode = ThreadMode.MAIN)
fun reloadDownloadMusic(event: FileEvent) {
loadDownloadMusic(isCache)
loadDownloading()
}
override fun detachView() {
super.detachView()
EventBus.getDefault().unregister(this)
}
override fun loadDownloadMusic(isCache: Boolean) {
this.isCache = isCache
mView?.showLoading()
doAsync {
val data = DownloadLoader.getDownloadList(isCache)
uiThread {
mView?.showSongs(data)
mView?.hideLoading()
}
}
}
override fun loadDownloading() {
mView?.showLoading()
doAsync {
val data = DownloadLoader.getDownloadingList()
uiThread {
mView?.showDownloadList(data)
mView?.hideLoading()
}
}
}
fun deleteAll() {
mView?.showLoading()
doAsync {
val data = DownloadLoader.clearDownloadList()
uiThread {
LogUtil.d("DownloadLoader", "data =${data.size}")
EventBus.getDefault().post(PlaylistEvent(Constants.PLAYLIST_DOWNLOAD_ID))
mView?.showSongs(data)
mView?.hideLoading()
}
}
}
}
```
|
The Cephalonia Prefecture () was a prefecture in Greece, containing the Ionian islands of Cephalonia and Ithaca. In 2011 the prefectural self-government was abolished and the territory is now covered by the regional units of Cephalonia and Ithaca.
Provinces
It was previously divided into 3 eparchies (provinces), and one independent municipality, Ithaca:
Krani Province - Argostoli
Paliki Province - Lixouri
Sami Province - Sami
Municipalities
The prefecture was divided into eight municipalities and one community:
Argostoli
Eleios-Pronnoi
Erisos
Ithaca
Leivathos
Paliki
Pylaros
Sami
Omala (Community)
All of the preceding are on the Cephalonia island, except Ithaca, which is on its own island of the same name.
See also
Cephalonia (constituency)
External links
Official website
Prefectures of Greece
Geography of the Ionian Islands (region)
History of Cephalonia
Ithaca
1864 establishments in Greece
States and territories established in 1864
2010 disestablishments in Greece
States and territories disestablished in 2010
|
Charles Kirkpatrick (29 December 1894 Lafayette, Indiana – 4 May 1975 Lafayette, Indiana) was an American racecar driver.
Indianapolis 500 results
Source:
References
Indianapolis 500 drivers
1894 births
1975 deaths
Sportspeople from Lafayette, Indiana
Racing drivers from Indiana
|
Michael Bookie (September 12, 1904 – October 12, 1944) was a U.S. soccer midfielder. He was a member of the U.S. team at the 1930 FIFA World Cup and is a member of the National Soccer Hall of Fame.
Professional career
Bookie began his athletic career as a minor league baseball player playing shortstop in Pittsburgh. He then joined several amateur soccer clubs, including Jeannette F.C. in western Pennsylvania before signing with the Boston Soccer Club of the American Soccer League in 1924. In January 1925, he moved to Vestaburg SC where he finished out the season. In the fall of 1925, returned to the ASL, this time with the New Bedford Whalers. He saw time in only four games with the Whalers. From February through April 1927, he played for American Hungarian. In December 1929, he moved to Cleveland Slavia of the Mid-West Professional League. Bookie was with Slavia when selected to the U.S. 1930 World Cup team. In March 1931, he left Cleveland Slavia. He may have played for other Cleveland teams before finishing his career with Pittsburgh Curry Silver Tops.
National team
While selected to the U.S. roster for the 1930 FIFA World Cup, Bookie never entered a game in the cup. After Argentina eliminated the U.S. in the semifinals, the U.S. went on a tour of Uruguay and Brazil. In the only official international game of the tour, Bookie earned his only national team cap in a 4–3 loss to Brazil.
He enlisted in the Army in 1944 and died after being accidentally killed by machine gunfire during a training simulation.
He was inducted into the National Soccer Hall of Fame in 1986.
References
External links
National Soccer Hall of Fame profile
1904 births
1944 deaths
1930 FIFA World Cup players
American men's soccer players
United States men's international soccer players
American Soccer League (1921–1933) players
Boston Soccer Club players
New Bedford Whalers players
National Soccer Hall of Fame members
Cleveland Slavia players
Soccer players from Pittsburgh
Men's association football forwards
United States Army Air Forces personnel killed in World War II
Accidental deaths in Florida
Deaths by firearm in Florida
United States Army Air Forces soldiers
Firearm accident victims in the United States
|
```go
//
//
// path_to_url
//
// Unless required by applicable law or agreed to in writing, software
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
package handler
import (
"context"
"fmt"
"sort"
"strings"
"github.com/go-openapi/runtime/middleware"
"github.com/goharbor/harbor/src/common"
"github.com/goharbor/harbor/src/common/rbac"
"github.com/goharbor/harbor/src/common/utils"
ugCtl "github.com/goharbor/harbor/src/controller/usergroup"
"github.com/goharbor/harbor/src/lib/config"
"github.com/goharbor/harbor/src/lib/errors"
"github.com/goharbor/harbor/src/lib/q"
"github.com/goharbor/harbor/src/pkg/usergroup/model"
"github.com/goharbor/harbor/src/server/v2.0/models"
operation "github.com/goharbor/harbor/src/server/v2.0/restapi/operations/usergroup"
)
type userGroupAPI struct {
BaseAPI
ctl ugCtl.Controller
}
func newUserGroupAPI() *userGroupAPI {
return &userGroupAPI{ctl: ugCtl.Ctl}
}
func (u *userGroupAPI) CreateUserGroup(ctx context.Context, params operation.CreateUserGroupParams) middleware.Responder {
if err := u.RequireSystemAccess(ctx, rbac.ActionCreate, rbac.ResourceUserGroup); err != nil {
return u.SendError(ctx, err)
}
if params.Usergroup == nil {
return operation.NewCreateUserGroupBadRequest()
}
if len(params.Usergroup.GroupName) == 0 {
return operation.NewCreateUserGroupBadRequest()
}
ug := model.UserGroup{
GroupName: params.Usergroup.GroupName,
GroupType: int(params.Usergroup.GroupType),
LdapGroupDN: params.Usergroup.LdapGroupDn,
}
id, err := u.ctl.Create(ctx, ug)
if err != nil {
return u.SendError(ctx, err)
}
location := fmt.Sprintf("%s/%d", strings.TrimSuffix(params.HTTPRequest.URL.Path, "/"), id)
return operation.NewCreateUserGroupCreated().WithLocation(location)
}
func (u *userGroupAPI) DeleteUserGroup(ctx context.Context, params operation.DeleteUserGroupParams) middleware.Responder {
if err := u.RequireSystemAccess(ctx, rbac.ActionDelete, rbac.ResourceUserGroup); err != nil {
return u.SendError(ctx, err)
}
if params.GroupID <= 0 {
return u.SendError(ctx, errors.BadRequestError(nil).WithMessage("the group id should be provided"))
}
err := u.ctl.Delete(ctx, int(params.GroupID))
if err != nil {
return u.SendError(ctx, err)
}
return operation.NewDeleteUserGroupOK()
}
func (u *userGroupAPI) GetUserGroup(ctx context.Context, params operation.GetUserGroupParams) middleware.Responder {
if err := u.RequireSystemAccess(ctx, rbac.ActionRead, rbac.ResourceUserGroup); err != nil {
return u.SendError(ctx, err)
}
if params.GroupID <= 0 {
return u.SendError(ctx, errors.BadRequestError(nil).WithMessage("the group id should be provided"))
}
ug, err := u.ctl.Get(ctx, int(params.GroupID))
if err != nil {
return u.SendError(ctx, err)
}
if ug == nil {
return u.SendError(ctx, errors.NotFoundError(nil).WithMessage("the user group with id %v is not found", params.GroupID))
}
userGroup := &models.UserGroup{
GroupName: ug.GroupName,
GroupType: int64(ug.GroupType),
LdapGroupDn: ug.LdapGroupDN,
}
return operation.NewGetUserGroupOK().WithPayload(userGroup)
}
func (u *userGroupAPI) ListUserGroups(ctx context.Context, params operation.ListUserGroupsParams) middleware.Responder {
if err := u.RequireSystemAccess(ctx, rbac.ActionList, rbac.ResourceUserGroup); err != nil {
return u.SendError(ctx, err)
}
authMode, err := config.AuthMode(ctx)
if err != nil {
return u.SendError(ctx, err)
}
query, err := u.BuildQuery(ctx, nil, nil, params.Page, params.PageSize)
if err != nil {
return u.SendError(ctx, err)
}
if params.GroupName != nil && len(*params.GroupName) > 0 {
query.Keywords["GroupName"] = &q.FuzzyMatchValue{Value: *params.GroupName}
}
switch authMode {
case common.LDAPAuth:
query.Keywords["GroupType"] = common.LDAPGroupType
if params.LdapGroupDn != nil && len(*params.LdapGroupDn) > 0 {
query.Keywords["LdapGroupDN"] = *params.LdapGroupDn
}
case common.HTTPAuth:
query.Keywords["GroupType"] = common.HTTPGroupType
}
total, err := u.ctl.Count(ctx, query)
if err != nil {
return u.SendError(ctx, err)
}
if total == 0 {
return operation.NewListUserGroupsOK().WithXTotalCount(0).WithPayload([]*models.UserGroup{})
}
ug, err := u.ctl.List(ctx, query)
if err != nil {
return u.SendError(ctx, err)
}
return operation.NewListUserGroupsOK().
WithXTotalCount(total).
WithPayload(getUserGroupResp(ug)).
WithLink(u.Links(ctx, params.HTTPRequest.URL, total, query.PageNumber, query.PageSize).String())
}
func getUserGroupResp(ug []*model.UserGroup) []*models.UserGroup {
result := make([]*models.UserGroup, 0)
for _, u := range ug {
ug := &models.UserGroup{
GroupName: u.GroupName,
GroupType: int64(u.GroupType),
LdapGroupDn: u.LdapGroupDN,
ID: int64(u.ID),
}
result = append(result, ug)
}
return result
}
func getUserGroupSearchItem(ug []*model.UserGroup) []*models.UserGroupSearchItem {
result := make([]*models.UserGroupSearchItem, 0)
for _, u := range ug {
ug := &models.UserGroupSearchItem{
GroupName: u.GroupName,
GroupType: int64(u.GroupType),
ID: int64(u.ID),
}
result = append(result, ug)
}
return result
}
func (u *userGroupAPI) UpdateUserGroup(ctx context.Context, params operation.UpdateUserGroupParams) middleware.Responder {
if err := u.RequireSystemAccess(ctx, rbac.ActionUpdate, rbac.ResourceUserGroup); err != nil {
return u.SendError(ctx, err)
}
if params.GroupID <= 0 {
return operation.NewUpdateUserGroupBadRequest()
}
if params.Usergroup == nil || len(params.Usergroup.GroupName) == 0 {
return operation.NewUpdateUserGroupBadRequest()
}
err := u.ctl.Update(ctx, int(params.GroupID), params.Usergroup.GroupName)
if err != nil {
return u.SendError(ctx, err)
}
return operation.NewUpdateUserGroupOK()
}
func (u *userGroupAPI) SearchUserGroups(ctx context.Context, params operation.SearchUserGroupsParams) middleware.Responder {
if err := u.RequireAuthenticated(ctx); err != nil {
return u.SendError(ctx, err)
}
query, err := u.BuildQuery(ctx, nil, nil, params.Page, params.PageSize)
if err != nil {
return u.SendError(ctx, err)
}
if len(params.Groupname) == 0 {
return u.SendError(ctx, errors.BadRequestError(nil).WithMessage("need to provide groupname to search user group"))
}
query.Keywords["GroupName"] = &q.FuzzyMatchValue{Value: params.Groupname}
total, err := u.ctl.Count(ctx, query)
if err != nil {
return u.SendError(ctx, err)
}
if total == 0 {
return operation.NewSearchUserGroupsOK().WithXTotalCount(0).WithPayload([]*models.UserGroupSearchItem{})
}
ug, err := u.ctl.List(ctx, query)
if err != nil {
return u.SendError(ctx, err)
}
result := getUserGroupSearchItem(ug)
sort.Slice(result, func(i, j int) bool {
return utils.MostMatchSorter(result[i].GroupName, result[j].GroupName, params.Groupname)
})
return operation.NewSearchUserGroupsOK().WithXTotalCount(total).
WithPayload(result).
WithLink(u.Links(ctx, params.HTTPRequest.URL, total, query.PageNumber, query.PageSize).String())
}
```
|
```go
package streamformatter
import (
"encoding/json"
"io"
"github.com/docker/docker/pkg/jsonmessage"
)
type streamWriter struct {
io.Writer
lineFormat func([]byte) string
}
func (sw *streamWriter) Write(buf []byte) (int, error) {
formattedBuf := sw.format(buf)
n, err := sw.Writer.Write(formattedBuf)
if n != len(formattedBuf) {
return n, io.ErrShortWrite
}
return len(buf), err
}
func (sw *streamWriter) format(buf []byte) []byte {
msg := &jsonmessage.JSONMessage{Stream: sw.lineFormat(buf)}
b, err := json.Marshal(msg)
if err != nil {
return FormatError(err)
}
return appendNewline(b)
}
// NewStdoutWriter returns a writer which formats the output as json message
// representing stdout lines
func NewStdoutWriter(out io.Writer) io.Writer {
return &streamWriter{Writer: out, lineFormat: func(buf []byte) string {
return string(buf)
}}
}
// NewStderrWriter returns a writer which formats the output as json message
// representing stderr lines
func NewStderrWriter(out io.Writer) io.Writer {
return &streamWriter{Writer: out, lineFormat: func(buf []byte) string {
return "\033[91m" + string(buf) + "\033[0m"
}}
}
```
|
```css
.has-switch{display:inline-block;cursor:pointer;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px;border:1px solid;border-color:rgba(0,0,0,.1) rgba(0,0,0,.1) rgba(0,0,0,.25);position:relative;text-align:left;overflow:hidden;line-height:8px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;vertical-align:middle;min-width:100px}.has-switch.switch-mini{min-width:72px}.has-switch.switch-mini i.switch-mini-icons{height:1.2em;line-height:9px;vertical-align:text-top;text-align:center;transform:scale(.6);margin-top:-1px;margin-bottom:-1px}.has-switch.switch-small{min-width:80px}.has-switch.switch-large{min-width:120px}.has-switch.deactivate{opacity:.5;cursor:default!important}.has-switch.deactivate label,.has-switch.deactivate span{cursor:default!important}.has-switch>div{display:inline-block;width:150%;position:relative;top:0}.has-switch>div.switch-animate{-webkit-transition:left .5s;-moz-transition:left .5s;-o-transition:left .5s;transition:left .5s}.has-switch>div.switch-off{left:-50%}.has-switch>div.switch-on{left:0}.has-switch input[type=checkbox],.has-switch input[type=radio]{display:none}.has-switch label,.has-switch span{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;cursor:pointer;position:relative;display:inline-block;height:100%;padding-bottom:4px;padding-top:4px;font-size:14px;line-height:20px}.has-switch label.switch-mini,.has-switch span.switch-mini{padding-bottom:4px;padding-top:4px;font-size:10px;line-height:9px}.has-switch label.switch-small,.has-switch span.switch-small{padding-bottom:3px;padding-top:3px;font-size:12px;line-height:18px}.has-switch label.switch-large,.has-switch span.switch-large{padding-bottom:9px;padding-top:9px;font-size:16px;line-height:normal}.has-switch label{text-align:center;margin-top:-1px;margin-bottom:-1px;z-index:100;width:34%;border-left:1px solid #ccc;border-right:1px solid #ccc;color:#333;text-shadow:0 -1px 0 rgba(0,0,0,.25);background-color:#f5f5f5;background-image:-moz-linear-gradient(top,#fff,#e6e6e6);background-image:-webkit-gradient(linear,0 0,0 100%,from(#fff),to(#e6e6e6));background-image:-webkit-linear-gradient(top,#fff,#e6e6e6);background-image:-o-linear-gradient(top,#fff,#e6e6e6);background-image:linear-gradient(to bottom,#fff,#e6e6e6);background-repeat:repeat-x;border-color:#e6e6e6 #e6e6e6 #bfbfbf;border-color:rgba(0,0,0,.1) rgba(0,0,0,.1) rgba(0,0,0,.25)}.has-switch label.active,.has-switch label.disabled,.has-switch label:active,.has-switch label:focus,.has-switch label:hover,.has-switch label[disabled]{color:#333;background-color:#e6e6e6}.has-switch label i{color:#000;text-shadow:0 1px 0 #fff;line-height:18px;pointer-events:none}.has-switch span{text-align:center;z-index:1;width:33%}.has-switch span.switch-left{-webkit-border-top-left-radius:4px;-moz-border-radius-topleft:4px;border-top-left-radius:4px;-webkit-border-bottom-left-radius:4px;-moz-border-radius-bottomleft:4px;border-bottom-left-radius:4px}.has-switch span.switch-right{color:#333;text-shadow:0 1px 1px rgba(255,255,255,.75);background-color:#f0f0f0;background-image:-moz-linear-gradient(top,#e6e6e6,#fff);background-image:-webkit-gradient(linear,0 0,0 100%,from(#e6e6e6),to(#fff));background-image:-webkit-linear-gradient(top,#e6e6e6,#fff);background-image:-o-linear-gradient(top,#e6e6e6,#fff);background-image:linear-gradient(to bottom,#e6e6e6,#fff);background-repeat:repeat-x;border-color:#fff #fff #d9d9d9;border-color:rgba(0,0,0,.1) rgba(0,0,0,.1) rgba(0,0,0,.25)}.has-switch span.switch-right.active,.has-switch span.switch-right.disabled,.has-switch span.switch-right:active,.has-switch span.switch-right:focus,.has-switch span.switch-right:hover,.has-switch span.switch-right[disabled]{color:#333;background-color:#fff}.has-switch span.switch-left,.has-switch span.switch-primary{color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,.25);background-color:#005fcc;background-image:-moz-linear-gradient(top,#04c,#08c);background-image:-webkit-gradient(linear,0 0,0 100%,from(#04c),to(#08c));background-image:-webkit-linear-gradient(top,#04c,#08c);background-image:-o-linear-gradient(top,#04c,#08c);background-image:linear-gradient(to bottom,#04c,#08c);background-repeat:repeat-x;border-color:#08c #08c #005580;border-color:rgba(0,0,0,.1) rgba(0,0,0,.1) rgba(0,0,0,.25)}.has-switch span.switch-left.active,.has-switch span.switch-left.disabled,.has-switch span.switch-left:active,.has-switch span.switch-left:focus,.has-switch span.switch-left:hover,.has-switch span.switch-left[disabled],.has-switch span.switch-primary.active,.has-switch span.switch-primary.disabled,.has-switch span.switch-primary:active,.has-switch span.switch-primary:focus,.has-switch span.switch-primary:hover,.has-switch span.switch-primary[disabled]{color:#fff;background-color:#08c}.has-switch span.switch-info{color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,.25);background-color:#41a7c5;background-image:-moz-linear-gradient(top,#2f96b4,#5bc0de);background-image:-webkit-gradient(linear,0 0,0 100%,from(#2f96b4),to(#5bc0de));background-image:-webkit-linear-gradient(top,#2f96b4,#5bc0de);background-image:-o-linear-gradient(top,#2f96b4,#5bc0de);background-image:linear-gradient(to bottom,#2f96b4,#5bc0de);background-repeat:repeat-x;border-color:#5bc0de #5bc0de #28a1c5;border-color:rgba(0,0,0,.1) rgba(0,0,0,.1) rgba(0,0,0,.25)}.has-switch span.switch-info.active,.has-switch span.switch-info.disabled,.has-switch span.switch-info:active,.has-switch span.switch-info:focus,.has-switch span.switch-info:hover,.has-switch span.switch-info[disabled]{color:#fff;background-color:#5bc0de}.has-switch span.switch-success{color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,.25);background-color:#58b058;background-image:-moz-linear-gradient(top,#51a351,#62c462);background-image:-webkit-gradient(linear,0 0,0 100%,from(#51a351),to(#62c462));background-image:-webkit-linear-gradient(top,#51a351,#62c462);background-image:-o-linear-gradient(top,#51a351,#62c462);background-image:linear-gradient(to bottom,#51a351,#62c462);background-repeat:repeat-x;border-color:#62c462 #62c462 #3b9e3b;border-color:rgba(0,0,0,.1) rgba(0,0,0,.1) rgba(0,0,0,.25)}.has-switch span.switch-success.active,.has-switch span.switch-success.disabled,.has-switch span.switch-success:active,.has-switch span.switch-success:focus,.has-switch span.switch-success:hover,.has-switch span.switch-success[disabled]{color:#fff;background-color:#62c462}.has-switch span.switch-warning{color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,.25);background-color:#f9a123;background-image:-moz-linear-gradient(top,#f89406,#fbb450);background-image:-webkit-gradient(linear,0 0,0 100%,from(#f89406),to(#fbb450));background-image:-webkit-linear-gradient(top,#f89406,#fbb450);background-image:-o-linear-gradient(top,#f89406,#fbb450);background-image:linear-gradient(to bottom,#f89406,#fbb450);background-repeat:repeat-x;border-color:#fbb450 #fbb450 #f89406;border-color:rgba(0,0,0,.1) rgba(0,0,0,.1) rgba(0,0,0,.25)}.has-switch span.switch-warning.active,.has-switch span.switch-warning.disabled,.has-switch span.switch-warning:active,.has-switch span.switch-warning:focus,.has-switch span.switch-warning:hover,.has-switch span.switch-warning[disabled]{color:#fff;background-color:#fbb450}.has-switch span.switch-danger{color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,.25);background-color:#d14641;background-image:-moz-linear-gradient(top,#bd362f,#ee5f5b);background-image:-webkit-gradient(linear,0 0,0 100%,from(#bd362f),to(#ee5f5b));background-image:-webkit-linear-gradient(top,#bd362f,#ee5f5b);background-image:-o-linear-gradient(top,#bd362f,#ee5f5b);background-image:linear-gradient(to bottom,#bd362f,#ee5f5b);background-repeat:repeat-x;border-color:#ee5f5b #ee5f5b #e51d18;border-color:rgba(0,0,0,.1) rgba(0,0,0,.1) rgba(0,0,0,.25)}.has-switch span.switch-danger.active,.has-switch span.switch-danger.disabled,.has-switch span.switch-danger:active,.has-switch span.switch-danger:focus,.has-switch span.switch-danger:hover,.has-switch span.switch-danger[disabled]{color:#fff;background-color:#ee5f5b}.has-switch span.switch-default{color:#333;text-shadow:0 1px 1px rgba(255,255,255,.75);background-color:#f0f0f0;background-image:-moz-linear-gradient(top,#e6e6e6,#fff);background-image:-webkit-gradient(linear,0 0,0 100%,from(#e6e6e6),to(#fff));background-image:-webkit-linear-gradient(top,#e6e6e6,#fff);background-image:-o-linear-gradient(top,#e6e6e6,#fff);background-image:linear-gradient(to bottom,#e6e6e6,#fff);background-repeat:repeat-x;border-color:#fff #fff #d9d9d9;border-color:rgba(0,0,0,.1) rgba(0,0,0,.1) rgba(0,0,0,.25)}.has-switch span.switch-default.active,.has-switch span.switch-default.disabled,.has-switch span.switch-default:active,.has-switch span.switch-default:focus,.has-switch span.switch-default:hover,.has-switch span.switch-default[disabled]{color:#333;background-color:#fff}
```
|
```rust
/*
*
* This software may be used and distributed according to the terms of the
*/
use std::sync::Arc;
use std::sync::Mutex;
use anyhow::anyhow;
use anyhow::Context;
use anyhow::Error;
use anyhow::Result;
use bytes::Bytes;
use connection_security_checker::ConnectionSecurityChecker;
use context::LoggingContainer;
use context::SessionContainer;
use context::SessionId;
use failure_ext::SlogKVError;
use fbinit::FacebookInit;
use futures::channel::mpsc;
use futures::future::TryFutureExt;
use futures::sink::SinkExt;
use futures::stream::StreamExt;
use futures::stream::TryStreamExt;
use futures_stats::TimedFutureExt;
use hgproto::sshproto;
use hgproto::HgProtoHandler;
use maplit::hashmap;
use maplit::hashset;
use mononoke_api::Mononoke;
use mononoke_api::Repo;
use mononoke_configs::MononokeConfigs;
use qps::Qps;
use rate_limiting::Metric;
use rate_limiting::RateLimitEnvironment;
use repo_client::RepoClient;
use repo_permission_checker::RepoPermissionCheckerRef;
use scribe_ext::Scribe;
use slog::error;
use slog::o;
use slog::Drain;
use slog::Level;
use slog::Logger;
use slog_ext::SimpleFormatWithError;
use slog_kvfilter::KVFilter;
use sshrelay::SenderBytesWrite;
use sshrelay::Stdio;
use stats::prelude::*;
use time_ext::DurationExt;
use crate::errors::ErrorKind;
use crate::repo_handlers::repo_handler;
use crate::repo_handlers::RepoHandler;
define_stats! {
prefix = "mononoke.request_handler";
wireproto_ms:
histogram(500, 0, 100_000, Average, Sum, Count; P 5; P 25; P 50; P 75; P 95; P 97; P 99),
request_success: timeseries(Rate, Sum),
request_failure: timeseries(Rate, Sum),
request_outcome_permille: timeseries(Average),
}
pub async fn request_handler(
fb: FacebookInit,
reponame: String,
mononoke: Arc<Mononoke<Repo>>,
configs: Arc<MononokeConfigs>,
_security_checker: &ConnectionSecurityChecker,
stdio: Stdio,
rate_limiter: Option<RateLimitEnvironment>,
scribe: Scribe,
qps: Option<Arc<Qps>>,
readonly: bool,
) -> Result<()> {
let Stdio {
stdin,
stdout,
stderr,
metadata,
} = stdio;
let session_id = metadata.session_id();
// We don't have a repository yet, so create without server drain
let conn_log = create_conn_logger(stderr.clone(), None, Some(session_id));
let handler = repo_handler(mononoke, &reponame).with_context(|| {
error!(
conn_log,
"Requested repo \"{}\" does not exist or is disabled", &reponame;
"remote" => "true"
);
anyhow!("Unknown Repo: {}", &reponame)
})?;
let RepoHandler {
logger,
mut scuba,
repo,
maybe_push_redirector_args,
repo_client_knobs,
maybe_backup_repo_source,
} = handler;
// Upgrade log to include server drain
let conn_log = create_conn_logger(stderr.clone(), Some(logger), Some(session_id));
scuba = scuba.with_seq("seq");
scuba.add("repo", reponame);
if let Some(config_info) = configs.config_info().as_ref() {
scuba.add("config_store_version", config_info.content_hash.clone());
scuba.add("config_store_last_updated_at", config_info.last_updated_at);
}
scuba.add_metadata(&metadata);
scuba.sample_for_identities(metadata.identities());
let rate_limiter = rate_limiter.map(|r| r.get_rate_limiter());
if let Some(ref rate_limiter) = rate_limiter {
if let Err(err) = {
let main_client_id = metadata
.client_info()
.and_then(|client_info| client_info.request_info.clone())
.and_then(|request_info| request_info.main_id);
rate_limiter.check_load_shed(metadata.identities(), main_client_id.as_deref())
} {
scuba.log_with_msg("Request rejected due to load shedding", format!("{}", err));
error!(conn_log, "Request rejected due to load shedding: {}", err; "remote" => "true");
return Err(err.into());
}
}
let is_allowed_to_repo = repo
.repo_permission_checker()
.check_if_read_access_allowed(metadata.identities())
.await;
if !is_allowed_to_repo {
let err: Error = ErrorKind::AuthorizationFailed.into();
scuba.log_with_msg("Authorization failed", format!("{}", err));
error!(conn_log, "Authorization failed: {}", err; "remote" => "true");
return Err(err);
}
// Info per wireproto command within this session
let wireproto_calls = Arc::new(Mutex::new(Vec::new()));
scuba.log_with_msg("Connection established", None);
let session_builder = SessionContainer::builder(fb)
.metadata(metadata.clone())
.readonly(readonly)
.rate_limiter(rate_limiter);
let session = session_builder.build();
let mut logging = LoggingContainer::new(fb, conn_log.clone(), scuba.clone());
logging.with_scribe(scribe);
let repo_client = RepoClient::new(
repo,
session.clone(),
logging,
maybe_push_redirector_args,
repo_client_knobs,
maybe_backup_repo_source,
);
let request_perf_counters = repo_client.request_perf_counters();
// Construct a hg protocol handler
let proto_handler = HgProtoHandler::new(
conn_log.clone(),
stdin,
repo_client,
sshproto::HgSshCommandDecode,
sshproto::HgSshCommandEncode,
wireproto_calls.clone(),
qps.clone(),
metadata.revproxy_region().clone(),
);
// send responses back
let endres = proto_handler
.into_stream()
.inspect_ok(move |bytes| session.bump_load(Metric::EgressBytes, bytes.len() as f64))
.map_err(Error::from)
.map_ok(|b| Bytes::copy_from_slice(b.as_ref()))
.forward(stdout.sink_map_err(Error::from))
.map_ok(|_| ());
// If we got an error at this point, then catch it and print a message
let (stats, result) = endres.timed().await;
let wireproto_calls = {
let mut wireproto_calls = wireproto_calls.lock().expect("lock poisoned");
std::mem::take(&mut *wireproto_calls)
};
STATS::wireproto_ms.add_value(stats.completion_time.as_millis_unchecked() as i64);
let mut scuba = scuba.clone();
scuba
.add_future_stats(&stats)
.add("wireproto_commands", wireproto_calls);
// Populate stats no matter what to avoid dead detectors firing.
STATS::request_success.add_value(0);
STATS::request_failure.add_value(0);
// Log request level perf counters
request_perf_counters.insert_perf_counters(&mut scuba);
match &result {
Ok(_) => {
STATS::request_success.add_value(1);
STATS::request_outcome_permille.add_value(1000);
scuba.log_with_msg("Request finished - Success", None)
}
Err(err) => {
if err.is::<mpsc::SendError>() {
STATS::request_outcome_permille.add_value(0);
scuba.log_with_msg("Request finished - Client Disconnected", format!("{}", err));
} else {
STATS::request_failure.add_value(1);
STATS::request_outcome_permille.add_value(0);
scuba.log_with_msg("Request finished - Failure", format!("{:#?}", err));
}
}
}
if let Err(err) = result {
error!(&conn_log, "Command failed";
SlogKVError(err),
"remote" => "true"
);
}
Ok(())
}
pub fn create_conn_logger(
stderr: mpsc::UnboundedSender<Bytes>,
server_logger: Option<Logger>,
session_id: Option<&SessionId>,
) -> Logger {
let session_id = match session_id {
Some(session_id) => session_id.to_string(),
None => "".to_string(),
};
let decorator = o!("session_uuid" => format!("{}", session_id));
let stderr_write = SenderBytesWrite { chan: stderr };
let client_drain = slog_term::PlainSyncDecorator::new(stderr_write);
let client_drain = SimpleFormatWithError::new(client_drain);
let client_drain = KVFilter::new(client_drain, Level::Critical).only_pass_any_on_all_keys(
(hashmap! {
"remote".into() => hashset!["true".into(), "remote_only".into()],
})
.into(),
);
if let Some(logger) = server_logger {
let server_drain = KVFilter::new(logger, Level::Critical).always_suppress_any(
(hashmap! {
"remote".into() => hashset!["remote_only".into()],
})
.into(),
);
// Don't fail logging if the client goes away
let drain = slog::Duplicate::new(client_drain, server_drain).ignore_res();
Logger::root(drain, decorator)
} else {
Logger::root(client_drain.ignore_res(), decorator)
}
}
```
|
The Danville, Hazleton and Wilkes-Barre Railroad, also called the D.H. & W.B. Railroad, was a railroad in northeastern Pennsylvania. It ran from Sunbury to Tomhicken, a total of 43.44 miles plus 10.1 miles of branch lines, making the whole railroad 53.54 miles long. The railroad was completed in 1870. As of 2010, the Danville, Hazleton and Willkes-Barre Railroad tracks belong to the Pennsylvania Railroad. The railroad's gauge was .
History
The Danville, Hazleton and Wilkes-Barre Railroad began in April 1859 as the Wilkes-Barre and Pittston Railroad. Their plan was to build a railroad along the east side of the Susquehanna River from above Pittston to Danville or Sunbury. It was renamed the Danville, Hazleton, and Wilkes-Barre Railroad in 1867. Railroad construction began in late 1867 or early 1868. Simon P. Kase was a critical force in the building of the railroad. In 1870 an anthracite-burning locomotive was built for the railroad. By 1870, the Danville, Hazleton, and Wilkes-Barre Railroad linked Sunbury and Danville. By 1871, the railroad extended 43 miles from Sunbury to Tomhicken. In 1872, the Philadelphia and Erie Railroad started to operate the Danville, Hazleton and Wilkes-Barre tracks. In 1878, the railroad was sold under foreclosure and the name was changed to the Sunbury, Hazleton and Wilkes-Barre Railroad.
Financial information
In 1888, the railroad's president was J. N. DuBarry, the secretary was Albert Hewson, and the treasurer was Taber Ashton. Many of the officers and directors of the railroad lived in Philadelphia at that time.
By 1887, the total cost of the Danville, Hazleton and Wilkes-Barre Railroad was $3,535,109. At this time, they had 20,000 shares of stock each being worth $50. Their total funded debt was $2,535,000.
Route
Sunbury was the railroad's western terminus. Proceeding east, the route passed through Danville and terminated at Tomhicken. There were an additional of branch lines.
In 1888, the D.H. & W.B. railroad, then named the Sunbury, Hazleton and Wilkes-Barre Railroad, comprised 25 bridges and trestles totalling in length. These consisted of ten wooden bridges totalling , three stone bridges totalling , six iron bridges totalling , and six wooden trestles totalling .
The D.H. & W.B. was laid on white oak ties and had stone cinder and culm ballast. As of 1888, the railroad had 32 at-grade highway crossings, one highway that went over the railroad, and two that went under it. None of these crossings were gated. At this time, of the railroad were on steel rails and were on iron rails.
Stations and intersections
In 1871, the Lehigh Valley Railroad connected with the D.H. & W.B. in Tomhicken. The Catawissa Railroad (which later became part of the Reading Railroad) crossed the D.H. & W.B. The Philadelphia and Erie Railroad crossed the D.H. & W.B. at Sunbury.
There were a total of five railroad stations along the route. The stations included Mountain Grove Campground, halfway between Bloomsburg and Hazleton, and Mainville.
Uses
The Danville, Hazleton and Wilkes-Barre Railroad helped provide coal access to the market. The railroad was also used to transport furniture and other supplies to the Mountain Grove Campground. The railroad also carried cars full of worshipers to the Mountain Grove Campground, and sometimes even ran especially for them. In the campground's later years, the Danville, Hazleton and Wilkes-Barre Railroad carried such items as bands to the campground. The railroad provided a direct path from Sunbury to Danville, and aided communication between Danville and Sunbury. The railroad established an alternative route from the Lehigh Valley Railroad's Hazleton Branch to Sunbury.
See also
Bloomsburg and Sullivan Railroad
Susquehanna, Bloomsburg, and Berwick Railroad
Lackawanna and Bloomsburg Railroad
List of Pennsylvania railroads
Catawissa Railroad
Notes
References
4 ft 9 in gauge railways in the United States
Defunct Pennsylvania railroads
1867 establishments in Pennsylvania
1878 disestablishments
|
The N'Djamena Hebdo is a Chadian newspaper. In the 1990s Chadian government security forces attacked the offices of the paper killing a number of journalists.
References
Politics of Chad
Newspapers published in Chad
|
```makefile
#
#
# See /LICENSE for more information.
#
BLOCK_MENU:=Block Devices
define KernelPackage/aoe
SUBMENU:=$(BLOCK_MENU)
TITLE:=ATA over Ethernet support
KCONFIG:=CONFIG_ATA_OVER_ETH
FILES:=$(LINUX_DIR)/drivers/block/aoe/aoe.ko
AUTOLOAD:=$(call AutoLoad,30,aoe)
endef
define KernelPackage/aoe/description
Kernel support for ATA over Ethernet
endef
$(eval $(call KernelPackage,aoe))
define KernelPackage/ata-core
SUBMENU:=$(BLOCK_MENU)
TITLE:=Serial and Parallel ATA support
DEPENDS:=@PCI_SUPPORT||TARGET_sunxi +kmod-scsi-core
KCONFIG:=CONFIG_ATA
FILES:=$(LINUX_DIR)/drivers/ata/libata.ko
ifneq ($(wildcard $(LINUX_DIR)/drivers/ata/libahci.ko),)
FILES+=$(LINUX_DIR)/drivers/ata/libahci.ko
endif
endef
$(eval $(call KernelPackage,ata-core))
define AddDepends/ata
SUBMENU:=$(BLOCK_MENU)
DEPENDS+=+kmod-ata-core $(1)
endef
define KernelPackage/ata-ahci
TITLE:=AHCI Serial ATA support
KCONFIG:=CONFIG_SATA_AHCI
FILES:= \
$(LINUX_DIR)/drivers/ata/ahci.ko
AUTOLOAD:=$(call AutoLoad,41,libahci ahci,1)
$(call AddDepends/ata)
endef
define KernelPackage/ata-ahci/description
Support for AHCI Serial ATA controllers
endef
$(eval $(call KernelPackage,ata-ahci))
define KernelPackage/ata-ahci-platform
TITLE:=AHCI Serial ATA Platform support
KCONFIG:=CONFIG_SATA_AHCI_PLATFORM
FILES:= \
$(LINUX_DIR)/drivers/ata/ahci_platform.ko \
$(LINUX_DIR)/drivers/ata/libahci_platform.ko
AUTOLOAD:=$(call AutoLoad,40,libahci libahci_platform ahci_platform,1)
$(call AddDepends/ata,@TARGET_ipq806x||TARGET_layerscape||TARGET_rockchip||TARGET_sunxi)
endef
define KernelPackage/ata-ahci-platform/description
Platform support for AHCI Serial ATA controllers
endef
$(eval $(call KernelPackage,ata-ahci-platform))
define KernelPackage/ata-artop
TITLE:=ARTOP 6210/6260 PATA support
KCONFIG:=CONFIG_PATA_ARTOP
FILES:=$(LINUX_DIR)/drivers/ata/pata_artop.ko
AUTOLOAD:=$(call AutoLoad,41,pata_artop,1)
$(call AddDepends/ata)
endef
define KernelPackage/ata-artop/description
PATA support for ARTOP 6210/6260 host controllers
endef
$(eval $(call KernelPackage,ata-artop))
define KernelPackage/ata-ahci-dwc
TITLE:=Synopsys DWC AHCI SATA
KCONFIG:= \
CONFIG_AHCI_DWC \
CONFIG_SATA_HOST=y
FILES:=$(LINUX_DIR)/drivers/ata/ahci_dwc.ko
DEPENDS:=+kmod-ata-ahci-platform
AUTOLOAD:=$(call AutoLoad,41,ahci_dwc,1)
$(call AddDepends/ata,@TARGET_rockchip)
endef
$(eval $(call KernelPackage,ata-ahci-dwc))
define KernelPackage/ata-nvidia-sata
TITLE:=Nvidia Serial ATA support
KCONFIG:=CONFIG_SATA_NV
FILES:=$(LINUX_DIR)/drivers/ata/sata_nv.ko
AUTOLOAD:=$(call AutoLoad,41,sata_nv,1)
$(call AddDepends/ata)
endef
$(eval $(call KernelPackage,ata-nvidia-sata))
define KernelPackage/ata-pdc202xx-old
TITLE:=Older Promise PATA controller support
KCONFIG:= \
CONFIG_ATA_SFF=y \
CONFIG_PATA_PDC_OLD
FILES:=$(LINUX_DIR)/drivers/ata/pata_pdc202xx_old.ko
AUTOLOAD:=$(call AutoLoad,41,pata_pdc202xx_old,1)
$(call AddDepends/ata)
endef
define KernelPackage/ata-pdc202xx-old/description
This option enables support for the Promise 20246, 20262, 20263,
20265 and 20267 adapters
endef
$(eval $(call KernelPackage,ata-pdc202xx-old))
define KernelPackage/ata-piix
TITLE:=Intel PIIX PATA/SATA support
KCONFIG:=CONFIG_ATA_PIIX
FILES:=$(LINUX_DIR)/drivers/ata/ata_piix.ko
AUTOLOAD:=$(call AutoLoad,41,ata_piix,1)
$(call AddDepends/ata)
endef
define KernelPackage/ata-piix/description
SATA support for Intel ICH5/6/7/8 series host controllers and
PATA support for Intel ESB/ICH/PIIX3/PIIX4 series host controllers
endef
$(eval $(call KernelPackage,ata-piix))
define KernelPackage/ata-sil
TITLE:=Silicon Image SATA support
KCONFIG:=CONFIG_SATA_SIL
FILES:=$(LINUX_DIR)/drivers/ata/sata_sil.ko
AUTOLOAD:=$(call AutoLoad,41,sata_sil,1)
$(call AddDepends/ata)
endef
define KernelPackage/ata-sil/description
Support for Silicon Image Serial ATA controllers
endef
$(eval $(call KernelPackage,ata-sil))
define KernelPackage/ata-sil24
TITLE:=Silicon Image 3124/3132 SATA support
KCONFIG:=CONFIG_SATA_SIL24
FILES:=$(LINUX_DIR)/drivers/ata/sata_sil24.ko
AUTOLOAD:=$(call AutoLoad,41,sata_sil24,1)
$(call AddDepends/ata)
endef
define KernelPackage/ata-sil24/description
Support for Silicon Image 3124/3132 Serial ATA controllers
endef
$(eval $(call KernelPackage,ata-sil24))
define KernelPackage/ata-via-sata
TITLE:=VIA SATA support
KCONFIG:=CONFIG_SATA_VIA
FILES:=$(LINUX_DIR)/drivers/ata/sata_via.ko
AUTOLOAD:=$(call AutoLoad,41,sata_via,1)
$(call AddDepends/ata)
endef
define KernelPackage/ata-via-sata/description
This option enables support for VIA Serial ATA
endef
$(eval $(call KernelPackage,ata-via-sata))
define KernelPackage/block2mtd
SUBMENU:=$(BLOCK_MENU)
TITLE:=Block device MTD emulation
KCONFIG:=CONFIG_MTD_BLOCK2MTD
FILES:=$(LINUX_DIR)/drivers/mtd/devices/block2mtd.ko
endef
$(eval $(call KernelPackage,block2mtd))
define KernelPackage/dax
SUBMENU:=$(BLOCK_MENU)
TITLE:=DAX: direct access to differentiated memory
KCONFIG:=CONFIG_DAX
FILES:=$(LINUX_DIR)/drivers/dax/dax.ko
endef
$(eval $(call KernelPackage,dax))
define KernelPackage/dm
SUBMENU:=$(BLOCK_MENU)
TITLE:=Device Mapper
DEPENDS:=+kmod-crypto-manager +kmod-dax +KERNEL_KEYS:kmod-keys-encrypted
# All the "=n" are unnecessary, they're only there
# to stop the config from asking the question.
# MIRROR is M because I've needed it for pvmove.
KCONFIG:= \
CONFIG_BLK_DEV_MD=n \
CONFIG_DM_DEBUG=n \
CONFIG_DM_UEVENT=n \
CONFIG_DM_DELAY=n \
CONFIG_DM_LOG_WRITES=n \
CONFIG_DM_MQ_DEFAULT=n \
CONFIG_DM_MULTIPATH=n \
CONFIG_DM_ZERO=n \
CONFIG_DM_SNAPSHOT=n \
CONFIG_DM_LOG_USERSPACE=n \
CONFIG_MD=y \
CONFIG_BLK_DEV_DM \
CONFIG_DM_CRYPT \
CONFIG_DM_MIRROR
FILES:= \
$(LINUX_DIR)/drivers/md/dm-mod.ko \
$(LINUX_DIR)/drivers/md/dm-crypt.ko \
$(LINUX_DIR)/drivers/md/dm-log.ko \
$(LINUX_DIR)/drivers/md/dm-mirror.ko \
$(LINUX_DIR)/drivers/md/dm-region-hash.ko
AUTOLOAD:=$(call AutoLoad,30,dm-mod dm-log dm-region-hash dm-mirror dm-crypt,1)
endef
define KernelPackage/dm/description
Kernel module necessary for LVM2 support
endef
$(eval $(call KernelPackage,dm))
define KernelPackage/dm-raid
SUBMENU:=$(BLOCK_MENU)
TITLE:=LVM2 raid support
DEPENDS:=+kmod-dm +kmod-md-mod \
+kmod-md-raid0 +kmod-md-raid1 +kmod-md-raid10 +kmod-md-raid456
KCONFIG:= \
CONFIG_DM_RAID
FILES:=$(LINUX_DIR)/drivers/md/dm-raid.ko
AUTOLOAD:=$(call AutoLoad,31,dm-raid)
endef
define KernelPackage/dm-raid/description
Kernel module necessary for LVM2 raid support
endef
$(eval $(call KernelPackage,dm-raid))
define KernelPackage/iscsi-initiator
SUBMENU:=$(BLOCK_MENU)
TITLE:=iSCSI Initiator over TCP/IP
DEPENDS:=+kmod-scsi-core +kmod-crypto-hash
KCONFIG:= \
CONFIG_INET \
CONFIG_SCSI_LOWLEVEL=y \
CONFIG_ISCSI_TCP \
CONFIG_SCSI_ISCSI_ATTRS
FILES:= \
$(LINUX_DIR)/drivers/scsi/iscsi_tcp.ko \
$(LINUX_DIR)/drivers/scsi/libiscsi.ko \
$(LINUX_DIR)/drivers/scsi/libiscsi_tcp.ko \
$(LINUX_DIR)/drivers/scsi/scsi_transport_iscsi.ko
AUTOLOAD:=$(call AutoProbe,libiscsi libiscsi_tcp scsi_transport_iscsi iscsi_tcp)
endef
define KernelPackage/iscsi-initiator/description
The iSCSI Driver provides a host with the ability to access storage through an
IP network. The driver uses the iSCSI protocol to transport SCSI requests and
responses over a TCP/IP network between the host (the "initiator") and "targets".
endef
$(eval $(call KernelPackage,iscsi-initiator))
define KernelPackage/md-mod
SUBMENU:=$(BLOCK_MENU)
TITLE:=MD RAID
KCONFIG:= \
CONFIG_MD=y \
CONFIG_BLK_DEV_MD=m \
CONFIG_MD_AUTODETECT=y \
CONFIG_MD_FAULTY=n
FILES:=$(LINUX_DIR)/drivers/md/md-mod.ko
AUTOLOAD:=$(call AutoLoad,27,md-mod)
endef
define KernelPackage/md-mod/description
Kernel RAID md module (md-mod.ko).
You will need to select at least one RAID level module below.
endef
$(eval $(call KernelPackage,md-mod))
define KernelPackage/md/Depends
SUBMENU:=$(BLOCK_MENU)
DEPENDS:=kmod-md-mod $(1)
endef
define KernelPackage/md-linear
$(call KernelPackage/md/Depends,)
TITLE:=RAID Linear Module
KCONFIG:=CONFIG_MD_LINEAR
FILES:=$(LINUX_DIR)/drivers/md/linear.ko
AUTOLOAD:=$(call AutoLoad,28,linear)
endef
define KernelPackage/md-linear/description
RAID "Linear" or "Append" driver module (linear.ko)
endef
$(eval $(call KernelPackage,md-linear))
define KernelPackage/md-raid0
$(call KernelPackage/md/Depends,)
TITLE:=RAID0 Module
KCONFIG:=CONFIG_MD_RAID0
FILES:=$(LINUX_DIR)/drivers/md/raid0.ko
AUTOLOAD:=$(call AutoLoad,28,raid0)
endef
define KernelPackage/md-raid0/description
RAID Level 0 (Striping) driver module (raid0.ko)
endef
$(eval $(call KernelPackage,md-raid0))
define KernelPackage/md-raid1
$(call KernelPackage/md/Depends,)
TITLE:=RAID1 Module
KCONFIG:=CONFIG_MD_RAID1
FILES:=$(LINUX_DIR)/drivers/md/raid1.ko
AUTOLOAD:=$(call AutoLoad,28,raid1)
endef
define KernelPackage/md-raid1/description
RAID Level 1 (Mirroring) driver (raid1.ko)
endef
$(eval $(call KernelPackage,md-raid1))
define KernelPackage/md-raid10
$(call KernelPackage/md/Depends,)
TITLE:=RAID10 Module
KCONFIG:=CONFIG_MD_RAID10
FILES:=$(LINUX_DIR)/drivers/md/raid10.ko
AUTOLOAD:=$(call AutoLoad,28,raid10)
endef
define KernelPackage/md-raid10/description
RAID Level 10 (Mirroring+Striping) driver module (raid10.ko)
endef
$(eval $(call KernelPackage,md-raid10))
define KernelPackage/md-raid456
$(call KernelPackage/md/Depends,+kmod-lib-raid6 +kmod-lib-xor +kmod-lib-crc32c)
TITLE:=RAID Level 456 Driver
KCONFIG:= \
CONFIG_ASYNC_CORE \
CONFIG_ASYNC_MEMCPY \
CONFIG_ASYNC_XOR \
CONFIG_ASYNC_PQ \
CONFIG_ASYNC_RAID6_RECOV \
CONFIG_ASYNC_RAID6_TEST=n \
CONFIG_MD_RAID456 \
CONFIG_MULTICORE_RAID456=n
FILES:= \
$(LINUX_DIR)/crypto/async_tx/async_tx.ko \
$(LINUX_DIR)/crypto/async_tx/async_memcpy.ko \
$(LINUX_DIR)/crypto/async_tx/async_xor.ko \
$(LINUX_DIR)/crypto/async_tx/async_pq.ko \
$(LINUX_DIR)/crypto/async_tx/async_raid6_recov.ko \
$(LINUX_DIR)/drivers/md/raid456.ko
AUTOLOAD:=$(call AutoLoad,28, async_tx async_memcpy async_xor async_pq async_raid6_recov raid456)
endef
define KernelPackage/md-raid456/description
RAID Level 4,5,6 kernel module (raid456.ko)
Includes the following modules required by
raid456.ko:
xor.ko
async_tx.ko
async_xor.ko
async_memcpy.ko
async_pq.ko
async_raid5_recov.ko
raid6_pq.ko
endef
$(eval $(call KernelPackage,md-raid456))
define KernelPackage/md-multipath
$(call KernelPackage/md/Depends,)
TITLE:=MD Multipath Module
KCONFIG:=CONFIG_MD_MULTIPATH
FILES:=$(LINUX_DIR)/drivers/md/multipath.ko
AUTOLOAD:=$(call AutoLoad,29,multipath)
endef
define KernelPackage/md-multipath/description
Multipath driver module (multipath.ko)
endef
$(eval $(call KernelPackage,md-multipath))
define KernelPackage/libsas
SUBMENU:=$(BLOCK_MENU)
DEPENDS:=@TARGET_x86
TITLE:=SAS Domain Transport Attributes
KCONFIG:=CONFIG_SCSI_SAS_LIBSAS \
CONFIG_SCSI_SAS_ATTRS \
CONFIG_SCSI_SAS_ATA=y \
CONFIG_SCSI_SAS_HOST_SMP=y \
CONFIG_SCSI_SAS_LIBSAS_DEBUG=y
FILES:= \
$(LINUX_DIR)/drivers/scsi/scsi_transport_sas.ko \
$(LINUX_DIR)/drivers/scsi/libsas/libsas.ko
AUTOLOAD:=$(call AutoLoad,29,scsi_transport_sas libsas,1)
endef
define KernelPackage/libsas/description
SAS Domain Transport Attributes support
endef
$(eval $(call KernelPackage,libsas,1))
define KernelPackage/loop
SUBMENU:=$(BLOCK_MENU)
TITLE:=Loopback device support
KCONFIG:= \
CONFIG_BLK_DEV_LOOP \
CONFIG_BLK_DEV_CRYPTOLOOP=n
FILES:=$(LINUX_DIR)/drivers/block/loop.ko
AUTOLOAD:=$(call AutoLoad,30,loop,1)
endef
define KernelPackage/loop/description
Kernel module for loopback device support
endef
$(eval $(call KernelPackage,loop))
define KernelPackage/mvsas
SUBMENU:=$(BLOCK_MENU)
TITLE:=Marvell 88SE6440 SAS/SATA driver
DEPENDS:=@TARGET_x86 +kmod-libsas
KCONFIG:= \
CONFIG_SCSI_MVSAS \
CONFIG_SCSI_MVSAS_TASKLET=n
FILES:=$(LINUX_DIR)/drivers/scsi/mvsas/mvsas.ko
AUTOLOAD:=$(call AutoLoad,40,mvsas,1)
endef
define KernelPackage/mvsas/description
Kernel support for the Marvell SAS SCSI adapters
endef
$(eval $(call KernelPackage,mvsas))
define KernelPackage/nbd
SUBMENU:=$(BLOCK_MENU)
TITLE:=Network block device support
KCONFIG:=CONFIG_BLK_DEV_NBD
FILES:=$(LINUX_DIR)/drivers/block/nbd.ko
AUTOLOAD:=$(call AutoLoad,30,nbd)
endef
define KernelPackage/nbd/description
Kernel module for network block device support
endef
$(eval $(call KernelPackage,nbd))
define KernelPackage/nvme
SUBMENU:=$(BLOCK_MENU)
TITLE:=NVM Express block device
DEPENDS:=@PCI_SUPPORT +kmod-hwmon-core
KCONFIG:= \
CONFIG_NVME_CORE \
CONFIG_BLK_DEV_NVME \
CONFIG_NVME_MULTIPATH=n \
CONFIG_NVME_HWMON=y
FILES:= \
$(LINUX_DIR)/drivers/nvme/host/nvme-core.ko \
$(LINUX_DIR)/drivers/nvme/host/nvme.ko
AUTOLOAD:=$(call AutoLoad,30,nvme-core nvme,1)
endef
define KernelPackage/nvme/description
Kernel module for NVM Express solid state drives directly
connected to the PCI or PCI Express bus.
endef
$(eval $(call KernelPackage,nvme))
define KernelPackage/scsi-core
SUBMENU:=$(BLOCK_MENU)
TITLE:=SCSI device support
KCONFIG:= \
CONFIG_SCSI \
CONFIG_SCSI_COMMON \
CONFIG_BLK_DEV_SD
FILES:= \
$(LINUX_DIR)/drivers/scsi/scsi_mod.ko \
$(LINUX_DIR)/drivers/scsi/scsi_common.ko \
$(LINUX_DIR)/drivers/scsi/sd_mod.ko
AUTOLOAD:=$(call AutoLoad,40,scsi_mod scsi_common sd_mod,1)
endef
$(eval $(call KernelPackage,scsi-core))
define KernelPackage/scsi-generic
SUBMENU:=$(BLOCK_MENU)
TITLE:=Kernel support for SCSI generic
DEPENDS:=+kmod-scsi-core
KCONFIG:= \
CONFIG_CHR_DEV_SG
FILES:= \
$(LINUX_DIR)/drivers/scsi/sg.ko
AUTOLOAD:=$(call AutoLoad,65,sg)
endef
$(eval $(call KernelPackage,scsi-generic))
define KernelPackage/cdrom
TITLE:=Kernel library module for CD / DVD drives
KCONFIG:=CONFIG_CDROM
HIDDEN:=1
FILES:=$(LINUX_DIR)/drivers/cdrom/cdrom.ko
endef
$(eval $(call KernelPackage,cdrom))
define KernelPackage/scsi-cdrom
SUBMENU:=$(BLOCK_MENU)
TITLE:=Kernel support for CD / DVD drives
DEPENDS:=+kmod-scsi-core +kmod-cdrom
KCONFIG:= \
CONFIG_BLK_DEV_SR \
CONFIG_BLK_DEV_SR_VENDOR=n
FILES:=$(LINUX_DIR)/drivers/scsi/sr_mod.ko
AUTOLOAD:=$(call AutoLoad,45,sr_mod)
endef
$(eval $(call KernelPackage,scsi-cdrom))
define KernelPackage/scsi-tape
SUBMENU:=$(BLOCK_MENU)
TITLE:=Kernel support for scsi tape drives
DEPENDS:=+kmod-scsi-core
KCONFIG:= \
CONFIG_CHR_DEV_ST
FILES:= \
$(LINUX_DIR)/drivers/scsi/st.ko
AUTOLOAD:=$(call AutoLoad,45,st)
endef
$(eval $(call KernelPackage,scsi-tape))
define KernelPackage/iosched-bfq
SUBMENU:=$(BLOCK_MENU)
TITLE:=Kernel support for BFQ I/O scheduler
KCONFIG:= \
CONFIG_IOSCHED_BFQ \
CONFIG_BFQ_GROUP_IOSCHED=y \
CONFIG_BFQ_CGROUP_DEBUG=n
FILES:= \
$(LINUX_DIR)/block/bfq.ko
AUTOLOAD:=$(call AutoLoad,10,bfq)
endef
$(eval $(call KernelPackage,iosched-bfq))
```
|
Pauline Gotter (29 December 1786 – 31 December 1854) was the second wife of Friedrich Wilhelm Joseph Schelling and a friend of Louise Seidler and Sylvie von Cigars.
Life
Angelica Pauline Amalie Gotter was born on 29 December 1786. Her parents were the playwright, Privy Councilor ("Geheimrat") and archivist Friedrich Wilhelm Gotter and Louise Gotter (née Stiege). Her mother was a close friend of Caroline Schlegel (née Michaelis), while her father had been close friends with Johann Wolfgang von Goethe since his youth.
Pauline Gotter had two sisters and knew Goethe and Caroline Schlegel from childhood on. In her youth she was friends with Sylvie von Ziegesar and the painter Louise Seidler. Together with her friends, she had access to Jena's most elevated intellectual circles, which at that time comprised such creative minds as Friedrich Schiller, Johann Gottlieb Fichte, Friedrich Wilhelm Joseph Schelling, Georg Wilhelm Friedrich Hegel, brothers Alexander and Wilhelm von Humboldt, brothers Friedrich and August Wilhelm Schlegel, Friedrich Tieck, Clemens Brentano, Voß, Paulus, Niethammer, Zacharias Werner and others.
Pauline Gotter loved her mother's friends. Caroline Schlegel was an intelligent woman who had sided with the French Revolution, and as a result was nearly arrested for treason. Her daughter, who was almost the same age as Pauline Gotter, was the first love of the philosopher Friedrich Wilhelm Schelling, a rising star in Jena's intellectual world, and a passionate follower of Johann Gottlieb Fichte. When she fell sick with dysentery in 1800, he tried desperately to find some means by which to stave off her death. Pauline Gotter and her family were forced to stand by as accusations were made of Schelling and rumors were spread. "Schelling," said Dorothea Veit, "had a hand in it." Jena's literary magazine, the Jenaische Allgemeine Literaturzeitung, reported, "He cares for her 'flawlessly' and kills her 'honestly.'" Rumors, accusations, and gossip didn't die down, and August Wilhelm Schlegel and his wife Caroline divorced in 1803 at Goethe's behest. Friedrich Wilhelm Schelling married her two months later. They left Jena together in 1804 and moved to Würzburg, where Schelling received a teaching position at the university, and Caroline Schelling stood faithfully by her new husband's side.
In 1806 Pauline Gotter stayed with her friend Sylvie von Ziegesar in Karlsbad, where Goethe courted Ziegesar and dedicated some of his poems to her. Her friend Louise Seidler also enjoyed the favor of the German prince of poets, who instructed her to paint a portrait of him.
On 7 September 1809, Caroline Schelling (formerly Schlegel) died suddenly. Pauline Gotter and her family were very distraught at her death. They wrote letters and paid visits to Schelling in an effort to console him, but he became progressively more withdrawn and expressed growing criticism of science and of the church. This increasingly intimate correspondence lead to his engagement with Pauline Gotter.
On 11 June 1812, Pauline Gotter married Friedrich Wilhelm Schelling, who was eleven years her senior, and who was elevated to the nobility and invited to join to the Academy of Science in Munich in the same year. On 17 December 1813 their first child was born. Five more followed. One of their daughters was named Caroline, in honor of Friedrich's first wife. Pauline Schelling took charge of running the house and raising the children. Her letters possessed a natural, spirited grace, though they lacked the intellectual significance of his first wife's writings. She was in this respect no substitute for Caroline in Friedrich's eyes, and he grew unpersonable and withdrew rapidly into incoherent writings on mythology and irritated responses to Hegel as he ascended to scholarly fame.
Pauline Schelling died on 31 December 1854, four months after her husband.
References
Further reading
Goethe, Johann Wolfgang. Gedenkausgabe der Werke, Briefe und Gespräche. Zürich/Stuttgart: Artemis, pp. 681–682.
Xavier Tilliette, (2004). Schelling: Biographie. Translated from French by S. Schaper. Stuttgart: Klett-Cotta. .
Kirchhoff, Joche (1988). Friedrich Wilhelm Joseph von Schelling. Mit Selbstzeugnissen und Bilddokumenten. Reinbek: Rowohlt. .
External links
Brief mention of Pauline Gotter in
Correspondence with her friend Louise Seidler (in German)
Meeting with Goethe in 1806 in Karlsbad (in German)
Letter to Schelling, May 1811 (in German)
1786 births
1854 deaths
Friedrich Wilhelm Joseph Schelling
|
The following events occurred in January 1969:
January 1, 1969 (Wednesday)
The #1 ranked Ohio State Buckeyes defeated the #2 ranked USC Trojans, 27 to 16, before a crowd of 102,063 fans to win college football's Rose Bowl and the recognition by the NCAA as college football's national champion.
North Vietnam released three American prisoners of war to a five-member U.S. Army team at a rice paddyfield near South Vietnam's border with Cambodia. A fourth had escaped captivity from the Viet Cong the day before. One of the POWs, Specialist 4 James Brigham of Ocala, Florida, died less than three weeks later at a Washington hospital after surgery for a brain abscess.
Born:
Verne Troyer, diminutive (2'8" or 81 cm) American film actor known for portraying Mini-Me in the Austin Powers film series; in Sturgis, Michigan (d. 2018)
Mr. Lawrence (Douglas Lawrence Osowski), American writer and voice actor known for voicing Plankton in SpongeBob SquarePants; in East Brunswick, New Jersey
Died: Barton MacLane, 66, American film and television actor
January 2, 1969 (Thursday)
Australian media baron Rupert Murdoch purchased the largest-selling British Sunday newspaper, The News of the World as shareholders of the News voted to accept his bid over that of British book publisher Robert Maxwell. Murdoch would purchase newspapers in the U.S. in the 1970s, notably the New York Post, and enter television in the 1980s with the founding of the Fox Network.
China Airlines Flight 227 crashed into a mountain peak on the island of Taiwan while en route from Hualin to Kaohsiung, killing all 24 people on board.
The first radio reading service for the blind, The Minnesota Radio Talking Book Network, went on the air as a service of KSJR, the radio station at Saint John's University in Collegeville, Minnesota, which began broadcasting a program called "Radio Talking Book".
The government of France announced that its office of government property would start a campaign for the sale of individual lots on the Maginot Line that had been built during the 1930s in an unsuccessful attempt to prevent a German invasion.
Born:
Dean Francis Alfar, Philippine speculative fiction author
Robby Gordon, American race car driver in Los Angeles
Tommy Morrison, American heavyweight boxer who held the WBO title for four months in 1993; in Gravette, Arkansas (d. 2013)
Christy Turlington, American supermodel and advocate for maternal health; in Walnut Creek, California
Died: Gilbert Miller, 84, American prolific theatrical producer and two time Tony Award winner
January 3, 1969 (Friday)
The 91st United States Congress had its opening day as the U.S. Senate swore in 15 new members and 20 re-elected ones, and selected Senator Richard B. Russell of Georgia as the new president pro-tempore. Democratic Senators voted 31–26 to choose Teddy Kennedy of Massachusetts rather than incumbent Russell B. Long of Louisiana as the majority whip, while Republicans approved Hugh Scott of Pennsylvania, 23–20, over Roman L. Hruska of Nebraska. The U.S. House of Representatives re-elected John W. McCormack of Massachusetts as Speaker of the House, and voted 251 to 160 to allow controversial Congressman Adam Clayton Powell to take his seat.
Born: Michael Schumacher, German Formula One racecar driver and winner of seven of the 11 World Championships between 1994 and 2004; in Hürth, West Germany
Died:
Howard McNear, 63, American radio and television actor, known for being Floyd the Barber on TV's The Andy Griffith Show and as Doc Adams in the radio version of Gunsmoke
Commodore Cochran, 66, American swimmer and track athlete, 1922 and 1923 NCAA track champion in the 440-yard dash, and 1924 Olympic gold medalist in the 4 x 400 swim relay
January 4, 1969 (Saturday)
The tiny (580 square mile or 1,502 km²) North African enclave of Ifni was ceded by Spain to Morocco in a treaty signed at the Moroccan capital of Rabat, subject to the expected approval by the Spanish parliament, the Cortes. On June 30, the last Spanish Governor-General, Jose Miguel Vega, would haul down the Spanish flag and the cession would be complete.
The International Convention on the Elimination of All Forms of Racial Discrimination, opened for signature at the United Nations General Assembly on December 21, 1965, went into effect after being ratified by at least 27 nations.
Two days after beginning a civil rights march from Queen's University in Belfast to the city of Derry in Northern Ireland, People's Democracy began to promote the rights of the Roman Catholic minority in the United Kingdom entity; the marchers were ambushed at the Burntollet Bridge less than six miles from their destination. As officers of the Royal Ulster Constabulary (RUC) stood by without intervening, a crowd of Protestant loyalists attacked the marchers with clubs and rocks, ending the unofficial truce between the Northern Ireland Civil Rights Association and the RUC.
January 5, 1969 (Sunday)
Ariana Afghan Airlines Flight 701 crashed into a house on its approach to London's Gatwick Airport, killing 50 of the 62 people on board and two of the home's occupants.
The Soviet Union launched Venera 5 toward Venus. A course correction maneuver would be initiated on March 14 and on May 16, 1969, the Venera 5 transmitter would be landed on the surface of Venus, sending back data until the atmospheric pressure and intense heat caused its failure above the surface.
Born:
Marilyn Manson (Brian Hugh Warner), American rock singer known for his band of the same name; in Canton, Ohio
Shea Whigham, American film and cable TV actor known for Boardwalk Empire; in Tallahassee, Florida
January 6, 1969 (Monday)
Allegheny Airlines Flight 737 crashed on its approach to Bradford, Pennsylvania, killing 11 people on board during a multistop flight from Washington DC to Detroit. The accident came less than two weeks after the fatal crash on Christmas Eve of Allegheny Airlines Flight 736, on its way to Bradford as part of the same route, killing 20 people.
Richard Nixon was officially elected President of the United States as Congress certified the results of the votes cast on December 16 of the electoral college members who had been elected by American voters on November 5. The final result was certified after both houses of Congress debated removing one of the electoral votes (where a Nixon elector voted instead for George C. Wallace) was 301 votes for Nixon, 191 for Democratic candidate Hubert Humphrey, and 46 for Wallace.
The final passenger train traversed the Waverley Line, which subsequently closed to passengers.
Born: Norman Reedus, American cable TV actor known for The Walking Dead; in Hollywood, Florida
January 7, 1969 (Tuesday)
Trial began in the case of Sirhan Sirhan for the June 5, 1968 murder of presidential candidate Robert F. Kennedy. It would last for 15 weeks, as the jury heard testimony from 89 witnesses. After three days of deliberation, the jury found Sirhan guilty of first-degree murder and of five counts of assault with a deadly weapon. Sirhan would be sentenced to death on May 21, but all death penalty sentences in the United States would be set aside in 1972, and Sirhan is spending the rest of his life at Corcoran State Prison.
January 8, 1969 (Wednesday)
Twenty-three people were burned to death in a fast-moving grass fire in Australia's Victoria state. All but six of them were motorists who were near the Geelong suburb of Lara and who had been traveling on the National Route 1, the highway that links Geelong to Melbourne.
Two FBI agents, Anthony Palmisano and Edwin R. Woodriffe, were shot and killed in an apartment building in southeast Washington, D.C., while trying to apprehend Billie Austin Bryant, who had robbed the Citizens Bank in nearby Oxon Hill, Maryland. Bryant was apprehended the same day, only two hours after he was placed on the FBI Ten Most Wanted Fugitives List, the shortest amount of time between placement on the list and capture. Woodriffe was the first African-American FBI agent to die in the line of duty. The killing of him and Palmisano marked only the second time that two FBI men were killed together; the first time had been on November 27, 1934, when Herman Hollis and Samuel P. Cowley were killed by gangster Baby Face Nelson.
Died: Albert Hill, 79, British track and field athlete, 1920 Olympic gold medalist in the 800m and 1,500m races
January 9, 1969 (Thursday)
The Condon Committee, chaired by University of Colorado physicist Edward Condon, released its report Scientific Study of Unidentified Flying Objects and concluded that "nothing has come from the study of UFOs in the past 21 years that has added to scientific knowledge. Careful consideration of the record as it is available to us leads us to conclude that further extensive study of UFOs probably cannot be justified in the expectation that science will be advanced thereby." The Condon Report, commissioned by the United States Air Force at the cost of $520,000, recommended that the Air Force close its Project Blue Book investigation of UFO reports, and the USAF would do so at the end of the year.
New York Jets quarterback Joe Namath accepted an award from the Miami Touchdown Club, three days before Super Bowl III and said in his after-dinner remarks to the crowd, "The Jets will win Sunday; I guarantee it." At the time of Namath's boast, the nine-year old American Football League had not come close to winning either of the first two Super Bowls against the 49-year old NFL, losing by scores of 35–10 and 33–14.
January 10, 1969 (Friday)
The publishers of The Saturday Evening Post announced that the weekly magazine would cease publication after almost 148 years, discontinuing after its February 8 issue. Publisher Martin S. Ackerman said at a news conference that the Post had lost more than five million dollars in 1968 and commented that "We just could not sell enough advertising and cut expenses fast enough. Apparently, there is just not the need for our product in today's scheme of living." The Post had started publication in 1821 in Philadelphia, using the same printing shop used by the Pennsylvania Gazette, which had been founded by Benjamin Franklin. Until 1942, the magazine's masthead had carried the false claim that it was "founded in 1728 by Benjamin Franklin".
The Soviet Union launched their second exploration vehicle toward Venus in five days, Venera 6, after the Sunday launch of Venera 5. The second probe would arrive on May 17, a day after the first one's arrival, and, like the first, would cease functioning above the surface because of the Venusian temperature and atmospheric pressure.
January 11, 1969 (Saturday)
The Kingdom of Sweden became the first Western nation to grant formal diplomatic recognition to the Communist republic of North Vietnam. Although the decision by the Swedish cabinet was made on the evening of January 10 in Stockholm, January 11 is recognized as the date in Vietnam because of the six-hour time difference in Hanoi.
U.S. Army Special Forces Reserve officer Robert Helmey used an unloaded shotgun to hijack United Airlines Flight 459 to Cuba, diverting it from its Jacksonville to Miami flight and forcing a landing in Havana. In a month with regular hijackings of U.S. flights, Helmey's case stands out because he was the first successful hijacker to be prosecuted in the United States. Immediately after he landed in Cuba, he was arrested by the Castro government and would spend 109 days in solitary confinement in a Cuban jail before being deported to Canada, which in turn would return him to American authorities on May 5. A jury would find him not guilty of all charges on November 20, accepting his defense of temporary insanity, making Helmey the first skyjacker of a commercial aircraft anywhere to be acquitted at trial.
U.S. Army First Lieutenant Harold A. Fritz distinguished himself in combat in the Vietnam War by leading the defense of his outnumbered 28-man platoon against a larger force of North Vietnamese attackers during two successive ambush attacks. Despite being seriously wounded in the first moments of the battle, Fritz inspired his men in leading the fight until American tanks were able to come to the platoon's rescue. He would be awarded the Medal of Honor for his heroism on March 2, 1971.
January 12, 1969 (Sunday)
The American Football League champion New York Jets, led by brash quarterback Joe Namath, upset the National Football League champion Baltimore Colts, 16 to 7, to win Super Bowl III in Miami. Namath would later write that "The rewards and great memories for me come not only from being part of a team and a league that were overwhelmingly underdogs and winning it all, but equally because we lifted people's spirits in a very difficult time" in New York City and would add, "I have been told many times over the years that the Jets, and then the Mets and Knicks, helped people emotionally deal with all this adversity."
Led Zeppelin, the first Led Zeppelin album, was released in the United States.
Martial law was declared in Madrid, as the University of Madrid was closed and over 300 students were arrested.
January 13, 1969 (Monday)
Scandinavian Airlines Flight 933 plunged into the Santa Monica Bay off of the coast of California, drowning 15 of the 45 people on board. The Douglas DC-8 jet was making its approach to Los Angeles after departing from Seattle on a flight that had originated at Copenhagen in Denmark, and was nearly seven miles off course when it descended into the sea, impacting at 7:21 p.m. local time. Thirty survivors were able to evacuate on the airplane's life rafts.
Samsung Electronics, major brand for smartphone, television set and home appliance, founded in Suwon, South Korea.
The Beatles released the soundtrack of their 1968 film Yellow Submarine. Its A-side featured one song from a previous album, "Yellow Submarine" (from the 1966 Revolver album), a previous single "All You Need Is Love" (July 1967), as well as previously unreleased songs including "Only A Northern Song", "Hey Bulldog", and "It‘s All Too Much". The B-side had the orchestral track that played as background to the various scenes of the film.
Born: Stephen Hendry, Scottish professional snooker player and winner of seven world championships, including five in a row from 1992 to 1996; in South Queensferry
January 14, 1969 (Tuesday)
An explosion aboard the aircraft carrier USS Enterprise near Hawaii killed 27 U.S. Navy men and injured 314. The accident happened during operation of an aircraft engine starter unit and the placement of a cart with four Zuni rockets too close to the exhaust port of the starter unit. The hot exhaust detonated one of the Zuni warheads, and the explosion sent shards of metal into the fuel tank of the F-4 Phantom that was being prepared for takeoff; the tank then exploded, causing a fire that ignited the other three Zuni rockets and then causing a chain reaction that set off other bombs and rockets as burning fuel spilled from the flight deck to the hangar deck.
The Soviet Union launched Soyuz 4, with cosmonaut Vladimir Shatalov, at 1:39 in the afternoon (07:39 UTC) from the Baikonur Space Center. For the first time since the Soviet space program had started, film of a rocket was shown on Soviet Union television on the same day that it happened. A video of Shatalov boarding the rocket, along with the last five minutes of the countdown, and the liftoff, was telecast within 90 minutes.
India's Madras State was formally renamed as Tamil Nadu.
American spy Morton Sobell was released from federal prison after serving 17 years of a 30-year sentence for conspiracy to sell atomic bomb secrets to the Soviet Union. Incarcerated since 1951, Sobell was ordered freed from the United States penitentiary in Lewisburg, Pennsylvania, by order of the United States Court of Appeals in New York.
British train robber Bruce Reynolds, the mastermind of the "Great Train Robbery" of August 8, 1963, was sentenced to 25 years in prison by a court in Aylesbury as part of plea bargain.
Born:
Dave Grohl, American rock musician who founded the Foo Fighters after departing Nirvana; in Warren, Ohio
Jason Bateman, American TV and film actor; in Rye, New York
January 15, 1969 (Wednesday)
The Soviet Union launched Soyuz 5, the first Soyuz spacecraft with a three-cosmonaut crew, from Baikonur at 1:14 p.m., with the goal of docking in orbit with Soyuz 4, launched the previous day. On board the second Soyuz were Boris V. Volynov, Aleksei S. Yeliseyev and Yevgeny V. Khrunov. The two ships docked the next day and made the first transfer ever of a Soviet cosmonaut from one craft to another as Khrunov and Yeliseyev joined Vladimir Shatalov on Soyuz 4.
NASA reported that considerable progress had been made during the underwater test program begun at Marshall Space Flight Center (MSFC)'s Neutral Buoyancy Simulator several years earlier. The program was providing information essential for design of the first U.S. space station. Technicians, design engineers, and professional divers in space suits and scuba gear were conducting tasks similar to those necessary to activate an orbiting Workshop, in a 5300-cu-m (1.4-million-gal) tank containing mockups of the Apollo Applications Program (AAP) cluster elements (Workshop, Apollo telescope mount, solar observatory, and airlock and multiple docking adapter), simulating weightlessness of space. Conclusions from the tests would be reflected in the Workshop's final design, with a decision expected in May 1969.
January 16, 1969 (Thursday)
Student Jan Palach set himself on fire in Prague's Wenceslas Square to protest the Soviet invasion of Czechoslovakia. He would die of his injuries three days later. Palach's death disturbed Czechoslovakians and triggered nationwide student protests against the occupation.
The fastest train in the United States up to that time, Penn Central's Metroliner, inaugurated service between Union Station in Washington, D.C. and the Penn Station in New York City, making the journey at speeds of up to .
The southern African nation of Zambia converted to decimalisation of its currency, replacing the Zambian pound (worth 20 Zambian shillings or 240 Zambian pence) with the Kwacha, subdivided into 100 ngwee. The initial rate of exchange of old currency for new was 1.7094 kwacha for one Zambian pound, which was initially pegged to one British pound sterling.
Born:
Roy Jones Jr., American professional boxer with championships at four weight classes (1993–94 IBF middleweight title, 1994–96 IBF super middleweight, 1999 WBC, WBA and IBF light heavyweight, and 2003 WBA heavyweight); in Pensacola, Florida
Per "Dead" Ohlin, Swedish heavy metal musician, in Västerhaninge (committed suicide, 1991)
January 17, 1969 (Friday)
For the first time in the history of human spaceflight, space travelers returned to Earth in a different spacecraft than the one that they had departed upon. While American crews had performed the first docking of spaceships, the Gemini astronauts had always come back in the same vehicle that they had started with. Alexei Yeliseyev and Yevgeny V. Khrunov, sent up on Soyuz 5, landed safely (along with Vladimir Shatalov) in Soyuz 4 in the Kazahk SSR, about northwest of Karaganda (now Qaraghandy in the Republic of Kazakhstan).
The U.S. Department of Justice filed an antitrust lawsuit against International Business Machines Corporation (IBM), charging the company with monopolizing the digital computer industry, programming hindering competitors and limiting the development of computer programming by its policy of selling its hardware, software and technical support as an inseparable package. The suit would continue until 1982, when it would be dropped because of changes in the industry.
Born:
Lukas Moodysson, Swedish novelist and film director; in Lund
Tiësto (Tijs Michiel Verwest), Netherlands-born DJ; in Breda
January 18, 1969 (Saturday)
The parties to the Paris Peace Talks came to an agreement on the shape of the conference tables and the placement of the representatives who were negotiating an end to the Vietnam War. After being delayed for nearly six weeks over procedural disagreements raised by South Vietnam's Nguyen Cao Ky, the parties came to an accord that "The two sides would be 'clearly separated' by two rectangular tables with a round one in the middle" and that the tables would have "no nameplates, no flags and no written minutes of the understanding" on the setup. Substantive talks would not begin until a week later, after the inauguration of President Nixon. Lyndon B. Johnson, whose term as U.S. President would expire two days after the agreement on the tables, would write later that "I regretted more than anyone could possibly know that I was leaving the White House without having achieved a just, honorable, and a lasting peace in Vietnam."
Born:
Dave Bautista, American professional wrestler and mixed martial artist; in Washington, D.C.
Jesse L. Martin, African-American stage (Rent) and TV (Law & Order, The Flash) actor; as Jesse Lamont Watkins in Rocky Mount, Virginia
January 19, 1969 (Sunday)
The Israeli Labor Party (Mifleget HaAvoda HaYisrelit, commonly shortened to HaAvoda) was created by the merger of the Labor Alignment (a 1965 combination of Mapai and Ahdut HaAvoda also known as the United Labor Party or ULP) and Rafi.
In the third major plane crash in the U.S. in two weeks, United Airlines Flight 266 crashed into the Pacific Ocean shortly after takeoff from Los Angeles, killing all 38 people on board. A minute before the 6:21 p.m. crash, the captain reported that he had an engine fire and was attempting to return the Boeing 727 to the airport. The plane plunged into the sea about a mile from the crash of SAS Flight 933 less than a week earlier.
Born: Junior Seau (Tiaina Baul Seau, Jr.), American NFL linebacker and Pro Football Hall of Fame inductee; in Oceanside, California (committed suicide, 2012)
January 20, 1969 (Monday)
Richard Nixon was sworn in as the 37th President of the United States.
Following six weeks of familiarization with the Orbital Workshop (OWS), NASA astronaut R. Walter Cunningham made a number of recommendations for modification of its interior. Among these were discontinuance of hardware development conceived to support the concept of compression walking; elimination of a settee from the food management compartment; discontinuance of any consideration of a cot for zero-g sleep stations; simplification of fire extinguisher brackets; and discontinuance of development of a cargo transfer device in the OWS and airlock module (AM).
Born: Patrick K. Kroupa, American computer hacker who went by the name "Lord Digital"; in Los Angeles
January 21, 1969 (Tuesday)
A partial nuclear meltdown at the Lucens nuclear reactor, located in Switzerland near the town of the same name, happened after the reactor core suffered a loss-of-coolant accident. In what is now rated as an International Nuclear Event Scale (INES) Level 4 incident, the cavern in which the reactor was housed sustained massive radioactive contamination but the surrounding area was not irradiated and the cavern was sealed off.
Jury selection began in New Orleans on the opening day of the first and only trial of a person accused of conspiracy in the assassination of U.S. President John F. Kennedy, as District Attorney Jim Garrison went forward with proceedings that followed the indictment of retired New Orleans businessman Clay Shaw. A jury would find Shaw not guilty on all charges on March 1.
January 22, 1969 (Wednesday)
An assassination attempt was carried out on Leonid Brezhnev by deserter Viktor Ilyin during a motorcade in Moscow for the four cosmonauts of Soyuz 4 and Soyuz 5. Brezhnev and Soviet head of state Nikolai V. Podgorny were riding inside a closed limousine, several cars behind the cosmonauts vehicle, and the shots were fired as the procession approached the Kremlin's Borovitsky Gate. The incident wasn't reported in the Soviet press, and western reporters only learned of it 24 hours later when a Foreign Ministry spokesman confirmed the rumors. One person was killed, several were injured. Brezhnev escaped unharmed.
The United States launched Orbiting Solar Observatory (OSO) 5 at 11:48 a.m. to study solar flares.
Denny McLain of the Detroit Tigers, the last man to win 30 games in a Major League Baseball season was named the Associated Press Male Athlete of the Year.
January 23, 1969 (Thursday)
Eugen Gerstenmaier, President of West Germany's Bundestag and second only to Chancellor Kurt Georg Kiesinger, announced his resignation after the media and rival legislators rejected his claims that he had been a resistance fighter against Adolf Hitler during the World War II.
A rare, midwinter tornado, killed 29 people as it passed through the predominantly-black town of Hazlehurst, Mississippi at 6:25 in the morning. Most of the victims were African-American.
January 24, 1969 (Friday)
Spain's President Francisco Franco decreed a three-month state of emergency and suspended five civil rights, allowing police to search without a warrant, hold prisoners indefinitely without charges, prevent public assemblies and to exile dissidents (particularly Basque activists and non-resident students) to their home provinces. Censorship of all publications, lifted on April 9, 1966, was put into effect the next day.
January 25, 1969 (Saturday)
On the third day of nine consecutive days of heavy rainfall in southern California, mudslides killed nine people in their homes north of Los Angeles in a single day. The final death toll would be 95 people (including 57 rain related traffic accidents, 18 drownings and 15 mudslides), and $138,000,000 in damage (roughly $975 million a half century later) in the Los Angeles metropolitan area.
NR-1, the smallest nuclear submarine ever put into operation and the only nuclear-powered sub for research rather than military use, was launched from Groton, Connecticut.
The Vatican issued Comme le prévoit, a directive on guidelines for translation of the Latin liturgy into local languages in accordance with previous papal directives in Sacrosanctum concilium.
The funeral of Jan Palach was conducted in Prague and was the occasion for thousands of people to take action to protest the continued Soviet occupation of Czechoslovakia.
Died: Irene Castle, 75, American Broadway dancer who combined with her husband for the team of Vernon and Irene Castle
January 26, 1969 (Sunday)
Thirteen people were killed in an early morning fire at the stately Victoria Hotel in Dunnville, Ontario.
Elvis Presley stepped into American Studios in Memphis, Tennessee, recording "Long Black Limousine", thus beginning the recording of what would become his landmark comeback sessions for the albums From Elvis in Memphis and Back in Memphis. The sessions yielded the popular and critically acclaimed singles "Suspicious Minds", "In the Ghetto", and "Kentucky Rain".
Died: Edwin T. Pratt, 38, African-American civic leader and Executive Director of the Seattle Urban League, was shot and killed by a shotgun blast as he stepped out of his home in Shoreline, Washington.
January 27, 1969 (Monday)
Fourteen men, 9 of them Jews, were executed in Iraq for spying for Israel. Eleven of the men were hanged at Liberation Square in Baghdad. Afterwards, their bodies, "each wrapped with a white poster bearing the text of the death sentence", were "removed from the gallows and hung up on a gate overlooking the square" for public display, where they were viewed by what state radio referred to as "200,000 jubilant Iraqis"; the other three were hanged at Basra. On February 20, Iraq would hang seven men convicted of spying for Israel, all of them Iraqi Muslims, and display their bodies at Liberation Square.
Reverend Ian Paisley, Northern Irish Unionist leader and founder of the Free Presbyterian Church of Ulster, was jailed for three months for illegal assembly.
A meeting to discuss the feasibility of space stations as the major post-Apollo human spaceflight program was held at NASA Headquarters. Edgar M. Cortright, Director of Langley Research Center (LaRC), commented that the 1975 launch date would preclude major advances in technology at the outset of the core space station; a regenerative life support system would be needed for minimum resupply; replaceable rather than expendable units would require a new philosophy; and overly advanced missions should be avoided at the outset. Abe Silverstein, Director of Lewis Research Center, commented that NASA must do initial homework on size, weight, orbits, programs and experiments, logistic support, power, and communications. These factors would all need to be defined. Wernher von Braun, Director of MSFC, commented that NASA should spell out the sciences, technology, applications, missions, and research desired, and that NASA should define a 1975 station as a core facility from which the ultimate space base could grow in an efficient orderly evolution through 1985. Robert R. Gilruth, Director of Manned Spacecraft Center (MSC), commented that NASA should be looking at a step comparable in challenge to that of Apollo after Mercury; that design should emphasize the utility of the space base as a waystation to the Moon and Mars; that cargo and passenger transfer without extravehicular activity should be available; and that the logistics vehicle support system should be decoupled from the station-building launch capability at the outset. George E. Mueller, Associate Administrator for Manned Space Flight, commented that perhaps the logistics shuttle system should be developed first, before space station characteristics were decided on. James C. Elms, Director, Electronics Research Center, commented, "We should design for artificial gravity and maybe later use the space station without it. You can easily decide to stop something you decided to spin, but it's a diode: you can't later decide to spin something you didn't design to spin."
Born: Patton Oswalt, American television and film actor and writer, winner of an Emmy Award and a Grammy Award; in Portsmouth, Virginia
Died:
Anukulchandra Chakravarty, 80, Bengali Indian guru and philosopher
Charles Winninger, 84, American stage and film comedian
January 28, 1969 (Tuesday)
The largest oil spill in U.S. history, up to that time, took place off of the coast of Santa Barbara, California during the drilling of the ocean floor by Union Oil from its Platform A offshore rig. Well Number A-21 had reached a depth of when, at 10:45 in the morning, the trouble began with a blowout when the drill pipe was removed from the hole. For the next 11 days before the well was capped, between of crude oil would be released and an oil slick was created on the ocean and of beaches. In 1989, its magnitude would be exceeded by the Exxon Valdez spill. The incident would inspire Wisconsin Senator Gaylord Nelson to organize the first Earth Day in 1970.
Born:
Mo Rocca (Maurice Rocca), American TV and radio host, in Washington, D.C.
Kathryn Morris, American TV actress, in Cincinnati
January 29, 1969 (Wednesday)
In the longest-lasting and destructive cases in Canadian history of student protesters occupying a college building, a crowd of 500 black and white students took control of the ninth floor of the Hall Building and the computer center at Sir George Williams University in Montreal. What is now known as the "Sir George Williams affair" began on the fourth day of anger over the university's handling of allegations of racism against one of the professors; though it started peacefully, the occupation would not end until February 11, with the a fire that would destroy the computers and cause one million dollars of damage. Eventually, 49 whites and 48 blacks (mostly foreign students from the Caribbean) would be arrested.
The Glen Campbell Goodtime Hour premiered on the CBS television network, to mixed reviews
Died: Allen Dulles, 75, U.S. Director of Central Intelligence from 1953 to 1961
January 30, 1969 (Thursday)
The Beatles gave their last ever public performance in what is now called "the rooftop concert", setting up their instruments on the roof of the London building that served as the corporate headquarters for their recording company, Apple Corps. Lasting for 42 minutes, the impromptu concert atop the five-story building at 3 Saville Row was filmed for their 1970 film Let It Be. The group opened with a few runthroughs of their soon-to-be-released single "Get Back" and its B-side, "Don't Let Me Down". After three more songs (and complaints from people in nearby buildings), London police arrived and allowed John Lennon, Paul McCartney, George Harrison and Ringo Starr to perform one final song. The group closed with the song that opened the concert, their last sung phrase being "Get back to where you once belonged." Their parting words to the assembled crowd were from John Lennon: "I'd like to say thank you on behalf of the group and ourselves. I hope we passed the audition."
January 31, 1969 (Friday)
The tragedies of 16-year old David Milgaard, wrongfully convicted of a rape and murder, and of the 20-year old victim, Gail Miller, began a couple of hours after Milgaard and two friends arrived in Saskatoon, Saskatchewan to visit one of his friends. Miller's body was found at 8:30. A month later, Milgaard's friend told police that he suspected Milgaard, a high school drop out and hippie, of the crime. For the next 22 years, David Milgaard would be incarcerated in a Saskatchewan prison, given a life sentence in 1970 after his conviction, until his release on April 16, 1992. Five years later, DNA testing would not only exonerate Milgaard, but would identify the person who had committed the crime. Milgaard would receive CDN $10,000,000 (Canadian dollars) in 1999 for the miscarriage of justice.
Televisión Nacional de Chile was incorporated as the first nationwide network in the South American nation, with the encouragement of President Eduardo Frei Montalva. Test transmissions began the next day on Channel 6 in Punta Arenas. It would begin transmission on September 18, initially reaching 6 of Chile's 25 provinces from stations in the cities of Antofagasta, Arica, Concepción, Punta Arenas, Santiago, and Talca.
Died: Meher Baba, 74, Indian Gubdy spiritual master who claimed to have been an avatar of the deity Vishnu
References
1969
1969-01
1969-01
|
```xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "path_to_url">
<plist version="1.0">
<dict>
<key>ACPI</key>
<dict>
<key>DSDT</key>
<dict>
<key>Debug</key>
<false/>
<key>DropOEM_DSM</key>
<false/>
<key>Fixes</key>
<dict>
<key>AddDTGP_0001</key>
<true/>
<key>AddPNLF_1000000</key>
<true/>
<key>FixRegions_10000000</key>
<true/>
<key>NewWay_80000000</key>
<true/>
</dict>
<key>Name</key>
<string>dsdt.aml</string>
<key>ReuseFFFF</key>
<false/>
</dict>
<key>DropTables</key>
<array>
<dict>
<key>Signature</key>
<string>DMAR</string>
</dict>
</array>
<key>SSDT</key>
<dict>
<key>DropOem</key>
<false/>
<key>Generate</key>
<false/>
<key>PluginType</key>
<integer>1</integer>
</dict>
<key>SortedOrder</key>
<array>
<string>SSDT.aml</string>
<string>SSDT-0.aml</string>
<string>SSDT-1.aml</string>
<string>SSDT-2.aml</string>
<string>SSDT-3.aml</string>
<string>SSDT-4.aml</string>
<string>SSDT-5.aml</string>
<string>SSDT-6.aml</string>
<string>SSDT-7.aml</string>
<string>SSDT-8.aml</string>
<string>SSDT-9.aml</string>
<string>SSDT-10.aml</string>
<string>SSDT-11.aml</string>
<string>SSDT-12.aml</string>
<string>SSDT-13.aml</string>
<string>SSDT-14.aml</string>
<string>SSDT-15.aml</string>
<string>SSDT-16.aml</string>
<string>SSDT-17.aml</string>
<string>SSDT-18.aml</string>
<string>SSDT-19.aml</string>
</array>
</dict>
<key>Boot</key>
<dict>
<key>Arguments</key>
<string>slide=0 dart=0 -xcpm nv_disable=1 -gux_defer_usb2 kext-dev-mode=1</string>
<key>Debug</key>
<false/>
<key>DefaultVolume</key>
<string>El Capitan10.11.6</string>
<key>Legacy</key>
<string>LegacyBiosDefault</string>
<key>NeverHibernate</key>
<true/>
<key>Secure</key>
<false/>
<key>Timeout</key>
<integer>2</integer>
<key>XMPDetection</key>
<string>Yes</string>
</dict>
<key>CPU</key>
<dict>
<key>UseARTFrequency</key>
<false/>
</dict>
<key>Devices</key>
<dict>
<key>USB</key>
<dict>
<key>AddClockID</key>
<true/>
<key>FixOwnership</key>
<true/>
<key>Inject</key>
<true/>
</dict>
</dict>
<key>DisableDrivers</key>
<array>
<string>VBoxHfs</string>
</array>
<key>GUI</key>
<dict>
<key>Custom</key>
<dict>
<key>Entries</key>
<array>
<dict>
<key>Disabled</key>
<false/>
<key>FullTitle</key>
<string>UEFI internal</string>
<key>Hidden</key>
<string>Always</string>
<key>Ignore</key>
<false/>
<key>NoCaches</key>
<false/>
<key>Type</key>
<string>Other</string>
</dict>
</array>
</dict>
<key>Mouse</key>
<dict>
<key>DoubleClick</key>
<integer>500</integer>
<key>Enabled</key>
<false/>
<key>Mirror</key>
<false/>
<key>Speed</key>
<integer>8</integer>
</dict>
<key>Scan</key>
<dict>
<key>Entries</key>
<true/>
<key>Legacy</key>
<false/>
<key>Linux</key>
<false/>
<key>Tool</key>
<true/>
</dict>
<key>Theme</key>
<string>El Capitan v1</string>
</dict>
<key>Graphics</key>
<dict>
<key>Inject</key>
<dict>
<key>ATI</key>
<false/>
<key>Intel</key>
<true/>
<key>NVidia</key>
<false/>
</dict>
<key>NvidiaSingle</key>
<false/>
<key>ig-platform-id</key>
<string>0x01660009</string>
</dict>
<key>KernelAndKextPatches</key>
<dict>
<key>AppleRTC</key>
<true/>
<key>AsusAICPUPM</key>
<true/>
<key>Debug</key>
<false/>
<key>ForceKextsToLoad</key>
<array>
<string>\System\Library\Extensions\IONetworkingFamily.kext</string>
</array>
<key>KernelCpu</key>
<false/>
<key>KernelHaswellE</key>
<false/>
<key>KernelLapic</key>
<true/>
<key>KernelPm</key>
<true/>
<key>KextsToPatch</key>
<array>
<dict>
<key>Comment</key>
<string>Second Stage patch</string>
<key>Disabled</key>
<false/>
<key>Find</key>
<data>
hcB0a0g=
</data>
<key>Name</key>
<string>IOGraphicsFamily</string>
<key>Replace</key>
<data>
McB0W0g=
</data>
</dict>
<dict>
<key>Comment</key>
<string>Boot graphics glitch, 10.10.2/10.10.3</string>
<key>Disabled</key>
<false/>
<key>Find</key>
<data>
QYjE6xE=
</data>
<key>Name</key>
<string>IOGraphicsFamily</string>
<key>Replace</key>
<data>
QYjE6zE=
</data>
</dict>
<dict>
<key>Comment</key>
<string>change 15 port limit to 30 in AppleUSBXHCIPCI</string>
<key>Disabled</key>
<false/>
<key>Find</key>
<data>
g72M/v//EA==
</data>
<key>Name</key>
<string>AppleUSBXHCIPCI</string>
<key>Replace</key>
<data>
g72M/v//Hw==
</data>
</dict>
<dict>
<key>Comment</key>
<string>Second Stage patch</string>
<key>Disabled</key>
<false/>
<key>Find</key>
<data>
AQAAdRc=
</data>
<key>Name</key>
<string>IOGraphicsFamily</string>
<key>Replace</key>
<data>
AQAAdBc=
</data>
</dict>
<dict>
<key>Disabled</key>
<false/>
<key>Find</key>
<data>
QVBQTEUgU1NEAA==
</data>
<key>Name</key>
<string>IOAHCIBlockStorage</string>
<key>Replace</key>
<data>
AAAAAAAAAAAAAA==
</data>
</dict>
<dict>
<key>Comment</key>
<string>Boot graphics glitch, 10.10.x/10.11.x (credit lisai9093, cecekpawon)</string>
<key>Disabled</key>
<false/>
<key>Find</key>
<data>
AQAAdRc=
</data>
<key>Name</key>
<string>IOGraphicsFamily</string>
<key>Replace</key>
<data>
AQAA6xc=
</data>
</dict>
<dict>
<key>Disabled</key>
<false/>
<key>Find</key>
<data>
AQIEAgAAAAQAAAABAAAAYBAHAAAQBwAA
</data>
<key>Name</key>
<string>AppleIntelFramebufferCapri</string>
<key>Replace</key>
<data>
AQIEAgAAAAQAAAABAAAAYBMSAAATEgAA
</data>
</dict>
<dict>
<key>Comment</key>
<string>Second Stage patch</string>
<key>Disabled</key>
<false/>
<key>Find</key>
<data>
QYjE6xE=
</data>
<key>Name</key>
<string>IOGraphicsFamily</string>
<key>Replace</key>
<data>
QYjE6zE=
</data>
</dict>
<dict>
<key>Comment</key>
<string>HDMI-audio HD4000 0x01660003, port 0406</string>
<key>Disabled</key>
<false/>
<key>Find</key>
<data>
BAYAAAAEAACBAAAA
</data>
<key>Name</key>
<string>AppleIntelFramebufferCapri</string>
<key>Replace</key>
<data>
BAYAAAAIAAAGAAAA
</data>
</dict>
</array>
</dict>
<key>RtVariables</key>
<dict>
<key>BooterConfig</key>
<string>0x28</string>
<key>CsrActiveConfig</key>
<string>0x67</string>
<key>MLB</key>
<string>C02426301VPG36DA0</string>
<key>ROM</key>
<string>280b5c8184f2</string>
</dict>
<key>SMBIOS</key>
<dict>
<key>ProductName</key>
<string>MacBookPro9,2</string>
<key>Trust</key>
<false/>
</dict>
<key>SystemParameters</key>
<dict>
<key>InjectKexts</key>
<string>Detect</string>
</dict>
</dict>
</plist>
```
|
Gornja Letina is a village in Croatia.
References
Populated places in Sisak-Moslavina County
|
Prairie View, also known as the Betteridge Property and Crestmead, is a historic plantation house located at Pleasant Green, Cooper County, Missouri. It was built in 1859 by John Taylor, and is a two-story, Italianate/Greek Revival style frame dwelling with a -story rear ell. It features a single story porch with fluted Doric order columns and paired brackets in the eaves. It is notable for its contribution to local commerce and agriculture of the region. The plantation utilized slave labor from the time of its completion until the end of the Civil War. The Prairie View plantation is a private residence and the current owners are Robert and Ann Betteridge. The Betteridge family have owned Prairie View since 1903 when Robert Betteridge's grandfather William Betteridge bought the house and legally changed the name from Prairie View to Crestmead.
Prairie View was listed on the National Register of Historic Places in 1982.
More than half of the original plantation was destroyed by fire March 3, 2008. Over the course of several years the home was restored to its original state.
References
Houses on the National Register of Historic Places in Missouri
Italianate architecture in Missouri
Greek Revival houses in Missouri
Houses completed in 1859
Houses in Cooper County, Missouri
National Register of Historic Places in Cooper County, Missouri
1859 establishments in Missouri
|
```python
from rllab.algos.vpg import VPG
from rllab.optimizers.lbfgs_optimizer import LbfgsOptimizer
from rllab.core.serializable import Serializable
class ERWR(VPG, Serializable):
"""
Episodic Reward Weighted Regression [1]_
Notes
-----
This does not implement the original RwR [2]_ that deals with "immediate reward problems" since
it doesn't find solutions that optimize for temporally delayed rewards.
.. [1] Kober, Jens, and Jan R. Peters. "Policy search for motor primitives in robotics." Advances in neural information processing systems. 2009.
.. [2] Peters, Jan, and Stefan Schaal. "Using reward-weighted regression for reinforcement learning of task space control." Approximate Dynamic Programming and Reinforcement Learning, 2007. ADPRL 2007. IEEE International Symposium on. IEEE, 2007.
"""
def __init__(
self,
optimizer=None,
optimizer_args=None,
positive_adv=None,
**kwargs):
Serializable.quick_init(self, locals())
if optimizer is None:
if optimizer_args is None:
optimizer_args = dict()
optimizer = LbfgsOptimizer(**optimizer_args)
super(ERWR, self).__init__(
optimizer=optimizer,
positive_adv=True if positive_adv is None else positive_adv,
**kwargs
)
```
|
```scss
@use '../../token-definition';
@use '../../../theming/inspection';
@use '../../../style/sass-utils';
// The prefix used to generate the fully qualified name for tokens in this file.
$prefix: (mat, tab-header);
// Tokens that can't be configured through Angular Material's current theming API,
// but may be in a future version of the theming API.
@function get-unthemable-tokens() {
@return (
// For some period of time, the MDC tabs removed the divider. This has been added back in
// and will be present in M3.
divider-color: transparent,
divider-height: 0,
);
}
// Tokens that can be configured through Angular Material's color theming API.
@function get-color-tokens($theme, $palette-name: primary) {
$is-dark: inspection.get-theme-type($theme) == dark;
$inactive-label-text-color: inspection.get-theme-color($theme, foreground, text, 0.6);
$active-label-text-color: inspection.get-theme-color($theme, $palette-name, default);
$ripple-color: inspection.get-theme-color($theme, $palette-name, default);
@return (
disabled-ripple-color: inspection.get-theme-color($theme, foreground, disabled),
pagination-icon-color: inspection.get-theme-color($theme, foreground, icon, 1),
// Note: MDC has equivalents of these tokens, but they lead to much higher selector specificity.
inactive-label-text-color: $inactive-label-text-color,
active-label-text-color: $active-label-text-color,
// Tokens needed to implement the gmat styles. Externally they don't change.
active-ripple-color: $ripple-color,
inactive-ripple-color: $ripple-color,
inactive-focus-label-text-color: $inactive-label-text-color,
inactive-hover-label-text-color: $inactive-label-text-color,
active-focus-label-text-color: $active-label-text-color,
active-hover-label-text-color: $active-label-text-color,
active-focus-indicator-color: $active-label-text-color,
active-hover-indicator-color: $active-label-text-color,
);
}
// Tokens that can be configured through Angular Material's typography theming API.
@function get-typography-tokens($theme) {
@return (
// Note: MDC has equivalents of these tokens, but they lead to much higher selector specificity.
label-text-font: inspection.get-theme-typography($theme, button, font-family),
label-text-size: inspection.get-theme-typography($theme, button, font-size),
label-text-tracking: inspection.get-theme-typography($theme, button, letter-spacing),
label-text-line-height: inspection.get-theme-typography($theme, button, line-height),
label-text-weight: inspection.get-theme-typography($theme, button, font-weight),
);
}
// Tokens that can be configured through Angular Material's density theming API.
@function get-density-tokens($theme) {
@return ();
}
// Combines the tokens generated by the above functions into a single map with placeholder values.
// This is used to create token slots.
@function get-token-slots() {
@return sass-utils.deep-merge-all(
get-unthemable-tokens(),
get-color-tokens(token-definition.$placeholder-color-config),
get-typography-tokens(token-definition.$placeholder-typography-config),
get-density-tokens(token-definition.$placeholder-density-config)
);
}
```
|
```go
package sdk
import (
"encoding/xml"
"fmt"
)
type TestsResults struct {
JUnitTestsSuites
TestsStats
}
type TestsStats struct {
Total int `json:"total,omitempty" mapstructure:"total"`
TotalOK int `json:"ok,omitempty" mapstructure:"ok"`
TotalKO int `json:"ko,omitempty" mapstructure:"ko"`
TotalSkipped int `json:"skipped,omitempty" mapstructure:"skipped"`
}
type JUnitTestsSuites struct {
XMLName xml.Name `xml:"testsuites" json:"-"`
TestSuites []JUnitTestSuite `xml:"testsuite" json:"test_suites" mapstructure:"test_suites"`
}
// EnsureData add missing names on test cases and suites also compute
// test suites total values from test cases data.
func (s JUnitTestsSuites) EnsureData() JUnitTestsSuites {
cleaned := s
// Add names if missing
for i := range cleaned.TestSuites {
if cleaned.TestSuites[i].Name == "" {
cleaned.TestSuites[i].Name = fmt.Sprintf("TestSuite.%d", i)
}
for j := range cleaned.TestSuites[i].TestCases {
if cleaned.TestSuites[i].TestCases[j].Name == "" {
cleaned.TestSuites[i].TestCases[j].Name = fmt.Sprintf("TestCase.%d", j)
}
}
}
// Validate total values for test suites
for i, ts := range cleaned.TestSuites {
var nSkipped, nFailures, nErrors int
for _, tc := range cleaned.TestSuites[i].TestCases {
// For a test case we should only increment one counter
if len(tc.Errors) > 0 {
nErrors++
} else if len(tc.Failures) > 0 {
nFailures++
} else if len(tc.Skipped) > 0 {
nSkipped++
}
}
cleaned.TestSuites[i].Skipped = nSkipped
cleaned.TestSuites[i].Failures = nFailures
cleaned.TestSuites[i].Errors = nErrors
cleaned.TestSuites[i].Total = len(ts.TestCases)
}
return cleaned
}
func (s JUnitTestsSuites) ComputeStats() TestsStats {
var stats TestsStats
for _, ts := range s.TestSuites {
stats.Total += ts.Total
stats.TotalKO += ts.Failures + ts.Errors
stats.TotalSkipped += ts.Skipped
stats.TotalOK += ts.Total - (ts.Failures + ts.Errors + ts.Skipped)
}
return stats
}
type JUnitTestSuite struct {
XMLName xml.Name `xml:"testsuite" json:"-"`
Disabled int `xml:"disabled,attr,omitempty" json:"disabled,omitempty" mapstructure:"disabled"`
Errors int `xml:"errors,attr,omitempty" json:"errors,omitempty" mapstructure:"errors"`
Failures int `xml:"failures,attr,omitempty" json:"failures,omitempty" mapstructure:"failures"`
ID string `xml:"id,attr" json:"id,omitempty" mapstructure:"id"`
Name string `xml:"name,attr" json:"name,omitempty" mapstructure:"name"`
Package string `xml:"package,attr,omitempty" json:"package,omitempty" mapstructure:"package"`
Skipped int `xml:"skipped,attr,omitempty" json:"skipped,omitempty" mapstructure:"skipped"`
TestCases []JUnitTestCase `xml:"testcase" json:"tests,omitempty" mapstructure:"tests"`
Time string `xml:"time,attr,omitempty" json:"time,omitempty" mapstructure:"time"`
Timestamp string `xml:"timestamp,attr,omitempty" json:"timestamp,omitempty" mapstructure:"timestamp"`
Total int `xml:"tests,attr" json:"total,omitempty" mapstructure:"total"`
}
type JUnitTestCase struct {
XMLName xml.Name `xml:"testcase" json:"-"`
Classname string `xml:"classname,attr,omitempty" json:"classname,omitempty" mapstructure:"classname"`
Errors []JUnitTestFailure `xml:"error,omitempty" json:"errors,omitempty" mapstructure:"errors"`
Failures []JUnitTestFailure `xml:"failure,omitempty" json:"failures,omitempty" mapstructure:"failures"`
Name string `xml:"name,attr" json:"name,omitempty" mapstructure:"name"`
Skipped []JUnitTestSkipped `xml:"skipped,omitempty" json:"skipped,omitempty" mapstructure:"skipped"`
Status string `xml:"status,attr,omitempty" json:"status,omitempty" mapstructure:"status"`
Systemerr JUnitInnerResult `xml:"system-err,omitempty" json:"systemerr,omitempty" mapstructure:"systemerr"`
Systemout JUnitInnerResult `xml:"system-out,omitempty" json:"systemout,omitempty" mapstructure:"systemout"`
Time string `xml:"time,attr,omitempty" json:"time,omitempty" mapstructure:"time"`
}
type JUnitTestSkipped struct {
Message string `xml:"message,attr,omitempty" json:"message,omitempty" mapstructure:"message"`
Value string `xml:",cdata" json:"value,omitempty" mapstructure:"value"`
}
type JUnitTestFailure struct {
Message string `xml:"message,attr,omitempty" json:"message,omitempty" mapstructure:"message"`
Type string `xml:"type,attr,omitempty" json:"type,omitempty" mapstructure:"type"`
Value string `xml:",cdata" json:"value,omitempty" mapstructure:"value"`
}
type JUnitInnerResult struct {
Value string `xml:",cdata" json:"value,omitempty" mapstructure:"value"`
}
```
|
Carl N. Singer (September 6, 1916 – August 7, 2008) was an American businessman, investor and philanthropist. He specialized in trouble-shooting, identifying problems associated with business management, and restoring financial stability to business organizations.
Singer served on the board of directors for over 30 companies, including Equipment Company of America, Vermont Contract Furnishings Co., Canrad, Inc., Taco Viva, Inc., FastDue.com, Timberland Industries, and PeopleClaim.com. He also held executive roles with Sealy, Inc., Scripto, Inc., the B.V.D. Company and Renfield Importers. He was the founder and chair of Fundamental Management Corporation, a Florida-based institutional investment company.
Singer served as a board of trustees member at Emory University in Atlanta, Georgia, and was an active member of the Friends for Life at the University of Miami, and the Renaissance Group of Dartmouth-Hitchcock Medical Center in New Hampshire.
As a result of his philanthropy, was recognized by the Center for Medical Education at the University of Miami. In 2007, he was awarded the honorary degree of Doctor of Commerce by the Huizenga School of Business and Entrepreneurship at Nova Southeastern University in Ft. Lauderdale, FL.
Singer died on August 7, 2008, a month before his 92nd birthday. His wife of 69 years, Marion S. Singer, died in 2011. He is survived by two children, David and Phyllis, four grandchildren, and five great-grandchildren.
He is listed in Who's Who in America, Who's Who in Finance and Industry, and Who's Who International.
References
External links
2007 Commencement at Nova Southeastern University
"Blacker Ink at Scripto, Inc.." Time, November 19, 1965.
2008 deaths
1916 births
20th-century American businesspeople
20th-century American philanthropists
|
Quality bias in price indices is a kind of mismeasurement if they do not incorporate data on the quality of goods from period to period, as well as their nominal price.
Personal computers are a canonical case. Because of improvements in computer chips, greater and greater speeds and features have become available, without substantial increases in price. If only price information on personal computers were used, quality bias would cause growth in a consumer price index (CPI) to be overestimated, since an equivalent computer would actually be much cheaper in later periods.
Determining quality
Quality bias can work both ways. Faster computers with enhanced performance require greater memory and more expensive support software. Most personal computers were previously bundled with software, but now come only with a basic operating system and a requirement for the purchaser to purchase the bundled software after a "trial period", so the actual value per dollar is much lower. Obsolescence is built into most personal electronics, shortening their useful live, again lowering the actual value. All these issues make the quality bias tend to be negative rather than positive. As products and the manufacturing methodology advances, the cost of manufacture is expected to go down, and improved products are part of every product life cycle, and many products go through repeated cycling. An example is the automobile. Quality bias is most often seen in a negative manner in the cases of mature products as companies lower their acceptance standards in order to increase their profit margins. There is no effective measure for declining quality, unfortunately, which is why some nations such as Germany and Japan have developed very meticulous standards for nearly everything, including services. The DIN and JIS enable anyone to evaluate whether or not an article has been properly produced. There is no such standard in the U.S., except for some scattered attempts by insurers to control electrical quality (such as UL). Engineering standards, such as ASME and ASTM; Automotive, such as ASE and ISO are not effective standards and do not compare with JIS or DIN because it is self-imposed, self-regulated, and self-inspected by the very people it is designed to regulate.
Makers of price indexes can address the quality bias problem with several steps. The main approach is to use hedonic index methods to capture attributes of products and their implicit prices:
Use matching models to relate goods from one period to the next
Gather data on the attributes of goods and use hedonic regressions to infer implicit prices for these attributes and the net change in price for a good whose attributes have changed.
References
Price indices
Price index theory
Quality
|
C. Gus Rys ( – August 25, 1980) was an American Republican Party politician who served as mayor of Fair Lawn, New Jersey and served in the New Jersey General Assembly.
Biography
Rys was born in Passaic and attended private Catholic schools there. He graduated from East Rutherford High School before attending New Jersey Law School (now part of Rutgers School of Law–Newark). He served on various Republican municipal and Bergen County-wide committees and campaigns prior to and during his time in elected office.
He served in municipal offices, first as a councilman in Fair Lawn for 13 years, as deputy mayor for six years, and mayor for two years. In 1971, he and fellow Republican John A. Spizziri were elected to the New Jersey General Assembly from District 13-C consisting of a snake-like district from Garfield to Wyckoff along the western border of Bergen County, then east to Westwood. For the next election, a new districting scheme was implemented and Rys and Spizziri were reelected to the Assembly from the new 40th district consisting of western Bergen County and subsequently reelected in 1975. While in the Assembly, Rys was known for his opposition to the new income tax implemented in the state that decade. He chose not to seek reelection the Assembly in 1977 and was succeeded by newcomers W. Cary Edwards and Walter M. D. Kern (Spizziri was defeated in the Republican primary that year).
Rys was married to the former Joyce Yaros. They had three children. He died at Hackensack Hospital on August 25, 1980. He is buried at Fair Lawn Memorial Cemetery.
Notes
References
Year of birth unknown
1980 deaths
Rutgers School of Law–Newark alumni
Politicians from Bergen County, New Jersey
Politicians from Passaic, New Jersey
People from Fair Lawn, New Jersey
New Jersey city council members
Mayors of places in New Jersey
Republican Party members of the New Jersey General Assembly
East Rutherford High School alumni
Burials in New Jersey
1912 births
|
Soft spot may refer to:
Fontanelle, a human anatomical feature also called the "soft spot"
"Soft Spot" (song), a song by Piri
Soft Spot (album), an album by Clem Snide
Soft Spot, a 2022 album by Chelsea Jade
|
Nowieczek is a village in the administrative district of Gmina Dolsk, within Śrem County, Greater Poland Voivodeship, in west-central Poland. It lies approximately north-east of Dolsk, south-east of Śrem, and south of the regional capital Poznań.
References
Nowieczek
|
```python
from __future__ import with_statement
from pybench import Test
class WithFinally(Test):
version = 2.0
operations = 20
rounds = 80000
class ContextManager(object):
def __enter__(self):
pass
def __exit__(self, exc, val, tb):
pass
def test(self):
cm = self.ContextManager()
for i in xrange(self.rounds):
with cm: pass
with cm: pass
with cm: pass
with cm: pass
with cm: pass
with cm: pass
with cm: pass
with cm: pass
with cm: pass
with cm: pass
with cm: pass
with cm: pass
with cm: pass
with cm: pass
with cm: pass
with cm: pass
with cm: pass
with cm: pass
with cm: pass
with cm: pass
def calibrate(self):
cm = self.ContextManager()
for i in xrange(self.rounds):
pass
class TryFinally(Test):
version = 2.0
operations = 20
rounds = 80000
class ContextManager(object):
def __enter__(self):
pass
def __exit__(self):
# "Context manager" objects used just for their cleanup
# actions in finally blocks usually don't have parameters.
pass
def test(self):
cm = self.ContextManager()
for i in xrange(self.rounds):
cm.__enter__()
try: pass
finally: cm.__exit__()
cm.__enter__()
try: pass
finally: cm.__exit__()
cm.__enter__()
try: pass
finally: cm.__exit__()
cm.__enter__()
try: pass
finally: cm.__exit__()
cm.__enter__()
try: pass
finally: cm.__exit__()
cm.__enter__()
try: pass
finally: cm.__exit__()
cm.__enter__()
try: pass
finally: cm.__exit__()
cm.__enter__()
try: pass
finally: cm.__exit__()
cm.__enter__()
try: pass
finally: cm.__exit__()
cm.__enter__()
try: pass
finally: cm.__exit__()
cm.__enter__()
try: pass
finally: cm.__exit__()
cm.__enter__()
try: pass
finally: cm.__exit__()
cm.__enter__()
try: pass
finally: cm.__exit__()
cm.__enter__()
try: pass
finally: cm.__exit__()
cm.__enter__()
try: pass
finally: cm.__exit__()
cm.__enter__()
try: pass
finally: cm.__exit__()
cm.__enter__()
try: pass
finally: cm.__exit__()
cm.__enter__()
try: pass
finally: cm.__exit__()
cm.__enter__()
try: pass
finally: cm.__exit__()
cm.__enter__()
try: pass
finally: cm.__exit__()
def calibrate(self):
cm = self.ContextManager()
for i in xrange(self.rounds):
pass
class WithRaiseExcept(Test):
version = 2.0
operations = 2 + 3 + 3
rounds = 100000
class BlockExceptions(object):
def __enter__(self):
pass
def __exit__(self, exc, val, tb):
return True
def test(self):
error = ValueError
be = self.BlockExceptions()
for i in xrange(self.rounds):
with be: raise error
with be: raise error
with be: raise error,"something"
with be: raise error,"something"
with be: raise error,"something"
with be: raise error("something")
with be: raise error("something")
with be: raise error("something")
def calibrate(self):
error = ValueError
be = self.BlockExceptions()
for i in xrange(self.rounds):
pass
```
|
```javascript
/**
* @license Apache-2.0
*
*
*
* path_to_url
*
* Unless required by applicable law or agreed to in writing, software
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/
'use strict';
var randu = require( '@stdlib/random/base/randu' );
var EPS = require( '@stdlib/constants/float64/eps' );
var mode = require( './../lib' );
var lambda;
var k;
var v;
var i;
for ( i = 0; i < 10; i++ ) {
k = ( randu()*10.0 ) + EPS;
lambda = ( randu()*10.0 ) + EPS;
v = mode( k, lambda );
console.log( 'k: %d, : %d, mode(X;k,): %d', k.toFixed( 4 ), lambda.toFixed( 4 ), v.toFixed( 4 ) );
}
```
|
```objective-c
#pragma once
#include "stdafx.h"
#include "BaseMapper.h"
class Malee : public BaseMapper
{
protected:
uint16_t GetPRGPageSize() override { return 0x800; }
uint16_t GetCHRPageSize() override { return 0x2000; }
void InitMapper() override
{
SelectPrgPage4x(0, 0);
SelectPrgPage4x(1, 4);
SelectPrgPage4x(2, 8);
SelectPrgPage4x(3, 12);
SelectCHRPage(0, 0);
SetCpuMemoryMapping(0x6000, 0x67FF, 16, PrgMemoryType::PrgRom);
}
};
```
|
```python
import demistomock as demisto # noqa: F401
from CommonServerPython import * # noqa: F401
import copy
import urllib3
from requests import Response
DATE_FORMAT = '%Y-%m-%dT%H:%M:%S.%fZ'
account_sas_token = ""
storage_account_name = ""
class Client:
"""
API Client
"""
def __init__(self, server_url, verify, proxy, account_sas_token, storage_account_name,
api_version, managed_identities_client_id: Optional[str] = None):
self.ms_client = MicrosoftStorageClient(server_url, verify, proxy, account_sas_token, storage_account_name,
api_version,
managed_identities_client_id)
def create_table_request(self, table_name: str) -> dict:
"""
Creates a new table in a storage account.
Args:
table_name (str): Table name.
Returns:
dict: API response from Azure.
"""
headers = {'Content-Type': 'application/json',
'Accept': 'application/json;odata=nometadata'}
data = {"TableName": table_name}
response = self.ms_client.http_request(method='POST', url_suffix='Tables', headers=headers, resp_type="json",
json_data=data)
return response
def delete_table_request(self, table_name: str) -> Response:
"""
Delete the specified table and any data it contains.
Args:
table_name (str): Table name.
Returns:
Response: API response from Azure.
"""
url_suffix = f'Tables(\'{table_name}\')'
response = self.ms_client.http_request(method='DELETE', url_suffix=url_suffix, return_empty_response=True)
return response
def query_tables_request(self, limit: str = None, query_filter: str = None, next_table: str = None) -> Response:
"""
List tables under the specified account.
Args:
limit (str): Retrieve top n tables.
query_filter (str): Query expression.
next_table (str): Identifies the portion of the list to be returned.
Returns:
Response: API response from Azure.
"""
headers = {'Accept': 'application/json;odata=nometadata'}
params = remove_empty_elements({"$top": limit, "$filter": query_filter, "NextTableName": next_table})
response = self.ms_client.http_request(method='GET', url_suffix='Tables', headers=headers, params=params,
return_empty_response=True)
return response
def insert_entity_request(self, table_name: str, entity_fields: dict) -> dict:
"""
Insert a new entity into a table.
Args:
table_name (str): Table name.
entity_fields (dict): Entity fields data.
Returns:
dict: API response from Azure.
"""
headers = {'Content-Type': 'application/json',
'Accept': 'application/json;odata=nometadata'}
response = self.ms_client.http_request(method='POST', url_suffix=f'{table_name}', headers=headers,
resp_type="json", json_data=entity_fields)
return response
def update_entity_request(self, table_name: str, partition_key: str, row_key: str, entity_fields: dict) -> Response:
"""
Update an existing entity in a table.
Args:
table_name (str): Table name.
partition_key (str): Unique identifier for the partition within a given table.
row_key (str): Unique identifier for an entity within a given partition.
entity_fields (dict): Entity fields data.
Returns:
Response: API response from Azure.
"""
headers = {'Content-Type': 'application/json'}
url_suffix = f'{table_name}(PartitionKey=\'{partition_key}\',RowKey=\'{row_key}\')'
response = self.ms_client.http_request(method='MERGE', url_suffix=url_suffix,
headers=headers, return_empty_response=True, json_data=entity_fields)
return response
def replace_entity_request(self, table_name: str, partition_key: str, row_key: str,
entity_fields: dict) -> Response:
"""
Replace an existing entity in a table.
Args:
table_name (str): Table name.
partition_key (str): Unique identifier for the partition within a given table.
row_key (str): Unique identifier for an entity within a given partition.
entity_fields (dict): Entity fields data.
Returns:
Response: API response from Azure.
"""
headers = {'Content-Type': 'application/json'}
url_suffix = f'{table_name}(PartitionKey=\'{partition_key}\',RowKey=\'{row_key}\')'
response = self.ms_client.http_request(method='PUT', url_suffix=url_suffix,
headers=headers, return_empty_response=True, json_data=entity_fields)
return response
def query_entity_request(self, table_name: str, partition_key: str = None, row_key: str = None,
query_filter: str = None, select: str = None, limit: str = None,
next_partition_key: str = None, next_row_key: str = None) -> Response:
"""
Query entities in a table.
Args:
table_name (str): Table name.
partition_key (str): Unique identifier for the partition within a given table.
row_key (str): Unique identifier for an entity within a given partition.
query_filter (str): Query expression.
select (str): Entity properties to return.
limit (str): Retrieve top n entities.
next_partition_key (str): Identifies the portion of the list to be returned.
next_row_key (str): Identifies the portion of the list to be returned.
Returns:
Response: API response from Azure.
"""
headers = {'Accept': 'application/json;odata=nometadata'}
params = remove_empty_elements({"$filter": query_filter,
"$select": select,
"$top": limit,
"NextPartitionKey": next_partition_key,
"NextRowKey": next_row_key})
url_suffix = f'{table_name}(PartitionKey=\'{partition_key}\',RowKey=\'{row_key}\')' if partition_key \
else f'{table_name}()'
response = self.ms_client.http_request(method='GET', url_suffix=url_suffix,
params=params, headers=headers, return_empty_response=True)
return response
def delete_entity_request(self, table_name: str, partition_key: str, row_key: str) -> Response:
"""
Delete an existing entity in a table
Args:
table_name (str): Table name.
partition_key (str): Unique identifier for the partition within a given table.
row_key (str): Unique identifier for an entity within a given partition.
Returns:
Response: API response from Azure.
"""
headers = {"If-Match": "*"}
url_suffix = f'{table_name}(PartitionKey=\'{partition_key}\',RowKey=\'{row_key}\')'
response = self.ms_client.http_request(method='DELETE', url_suffix=url_suffix, headers=headers,
return_empty_response=True)
return response
def create_table_command(client: Client, args: Dict[str, Any]) -> CommandResults:
"""
Creates a new table in a storage account.
Args:
client (Client): Azure Table Storage API client.
args (dict): Command arguments from XSOAR.
Returns:
CommandResults: outputs, readable outputs and raw response for XSOAR.
"""
table_name = args['table_name']
table_name_regex = "^[A-Za-z][A-Za-z0-9]{2,62}$"
# Rules for naming tables can be found here:
# path_to_url
if not re.search(table_name_regex, table_name):
raise Exception('The specified table name is invalid.')
response = client.create_table_request(table_name)
outputs = {"name": response.get("TableName")}
command_results = CommandResults(
readable_output=f'Table {table_name} successfully created.',
outputs_prefix='AzureStorageTable.Table',
outputs_key_field='name',
outputs=outputs,
raw_response=response
)
return command_results
def delete_table_command(client: Client, args: Dict[str, Any]) -> CommandResults:
"""
Delete the specified table and any data it contains.
Args:
client (Client): Azure Table Storage API client.
args (dict): Command arguments from XSOAR.
Returns:
CommandResults: outputs, readable outputs and raw response for XSOAR.
"""
table_name = args['table_name']
client.delete_table_request(table_name)
command_results = CommandResults(
readable_output=f'Table {table_name} successfully deleted.'
)
return command_results
def query_tables_command(client: Client, args: Dict[str, Any]) -> CommandResults:
"""
List tables under the specified account.
Args:
client (Client): Azure Table Storage API client.
args (dict): Command arguments from XSOAR.
Returns:
CommandResults: outputs, readable outputs and raw response for XSOAR.
"""
limit = args.get('limit') or '50'
query_filter = args.get('filter')
page = arg_to_number(args.get('page') or '1')
next_table = None
readable_message = f'Tables List:\n Current page size: {limit}\n Showing page {page} out others that may exist'
if page > 1: # type: ignore
offset = int(limit) * (page - 1) # type: ignore
response = client.query_tables_request(str(offset), query_filter)
response_headers = response.headers
next_table = response_headers.get('x-ms-continuation-NextTableName')
if not next_table:
return CommandResults(
readable_output=readable_message,
outputs_prefix='AzureStorageTable.Table',
outputs=[],
raw_response=[]
)
raw_response = client.query_tables_request(limit, query_filter, next_table).json()
outputs = []
for table in raw_response.get("value"):
outputs.append({"name": table.get("TableName")})
readable_output = tableToMarkdown(
readable_message,
outputs,
headerTransform=pascalToSpace
)
command_results = CommandResults(
readable_output=readable_output,
outputs_prefix='AzureStorageTable.Table',
outputs_key_field='name',
outputs=outputs,
raw_response=raw_response
)
return command_results
def convert_dict_time_format(data: dict, keys: list):
"""
Convert dictionary data values time format.
Args:
data (dict): Data.
keys (list): Keys list to convert
"""
for key in keys:
if data.get(key):
str_time = data.get(key)[:-2] + 'Z' # type: ignore
iso_time = FormatIso8601(datetime.strptime(str_time, DATE_FORMAT))
data[key] = iso_time
def insert_entity_command(client: Client, args: Dict[str, Any]) -> CommandResults:
"""
Insert a new entity into a table.
Args:
client (Client): Azure Table Storage API client.
args (dict): Command arguments from XSOAR.
Returns:
CommandResults: outputs, readable outputs and raw response for XSOAR.
"""
table_name = args['table_name']
partition_key = args['partition_key']
row_key = args['row_key']
entity_fields = args['entity_fields']
try:
entity_fields = json.loads(entity_fields)
except ValueError:
raise ValueError('Failed to parse entity_fields argument. Please provide valid JSON format entity data.')
entity_fields['PartitionKey'] = partition_key
entity_fields['RowKey'] = row_key
response = client.insert_entity_request(table_name, entity_fields)
outputs = {"name": table_name, "Entity": [copy.deepcopy(response)]}
convert_dict_time_format(outputs.get('Entity')[0], ['Timestamp']) # type: ignore
readable_output = tableToMarkdown(
f'Entity Fields for {table_name} Table:',
outputs.get('Entity'),
headerTransform=pascalToSpace
)
command_results = CommandResults(
readable_output=readable_output,
outputs_prefix='AzureStorageTable.Table',
outputs_key_field='name',
outputs=outputs,
raw_response=response
)
return command_results
def replace_entity_command(client: Client, args: Dict[str, Any]) -> CommandResults:
"""
Replace an existing entity in a table.
The Replace Entity operation replace the entire entity and can be used to remove properties.
Args:
client (Client): Azure Table Storage API client.
args (dict): Command arguments from XSOAR.
Returns:
CommandResults: outputs, readable outputs and raw response for XSOAR.
"""
table_name = args['table_name']
partition_key = args['partition_key']
row_key = args['row_key']
entity_fields = args['entity_fields']
try:
entity_fields = json.loads(entity_fields)
except ValueError:
raise ValueError('Failed to parse entity_fields argument. Please provide valid JSON format entity data.')
client.replace_entity_request(table_name, partition_key, row_key, entity_fields)
command_results = CommandResults(
readable_output=f'Entity in {table_name} table successfully replaced.'
)
return command_results
def update_entity_command(client: Client, args: Dict[str, Any]) -> CommandResults:
"""
Update an existing entity in a table.
This operation does not replace the existing entity.
Args:
client (Client): Azure Table Storage API client.
args (dict): Command arguments from XSOAR.
Returns:
CommandResults: outputs, readable outputs and raw response for XSOAR.
"""
table_name = args['table_name']
partition_key = args['partition_key']
row_key = args['row_key']
entity_fields = args['entity_fields']
try:
entity_fields = json.loads(entity_fields)
except ValueError:
raise ValueError('Failed to parse entity_fields argument. Please provide valid JSON format entity data.')
client.update_entity_request(table_name, partition_key, row_key, entity_fields)
command_results = CommandResults(
readable_output=f'Entity in {table_name} table successfully updated.'
)
return command_results
def create_query_entity_output(table_name: str, raw_response: dict, is_entity_query: bool) -> dict:
"""
Create query_entity_command outputs.
Args:
table_name (str): Command table name.
raw_response (str): API response from Azure.
is_entity_query (bool): Indicates to path to the response data.
Returns:
dict: Command response.
"""
outputs = {"name": table_name}
response_copy = copy.deepcopy(raw_response)
if is_entity_query:
outputs["Entity"] = [response_copy] # type: ignore
else:
outputs["Entity"] = response_copy.get('value') # type: ignore
for entity in outputs.get("Entity"): # type: ignore
convert_dict_time_format(entity, ['Timestamp']) # type: ignore
return outputs
def query_entity_command(client: Client, args: Dict[str, Any]) -> CommandResults:
"""
Query entities in a table.
Args:
client (Client): Azure Table Storage API client.
args (dict): Command arguments from XSOAR.
Returns:
CommandResults: outputs, readable outputs and raw response for XSOAR.
"""
table_name = args['table_name']
partition_key = args.get('partition_key')
row_key = args.get('row_key')
query_filter = args.get('filter')
select = args.get('select')
limit = None if partition_key else args.get('limit') or '50'
page = None if partition_key else arg_to_number(args.get('page') or '1')
next_partition_key = None
next_row_key = None
if (partition_key and not row_key) or (row_key and not partition_key):
raise Exception('Please provide both \'partition_key\' and \'row_key\' arguments, or no one of them.')
readable_message = f'Entity Fields for {table_name} table:\n Current page size: {limit or 50}\n ' \
f'Showing page {page or 1} out others that may exist'
if page and page > 1:
offset = int(limit) * (page - 1) # type: ignore
response = client.query_entity_request(table_name, partition_key, row_key, query_filter, select, str(offset))
response_headers = response.headers
next_partition_key = response_headers.get('x-ms-continuation-NextPartitionKey')
next_row_key = response_headers.get('x-ms-continuation-NextRowKey')
if not next_partition_key:
return CommandResults(
readable_output=readable_message,
outputs_prefix='AzureStorageTable.Table',
outputs=[],
raw_response=[]
)
raw_response = client.query_entity_request(table_name, partition_key, row_key, query_filter, select, limit,
next_partition_key, next_row_key).json()
outputs = create_query_entity_output(table_name, raw_response, is_entity_query=partition_key is not None)
readable_output = tableToMarkdown(
readable_message,
outputs.get("Entity"),
headerTransform=pascalToSpace
)
command_results = CommandResults(
readable_output=readable_output,
outputs_prefix='AzureStorageTable.Table',
outputs_key_field='name',
outputs=outputs,
raw_response=raw_response
)
return command_results
def delete_entity_command(client: Client, args: Dict[str, Any]) -> CommandResults:
"""
Delete an existing entity in a table
Args:
client (Client): Azure Table Storage API client.
args (dict): Command arguments from XSOAR.
Returns:
CommandResults: outputs, readable outputs and raw response for XSOAR.
Returns:
"""
table_name = args['table_name']
partition_key = args['partition_key']
row_key = args['row_key']
client.delete_entity_request(table_name, partition_key, row_key)
command_results = CommandResults(
readable_output=f'Entity in {table_name} table successfully deleted.'
)
return command_results
def test_module(client: Client) -> None:
"""
Tests API connectivity and authentication.
Args:
client (Client): Azure Table API client.
Returns:
str : 'ok' if test passed, anything else will fail the test.
"""
try:
client.query_tables_request()
except Exception as exception:
if 'ResourceNotFound' in str(exception):
return return_results('Authorization Error: make sure API Credentials are correctly set')
if 'Error Type' in str(exception) or not client.ms_client._storage_account_name:
return return_results(
'Verify that the storage account name is correct and that you have access to the server from your host.')
raise exception
return_results('ok')
return None
def main() -> None:
"""
Main function
"""
params: Dict[str, Any] = demisto.params()
args: Dict[str, Any] = demisto.args()
verify_certificate: bool = not params.get('insecure', False)
proxy = params.get('proxy', False)
global account_sas_token
global storage_account_name
account_sas_token = params.get('credentials', {}).get('password')
storage_account_name = params['credentials']['identifier']
api_version = "2020-10-02"
base_url = f'https://{storage_account_name}.table.core.windows.net/'
managed_identities_client_id = get_azure_managed_identities_client_id(params)
command = demisto.command()
demisto.debug(f'Command being called is {command}')
try:
urllib3.disable_warnings()
client: Client = Client(base_url, verify_certificate, proxy, account_sas_token, storage_account_name,
api_version, managed_identities_client_id)
commands = {
'azure-storage-table-create': create_table_command,
'azure-storage-table-delete': delete_table_command,
'azure-storage-table-query': query_tables_command,
'azure-storage-table-entity-insert': insert_entity_command,
'azure-storage-table-entity-update': update_entity_command,
'azure-storage-table-entity-query': query_entity_command,
'azure-storage-table-entity-delete': delete_entity_command,
'azure-storage-table-entity-replace': replace_entity_command,
}
if command == 'test-module':
test_module(client)
elif command in commands:
return_results(commands[command](client, args))
else:
raise NotImplementedError(f'{command} command is not implemented.')
except Exception as e:
return_error(str(e))
from MicrosoftAzureStorageApiModule import * # noqa: E402
if __name__ in ['__main__', 'builtin', 'builtins']:
main()
```
|
Textile fibres or textile fibers (see spelling differences) can be created from many natural sources (animal hair or fur, cocoons as with silk worm cocoons), as well as semisynthetic methods that use naturally occurring polymers, and synthetic methods that use polymer-based materials, and even minerals such as metals to make foils and wires. The consumer protection laws requires that fibre content be provided on content labels. Common textile fibres used in global fashion today include:
Animal-based fibres
Plant-based fibres (cellulosic fibres)
Other plant-based fibers:
Bast fibre
Cedar bark textile
Esparto
Fique
Papyrus
Straw
Mineral-based fibres
Basalt fiber
Copper
Gold
Steel
Synthetic fibres
See also
Fibre
Textile
Textile manufacturing
Textile manufacturing terminology
Timeline of clothing and textiles technology
Units of textile measurement
References
Textiles
Clothing industry
|
```c
/*
* short.c -- Simple Hardware Operations and Raw Tests
* short.c -- also a brief example of interrupt handling ("short int")
*
*
* The source code in this file can be freely used, adapted,
* and redistributed in source or binary form, so long as an
* acknowledgment appears in derived source files. The citation
* should list that the code comes from the book "Linux Device
* Drivers" by Alessandro Rubini and Jonathan Corbet, published
* by O'Reilly & Associates. No warranty is attached;
* we cannot take responsibility for errors or fitness for use.
*
* $Id: short.c,v 1.16 2004/10/29 16:45:40 corbet Exp $
*/
/*
* FIXME: this driver is not safe with concurrent readers or
* writers.
*/
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/init.h>
#include <linux/sched.h>
#include <linux/kernel.h> /* printk() */
#include <linux/fs.h> /* everything... */
#include <linux/errno.h> /* error codes */
#include <linux/delay.h> /* udelay */
#include <linux/kdev_t.h>
#include <linux/slab.h>
#include <linux/mm.h>
#include <linux/ioport.h>
#include <linux/interrupt.h>
#include <linux/workqueue.h>
#include <linux/poll.h>
#include <linux/wait.h>
#include <asm/io.h>
#define SHORT_NR_PORTS 8 /* use 8 ports by default */
/*
* all of the parameters have no "short_" prefix, to save typing when
* specifying them at load time
*/
static int major = 0; /* dynamic by default */
module_param(major, int, 0);
static int use_mem = 0; /* default is I/O-mapped */
module_param(use_mem, int, 0);
/* default is the first printer port on PC's. "short_base" is there too
because it's what we want to use in the code */
static unsigned long base = 0x378;
unsigned long short_base = 0;
module_param(base, long, 0);
/* The interrupt line is undefined by default. "short_irq" is as above */
static int irq = -1;
volatile int short_irq = -1;
module_param(irq, int, 0);
static int probe = 0; /* select at load time how to probe irq line */
module_param(probe, int, 0);
static int wq = 0; /* select at load time whether a workqueue is used */
module_param(wq, int, 0);
static int tasklet = 0; /* select whether a tasklet is used */
module_param(tasklet, int, 0);
static int share = 0; /* select at load time whether install a shared irq */
module_param(share, int, 0);
MODULE_AUTHOR ("Alessandro Rubini");
MODULE_LICENSE("Dual BSD/GPL");
unsigned long short_buffer = 0;
unsigned long volatile short_head;
volatile unsigned long short_tail;
DECLARE_WAIT_QUEUE_HEAD(short_queue);
/* Set up our tasklet if we're doing that. */
void short_do_tasklet(unsigned long);
DECLARE_TASKLET(short_tasklet, short_do_tasklet, 0);
/*
* Atomicly increment an index into short_buffer
*/
static inline void short_incr_bp(volatile unsigned long *index, int delta)
{
unsigned long new = *index + delta;
barrier(); /* Don't optimize these two together */
*index = (new >= (short_buffer + PAGE_SIZE)) ? short_buffer : new;
}
/*
* The devices with low minor numbers write/read burst of data to/from
* specific I/O ports (by default the parallel ones).
*
* The device with 128 as minor number returns ascii strings telling
* when interrupts have been received. Writing to the device toggles
* 00/FF on the parallel data lines. If there is a loopback wire, this
* generates interrupts.
*/
int short_open (struct inode *inode, struct file *filp)
{
extern struct file_operations short_i_fops;
if (iminor (inode) & 0x80)
filp->f_op = &short_i_fops; /* the interrupt-driven node */
return 0;
}
int short_release (struct inode *inode, struct file *filp)
{
return 0;
}
/* first, the port-oriented device */
enum short_modes {SHORT_DEFAULT=0, SHORT_STRING, SHORT_MEMORY};
ssize_t do_short_read (struct inode *inode, struct file *filp, char __user *buf,
size_t count, loff_t *f_pos)
{
int retval = count, minor = iminor (inode);
unsigned long port = short_base + (minor&0x0f);
void *address = (void *) short_base + (minor&0x0f);
int mode = (minor&0x70) >> 4;
unsigned char *kbuf = kmalloc(count, GFP_KERNEL), *ptr;
if (!kbuf)
return -ENOMEM;
ptr = kbuf;
if (use_mem)
mode = SHORT_MEMORY;
switch(mode) {
case SHORT_STRING:
insb(port, ptr, count);
rmb();
break;
case SHORT_DEFAULT:
while (count--) {
*(ptr++) = inb(port);
rmb();
}
break;
case SHORT_MEMORY:
while (count--) {
*ptr++ = ioread8(address);
rmb();
}
break;
default: /* no more modes defined by now */
retval = -EINVAL;
break;
}
if ((retval > 0) && copy_to_user(buf, kbuf, retval))
retval = -EFAULT;
kfree(kbuf);
return retval;
}
/*
* Version-specific methods for the fops structure. FIXME don't need anymore.
*/
ssize_t short_read(struct file *filp, char __user *buf, size_t count, loff_t *f_pos)
{
return do_short_read(filp->f_dentry->d_inode, filp, buf, count, f_pos);
}
ssize_t do_short_write (struct inode *inode, struct file *filp, const char __user *buf,
size_t count, loff_t *f_pos)
{
int retval = count, minor = iminor(inode);
unsigned long port = short_base + (minor&0x0f);
void *address = (void *) short_base + (minor&0x0f);
int mode = (minor&0x70) >> 4;
unsigned char *kbuf = kmalloc(count, GFP_KERNEL), *ptr;
if (!kbuf)
return -ENOMEM;
if (copy_from_user(kbuf, buf, count))
return -EFAULT;
ptr = kbuf;
if (use_mem)
mode = SHORT_MEMORY;
switch(mode) {
case SHORT_STRING:
outsb(port, ptr, count);
wmb();
break;
case SHORT_DEFAULT:
while (count--) {
outb(*(ptr++), port);
wmb();
}
break;
case SHORT_MEMORY:
while (count--) {
iowrite8(*ptr++, address);
wmb();
}
break;
default: /* no more modes defined by now */
retval = -EINVAL;
break;
}
kfree(kbuf);
return retval;
}
ssize_t short_write(struct file *filp, const char __user *buf, size_t count,
loff_t *f_pos)
{
return do_short_write(filp->f_dentry->d_inode, filp, buf, count, f_pos);
}
unsigned int short_poll(struct file *filp, poll_table *wait)
{
return POLLIN | POLLRDNORM | POLLOUT | POLLWRNORM;
}
struct file_operations short_fops = {
.owner = THIS_MODULE,
.read = short_read,
.write = short_write,
.poll = short_poll,
.open = short_open,
.release = short_release,
};
/* then, the interrupt-related device */
ssize_t short_i_read (struct file *filp, char __user *buf, size_t count, loff_t *f_pos)
{
int count0;
DEFINE_WAIT(wait);
while (short_head == short_tail) {
prepare_to_wait(&short_queue, &wait, TASK_INTERRUPTIBLE);
if (short_head == short_tail)
schedule();
finish_wait(&short_queue, &wait);
if (signal_pending (current)) /* a signal arrived */
return -ERESTARTSYS; /* tell the fs layer to handle it */
}
/* count0 is the number of readable data bytes */
count0 = short_head - short_tail;
if (count0 < 0) /* wrapped */
count0 = short_buffer + PAGE_SIZE - short_tail;
if (count0 < count) count = count0;
if (copy_to_user(buf, (char *)short_tail, count))
return -EFAULT;
short_incr_bp (&short_tail, count);
return count;
}
ssize_t short_i_write (struct file *filp, const char __user *buf, size_t count,
loff_t *f_pos)
{
int written = 0, odd = *f_pos & 1;
unsigned long port = short_base; /* output to the parallel data latch */
void *address = (void *) short_base;
if (use_mem) {
while (written < count)
iowrite8(0xff * ((++written + odd) & 1), address);
} else {
while (written < count)
outb(0xff * ((++written + odd) & 1), port);
}
*f_pos += count;
return written;
}
struct file_operations short_i_fops = {
.owner = THIS_MODULE,
.read = short_i_read,
.write = short_i_write,
.open = short_open,
.release = short_release,
};
irqreturn_t short_interrupt(int irq, void *dev_id)
{
struct timeval tv;
int written;
do_gettimeofday(&tv);
/* Write a 16 byte record. Assume PAGE_SIZE is a multiple of 16 */
written = sprintf((char *)short_head,"%08u.%06u\n",
(int)(tv.tv_sec % 100000000), (int)(tv.tv_usec));
BUG_ON(written != 16);
short_incr_bp(&short_head, written);
wake_up_interruptible(&short_queue); /* awake any reading process */
return IRQ_HANDLED;
}
/*
* The following two functions are equivalent to the previous one,
* but split in top and bottom half. First, a few needed variables
*/
#define NR_TIMEVAL 512 /* length of the array of time values */
struct timeval tv_data[NR_TIMEVAL]; /* too lazy to allocate it */
volatile struct timeval *tv_head=tv_data;
volatile struct timeval *tv_tail=tv_data;
static struct work_struct short_wq;
int short_wq_count = 0;
/*
* Increment a circular buffer pointer in a way that nobody sees
* an intermediate value.
*/
static inline void short_incr_tv(volatile struct timeval **tvp)
{
if (*tvp == (tv_data + NR_TIMEVAL - 1))
*tvp = tv_data; /* Wrap */
else
(*tvp)++;
}
void short_do_tasklet(unsigned long unused)
{
int savecount = short_wq_count, written;
short_wq_count = 0; /* we have already been removed from the queue */
/*
* The bottom half reads the tv array, filled by the top half,
* and prints it to the circular text buffer, which is then consumed
* by reading processes
*/
/* First write the number of interrupts that occurred before this bh */
written = sprintf((char *)short_head,"bh after %6i\n",savecount);
short_incr_bp(&short_head, written);
/*
* Then, write the time values. Write exactly 16 bytes at a time,
* so it aligns with PAGE_SIZE
*/
do {
written = sprintf((char *)short_head,"%08u.%06u\n",
(int)(tv_tail->tv_sec % 100000000),
(int)(tv_tail->tv_usec));
short_incr_bp(&short_head, written);
short_incr_tv(&tv_tail);
} while (tv_tail != tv_head);
wake_up_interruptible(&short_queue); /* awake any reading process */
}
irqreturn_t short_wq_interrupt(int irq, void *dev_id)
{
/* Grab the current time information. */
do_gettimeofday((struct timeval *) tv_head);
short_incr_tv(&tv_head);
/* Queue the bh. Don't worry about multiple enqueueing */
schedule_work(&short_wq);
short_wq_count++; /* record that an interrupt arrived */
return IRQ_HANDLED;
}
/*
* Tasklet top half
*/
irqreturn_t short_tl_interrupt(int irq, void *dev_id)
{
do_gettimeofday((struct timeval *) tv_head); /* cast to stop 'volatile' warning */
short_incr_tv(&tv_head);
tasklet_schedule(&short_tasklet);
short_wq_count++; /* record that an interrupt arrived */
return IRQ_HANDLED;
}
irqreturn_t short_sh_interrupt(int irq, void *dev_id)
{
int value, written;
struct timeval tv;
/* If it wasn't short, return immediately */
value = inb(short_base);
if (!(value & 0x80))
return IRQ_NONE;
/* clear the interrupting bit */
outb(value & 0x7F, short_base);
/* the rest is unchanged */
do_gettimeofday(&tv);
written = sprintf((char *)short_head,"%08u.%06u\n",
(int)(tv.tv_sec % 100000000), (int)(tv.tv_usec));
short_incr_bp(&short_head, written);
wake_up_interruptible(&short_queue); /* awake any reading process */
return IRQ_HANDLED;
}
void short_kernelprobe(void)
{
int count = 0;
do {
unsigned long mask;
mask = probe_irq_on();
outb(0x10,short_base+2); /* enable reporting */
outb(0x00,short_base); /* clear the bit */
outb(0xFF,short_base); /* set the bit: interrupt! */
outb(0x00,short_base+2); /* disable reporting */
udelay(5); /* give it some time */
short_irq = probe_irq_off(mask);
if (short_irq == 0) { /* none of them? */
printk(KERN_INFO "short: no irq reported by probe\n");
short_irq = -1;
}
/*
* if more than one line has been activated, the result is
* negative. We should service the interrupt (no need for lpt port)
* and loop over again. Loop at most five times, then give up
*/
} while (short_irq < 0 && count++ < 5);
if (short_irq < 0)
printk("short: probe failed %i times, giving up\n", count);
}
irqreturn_t short_probing(int irq, void *dev_id)
{
if (short_irq == 0) short_irq = irq; /* found */
if (short_irq != irq) short_irq = -irq; /* ambiguous */
return IRQ_HANDLED;
}
void short_selfprobe(void)
{
int trials[] = {3, 5, 7, 9, 0};
int tried[] = {0, 0, 0, 0, 0};
int i, count = 0;
/*
* install the probing handler for all possible lines. Remember
* the result (0 for success, or -EBUSY) in order to only free
* what has been acquired
*/
for (i = 0; trials[i]; i++)
tried[i] = request_irq(trials[i], short_probing,
0, "short probe", NULL);
do {
short_irq = 0; /* none got, yet */
outb(0x10,short_base+2); /* enable */
outb(0x00,short_base);
outb(0xFF,short_base); /* toggle the bit */
outb(0x00,short_base+2); /* disable */
udelay(5); /* give it some time */
/* the value has been set by the handler */
if (short_irq == 0) { /* none of them? */
printk(KERN_INFO "short: no irq reported by probe\n");
}
/*
* If more than one line has been activated, the result is
* negative. We should service the interrupt (but the lpt port
* doesn't need it) and loop over again. Do it at most 5 times
*/
} while (short_irq <=0 && count++ < 5);
/* end of loop, uninstall the handler */
for (i = 0; trials[i]; i++)
if (tried[i] == 0)
free_irq(trials[i], NULL);
if (short_irq < 0)
printk("short: probe failed %i times, giving up\n", count);
}
/* Finally, init and cleanup */
int short_init(void)
{
int result;
/*
* first, sort out the base/short_base ambiguity: we'd better
* use short_base in the code, for clarity, but allow setting
* just "base" at load time. Same for "irq".
*/
short_base = base;
short_irq = irq;
/* Get our needed resources. */
if (!use_mem) {
if (! request_region(short_base, SHORT_NR_PORTS, "short")) {
printk(KERN_INFO "short: can't get I/O port address 0x%lx\n",
short_base);
return -ENODEV;
}
} else {
if (! request_mem_region(short_base, SHORT_NR_PORTS, "short")) {
printk(KERN_INFO "short: can't get I/O mem address 0x%lx\n",
short_base);
return -ENODEV;
}
/* also, ioremap it */
short_base = (unsigned long) ioremap(short_base, SHORT_NR_PORTS);
/* Hmm... we should check the return value */
}
/* Here we register our device - should not fail thereafter */
result = register_chrdev(major, "short", &short_fops);
if (result < 0) {
printk(KERN_INFO "short: can't get major number\n");
release_region(short_base,SHORT_NR_PORTS); /* FIXME - use-mem case? */
return result;
}
if (major == 0) major = result; /* dynamic */
short_buffer = __get_free_pages(GFP_KERNEL,0); /* never fails */ /* FIXME */
short_head = short_tail = short_buffer;
/*
* Fill the workqueue structure, used for the bottom half handler.
* The cast is there to prevent warnings about the type of the
* (unused) argument.
*/
/* this line is in short_init() */
INIT_WORK(&short_wq, (void (*)(struct work_struct *))short_do_tasklet);
/*
* Now we deal with the interrupt: either kernel-based
* autodetection, DIY detection or default number
*/
if (short_irq < 0 && probe == 1)
short_kernelprobe();
if (short_irq < 0 && probe == 2)
short_selfprobe();
if (short_irq < 0) /* not yet specified: force the default on */
switch(short_base) {
case 0x378: short_irq = 7; break;
case 0x278: short_irq = 2; break;
case 0x3bc: short_irq = 5; break;
}
/*
* If shared has been specified, installed the shared handler
* instead of the normal one. Do it first, before a -EBUSY will
* force short_irq to -1.
*/
if (short_irq >= 0 && share > 0) {
result = request_irq(short_irq, short_sh_interrupt,
IRQF_SHARED, "short", short_sh_interrupt);
if (result) {
printk(KERN_INFO "short: can't get assigned irq %i\n", short_irq);
short_irq = -1;
}
else { /* actually enable it -- assume this *is* a parallel port */
outb(0x10, short_base+2);
}
return 0; /* the rest of the function only installs handlers */
}
if (short_irq >= 0) {
result = request_irq(short_irq, short_interrupt,
0, "short", NULL);
if (result) {
printk(KERN_INFO "short: can't get assigned irq %i\n",
short_irq);
short_irq = -1;
}
else { /* actually enable it -- assume this *is* a parallel port */
outb(0x10,short_base+2);
}
}
/*
* Ok, now change the interrupt handler if using top/bottom halves
* has been requested
*/
if (short_irq >= 0 && (wq + tasklet) > 0) {
free_irq(short_irq,NULL);
result = request_irq(short_irq,
tasklet ? short_tl_interrupt :
short_wq_interrupt,
0, "short-bh", NULL);
if (result) {
printk(KERN_INFO "short-bh: can't get assigned irq %i\n",
short_irq);
short_irq = -1;
}
}
return 0;
}
void short_cleanup(void)
{
if (short_irq >= 0) {
outb(0x0, short_base + 2); /* disable the interrupt */
if (!share) free_irq(short_irq, NULL);
else free_irq(short_irq, short_sh_interrupt);
}
/* Make sure we don't leave work queue/tasklet functions running */
if (tasklet)
tasklet_disable(&short_tasklet);
else
flush_scheduled_work();
unregister_chrdev(major, "short");
if (use_mem) {
iounmap((void __iomem *)short_base);
release_mem_region(short_base, SHORT_NR_PORTS);
} else {
release_region(short_base,SHORT_NR_PORTS);
}
if (short_buffer) free_page(short_buffer);
}
module_init(short_init);
module_exit(short_cleanup);
```
|
Mercendarbe Manor, also called Mencendorf Manor and Mencendarbe Manor () is a manor house in the historical region of Zemgale, in Latvia.
History
Originally estate was owned by Peter von Biron (1724-1800), the last Duke of Courland. On 11th of August, 1786, along with the associated land estates and lakes, manor was sold to Baron Friedrich Georg von Lieven (1748-1800) for 31,000 thalers. Baron von Lieven liked to use the castle as summer residence and hunting lodge, for example for duck hunting. After his death, his son Karl Georg von Lieven managed the estate. In 1905 Freiherr Alexander von Lieven was named as the owner. Kurland Society for Literature and Art: Jahrbuch für Genealogie, Heraldik und Sphragistik , 1905, p. 235, No. 143 The last owner was Carlos von Lieven (1879-1971). Until World War I, the estate remained in the possession of the Lieven family.
From 1920 to 1939, the owners of the manor changed regularly. In 1939 a children's home was opened on the estate, it was only closed in 2012. Currently, the mansion is a hotel, in which many different events such as concerts, wedding, seminars or even the Latvia hackathon take place.
See also
List of palaces and manor houses in Latvia
References
External links
Mercendarbe manor
Mercendarbe Manor
Manor houses in Latvia
|
```objective-c
//
// Aspia Project
//
// 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 BASE_DESKTOP_FRAME_SIMPLE_H
#define BASE_DESKTOP_FRAME_SIMPLE_H
#include "base/desktop/frame.h"
#include <memory>
namespace base {
class FrameSimple final : public Frame
{
public:
~FrameSimple() final;
static std::unique_ptr<FrameSimple> create(const Size& size, const PixelFormat& format);
private:
FrameSimple(const Size& size, const PixelFormat& format, uint8_t* data);
DISALLOW_COPY_AND_ASSIGN(FrameSimple);
};
} // namespace base
#endif // BASE_DESKTOP_FRAME_SIMPLE_H
```
|
```java
/*
*
* All rights reserved. This program and the accompanying materials
*
* path_to_url
*/
package org.locationtech.jts.shape.fractal;
import java.util.ArrayList;
import java.util.List;
import org.locationtech.jts.geom.Coordinate;
import org.locationtech.jts.geom.Geometry;
import org.locationtech.jts.geom.GeometryFactory;
import org.locationtech.jts.geom.LineSegment;
import org.locationtech.jts.geom.LinearRing;
import org.locationtech.jts.geom.Polygon;
import org.locationtech.jts.shape.GeometricShapeBuilder;
public class SierpinskiCarpetBuilder
extends GeometricShapeBuilder
{
public SierpinskiCarpetBuilder(GeometryFactory geomFactory)
{
super(geomFactory);
}
public static int recursionLevelForSize(int numPts)
{
double pow4 = numPts / 3;
double exp = Math.log(pow4)/Math.log(4);
return (int) exp;
}
public Geometry getGeometry()
{
int level = recursionLevelForSize(numPts);
LineSegment baseLine = getSquareBaseLine();
Coordinate origin = baseLine.getCoordinate(0);
LinearRing[] holes = getHoles(level, origin.x, origin.y, getDiameter());
LinearRing shell = ((Polygon) geomFactory.toGeometry(getSquareExtent())).getExteriorRing();
return geomFactory.createPolygon(
shell, holes);
}
private LinearRing[] getHoles(int n, double originX, double originY, double width)
{
List holeList = new ArrayList();
addHoles(n, originX, originY, width, holeList );
return GeometryFactory.toLinearRingArray(holeList);
}
private void addHoles(int n, double originX, double originY, double width, List holeList)
{
if (n < 0) return;
int n2 = n - 1;
double widthThird = width / 3.0;
addHoles(n2, originX, originY, widthThird, holeList);
addHoles(n2, originX + widthThird, originY, widthThird, holeList);
addHoles(n2, originX + 2 * widthThird, originY, widthThird, holeList);
addHoles(n2, originX, originY + widthThird, widthThird, holeList);
addHoles(n2, originX + 2 * widthThird, originY + widthThird, widthThird, holeList);
addHoles(n2, originX, originY + 2 * widthThird, widthThird, holeList);
addHoles(n2, originX + widthThird, originY + 2 * widthThird, widthThird, holeList);
addHoles(n2, originX + 2 * widthThird, originY + 2 * widthThird, widthThird, holeList);
// add the centre hole
holeList.add(createSquareHole(originX + widthThird, originY + widthThird, widthThird));
}
private LinearRing createSquareHole(double x, double y, double width)
{
Coordinate[] pts = new Coordinate[]{
new Coordinate(x, y),
new Coordinate(x + width, y),
new Coordinate(x + width, y + width),
new Coordinate(x, y + width),
new Coordinate(x, y)
} ;
return geomFactory.createLinearRing(pts);
}
}
```
|
```javascript
/**
*
* This source code is licensed under the MIT license.
* See LICENSE file in the project root for license information.
*
* @file
*/
var removeEl = require('../browser/remove-el');
// #[begin] hydrate
/**
*
*
* @inner
* @class
* @param {HTMLElement} el
* @param {HTMLElement} onlyCurrent
*/
function DOMChildrenWalker(el, onlyCurrent) {
this.index = 0;
this.target = el;
this.doc = el.ownerDocument;
if (onlyCurrent) {
this.children = [onlyCurrent, onlyCurrent.nextSibling];
this.current = onlyCurrent;
this.next = this.children[1];
}
else {
this.children = [];
var child = el.firstChild;
var next;
while (child) {
next = child.nextSibling;
switch (child.nodeType) {
case 3:
case 1:
case 8:
this.children.push(child);
}
child = next;
}
this.current = this.children[0];
this.next = this.children[1];
}
}
/**
*
*/
DOMChildrenWalker.prototype.goNext = function () {
this.current = this.children[++this.index];
this.next = this.children[this.index + 1];
};
// #[end]
exports = module.exports = DOMChildrenWalker;
```
|
```c++
//
//
// path_to_url
//
#include "pxr/imaging/hd/extComputationContext.h"
PXR_NAMESPACE_OPEN_SCOPE
HdExtComputationContext::~HdExtComputationContext()
{
}
PXR_NAMESPACE_CLOSE_SCOPE
```
|
Hasdal is an underground station on the M11 line of the Istanbul Metro in Eyüp. The station was constructed using the cut and cover method.
The station was opened on 22 January 2023.
It is located on the highway in the Eyüpsultan district’s Mimar Sinan neighborhood in Istanbul.
Layout
Nearby Points of Interest
Istanbul University Faculty of Medicine (Çapa) Hospital (under construction)
General Directorate of Security
References
Rapid transit stations under construction in Turkey
Railway stations in Turkey opened in 2022
Istanbul metro stations
|
Pęk () is a Polish surname. Notable people include:
Bogdan Pęk (born 1953), Polish politician
Karolina Pęk (born 1998), Polish Paralympian
Marek Pęk (born 1975), Polish politician
See also
Polish-language surnames
|
```org
#+TITLE: TrampEmacs
#+URL: path_to_url
#+AUTHOR: lujun9972
#+CATEGORY: emacs-common
#+DATE: [2016-08-31 14:24]
#+OPTIONS: ^:{}
ssh connection sharing. =~/.ssh/config= :
#+BEGIN_SRC conf
Host *
# Enable connection sharing.
ControlMaster auto
ControlPath ~/.ssh/%r@%h:%p
# Make persistent connections that can be reused.
ControlPersist yes
# Keep connections alive (helps TRAMP to detect disconnects.)
ServerAliveInterval 5
#+END_SRC
Emacs =tramp-use-ssh-controlmaster-options= =nil=
```
|
Thierry Stevaux (born 14 June 1956) is a former professional tennis player from Belgium.
Career
Stevaux played Davis Cup tennis for Belgium from 1977 to 1982. He appeared in a total of eight ties and finished with a 6/10 overall record, winning four of his 10 singles rubbers and two of his six doubles matches.
The Belgian took part in the 1980 French Open and was beaten in the opening round by Marko Ostoja, in four sets. Stevaux played men's doubles at the French Open three times, with Alain Brichant in 1981 and Wayne Hampson in 1982 and 1983. He lost in the first round each time.
Stevaux, partnering Steve Krulevitz, won the doubles title at the Brussels Outdoor Grand Prix tournament in 1980.
Grand Prix career finals
Doubles: 1 (1–0)
Challenger titles
Doubles: (1)
References
1956 births
Living people
Belgian male tennis players
20th-century Belgian people
|
Canichana, or Canesi, Joaquiniano, is a possible language isolate of Bolivia (department of Beni). In 1991 there were 500 Canichana people, but only 20 spoke the Canichana language; by 2000 the ethnic population was 583, but the language had no L1 speakers left.
It was spoken on the Mamoré River and Machupo River.
Language contact
Jolkesky (2016) notes that there are lexical similarities with the Mochica language due to contact.
Vocabulary
Loukotka (1968) lists the following basic vocabulary items for Canichana.
{| class="wikitable sortable"
! gloss !! Canichana
|-
| one || mereka
|-
| two || kadita
|-
| three || kaʔarxata
|-
| tooth || eu-kuti
|-
| tongue || au-cháva
|-
| hand || eu-tixle
|-
| woman || ikegahui
|-
| water || nese
|-
| fire || nichuku
|-
| moon || nimilaku
|-
| maize || ni-chuxú
|-
| jaguar || ni-xolani
|-
| house || ni-tikoxle
|}
See also
Llanos de Moxos (archaeology)
References
Alain Fabre, 2005, Diccionario etnolingüístico y guía bibliográfica de los pueblos indígenas sudamericanos: KANICHANA.
de Créqui-Montfort, G.; Rivet, P. (1913). Linguistique Bolivienne: La Langue Kaničana. Mémoires de la Société de Linguistique de Paris, 18:354-377.
External links
La Langue Kaničana
Lenguas de Bolivia (online edition)
Canichana transcriptions of GlobalRecordings audio files
Languages of Bolivia
Language isolates of South America
|
```javascript
/*!
* Bootstrap-select v1.12.1 (path_to_url
*
*/
!function(a,b){"function"==typeof define&&define.amd?define(["jquery"],function(a){return b(a)}):"object"==typeof module&&module.exports?module.exports=b(require("jquery")):b(a.jQuery)}(this,function(a){!function(a){a.fn.selectpicker.defaults={noneSelectedText:" ",noneResultsText:" {0} ",countSelectedText:"{0} {1} ",maxOptionsText:[" { {n} }"," { {n} }"],selectAllText:" ",deselectAllText:" ",multipleSeparator:", "}}(a)});
```
|
```shell
Revision control of configuration files with git
Detect your linux distribution
List current logged on users with `w`
Force a time update with `ntp`
Finding Open Files With `lsof`
```
|
```java
Common mistake on switch statements
Metadata: setting a file's owner
Using `synchronized` statements
Do not return *references* to private *mutable* class members
Using an interface as a parameter
```
|
```batchfile
@echo off
set INSTALL_DIR=%~1
if not defined INSTALL_DIR (
(for /f "delims=" %%a in ('stack path --local-bin') do @set INSTALL_DIR=%%a) 2> nul
if not defined INSTALL_DIR (
for /f "delims=" %%a in ('stack path --local-bin') do @set INSTALL_DIR=%%a
)
)
shift
set "ARG_LINE= "
:parse_args
if "%~1" NEQ "" (
set ARG_LINE=%ARG_LINE% "%~1"
shift
goto :parse_args
)
stack install eta:exe:eta eta-pkg etlas eta-build --local-bin-path="%INSTALL_DIR%" && stack exec eta-build -- clean && stack exec eta-build -- uninstall && stack exec eta-build -- install %ARG_LINE%
```
|
```javascript
import template from './impersonation_panel_watcher_wizard.html';
import { cloneDeep } from 'lodash';
class ImpersonationPanelWatcherWizard {
constructor($scope) {
this.$scope = $scope;
this.userName = this.userName || this.$scope.userName;
this.passWord = this.passWord || this.$scope.passWord;
}
}
function impersonationPanelWatcherWizard() {
return {
template,
restrict: 'E',
scope: {
userName: '=',
passWord: '=',
},
controller: ImpersonationPanelWatcherWizard,
controllerAs: 'impersonationPanelWatcherWizard',
bindToController: {
userName: '=',
passWord: '=',
},
};
}
export default impersonationPanelWatcherWizard;
```
|
```smalltalk
using GameServerCore.Enums;
using GameServerCore.Scripting.CSharp;
using LeagueSandbox.GameServer.GameObjects.StatsNS;
namespace LeagueSandbox.GameServer.Scripting.CSharp
{
public class BuffScriptEmpty : IBuffGameScript
{
public BuffScriptMetaData BuffMetaData { get; set; } = new BuffScriptMetaData
{
BuffAddType = BuffAddType.REPLACE_EXISTING,
MaxStacks = 0
};
public StatsModifier StatsModifier { get; private set; } = new StatsModifier();
}
}
```
|
Sperry is a surname. Notable people with the surname include:
Armstrong Sperry (1897–1976), American author and illustrator
Brett Sperry (contemporary), American video game designer
Carlos A. Sperry, Democratic President of the West Virginia Senate from Greenbrier County, served 1872–1872
Charles Stillman Sperry (1847–1911), an officer in the United States Navy
Chris Sperry (born 1965), American college baseball coach
Elmer Ambrose Sperry (1860–1930), American inventor and entrepreneur, founder of Sperry Gyroscope Company, father of Lawrence Sperry
E. Frank Sperry (1843–1916), Mayor of Orlando
James Sperry (1910–1997), English cricketer
John Sperry (1924–2012), Anglican Bishop
Joseph Evans Sperry (1854–1930), American architect
Lawrence Sperry (1892–c. 1923), American aviation pioneer, son of Elmer Ambrose Sperry
Lewis Sperry (1848–1922), United States Representative from Connecticut
Mário Sperry (born 1966), Brazilian martial artist
Nehemiah D. Sperry (1827–1911), United States Representative from Connecticut
Neil Sperry, Texas gardening and horticulture expert
Paul A. Sperry (1895–1982), American inventor and businessman, founder of Sperry Top-Sider
Roger Wolcott Sperry (1913–1994), American neurobiologist, psychologist and Nobel laureate
Thomas Sperry (c. 1864 – 1913), American businessman and co-founder of S&H Green Stamps
William Miller Sperry, namesake of William Miller Sperry Observatory, brother of Thomas Sperry
|
Jyri Niemi (born June 15, 1990) is a Finnish former professional ice hockey defenceman. Niemi was selected by the New York Islanders in the 3rd round (72nd overall) of the 2008 NHL Entry Draft.
Playing career
Niemi played three seasons in major junior, with the Saskatoon Blades of the Western Hockey League. Unable to agree to terms with the Islanders on May 5, 2010, Niemi's rights were traded by the Islanders to neighboring rivals, the New York Rangers in exchange for a sixth-round draft pick. He was immediately signed to a three-year entry-level contract to begin his professional career.
On May 17, 2013, HPK of the Finnish Liiga announced they had signed Niemi to play for the 2013–14 season.
Career statistics
Regular season and playoffs
International
References
External links
1990 births
Living people
Connecticut Whale (AHL) players
Finnish ice hockey defencemen
Greenville Road Warriors players
People from Hämeenkyrö
Hartford Wolf Pack players
HPK players
Ilves players
KooKoo players
New York Islanders draft picks
Saskatoon Blades players
Ice hockey people from Pirkanmaa
Vaasan Sport players
|
```objective-c
#pragma once
#include <Parsers/IParserBase.h>
#include <Parsers/CommonParsers.h>
#include <Parsers/ASTQueryWithOutput.h>
namespace DB
{
/// Parse queries supporting [INTO OUTFILE 'file_name'] [FORMAT format_name] [SETTINGS key1 = value1, key2 = value2, ...] suffix.
class ParserQueryWithOutput : public IParserBase
{
protected:
const char * end;
bool allow_settings_after_format_in_insert;
const char * getName() const override { return "Query with output"; }
bool parseImpl(Pos & pos, ASTPtr & node, Expected & expected) override;
public:
explicit ParserQueryWithOutput(const char * end_, bool allow_settings_after_format_in_insert_ = false)
: end(end_)
, allow_settings_after_format_in_insert(allow_settings_after_format_in_insert_)
{}
};
}
```
|
Between My Head and the Sky is an album by Yoko Ono's band Plastic Ono Band released on Chimera Music in September 2009. It is her first studio album to be released as "Yoko Ono/Plastic Ono Band" since 1973's Feeling the Space. This Plastic Ono Band lineup featured Cornelius, Yuka Honda (of Cibo Matto fame), and Ono's son Sean Lennon as band leader and producer.
Reception
New Internationalist magazine described the album as "fresh and challenging as any of her early work" and having "a commitment to spontaneity".
Track listing
All songs written by Yoko Ono.
"Waiting for the D Train" – 2:46
"The Sun Is Down! (Cornelius Mix)" – 4:49
"Ask the Elephant!" – 2:57
"Memory of Footsteps" – 3:30
"Moving Mountains" – 3:00
"CALLING" – 4:19
"Healing" – 4:25
"Hashire, Hashire" – 3:35
"BETWEEN MY HEAD AND THE SKY" – 5:33
"Feel the Sand" – 6:02
"Watching the Rain" – 5:30
"Unun. To" – 3:16
"I'm Going Away Smiling" – 2:53
"Higa Noboru" – 5:44
"I'm Alive" – 0:22
Japanese Bonus Track
"Hanako" – 1:54
Japanese iTunes Bonus Video
"Why" (Live at Royal Festival Hall, London 2009) – 5:08
Note
Digital and Streaming editions of the album omit the last 2 tracks, instead ending the album with the track "I'm Going Away Smiling."
Personnel
Yoko Ono – vocals
Sean Lennon – acoustic and electric guitars, piano, keyboards, bass guitar, drums, percussion
Keigo Oyamada – guitars, bass guitar, Tenorion, programming, percussion
Hirotaka Shimizu – guitars, percussion
Yuko Araki – drums, percussion
Shahzad Ismaily – guitars, bass guitar, drums, percussion
Yuka Honda – Pro-tools editing, sampler, e. piano, organ, percussion
Michael Leonhart – trumpet, vibraphone, percussion
Erik Friedlander – cello
Daniel Carter – tenor saxophone, flute
Indigo Street – guitar
Technical
Chief Engineer: Christopher Allen
Assistant Engineer: Dave Schoenwetter
Recorded & Mixed at Sear Sound
Mastered by Greg Calbi at Sterling Sound
Mixer of "Waiting for the D Train": Joel Hamilton
Cover and booklet design: Sean Lennon and Charlotte Kemp Muhl
Photographs: Greg Kadel
Release history
References
2009 albums
Yoko Ono albums
Plastic Ono Band albums
Avant-pop albums
|
Deh-e Sheykhan () may refer to:
Deh-e Sheykhan, Kohgiluyeh and Boyer-Ahmad
Deh-e Sheykhan, Lorestan
|
```c++
/// Source : path_to_url
/// Author : liuyubobobo
/// Time : 2018-10-29
#include <iostream>
#include <vector>
using namespace std;
/// Dynamic Programming
/// Little optimizing without changing cost array :-)
///
/// Time Complexity: O(n)
/// Space Complexity: O(1)
class Solution {
public:
int minCostClimbingStairs(vector<int>& cost) {
int a = cost[0];
int b = cost[1];
for(int i = 2 ; i < cost.size() ; i ++){
int c = min(a, b) + cost[i];
a = b;
b = c;
}
return min(a, b);
}
};
int main() {
vector<int> vec1 = {10, 15, 20};
cout << Solution().minCostClimbingStairs(vec1) << endl;
vector<int> vec2 = {1, 100, 1, 1, 1, 100, 1, 1, 100, 1};
cout << Solution().minCostClimbingStairs(vec2) << endl;
return 0;
}
```
|
```javascript
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flags: --icu-timezone-data
// Environment Variables: TZ=America/New_York
// 2017-03-12T02:00 : UTC-5 => UTC-4
assertEquals(new Date(Date.UTC(2017, 2, 12, 6, 59)),
new Date(2017, 2, 12, 1, 59))
assertEquals(new Date(Date.UTC(2017, 2, 12, 7)),
new Date(2017, 2, 12, 2));
assertEquals(new Date(Date.UTC(2017, 2, 12, 7, 30)),
new Date(2017, 2, 12, 2, 30));
assertEquals(new Date(Date.UTC(2017, 2, 12, 7)),
new Date(2017, 2, 12, 3));
assertEquals(new Date(Date.UTC(2017, 2, 12, 7, 30)),
new Date(2017, 2, 12, 3, 30));
assertEquals((new Date(2017, 2, 12, 3, 30)).getTimezoneOffset(),
(new Date(2017, 2, 12, 2, 30)).getTimezoneOffset());
// 2017-11-05T02:00 : UTC-4 => UTC-5
assertEquals(new Date(Date.UTC(2017, 10, 5, 4, 59)),
new Date(2017, 10, 5, 0, 59));
assertEquals(new Date(Date.UTC(2017, 10, 5, 5)),
new Date(2017, 10, 5, 1));
assertEquals(new Date(Date.UTC(2017, 10, 5, 5, 30)),
new Date(2017, 10, 5, 1, 30));
assertEquals(new Date(Date.UTC(2017, 10, 5, 5, 59)),
new Date(2017, 10, 5, 1, 59));
assertEquals(new Date(Date.UTC(2017, 10, 5, 7)),
new Date(2017, 10, 5, 2))
assertEquals(new Date(Date.UTC(2017, 10, 5, 8)),
new Date(2017, 10, 5, 3))
```
|
```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 google.registry.whois;
import static com.google.common.truth.Truth.assertThat;
import static google.registry.bsa.persistence.BsaTestingUtils.persistBsaLabel;
import static google.registry.model.EppResourceUtils.loadByForeignKeyCached;
import static google.registry.model.registrar.RegistrarBase.State.ACTIVE;
import static google.registry.model.registrar.RegistrarBase.Type.PDT;
import static google.registry.model.tld.Tlds.getTlds;
import static google.registry.testing.DatabaseHelper.createTlds;
import static google.registry.testing.DatabaseHelper.loadRegistrar;
import static google.registry.testing.DatabaseHelper.persistActiveDomain;
import static google.registry.testing.DatabaseHelper.persistResource;
import static google.registry.testing.DatabaseHelper.persistSimpleResources;
import static google.registry.testing.FullFieldsTestEntityHelper.makeDomain;
import static google.registry.testing.FullFieldsTestEntityHelper.makeRegistrar;
import static google.registry.testing.FullFieldsTestEntityHelper.makeRegistrarPocs;
import static google.registry.whois.WhoisTestData.loadFile;
import static jakarta.servlet.http.HttpServletResponse.SC_INTERNAL_SERVER_ERROR;
import static jakarta.servlet.http.HttpServletResponse.SC_NOT_FOUND;
import static jakarta.servlet.http.HttpServletResponse.SC_OK;
import static org.mockito.ArgumentMatchers.any;
import static org.mockito.ArgumentMatchers.eq;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.verify;
import static org.mockito.Mockito.when;
import com.google.common.collect.ImmutableSet;
import com.google.common.net.InetAddresses;
import google.registry.model.contact.Contact;
import google.registry.model.domain.Domain;
import google.registry.model.eppcommon.Trid;
import google.registry.model.host.Host;
import google.registry.model.registrar.Registrar;
import google.registry.model.tld.Tld;
import google.registry.model.transfer.DomainTransferData;
import google.registry.model.transfer.TransferStatus;
import google.registry.persistence.transaction.JpaTestExtensions;
import google.registry.persistence.transaction.JpaTestExtensions.JpaIntegrationTestExtension;
import google.registry.testing.FakeClock;
import google.registry.testing.FakeResponse;
import google.registry.testing.FakeSleeper;
import google.registry.testing.FullFieldsTestEntityHelper;
import google.registry.testing.TestCacheExtension;
import google.registry.util.Retrier;
import google.registry.whois.WhoisMetrics.WhoisMetric;
import java.io.IOException;
import java.io.Reader;
import java.io.StringReader;
import java.time.Duration;
import java.util.Optional;
import org.joda.time.DateTime;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.RegisterExtension;
/** Unit tests for {@link WhoisAction}. */
public class WhoisActionTest {
private final FakeClock clock = new FakeClock(DateTime.parse("2009-06-29T20:13:00Z"));
@RegisterExtension
final JpaIntegrationTestExtension jpa =
new JpaTestExtensions.Builder().withClock(clock).buildIntegrationTestExtension();
@RegisterExtension
public final TestCacheExtension testCacheExtension =
new TestCacheExtension.Builder()
.withEppResourceCache(Duration.ofDays(1))
.withForeignKeyCache(Duration.ofDays(1))
.build();
private final FakeResponse response = new FakeResponse();
private WhoisAction newWhoisAction(String input) {
WhoisAction whoisAction = new WhoisAction();
whoisAction.clock = clock;
whoisAction.input = new StringReader(input);
whoisAction.response = response;
whoisAction.whoisReader =
new WhoisReader(
WhoisCommandFactory.createCached(), "Please contact registrar", "Blocked by BSA: %s");
whoisAction.whoisMetrics = new WhoisMetrics();
whoisAction.metricBuilder = WhoisMetric.builderForRequest(clock);
whoisAction.disclaimer =
"Doodle Disclaimer\nI exist so that carriage return\nin disclaimer can be tested.";
whoisAction.retrier = new Retrier(new FakeSleeper(clock), 3);
return whoisAction;
}
@BeforeEach
void setUp() {
createTlds("lol", "xn--q9jyb4c", "1.test");
}
@Test
void testRun_badRequest_stillSends200() {
newWhoisAction("\r\n").run();
assertThat(response.getStatus()).isEqualTo(200);
assertThat(response.getPayload()).isEqualTo(loadFile("whois_action_no_command.txt"));
}
private static Domain makeDomainWithRegistrar(Registrar registrar) {
return makeDomain(
"cat.lol",
persistResource(
FullFieldsTestEntityHelper.makeContact("5372808-ERL", "Goblin Market", "lol@cat.lol")),
persistResource(
FullFieldsTestEntityHelper.makeContact("5372808-IRL", "Santa Claus", "BOFH@cat.lol")),
persistResource(
FullFieldsTestEntityHelper.makeContact("5372808-TRL", "The Raven", "bog@cat.lol")),
persistResource(FullFieldsTestEntityHelper.makeHost("ns1.cat.lol", "1.2.3.4")),
persistResource(
FullFieldsTestEntityHelper.makeHost("ns2.cat.lol", "bad:f00d:cafe::15:beef")),
registrar);
}
@Test
void testRun_domainQuery_works() {
Registrar registrar =
persistResource(makeRegistrar("evilregistrar", "Yes Virginia", ACTIVE));
persistResource(makeDomainWithRegistrar(registrar));
persistSimpleResources(makeRegistrarPocs(registrar));
newWhoisAction("domain cat.lol\r\n").run();
assertThat(response.getStatus()).isEqualTo(200);
assertThat(response.getPayload()).isEqualTo(loadFile("whois_action_domain.txt"));
}
@Test
void testRun_domainQuery_usesCache() {
Registrar registrar =
persistResource(makeRegistrar("evilregistrar", "Yes Virginia", ACTIVE));
persistResource(makeDomainWithRegistrar(registrar));
persistSimpleResources(makeRegistrarPocs(registrar));
// Populate the cache for both the domain and contact.
Domain domain = loadByForeignKeyCached(Domain.class, "cat.lol", clock.nowUtc()).get();
Contact contact = loadByForeignKeyCached(Contact.class, "5372808-ERL", clock.nowUtc()).get();
// Make a change to the domain and contact that won't be seen because the cache will be hit.
persistResource(domain.asBuilder().setDeletionTime(clock.nowUtc().minusDays(1)).build());
persistResource(
contact
.asBuilder()
.setInternationalizedPostalInfo(
contact
.getInternationalizedPostalInfo()
.asBuilder()
.setOrg("Two by Two, Hands Blue Inc.")
.build())
.build());
newWhoisAction("domain cat.lol\r\n").run();
assertThat(response.getStatus()).isEqualTo(200);
assertThat(response.getPayload()).isEqualTo(loadFile("whois_action_domain.txt"));
}
@Test
void testRun_domainQuery_registeredDomainUnaffectedByBsa() {
persistResource(
Tld.get("lol")
.asBuilder()
.setBsaEnrollStartTime(Optional.of(clock.nowUtc().minusDays(1)))
.build());
persistBsaLabel("cat");
Registrar registrar = persistResource(makeRegistrar("evilregistrar", "Yes Virginia", ACTIVE));
persistResource(makeDomainWithRegistrar(registrar));
persistSimpleResources(makeRegistrarPocs(registrar));
newWhoisAction("domain cat.lol\r\n").run();
assertThat(response.getStatus()).isEqualTo(200);
assertThat(response.getPayload()).isEqualTo(loadFile("whois_action_domain.txt"));
}
@Test
void testRun_domainQuery_unregisteredDomainShowBsaMessage() {
persistResource(
Tld.get("lol")
.asBuilder()
.setBsaEnrollStartTime(Optional.of(clock.nowUtc().minusDays(1)))
.build());
persistBsaLabel("cat");
newWhoisAction("domain cat.lol\r\n").run();
assertThat(response.getStatus()).isEqualTo(200);
assertThat(response.getPayload()).isEqualTo(loadFile("whois_action_domain_blocked_by_bsa.txt"));
}
@Test
void testRun_domainAfterTransfer_hasUpdatedEppTimeAndClientId() {
Registrar registrar = persistResource(makeRegistrar("TheRegistrar", "Yes Virginia", ACTIVE));
persistResource(
makeDomainWithRegistrar(registrar)
.asBuilder()
.setTransferData(
new DomainTransferData.Builder()
.setGainingRegistrarId("TheRegistrar")
.setLosingRegistrarId("NewRegistrar")
.setTransferRequestTime(DateTime.parse("2009-05-29T20:13:00Z"))
.setPendingTransferExpirationTime(DateTime.parse("2010-03-01T00:00:00Z"))
.setTransferStatus(TransferStatus.PENDING)
.setTransferRequestTrid(Trid.create("client-trid", "server-trid"))
.build())
.build());
persistSimpleResources(makeRegistrarPocs(registrar));
clock.setTo(DateTime.parse("2011-01-01T00:00:00Z"));
newWhoisAction("domain cat.lol\r\n").run();
assertThat(response.getStatus()).isEqualTo(200);
assertThat(response.getPayload()).isEqualTo(loadFile("whois_action_transferred_domain.txt"));
}
@Test
void testRun_idnDomain_works() {
Registrar registrar = persistResource(makeRegistrar(
"evilregistrar", "Yes Virginia", ACTIVE));
persistResource(
makeDomain(
"cat.",
persistResource(
FullFieldsTestEntityHelper.makeContact("5372808-ERL", "()", "lol@cat.")),
persistResource(
FullFieldsTestEntityHelper.makeContact(
"5372808-IRL", "Santa Claus", "BOFH@cat.")),
persistResource(
FullFieldsTestEntityHelper.makeContact("5372808-TRL", "The Raven", "bog@cat.")),
persistResource(FullFieldsTestEntityHelper.makeHost("ns1.cat.", "1.2.3.4")),
persistResource(
FullFieldsTestEntityHelper.makeHost("ns2.cat.", "bad:f00d:cafe::15:beef")),
registrar));
persistSimpleResources(makeRegistrarPocs(registrar));
newWhoisAction("domain cat.\r\n").run();
assertThat(response.getStatus()).isEqualTo(200);
assertThat(response.getPayload()).isEqualTo(loadFile("whois_action_idn_punycode.txt"));
}
@Test
void testRun_punycodeDomain_works() {
Registrar registrar = persistResource(makeRegistrar(
"evilregistrar", "Yes Virginia", ACTIVE));
persistResource(
makeDomain(
"cat.",
persistResource(
FullFieldsTestEntityHelper.makeContact("5372808-ERL", "()", "lol@cat.")),
persistResource(
FullFieldsTestEntityHelper.makeContact(
"5372808-IRL", "Santa Claus", "BOFH@cat.")),
persistResource(
FullFieldsTestEntityHelper.makeContact("5372808-TRL", "The Raven", "bog@cat.")),
persistResource(FullFieldsTestEntityHelper.makeHost("ns1.cat.", "1.2.3.4")),
persistResource(
FullFieldsTestEntityHelper.makeHost("ns2.cat.", "bad:f00d:cafe::15:beef")),
registrar));
persistSimpleResources(makeRegistrarPocs(registrar));
newWhoisAction("domain cat.xn--q9jyb4c\r\n").run();
assertThat(response.getStatus()).isEqualTo(200);
assertThat(response.getPayload()).isEqualTo(loadFile("whois_action_idn_punycode.txt"));
}
@Test
void testRun_domainNotFound_returns200OkAndPlainTextResponse() {
newWhoisAction("domain cat.lol\r\n").run();
assertThat(response.getStatus()).isEqualTo(200);
assertThat(response.getPayload()).isEqualTo(loadFile("whois_action_domain_not_found.txt"));
}
@Test
void testRun_domainNotFound_usesCache() {
// Populate the cache with the nonexistence of this domain.
assertThat(loadByForeignKeyCached(Domain.class, "cat.lol", clock.nowUtc())).isEmpty();
// Add a new valid cat.lol domain that won't be found because the cache will be hit instead.
persistActiveDomain("cat.lol");
newWhoisAction("domain cat.lol\r\n").run();
assertThat(response.getStatus()).isEqualTo(200);
assertThat(response.getPayload()).isEqualTo(loadFile("whois_action_domain_not_found.txt"));
}
// todo (b/27378695): reenable or delete this test
@Disabled
@Test
void testRun_domainInTestTld_isConsideredNotFound() {
persistResource(Tld.get("lol").asBuilder().setTldType(Tld.TldType.TEST).build());
Registrar registrar = persistResource(makeRegistrar(
"evilregistrar", "Yes Virginia", ACTIVE));
persistResource(
makeDomain(
"cat.lol",
persistResource(
FullFieldsTestEntityHelper.makeContact(
"5372808-ERL", "Goblin Market", "lol@cat.lol")),
persistResource(
FullFieldsTestEntityHelper.makeContact(
"5372808-IRL", "Santa Claus", "BOFH@cat.lol")),
persistResource(
FullFieldsTestEntityHelper.makeContact("5372808-TRL", "The Raven", "bog@cat.lol")),
persistResource(FullFieldsTestEntityHelper.makeHost("ns1.cat.lol", "1.2.3.4")),
persistResource(
FullFieldsTestEntityHelper.makeHost("ns2.cat.lol", "bad:f00d:cafe::15:beef")),
registrar));
persistSimpleResources(makeRegistrarPocs(registrar));
newWhoisAction("domain cat.lol\r\n").run();
assertThat(response.getStatus()).isEqualTo(200);
assertThat(response.getPayload()).isEqualTo(loadFile("whois_action_domain_not_found.txt"));
}
@Test
void testRun_domainFlaggedAsDeletedInDatabase_isConsideredNotFound() {
Registrar registrar;
persistResource(
makeDomain(
"cat.lol",
persistResource(
FullFieldsTestEntityHelper.makeContact(
"5372808-ERL", "Peter Murphy", "lol@cat.lol")),
persistResource(
FullFieldsTestEntityHelper.makeContact(
"5372808-IRL", "Santa Claus", "BOFH@cat.lol")),
persistResource(
FullFieldsTestEntityHelper.makeContact(
"5372808-TRL", "The Raven", "bog@cat.lol")),
persistResource(FullFieldsTestEntityHelper.makeHost("ns1.cat.lol", "1.2.3.4")),
persistResource(
FullFieldsTestEntityHelper.makeHost("ns2.cat.lol", "bad:f00d:cafe::15:beef")),
persistResource(registrar = makeRegistrar("example", "Example Registrar", ACTIVE)))
.asBuilder()
.setDeletionTime(clock.nowUtc().minusDays(1))
.build());
persistSimpleResources(makeRegistrarPocs(registrar));
newWhoisAction("domain cat.lol\r\n").run();
assertThat(response.getStatus()).isEqualTo(200);
assertThat(response.getPayload()).isEqualTo(loadFile("whois_action_domain_not_found.txt"));
}
/**
* Create a deleted domain and an active domain with the same label, and make sure only the active
* one is returned.
*/
@Test
void testRun_domainDeletedThenRecreated_isFound() {
Registrar registrar;
Domain domain1 =
persistResource(
makeDomain(
"cat.lol",
persistResource(
FullFieldsTestEntityHelper.makeContact(
"5372808-ERL", "Peter Murphy", "lol@cat.lol")),
persistResource(
FullFieldsTestEntityHelper.makeContact(
"5372808-IRL", "Santa Claus", "BOFH@cat.lol")),
persistResource(
FullFieldsTestEntityHelper.makeContact(
"5372808-TRL", "The Raven", "bog@cat.lol")),
persistResource(FullFieldsTestEntityHelper.makeHost("ns1.cat.lol", "1.2.3.4")),
persistResource(
FullFieldsTestEntityHelper.makeHost(
"ns2.cat.lol", "bad:f00d:cafe::15:beef")),
persistResource(makeRegistrar("example", "Example Registrar", ACTIVE)))
.asBuilder()
.setCreationTimeForTest(clock.nowUtc().minusDays(2))
.setDeletionTime(clock.nowUtc().minusDays(1))
.build());
Domain domain2 =
persistResource(
makeDomain(
"cat.lol",
persistResource(
FullFieldsTestEntityHelper.makeContact(
"5372809-ERL", "Mrs. Alice Crypto", "alice@example.lol")),
persistResource(
FullFieldsTestEntityHelper.makeContact(
"5372809-IRL", "Mr. Bob Crypto", "bob@example.lol")),
persistResource(
FullFieldsTestEntityHelper.makeContact(
"5372809-TRL", "Dr. Pablo", "pmy@example.lol")),
persistResource(
FullFieldsTestEntityHelper.makeHost("ns1.google.lol", "9.9.9.9")),
persistResource(
FullFieldsTestEntityHelper.makeHost("ns2.google.lol", "4311::f143")),
persistResource(
registrar = makeRegistrar("example", "Example Registrar", ACTIVE)))
.asBuilder()
.setCreationTimeForTest(clock.nowUtc())
.build());
persistSimpleResources(makeRegistrarPocs(registrar));
assertThat(domain1.getRepoId()).isNotEqualTo(domain2.getRepoId());
newWhoisAction("domain cat.lol\r\n").run();
assertThat(response.getStatus()).isEqualTo(200);
assertThat(response.getPayload()).contains("ns1.google.lol");
}
@Test
void testRun_nameserverQuery_works() {
persistResource(loadRegistrar("TheRegistrar").asBuilder().setUrl("path_to_url").build());
persistResource(FullFieldsTestEntityHelper.makeHost("ns1.cat.lol", "1.2.3.4"));
newWhoisAction("nameserver ns1.cat.lol\r\n").run();
assertThat(response.getStatus()).isEqualTo(200);
assertThat(response.getPayload()).isEqualTo(loadFile("whois_action_nameserver.txt"));
}
@Test
void testRun_ipv6_displaysInCollapsedReadableFormat() {
persistResource(FullFieldsTestEntityHelper.makeHost("ns1.cat.lol", "bad:f00d:cafe::15:beef"));
newWhoisAction("nameserver ns1.cat.lol\r\n").run();
assertThat(response.getStatus()).isEqualTo(200);
assertThat(response.getPayload()).contains("ns1.cat.lol");
// The most important thing this tests is that the outputted address is compressed!
assertThat(response.getPayload()).contains("bad:f00d:cafe::15:beef");
assertThat(response.getPayload()).doesNotContain("bad:f00d:cafe:0:0:0:15:beef");
}
@Test
void testRun_idnNameserver_works() {
persistResource(FullFieldsTestEntityHelper.makeHost("ns1.cat.", "1.2.3.4"));
newWhoisAction("nameserver ns1.cat.\r\n").run();
assertThat(response.getStatus()).isEqualTo(200);
assertThat(response.getPayload()).contains("ns1.cat.xn--q9jyb4c");
assertThat(response.getPayload()).contains("1.2.3.4");
}
@Test
void testRun_nameserver_usesCache() {
persistResource(FullFieldsTestEntityHelper.makeHost("ns1.cat.xn--q9jyb4c", "1.2.3.4"));
// Populate the cache.
Host host = loadByForeignKeyCached(Host.class, "ns1.cat.xn--q9jyb4c", clock.nowUtc()).get();
// Make a change to the persisted host that won't be seen because the cache will be hit.
persistResource(
host.asBuilder()
.setInetAddresses(ImmutableSet.of(InetAddresses.forString("8.8.8.8")))
.build());
newWhoisAction("nameserver ns1.cat.\r\n").run();
assertThat(response.getStatus()).isEqualTo(200);
assertThat(response.getPayload()).contains("ns1.cat.xn--q9jyb4c");
assertThat(response.getPayload()).contains("1.2.3.4");
}
@Test
void testRun_punycodeNameserver_works() {
persistResource(FullFieldsTestEntityHelper.makeHost("ns1.cat.", "1.2.3.4"));
newWhoisAction("nameserver ns1.cat.xn--q9jyb4c\r\n").run();
assertThat(response.getStatus()).isEqualTo(200);
assertThat(response.getPayload()).contains("ns1.cat.xn--q9jyb4c");
assertThat(response.getPayload()).contains("1.2.3.4");
}
@Test
void testRun_nameserverNotFound_returns200AndText() {
persistResource(FullFieldsTestEntityHelper.makeHost("ns1.cat.lol", "1.2.3.4"));
newWhoisAction("nameserver ns1.cat.lulz\r\n").run();
assertThat(response.getStatus()).isEqualTo(200);
assertThat(response.getPayload()).isEqualTo(loadFile("whois_action_nameserver_not_found.txt"));
}
@Test
void testRun_nameserverFlaggedAsDeletedInDatabase_doesntGetLeaked() {
persistResource(
FullFieldsTestEntityHelper.makeHost("ns1.cat.lol", "1.2.3.4")
.asBuilder()
.setDeletionTime(clock.nowUtc().minusDays(1))
.build());
newWhoisAction("nameserver ns1.cat.lol\r\n").run();
assertThat(response.getStatus()).isEqualTo(200);
assertThat(response.getPayload()).isEqualTo(loadFile("whois_action_nameserver_not_found.txt"));
}
@Test
void testRun_ipNameserverLookup_works() {
persistResource(FullFieldsTestEntityHelper.makeHost("ns1.cat.lol", "1.2.3.4"));
newWhoisAction("nameserver 1.2.3.4").run();
assertThat(response.getStatus()).isEqualTo(200);
assertThat(response.getPayload()).contains("ns1.cat.lol");
}
@Test
void testRun_ipMapsToMultipleNameservers_theyAllGetReturned() {
persistResource(FullFieldsTestEntityHelper.makeHost("ns1.cat.lol", "1.2.3.4"));
persistResource(FullFieldsTestEntityHelper.makeHost("ns2.cat.lol", "1.2.3.4"));
newWhoisAction("nameserver 1.2.3.4").run();
assertThat(response.getStatus()).isEqualTo(200);
assertThat(response.getPayload()).contains("ns1.cat.lol");
assertThat(response.getPayload()).contains("ns2.cat.lol");
}
@Test
void testRun_ipMapsToMultipleNameserverInDifferentTlds_showsThemAll() {
persistResource(FullFieldsTestEntityHelper.makeHost("ns1.cat.lol", "1.2.3.4"));
persistResource(FullFieldsTestEntityHelper.makeHost("ns1.cat.xn--q9jyb4c", "1.2.3.4"));
newWhoisAction("nameserver 1.2.3.4").run();
assertThat(response.getStatus()).isEqualTo(200);
assertThat(response.getPayload()).contains("ns1.cat.lol");
assertThat(response.getPayload()).contains("ns1.cat.xn--q9jyb4c");
}
@Test
void testRun_ipNameserverEntityDoesNotExist_returns200NotFound() {
newWhoisAction("nameserver feed:a:bee::acab\r\n").run();
assertThat(response.getStatus()).isEqualTo(200);
assertThat(response.getPayload()).isEqualTo(loadFile("whois_action_ip_not_found.txt"));
}
@Test
void testRun_ipMapsToNameserverUnderNonAuthoritativeTld_notFound() {
assertThat(getTlds()).doesNotContain("com");
persistResource(FullFieldsTestEntityHelper.makeHost("ns1.google.com", "1.2.3.4"));
newWhoisAction("nameserver 1.2.3.4").run();
assertThat(response.getStatus()).isEqualTo(200);
assertThat(response.getPayload()).isEqualTo(loadFile("whois_action_ip_not_found.txt"));
}
@Test
void testRun_nameserverUnderNonAuthoritativeTld_notFound() {
assertThat(getTlds()).doesNotContain("com");
persistResource(FullFieldsTestEntityHelper.makeHost("ns1.google.com", "1.2.3.4"));
newWhoisAction("nameserver ns1.google.com").run();
assertThat(response.getStatus()).isEqualTo(200);
assertThat(response.getPayload()).isEqualTo(loadFile("whois_action_nameserver_not_found.txt"));
}
// todo (b/27378695): reenable or delete this test
@Disabled
@Test
void testRun_nameserverInTestTld_notFound() {
persistResource(Tld.get("lol").asBuilder().setTldType(Tld.TldType.TEST).build());
persistResource(FullFieldsTestEntityHelper.makeHost("ns1.cat.lol", "1.2.3.4"));
newWhoisAction("nameserver ns1.cat.lol").run();
assertThat(response.getStatus()).isEqualTo(200);
assertThat(response.getPayload()).isEqualTo(loadFile("whois_action_nameserver_not_found.txt"));
}
@Test
void testRun_registrarLookup_works() {
Registrar registrar = persistResource(
makeRegistrar("example", "Example Registrar, Inc.", ACTIVE));
persistSimpleResources(makeRegistrarPocs(registrar));
// Notice the partial search without "inc".
newWhoisAction("registrar example registrar").run();
assertThat(response.getStatus()).isEqualTo(200);
assertThat(response.getPayload()).isEqualTo(loadFile("whois_action_registrar.txt"));
}
@Test
void testRun_pdtRegistrarLookup_works() {
Registrar registrar =
persistResource(
makeRegistrar("example", "Example Registrar, Inc.", ACTIVE)
.asBuilder()
.setIanaIdentifier(9995L)
.setType(PDT)
.build());
persistSimpleResources(makeRegistrarPocs(registrar));
// Notice the partial search without "inc".
newWhoisAction("registrar example registrar").run();
assertThat(response.getStatus()).isEqualTo(200);
assertThat(response.getPayload()).isEqualTo(loadFile("whois_action_registrar.txt"));
}
@Test
void testRun_registrarLookupInPendingState_returnsNotFound() {
Registrar registrar = persistResource(
makeRegistrar("example", "Example Registrar, Inc.", Registrar.State.PENDING));
persistSimpleResources(makeRegistrarPocs(registrar));
newWhoisAction("registrar Example Registrar, Inc.").run();
assertThat(response.getStatus()).isEqualTo(200);
assertThat(response.getPayload()).isEqualTo(loadFile("whois_action_registrar_not_found.txt"));
}
@Test
void testRun_registrarLookupWithTestType_returnsNotFound() {
Registrar registrar = persistResource(
makeRegistrar("example", "Example Registrar, Inc.", ACTIVE)
.asBuilder()
.setIanaIdentifier(null)
.setType(Registrar.Type.TEST)
.build());
persistSimpleResources(makeRegistrarPocs(registrar));
newWhoisAction("registrar Example Registrar, Inc.").run();
assertThat(response.getStatus()).isEqualTo(200);
assertThat(response.getPayload()).isEqualTo(loadFile("whois_action_registrar_not_found.txt"));
}
@Test
void testRun_multilevelDomain_isNotConsideredAHostname() {
Registrar registrar =
persistResource(makeRegistrar("example", "Example Registrar", ACTIVE));
persistResource(
makeDomain(
"cat.1.test",
persistResource(
FullFieldsTestEntityHelper.makeContact("5372808-ERL", "()", "lol@cat.1.test")),
persistResource(
FullFieldsTestEntityHelper.makeContact(
"5372808-IRL", "Santa Claus", "BOFH@cat.1.test")),
persistResource(
FullFieldsTestEntityHelper.makeContact(
"5372808-TRL", "The Raven", "bog@cat.1.test")),
persistResource(FullFieldsTestEntityHelper.makeHost("ns1.cat.1.test", "1.2.3.4")),
persistResource(
FullFieldsTestEntityHelper.makeHost("ns2.cat.1.test", "bad:f00d:cafe::15:beef")),
registrar));
persistSimpleResources(makeRegistrarPocs(registrar));
newWhoisAction("domain cat.1.test\r\n").run();
assertThat(response.getStatus()).isEqualTo(200);
assertThat(response.getPayload()).contains("Domain Name: cat.1.test\r\n");
}
@Test
void testRun_hostnameWithMultilevelTld_isStillConsideredHostname() {
persistResource(FullFieldsTestEntityHelper.makeHost("ns1.cat.1.test", "1.2.3.4"));
newWhoisAction("nameserver ns1.cat.1.test\r\n").run();
assertThat(response.getStatus()).isEqualTo(200);
assertThat(response.getPayload()).contains("ns1.cat.1.test");
assertThat(response.getPayload()).contains("1.2.3.4");
}
@Test
void testRun_metricsLoggedForSuccessfulCommand() {
persistResource(FullFieldsTestEntityHelper.makeHost("ns1.cat.lol", "1.2.3.4"));
persistResource(FullFieldsTestEntityHelper.makeHost("ns2.cat.lol", "1.2.3.4"));
WhoisAction action = newWhoisAction("nameserver 1.2.3.4");
action.whoisMetrics = mock(WhoisMetrics.class);
action.run();
WhoisMetric expected =
WhoisMetric.builderForRequest(clock)
.setCommandName("NameserverLookupByIp")
.setNumResults(2)
.setStatus(SC_OK)
.build();
verify(action.whoisMetrics).recordWhoisMetric(eq(expected));
}
@Test
void testRun_metricsLoggedForUnsuccessfulCommand() {
WhoisAction action = newWhoisAction("domain cat.lol\r\n");
action.whoisMetrics = mock(WhoisMetrics.class);
action.run();
WhoisMetric expected =
WhoisMetric.builderForRequest(clock)
.setCommandName("DomainLookup")
.setNumResults(0)
.setStatus(SC_NOT_FOUND)
.build();
verify(action.whoisMetrics).recordWhoisMetric(eq(expected));
}
@Test
void testRun_metricsLoggedForInternalServerError() throws Exception {
persistResource(FullFieldsTestEntityHelper.makeHost("ns1.cat.lol", "1.2.3.4"));
WhoisAction action = newWhoisAction("ns1.cat.lol");
action.whoisReader = mock(WhoisReader.class);
when(action.whoisReader.readCommand(any(Reader.class), eq(false), any(DateTime.class)))
.thenThrow(new IOException("missing cat interface"));
action.whoisMetrics = mock(WhoisMetrics.class);
action.run();
WhoisMetric expected =
WhoisMetric.builderForRequest(clock)
.setNumResults(0)
.setStatus(SC_INTERNAL_SERVER_ERROR)
.build();
verify(action.whoisMetrics).recordWhoisMetric(eq(expected));
assertThat(response.getPayload()).isEqualTo("Internal Server Error");
}
}
```
|
Margaret Buckingham, (born 2 March 1945) is a British developmental biologist working in the fields of myogenesis and cardiogenesis. She is an honorary professor at the Pasteur Institute in Paris and emeritus director in the Centre national de la recherche scientifique (CNRS). She is a member of the European Molecular Biology Organization, the Academia Europaea and the French Academy of Sciences.
Biography
Margaret Buckingham was educated in Scotland and at Oxford University where she obtained B.A., M.A. and D.Phil. degrees in Biochemistry. As a postdoc, she then joined François Gros at the Pasteur Institute in Paris where she subsequently pursued her scientific career. She is an honorary professor at the Pasteur Institute and emeritus director in the Centre national de la recherche scientifique (CNRS). She is a member of the scientific council of the ERC and chairs the prize committee of the Lefoulon-Delalande Foundation for cardiovascular research. In 2013, she was awarded the gold medal of the CNRS. She is a member of the French Academy of sciences, a foreign/honorary member of the Royal Society of London/Edinburgh and a foreign associate of the National Academy of Sciences of the USA. She is also a member of EMBO and of the Academia Europaea. She has French and British nationality, and is married to Richard Buckingham, Editor-in-Chief of Biochimie until December 2020, with three children.
Scientific research
Margaret Buckingham is a developmental biologist who is interested in how naïve multipotent cells acquire tissue specificity during embryogenesis. She has studied both the formation of skeletal muscle and of the heart, using the tools of mouse molecular genetics to characterise cell behaviour and to identify the genes that govern cell fate choices.
From pioneering research on the in vivo expression, structure and regulation of muscle genes, she and her lab went on to study the myogenic regulatory factors, showing that Myf5 is present before MyoD in the embryo and that in the absence of Myf5 and Mrf4, cells fail to form skeletal muscle and acquire other mesodermal cell fates. Characterisation of Myf5 enhancers revealed a direct role for Pax3 in their transcriptional activation at different sites of myogenesis. From genetic screens, they identified other Pax3 targets, demonstrating the central role of Pax3 in the gene regulatory network that leads to the onset of myogenesis in the embryo. They discovered a population of Pax3/Pax7-positive progenitors that are essential for foetal muscle development and showed that Pax-positive satellite cells associated with adult fibres constitute stem cells for muscle regeneration. They identified genes, including Pitx2/3, that affect the behaviour of these cells and showed that Myf5 mRNA, present in quiescent satellite cells is sequestered until these cells are activated after injury.
Her main contribution to cardiogenesis is the identification of the second heart field (SHF) as a major source of cardiac progenitor cells that form specific regions of the heart. The behaviour of these cells is controlled by gene regulatory networks and signalling pathways, exemplified by the FGF10 gene. Retrospective clonal analysis complemented their work on the SHF and established a lineage tree for the myocardium, where the second lineage defines the SHF contribution whereas the first lineage contributes all the left ventricular myocardium. This analysis revealed the clonal relationships between different sublineages that contribute to both cardiac muscle at the poles of the heart and anterior skeletal muscles which are not under Pax3-control. In addition to its conceptual importance for cardiogenesis, this work also has biomedical implications for congenital heart malformations.
Awards and honours
Commandeur de la Légion d'Honneur, 2018
Honorary Fellow of the Royal Society of Edinburgh, 2014
Foreign Member of the Royal Society, 2013
CNRS Gold Medal, 2013
Commandeur de Ordre National du Mérite, 2013
Officier de la Légion d'honneur, 2011
Foreign Associate of the National Academy of Sciences, US, 2011
Lifetime Achievement Award of the American Society for Developmental Biology, 2010
Officier de l'Ordre National du Mérite, 2008
Chevalier de la Légion d'Honneur, 2002
CNRS Silver Medal, 1999
Member of the Academia Europaea, 1998
Prix Jaffé of the Académie des sciences, 1990
1979 Member of the European Molecular Biology Organisation (EMBO)
External links
References
1945 births
Living people
Developmental biologists
Members of the French Academy of Sciences
Foreign Members of the Royal Society
20th-century British biologists
21st-century British biologists
Alumni of Lady Margaret Hall, Oxford
French women biologists
British women biologists
Officers of the Ordre national du Mérite
Foreign associates of the National Academy of Sciences
British expatriate academics in France
20th-century French women
|
Naresh Dev Pant (), popularly known as Dev Naresh is a Nepalese graphic designer, wall artist, artist and web designer. He is also a freelancer photographer since 2013 to date.
Early life
Since his early days, Naresh was very fond of writing poems. He used to read poems on radio. Naresh finished his schooling from Padmodaya School. He has done various theatre acts as well as TV serials since his young age.
Personal life
Naresh finished his education from Shanker Dev Campus. He studied Master of Business Administration (MBA). He fell in love with Nira Pant and later they got married. Naresh and Nira got married in May of the year 2002, and they have a son "Amurta Dev Pant" and a daughter "Anani Pant".
Career
Lyricist
Naresh's first lyrics were sung by famous Pop Singer Nabin K Bhattarai. The song name was "Bajauda bajaudai". Some of his award winning songs are:
Director/Producer
He has produced different series as well as movies. As a director he has received huge recognition with his short movie "The Job Application" which was screened at Cannes Film Festival. Some of his Movies and Series include:1) Director of short movie "The Job Application" in 20102) Produced the TV Series "Saturday Showcase" from 2010-20113) Producer of upcoming movie "Tata Bye Bye" due to be released in 2015 4) Producer of upcoming movie "Rangeen Manasaya"
He also owns Mauree Entertainment Pvt. Ltd. which was the Distributor of Mary Kom (film) in Nepal (2014).
Radio Presenter
Naresh worked as a radio presenter in Hits FM 91.2 from 2000 to 2008
Actor
Naresh has also worked as an actor in Kathmandu, one of the Nepal Television's most successful shows ever, in 2002.
References
1974 births
Living people
Nepalese designers
Shanker Dev Campus alumni
Artists from Kathmandu
|
John de Swerdeston (fl. 1328–1337), was an English Member of Parliament.
He was a Member (MP) of the Parliament of England for King's Lynn in 1328 and 1337.
References
Year of birth missing
14th-century deaths
14th-century English people
People from King's Lynn
Members of the Parliament of England (pre-1707)
|
John N. Decore (born Ivan Dikur; April 9, 1909 – November 11, 1994) was a barrister, lawyer, teacher, and politician from Alberta, Canada.
Decore was born Ivan Dikur on a farm west of Andrew, Alberta in a district called Sniatyn to Ukrainian immigrant parents Nykola and Hafia (nee Kostiuk). Nykola arrived in Canada in 1898 at the age of ten; Nykola was Hafia's second husband. Hafia died when John was only four years old he did not along with his stepmother.
He completed grade eleven before the Great Depression in Canada forced his father to stop supporting him financially. After attending the first eight grades at the local one-room school in Sniatyn, moved to Vegreville and boarded with a woman from his father home village, and later went to Eastwood School and Victoria School in Edmonton for grades 9 to 11, where he stayed in the bursa (dormitory) for Ukrainian students called the Hrushevsky Institute. Students at the Institute took classes in Ukrainian language and culture in the evenings in addition to his studies in the regular English-language Albertan curriculum. After completing grade eleven he went to the Edmonton Normal School in 1929-30 and then taught in a series of rural school in the region near Andrew.
He married Mysoslava Kupchenko in 1935 and also began attending the University of Alberta in a combined program that awarded him a B.A. in 1937 and an L.L.B. in 1938. He articled in Vegreville and was called to the bar in 1939. At university he played for the Golden Bears basketball team and was the national president of the Ukrainian Youth Association.
The couple lived in Vegreville where John practiced law during the Second World War as John was rejected by the Canadian Armed Forces due to arthritis. John help to lead work bees and the fundraising efforts during for a public pool so the children of men serving overseas would have recreational activity, and was the president of the Kinsmen Club, the chamber of commerce, and the council of the local Ukrainian Orthodox Church, and school board trustee where he promoted the hiring of Ukrainian-Canadian teachers.
He anglicized his name to John by 1940s. He first ran for the House of Commons as a Liberal candidate in the 1949 federal election. He defeated Social Credit incumbent Anthony Hlynka in the riding of Vegreville. He was re-elected in the 1953 election, once again defeating Hlynka. He was appointed an advisor to Lester B. Pearson during Pearson's time as Ambassador of Canada to the United Nations and gave several speeches in the United States including representing Canada at U.N. Headquarters (then at Lake Success, New York) and speaking on Ukrainian issues at Carnegie Hall with U.S. Senator Lehman. In Parliament he was a vocal anti-communist and an activist for Ukrainian rights in both Canada and the Soviet Union. At his urging Canadian immigration documents began to recognize "Ukrainian" as nationality, and not merely the name of regional population within the Soviet Union. He also advocated for allowing the members of the controversial 14th Waffen Grenadier Division of the SS (1st Galician) to immigrate to Canada. He considered his "crowning achievement" in politics to be arranging for Prime Minister Louis St. Laurent to open the Ukrainian Pioneer Home monument at Elk Island National Park in 1951. He also arranged for a concert of the Ukrainian Bandurist Chorus in the Railway Committee Room of Parliament and the creation of a Ukrainian-language service at Voice of Canada. He retired from Parliament in 1957. Decore attempted to return to federal politics in the 1962 election, this time in the Edmonton East electoral district, but he lost to Progressive Conservative (PC) incumbent William Skoreyko. He ran once more in the 1963 federal election in Edmonton—Strathcona, losing to PC incumbent Terry Nugent.
Decore was made a Q.C. in 1964 and in 1965 was appointed Chief Justice of the District Court of Northern Alberta and supervised its merger with the southern district court. He was also involved in the creation of the Court of Queen's Bench for Alberta in 1979. He retired as chief justice in that year and was awarded an honourary degree of Doctor of Laws in 1980.
Decore's son Laurence was mayor of Edmonton and leader of the Opposition in the Legislative Assembly of Alberta.
References
External links
1909 births
1994 deaths
Members of the House of Commons of Canada from Alberta
Liberal Party of Canada MPs
Canadian people of Ukrainian descent
20th-century Canadian judges
20th-century Eastern Orthodox Christians
Members of Ukrainian Orthodox church bodies
University of Alberta Faculty of Law alumni
People from Lamont County
Canadian schoolteachers
Canadian anti-communists
Multiculturalism activists in Canada
Eastern Orthodox Christians from Canada
Victoria School of Performing and Visual Arts alumni
|
Alex Woo (1974 – March 30, 2021) was an American retailer and fine jewelry designer located in New York, New York. She was known for her sculptural charms that blend premium craftsmanship.
Personal life
Woo's father, Alexander Woo, was a bench jeweler and began teaching her the basics of jewelry making when she was five years old. He taught her the appreciation of gems, precious metals and fine craftsmanship. He continued to serve as her mentor as she went on to study at Cornell University, The American University of Paris and the Parsons School of Design.
She died of cancer in 2021.
Alex Woo Jewelry
With her Little Icons™ Collection, Woo was the first jewelry designer, who specialized in personalization. In 2001 Woo founded her own New York-based company Alex Woo Jewelry.
In 2009, she co-designed with Christina Applegate a pendant that raises money for Applegate's Right Action for Women foundation. Woo has also been affected by the disease, her mother died from breast cancer.
Woo's clients included Kelly Ripa, Miley Cyrus and Jennifer Lopez.
Awards and Recognitions
In 1998 she won the National Women´s Jewelry Association´s design competition.
In 2005 Woo was named as one of Crain´s New York Business´s 40 under 40.
In 2006, Woo was named a Rising Star by the Jeweller's Circular Keystone Show Design Center.
References
External links
AlexWoo Official website
“Now Ear This.”. DailyCandy November 7, 2003
Donna Freydkin "Love is the Only Number", USA Today December 15, 2005
9 Minutes with Alex Woo. iFashion Network
"Breast cancer fundraisers give pink a little extra punch."USA Today October 11, 2010
1974 births
2021 deaths
21st-century American jewellers
Cornell University alumni
American jewelry designers
American jewellers
Parsons School of Design alumni
|
```xml
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="path_to_url">
<item android:drawable="@color/font_black_6" android:state_pressed="true"/>
<item android:drawable="@color/white" />
</selector>
```
|
```java
package com.fishercoder.solutions.secondthousand;
public class _1049 {
public static class Solution1 {
public int lastStoneWeightII(int[] stones) {
//TODO: implement it
return 1;
}
}
}
```
|
```sqlpl
SELECT '-- check that partition key with ignore works correctly';
DROP TABLE IF EXISTS partition_by_ignore SYNC;
CREATE TABLE partition_by_ignore (ts DateTime, ts_2 DateTime) ENGINE=MergeTree PARTITION BY (toYYYYMM(ts), ignore(ts_2)) ORDER BY tuple() SETTINGS index_granularity = 8192, index_granularity_bytes = '10Mi';
INSERT INTO partition_by_ignore SELECT toDateTime('2022-08-03 00:00:00') + toIntervalDay(number), toDateTime('2022-08-04 00:00:00') + toIntervalDay(number) FROM numbers(60);
EXPLAIN ESTIMATE SELECT count() FROM partition_by_ignore WHERE ts BETWEEN toDateTime('2022-08-07 00:00:00') AND toDateTime('2022-08-10 00:00:00') FORMAT CSV;
EXPLAIN ESTIMATE SELECT count() FROM partition_by_ignore WHERE ts_2 BETWEEN toDateTime('2022-08-07 00:00:00') AND toDateTime('2022-08-10 00:00:00') FORMAT CSV;
DROP TABLE IF EXISTS partition_by_ignore SYNC;
```
|
```c++
// This file is part of OpenCV project.
// It is subject to the license terms in the LICENSE file found in the top-level directory
// of this distribution and at path_to_url
//
#ifndef OPENCV_GAPI_UTIL_HPP
#define OPENCV_GAPI_UTIL_HPP
#include <utility> // std::tuple
// \cond HIDDEN_SYMBOLS
// This header file contains some generic utility functions which are
// used in other G-API Public API headers.
//
// PLEASE don't put any stuff here if it is NOT used in public API headers!
namespace cv
{
namespace detail
{
// Recursive integer sequence type, useful for enumerating elements of
// template parameter packs.
template<int... I> struct Seq { using next = Seq<I..., sizeof...(I)>; };
template<int Sz> struct MkSeq { using type = typename MkSeq<Sz-1>::type::next; };
template<> struct MkSeq<0>{ using type = Seq<>; };
// Checks if elements of variadic template satisfy the given Predicate.
// Implemented via tuple, with an interface to accept plain type lists
template<template<class> class, typename, typename...> struct all_satisfy;
template<template<class> class F, typename T, typename... Ts>
struct all_satisfy<F, std::tuple<T, Ts...> >
{
static const constexpr bool value = F<T>::value
&& all_satisfy<F, std::tuple<Ts...> >::value;
};
template<template<class> class F, typename T>
struct all_satisfy<F, std::tuple<T> >
{
static const constexpr bool value = F<T>::value;
};
template<template<class> class F, typename T, typename... Ts>
struct all_satisfy: public all_satisfy<F, std::tuple<T, Ts...> > {};
// Permute given tuple type C with given integer sequence II
// Sequence may be less than tuple C size.
template<class, class> struct permute_tuple;
template<class C, int... IIs>
struct permute_tuple<C, Seq<IIs...> >
{
using type = std::tuple< typename std::tuple_element<IIs, C>::type... >;
};
// Given T..., generates a type sequence of sizeof...(T)-1 elements
// which is T... without its last element
// Implemented via tuple, with an interface to accept plain type lists
template<typename T, typename... Ts> struct all_but_last;
template<typename T, typename... Ts>
struct all_but_last<std::tuple<T, Ts...> >
{
using C = std::tuple<T, Ts...>;
using S = typename MkSeq<std::tuple_size<C>::value - 1>::type;
using type = typename permute_tuple<C, S>::type;
};
template<typename T, typename... Ts>
struct all_but_last: public all_but_last<std::tuple<T, Ts...> > {};
template<typename... Ts>
using all_but_last_t = typename all_but_last<Ts...>::type;
// NB.: This is here because there's no constexpr std::max in C++11
template<std::size_t S0, std::size_t... SS> struct max_of_t
{
static constexpr const std::size_t rest = max_of_t<SS...>::value;
static constexpr const std::size_t value = rest > S0 ? rest : S0;
};
template<std::size_t S> struct max_of_t<S>
{
static constexpr const std::size_t value = S;
};
} // namespace detail
} // namespace cv
// \endcond
#endif // OPENCV_GAPI_UTIL_HPP
```
|
```c++
/* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */
// vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4:
#ident "$Id$"
/*
COPYING CONDITIONS NOTICE:
This program is free software; you can redistribute it and/or modify
published by the Free Software Foundation, and provided that the
following conditions are met:
* Redistributions of source code must retain this COPYING
CONDITIONS NOTICE, the COPYRIGHT NOTICE (below), the
DISCLAIMER (below), the UNIVERSITY PATENT NOTICE (below), the
PATENT MARKING NOTICE (below), and the PATENT RIGHTS
GRANT (below).
* Redistributions in binary form must reproduce this COPYING
CONDITIONS NOTICE, the COPYRIGHT NOTICE (below), the
DISCLAIMER (below), the UNIVERSITY PATENT NOTICE (below), the
PATENT MARKING NOTICE (below), and the PATENT RIGHTS
GRANT (below) in the documentation and/or other materials
provided with the distribution.
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301, USA.
COPYRIGHT NOTICE:
TokuFT, Tokutek Fractal Tree Indexing Library.
DISCLAIMER:
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 GNU
UNIVERSITY PATENT NOTICE:
The technology is licensed by the Massachusetts Institute of
Technology, Rutgers State University of New Jersey, and the Research
Foundation of State University of New York at Stony Brook under
United States of America Serial No. 11/760379 and to the patents
and/or patent applications resulting from it.
PATENT MARKING NOTICE:
This software is covered by US Patent No. 8,185,551.
This software is covered by US Patent No. 8,489,638.
PATENT RIGHTS GRANT:
"THIS IMPLEMENTATION" means the copyrightable works distributed by
Tokutek as part of the Fractal Tree project.
"PATENT CLAIMS" means the claims of patents that are owned or
licensable by Tokutek, both currently or in the future; and that in
the absence of this license would be infringed by THIS
IMPLEMENTATION or by using or running THIS IMPLEMENTATION.
"PATENT CHALLENGE" shall mean a challenge to the validity,
patentability, enforceability and/or non-infringement of any of the
PATENT CLAIMS or otherwise opposing any of the PATENT CLAIMS.
Tokutek hereby grants to you, for the term and geographical scope of
the PATENT CLAIMS, a non-exclusive, no-charge, royalty-free,
irrevocable (except as stated in this section) patent license to
make, have made, use, offer to sell, sell, import, transfer, and
otherwise run, modify, and propagate the contents of THIS
IMPLEMENTATION, where such license applies only to the PATENT
CLAIMS. This grant does not include claims that would be infringed
only as a consequence of further modifications of THIS
IMPLEMENTATION. If you or your agent or licensee institute or order
or agree to the institution of patent litigation against any entity
(including a cross-claim or counterclaim in a lawsuit) alleging that
THIS IMPLEMENTATION constitutes direct or contributory patent
infringement, or inducement of patent infringement, then any rights
such litigation is filed. If you or your agent or exclusive
licensee institute or order or agree to the institution of a PATENT
CHALLENGE, then Tokutek may terminate any rights granted to you
*/
#ident "The technology is licensed by the Massachusetts Institute of Technology, Rutgers State University of New Jersey, and the Research Foundation of State University of New York at Stony Brook under United States of America Serial No. 11/760379 and to the patents and/or patent applications resulting from it."
#include "portability/toku_race_tools.h"
#include "ft/cachetable/checkpoint.h"
#include "ft/logger/log-internal.h"
#include "ft/ule.h"
#include "ft/txn/txn.h"
#include "ft/txn/txn_manager.h"
#include "ft/txn/rollback.h"
#include "util/omt.h"
bool garbage_collection_debug = false;
// internal locking functions, should use this instead of accessing lock directly
static void txn_manager_lock(TXN_MANAGER txn_manager);
static void txn_manager_unlock(TXN_MANAGER txn_manager);
#if 0
static bool is_txnid_live(TXN_MANAGER txn_manager, TXNID txnid) {
TOKUTXN result = NULL;
toku_txn_manager_id2txn_unlocked(txn_manager, txnid, &result);
return (result != NULL);
}
#endif
//Heaviside function to search through an OMT by a TXNID
int find_by_xid (const TOKUTXN &txn, const TXNID &txnidfind);
static bool is_txnid_live(TXN_MANAGER txn_manager, TXNID txnid) {
TOKUTXN result = NULL;
TXNID_PAIR id = { .parent_id64 = txnid, .child_id64 = TXNID_NONE };
toku_txn_manager_id2txn_unlocked(txn_manager, id, &result);
return (result != NULL);
}
static void toku_txn_manager_clone_state_for_gc_unlocked(
TXN_MANAGER txn_manager,
xid_omt_t* snapshot_xids,
rx_omt_t* referenced_xids,
xid_omt_t* live_root_txns
);
static void
verify_snapshot_system(TXN_MANAGER txn_manager UU()) {
uint32_t num_snapshot_txnids = txn_manager->num_snapshots;
TXNID snapshot_txnids[num_snapshot_txnids];
TOKUTXN snapshot_txns[num_snapshot_txnids];
uint32_t num_live_txns = txn_manager->live_root_txns.size();
TOKUTXN live_txns[num_live_txns];
uint32_t num_referenced_xid_tuples = txn_manager->referenced_xids.size();
struct referenced_xid_tuple *referenced_xid_tuples[num_referenced_xid_tuples];
// do this to get an omt of snapshot_txnids
xid_omt_t snapshot_txnids_omt;
rx_omt_t referenced_xids_omt;
xid_omt_t live_root_txns_omt;
toku_txn_manager_clone_state_for_gc_unlocked(
txn_manager,
&snapshot_txnids_omt,
&referenced_xids_omt,
&live_root_txns_omt
);
int r;
uint32_t i;
uint32_t j;
//set up arrays for easier access
{
TOKUTXN curr_txn = txn_manager->snapshot_head;
uint32_t curr_index = 0;
while (curr_txn != NULL) {
snapshot_txns[curr_index] = curr_txn;
snapshot_txnids[curr_index] = curr_txn->snapshot_txnid64;
curr_txn = curr_txn->snapshot_next;
curr_index++;
}
}
for (i = 0; i < num_live_txns; i++) {
r = txn_manager->live_root_txns.fetch(i, &live_txns[i]);
assert_zero(r);
}
for (i = 0; i < num_referenced_xid_tuples; i++) {
r = txn_manager->referenced_xids.fetch(i, &referenced_xid_tuples[i]);
assert_zero(r);
}
{
//Verify snapshot_txnids
for (i = 0; i < num_snapshot_txnids; i++) {
TXNID snapshot_xid = snapshot_txnids[i];
TOKUTXN snapshot_txn = snapshot_txns[i];
uint32_t num_live_root_txn_list = snapshot_txn->live_root_txn_list->size();
TXNID live_root_txn_list[num_live_root_txn_list];
{
for (j = 0; j < num_live_root_txn_list; j++) {
r = snapshot_txn->live_root_txn_list->fetch(j, &live_root_txn_list[j]);
assert_zero(r);
}
}
{
// Only committed entries have return a youngest.
TXNID youngest = toku_get_youngest_live_list_txnid_for(
snapshot_xid,
snapshot_txnids_omt,
txn_manager->referenced_xids
);
invariant(youngest == TXNID_NONE);
}
for (j = 0; j < num_live_root_txn_list; j++) {
TXNID live_xid = live_root_txn_list[j];
invariant(live_xid <= snapshot_xid);
TXNID youngest = toku_get_youngest_live_list_txnid_for(
live_xid,
snapshot_txnids_omt,
txn_manager->referenced_xids
);
if (is_txnid_live(txn_manager, live_xid)) {
// Only committed entries have return a youngest.
invariant(youngest == TXNID_NONE);
}
else {
invariant(youngest != TXNID_NONE);
// A committed entry might have been read-only, in which case it won't return anything.
// This snapshot reads 'live_xid' so it's youngest cannot be older than snapshot_xid.
invariant(youngest >= snapshot_xid);
}
}
}
}
{
// Verify referenced_xids.
for (i = 0; i < num_referenced_xid_tuples; i++) {
struct referenced_xid_tuple *tuple = referenced_xid_tuples[i];
invariant(tuple->begin_id < tuple->end_id);
invariant(tuple->references > 0);
{
//verify neither pair->begin_id nor end_id is in live_list
r = txn_manager->live_root_txns.find_zero<TXNID, find_by_xid>(tuple->begin_id, nullptr, nullptr);
invariant(r == DB_NOTFOUND);
r = txn_manager->live_root_txns.find_zero<TXNID, find_by_xid>(tuple->end_id, nullptr, nullptr);
invariant(r == DB_NOTFOUND);
}
{
//verify neither pair->begin_id nor end_id is in snapshot_xids
TOKUTXN curr_txn = txn_manager->snapshot_head;
uint32_t curr_index = 0;
while (curr_txn != NULL) {
invariant(tuple->begin_id != curr_txn->txnid.parent_id64);
invariant(tuple->end_id != curr_txn->txnid.parent_id64);
curr_txn = curr_txn->snapshot_next;
curr_index++;
}
}
{
// Verify number of references is correct
uint32_t refs_found = 0;
for (j = 0; j < num_snapshot_txnids; j++) {
TOKUTXN snapshot_txn = snapshot_txns[j];
if (toku_is_txn_in_live_root_txn_list(*snapshot_txn->live_root_txn_list, tuple->begin_id)) {
refs_found++;
}
invariant(!toku_is_txn_in_live_root_txn_list(
*snapshot_txn->live_root_txn_list,
tuple->end_id));
}
invariant(refs_found == tuple->references);
}
{
// Verify youngest makes sense.
TXNID youngest = toku_get_youngest_live_list_txnid_for(
tuple->begin_id,
snapshot_txnids_omt,
txn_manager->referenced_xids
);
invariant(youngest != TXNID_NONE);
invariant(youngest > tuple->begin_id);
invariant(youngest < tuple->end_id);
// Youngest must be found, and must be a snapshot txn
r = snapshot_txnids_omt.find_zero<TXNID, toku_find_xid_by_xid>(youngest, nullptr, nullptr);
invariant_zero(r);
}
}
}
snapshot_txnids_omt.destroy();
referenced_xids_omt.destroy();
live_root_txns_omt.destroy();
}
void toku_txn_manager_init(TXN_MANAGER* txn_managerp) {
TXN_MANAGER XCALLOC(txn_manager);
toku_mutex_init(&txn_manager->txn_manager_lock, NULL);
txn_manager->live_root_txns.create();
txn_manager->live_root_ids.create();
txn_manager->snapshot_head = NULL;
txn_manager->snapshot_tail = NULL;
txn_manager->num_snapshots = 0;
txn_manager->referenced_xids.create();
txn_manager->last_xid = 0;
txn_manager->last_xid_seen_for_recover = TXNID_NONE;
txn_manager->last_calculated_oldest_referenced_xid = TXNID_NONE;
*txn_managerp = txn_manager;
}
void toku_txn_manager_destroy(TXN_MANAGER txn_manager) {
toku_mutex_destroy(&txn_manager->txn_manager_lock);
invariant(txn_manager->live_root_txns.size() == 0);
txn_manager->live_root_txns.destroy();
invariant(txn_manager->live_root_ids.size() == 0);
txn_manager->live_root_ids.destroy();
invariant(txn_manager->snapshot_head == NULL);
invariant(txn_manager->referenced_xids.size() == 0);
txn_manager->referenced_xids.destroy();
toku_free(txn_manager);
}
TXNID
toku_txn_manager_get_oldest_living_xid(TXN_MANAGER txn_manager) {
TOKUTXN rtxn = NULL;
TXNID rval = TXNID_NONE_LIVING;
txn_manager_lock(txn_manager);
if (txn_manager->live_root_txns.size() > 0) {
int r = txn_manager->live_root_txns.fetch(0, &rtxn);
invariant_zero(r);
}
if (rtxn) {
rval = rtxn->txnid.parent_id64;
}
txn_manager_unlock(txn_manager);
return rval;
}
TXNID toku_txn_manager_get_oldest_referenced_xid_estimate(TXN_MANAGER txn_manager) {
return toku_drd_unsafe_fetch(&txn_manager->last_calculated_oldest_referenced_xid);
}
int live_root_txn_list_iter(const TOKUTXN &live_xid, const uint32_t UU(index), TXNID **const referenced_xids);
int live_root_txn_list_iter(const TOKUTXN &live_xid, const uint32_t UU(index), TXNID **const referenced_xids){
(*referenced_xids)[index] = live_xid->txnid.parent_id64;
return 0;
}
// Create list of root transactions that were live when this txn began.
static inline void
setup_live_root_txn_list(xid_omt_t* live_root_txnid, xid_omt_t* live_root_txn_list) {
if (live_root_txnid->size() > 0) {
live_root_txn_list->clone(*live_root_txnid);
} else {
live_root_txn_list->create_no_array();
}
}
//Heaviside function to search through an OMT by a TXNID
int
find_by_xid (const TOKUTXN &txn, const TXNID &txnidfind) {
if (txn->txnid.parent_id64 < txnidfind) return -1;
if (txn->txnid.parent_id64 > txnidfind) return +1;
return 0;
}
static TXNID
max_xid(TXNID a, TXNID b) {
return a < b ? b : a;
}
static void set_oldest_referenced_xid(TXN_MANAGER txn_manager) {
TXNID oldest_referenced_xid = TXNID_MAX;
int r;
if (txn_manager->live_root_ids.size() > 0) {
r = txn_manager->live_root_ids.fetch(0, &oldest_referenced_xid);
// this function should only be called when we know there is at least
// one live transaction
invariant_zero(r);
}
if (txn_manager->referenced_xids.size() > 0) {
struct referenced_xid_tuple* tuple;
r = txn_manager->referenced_xids.fetch(0, &tuple);
if (r == 0 && tuple->begin_id < oldest_referenced_xid) {
oldest_referenced_xid = tuple->begin_id;
}
}
if (txn_manager->snapshot_head != NULL) {
TXNID id = txn_manager->snapshot_head->snapshot_txnid64;
if (id < oldest_referenced_xid) {
oldest_referenced_xid = id;
}
}
if (txn_manager->last_xid < oldest_referenced_xid) {
oldest_referenced_xid = txn_manager->last_xid;
}
invariant(oldest_referenced_xid != TXNID_MAX);
toku_drd_unsafe_set(&txn_manager->last_calculated_oldest_referenced_xid, oldest_referenced_xid);
}
//Heaviside function to find a TOKUTXN by TOKUTXN (used to find the index)
// template-only function, but must be extern
int find_xid (const TOKUTXN &txn, const TOKUTXN &txnfind);
int
find_xid (const TOKUTXN &txn, const TOKUTXN &txnfind)
{
if (txn->txnid.parent_id64 < txnfind->txnid.parent_id64) return -1;
if (txn->txnid.parent_id64 > txnfind->txnid.parent_id64) return +1;
return 0;
}
static inline void txn_manager_create_snapshot_unlocked(
TXN_MANAGER txn_manager,
TOKUTXN txn
)
{
txn->snapshot_txnid64 = ++txn_manager->last_xid;
setup_live_root_txn_list(&txn_manager->live_root_ids, txn->live_root_txn_list);
// Add this txn to the global list of txns that have their own snapshots.
// (Note, if a txn is a child that creates its own snapshot, then that child xid
// is the xid stored in the global list.)
if (txn_manager->snapshot_head == NULL) {
invariant(txn_manager->snapshot_tail == NULL);
txn_manager->snapshot_head = txn;
txn_manager->snapshot_tail = txn;
}
else {
txn_manager->snapshot_tail->snapshot_next = txn;
txn->snapshot_prev = txn_manager->snapshot_tail;
txn_manager->snapshot_tail = txn;
}
txn_manager->num_snapshots++;
}
// template-only function, but must be extern
int find_tuple_by_xid (const struct referenced_xid_tuple &tuple, const TXNID &xidfind);
int
find_tuple_by_xid (const struct referenced_xid_tuple &tuple, const TXNID &xidfind)
{
if (tuple.begin_id < xidfind) return -1;
if (tuple.begin_id > xidfind) return +1;
return 0;
}
// template-only function, but must be extern
int referenced_xids_note_snapshot_txn_end_iter(const TXNID &live_xid, const uint32_t UU(index), rx_omt_t *const referenced_xids)
__attribute__((nonnull(3)));
int referenced_xids_note_snapshot_txn_end_iter(const TXNID &live_xid, const uint32_t UU(index), rx_omt_t *const referenced_xids)
{
int r;
uint32_t idx;
struct referenced_xid_tuple *tuple;
r = referenced_xids->find_zero<TXNID, find_tuple_by_xid>(live_xid, &tuple, &idx);
if (r == DB_NOTFOUND) {
goto done;
}
invariant_zero(r);
invariant(tuple->references > 0);
if (--tuple->references == 0) {
r = referenced_xids->delete_at(idx);
lazy_assert_zero(r);
}
done:
return 0;
}
// When txn ends, update reverse live list. To do that, examine each txn in this (closing) txn's live list.
static inline int
note_snapshot_txn_end_by_ref_xids(TXN_MANAGER mgr, const xid_omt_t &live_root_txn_list) {
int r;
r = live_root_txn_list.iterate<rx_omt_t, referenced_xids_note_snapshot_txn_end_iter>(&mgr->referenced_xids);
invariant_zero(r);
return r;
}
typedef struct snapshot_iter_extra {
uint32_t* indexes_to_delete;
uint32_t num_indexes;
xid_omt_t* live_root_txn_list;
} SNAPSHOT_ITER_EXTRA;
// template-only function, but must be extern
int note_snapshot_txn_end_by_txn_live_list_iter(referenced_xid_tuple* tuple, const uint32_t index, SNAPSHOT_ITER_EXTRA *const sie)
__attribute__((nonnull(3)));
int note_snapshot_txn_end_by_txn_live_list_iter(
referenced_xid_tuple* tuple,
const uint32_t index,
SNAPSHOT_ITER_EXTRA *const sie
)
{
int r;
uint32_t idx;
TXNID txnid;
r = sie->live_root_txn_list->find_zero<TXNID, toku_find_xid_by_xid>(tuple->begin_id, &txnid, &idx);
if (r == DB_NOTFOUND) {
goto done;
}
invariant_zero(r);
invariant(txnid == tuple->begin_id);
invariant(tuple->references > 0);
if (--tuple->references == 0) {
sie->indexes_to_delete[sie->num_indexes] = index;
sie->num_indexes++;
}
done:
return 0;
}
static inline int
note_snapshot_txn_end_by_txn_live_list(TXN_MANAGER mgr, xid_omt_t* live_root_txn_list) {
uint32_t size = mgr->referenced_xids.size();
uint32_t indexes_to_delete[size];
SNAPSHOT_ITER_EXTRA sie = { .indexes_to_delete = indexes_to_delete, .num_indexes = 0, .live_root_txn_list = live_root_txn_list};
mgr->referenced_xids.iterate_ptr<SNAPSHOT_ITER_EXTRA, note_snapshot_txn_end_by_txn_live_list_iter>(&sie);
for (uint32_t i = 0; i < sie.num_indexes; i++) {
uint32_t curr_index = sie.indexes_to_delete[sie.num_indexes-i-1];
mgr->referenced_xids.delete_at(curr_index);
}
return 0;
}
static inline void txn_manager_remove_snapshot_unlocked(
TOKUTXN txn,
TXN_MANAGER txn_manager
)
{
// Remove from linked list of snapshot txns
if (txn_manager->snapshot_head == txn) {
txn_manager->snapshot_head = txn->snapshot_next;
}
if (txn_manager->snapshot_tail == txn) {
txn_manager->snapshot_tail = txn->snapshot_prev;
}
if (txn->snapshot_next) {
txn->snapshot_next->snapshot_prev = txn->snapshot_prev;
}
if (txn->snapshot_prev) {
txn->snapshot_prev->snapshot_next = txn->snapshot_next;
}
txn_manager->num_snapshots--;
uint32_t ref_xids_size = txn_manager->referenced_xids.size();
uint32_t live_list_size = txn->live_root_txn_list->size();
if (ref_xids_size > 0 && live_list_size > 0) {
if (live_list_size > ref_xids_size && ref_xids_size < 2000) {
note_snapshot_txn_end_by_txn_live_list(txn_manager, txn->live_root_txn_list);
}
else {
note_snapshot_txn_end_by_ref_xids(txn_manager, *txn->live_root_txn_list);
}
}
}
static inline void inherit_snapshot_from_parent(TOKUTXN child) {
if (child->parent) {
child->snapshot_txnid64 = child->parent->snapshot_txnid64;
child->live_root_txn_list = child->parent->live_root_txn_list;
}
}
void toku_txn_manager_handle_snapshot_create_for_child_txn(
TOKUTXN txn,
TXN_MANAGER txn_manager,
TXN_SNAPSHOT_TYPE snapshot_type
)
{
// this is a function for child txns, so just doint a sanity check
invariant(txn->parent != NULL);
bool needs_snapshot = txn_needs_snapshot(snapshot_type, txn->parent);
if (needs_snapshot) {
invariant(txn->live_root_txn_list == nullptr);
XMALLOC(txn->live_root_txn_list);
txn_manager_lock(txn_manager);
txn_manager_create_snapshot_unlocked(txn_manager, txn);
txn_manager_unlock(txn_manager);
}
else {
inherit_snapshot_from_parent(txn);
}
}
void toku_txn_manager_handle_snapshot_destroy_for_child_txn(
TOKUTXN txn,
TXN_MANAGER txn_manager,
TXN_SNAPSHOT_TYPE snapshot_type
)
{
// this is a function for child txns, so just doint a sanity check
invariant(txn->parent != NULL);
bool is_snapshot = txn_needs_snapshot(snapshot_type, txn->parent);
if (is_snapshot) {
txn_manager_lock(txn_manager);
txn_manager_remove_snapshot_unlocked(txn, txn_manager);
txn_manager_unlock(txn_manager);
invariant(txn->live_root_txn_list != nullptr);
txn->live_root_txn_list->destroy();
toku_free(txn->live_root_txn_list);
}
}
void toku_txn_manager_start_txn_for_recovery(
TOKUTXN txn,
TXN_MANAGER txn_manager,
TXNID xid
)
{
txn_manager_lock(txn_manager);
// using xid that is passed in
txn_manager->last_xid = max_xid(txn_manager->last_xid, xid);
toku_txn_update_xids_in_txn(txn, xid);
uint32_t idx;
int r = txn_manager->live_root_txns.find_zero<TOKUTXN, find_xid>(txn, nullptr, &idx);
invariant(r == DB_NOTFOUND);
r = txn_manager->live_root_txns.insert_at(txn, idx);
invariant_zero(r);
r = txn_manager->live_root_ids.insert_at(txn->txnid.parent_id64, idx);
invariant_zero(r);
txn_manager_unlock(txn_manager);
}
void toku_txn_manager_start_txn(
TOKUTXN txn,
TXN_MANAGER txn_manager,
TXN_SNAPSHOT_TYPE snapshot_type,
bool read_only
)
{
int r;
TXNID xid = TXNID_NONE;
// if we are running in recovery, we don't need to make snapshots
bool needs_snapshot = txn_needs_snapshot(snapshot_type, NULL);
// perform a malloc outside of the txn_manager lock
// will be used in txn_manager_create_snapshot_unlocked below
if (needs_snapshot) {
invariant(txn->live_root_txn_list == nullptr);
XMALLOC(txn->live_root_txn_list);
}
// the act of getting a transaction ID and adding the
// txn to the proper OMTs must be atomic. MVCC depends
// on this.
txn_manager_lock(txn_manager);
if (garbage_collection_debug) {
verify_snapshot_system(txn_manager);
}
//
// maintain the data structures necessary for MVCC:
// 1. add txn to list of live_root_txns if this is a root transaction
// 2. if the transaction is creating a snapshot:
// - create a live list for the transaction
// - add the id to the list of snapshot ids
//
// The order of operations is important here, and must be taken
// into account when the transaction is closed. The txn is added
// to the live_root_txns first (if it is a root txn). This has the implication
// that a root level snapshot transaction is in its own live list. This fact
// is taken into account when the transaction is closed.
// add ancestor information, and maintain global live root txn list
xid = ++txn_manager->last_xid; // we always need an ID, needed for lock tree
toku_txn_update_xids_in_txn(txn, xid);
if (!read_only) {
uint32_t idx = txn_manager->live_root_txns.size();
r = txn_manager->live_root_txns.insert_at(txn, idx);
invariant_zero(r);
r = txn_manager->live_root_ids.insert_at(txn->txnid.parent_id64, idx);
invariant_zero(r);
}
set_oldest_referenced_xid(txn_manager);
if (needs_snapshot) {
txn_manager_create_snapshot_unlocked(
txn_manager,
txn
);
}
if (garbage_collection_debug) {
verify_snapshot_system(txn_manager);
}
txn_manager_unlock(txn_manager);
return;
}
TXNID
toku_get_youngest_live_list_txnid_for(TXNID xc, const xid_omt_t &snapshot_txnids, const rx_omt_t &referenced_xids) {
struct referenced_xid_tuple *tuple;
int r;
TXNID rval = TXNID_NONE;
r = referenced_xids.find_zero<TXNID, find_tuple_by_xid>(xc, &tuple, nullptr);
if (r == DB_NOTFOUND) {
goto done;
}
TXNID live;
r = snapshot_txnids.find<TXNID, toku_find_xid_by_xid>(tuple->end_id, -1, &live, nullptr);
if (r == DB_NOTFOUND) {
goto done;
}
invariant(live < tuple->end_id);
if (live > tuple->begin_id) {
rval = live;
}
done:
return rval;
}
void toku_txn_manager_finish_txn(TXN_MANAGER txn_manager, TOKUTXN txn) {
int r;
invariant(txn->parent == NULL);
bool is_snapshot = txn_needs_snapshot(txn->snapshot_type, NULL);
txn_manager_lock(txn_manager);
if (garbage_collection_debug) {
verify_snapshot_system(txn_manager);
}
if (is_snapshot) {
txn_manager_remove_snapshot_unlocked(
txn,
txn_manager
);
}
if (!txn_declared_read_only(txn)) {
uint32_t idx;
//Remove txn from list of live root txns
TOKUTXN txnagain;
r = txn_manager->live_root_txns.find_zero<TOKUTXN, find_xid>(txn, &txnagain, &idx);
invariant_zero(r);
invariant(txn==txnagain);
r = txn_manager->live_root_txns.delete_at(idx);
invariant_zero(r);
r = txn_manager->live_root_ids.delete_at(idx);
invariant_zero(r);
if (!toku_txn_is_read_only(txn) || garbage_collection_debug) {
uint32_t num_references = 0;
TOKUTXN curr_txn = txn_manager->snapshot_tail;
while(curr_txn != NULL) {
if (curr_txn->snapshot_txnid64 > txn->txnid.parent_id64) {
num_references++;
}
else {
break;
}
curr_txn = curr_txn->snapshot_prev;
}
if (num_references > 0) {
// This transaction exists in a live list of another transaction.
struct referenced_xid_tuple tuple = {
.begin_id = txn->txnid.parent_id64,
.end_id = ++txn_manager->last_xid,
.references = num_references
};
r = txn_manager->referenced_xids.insert<TXNID, find_tuple_by_xid>(tuple, txn->txnid.parent_id64, nullptr);
lazy_assert_zero(r);
}
}
}
if (garbage_collection_debug) {
verify_snapshot_system(txn_manager);
}
txn_manager_unlock(txn_manager);
//Cleanup that does not require the txn_manager lock
if (is_snapshot) {
invariant(txn->live_root_txn_list != nullptr);
txn->live_root_txn_list->destroy();
toku_free(txn->live_root_txn_list);
}
return;
}
static void toku_txn_manager_clone_state_for_gc_unlocked(
TXN_MANAGER txn_manager,
xid_omt_t* snapshot_xids,
rx_omt_t* referenced_xids,
xid_omt_t* live_root_txns
)
{
TXNID* snapshot_xids_array = NULL;
XMALLOC_N(txn_manager->num_snapshots, snapshot_xids_array);
TOKUTXN curr_txn = txn_manager->snapshot_head;
uint32_t curr_index = 0;
while (curr_txn != NULL) {
snapshot_xids_array[curr_index] = curr_txn->snapshot_txnid64;
curr_txn = curr_txn->snapshot_next;
curr_index++;
}
snapshot_xids->create_steal_sorted_array(
&snapshot_xids_array,
txn_manager->num_snapshots,
txn_manager->num_snapshots
);
referenced_xids->clone(txn_manager->referenced_xids);
setup_live_root_txn_list(&txn_manager->live_root_ids, live_root_txns);
}
void toku_txn_manager_clone_state_for_gc(
TXN_MANAGER txn_manager,
xid_omt_t* snapshot_xids,
rx_omt_t* referenced_xids,
xid_omt_t* live_root_txns
)
{
txn_manager_lock(txn_manager);
toku_txn_manager_clone_state_for_gc_unlocked(
txn_manager,
snapshot_xids,
referenced_xids,
live_root_txns
);
txn_manager_unlock(txn_manager);
}
void txn_manager_state::init() {
invariant(!initialized);
invariant_notnull(txn_manager);
toku_txn_manager_clone_state_for_gc(
txn_manager,
&snapshot_xids,
&referenced_xids,
&live_root_txns
);
initialized = true;
}
void toku_txn_manager_id2txn_unlocked(TXN_MANAGER txn_manager, TXNID_PAIR txnid, TOKUTXN *result) {
TOKUTXN txn;
int r = txn_manager->live_root_txns.find_zero<TXNID, find_by_xid>(txnid.parent_id64, &txn, nullptr);
if (r==0) {
assert(txn->txnid.parent_id64 == txnid.parent_id64);
*result = txn;
}
else {
assert(r==DB_NOTFOUND);
// If there is no txn, then we treat it as the null txn.
*result = NULL;
}
}
int toku_txn_manager_get_root_txn_from_xid (TXN_MANAGER txn_manager, TOKU_XA_XID *xid, DB_TXN **txnp) {
txn_manager_lock(txn_manager);
int ret_val = 0;
int num_live_txns = txn_manager->live_root_txns.size();
for (int i = 0; i < num_live_txns; i++) {
TOKUTXN txn;
{
int r = txn_manager->live_root_txns.fetch(i, &txn);
assert_zero(r);
}
if (txn->xa_xid.formatID == xid->formatID
&& txn->xa_xid.gtrid_length == xid->gtrid_length
&& txn->xa_xid.bqual_length == xid->bqual_length
&& 0==memcmp(txn->xa_xid.data, xid->data, xid->gtrid_length + xid->bqual_length)) {
*txnp = txn->container_db_txn;
ret_val = 0;
goto exit;
}
}
ret_val = DB_NOTFOUND;
exit:
txn_manager_unlock(txn_manager);
return ret_val;
}
uint32_t toku_txn_manager_num_live_root_txns(TXN_MANAGER txn_manager) {
int ret_val = 0;
txn_manager_lock(txn_manager);
ret_val = txn_manager->live_root_txns.size();
txn_manager_unlock(txn_manager);
return ret_val;
}
static int txn_manager_iter(
TXN_MANAGER txn_manager,
txn_mgr_iter_callback cb,
void* extra,
bool just_root_txns
)
{
int r = 0;
toku_mutex_lock(&txn_manager->txn_manager_lock);
uint32_t size = txn_manager->live_root_txns.size();
for (uint32_t i = 0; i < size; i++) {
TOKUTXN curr_txn = NULL;
r = txn_manager->live_root_txns.fetch(i, &curr_txn);
assert_zero(r);
if (just_root_txns) {
r = cb(curr_txn, extra);
}
else {
r = curr_txn->child_manager->iterate(cb, extra);
}
if (r) {
break;
}
}
toku_mutex_unlock(&txn_manager->txn_manager_lock);
return r;
}
int toku_txn_manager_iter_over_live_txns(
TXN_MANAGER txn_manager,
txn_mgr_iter_callback cb,
void* extra
)
{
return txn_manager_iter(
txn_manager,
cb,
extra,
false
);
}
int toku_txn_manager_iter_over_live_root_txns(
TXN_MANAGER txn_manager,
txn_mgr_iter_callback cb,
void* extra
)
{
return txn_manager_iter(
txn_manager,
cb,
extra,
true
);
}
//
// This function is called only via env_txn_xa_recover and env_txn_recover.
// See comments for those functions to understand assumptions that
// can be made when calling this function. Namely, that the system is
// quiescant, in that we are right after recovery and before user operations
// commence.
//
// Another key assumption made here is that only root transactions
// may be prepared and that child transactions cannot be prepared.
// This assumption is made by the fact that we iterate over the live root txns
// to find prepared transactions.
//
// I (Zardosht), don't think we take advantage of this fact, as we are holding
// the txn_manager_lock in this function, but in the future we might want
// to take these assumptions into account.
//
int toku_txn_manager_recover_root_txn (
TXN_MANAGER txn_manager,
struct tokulogger_preplist preplist[/*count*/],
long count,
long *retp, /*out*/
uint32_t flags
)
{
int ret_val = 0;
txn_manager_lock(txn_manager);
uint32_t num_txns_returned = 0;
// scan through live root txns to find
// prepared transactions and return them
uint32_t size = txn_manager->live_root_txns.size();
if (flags==DB_FIRST) {
txn_manager->last_xid_seen_for_recover = TXNID_NONE;
}
else if (flags!=DB_NEXT) {
ret_val = EINVAL;
goto exit;
}
for (uint32_t i = 0; i < size; i++) {
TOKUTXN curr_txn = NULL;
txn_manager->live_root_txns.fetch(i, &curr_txn);
// skip over TOKUTXNs whose txnid64 is too small, meaning
// we have already processed them.
if (curr_txn->txnid.parent_id64 <= txn_manager->last_xid_seen_for_recover) {
continue;
}
if (curr_txn->state == TOKUTXN_PREPARING) {
assert(curr_txn->container_db_txn);
preplist[num_txns_returned].txn = curr_txn->container_db_txn;
preplist[num_txns_returned].xid = curr_txn->xa_xid;
txn_manager->last_xid_seen_for_recover = curr_txn->txnid.parent_id64;
num_txns_returned++;
}
txn_manager->last_xid_seen_for_recover = curr_txn->txnid.parent_id64;
// if we found the maximum number of prepared transactions we are
// allowed to find, then break
if (num_txns_returned >= count) {
break;
}
}
invariant(num_txns_returned <= count);
*retp = num_txns_returned;
ret_val = 0;
exit:
txn_manager_unlock(txn_manager);
return ret_val;
}
static void txn_manager_lock(TXN_MANAGER txn_manager) {
toku_mutex_lock(&txn_manager->txn_manager_lock);
}
static void txn_manager_unlock(TXN_MANAGER txn_manager) {
toku_mutex_unlock(&txn_manager->txn_manager_lock);
}
void toku_txn_manager_suspend(TXN_MANAGER txn_manager) {
txn_manager_lock(txn_manager);
}
void toku_txn_manager_resume(TXN_MANAGER txn_manager) {
txn_manager_unlock(txn_manager);
}
void
toku_txn_manager_set_last_xid_from_logger(TXN_MANAGER txn_manager, TXNID last_xid) {
invariant(txn_manager->last_xid == TXNID_NONE);
txn_manager->last_xid = last_xid;
}
void
toku_txn_manager_set_last_xid_from_recovered_checkpoint(TXN_MANAGER txn_manager, TXNID last_xid) {
txn_manager->last_xid = last_xid;
}
TXNID
toku_txn_manager_get_last_xid(TXN_MANAGER mgr) {
txn_manager_lock(mgr);
TXNID last_xid = mgr->last_xid;
txn_manager_unlock(mgr);
return last_xid;
}
bool
toku_txn_manager_txns_exist(TXN_MANAGER mgr) {
txn_manager_lock(mgr);
bool retval = mgr->live_root_txns.size() > 0;
txn_manager_unlock(mgr);
return retval;
}
// Test-only function
void
toku_txn_manager_increase_last_xid(TXN_MANAGER mgr, uint64_t increment) {
txn_manager_lock(mgr);
mgr->last_xid += increment;
txn_manager_unlock(mgr);
}
```
|
Andries Gryffroy (born 1963) is a Belgian politician and a member of the New Flemish Alliance party.
Biography
Gryffroy was born in 1963 in Roeselare. He studied engineering course at Groep T in Leuven and worked for an energy company before founding a business. He was a member of the youth wing of the former Volksunie party before joining the N-VA. In 2011, he became the N-VA's general secretary and was party leader in the East Flanders Provincial Council. Since 2014, he has been a member of the Flemish Parliament and the Belgian Senate. In parliament, he sits on the Committee for Culture, Youth, Sport and Media.
Gryffroy is married and has two adopted children who were born in Vietnam.
Notes
1963 births
Living people
People from Roeselare
New Flemish Alliance politicians
Members of the Flemish Parliament
Members of the Senate (Belgium)
21st-century Belgian politicians
|
Sri Lanka's electricity demand is currently met by nine thermal power stations, fifteen large hydroelectric power stations, and fifteen wind farms, with a smaller share from small hydro facilities and other renewables such as solar. Most hydroelectric and thermal/fossil fuel–based power stations in the country are owned and/or operated by the government via the state-run Ceylon Electricity Board (CEB), while the renewable energy sector consists mostly of privately run plants operating on a power purchase agreement with the CEB.
Per CEB's 2016 generation report released in mid-2017, the country has a total combined installed generation capacity of , of which 2,115 MW (52.65%) was from thermal (900 MW/22.40% from coal and 1,215 MW/30.25% from fuel oil), 1,726 MW (42.97%) from hydroelectricity, and the remaining 176 MW (4.38%) from other renewable sources such as wind, biomass, and solar. These generation sources produced a total of of electricity during that year, of which , , and was from thermal, hydro, and other renewables, respectively.
Non-renewable
As of 2015, 1,464 MW of the total thermal installed capacity was from state-owned fossil fuel power stations: 900 MW from Lakvijaya, 380 MW from the state-owned portion of Kelanitissa, 160 MW from Sapugaskanda, and 24 MW from Uthuru Janani. The remaining 641 MW of the installed thermal capacity are from six privately owned power stations. All thermal power stations run on fuel oil, except Lakvijaya, which run on coal.
In an attempt to lower the current consumer tariff for electricity, the government has decided not to renew the power purchase agreements of privately owned thermal power stations when their licences expire, as it has done with the six now-decommissioned private power producers listed below. The government will utilize the new Sampur plant combined with new renewable sources to accommodate the lost private-sector capacity, with plans to introduce nuclear power after 2030.
The 500 MW Sampur Power Station was in early stages of development since 2006, but was subsequently cancelled in 2016 due environmental concerns. Prior to its cancellation, the Ministry of Power and Renewable Energy also made a statement that no more coal-fired power stations will be commissioned, making Lakvijaya the only coal-fired power station in the country. Any future thermal power stations will also be natural gas–run, to reduce the nation's carbon footprint.
Renewable
Hydroelectric
Hydroelectricity has played a very significant role in the national installed power capacity since it was introduced in the 1950s, with over 50% of the total grid capacity met by hydroelectricity in 2000–2010. Hydroelectricity was popularized as early as the 1920s by Devapura Jayasena Wimalasurendra, who is considered as the "Father of Hydropower" in Sri Lanka. It lost its majority share on the power grid when further thermal power stations were introduced in 2010. The hydropower resource in Sri Lanka is divided into two main regions based on water resource, namely the Mahaweli Complex and Laxapana Complex.
While most hydroelectric power stations are named after their water source (i.e. the name of the dam and/or reservoir), a number of facilities have different names due to the fact that they are located larger distances apart (connected via underground penstocks). Further information on each power station is included in the corresponding water source article (i.e. dam). Privately owned "small-hydro" facilities (which are limited to a maximum nameplate capacity of by state policy), are excluded from this list.
Solar power
Solar power is a relatively young segment in the energy industry of Sri Lanka. As of 2015, only a few grid-connected solar farms were operational, including a state-run facility. Despite at least half a dozen private companies applying for development permits for photovoltaic and solar thermal projects, most have not actually commenced construction.
Wind power
Sri Lanka's wind power sector saw activity as early as 1988, when studies were conducted to build a pilot wind project in the Southern Province. More than a decade later, the state-owned 3 MW Hambantota Wind Farm was commissioned. The industry stayed dormant till 2003, when the National Renewable Energy Laboratory conducted further wind power studies in the island, before which the industry went into dormancy for a further seven years.
Unlike the other industries, Sri Lanka's wind energy industry witnessed a sudden boom in 2010, with the commissioning of the Mampuri Wind Farms, the first private-sector wind project in the country's history. It then suddenly crashed over the following four years after numerous scandals and hidden political dealings surfaced, involving key governing bodies such as the Sustainable Energy Authority and Ceylon Electricity Board, along with a number of senior individuals.
The last privately owned first-come, first-served style wind farm projects, the Pollupalai and Vallimunai Wind Farms, were completed in late 2014, by when the construction of new privately owned wind farms were suspended until further notice by presidential order. The largest private-sector beneficiaries of the "wind power boom" are WindForce and Senok, which currently own seven and three separate wind farms respectively, of the total of 14 privately owned wind farms in operation as at 2015. The other companies in the market include the semi-private LTL Holdings, Aitken Spence, and Willwind, which are currently operating four wind farms in total.
See also
Electricity sector in Sri Lanka
India–Sri Lanka HVDC Interconnection
References
External links
Ceylon Electricity Board
Ministry of Power & Renewable Energy
Mahaweli Hydropower Complex
Public Utilities Commission of Sri Lanka
Sri Lanka Sustainable Energy Authority
Power stations
Power stations
Sri Lanka
|
is an athletic stadium in Isahaya, Nagasaki, Japan. Also known as Nagasaki Athletic Stadium, it received its current name in August 2016 due to naming rights. Another naming rights acquisition is set to take place from 1 February 2024, where the stadium will officially change its name to Peace Stadium Connected by Softbank.
The stadium is primarily used for football, and is the home field of the J. League football club V-Varen Nagasaki.
Access
JR Kyushu Nagasaki Main Line: 20 minutes walk from Isahaya Station.
References
Multi-purpose stadiums in Japan
Athletics (track and field) venues in Japan
Football venues in Japan
Rugby union stadiums in Japan
Sports venues in Nagasaki Prefecture
V-Varen Nagasaki
Sports venues completed in 1969
1969 establishments in Japan
|
In botany, a pome is a type of fruit produced by flowering plants in the subtribe Malinae of the family Rosaceae. Pome fruits consist of a central "core" containing multiple small seeds, which is enveloped by a tough membrane and surrounded by an edible layer of flesh. Pome fruit trees are deciduous, and undergo a dormant winter period that requires cold temperatures to break dormancy in spring. Well-known pomes include the apple, pear, and quince.
Etymology
The word pome entered English in the late 14th century, and referred to an apple or an apple-shaped object. It derived from the Old French word for "apple": (12th century; modern French is ), which in turn derived from the Late Latin or Vulgar Latin word "apple", originally the plural of Latin "fruit", later "apple".
Morphology
A pome is an accessory fruit composed of one or more carpels surrounded by accessory tissue. The accessory tissue is interpreted by some specialists as an extension of the receptacle and is then referred to as "fruit cortex", and by others as a fused hypanthium (floral cup). It is the most edible part of this fruit.
The carpels of a pome are fused within the "core". Although the epicarp, mesocarp, and endocarp of some other fruit types look very much like the skin, flesh, and core respectively of a pome, they are parts of the carpel (see above diagram). The epicarp and mesocarp of a pome may be fleshy and difficult to distinguish from one another and from the hypanthial tissue. The endocarp forms a leathery or stony case around the seed, and corresponds to what is commonly called the core.
Pome-type fruit with stony rather than leathery endocarp may be called a polypyrenous drupe.
The shriveled remains of the sepals, style and stamens can sometimes be seen at the end of a pome opposite the stem, and the ovary is therefore often described as inferior in these flowers.
Examples
The best-known example of a pome is the apple. Other examples of plants that produce fruit classified as a pome are Cotoneaster, Crataegus (hawthorn and mayhaw), medlar, pear, Pyracantha, quince, rowan, loquat, toyon, and whitebeam.
Some pomes may have a mealy texture (e.g., some apples); others (e.g., Amelanchier, Aronia) are berry-like with juicy flesh and a core that is not very noticeable.
See also
Cider
Nut (fruit)
References
External links
Fruit morphology
|
The Eastern Visayas slender skink (Brachymeles samad) is a species of skink endemic to the Philippines.
References
Reptiles of the Philippines
Reptiles described in 2012
Brachymeles
|
```javascript
'use strict';
const common = require('../common');
common.skipIfEslintMissing();
const RuleTester = require('../../tools/node_modules/eslint').RuleTester;
const rule = require('../../tools/eslint-rules/prefer-assert-methods');
new RuleTester().run('prefer-assert-methods', rule, {
valid: [
'assert.strictEqual(foo, bar);',
'assert(foo === bar && baz);',
'assert.notStrictEqual(foo, bar);',
'assert(foo !== bar && baz);',
'assert.equal(foo, bar);',
'assert(foo == bar && baz);',
'assert.notEqual(foo, bar);',
'assert(foo != bar && baz);',
'assert.ok(foo);',
'assert.ok(foo != bar);',
'assert.ok(foo === bar && baz);'
],
invalid: [
{
code: 'assert(foo == bar);',
errors: [{
message: "'assert.equal' should be used instead of '=='"
}],
output: 'assert.equal(foo, bar);'
},
{
code: 'assert(foo === bar);',
errors: [{
message: "'assert.strictEqual' should be used instead of '==='"
}],
output: 'assert.strictEqual(foo, bar);'
},
{
code: 'assert(foo != bar);',
errors: [{
message: "'assert.notEqual' should be used instead of '!='"
}],
output: 'assert.notEqual(foo, bar);'
},
{
code: 'assert(foo !== bar);',
errors: [{
message: "'assert.notStrictEqual' should be used instead of '!=='"
}],
output: 'assert.notStrictEqual(foo, bar);'
}
]
});
```
|
```java
/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
package jdk.graal.compiler.phases.common.inlining.policy;
import static jdk.graal.compiler.core.common.GraalOptions.MaximumDesiredSize;
import jdk.graal.compiler.core.common.GraalOptions;
import jdk.graal.compiler.core.common.PermanentBailoutException;
import jdk.graal.compiler.nodes.StructuredGraph;
import jdk.graal.compiler.nodes.spi.Replacements;
import jdk.graal.compiler.phases.common.inlining.InliningUtil;
import jdk.graal.compiler.phases.common.inlining.info.InlineInfo;
import jdk.graal.compiler.phases.common.inlining.walker.MethodInvocation;
public class InlineEverythingPolicy implements InliningPolicy {
@Override
public boolean continueInlining(StructuredGraph graph) {
if (InliningUtil.getNodeCount(graph) >= MaximumDesiredSize.getValue(graph.getOptions())) {
throw new PermanentBailoutException("Inline all calls failed. The resulting graph is too large.");
}
return true;
}
@Override
public Decision isWorthInlining(Replacements replacements, MethodInvocation invocation, InlineInfo calleeInfo, int inliningDepth, boolean fullyProcessed) {
boolean isTracing = GraalOptions.TraceInlining.getValue(calleeInfo.graph().getOptions()) || calleeInfo.graph().getDebug().hasCompilationListener();
return Decision.YES.withReason(isTracing, "inline everything");
}
}
```
|
The Gabriel Śląsk (Silesia) was a Polish light aircraft designed and built by an amateur in the mid-1930s. After two flights the Polish authorities banned further development.
Development
Antoni Gabriel, a long-time aircraft enthusiast, took an aircraft mechanic's course during military service and on return home designed a single-seat, high-wing, light, cabin monoplane. It was entirely self-funded and was constructed by Gabriel and a carpenter friend, Jan Mencel. Even the propeller and tyres were built on Gabriel's farm. He began tests with a car engine but this was not powerful enough even to taxi the machine, though he did get some press coverage which led to the offer of an old, Anzani 6 radial engine. This powered the first flight on 11 October 1936; it was the first time Gabriel had flown any aircraft but the flight lasted 45 minutes and ended, as night fell, by bonfire-light. After repairing some undercarriage damage and installing another home-made propeller, the Śląsk made its second flight in December 1936. This proved to be its last, as the resulting publicity attracted official attention. Concerns about structural strength and lack of design documentation led to a ban on further flights.
Stored in a farm building, the Śląsk survived the war and parts survived until 1963.
Design
Structurally, the Śląsk was a wooden aircraft. Its high wing was rectangular in plan out to blunted tips and had constant thickness over the whole span. The wing had a two-part, wooden structure with twin spars and was fabric covered. Constant chord ailerons reached out to the tips. There were parallel pairs of duralumin bracing struts on each side from the spars to the lower fuselage longerons.
The fuselage had a rectangular cross-section structure with wire cross-bracing. The Anzani engine was mounted with its cylinders projecting for cooling from an aluminium covered, tapered nose. Behind the engine the fuselage was fabric covered. Its depth was greatest under the wing, where the pilot's shallow-windowed, enclosed cabin under the leading edge was accessed by a hatch in its roof.
The Śląsk's fin was large and triangular and the narrow rudder broadened towards the keel. Its tailplane was mounted on top of the fuselage and braced from below with V-struts, carrying elevators with a gap for rudder movement. All empennage surfaces were fabric covered.
It had a fixed, conventional, tailwheel undercarriage of unusually wide track. The small mainwheels were mounted on wide-spread V-struts from the lower longerons at the meeting points with the wing bracing struts and near-vertical landing legs rose to the forward of these, stiffened by another strut to the base of the rear wing strut.
Specifications
References
Single-engined tractor aircraft
1930s Polish civil aircraft
|
```yaml
# Documentation: .gitlab/ci/README.md#manifest-file-to-control-the-buildtest-apps
components/ulp/test_apps/lp_core:
disable:
- if: SOC_LP_CORE_SUPPORTED != 1
components/ulp/test_apps/ulp_fsm:
enable:
- if: SOC_ULP_FSM_SUPPORTED == 1
components/ulp/test_apps/ulp_riscv:
disable:
- if: SOC_RISCV_COPROC_SUPPORTED != 1
```
|
```php
<?php
/**
* Template for displaying all pages
*
* This is the template that displays all pages by default.
* Please note that this is the WordPress construct of pages
* and that other 'pages' on your WordPress site will use a
* different template.
*
* @package WordPress
* @subpackage Twenty_Ten
* @since Twenty Ten 1.0
*/
get_header(); ?>
<div id="container">
<div id="content" role="main">
<?php
/*
* Run the loop to output the page.
* If you want to overload this in a child theme then include a file
* called loop-page.php and that will be used instead.
*/
get_template_part( 'loop', 'page' );
?>
</div><!-- #content -->
</div><!-- #container -->
<?php get_sidebar(); ?>
<?php get_footer(); ?>
```
|
Hold On is the third single from the Jamaican recording artist Sean Paul's fifth studio album Tomahawk Technique. It was written by Pierre "The Maven" Medor, Rico Love and Sean Paul Henriques and was produced by Pierre "The Maven" Medor, Rico Love. The song has charted in France.
Hold On is widely associated with Usain Bolt in his endeavour to victory in the London 2012 Olympic Games in the 100m and 200m races.
Music video
A Lyric music video to accompany the release of "Hold On" was first released onto YouTube on 21 February 2012 at a total length of four minutes and nine seconds.
Credits and personnel
Lead vocals – Sean Paul
Producers – Pierre "The Maven" Medor, Rico Love
Lyrics – Pierre "The Maven" Medor, Rico Love, Sean Paul Henriques
Label: Atlantic
Chart performance
References
2012 singles
Sean Paul songs
Songs written by Sean Paul
Songs written by Rico Love
Songs written by Pierre Medor
2011 songs
Atlantic Records singles
|
```kotlin
package cn.yiiguxing.plugin.translate.ui
import cn.yiiguxing.plugin.translate.action.TranslationEngineActionGroup
import cn.yiiguxing.plugin.translate.message
import cn.yiiguxing.plugin.translate.trans.TranslateException
import cn.yiiguxing.plugin.translate.util.DisposableRef
import cn.yiiguxing.plugin.translate.util.concurrent.*
import com.intellij.icons.AllIcons
import com.intellij.ide.DataManager
import com.intellij.openapi.Disposable
import com.intellij.openapi.application.ModalityState
import com.intellij.ui.components.JBLabel
import com.intellij.ui.components.JBOptionButton
import com.intellij.ui.components.panels.HorizontalLayout
import com.intellij.ui.scale.JBUIScale
import com.intellij.util.ui.JBFont
import com.intellij.util.ui.JBUI
import net.miginfocom.layout.CC
import net.miginfocom.layout.LC
import net.miginfocom.swing.MigLayout
import org.jetbrains.concurrency.runAsync
import java.awt.Dimension
import java.awt.event.ActionEvent
import javax.swing.AbstractAction
import javax.swing.JButton
import javax.swing.JComponent
import javax.swing.JPanel
class TranslationFailedComponent : JPanel(), Disposable {
private val errorInfo: JBLabel = JBLabel()
private val switchTranslationEngineAction =
object : AbstractAction(message("translation.failed.component.action.switch.translation.engine")) {
override fun actionPerformed(e: ActionEvent) {
doSwitchTranslationEngine()
}
}
private var retryHandler: (() -> Unit)? = null
private val optionButton: JBOptionButton = JBOptionButton(switchTranslationEngineAction, emptyArray())
private var isLoadingTranslationEngines = false
init {
init()
initIconAndMessage()
initErrorInfo()
initButtons()
}
private fun init() {
val layoutConstraints = LC()
.align("center", "center")
.gridGap("0!", "0!")
.insets(JBUIScale.scale(INSETS).toString())
layout = MigLayout(layoutConstraints)
}
private fun initIconAndMessage() {
add(JBLabel(AllIcons.General.ErrorDialog), cc())
add(
JBLabel(message("translation.failed.component.message")).apply {
font = JBFont.label().deriveFont(JBUIScale.scale(20f))
},
cc().gapTop(JBUIScale.scale(10).toString())
)
}
private fun initErrorInfo() {
errorInfo.apply {
isVisible = false
foreground = JBUI.CurrentTheme.Label.disabledForeground()
}
val cc = cc()
.gapTop(JBUIScale.scale(4).toString())
.gapBottom(JBUIScale.scale(12).toString())
add(errorInfo, cc)
}
private fun initButtons() {
val buttonsPanel = JPanel().apply {
layout = HorizontalLayout(JBUIScale.scale(4))
add(JButton(message("translation.failed.component.action.retry")).apply {
addActionListener { retryHandler?.invoke() }
})
add(optionButton)
}
add(buttonsPanel, cc())
}
override fun setBounds(x: Int, y: Int, width: Int, height: Int) {
super.setBounds(x, y, width, height)
errorInfo.maximumSize = Dimension(width - JBUIScale.scale(INSETS * 4), Int.MAX_VALUE)
}
private fun doSwitchTranslationEngine() {
if (isLoadingTranslationEngines) {
return
}
isLoadingTranslationEngines = true
val widgetRef = DisposableRef.create(this, this)
asyncLatch { latch ->
runAsync {
latch.await()
TranslationEngineActionGroup()
}
.expireWith(this)
.successOnUiThread(widgetRef) { widget, group ->
val button = widget.optionButton.takeIf { it.isShowing } ?: return@successOnUiThread
var offsetLeft: Int
var offsetRight: Int
var offsetBottom: Int
if (button.componentCount > 0) {
val first = (button.getComponent(0) as? JComponent)?.insets ?: button.insets
val last = (button.getComponent(button.componentCount - 1) as? JComponent)?.insets
?: button.insets
offsetLeft = first.left
offsetRight = last.right
offsetBottom = first.right
} else {
button.insets.let {
offsetLeft = it.left
offsetRight = it.right
offsetBottom = it.bottom
}
}
val dataContext = DataManager.getInstance().getDataContext(button)
group.createActionPopup(dataContext)
.apply { minimumSize = Dimension(button.width - offsetLeft - offsetRight, 1) }
.showBelow(button, offsetLeft, offsetBottom)
}
.finishOnUiThread(widgetRef, ModalityState.any()) { widget, _ ->
widget.isLoadingTranslationEngines = false
}
.disposeAfterProcessing(widgetRef)
}
}
fun onRetry(handler: () -> Unit) {
retryHandler = handler
}
fun update(throwable: Throwable?) {
val errorInfo = (throwable as? TranslateException)?.errorInfo
val errorMessage = errorInfo?.message
this.errorInfo.apply {
text = errorMessage
toolTipText = errorMessage
isVisible = !errorMessage.isNullOrEmpty()
}
optionButton.setOptions(errorInfo?.continueActions)
}
override fun dispose() {
}
companion object {
private const val INSETS = 10
private fun cc(): CC = CC().alignX("center").wrap()
}
}
```
|
```html
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<title>Metafunctions</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="Chapter 1. Fusion 2.2">
<link rel="up" href="../transformation.html" title="Transformation">
<link rel="prev" href="functions/flatten.html" title="flatten">
<link rel="next" href="metafunctions/filter.html" title="filter">
</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="functions/flatten.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../transformation.html"><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="metafunctions/filter.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a>
</div>
<div class="section">
<div class="titlepage"><div><div><h4 class="title">
<a name="fusion.algorithm.transformation.metafunctions"></a><a class="link" href="metafunctions.html" title="Metafunctions">Metafunctions</a>
</h4></div></div></div>
<div class="toc"><dl class="toc">
<dt><span class="section"><a href="metafunctions/filter.html">filter</a></span></dt>
<dt><span class="section"><a href="metafunctions/filter_if.html">filter_if</a></span></dt>
<dt><span class="section"><a href="metafunctions/transform.html">transform</a></span></dt>
<dt><span class="section"><a href="metafunctions/replace.html">replace</a></span></dt>
<dt><span class="section"><a href="metafunctions/replace_if.html">replace_if</a></span></dt>
<dt><span class="section"><a href="metafunctions/remove.html">remove</a></span></dt>
<dt><span class="section"><a href="metafunctions/remove_if.html">remove_if</a></span></dt>
<dt><span class="section"><a href="metafunctions/reverse.html">reverse</a></span></dt>
<dt><span class="section"><a href="metafunctions/clear.html">clear</a></span></dt>
<dt><span class="section"><a href="metafunctions/erase.html">erase</a></span></dt>
<dt><span class="section"><a href="metafunctions/erase_key.html">erase_key</a></span></dt>
<dt><span class="section"><a href="metafunctions/insert.html">insert</a></span></dt>
<dt><span class="section"><a href="metafunctions/insert_range.html">insert_range</a></span></dt>
<dt><span class="section"><a href="metafunctions/join.html">join</a></span></dt>
<dt><span class="section"><a href="metafunctions/zip.html">zip</a></span></dt>
<dt><span class="section"><a href="metafunctions/pop_back.html">pop_back</a></span></dt>
<dt><span class="section"><a href="metafunctions/pop_front.html">pop_front</a></span></dt>
<dt><span class="section"><a href="metafunctions/push_back.html">push_back</a></span></dt>
<dt><span class="section"><a href="metafunctions/push_front.html">push_front</a></span></dt>
<dt><span class="section"><a href="metafunctions/flatten.html">flatten</a></span></dt>
</dl></div>
</div>
<table xmlns:rev="path_to_url~gregod/boost/tools/doc/revision" width="100%"><tr>
<td align="left"></td>
Dan Marsden, Tobias Schwinger<p>
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="functions/flatten.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../transformation.html"><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="metafunctions/filter.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a>
</div>
</body>
</html>
```
|
Irene Yah-Ling Sun (born September 1, 1946) is an American actor. She is best known for her appearance as judoka Myrna Wong in the 1978 film Harper Valley PTA.
Early life
Sun was born on September 1, 1946, in Shanghai, China and raised in Taiwan; her family later moved to Manhattan, where she studied ballet.
Career
Sun made her stage debut as a dancer in Flower Drum Song, followed by The World of Suzie Wong.
Sun was a series regular in the short-lived Khan! (1975), as Anna, the daughter of the titular character (played by Khigh Dhiegh), helping her father solve crimes alongside her brother Kim (played by Evan C. Kim). Other television guest spots include appearances in Hawaii Five-O, The Rockford Files, and Quincy, M.E.
She also helped assemble an extensive collection of memorabilia depicting how Asian Americans have been portrayed in popular culture along with her friend, the film editor, writer, and book dealer Yoshio Kishi. The collection was acquired by the Asian/Pacific/American Studies Program and Institute of New York University in 2003, and a portion was exhibited in 2005 as "Archivist of the 'Yellow Peril, at NYU (Feb 3 – Jul 31) and MoCA (Aug 16 – Dec 31).
In 2017, Sun appeared in a nonspeaking role (as "Grandma") in a short public service spot commissioned by DDB San Francisco for Energy Upgrade California, directed by Bradley G Munkowitz (GMUNK).
Personal life
She is an accomplished chef, specializing in Chinese dishes.
Filmography
References
External links
1946 births
Living people
American film actresses
American television actresses
20th-century American actresses
21st-century American actresses
Chinese emigrants to the United States
Chinese Civil War refugees
Actresses from Shanghai
American actresses of Chinese descent
20th-century American dancers
|
```c++
// 2002-01-08 bkoz
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
// Free Software Foundation; either version 2, or (at your option)
// any later version.
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// with this library; see the file COPYING. If not, write to the Free
// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
// USA.
// As a special exception, you may use this file as part of a free software
// library without restriction. Specifically, if other files instantiate
// templates or use macros or inline functions from this file, or you compile
// this file and link it with other files to produce an executable, this
// file does not by itself cause the resulting executable to be covered by
// invalidate any other reasons why the executable file might be covered by
// 27.6.1.5 - Template class basic_iostream
// NB: This file is for testing iostream with NO OTHER INCLUDES.
#include <iostream>
// libstdc++/3647
void test07()
{
// Should not block.
std::cout << std::cin.rdbuf()->in_avail() << std::endl;
}
int main()
{
test07();
return 0;
}
```
|
```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.atomix.utils.serializer.serializers;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import com.esotericsoftware.kryo.Kryo;
import com.esotericsoftware.kryo.io.ByteBufferInput;
import com.esotericsoftware.kryo.io.ByteBufferOutput;
import com.esotericsoftware.kryo.io.Input;
import com.esotericsoftware.kryo.io.Output;
import java.nio.ByteBuffer;
import java.util.concurrent.atomic.AtomicBoolean;
import java.util.concurrent.atomic.AtomicInteger;
import java.util.concurrent.atomic.AtomicLong;
import org.junit.After;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
public class AtomicSerializersTest {
private static final int CAPACITY = 1024;
private static final Kryo KRYO = new Kryo();
private Output output;
private Input input;
private ByteBuffer buffer;
@BeforeClass
public static void register() {
KRYO.register(AtomicLong.class, new AtomicLongSerializer());
KRYO.register(AtomicInteger.class, new AtomicIntegerSerializer());
KRYO.register(AtomicBoolean.class, new AtomicBooleanSerializer());
}
@Before
public void setUp() {
buffer = ByteBuffer.allocate(CAPACITY);
output = new ByteBufferOutput(buffer);
input = new ByteBufferInput(buffer);
}
@After
public void tearDown() {
output.close();
input.close();
}
@Test
public void shouldSerializeDeserializeLong() {
// given
final AtomicLong original = new AtomicLong(1);
// when
original.set(32L);
KRYO.writeObject(output, original);
buffer.flip();
final AtomicLong deserialized = KRYO.readObject(input, AtomicLong.class);
// then
assertEquals(32L, deserialized.get());
}
@Test
public void shouldSerializeDeserializeInteger() {
// given
final AtomicInteger original = new AtomicInteger(1);
// when
original.set(1000);
KRYO.writeObject(output, original);
buffer.flip();
final AtomicInteger deserialized = KRYO.readObject(input, AtomicInteger.class);
// then
assertEquals(1000, deserialized.get());
}
@Test
public void shouldSerializeDeserializeBoolean() {
// given
final AtomicBoolean original = new AtomicBoolean(false);
// when
original.set(true);
KRYO.writeObject(output, original);
buffer.flip();
final AtomicBoolean deserialized = KRYO.readObject(input, AtomicBoolean.class);
// then
assertTrue(deserialized.get());
}
}
```
|
```smalltalk
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Management.Automation;
using System.Runtime.InteropServices;
using System.Security.AccessControl;
using System.Threading;
using Microsoft.ApplicationInsights;
using Microsoft.ApplicationInsights.Metrics;
using Microsoft.ApplicationInsights.Channel;
using Microsoft.ApplicationInsights.Extensibility;
using Microsoft.ApplicationInsights.Extensibility.Implementation;
namespace Microsoft.PowerShell.Telemetry
{
/// <summary>
/// The category of telemetry.
/// </summary>
internal enum TelemetryType
{
/// <summary>
/// Telemetry of the application type (cmdlet, script, etc).
/// </summary>
ApplicationType,
/// <summary>
/// Send telemetry when we load a module, only module names in the s_knownModules list
/// will be reported, otherwise it will be "anonymous".
/// </summary>
ModuleLoad,
/// <summary>
/// Send telemetry when we load a module using Windows compatibility feature, only module names in the s_knownModules list
/// will be reported, otherwise it will be "anonymous".
/// </summary>
WinCompatModuleLoad,
/// <summary>
/// Send telemetry for experimental module feature deactivation.
/// All experimental engine features will be have telemetry.
/// </summary>
ExperimentalEngineFeatureDeactivation,
/// <summary>
/// Send telemetry for experimental module feature activation.
/// All experimental engine features will be have telemetry.
/// </summary>
ExperimentalEngineFeatureActivation,
/// <summary>
/// Send telemetry for an experimental feature when use.
/// </summary>
ExperimentalFeatureUse,
/// <summary>
/// Send telemetry for experimental module feature deactivation.
/// Experimental module features will send telemetry based on the module it is in.
/// If we send telemetry for the module, we will also do so for any experimental feature
/// in that module.
/// </summary>
ExperimentalModuleFeatureDeactivation,
/// <summary>
/// Send telemetry for experimental module feature activation.
/// Experimental module features will send telemetry based on the module it is in.
/// If we send telemetry for the module, we will also do so for any experimental feature
/// in that module.
/// </summary>
ExperimentalModuleFeatureActivation,
/// <summary>
/// Send telemetry for each PowerShell.Create API.
/// </summary>
PowerShellCreate,
/// <summary>
/// Remote session creation.
/// </summary>
RemoteSessionOpen,
}
/// <summary>
/// Set up the telemetry initializer to mask the platform specific names.
/// </summary>
internal class NameObscurerTelemetryInitializer : ITelemetryInitializer
{
// Report the platform name information as "na".
private const string _notavailable = "na";
/// <summary>
/// Initialize properties we are obscuring to "na".
/// </summary>
/// <param name="telemetry">The instance of our telemetry.</param>
public void Initialize(ITelemetry telemetry)
{
telemetry.Context.Cloud.RoleName = _notavailable;
telemetry.Context.GetInternalContext().NodeName = _notavailable;
telemetry.Context.Cloud.RoleInstance = _notavailable;
}
}
/// <summary>
/// Send up telemetry for startup.
/// </summary>
public static class ApplicationInsightsTelemetry
{
// If this env var is true, yes, or 1, telemetry will NOT be sent.
private const string _telemetryOptoutEnvVar = "POWERSHELL_TELEMETRY_OPTOUT";
// PSCoreInsight2 telemetry key
// private const string _psCoreTelemetryKey = "ee4b2115-d347-47b0-adb6-b19c2c763808"; // Production
private const string _psCoreTelemetryKey = "d26a5ef4-d608-452c-a6b8-a4a55935f70d"; // V7 Preview 3
// In the event there is a problem in creating the node identifier file, use the default identifier.
// This can happen if we are running in a system which has a read-only filesystem.
private static readonly Guid _defaultNodeIdentifier = new Guid("2f998828-3f4a-4741-bf50-d11c6be42f50");
// Use "anonymous" as the string to return when you can't report a name
private const string Anonymous = "anonymous";
// Use '0.0' as the string for an anonymous module version
private const string AnonymousVersion = "0.0";
// Use 'n/a' as the string when there's no tag to report
private const string NoTag = "n/a";
// the telemetry failure string
private const string _telemetryFailure = "TELEMETRY_FAILURE";
// Telemetry client to be reused when we start sending more telemetry
private static TelemetryClient s_telemetryClient { get; }
// the unique identifier for the user, when we start we
private static string s_uniqueUserIdentifier { get; }
// the session identifier
private static string s_sessionId { get; }
// private semaphore to determine whether we sent the startup telemetry event
private static int s_startupEventSent = 0;
/// Use a hashset for quick lookups.
/// We send telemetry only a known set of modules and tags.
/// If it's not in the list (initialized in the static constructor), then we report anonymous
/// or don't report anything (in the case of tags).
private static readonly HashSet<string> s_knownModules;
private static readonly HashSet<string> s_knownModuleTags;
/// <summary>Gets a value indicating whether telemetry can be sent.</summary>
public static bool CanSendTelemetry { get; private set; } = false;
/// <summary>
/// Initializes static members of the <see cref="ApplicationInsightsTelemetry"/> class.
/// Static constructor determines whether telemetry is to be sent, and then
/// sets the telemetry key and set the telemetry delivery mode.
/// Creates the session ID and initializes the HashSet of known module names.
/// Gets or constructs the unique identifier.
/// </summary>
static ApplicationInsightsTelemetry()
{
// If we can't send telemetry, there's no reason to do any of this
CanSendTelemetry = !GetEnvironmentVariableAsBool(name: _telemetryOptoutEnvVar, defaultValue: false);
if (CanSendTelemetry)
{
s_sessionId = Guid.NewGuid().ToString();
TelemetryConfiguration configuration = TelemetryConfiguration.CreateDefault();
configuration.ConnectionString = "InstrumentationKey=" + _psCoreTelemetryKey;
// Set this to true to reduce latency during development
configuration.TelemetryChannel.DeveloperMode = false;
// Be sure to obscure any information about the client node name.
configuration.TelemetryInitializers.Add(new NameObscurerTelemetryInitializer());
s_telemetryClient = new TelemetryClient(configuration);
// use a hashset when looking for module names, it should be quicker than a string comparison
s_knownModules = new HashSet<string>(StringComparer.OrdinalIgnoreCase)
{
"AADRM",
"activedirectory",
"adcsadministration",
"adcsdeployment",
"addsadministration",
"addsdeployment",
"adfs",
"adrms",
"adrmsadmin",
"agpm",
"appbackgroundtask",
"applocker",
"appv",
"appvclient",
"appvsequencer",
"appvserver",
"appx",
"assignedaccess",
"Az",
"Az.Accounts",
"Az.Advisor",
"Az.Aks",
"Az.AlertsManagement",
"Az.AnalysisServices",
"Az.ApiManagement",
"Az.ApplicationInsights",
"Az.Attestation",
"Az.Automation",
"Az.Batch",
"Az.Billing",
"Az.Blueprint",
"Az.Cdn",
"Az.CognitiveServices",
"Az.Compute",
"Az.ContainerInstance",
"Az.ContainerRegistry",
"Az.DataBox",
"Az.DataFactory",
"Az.DataLakeAnalytics",
"Az.DataLakeStore",
"Az.DataMigration",
"Az.DataShare",
"Az.DeploymentManager",
"Az.DeviceProvisioningServices",
"Az.DevSpaces",
"Az.DevTestLabs",
"Az.Dns",
"Az.EventGrid",
"Az.EventHub",
"Az.FrontDoor",
"Az.GuestConfiguration",
"Az.HDInsight",
"Az.HealthcareApis",
"Az.IotCentral",
"Az.IotHub",
"Az.KeyVault",
"Az.Kusto",
"Az.LogicApp",
"Az.MachineLearning",
"Az.ManagedServiceIdentity",
"Az.ManagedServices",
"Az.ManagementPartner",
"Az.Maps",
"Az.MarketplaceOrdering",
"Az.Media",
"Az.MixedReality",
"Az.Monitor",
"Az.NetAppFiles",
"Az.Network",
"Az.NotificationHubs",
"Az.OperationalInsights",
"Az.Peering",
"Az.PolicyInsights",
"Az.PowerBIEmbedded",
"Az.PrivateDns",
"Az.RecoveryServices",
"Az.RedisCache",
"Az.Relay",
"Az.Reservations",
"Az.ResourceGraph",
"Az.Resources",
"Az.Search",
"Az.Security",
"Az.ServiceBus",
"Az.ServiceFabric",
"Az.SignalR",
"Az.Sql",
"Az.Storage",
"Az.StorageSync",
"Az.StorageTable",
"Az.StreamAnalytics",
"Az.Subscription",
"Az.Tools.Predictor",
"Az.TrafficManager",
"Az.Websites",
"Azs.Azurebridge.Admin",
"Azs.Backup.Admin",
"Azs.Commerce.Admin",
"Azs.Compute.Admin",
"Azs.Fabric.Admin",
"Azs.Gallery.Admin",
"Azs.Infrastructureinsights.Admin",
"Azs.Keyvault.Admin",
"Azs.Network.Admin",
"Azs.Storage.Admin",
"Azs.Subscriptions",
"Azs.Subscriptions.Admin",
"Azs.Update.Admin",
"AzStorageTable",
"Azure",
"Azure.AnalysisServices",
"Azure.Storage",
"AzureAD",
"AzureInformationProtection",
"AzureRM.Aks",
"AzureRM.AnalysisServices",
"AzureRM.ApiManagement",
"AzureRM.ApplicationInsights",
"AzureRM.Automation",
"AzureRM.Backup",
"AzureRM.Batch",
"AzureRM.Billing",
"AzureRM.Cdn",
"AzureRM.CognitiveServices",
"AzureRm.Compute",
"AzureRM.Compute.ManagedService",
"AzureRM.Consumption",
"AzureRM.ContainerInstance",
"AzureRM.ContainerRegistry",
"AzureRM.DataFactories",
"AzureRM.DataFactoryV2",
"AzureRM.DataLakeAnalytics",
"AzureRM.DataLakeStore",
"AzureRM.DataMigration",
"AzureRM.DeploymentManager",
"AzureRM.DeviceProvisioningServices",
"AzureRM.DevSpaces",
"AzureRM.DevTestLabs",
"AzureRm.Dns",
"AzureRM.EventGrid",
"AzureRM.EventHub",
"AzureRM.FrontDoor",
"AzureRM.HDInsight",
"AzureRm.Insights",
"AzureRM.IotCentral",
"AzureRM.IotHub",
"AzureRm.Keyvault",
"AzureRM.LocationBasedServices",
"AzureRM.LogicApp",
"AzureRM.MachineLearning",
"AzureRM.MachineLearningCompute",
"AzureRM.ManagedServiceIdentity",
"AzureRM.ManagementPartner",
"AzureRM.Maps",
"AzureRM.MarketplaceOrdering",
"AzureRM.Media",
"AzureRM.Network",
"AzureRM.NotificationHubs",
"AzureRM.OperationalInsights",
"AzureRM.PolicyInsights",
"AzureRM.PowerBIEmbedded",
"AzureRM.Profile",
"AzureRM.RecoveryServices",
"AzureRM.RecoveryServices.Backup",
"AzureRM.RecoveryServices.SiteRecovery",
"AzureRM.RedisCache",
"AzureRM.Relay",
"AzureRM.Reservations",
"AzureRM.ResourceGraph",
"AzureRM.Resources",
"AzureRM.Scheduler",
"AzureRM.Search",
"AzureRM.Security",
"AzureRM.ServerManagement",
"AzureRM.ServiceBus",
"AzureRM.ServiceFabric",
"AzureRM.SignalR",
"AzureRM.SiteRecovery",
"AzureRM.Sql",
"AzureRm.Storage",
"AzureRM.StorageSync",
"AzureRM.StreamAnalytics",
"AzureRM.Subscription",
"AzureRM.Subscription.Preview",
"AzureRM.Tags",
"AzureRM.TrafficManager",
"AzureRm.UsageAggregates",
"AzureRm.Websites",
"AzureRmStorageTable",
"bestpractices",
"bitlocker",
"bitstransfer",
"booteventcollector",
"branchcache",
"CimCmdlets",
"clusterawareupdating",
"CompatPowerShellGet",
"configci",
"ConfigurationManager",
"CompletionPredictor",
"DataProtectionManager",
"dcbqos",
"deduplication",
"defender",
"devicehealthattestation",
"dfsn",
"dfsr",
"dhcpserver",
"directaccessclient",
"directaccessclientcomponent",
"directaccessclientcomponents",
"dism",
"dnsclient",
"dnsserver",
"ElasticDatabaseJobs",
"EventTracingManagement",
"failoverclusters",
"fileserverresourcemanager",
"FIMAutomation",
"GPRegistryPolicy",
"grouppolicy",
"hardwarecertification",
"hcs",
"hgsattestation",
"hgsclient",
"hgsdiagnostics",
"hgskeyprotection",
"hgsserver",
"hnvdiagnostics",
"hostcomputeservice",
"hpc",
"HPC.ACM",
"HPC.ACM.API.PS",
"HPCPack2016",
"hyper-v",
"IISAdministration",
"international",
"ipamserver",
"iscsi",
"iscsitarget",
"ISE",
"kds",
"Microsoft.MBAM",
"Microsoft.MEDV",
"MgmtSvcAdmin",
"MgmtSvcConfig",
"MgmtSvcMySql",
"MgmtSvcSqlServer",
"Microsoft.AzureStack.ReadinessChecker",
"Microsoft.Crm.PowerShell",
"Microsoft.DiagnosticDataViewer",
"Microsoft.DirectoryServices.MetadirectoryServices.Config",
"Microsoft.Dynamics.Nav.Apps.Management",
"Microsoft.Dynamics.Nav.Apps.Tools",
"Microsoft.Dynamics.Nav.Ide",
"Microsoft.Dynamics.Nav.Management",
"Microsoft.Dynamics.Nav.Model.Tools",
"Microsoft.Dynamics.Nav.Model.Tools.Crm",
"Microsoft.EnterpriseManagement.Warehouse.Cmdlets",
"Microsoft.Medv.Administration.Commands.WorkspacePackager",
"Microsoft.PowerApps.Checker.PowerShell",
"Microsoft.PowerShell.Archive",
"Microsoft.PowerShell.ConsoleGuiTools",
"Microsoft.PowerShell.Core",
"Microsoft.PowerShell.Crescendo",
"Microsoft.PowerShell.Diagnostics",
"Microsoft.PowerShell.Host",
"Microsoft.PowerShell.LocalAccounts",
"Microsoft.PowerShell.Management",
"Microsoft.PowerShell.ODataUtils",
"Microsoft.PowerShell.Operation.Validation",
"Microsoft.PowerShell.PSAdapter",
"Microsoft.PowerShell.PSResourceGet",
"Microsoft.PowerShell.RemotingTools",
"Microsoft.PowerShell.SecretManagement",
"Microsoft.PowerShell.SecretStore",
"Microsoft.PowerShell.Security",
"Microsoft.PowerShell.TextUtility",
"Microsoft.PowerShell.Utility",
"Microsoft.SharePoint.Powershell",
"Microsoft.SystemCenter.ServiceManagementAutomation",
"Microsoft.Windows.ServerManager.Migration",
"Microsoft.WSMan.Management",
"Microsoft.Xrm.OnlineManagementAPI",
"Microsoft.Xrm.Tooling.CrmConnector.PowerShell",
"Microsoft.Xrm.Tooling.PackageDeployment",
"Microsoft.Xrm.Tooling.PackageDeployment.Powershell",
"Microsoft.Xrm.Tooling.Testing",
"MicrosoftPowerBIMgmt",
"MicrosoftPowerBIMgmt.Data",
"MicrosoftPowerBIMgmt.Profile",
"MicrosoftPowerBIMgmt.Reports",
"MicrosoftPowerBIMgmt.Workspaces",
"MicrosoftStaffHub",
"MicrosoftTeams",
"MIMPAM",
"mlSqlPs",
"MMAgent",
"MPIO",
"MsDtc",
"MSMQ",
"MSOnline",
"MSOnlineBackup",
"WmsCmdlets",
"WmsCmdlets3",
"NanoServerImageGenerator",
"NAVWebClientManagement",
"NetAdapter",
"NetConnection",
"NetEventPacketCapture",
"Netlbfo",
"Netldpagent",
"NetNat",
"Netqos",
"NetSecurity",
"NetSwitchtTeam",
"Nettcpip",
"Netwnv",
"NetworkConnectivity",
"NetworkConnectivityStatus",
"NetworkController",
"NetworkControllerDiagnostics",
"NetworkloadBalancingClusters",
"NetworkSwitchManager",
"NetworkTransition",
"NFS",
"NPS",
"OfficeWebapps",
"OperationsManager",
"PackageManagement",
"PartnerCenter",
"pcsvdevice",
"pef",
"Pester",
"pkiclient",
"platformidentifier",
"pnpdevice",
"PowerShellEditorServices",
"PowerShellGet",
"powershellwebaccess",
"printmanagement",
"ProcessMitigations",
"provisioning",
"PSDesiredStateConfiguration",
"PSDiagnostics",
"PSReadLine",
"PSScheduledJob",
"PSScriptAnalyzer",
"PSWorkflow",
"PSWorkflowUtility",
"RemoteAccess",
"RemoteDesktop",
"RemoteDesktopServices",
"ScheduledTasks",
"Secureboot",
"ServerCore",
"ServerManager",
"ServerManagerTasks",
"ServerMigrationcmdlets",
"ServiceFabric",
"Microsoft.Online.SharePoint.PowerShell",
"shieldedvmdatafile",
"shieldedvmprovisioning",
"shieldedvmtemplate",
"SkypeOnlineConnector",
"SkypeForBusinessHybridHealth",
"smbshare",
"smbwitness",
"smisconfig",
"softwareinventorylogging",
"SPFAdmin",
"Microsoft.SharePoint.MigrationTool.PowerShell",
"sqlps",
"SqlServer",
"StartLayout",
"StartScreen",
"Storage",
"StorageDsc",
"storageqos",
"Storagereplica",
"Storagespaces",
"Syncshare",
"System.Center.Service.Manager",
"TLS",
"TroubleshootingPack",
"TrustedPlatformModule",
"UEV",
"UpdateServices",
"UserAccessLogging",
"vamt",
"VirtualMachineManager",
"vpnclient",
"WasPSExt",
"WDAC",
"WDS",
"WebAdministration",
"WebAdministrationDsc",
"WebApplicationProxy",
"WebSites",
"Whea",
"WhiteboardAdmin",
"WindowsDefender",
"WindowsDefenderDsc",
"WindowsDiagnosticData",
"WindowsErrorReporting",
"WindowServerRackup",
"WindowsSearch",
"WindowsServerBackup",
"WindowsUpdate",
"WinGetCommandNotFound",
"wsscmdlets",
"wsssetup",
"wsus",
"xActiveDirectory",
"xBitLocker",
"xDefender",
"xDhcpServer",
"xDismFeature",
"xDnsServer",
"xHyper-V",
"xHyper-VBackup",
"xPSDesiredStateConfiguration",
"xSmbShare",
"xSqlPs",
"xStorage",
"xWebAdministration",
"xWindowsUpdate",
};
// use a hashset when looking for module names, it should be quicker than a string comparison
s_knownModuleTags = new HashSet<string>(StringComparer.OrdinalIgnoreCase)
{
"CrescendoBuilt",
};
s_uniqueUserIdentifier = GetUniqueIdentifier().ToString();
}
}
/// <summary>
/// Determine whether the environment variable is set and how.
/// </summary>
/// <param name="name">The name of the environment variable.</param>
/// <param name="defaultValue">If the environment variable is not set, use this as the default value.</param>
/// <returns>A boolean representing the value of the environment variable.</returns>
private static bool GetEnvironmentVariableAsBool(string name, bool defaultValue)
{
var str = Environment.GetEnvironmentVariable(name);
if (string.IsNullOrEmpty(str))
{
return defaultValue;
}
var boolStr = str.AsSpan();
if (boolStr.Length == 1)
{
if (boolStr[0] == '1')
{
return true;
}
if (boolStr[0] == '0')
{
return false;
}
}
if (boolStr.Length == 3 &&
(boolStr[0] == 'y' || boolStr[0] == 'Y') &&
(boolStr[1] == 'e' || boolStr[1] == 'E') &&
(boolStr[2] == 's' || boolStr[2] == 'S'))
{
return true;
}
if (boolStr.Length == 2 &&
(boolStr[0] == 'n' || boolStr[0] == 'N') &&
(boolStr[1] == 'o' || boolStr[1] == 'O'))
{
return false;
}
if (boolStr.Length == 4 &&
(boolStr[0] == 't' || boolStr[0] == 'T') &&
(boolStr[1] == 'r' || boolStr[1] == 'R') &&
(boolStr[2] == 'u' || boolStr[2] == 'U') &&
(boolStr[3] == 'e' || boolStr[3] == 'E'))
{
return true;
}
if (boolStr.Length == 5 &&
(boolStr[0] == 'f' || boolStr[0] == 'F') &&
(boolStr[1] == 'a' || boolStr[1] == 'A') &&
(boolStr[2] == 'l' || boolStr[2] == 'L') &&
(boolStr[3] == 's' || boolStr[3] == 'S') &&
(boolStr[4] == 'e' || boolStr[4] == 'E'))
{
return false;
}
return defaultValue;
}
/// <summary>
/// Send module load telemetry as a metric.
/// For modules we send the module name (if allowed), and the version.
/// Some modules (CIM) will continue use the string alternative method.
/// </summary>
/// <param name="telemetryType">The type of telemetry that we'll be sending.</param>
/// <param name="moduleInfo">The module to report. If it is not allowed, then it is set to 'anonymous'.</param>
internal static void SendModuleTelemetryMetric(TelemetryType telemetryType, PSModuleInfo moduleInfo)
{
if (!CanSendTelemetry)
{
return;
}
// Package up the module name, version, and known tags as a metric.
// Note that the allowed tags will be a comma separated list which will need to
// be handled in the telemetry query.
try
{
string allowedModuleName = GetModuleName(moduleInfo.Name);
string allowedModuleVersion = allowedModuleName == Anonymous ? AnonymousVersion : moduleInfo.Version?.ToString();
var allowedModuleTags = moduleInfo.Tags.Where(t => s_knownModuleTags.Contains(t)).Distinct();
string allowedModuleTagString = allowedModuleTags.Any() ? string.Join(',', allowedModuleTags) : NoTag;
s_telemetryClient.
GetMetric(new MetricIdentifier(string.Empty, telemetryType.ToString(), "uuid", "SessionId", "ModuleName", "Version", "Tag")).
TrackValue(metricValue: 1.0, s_uniqueUserIdentifier, s_sessionId, allowedModuleName, allowedModuleVersion, allowedModuleTagString);
}
catch
{
// Ignore errors.
}
}
/// <summary>
/// Send module load telemetry as a metric.
/// For modules we send the module name (if allowed), and the version.
/// Some modules (CIM) will continue use the string alternative method.
/// </summary>
/// <param name="telemetryType">The type of telemetry that we'll be sending.</param>
/// <param name="moduleName">The module name to report. If it is not allowed, then it is set to 'anonymous'.</param>
internal static void SendModuleTelemetryMetric(TelemetryType telemetryType, string moduleName)
{
if (!CanSendTelemetry)
{
return;
}
try
{
string allowedModuleName = GetModuleName(moduleName);
s_telemetryClient.GetMetric(telemetryType.ToString(), "uuid", "SessionId", "ModuleName", "Version").TrackValue(metricValue: 1.0, s_uniqueUserIdentifier, s_sessionId, allowedModuleName, AnonymousVersion);
}
catch
{
// Ignore errors.
}
}
/// <summary>
/// Send telemetry as a metric.
/// </summary>
/// <param name="metricId">The type of telemetry that we'll be sending.</param>
/// <param name="data">The specific details about the telemetry.</param>
internal static void SendTelemetryMetric(TelemetryType metricId, string data)
{
if (!CanSendTelemetry)
{
return;
}
// These should be handled by SendModuleTelemetryMetric.
Debug.Assert(metricId != TelemetryType.ModuleLoad, "ModuleLoad should be handled by SendModuleTelemetryMetric.");
Debug.Assert(metricId != TelemetryType.WinCompatModuleLoad, "WinCompatModuleLoad should be handled by SendModuleTelemetryMetric.");
string metricName = metricId.ToString();
try
{
switch (metricId)
{
case TelemetryType.ApplicationType:
case TelemetryType.PowerShellCreate:
case TelemetryType.RemoteSessionOpen:
case TelemetryType.ExperimentalEngineFeatureActivation:
case TelemetryType.ExperimentalEngineFeatureDeactivation:
case TelemetryType.ExperimentalFeatureUse:
s_telemetryClient.GetMetric(metricName, "uuid", "SessionId", "Detail").TrackValue(metricValue: 1.0, s_uniqueUserIdentifier, s_sessionId, data);
break;
case TelemetryType.ExperimentalModuleFeatureActivation:
case TelemetryType.ExperimentalModuleFeatureDeactivation:
string experimentalFeatureName = GetExperimentalFeatureName(data);
s_telemetryClient.GetMetric(metricName, "uuid", "SessionId", "Detail").TrackValue(metricValue: 1.0, s_uniqueUserIdentifier, s_sessionId, experimentalFeatureName);
break;
}
}
catch
{
// do nothing, telemetry can't be sent
// don't send the panic telemetry as if we have failed above, it will likely fail here.
}
}
/// <summary>
/// Send additional information about an experimental feature as it is used.
/// </summary>
/// <param name="featureName">The name of the experimental feature.</param>
/// <param name="detail">The details about the experimental feature use.</param>
internal static void SendExperimentalUseData(string featureName, string detail)
{
if (!CanSendTelemetry)
{
return;
}
ApplicationInsightsTelemetry.SendTelemetryMetric(TelemetryType.ExperimentalFeatureUse, string.Join(":", featureName, detail));
}
// Get the experimental feature name. If we can report it, we'll return the name of the feature, otherwise, we'll return "anonymous"
private static string GetExperimentalFeatureName(string featureNameToValidate)
{
// An experimental feature in a module is guaranteed to start with the module name
// we can strip out the text past the last '.' as the text before that will be the ModuleName
int lastDotIndex = featureNameToValidate.LastIndexOf('.');
string moduleName = featureNameToValidate.Substring(0, lastDotIndex);
if (s_knownModules.Contains(moduleName))
{
return featureNameToValidate;
}
return Anonymous;
}
// Get the module name. If we can report it, we'll return the name, otherwise, we'll return "anonymous"
private static string GetModuleName(string moduleNameToValidate)
{
if (s_knownModules.Contains(moduleNameToValidate))
{
return moduleNameToValidate;
}
return Anonymous;
}
/// <summary>
/// Create the startup payload and send it up.
/// This is done only once during for the console host.
/// </summary>
/// <param name="mode">The "mode" of the startup.</param>
/// <param name="parametersUsed">The parameter bitmap used when starting.</param>
internal static void SendPSCoreStartupTelemetry(string mode, double parametersUsed)
{
// Check if we already sent startup telemetry
if (Interlocked.CompareExchange(ref s_startupEventSent, 1, 0) == 1)
{
return;
}
if (!CanSendTelemetry)
{
return;
}
// This is the payload which reports the startup information of OS and shell details.
var properties = new Dictionary<string, string>();
// This is the payload for the parameter data which is sent as a metric.
var parameters = new Dictionary<string, double>();
// The variable POWERSHELL_DISTRIBUTION_CHANNEL is set in our docker images and
// by various other environments. This allows us to track the actual docker OS as
// OSDescription provides only "linuxkit" which has limited usefulness.
var channel = Environment.GetEnvironmentVariable("POWERSHELL_DISTRIBUTION_CHANNEL");
// Construct the payload for the OS and shell details.
properties.Add("SessionId", s_sessionId);
properties.Add("UUID", s_uniqueUserIdentifier);
properties.Add("GitCommitID", PSVersionInfo.GitCommitId);
properties.Add("OSDescription", RuntimeInformation.OSDescription);
properties.Add("RuntimeIdentifier", RuntimeInformation.RuntimeIdentifier);
properties.Add("OSChannel", string.IsNullOrEmpty(channel) ? "unknown" : channel);
properties.Add("StartMode", string.IsNullOrEmpty(mode) ? "unknown" : mode);
// Construct the payload for the parameters used.
parameters.Add("Param", parametersUsed);
try
{
s_telemetryClient.TrackEvent("ConsoleHostStartup", properties, parameters);
}
catch
{
// do nothing, telemetry cannot be sent
}
}
/// <summary>
/// Try to read the file and collect the guid.
/// </summary>
/// <param name="telemetryFilePath">The path to the telemetry file.</param>
/// <param name="id">The newly created id.</param>
/// <returns>
/// The method returns a bool indicating success or failure of creating the id.
/// </returns>
private static bool TryGetIdentifier(string telemetryFilePath, out Guid id)
{
if (File.Exists(telemetryFilePath))
{
// attempt to read the persisted identifier
const int GuidSize = 16;
byte[] buffer = new byte[GuidSize];
try
{
using (FileStream fs = new FileStream(telemetryFilePath, FileMode.Open, FileAccess.Read))
{
// if the read is invalid, or wrong size, we return it
int n = fs.Read(buffer, 0, GuidSize);
if (n == GuidSize)
{
// it's possible this could through
id = new Guid(buffer);
if (id != Guid.Empty)
{
return true;
}
}
}
}
catch
{
// something went wrong, the file may not exist or not have enough bytes, so return false
}
}
id = Guid.Empty;
return false;
}
/// <summary>
/// Try to create a unique identifier and persist it to the telemetry.uuid file.
/// </summary>
/// <param name="telemetryFilePath">The path to the persisted telemetry.uuid file.</param>
/// <returns>
/// The method node id.
/// </returns>
private static Guid CreateUniqueIdentifierAndFile(string telemetryFilePath)
{
// one last attempt to retrieve before creating incase we have a lot of simultaneous entry into the mutex.
Guid id = Guid.Empty;
if (TryGetIdentifier(telemetryFilePath, out id))
{
return id;
}
// The directory may not exist, so attempt to create it
// CreateDirectory will simply return the directory if exists
bool attemptFileCreation = true;
try
{
Directory.CreateDirectory(Path.GetDirectoryName(telemetryFilePath));
}
catch
{
// There was a problem in creating the directory for the file, do not attempt to create the file.
// We don't send telemetry here because there are valid reasons for the directory to not exist
// and not be able to be created.
attemptFileCreation = false;
}
// If we were able to create the directory, try to create the file,
// if this fails we will send telemetry to indicate this and then use the default identifier.
if (attemptFileCreation)
{
try
{
id = Guid.NewGuid();
File.WriteAllBytes(telemetryFilePath, id.ToByteArray());
return id;
}
catch
{
// another bit of telemetry to notify us about a problem with saving the unique id.
s_telemetryClient.GetMetric(_telemetryFailure, "Detail").TrackValue(1, "saveuuid");
}
}
// all attempts to create an identifier have failed, so use the default node id.
id = _defaultNodeIdentifier;
return id;
}
/// <summary>
/// Retrieve the unique identifier from the persisted file, if it doesn't exist create it.
/// Generate a guid which will be used as the UUID.
/// </summary>
/// <returns>A guid which represents the unique identifier.</returns>
private static Guid GetUniqueIdentifier()
{
// Try to get the unique id. If this returns false, we'll
// create/recreate the telemetry.uuid file to persist for next startup.
Guid id = Guid.Empty;
string uuidPath = Path.Join(Platform.CacheDirectory, "telemetry.uuid");
if (TryGetIdentifier(uuidPath, out id))
{
return id;
}
// Multiple processes may start simultaneously so we need a system wide
// way to control access to the file in the case (although remote) when we have
// simultaneous shell starts without the persisted file which attempt to create the file.
try
{
// CreateUniqueIdentifierAndFile shouldn't throw, but the mutex might
using var m = new Mutex(true, "CreateUniqueUserId");
m.WaitOne();
try
{
return CreateUniqueIdentifierAndFile(uuidPath);
}
finally
{
m.ReleaseMutex();
}
}
catch (Exception)
{
// Any problem in generating a uuid will result in no telemetry being sent.
// Try to send the failure in telemetry, but it will have no unique id.
s_telemetryClient.GetMetric(_telemetryFailure, "Detail").TrackValue(1, "mutex");
}
// something bad happened, turn off telemetry since the unique id wasn't set.
CanSendTelemetry = false;
return id;
}
}
}
```
|
This is a list of awards, nominations, recognitions and achievements received by Daniel Padilla during his career.
International Awards
100 Asian Heartthrobs
Kids' Choice Awards
The Nickelodeon Kids' Choice Awards, also known as the KCAs or Kids Choice Awards, is an annual awards show that airs on the Nickelodeon cable channel, which is usually held on a Saturday night in late March or early April, that honors the year's biggest television, movie, and music acts, as voted by Nickelodeon viewers.
Face of the Year Awards
Independent Critics
World Music Awards
The World Music Awards honours the best-selling most popular recording artists from every continent. The World Music Awards are presented on sales merit and voted by the public on the Internet. There is no jury involved and the Awards truly reflect the most popular artists as they are determined by the actual fans who vote and buy the records.
Music
ASAP 24k Gold Awards
ASAP 8th Platinum Circle Awards
Awit Awards
The Awit Awards is an expression of the Filipino's undying passion for music - music etched in every Filipino's heart. Awit Awards is a prestigious award-giving body, spearheaded by PARI (The Philippine Association of The Record Industry, INC.), that gives recognition to Filipino performing artists and people behind the making of Filipino recorded music.
Himig Handog
Myx Music Awards
The MYX Music Awards is an accolade presented by the cable channel Myx to honor the biggest hitmakers in the Philippines. The winners in 17 major categories decided via SMS text messaging by 2010 it is 60% fan votes through internet and 40% artists votes.
PMPC Star Awards for Music
MOR Pinoy Music Awards
ABS-CBN’s FM radio station MOR 101.9 annually celebrate Original Pilipino Music and recognized some of the best music artists in the industry. Winners are determined based on total votes from texters, MOR Pinoy Music Awards committee, and select panel of judges from the Organisasyon ng Pilipinong Mang-aawit (OPM).
Film and television
Film Development Council of the Philippines
FAMAS Awards
FAMAS Awards is the annual honors given by the Filipino Academy of Movie Arts and Sciences (FAMAS), an organization composed of prize-winning writers and movie columnists, for achievements in the Philippine cinema for a calendar year.
GMMSF Box-Office Entertainment Awards
Luna Awards
Metro Manila Film Festival
PMPC Star Award for Movie
PMPC Star Awards for Television
Young Critics Circle
Popularity and Commerciality
ASAP Pop Viewers' Choice Awards
ASAP's Pop Teen Choice Awards
Anak TV Awards
Anak TV Awards is recognition for personalities and programs that are certified child-friendly as voted by parents, teachers, non-government organizations, and other sectors of society.
EdukCircle Awards
The EdukCircle recognizes exemplary performances of personalities in news and entertainment whose professional works have made significant contributions to Philippine music, film and television.
FMTM Awards for TV Entertainment Section
Push Awards
Urduja Heritage Film Awards
Urduja Film Festival is an annual undertaking to promote independent Films in Northern Luzon: Region 1, 2, 3 and CAR. It envisioned to hone the artistic and creative minds of the populace in the make-believe artistry of the celluloid world. The winners selected by jury which is headed by a Famas member, and composed of film critics both from the indie and mainstream.
Accolades From Media
ALTA Media Icon Awards
The University of Perpetual Help System DALTA, in celebration of its Founding Anniversary, recognized outstanding individuals, programs, and other entities in the field of mass media. The winners were chosen by college students of University of Perpetual Help - Las Piñas while a separate screening committee composed of esteemed administrators and educators judged the nominees for the Media Icon awards.
Candy Readers Choice Awards
Candy Style Awards
EDDYS Entertainment Editors' Awards
Organized by the Society of Philippine Entertainment Editors, the Eddys aims to encourage local filmmakers, producers, writers, and actors to continue pursuing their passion of creating films that mirror the realities of our society.
Kakulay Teen Choice Awards
PEP List Awards
The PEP List Year is the only audited award-giving body given by Philippine Entertainment Portal in the Philippines where outstanding celebrities and showbiz personalities are recognized for their contribution to the industry for the past year. The PEPsters’ Choice winners are the celebrities with the most number of public votes.
Rappler Social Media Awards
RAWR Awards
Star Cinema Online Awards
StarStudio Celebrity Style Awards
Yahoo! Philippines OMG! Awards
Yes! Magazine
Miscellaneous
Star Magic Awards
Star Magic Sportfest
LionhearTV
NBS Fan Favorites
Inside Showbiz People's Choice Awards
VP Choice Awards
References
Awards
Lists of awards received by Filipino musician
Lists of awards received by Filipino actor
|
```python
"""Handle reporting from within tox."""
from __future__ import annotations
import locale
import logging
import os
import sys
from contextlib import contextmanager
from io import BytesIO, TextIOWrapper
from pathlib import Path
from threading import Thread, current_thread, local
from threading import enumerate as enumerate_threads
from typing import IO, ClassVar, Iterator, Tuple
from colorama import Fore, Style, init
LEVELS = {
0: logging.CRITICAL,
1: logging.ERROR,
2: logging.WARNING,
3: logging.INFO,
4: logging.DEBUG,
5: logging.NOTSET,
}
MAX_LEVEL = max(LEVELS.keys())
LOGGER = logging.getLogger()
OutErr = Tuple[TextIOWrapper, TextIOWrapper]
class _LogThreadLocal(local):
"""A thread local variable that inherits values from its parent."""
_ident_to_data: ClassVar[dict[int | None, str]] = {}
def __init__(self, out_err: OutErr) -> None:
self.name = self._ident_to_data.get(getattr(current_thread(), "parent_ident", None), "ROOT")
self.out_err = out_err
@staticmethod
@contextmanager
def patch_thread() -> Iterator[None]:
def new_start(self: Thread) -> None: # need to patch this
self.parent_ident = current_thread().ident # type: ignore[attr-defined]
old_start(self)
old_start, Thread.start = Thread.start, new_start # type: ignore[method-assign]
try:
yield
finally:
Thread.start = old_start # type: ignore[method-assign]
@property
def name(self) -> str:
return self._name
@name.setter
def name(self, value: str) -> None:
self._name = value
for ident in self._ident_to_data.keys() - {t.ident for t in enumerate_threads()}:
self._ident_to_data.pop(ident)
self._ident_to_data[current_thread().ident] = value
@contextmanager
def with_name(self, name: str) -> Iterator[None]:
previous, self.name = self.name, name
try:
yield
finally:
self.name = previous
@contextmanager
def suspend_out_err(self, yes: bool, out_err: OutErr | None = None) -> Iterator[OutErr]: # noqa: FBT001
previous_out, previous_err = self.out_err
try:
if yes:
if out_err is None: # pragma: no branch
out = self._make(f"out-{self.name}", previous_out)
err = self._make(f"err-{self.name}", previous_err)
else:
out, err = out_err # pragma: no cover
self.out_err = out, err
yield self.out_err
finally:
if yes:
self.out_err = previous_out, previous_err
@staticmethod
def _make(prefix: str, based_of: TextIOWrapper) -> TextIOWrapper:
return TextIOWrapper(NamedBytesIO(f"{prefix}-{based_of.name}"), encoding=locale.getpreferredencoding(False)) # noqa: FBT003
class NamedBytesIO(BytesIO):
def __init__(self, name: str) -> None:
super().__init__()
self.name: str = name
class ToxHandler(logging.StreamHandler): # type: ignore[type-arg] # is generic but at runtime doesn't take a type arg
# """Controls tox output."""
def __init__(self, level: int, is_colored: bool, out_err: OutErr) -> None: # noqa: FBT001
self._local = _LogThreadLocal(out_err)
super().__init__(stream=self.stdout)
if is_colored:
init()
self._is_colored = is_colored
self._setup_level(is_colored, level)
def _setup_level(self, is_colored: bool, level: int) -> None: # noqa: FBT001
self.setLevel(level)
self._error_formatter = self._get_formatter(logging.ERROR, level, is_colored)
self._warning_formatter = self._get_formatter(logging.WARNING, level, is_colored)
self._remaining_formatter = self._get_formatter(logging.INFO, level, is_colored)
@contextmanager
def with_context(self, name: str) -> Iterator[None]:
"""
Set a new tox environment context.
:param name: the name of the tox environment
"""
with self._local.with_name(name):
yield
@property
def name(self) -> str: # type: ignore[override]
""":return: the current tox environment name"""
return self._local.name # pragma: no cover
@property
def stdout(self) -> TextIOWrapper:
""":return: the current standard output"""
return self._local.out_err[0]
@property
def stderr(self) -> TextIOWrapper:
""":return: the current standard error"""
return self._local.out_err[1]
@property # type: ignore[override]
def stream(self) -> IO[str]:
""":return: the current stream to write to (alias for the current standard output)"""
return self.stdout
@stream.setter
def stream(self, value: IO[str]) -> None:
"""Ignore anyone changing this."""
@contextmanager
def suspend_out_err(self, yes: bool, out_err: OutErr | None = None) -> Iterator[OutErr]: # noqa: FBT001
with self._local.suspend_out_err(yes, out_err) as out_err_res:
yield out_err_res
def write_out_err(self, out_err: tuple[bytes, bytes]) -> None:
# read/write through the buffer as we collect bytes to print bytes (no transcoding needed)
self.stdout.buffer.write(out_err[0])
self.stderr.buffer.write(out_err[1])
@staticmethod
def _get_formatter(level: int, enabled_level: int, is_colored: bool) -> logging.Formatter: # noqa: FBT001
color: int | str = ""
if is_colored:
if level >= logging.ERROR:
color = Fore.RED
elif level >= logging.WARNING:
color = Fore.CYAN
else:
color = Fore.WHITE
def _c(val: int) -> str:
return str(val) if color else ""
fmt = f"{color} %(message)s{_c(Style.RESET_ALL)}"
if enabled_level <= logging.DEBUG:
fmt = (
f"{_c(Fore.GREEN)} %(relativeCreated)d %(levelname).1s{_c(Style.RESET_ALL)}{fmt}{_c(Style.DIM)}"
f" [%(pathname)s:%(lineno)d]{_c(Style.RESET_ALL)}"
)
fmt = f"{_c(Style.BRIGHT)}{_c(Fore.MAGENTA)}%(env_name)s:{_c(Style.RESET_ALL)}" + fmt
return logging.Formatter(fmt)
def format(self, record: logging.LogRecord) -> str:
# shorten the pathname to start from within the site-packages folder
record.env_name = "root" if self._local.name is None else self._local.name
basename = str(Path(record.pathname).parent)
len_sys_path_match = max((len(p) for p in sys.path if basename.startswith(p)), default=-1)
record.pathname = record.pathname[len_sys_path_match + 1 :]
if record.levelno >= logging.ERROR:
return self._error_formatter.format(record)
if record.levelno >= logging.WARNING:
if self._is_colored and record.msg == "%s%s> %s" and record.args:
record.msg = f"%s{Style.NORMAL}%s{Style.DIM}>{Style.RESET_ALL} %s"
return self._warning_formatter.format(record)
return self._remaining_formatter.format(record)
@staticmethod
@contextmanager
def patch_thread() -> Iterator[None]:
with _LogThreadLocal.patch_thread():
yield
def update_verbosity(self, verbosity: int) -> None:
level = _get_level(verbosity)
LOGGER.setLevel(level)
self._setup_level(self._is_colored, level)
def setup_report(verbosity: int, is_colored: bool) -> ToxHandler: # noqa: FBT001
_clean_handlers(LOGGER)
level = _get_level(verbosity)
LOGGER.setLevel(level)
for name in ("distlib.util", "filelock"):
logger = logging.getLogger(name)
logger.disabled = True
out_err: OutErr = (sys.stdout, sys.stderr) # type: ignore[assignment]
handler = ToxHandler(level, is_colored, out_err)
LOGGER.addHandler(handler)
logging.debug("setup logging to %s on pid %s", logging.getLevelName(level), os.getpid())
return handler
def _get_level(verbosity: int) -> int:
return LEVELS[min(verbosity, MAX_LEVEL)]
def _clean_handlers(log: logging.Logger) -> None:
for log_handler in list(log.handlers): # remove handlers of libraries
log.removeHandler(log_handler)
class HandledError(RuntimeError):
"""Error that has been handled so no need for stack trace."""
```
|
```c++
//
// All rights reserved.
//
#include "pch.h"
extern __abi_Module* __abi_module;
namespace Platform {
namespace Details {
//Forward declarations from vccorlib120.dll
void STDMETHODCALLTYPE RunServer(_In_ Microsoft::WRL::Details::ModuleBase**, __abi_Module** abiModule, _In_z_ const ::default::char16*);
__declspec(no_refcount) ::Platform::Object^ STDMETHODCALLTYPE RegisterFactories(
_In_ Microsoft::WRL::Details::ModuleBase**,
__abi_Module** abiModule,
_In_opt_ ::Platform::Module::UnregisterCallback callback);
} // namespace Details
void STDMETHODCALLTYPE Module::RunServer(_In_opt_z_ const ::default::char16* serverName)
{
Platform::Details::RunServer(&Microsoft::WRL::Details::ModuleBase::module_, &__abi_module, serverName);
}
__declspec(no_refcount) ::Platform::Object^ STDMETHODCALLTYPE Module::RegisterFactories(_In_opt_ ::Platform::Module::UnregisterCallback callback)
{
return Platform::Details::RegisterFactories(&Microsoft::WRL::Details::ModuleBase::module_, &__abi_module, callback);
}
} // namespace Platform
```
|
```xml
import * as React from 'react';
import { Route, HashRouter as Router, Switch } from 'react-router-dom';
import { App } from './app';
import { About, MembersPage, MemberPageContainer, Login } from './components';
export const AppRouter: React.StatelessComponent<{}> = () => {
return (
<Router>
<div className="container-fluid">
<Route component={App} />
<Switch>
<Route exact path="/" component={Login} />
<Route path="/about" component={About} />
<Route path="/members" component={MembersPage} />
<Route exact path="/member" component={MemberPageContainer} />
<Route path="/member/:id" component={MemberPageContainer} />
</Switch>
</div>
</Router>
);
}
```
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.