text
stringlengths 1
22.8M
|
|---|
```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 tape = require( 'tape' );
var isnan = require( '@stdlib/math/base/assert/is-nan' );
var NINF = require( '@stdlib/constants/float64/ninf' );
var skewness = require( './../lib' );
// FIXTURES //
var data = require( './fixtures/julia/data.json' );
// TESTS //
tape( 'main export is a function', function test( t ) {
t.ok( true, __filename );
t.strictEqual( typeof skewness, 'function', 'main export is a function' );
t.end();
});
tape( 'if provided `NaN` for `sigma`, the function returns `NaN`', function test( t ) {
var sigma = skewness( NaN );
t.equal( isnan( sigma ), true, 'returns NaN' );
t.end();
});
tape( 'if provided a scale parameter `sigma` that is not a nonnegative number, the function returns `NaN`', function test( t ) {
var sigma;
sigma = skewness( -1.0 );
t.equal( isnan( sigma ), true, 'returns NaN' );
sigma = skewness( NINF );
t.equal( isnan( sigma ), true, 'returns NaN' );
t.end();
});
tape( 'the function returns the skewness of a Rayleigh distribution', function test( t ) {
var expected;
var sigma;
var i;
var y;
expected = data.expected;
sigma = data.sigma;
for ( i = 0; i < expected.length; i++ ) {
y = skewness( sigma[i] );
t.equal( y, expected[i], 'sigma: '+sigma[i]+', y: '+y+', expected: '+expected[i] );
}
t.end();
});
```
|
The Oberliga Niederrhein () is a German amateur football division administered by the Football Association of the Lower Rhine, one of the 21 German state football associations. Being the top flight of the Lower Rhine state association, the Oberliga is currently a level 5 division of the German football league system.
History
Until 1956, a total of ten Landesliga divisions, among them three divisions of Landesliga Niederrhein were the highest amateur level in the state of North Rhine-Westphalia. After the regular season, the ten Landesliga champions had to play-off for two promotion spots to 2. Oberliga West. Upon decision of the superior Western German football association, in 1956 four divisions of Verbandsliga were introduced, one of them being the Verbandsliga Niederrhein. These four divisions of Verbandsliga still exist today, with the Verbandsliga Niederrhein in 2008 renamed to Niederrheinliga and later in 2012 renamed to Oberliga Niederrhein.
The Verbandsliga Niederrhein was upon its inception the third tier of the German football league system. The league champion had to play-off the winners of the Verbandsliga Mittelrhein and the two divisions of Verbandsliga Westfalen for two promotion spots to the 2nd Oberliga West. Upon introduction of the Bundesliga in 1963, the league was set below the new Regionalliga West but remained as the third tier. With the exception of 1963 and 1974, when the league systems were changed, the champion continued to have the opportunity to win promotion. In 1964, 1970, 1976 and 1978, the league winner failed to do so; in every other season they were successful. In 1977, the runner-up was promoted as Fortuna Düsseldorf II was ineligible.
The league operated with 16 clubs throughout most of its existence, only occasionally altering the numbers to balance out promotion and relegation.
With the replacement of the Regionalliga by the 2nd Bundesliga Nord in 1974, the league champion had to gain promotion through a play-off system with the winners of the other tier-three leagues in northern Germany.
In 1978, the Amateur-Oberliga Nordrhein was formed as the third tier of football in the region compromising the area of the Verbandsliga Niederrhein and Verbandsliga Mittelrhein. One of the main reasons for this move was to provide direct promotion for the tier-three champions again. The clubs placed one to seven in the league were admitted to the new Oberliga, these being:
Olympia Bocholt
Rot-Weiß Oberhausen
VfB Remscheid
TuS Xanten
1. FC Viersen
ASV Wuppertal
RSV Meerbeck
Verbandsliga Niederrhein, together with Mittelrhein, remained as a feeder league for the new Oberliga, but now as a tier-four competition. Its champion, and in some years the runners-up, were directly promoted to the Oberliga Nordrhein.
With the re-introduction of the Regionalligen in 1994, the league slipped to tier five but remained unchanged otherwise.
From 2008, with the introduction of the 3rd Liga, the Verbandsliga Niederrhein was downgraded to the sixth tier. The league above it was then the new NRW-Liga, a merger of the Oberligen Nordrhein and Westfalen. The champion of the Verbandsliga continued to be directly promoted but since there were now four Verbandsligen below the Oberliga, the runners-up did not have the option of promotion unless the league winner declined.
The NRW-Liga existed for only for seasons before it was disbanded again in the wake of the Regionalliga West becoming a league for clubs from North Rhine-Westphalia only. While the Oberliga Westfalen was established again in one half of the state the regions of Lower Rhine and Middle Rhine opted to elevate the Niederrheinliga and Mittelrheinliga to Oberliga status instead of reforming the Oberliga Nordrhein.
League champions
Source:
The 2013–14 champions SV Hönnepel-Niedermörmter declined promotion; FC Kray were promoted instead.
The 2020–21 season was curtailed owing to the COVID-19 pandemic in Germany. There was no champion or promotion.
Clubs in the Oberliga Niederrhein since 2012
The final league placings of all clubs in the league since receiving Oberliga status in 2012:
Key
Founding members of the league
From the Landesliga Gruppe 1:
TSV Eller 04
VfL Benrath
Grün-Weiß Viersen
SpVgg Gräfrath
TuRU Düsseldorf
From the Landesliga Gruppe 2:
FV Duisburg 08
TuS Lintfort
SpVgg Hochheide
Homberger SV
SC Kleve
From the Landesliga Gruppe 3:
TuS Duisburg 48/99
Sterkrade 06/07
BV Osterfeld
1. FC Mülheim-Styrum
SV Borbeck
TSG Karnap
References
Sources
Deutschlands Fußball in Zahlen, An annual publication with tables and results from the Bundesliga to Verbandsliga/Landesliga. DSFS.
Kicker Almanach, The yearbook on German football from Bundesliga to Oberliga, since 1937. Kicker Sports Magazine.
Die Deutsche Liga-Chronik 1945–2005 History of German football from 1945 to 2005 in tables. DSFS. 2006.
External links
Das deutsche Fußball-Archiv Historic German league tables
Niederrhein Football Association (FVN)
Oberliga (football)
Football competitions in North Rhine-Westphalia
1956 establishments in Germany
|
```yaml
id: IfThenElse-Test
version: -1
name: IfThenElse-Test
starttaskid: "0"
tasks:
"0":
id: "0"
taskid: 3ee1e64e-959b-4ad7-898d-925fef501d8c
type: start
task:
id: 3ee1e64e-959b-4ad7-898d-925fef501d8c
version: -1
name: ""
iscommand: false
brand: ""
nexttasks:
'#none#':
- "1"
separatecontext: false
view: |-
{
"position": {
"x": 695,
"y": 50
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
"1":
id: "1"
taskid: ff4b93cf-43cd-4166-8765-cc045ed3a30e
type: regular
task:
id: ff4b93cf-43cd-4166-8765-cc045ed3a30e
version: -1
name: DeleteContext
script: DeleteContext
type: regular
iscommand: true
brand: ""
nexttasks:
'#none#':
- "7"
- "12"
scriptarguments:
all:
simple: "yes"
separatecontext: false
view: |-
{
"position": {
"x": 695,
"y": 195
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
"3":
id: "3"
taskid: f2da7cfd-f707-427d-8b3f-4fa07c7a21cf
type: title
task:
id: f2da7cfd-f707-427d-8b3f-4fa07c7a21cf
version: -1
name: Test Done
type: title
iscommand: false
brand: ""
description: ''
nexttasks:
'#none#':
- "22"
- "23"
separatecontext: false
view: |-
{
"position": {
"x": 695,
"y": 1185
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
isoversize: false
isautoswitchedtoquietmode: false
"5":
id: "5"
taskid: 77e0e67a-b609-4e43-8735-04374951b4f5
type: regular
task:
id: 77e0e67a-b609-4e43-8735-04374951b4f5
version: -1
name: Set inputA in context
description: Sets a value into the context with the given context key
scriptName: Set
type: regular
iscommand: false
brand: ""
nexttasks:
'#none#':
- "8"
scriptarguments:
append:
simple: "false"
key:
simple: inputA
value:
simple: abc
separatecontext: false
continueonerrortype: ""
view: |-
{
"position": {
"x": 265,
"y": 515
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
"6":
id: "6"
taskid: 05637b1c-4786-4b10-879b-8b369c372125
type: regular
task:
id: 05637b1c-4786-4b10-879b-8b369c372125
version: -1
name: Set inputB in context
description: Sets a value into the context with the given context key
scriptName: Set
type: regular
iscommand: false
brand: ""
nexttasks:
'#none#':
- "13"
scriptarguments:
append:
simple: "false"
key:
simple: inputB
value:
simple: xyz
separatecontext: false
continueonerrortype: ""
view: |-
{
"position": {
"x": 1125,
"y": 515
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
"7":
id: "7"
taskid: 81dc6b75-eb76-47ef-89d9-b529d765f76a
type: title
task:
id: 81dc6b75-eb76-47ef-89d9-b529d765f76a
version: -1
name: Test 'If-Then'
type: title
iscommand: false
brand: ""
description: ''
nexttasks:
'#none#':
- "5"
separatecontext: false
continueonerrortype: ""
view: |-
{
"position": {
"x": 265,
"y": 370
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
"8":
id: "8"
taskid: a709a128-e029-4b58-89f1-4848992ce632
type: regular
task:
id: a709a128-e029-4b58-89f1-4848992ce632
version: -1
name: Set outputA using transformer
description: Sets a value into the context with the given context key
scriptName: Set
type: regular
iscommand: false
brand: ""
nexttasks:
'#none#':
- "9"
scriptarguments:
append:
simple: "false"
key:
simple: outputA
value:
complex:
root: inputA
transformers:
- operator: If-Then-Else
args:
else:
value:
simple: failure
equals:
value:
simple: abc
then:
value:
simple: success
separatecontext: false
continueonerrortype: ""
view: |-
{
"position": {
"x": 265,
"y": 690
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
"9":
id: "9"
taskid: 6cdf4388-7671-4f7f-828d-cf0bd81b441d
type: condition
task:
id: 6cdf4388-7671-4f7f-828d-cf0bd81b441d
version: -1
name: Does outputA equal 'success'?
type: condition
iscommand: false
brand: ""
nexttasks:
'#default#':
- "11"
"yes":
- "10"
separatecontext: false
conditions:
- label: "yes"
condition:
- - operator: isEqualString
left:
value:
simple: outputA
iscontext: true
right:
value:
simple: success
continueonerrortype: ""
view: |-
{
"position": {
"x": 265,
"y": 865
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
"10":
id: "10"
taskid: 7b30d750-0f2e-46e8-8205-f73ff1769865
type: title
task:
id: 7b30d750-0f2e-46e8-8205-f73ff1769865
version: -1
name: Success
type: title
iscommand: false
brand: ""
description: ''
nexttasks:
'#none#':
- "3"
separatecontext: false
continueonerrortype: ""
view: |-
{
"position": {
"x": 480,
"y": 1040
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
"11":
id: "11"
taskid: 5f0263e5-bc01-48e7-8502-486bb35d909d
type: title
task:
id: 5f0263e5-bc01-48e7-8502-486bb35d909d
version: -1
name: Failure
type: title
iscommand: false
brand: ""
description: ''
nexttasks:
'#none#':
- "3"
separatecontext: false
continueonerrortype: ""
view: |-
{
"position": {
"x": 50,
"y": 1040
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
"12":
id: "12"
taskid: 565e6969-285e-4d0e-80e9-b56f3a84f2e2
type: title
task:
id: 565e6969-285e-4d0e-80e9-b56f3a84f2e2
version: -1
name: Test 'If-Else'
type: title
iscommand: false
brand: ""
nexttasks:
'#none#':
- "6"
separatecontext: false
view: |-
{
"position": {
"x": 1125,
"y": 370
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
"13":
id: "13"
taskid: f911d8ad-79cf-4465-8362-3456a5481d4e
type: regular
task:
id: f911d8ad-79cf-4465-8362-3456a5481d4e
version: -1
name: Set outputB using transformer
description: Sets a value into the context with the given context key
scriptName: Set
type: regular
iscommand: false
brand: ""
nexttasks:
'#none#':
- "14"
scriptarguments:
append:
simple: "false"
key:
simple: outputB
stringify: {}
value:
complex:
root: inputB
transformers:
- operator: If-Then-Else
args:
else:
value:
simple: success
equals:
value:
simple: abc
then:
value:
simple: failure
separatecontext: false
view: |-
{
"position": {
"x": 1125,
"y": 690
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
"14":
id: "14"
taskid: 6e765cdd-1f71-42b1-8a8d-d2161a53bb2c
type: condition
task:
id: 6e765cdd-1f71-42b1-8a8d-d2161a53bb2c
version: -1
name: Does outputB equal 'success'?
type: condition
iscommand: false
brand: ""
nexttasks:
'#default#':
- "16"
"yes":
- "15"
separatecontext: false
conditions:
- label: "yes"
condition:
- - operator: isEqualString
left:
value:
simple: outputB
iscontext: true
right:
value:
simple: success
view: |-
{
"position": {
"x": 1125,
"y": 865
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
"15":
id: "15"
taskid: c64f232b-feee-4884-874b-5552d9ec56c7
type: title
task:
id: c64f232b-feee-4884-874b-5552d9ec56c7
version: -1
name: Success
type: title
iscommand: false
brand: ""
nexttasks:
'#none#':
- "3"
separatecontext: false
view: |-
{
"position": {
"x": 910,
"y": 1040
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
"16":
id: "16"
taskid: fb7ae356-d214-4d82-8327-fda1c10a03f6
type: title
task:
id: fb7ae356-d214-4d82-8327-fda1c10a03f6
version: -1
name: Failure
type: title
iscommand: false
brand: ""
nexttasks:
'#none#':
- "3"
separatecontext: false
view: |-
{
"position": {
"x": 1340,
"y": 1040
}
}
note: false
timertriggers: []
ignoreworker: false
skipunavailable: false
quietmode: 0
view: |-
{
"linkLabelsPosition": {},
"paper": {
"dimensions": {
"height": 1375,
"width": 1670,
"x": 50,
"y": 50
}
}
}
inputs: []
outputs: []
fromversion: 5.0.0
```
|
KXLF-TV (channel 4) is a television station in Butte, Montana, United States, affiliated with CBS. Owned by the E. W. Scripps Company, it is part of the Montana Television Network, a statewide network of CBS-affiliated stations. KXLF-TV's studios are located on South Montana Street in downtown Butte, and its transmitter is located on XL Heights east of the city.
KXLF-TV operates a semi-satellite in Bozeman, KBZK (channel 7), with studios on Television Way in Bozeman and transmitter atop High Flat, southwest of Four Corners.
History
KXLF-TV was founded on August 14, 1953. It is Montana's oldest television station, and was originally owned by Television Montana, a company largely owned by industry pioneer Ed Craney; it was a sister station to KXLF radio (AM 1370, now KXTL). At the outset, the station operated on channel 6 as a primary NBC affiliate, with some DuMont programming. The NBC affiliation matched its radio sister, which was part of the "Z-Bar Network," a regional Pacific Northwest radio network based in Portland and including affiliates in Spokane, Helena, Great Falls, Missoula, and Bozeman. KXLF added ABC programming in 1955; soon afterward, the station lost DuMont when it shut down.
KXLF-TV's first home was the second floor of a Pay 'n Save food and drug store in downtown Butte along with KXLF radio. However, the studio soon suffered heavy damages because of a burglary to the grocery store downstairs. The burglars cut a hole in the floor of the studio and used the studio camera cable to climb down and gain access to the grocery store. A few months later, the cable was replaced and the studio was up and running for good.
In addition to network programming, in its early years KXLF-TV aired a number of local programs, all of which was produced live in the studio, including shows and commercials. Some of Butte's local shows in the 1950s were The Oldtimer, featuring John Diz, This Afternoon with You, hosted by Darien Carkeet, What's New? hosted by Ed Craney and KXLF the Clown, featuring Wes Haugen, and Shadow Stumpers where viewers called in to identify what object's shadow was on TV.
KXLF-TV moved to channel 4 in October 1956 due to concerns that the concurrent operation of channel 6 stations in Butte and Pocatello would result in interference (channel 4 had previously been used in Butte by KOPR-TV from 1953 to 1954, while channel 6 would return to the air in Butte as KTVM in 1970). The following year was a time of change for the station. A complicated operation saw the transmitter moved on top of a mountain east of Butte, subsequently dubbed XL Heights. The transmitter tower was directly positioned on the Continental Divide, thereby giving the station the moniker "The Continental Divide Station". The new transmitter location made an off-air signal available for KXLJ-TV in Helena (now KTVH-DT) creating the first TV "network" in Montana. Also in 1957, KXLF found a permanent home in the former Chicago, Milwaukee, St. Paul and Pacific Railroad station on Montana Street. The station was built in 1916 and features a clock tower. In the 1970s, the depot became one of Butte's first major restoration projects. It continues to serve as an example of historic restoration. In the late 1990s, KXLF installed a live webcam atop the clock tower, which offers a live view of downtown Butte.
In 1958, KXLF-TV and KXLJ-TV, in association with KFBB-TV in Great Falls, KOOK-TV in Billings (now KTVQ), KID-TV in Idaho Falls, Idaho (now KIDK), and KLIX-TV in Twin Falls, Idaho (now KMVT), formed the Skyline Network. KFBB was later replaced by Great Falls' other station, KRTV. Later that year, the station added a secondary affiliation with CBS; by 1960, CBS was the station's primary network, though NBC was retained on a secondary basis. That year, Craney sold KXLF-AM-TV, along with KXLJ-AM-TV in Helena, to Joe Sample, president of Garryowen Corporation and owner of KOOK-TV, for over $1 million—earning a handsome return on his original investment in KXLF radio in 1929. Sample immediately spun the KXLJ stations off to Helena TV, a local cable TV company; KXLJ-TV (which was renamed KBLL-TV) eventually severed its ties with KXLF and left the Skyline Network.
In March 1966, the Federal Communications Commission (FCC) merged Butte and Missoula into a single television market. KXLF-TV became the CBS affiliate for the merged market; it kept the secondary ABC affiliation but lost NBC to KGVO-TV (now KECI-TV). The Skyline Network shut down on September 30, 1969, after various ownership and affiliation changes at its stations made it difficult for the network to continue operating. The following month, Sample started the Montana Television Network, composed of KXLF-TV, KOOK-TV, and KRTV. In 1970, Sample expanded his Montana network by building KPAX-TV in Missoula, which operated as a semi-satellite of KXLF for several years. KXLF, along with KPAX, became primary ABC affiliates on August 30, 1976; CBS programming was then split between KXLF/KPAX and KGVO-TV/KTVM. This made KXLF one of the few stations to have been a primary affiliate of each of the Big Three television networks.
In 1984, Sample sold the MTN stations to SJL, Inc. for $20 million; KXLF radio was concurrently sold to separate interests. That year, KXLF-TV returned to a primary CBS affiliation; it continued to air ABC in the off-hours (shared with KTVM) until the early 1990s. SJL sold KXLF, KPAX-TV, and KRTV to Evening Post Publishing Company, through its Cordillera Communications subsidiary, for $24 million in 1986.
In 1995, KXLF launched a low-power repeater in Helena, K25EJ (channel 25); on August 22, 2000, that station changed its call letters to KXLH-LP. In 2005, KXLH's operating responsibilities were transferred to sister station KRTV; it now operates as KXLH-LD (channel 9). During the early 2000s, KXLF-TV had a secondary affiliation with UPN; the network shut down in 2006 as part of the formation of The CW, which is seen on a digital subchannel of KXLF and KBZK. After the DTV conversion on June 12, 2009, KXLF was one of more than 10 stations asking for a power increase because of the problems with VHF digital signals, particularly VHF-LO frequencies.
In 1993, Evening Post acquired Bozeman station KCTZ, a separate ABC affiliate associated with KSVI of Billings, and made it a satellite of KXLF-TV; two Cordillera-owned translators, K26DE (channel 26) in Bozeman and K43DU (channel 43) in Butte, then began carrying most of KSVI's programming (including ABC programming), as well as local Bozeman newscasts produced by Cordillera. After KWYB (channel 18) signed on in September 1996 and took the ABC affiliation in the Butte-Bozeman market, K43DU was taken off-the-air (the repeater was sold to Montana State University in 2001 and now carries Montana PBS); on October 31, after K26DE's ABC affiliation ended in advance of the launch of KWYB repeater K28FB (channel 28, now KWYB-LD), KCTZ became a Fox affiliate, and channel 26 became a repeater of KXLF. During this time, channel 7 also took on a secondary affiliation with UPN.
KCTZ dropped Fox on August 21, 2000, saying that the network usually generated lower ratings than the Big Three networks in smaller markets. At that point, the station once again became a satellite of KXLF-TV (though with separate advertising) and changed its call letters to KBZK-TV (the "-TV" suffix was dropped eight days later). Area cable systems then picked up Foxnet for Fox programming after an unsuccessful attempt to pipe in KHMT from Billings; the Butte–Bozeman market would not get another Fox affiliate until KBTZ (channel 24) signed on in 2003.
News operation
KXLF's newscasts at 5:30 p.m. and 10:00 p.m. have long dominated the market, in no small part because they are the only local newscasts in the area. In addition to local news, KXLF produces a noon news segment.
KCTZ produced local Bozeman newscasts while owned by Big Horn Communications; after the station was sold to Cordillera Communications, these newscasts were broadcast on K26DE. Local news returned to KCTZ after the switch to Fox in 1996; however, after channel 7 became KBZK in 2000, the newscasts were canceled and replaced with simulcasts of KXLF's newscasts, retaining a small newsroom in Bozeman to cover stories from the area. In 2007, KBZK returned to producing a separate newscast from its studios in Bozeman.
Current news staff
Donna Kelley – weeknights at 5:30; also executive producer
Notable former on-air staff
Cara Capuano, sports reporter now back with ESPN (previously with FSN).
Stella Inger, Emmy nominated reporter
Pat Kearney (1955–2014), reporter, anchor and news director during his tenure (1981–88), turned local author and historian
Technical information
Subchannels
The stations' digital signals are multiplexed:
Translators
Basin
Boulder
Polaris
References
External links
Montana Television Network
CBS network affiliates
Grit (TV network) affiliates
Ion Television affiliates
Court TV affiliates
Television channels and stations established in 1953
1953 establishments in Montana
XLF-TV
E. W. Scripps Company television stations
|
```css
Property names require American English
Disable resizable property of `textarea`
Use `:not()` to apply/unapply styles
Use attribute selectors with empty links
`:required` and `:optional` pseudo classes
```
|
```javascript
import React from 'react'
import { create as render } from 'react-test-renderer'
import { Box, Flex } from '../src'
import 'jest-styled-components'
const renderJSON = el => render(el).toJSON()
// Box
test('Box renders', () => {
const json = renderJSON(<Box m={2} px={3} />)
expect(json).toMatchSnapshot()
})
test('Box renders with props', () => {
const json = renderJSON(<Box
m={[ 1, 2 ]}
px={[ 1, 2 ]}
width={1}
flex='1 1 auto'
alignSelf='flex-start'
/>)
expect(json).toMatchSnapshot()
expect(json).toHaveStyleRule('width', '100%')
expect(json).toHaveStyleRule('flex', '1 1 auto')
expect(json).toHaveStyleRule('align-self', 'flex-start')
expect(json).toHaveStyleRule('margin', '4px')
})
// Flex
test('Flex renders', () => {
const json = renderJSON(<Flex />)
expect(json).toMatchSnapshot()
expect(json).toHaveStyleRule('display', 'flex')
})
test('Flex renders with props', () => {
const json = renderJSON(
<Flex
flexWrap='wrap'
flexDirection='column'
alignItems='center'
justifyContent='space-between'
/>
)
expect(json).toMatchSnapshot()
expect(json).toHaveStyleRule('flex-wrap', 'wrap')
expect(json).toHaveStyleRule('flex-direction', 'column')
expect(json).toHaveStyleRule('align-items', 'center')
expect(json).toHaveStyleRule('justify-content', 'space-between')
})
test('Flex renders with flexDirection prop', () => {
const json = renderJSON(
<Flex
flexDirection='column'
/>
)
expect(json).toMatchSnapshot()
expect(json).toHaveStyleRule('flex-direction', 'column')
})
test('Flex renders with responsive props', () => {
const json = renderJSON(
<Flex
flexWrap={[ 'wrap', 'nowrap' ]}
flexDirection={[ 'column', 'row' ]}
alignItems={[ 'stretch', 'center' ]}
justifyContent={[ 'space-between', 'center' ]}
/>
)
expect(json).toMatchSnapshot()
})
test('Box accepts a css prop', () => {
const json = renderJSON(
<Box
css={{
outline: '4px solid red'
}}
/>
)
expect(json).toMatchSnapshot()
expect(json).toHaveStyleRule('outline', '4px solid red')
})
```
|
Get Loose is the fifth studio album from American singer Evelyn King, released by RCA Records in August 1982. It was produced by Morrie Brown with Kashif and Paul Lawrence Jones III as assistant producers.
History
The album peaked at number-one on the R&B albums chart. It also reached #27 on the Billboard 200. It produced the hit singles "Love Come Down", "Betcha She Don't Love You", "Back to Love", and "Get Loose". The album was certified gold by the RIAA. The album was digitally remastered and reissued on CD with bonus tracks in 2010 by Big Break Records and Sony Music Legacy.
Reception
Phyl Garland of Stereo Review complimented the sound quality, calling it "good" but was disenchanted with the album's content and felt its success was "[an] indication of the pitifully limited taste of youngsters addicted to junk music. The heavy beat, underscoring such lyrics as 'Ooh, you make my love come down,' is supposed to incite a desire to dance, but this treatment is about as exciting as an unwashed sock. Both the tunes and lyrics (if you can call them that) sound as if they were written by a computer programmed to churn out mindless cliches. She is good enough to make me almost like the better items here, Betcha She Don't Love You, Stop That, I'm Just Warmin' Up. Otherwise listening to this album is like being trapped inside one of those portable noise machines that culturally stunted kids tote through the streets. Performance: too programmed, recording: Good."
Track listing
Chart performance
Singles
See also
List of number-one R&B albums of 1982 (U.S.)
References
External links
1982 albums
Evelyn "Champagne" King albums
RCA Records albums
|
```c++
#include "source/common/buffer/buffer_impl.h"
#include "contrib/sip_proxy/filters/network/source/app_exception_impl.h"
#include "gmock/gmock.h"
#include "gtest/gtest.h"
namespace Envoy {
namespace Extensions {
namespace NetworkFilters {
namespace SipProxy {
TEST(AppExceptionImplTest, CopyConstructor) {
AppException app_ex(AppExceptionType::InternalError, "msg");
AppException copy(app_ex);
EXPECT_EQ(app_ex.type_, copy.type_);
EXPECT_STREQ("msg", copy.what());
}
TEST(AppExceptionImplTest, EncodeWithoutNecessaryHeaders) {
AppException app_ex(AppExceptionType::InternalError, "msg");
MessageMetadata metadata;
Buffer::OwnedImpl buffer;
app_ex.encode(metadata, buffer);
}
} // namespace SipProxy
} // namespace NetworkFilters
} // namespace Extensions
} // namespace Envoy
```
|
Hunt Club is a 2023 American action thriller film written by David Lipper and John F. Saunders, directed by Elizabeth Blake-Thomas and starring Mena Suvari, Mickey Rourke and Casper Van Dien.
Plot summary
A group of male hunters lure women to their island with the chance to win one hundred thousand dollars in a hunt, only to discover that they are the hunted, but this time they mess with the wrong girls and must deal with the consequences.
Cast
Mena Suvari as Cassandra
Mickey Rourke as Virgil
Casper Van Dien as Carter
Maya Stojan as Tessa
Will Peltz as Jackson
Jessica Belkin as Lexi
Jeremy London as Preston
Jason London as Teddy
David Lipper as Conrad
Kipp Tribble as Williams
Production
In July 2022, it was announced that filming wrapped in Mississippi.
Release
In March 2023, it was announced that Uncork'd Entertainment acquired U.S. distribution rights to the film. It was released on April 4, 2023 in the United States and Canada.
Reception
The film has a 20% rating on Rotten Tomatoes based on five reviews.
Will Sayre of MovieWeb gave the film a negative review, calling it an "uneven and often hard-to-watch B-movie."
References
External links
American action thriller films
Films shot in Mississippi
|
Gangubai Harjeevandas (1907 – 8 September 1977), better known as Gangubai Kothewali or Gangubai Kathiawadi, was an Indian social activist, prostitute and madam of a brothel in the Kamathipura area of Mumbai during the 1960s. Gangubai worked for the rights of sex-workers and for the well-being of orphans. She gradually ended up operating her own brothel and is known to also have lobbied for the rights of commercial sex workers.
Life
She was sold into prostitution at an early age by her suitor, Ramnik Lal, after running away from home to Bombay. She came to be known as the Madam of Kamathipura for being an influential pimp in the city with underworld connections, peddling drugs. Later in life (presumably around 1964), she met Jawaharlal Nehru to discuss the plight of sex workers and improve their living conditions. But we have no solid proof for the story, as the journalist Pamban Mu Prasanth wrote in his article in BBC Tamil.
Mafia Queens of Mumbai (2011) by Hussain Zaidi contains information on the lives of thirteen women who influenced Mumbai. In it, Zaidi also gives information about Gangubai. According to this, Gangubai was from a highly educated family and was obsessed with working in films and was a fan of Dev Anand. Gangubai, 16, and her husband Ramnik Lal, 28, fled to Mumbai and got married. Within a few days of the marriage, her husband sold her in a kuntankhana (brothel) for . Reluctantly, Gangubai started working as a prostitute. In a short time, Gangubai became the head of some kuntankhanas. A goon named Shaukat Khan Pathan started exploiting her financially and physically. Gangubai went to the then underworld don Karim Lala to complain about Pathan. Lala assured her of help and was tied a rakhi in return. After this, Shaukat Khan was warned and roughed-up by Lala.
Since then, Gangubai's repute as Karim Lala's supposed sister grew during the 1960s. St. Anthony's Girls' High School, which was established in Kamathipura in 1922, started a campaign to clean up the area of "bad influence". This led to an order to move the brothel. Gangubai vehemently opposed this and effectively presented her case to the then Prime Minister Jawaharlal Nehru and as a result, the brothel was not moved.
During this time Gangubai was also working for various issues of orphans and women in the prostitution business. Gangubai counseled and sent back many young women, who had fled their homes for working in films and got stuck in prostitution. For this reason, everyone used to respectfully call Gangubai Ganga Maa (mother). After her death, her photographs and statues were erected in brothels of the area.
In popular culture
Her life was documented in the 2011 book, Mafia Queens of Mumbai, by writer and investigative journalist Hussain Zaidi.
The 2022 Indian Hindi-language film Gangubai Kathiawadi is based on the life of Gangubai Kothewali and a chapter of Zaidi's book, and directed by Sanjay Leela Bhansali with actress Alia Bhatt playing the titular character. The movie won accolades for 'Best Film', 'Best Director' for Bhansali, and 'Best Actress' for Bhatt at the 68th Filmfare Awards.
Notes
References
Indian sex workers
20th-century Indian people
Indian female prostitutes
Activists from Mumbai
20th-century Indian women
1939 births
1977 deaths
Pimps
Women from Gujarat
|
```php
<?php
declare(strict_types=1);
namespace ShlinkioTest\Shlink\CLI\Util;
use PHPUnit\Framework\Attributes\Test;
use PHPUnit\Framework\MockObject\MockObject;
use PHPUnit\Framework\TestCase;
use Shlinkio\Shlink\CLI\Util\ProcessRunner;
use Symfony\Component\Console\Helper\DebugFormatterHelper;
use Symfony\Component\Console\Helper\HelperSet;
use Symfony\Component\Console\Helper\ProcessHelper;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Process\Process;
class ProcessRunnerTest extends TestCase
{
private ProcessRunner $runner;
private MockObject & ProcessHelper $helper;
private MockObject & DebugFormatterHelper $formatter;
private MockObject & Process $process;
private MockObject & OutputInterface $output;
protected function setUp(): void
{
$this->helper = $this->createMock(ProcessHelper::class);
$this->formatter = $this->createMock(DebugFormatterHelper::class);
$helperSet = $this->createMock(HelperSet::class);
$helperSet->method('get')->with('debug_formatter')->willReturn($this->formatter);
$this->helper->method('getHelperSet')->with()->willReturn($helperSet);
$this->process = $this->createMock(Process::class);
$this->output = $this->createMock(OutputInterface::class);
$this->runner = new ProcessRunner($this->helper, fn () => $this->process);
}
#[Test]
public function noMessagesAreWrittenWhenOutputIsNotVerbose(): void
{
$this->output->expects($this->exactly(2))->method('isVeryVerbose')->with()->willReturn(false);
$this->output->expects($this->once())->method('isDebug')->with()->willReturn(false);
$this->output->expects($this->never())->method('write');
$this->process->expects($this->once())->method('mustRun')->withAnyParameters()->willReturnSelf();
$this->process->expects($this->never())->method('isSuccessful');
$this->process->expects($this->never())->method('getCommandLine');
$this->helper->expects($this->never())->method('wrapCallback');
$this->formatter->expects($this->never())->method('start');
$this->formatter->expects($this->never())->method('stop');
$this->runner->run($this->output, []);
}
#[Test]
public function someMessagesAreWrittenWhenOutputIsVerbose(): void
{
$this->output->expects($this->exactly(2))->method('isVeryVerbose')->with()->willReturn(true);
$this->output->expects($this->once())->method('isDebug')->with()->willReturn(false);
$this->output->expects($this->exactly(2))->method('write')->withAnyParameters();
$this->process->expects($this->once())->method('mustRun')->withAnyParameters()->willReturnSelf();
$this->process->expects($this->exactly(2))->method('isSuccessful')->with()->willReturn(true);
$this->process->expects($this->once())->method('getCommandLine')->with()->willReturn('true');
$this->formatter->expects($this->once())->method('start')->withAnyParameters()->willReturn('');
$this->formatter->expects($this->once())->method('stop')->withAnyParameters()->willReturn('');
$this->helper->expects($this->never())->method('wrapCallback');
$this->runner->run($this->output, []);
}
#[Test]
public function wrapsCallbackWhenOutputIsDebug(): void
{
$this->output->expects($this->exactly(2))->method('isVeryVerbose')->with()->willReturn(false);
$this->output->expects($this->once())->method('isDebug')->with()->willReturn(true);
$this->output->expects($this->never())->method('write');
$this->process->expects($this->once())->method('mustRun')->withAnyParameters()->willReturnSelf();
$this->process->expects($this->never())->method('isSuccessful');
$this->process->expects($this->never())->method('getCommandLine');
$this->helper->expects($this->once())->method('wrapCallback')->withAnyParameters()->willReturn(
function (): void {
},
);
$this->formatter->expects($this->never())->method('start');
$this->formatter->expects($this->never())->method('stop');
$this->runner->run($this->output, []);
}
}
```
|
Eli Lilly (July 8, 1838 – June 6, 1898) was an American soldier, pharmacist, chemist, and businessman who founded the Eli Lilly and Company pharmaceutical corporation. Lilly enlisted in the Union Army during the American Civil War and recruited a company of men to serve with him in the 18th Independent Battery Indiana Light Artillery. He was later promoted to major and then colonel, and was given command of the 9th Regiment Indiana Cavalry. Lilly was captured in September 1864 and held as a prisoner of war until January 1865. After the war, he attempted to run a plantation in Mississippi, but it failed and he returned to his pharmacy profession after the death of his first wife.
Lilly remarried and worked with business partners in several pharmacies in Indiana and Illinois before opening his own business in 1876 in Indianapolis. Lilly's company manufactured drugs and marketed them on a wholesale basis to pharmacies. Lilly's pharmaceutical firm proved to be successful and he soon became wealthy after making numerous advances in medicinal drug manufacturing. Two of the early advances he pioneered were creating gelatin capsules to contain medicines and developing fruit flavorings. Eli Lilly and Company became one of the first pharmaceutical firms of its kind to staff a dedicated research department and put into place numerous quality-assurance measures.
Using his wealth, Lilly engaged in numerous philanthropic pursuits. He turned over the management of the company to his son, Josiah K. Lilly Sr., around 1890 to allow himself more time to continue his involvement in charitable organizations and civic advancement. Colonel Lilly helped found the Commercial Club, the forerunner to the Indianapolis Chamber of Commerce, and became the primary patron of Indiana's branch of the Charity Organization Society. He personally funded a children's hospital in Indianapolis, known as Eleanor Hospital (closed in 1909). Lilly continued his active involvement with many other organizations until his death from cancer in 1898.
Colonel Lilly was an advocate of federal regulation of the pharmaceutical industry, and many of his suggested reforms were enacted into law in 1906, resulting in the creation of the Food and Drug Administration. He was also among the pioneers of the concept of prescriptions, and helped form what became the common practice of giving addictive or dangerous medicines only to people who had first seen a physician. The company he founded has since grown into one of the largest and most influential pharmaceutical corporations in the world, and the largest corporation in Indiana. Using the wealth generated by the company, his son, J. K., and grandsons, Eli Jr. and Josiah Jr. (Joe), established the Lilly Endowment in 1937. It remains as one of the largest charitable benefactors in the world and continues the Lilly legacy of philanthropy.
Background and early life
Eli Lilly, the son of Gustavus and Esther (Kirby) Lilly, was born in Baltimore, Maryland, on July 8, 1838. His family was of part Swedish descent and had moved to the low country of France before his great-grandparents immigrated to Maryland in 1789. When Eli, the first of eleven children, was still an infant, the family moved to Kentucky, where they eventually settled on a farm near Warsaw in Gallatin County.
In 1852 the family settled at Greencastle, Indiana, where Lilly's parents enrolled him at Indiana Asbury University (later known as DePauw University). Eli attended classes from 1852 to 1854. He also assisted at a local printing press as a printer's devil. Lilly grew up in a Methodist household, and his family was prohibitionist and anti-slavery; their beliefs served as part of their motivation for moving to Indiana. Lilly and his family were members of the Democratic Party during his early life, but they became Republicans during the years leading up to the Civil War.
Lilly became interested in chemicals as a teen. In 1854, while on a trip to visit his aunt and uncle in Lafayette, Indiana, the sixteen-year-old Lilly visited Henry Lawrence's Good Samaritan Drug Store, a local apothecary shop, where he watched Lawrence prepare pharmaceutical drugs. Lilly completed a four-year apprenticeship with Lawrence to become a chemist and pharmacist. In addition to learning to mix chemicals, Lawrence taught Lilly how to manage funds and operate a business. In 1858, after earning a certificate of proficiency from his apprenticeship, Lilly left the Good Samaritan to work for Israel Spencer and Sons, a wholesale and retail druggist in Lafayette, before moving to Indianapolis to take a position at the Perkins and Coons Pharmacy.
Lilly returned to Greencastle in 1860 to work in Jerome Allen's drugstore. He opened his own drugstore in the city in January 1861, and married Emily Lemen, the daughter of a Greencastle merchant, on January 31, 1861. During the early years of their marriage, the couple resided in Greenfield. The couple's son, Josiah Kirby, later called "J. K.", was born on November 18, 1861, while Eli was serving in the military during the American Civil War.
Career
American Civil War service
In 1861, a few months after the start of the American Civil War, Lilly enlisted in the Union Army and joined the 21st Indiana Infantry Regiment on July 24. Lilly was commissioned as a second lieutenant on July 29, 1861. On August 3, the 21st Indiana reached Baltimore, Maryland, where it remained for several months. Lilly resigned his commission in December 1861 and returned to Indiana to form an artillery unit.
In early 1862 Lilly actively recruited volunteers for his unit among his classmates, friends, local merchants and farmers. He had recruitment posters created and posted them around Indianapolis, promising to form the "crack battery of Indiana". His unit, the 18th Battery, Indiana Light Artillery, was known as the Lilly Battery and consisted of six, three-inch ordinance rifles and 150 men. Lilly was commissioned as a captain in the unit. The 18th Indiana mustered into service at Camp Morton in Indianapolis on August 6, 1862, and spent a brief time drilling before it was sent into battle under Major General William Rosecrans in Kentucky and Tennessee. Lilly's artillery unit was transferred to the Lightning Brigade, a mounted infantry under the command of Colonel, later General, John T. Wilder on December 16, 1862.
Lilly was elected to serve as the commanding officer of his battery from August 1862 until the winter of 1863, when his three-year enlistment expired. His only prior military experience had been in a Lafayette, Indiana, militia unit. Several of his artillerymen considered him too young and intemperate to command; however, despite his initial inexperience, Lilly became a competent artillery officer. His battery was instrumental in several battles, including the Battle of Hoover's Gap in June 1863 and in the Second Battle of Chattanooga and the Battle of Chickamauga in August and September 1863.
In 1864, when Lilly's term of enlistment ended, he resigned his commission and left the 18th Indiana. Lilly joined the 9th Indiana Cavalry (121st Regiment Indiana Volunteers) and was promoted to major. At the Battle of Sulphur Creek Trestle in Alabama in September 1864, he was captured by Confederate troops under the command of Major General Nathan B. Forrest and held in a prisoner-of-war camp at Enterprise, Mississippi until his release in a prisoner exchange in January 1865. Lilly was promoted to colonel on June 4, 1865, and was stationed at Vicksburg, Mississippi, in the spring of 1865 when the war ended. In recognition of his service, he was brevetted to the rank of lieutenant colonel and mustered out of service with the 9th Indiana Cavalry on August 25, 1865.
In later life Lilly obtained a large atlas and marked the path of his movements in the war and the location of battles and skirmishes. He often used the atlas when telling war stories. His colonel's title stayed with him for the rest of his life, and his friends and family used it as a nickname for him. Lilly served as chairman of the Grand Army of the Republic, a brotherhood of Union Civil War veterans, in 1893. During his term he helped organize an event that brought tens of thousands of Union war veterans, including Lilly's battery, together in Indianapolis for a reunion and a large parade.
Early business ventures
After the war, Lilly remained in the South to begin a new business venture. Lilly and his business partner leased Bowling Green, a cotton plantation in Mississippi. Lilly traveled to Greencastle, Indiana, and returned with his wife, Emily, his sister, Anna Wesley Lilly, and son, Josiah. Shortly after the move the entire family was stricken with a mosquito-borne disease, probably malaria, that was common in the region at that time. Although the others recovered, Emily died on August 20, 1866, eight months pregnant with a second son, who was stillborn. The death devastated Lilly; he wrote to his family, "I can hardly tell you how it glares at me ...it's a bitter, bitter truth ... Emily is indeed dead." Lilly abandoned the plantation and returned to Indiana. The plantation fell into disrepair and a drought caused its cotton crop to fail. Lilly's business partner, unable to maintain the plantation because of the drought, disappeared with the venture's remaining cash. Lilly was forced to file for bankruptcy in 1868.
Lilly worked to resolve the situation on the plantation and find other employment while his young son, Josiah, lived with Colonel Lilly's parents in Greencastle. In 1867, Lilly found work at the Harrison Daily and Company, a wholesale drug firm. In 1869, he began working for Patterson, Moore and Talbott, another medicinal wholesale company, before he moved to Illinois to establish a new business. In 1869, Lilly left Indiana to open a drugstore with James W. Binford, his business partner. Binford and Lilly opened The Red Front Drugstore in Paris, Illinois, in August 1869.
In November 1869, Colonel Lilly married Maria Cynthia Sloan. Soon after their marriage they sent for his son, Josiah, who was still living in Greencastle, to join them in Illinois. Eli and Maria's only child, a daughter named Eleanor, was born on January 25, 1871, and died of diphtheria in 1884 at the age of thirteen. Maria died in 1932.
Although the business in Illinois was profitable and allowed Lilly to save money, he was more interested in medicinal manufacturing than running a pharmacy. Lilly began formulating a plan to create a medicinal wholesale company of his own. Lilly left the partnership with Binford in 1873 to return to Indianapolis, where, on January 1, 1874, he and John F. Johnston opened a drug manufacturing operation called Johnston and Lilly. Three years later, on March 27, 1876, Lilly dissolved the partnership. His share of the assets amounted to an estimated $400 in merchandise (several pieces of equipment and a few gallons of unmixed chemicals) and about $1,000 in cash.
When Lilly approached Augustus Keifer, a wholesale druggist and family friend, for a job, Keifer encouraged Lilly to established his own drug manufacturing business in Indianapolis. Keifer and two associated drugstores agreed to purchase their drugs from Lilly at a cost lower than they were currently paying.
Eli Lilly and Company founder
On May 10, 1876, Lilly opened his own laboratory in a rented two-story building (now demolished) at 15 West Pearl Street and began to manufacture drugs. The sign for the business said "Eli Lilly, Chemist". Lilly's manufacturing venture began with $1,400 ($ in 2020 chained dollars) in working capital and three employees: Albert Hall (chief compounder), Caroline Kruger (bottler and product finisher), and Lilly's fourteen-year-old son, Josiah, who had quit school to work with his father as an apprentice.
Lilly's first innovation was gelatin-coated pills and capsules. Other early innovations included fruit flavorings and sugarcoated pills, which made medicines easier to swallow. Following his experience with the low-quality medicines used in the Civil War, Lilly committed himself to producing only high-quality prescription drugs, in contrast to the common and often ineffective patent medicines of the day. One of the first medicines he began to produce was quinine, a drug used to treat malaria, that resulted in a "ten fold" increase in sales. Lilly products gained a reputation for quality and became popular in the city. At the end of 1876, his first year of business, sales reached $4,470 ($ in 2020 chained dollars), and by 1879 they had grown to $48,000 ($ in 2020 chained dollars).
As sales expanded rapidly he began to acquire customers outside of Indiana. Lilly hired his brother, James, as his first full-time salesman in 1878. James, and the subsequent sales team that developed, marketed the company's drugs nationally. Other family members were also employed by the growing company; Lilly's cousin Evan Lilly was hired as a bookkeeper and his grandsons, Eli and Josiah (Joe), were hired to run errands and perform other odd jobs. In 1881 Lilly formally incorporated the firm as Eli Lilly and Company, elected a board of directors, and issued stock to family members and close associates. By the late 1880s Colonel Lilly had become one of the Indianapolis area's leading businessmen, with a company of more than one hundred employees and $200,000 ($ in 2020 chained dollars) in annual sales.
To accommodate his growing business, Lilly acquired additional facilities for research and production. Lilly's business remained at the Pearl Street location from 1876 to 1878, then moved to larger quarters at 36 South Meridian. In 1881 he purchased a complex of buildings at McCarty and Alabama Streets, south of downtown Indianapolis, and moved the company to its new headquarters. Other businesses followed and the area developed into a major industrial and manufacturing district of the city. In the early 1880s the company also began making its first, widely-successful product, called Succus Alteran (a treatment for venereal disease, types of rheumatism, and skin diseases). Sales of the product provided funds for company research and additional expansion.
Believing that it would be an advantage for his son to gain a greater technical knowledge, Lilly sent Josiah to the Philadelphia College of Pharmacy in 1880. Upon returning to the family business in 1882, Josiah was named superintendent of the laboratory. In 1890, Lilly turned over the day-to day management of the business to Josiah, who ran the company for thirty-four years. The company flourished despite the tumultuous economic conditions in the 1890s. In 1894, Lilly purchased a manufacturing plant to be used solely for creating capsules. The company made several technological advances in the manufacturing process, including the automation of capsule production. Over the next few years, the company annually created tens of millions of capsules and pills.
Although there were many other small pharmaceutical companies in the United States, Eli Lilly and Company distinguished itself from the others by having a permanent research staff, inventing superior techniques for the mass production of medicinal drugs, and focusing on quality. At first, Lilly was the company's only researcher, but as the business grew, he established a research laboratory and employed others who were dedicated to creating new drugs. Lilly hired his first full-time research chemist, Ernest G. Eberhards, and botanist, Walter H. Evans, in 1886. The department's methods of research were based on Lilly's. He insisted on quality assurance and instituted mechanisms to ensure that the drugs being produced would be effective and perform as advertised, had the correct combination of ingredients, and had the correct dosages of medicines in each pill. He was aware of the addictive and dangerous nature of some of his drugs, and pioneered the concept of giving such drugs only to people who had first seen a physician to determine if they needed the medicine.
Later life, philanthropy
By the time of his retirement from his business, around 1890, Lilly was a millionaire who had been involved in civic affairs for several years. Later in life he had become increasingly more philanthropic, granting funds to charitable groups in the city.
In 1879, with a group of twenty-five other businessmen, Lilly began sponsoring the Charity Organization Society and soon became the primary patron of its Indiana chapter. The society merged with other charitable organizations to form the Family Welfare Society of Indianapolis, a forerunner to the Family Service Association of Central Indiana and the United Way. The associated group organized charitable groups under a central leadership structure that allowed them to easily interact and better assist people by coordinating their efforts and identifying areas with the greatest need.
Lilly was especially interested in encouraging economic growth and general development in Indianapolis. He attempted to achieve those goals by supporting local commercial organizations financially and through his personal advocacy and promotion. In 1879 he made a proposal for a public water company to meet the needs of the city, which lead to the formation of the Indianapolis Water Company.
In 1890, Lilly and other civic leaders founded the Commercial Club; Lilly was elected as its first president. The club, renamed the Indianapolis Chamber of Commerce in 1912, was the primary vehicle for Lilly's city development goals. It was instrumental in making numerous advances for the city, including citywide paved streets, elevated railways to allow vehicles and people to pass beneath them, and a city sewage system. The companies that provided these services were created through private and public investments and operated at low-cost; in practice they belonged to the companies' customers, who slowly bought each company back from its initial investors. The model was later followed other regions of Indiana to establish water and electric utility companies. The Commercial Club members also helped fund the creation of parks, monuments, and memorials, as well as successfully attracted investment from other businessmen and organizations to expand Indianapolis's growing industries.
After the Gas Boom began to sweep the state in the 1880s, Lilly and other Commercial Club members advocated the creation of a public corporation to pump natural gas from the ground, pipe it to Indianapolis from the Trenton Gas Field, and provide it at low cost to businesses and homes. The project led to the creation of the Consumer Gas Trust Company, which Lilly named. The gas company provided low-cost heating fuel that made urban living much more desirable. The gas was further used to create electricity to run Indianapolis's first public transportation venture, a streetcar system.
During the Panic of 1893, Lilly created a commission to help provide food and shelter to the poor people who were adversely affected. His work with the commission led him to make a personal donation of funds and property to the Flower Mission of Indianapolis in 1895. Lilly's substantial donation allowed it to establish Eleanor Hospital, a children's hospital in Indianapolis named in honor of his deceased daughter. The hospital cared for children from families who had no money to pay for routine medical care; it closed in 1909.
Lilly's friends often urged him to seek public office, and they attempted to nominate him to run for Governor of Indiana as a Republican in 1896, but he refused. Lilly shunned public office, preferring to focus his attention on his philanthropic organizations. He did regularly endorse candidates, and made substantial donations to politicians who advanced his causes. After former Indiana governor Oliver P. Morton and others suggested the creation of a memorial to Indiana's many Civil War veterans, Lilly began raising funds to build the Indiana Soldiers' and Sailors' Monument. Construction began in 1888, but the monument was not completed until 1901, three years after Lilly's death. The interior of the monument houses a civil war museum, established in 1918, that is named in Lilly's honor.
Colonel Lilly's main residence was a large home in Indianapolis on Tennessee Street (renamed Capitol Street in 1895), where he spent most of his time. Lilly, an avid fisherman, built a family vacation cottage on Lake Wawasee near Syracuse, Indiana, in 1886–87. He had enjoyed regular vacations and recreation at the lake since the early 1880s. Lilly also founded the Wawasee Golf Club in 1891. Lilly's lakeside property became a haven for the family. His son, Josiah, built his own cottage on the estate in the mid-1930s.
Lilly developed cancer in 1897 and died in his Indianapolis home on June 6, 1898. His funeral was held on June 9 and attended by thousands. His remains are interred in a large mausoleum at Indianapolis's Crown Hill Cemetery.
Legacy
At the time of Lilly's death in 1898, his company had a product line of 2,005 items and annual sales of more than $300,000 ($ in 2020 chained dollars). His son, Josiah, inherited the company following his father's death, and became its president in 1898. Josiah continued to expand its operations before passing it on to his own sons, Eli Jr. and Josiah Jr. (Joe).
Lilly's son and two grandsons, as well as the Lilly company, continued the philanthropic efforts that Lilly practiced. Eli Lilly and Company played an important role in delivering medicine to the victims of the devastating 1906 San Francisco earthquake. In 1937 Lilly's son and grandsons established the Lilly Endowment, which became the largest philanthropic endowment in the world in terms of assets and charitable giving in 1998. (Other endowments have since surpassed it, but it still remains among the top ten.)
Lilly's firm grew into one of the largest pharmaceutical companies in the world. Under the leadership of Lilly's son, Josiah (J. K.) and two grandsons, Eli and Joe, it developed many new innovations, including the pioneering and development of insulin during the 1920s, the mass production of penicillin during the 1940s, and the promotion of advancements in mass-produced medicines. Innovation continued at the company after it was made a publicly traded corporation in 1952; it developed Humulin, Merthiolate, Prozac, and many other medicines. According to Forbes, Eli Lilly and Company ranked as the 243rd largest company in the world in 2016, with sales of $20 billion and a market value of $86 billion (USD). It is the largest corporation and the largest charitable benefactor in Indiana.
Lilly's greatest contributions to the industry were his standardized and methodical production of drugs, his dedication to research and development, and the therapeutic value of the drugs he created. As a pioneer in the modern pharmaceutical industry, many of his innovations later became standard practice. Lilly's ethical reforms, in a trade that was marked by outlandish claims of miracle medicines, began a period of rapid advancement in the development of medicinal drugs. During his lifetime, Lilly had advocated for federal regulation on medicines; his son, Josiah, continued that advocacy following his father's death.
Honors and tributes
The Colonel Eli Lilly Civil War Museum, located beneath the Sailors' and Soldiers' Monument in Indianapolis, is named in Lilly's honor. It features exhibits about Indiana during the war period and the war in general.
Colonel Lilly is featured in the Indiana Historical Society exhibition, "You Are There: Eli Lilly at the Beginning," at the Eugene and Marilyn Glick Indiana History Center in Indianapolis. The temporary exhibition (October 1, 2016, to January 20, 2018) includes a recreation of the first Lilly laboratory on Pearl Street in Indianapolis and a costumed interpreter portraying Lilly.
See also
History of Indiana
Notes and references
Bibliography
External links
1838 births
1898 deaths
American chemists
Methodists from Indiana
American people of Swedish descent
American planters
Businesspeople from Baltimore
Businesspeople from Indianapolis
Burials at Crown Hill Cemetery
Deaths from cancer in Indiana
DePauw University alumni
Eli Lilly and Company people
Indiana Republicans
Presidents of Eli Lilly and Company
People from Kentucky
People of Indiana in the American Civil War
Pharmacists from Indiana
Philanthropists from Indiana
Union Army colonels
Military personnel from Indiana
19th-century American philanthropists
Pharmaceutical company founders
Grand Army of the Republic officials
|
Bujakovići () is a village in the municipality of Srebrenica, Bosnia and Herzegovina.
References
Populated places in Srebrenica
|
Gin'yō Ika-shū (銀葉夷歌集) is a Japanese kyōka anthology in five volumes.
Compiler and date
Gin'yō Ika-shū, an anthology of kyōka poetry, was compiled by Seihakudō Gyōfū (生白 堂行風) and first printed in the second month of Enpō 7 (1679) by Iseya San'uemon (伊勢屋山右衛門) in Osaka.
Title
Gin'yō Ika-shū was Gyōfū's third collection, following Kokin Ikyoku-shū and Gosen Ikyoku-shū. The names of these earlier two works are derived from the first two imperial anthologies of waka poetry, the Kokin Waka-shū and Gosen Waka-shū, and so it appears Gyōfū intended to follow this pattern in calling this work the Kin'yō Ikyoku-shū (金葉夷曲集) after the Kin'yō Waka-shū, but for whatever reason he changed his mind, with both the preface (序題) and title page (内題) showing signs of having been amended to the present title.
Contents
The collection contains roughly 1,000 kyōka, in ten volumes. The volumes' topics are, respectively, "Spring", "Summer", "Autumn", "Winter", "Felicitations (and Shinto)", "Partings (and Travel)", "Love", "Miscellaneous I (Names of Things and Acrostic Poetry)", "Miscellaneous II", and "Buddhism".
References
Citations
Works cited
17th-century poetry
Edo-period works
Waka (poetry)
Japanese poetry
|
```javascript
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
"use strict";
/**
* A thin wrapper around shell's 'read' function showing a file name on error.
*/
function readFile(fileName) {
try {
return read(fileName);
} catch (e) {
console.log(fileName + ': ' + (e.message || e));
throw e;
}
}
// ===========================================================================
// This is the only true formatting, why? For an international audience the
// confusion between the decimal and thousands separator is big (alternating
// between comma "," vs dot "."). The Swiss formatting uses "'" as a thousands
// separator, dropping most of that confusion.
const numberFormat = new Intl.NumberFormat('de-CH', {
maximumFractionDigits: 2,
minimumFractionDigits: 2,
});
function formatNumber(value) {
return numberFormat.format(value);
}
function BYTES(bytes, total) {
let units = ['B ', 'kB', 'mB', 'gB'];
let unitIndex = 0;
let value = bytes;
while (value > 1000 && unitIndex < units.length) {
value /= 1000;
unitIndex++;
}
let result = formatNumber(value).padStart(10) + ' ' + units[unitIndex];
if (total !== void 0 && total != 0) {
result += PERCENT(bytes, total).padStart(5);
}
return result;
}
function PERCENT(value, total) {
return Math.round(value / total * 100) + "%";
}
// ===========================================================================
const kNoTimeMetrics = {
__proto__: null,
executionDuration: 0,
firstEventTimestamp: 0,
firstParseEventTimestamp: 0,
lastParseEventTimestamp: 0,
lastEventTimestamp: 0
};
class CompilationUnit {
constructor() {
this.isEval = false;
// Lazily computed properties.
this.firstEventTimestamp = -1;
this.firstParseEventTimestamp = -1;
this.firstCompileEventTimestamp = -1;
this.lastParseEventTimestamp = -1;
this.lastEventTimestamp = -1;
this.deserializationTimestamp = -1;
this.preparseTimestamp = -1;
this.parseTimestamp = -1;
this.parse2Timestamp = -1;
this.resolutionTimestamp = -1;
this.compileTimestamp = -1;
this.lazyCompileTimestamp = -1;
this.executionTimestamp = -1;
this.optimizationTimestamp = -1;
this.deserializationDuration = -0.0;
this.preparseDuration = -0.0;
this.parseDuration = -0.0;
this.parse2Duration = -0.0;
this.resolutionDuration = -0.0;
this.scopeResolutionDuration = -0.0;
this.lazyCompileDuration = -0.0;
this.compileDuration = -0.0;
this.optimizeDuration = -0.0;
this.ownBytes = -1;
this.compilationCacheHits = [];
}
finalize() {
this.firstEventTimestamp = this.timestampMin(
this.deserializationTimestamp, this.parseTimestamp,
this.preparseTimestamp, this.resolutionTimestamp,
this.executionTimestamp);
this.firstParseEventTimestamp = this.timestampMin(
this.deserializationTimestamp, this.parseTimestamp,
this.preparseTimestamp, this.resolutionTimestamp);
this.firstCompileEventTimestamp = this.rawTimestampMin(
this.deserializationTimestamp, this.compileTimestamp,
this.lazyCompileTimestamp);
// Any excuted script needs to be compiled.
if (this.hasBeenExecuted() &&
(this.firstCompileEventTimestamp <= 0 ||
this.executionTimestamp < this.firstCompileTimestamp)) {
console.error('Compile < execution timestamp', this);
}
if (this.ownBytes < 0) console.error(this, 'Own bytes must be positive');
}
hasBeenExecuted() {
return this.executionTimestamp > 0;
}
addCompilationCacheHit(timestamp) {
this.compilationCacheHits.push(timestamp);
}
// Returns the smallest timestamp from the given list, ignoring
// uninitialized (-1) values.
rawTimestampMin(...timestamps) {
timestamps = timestamps.length == 1 ? timestamps[0] : timestamps;
let result = timestamps.reduce((min, item) => {
return item == -1 ? min : (min == -1 ? item : Math.min(item, item));
}, -1);
return result;
}
timestampMin(...timestamps) {
let result = this.rawTimestampMin(...timestamps);
if (Number.isNaN(result) || result < 0) {
console.error(
'Invalid timestamp min:', {result, timestamps, script: this});
return 0;
}
return result;
}
timestampMax(...timestamps) {
timestamps = timestamps.length == 1 ? timestamps[0] : timestamps;
let result = Math.max(...timestamps);
if (Number.isNaN(result) || result < 0) {
console.error(
'Invalid timestamp max:', {result, timestamps, script: this});
return 0;
}
return result;
}
}
// ===========================================================================
class Script extends CompilationUnit {
constructor(id) {
super();
if (id === void 0 || id <= 0) {
throw new Error(`Invalid id=${id} for script`);
}
this.file = '';
this.id = id;
this.isNative = false;
this.isBackgroundCompiled = false;
this.isStreamingCompiled = false;
this.funktions = [];
this.metrics = new Map();
this.maxNestingLevel = 0;
this.width = 0;
this.bytesTotal = -1;
this.finalized = false;
this.summary = '';
this.source = '';
}
setFile(name) {
this.file = name;
this.isNative = name.startsWith('native ');
}
isEmpty() {
return this.funktions.length === 0;
}
getFunktionAtStartPosition(start) {
if (!this.isEval && start === 0) {
throw 'position 0 is reserved for the script';
}
if (this.finalized) {
return this.funktions.find(funktion => funktion.start == start);
}
return this.funktions[start];
}
// Return the innermost function at the given source position.
getFunktionForPosition(position) {
if (!this.finalized) throw 'Incomplete script';
for (let i = this.funktions.length - 1; i >= 0; i--) {
let funktion = this.funktions[i];
if (funktion.containsPosition(position)) return funktion;
}
return undefined;
}
addMissingFunktions(list) {
if (this.finalized) throw 'script is finalized!';
list.forEach(fn => {
if (this.funktions[fn.start] === void 0) {
this.addFunktion(fn);
}
});
}
addFunktion(fn) {
if (this.finalized) throw 'script is finalized!';
if (fn.start === void 0) throw "Funktion has no start position";
if (this.funktions[fn.start] !== void 0) {
fn.print();
throw "adding same function twice to script";
}
this.funktions[fn.start] = fn;
}
finalize() {
this.finalized = true;
// Compact funktions as we no longer need access via start byte position.
this.funktions = this.funktions.filter(each => true);
let parent = null;
let maxNesting = 0;
// Iterate over the Funktions in byte position order.
this.funktions.forEach(fn => {
fn.isEval = this.isEval;
if (parent === null) {
parent = fn;
} else {
// Walk up the nested chain of Funktions to find the parent.
while (parent !== null && !fn.isNestedIn(parent)) {
parent = parent.parent;
}
fn.parent = parent;
if (parent) {
maxNesting = Math.max(maxNesting, parent.addNestedFunktion(fn));
}
parent = fn;
}
});
// Sanity checks to ensure that scripts are executed and parsed before any
// of its funktions.
let funktionFirstParseEventTimestamp = -1;
// Second iteration step to finalize the funktions once the proper
// hierarchy has been set up.
this.funktions.forEach(fn => {
fn.finalize();
funktionFirstParseEventTimestamp = this.timestampMin(
funktionFirstParseEventTimestamp, fn.firstParseEventTimestamp);
this.lastParseEventTimestamp = this.timestampMax(
this.lastParseEventTimestamp, fn.lastParseEventTimestamp);
this.lastEventTimestamp =
this.timestampMax(this.lastEventTimestamp, fn.lastEventTimestamp);
});
this.maxNestingLevel = maxNesting;
// Initialize sizes.
if (!this.ownBytes === -1) throw 'Invalid state';
if (this.funktions.length == 0) {
this.bytesTotal = this.ownBytes = 0;
return;
}
let toplevelFunktionBytes = this.funktions.reduce(
(bytes, each) => bytes + (each.isToplevel() ? each.getBytes() : 0), 0);
if (this.isDeserialized || this.isEval || this.isStreamingCompiled) {
if (this.getBytes() === -1) {
this.bytesTotal = toplevelFunktionBytes;
}
}
this.ownBytes = this.bytesTotal - toplevelFunktionBytes;
// Initialize common properties.
super.finalize();
// Sanity checks after the minimum timestamps have been computed.
if (funktionFirstParseEventTimestamp < this.firstParseEventTimestamp) {
console.error(
'invalid firstCompileEventTimestamp', this,
funktionFirstParseEventTimestamp, this.firstParseEventTimestamp);
}
}
print() {
console.log(this.toString());
}
toString() {
let str = `SCRIPT id=${this.id} file=${this.file}\n` +
`functions[${this.funktions.length}]:`;
this.funktions.forEach(fn => str += fn.toString());
return str;
}
getBytes() {
return this.bytesTotal;
}
getOwnBytes() {
return this.ownBytes;
}
// Also see Funktion.prototype.getMetricBytes
getMetricBytes(name) {
if (name == 'lazyCompileTimestamp') return this.getOwnBytes();
return this.getOwnBytes();
}
getMetricDuration(name) {
return this[name];
}
forEach(fn) {
fn(this);
this.funktions.forEach(fn);
}
// Container helper for TotalScript / Script.
getScripts() {
return [this];
}
calculateMetrics(printSummary) {
let log = (str) => this.summary += str + '\n';
log("SCRIPT: " + this.id);
let all = this.funktions;
if (all.length === 0) return;
let nofFunktions = all.length;
let ownBytesSum = list => {
return list.reduce((bytes, each) => bytes + each.getOwnBytes(), 0)
};
let info = (name, funktions) => {
let ownBytes = ownBytesSum(funktions);
let nofPercent = Math.round(funktions.length / nofFunktions * 100);
let value = (funktions.length + "").padStart(6) +
(nofPercent + "%").padStart(5) +
BYTES(ownBytes, this.bytesTotal).padStart(10);
log((" - " + name).padEnd(20) + value);
this.metrics.set(name + "-bytes", ownBytes);
this.metrics.set(name + "-count", funktions.length);
this.metrics.set(name + "-count-percent", nofPercent);
this.metrics.set(name + "-bytes-percent",
Math.round(ownBytes / this.bytesTotal * 100));
};
log(" - file: " + this.file);
log(' - details: ' +
'isEval=' + this.isEval + ' deserialized=' + this.isDeserialized +
' streamed=' + this.isStreamingCompiled);
info("scripts", this.getScripts());
info("functions", all);
info("toplevel fn", all.filter(each => each.isToplevel()));
info('preparsed', all.filter(each => each.preparseDuration > 0));
info('fully parsed', all.filter(each => each.parseDuration > 0));
// info("fn parsed", all.filter(each => each.parse2Duration > 0));
// info("resolved", all.filter(each => each.resolutionDuration > 0));
info("executed", all.filter(each => each.executionTimestamp > 0));
info('forEval', all.filter(each => each.isEval));
info("lazy compiled", all.filter(each => each.lazyCompileTimestamp > 0));
info("eager compiled", all.filter(each => each.compileTimestamp > 0));
let parsingCost =
new ExecutionCost('parse', all, each => each.parseDuration);
parsingCost.setMetrics(this.metrics);
log(parsingCost.toString());
let preParsingCost =
new ExecutionCost('preparse', all, each => each.preparseDuration);
preParsingCost.setMetrics(this.metrics);
log(preParsingCost.toString());
let resolutionCost =
new ExecutionCost('resolution', all, each => each.resolutionDuration);
resolutionCost.setMetrics(this.metrics);
log(resolutionCost.toString());
let nesting = new NestingDistribution(all);
nesting.setMetrics(this.metrics);
log(nesting.toString());
if (printSummary) console.log(this.summary);
}
getAccumulatedTimeMetrics(
metrics, start, end, delta, cumulative = true, useDuration = false) {
// Returns an array of the following format:
// [ [start, acc(metric0, start, start), acc(metric1, ...), ...],
// [start+delta, acc(metric0, start, start+delta), ...],
// [start+delta*2, acc(metric0, start, start+delta*2), ...],
// ...
// ]
if (end <= start) throw 'Invalid ranges [' + start + ',' + end + ']';
const timespan = end - start;
const kSteps = Math.ceil(timespan / delta);
// To reduce the time spent iterating over the funktions of this script
// we iterate once over all funktions and add the metric changes to each
// timepoint:
// [ [0, 300, ...], [1, 15, ...], [2, 100, ...], [3, 0, ...] ... ]
// In a second step we accumulate all values:
// [ [0, 300, ...], [1, 315, ...], [2, 415, ...], [3, 415, ...] ... ]
//
// To limit the number of data points required in the resulting graphs,
// only the rows for entries with actual changes are created.
const metricProperties = ["time"];
metrics.forEach(each => {
metricProperties.push(each + 'Timestamp');
if (useDuration) metricProperties.push(each + 'Duration');
});
// Create a packed {rowTemplate} which is copied later-on.
let indexToTime = (t) => (start + t * delta) / kSecondsToMillis;
let rowTemplate = [indexToTime(0)];
for (let i = 1; i < metricProperties.length; i++) rowTemplate.push(0.0);
// Create rows with 0-time entry.
let rows = new Array(rowTemplate.slice());
for (let t = 1; t <= kSteps; t++) rows.push(null);
// Create the real metric's property name on the Funktion object.
// Add the increments of each Funktion's metric to the result.
this.forEach(funktionOrScript => {
// Iterate over the Funktion's metric names, skipping position 0 which
// is the time.
const kMetricIncrement = useDuration ? 2 : 1;
for (let i = 1; i < metricProperties.length; i += kMetricIncrement) {
let timestampPropertyName = metricProperties[i];
let timestamp = funktionOrScript[timestampPropertyName];
if (timestamp === void 0) continue;
if (timestamp < start || end < timestamp) continue;
timestamp -= start;
let index = Math.floor(timestamp / delta);
let row = rows[index];
if (row === null) {
// Add a new row if it didn't exist,
row = rows[index] = rowTemplate.slice();
// .. add the time offset.
row[0] = indexToTime(index);
}
// Add the metric value.
row[i] += funktionOrScript.getMetricBytes(timestampPropertyName);
if (!useDuration) continue;
let durationPropertyName = metricProperties[i + 1];
row[i + 1] += funktionOrScript.getMetricDuration(durationPropertyName);
}
});
// Create a packed array again with only the valid entries.
// Accumulate the incremental results by adding the metric values from
// the previous time window.
let previous = rows[0];
let result = [previous];
for (let t = 1; t < rows.length; t++) {
let current = rows[t];
if (current === null) {
// Ensure a zero data-point after each non-zero point.
if (!cumulative && rows[t - 1] !== null) {
let duplicate = rowTemplate.slice();
duplicate[0] = indexToTime(t);
result.push(duplicate);
}
continue;
}
if (cumulative) {
// Skip i==0 where the corresponding time value in seconds is.
for (let i = 1; i < metricProperties.length; i++) {
current[i] += previous[i];
}
}
// Make sure we have a data-point in time right before the current one.
if (rows[t - 1] === null) {
let duplicate = (!cumulative ? rowTemplate : previous).slice();
duplicate[0] = indexToTime(t - 1);
result.push(duplicate);
}
previous = current;
result.push(current);
}
// Make sure there is an entry at the last position to make sure all graphs
// have the same width.
const lastIndex = rows.length - 1;
if (rows[lastIndex] === null) {
let duplicate = previous.slice();
duplicate[0] = indexToTime(lastIndex);
result.push(duplicate);
}
return result;
}
getFunktionsAtTime(time, delta, metric) {
// Returns a list of Funktions whose metric changed in the
// [time-delta, time+delta] range.
return this.funktions.filter(
funktion => funktion.didMetricChange(time, delta, metric));
return result;
}
}
class TotalScript extends Script {
constructor() {
super('all files', 'all files');
this.scripts = [];
}
addAllFunktions(script) {
// funktions is indexed by byte offset and as such not packed. Add every
// Funktion one by one to keep this.funktions packed.
script.funktions.forEach(fn => this.funktions.push(fn));
this.scripts.push(script);
this.bytesTotal += script.bytesTotal;
}
// Iterate over all Scripts and nested Funktions.
forEach(fn) {
this.scripts.forEach(script => script.forEach(fn));
}
getScripts() {
return this.scripts;
}
}
// ===========================================================================
class NestingDistribution {
constructor(funktions) {
// Stores the nof bytes per function nesting level.
this.accumulator = [0, 0, 0, 0, 0];
// Max nof bytes encountered at any nesting level.
this.max = 0;
// avg bytes per nesting level.
this.avg = 0;
this.totalBytes = 0;
funktions.forEach(each => each.accumulateNestingLevel(this.accumulator));
this.max = this.accumulator.reduce((max, each) => Math.max(max, each), 0);
this.totalBytes = this.accumulator.reduce((sum, each) => sum + each, 0);
for (let i = 0; i < this.accumulator.length; i++) {
this.avg += this.accumulator[i] * i;
}
this.avg /= this.totalBytes;
}
print() {
console.log(this.toString())
}
toString() {
let ticks = " ";
let accString = this.accumulator.reduce((str, each) => {
let index = Math.round(each / this.max * (ticks.length - 1));
return str + ticks[index];
}, '');
let percent0 = this.accumulator[0]
let percent1 = this.accumulator[1];
let percent2plus = this.accumulator.slice(2)
.reduce((sum, each) => sum + each, 0);
return " - nesting level: " +
' avg=' + formatNumber(this.avg) +
' l0=' + PERCENT(percent0, this.totalBytes) +
' l1=' + PERCENT(percent1, this.totalBytes) +
' l2+=' + PERCENT(percent2plus, this.totalBytes) +
' distribution=[' + accString + ']';
}
setMetrics(dict) {}
}
class ExecutionCost {
constructor(prefix, funktions, time_fn) {
this.prefix = prefix;
// Time spent on executed functions.
this.executedCost = 0
// Time spent on not executed functions.
this.nonExecutedCost = 0;
this.executedCost = funktions.reduce((sum, each) => {
return sum + (each.hasBeenExecuted() ? time_fn(each) : 0)
}, 0);
this.nonExecutedCost = funktions.reduce((sum, each) => {
return sum + (each.hasBeenExecuted() ? 0 : time_fn(each))
}, 0);
}
print() {
console.log(this.toString())
}
toString() {
return (' - ' + this.prefix + '-time:').padEnd(24) +
(" executed=" + formatNumber(this.executedCost) + 'ms').padEnd(20) +
" non-executed=" + formatNumber(this.nonExecutedCost) + 'ms';
}
setMetrics(dict) {
dict.set('parseMetric', this.executionCost);
dict.set('parseMetricNegative', this.nonExecutionCost);
}
}
// ===========================================================================
class Funktion extends CompilationUnit {
constructor(name, start, end, script) {
super();
if (start < 0) throw "invalid start position: " + start;
if (script.isEval) {
if (end < start) throw 'invalid start end positions';
} else {
if (end <= 0) throw 'invalid end position: ' + end;
if (end <= start) throw 'invalid start end positions';
}
this.name = name;
this.start = start;
this.end = end;
this.script = script;
this.parent = null;
this.nested = [];
this.nestingLevel = 0;
if (script) this.script.addFunktion(this);
}
finalize() {
this.lastParseEventTimestamp = Math.max(
this.preparseTimestamp + this.preparseDuration,
this.parseTimestamp + this.parseDuration,
this.resolutionTimestamp + this.resolutionDuration);
if (!(this.lastParseEventTimestamp > 0)) this.lastParseEventTimestamp = 0;
this.lastEventTimestamp =
Math.max(this.lastParseEventTimestamp, this.executionTimestamp);
if (!(this.lastEventTimestamp > 0)) this.lastEventTimestamp = 0;
this.ownBytes = this.nested.reduce(
(bytes, each) => bytes - each.getBytes(), this.getBytes());
super.finalize();
}
getMetricBytes(name) {
if (name == 'lazyCompileTimestamp') return this.getOwnBytes();
return this.getOwnBytes();
}
getMetricDuration(name) {
if (name in kNoTimeMetrics) return 0;
return this[name];
}
isNestedIn(funktion) {
if (this.script != funktion.script) throw "Incompatible script";
return funktion.start < this.start && this.end <= funktion.end;
}
isToplevel() {
return this.parent === null;
}
containsPosition(position) {
return this.start <= position && position <= this.end;
}
accumulateNestingLevel(accumulator) {
let value = accumulator[this.nestingLevel] || 0;
accumulator[this.nestingLevel] = value + this.getOwnBytes();
}
addNestedFunktion(child) {
if (this.script != child.script) throw "Incompatible script";
if (child == null) throw "Nesting non child";
this.nested.push(child);
if (this.nested.length > 1) {
// Make sure the nested children don't overlap and have been inserted in
// byte start position order.
let last = this.nested[this.nested.length - 2];
if (last.end > child.start || last.start > child.start ||
last.end > child.end || last.start > child.end) {
throw "Wrongly nested child added";
}
}
child.nestingLevel = this.nestingLevel + 1;
return child.nestingLevel;
}
getBytes() {
return this.end - this.start;
}
getOwnBytes() {
return this.ownBytes;
}
didMetricChange(time, delta, name) {
let value = this[name + 'Timestamp'];
return (time - delta) <= value && value <= (time + delta);
}
print() {
console.log(this.toString());
}
toString(details = true) {
let result = 'function' + (this.name ? ' ' + this.name : '') +
`() range=${this.start}-${this.end}`;
if (details) result += ` script=${this.script ? this.script.id : 'X'}`;
return result;
}
}
// ===========================================================================
const kTimestampFactor = 1000;
const kSecondsToMillis = 1000;
function toTimestamp(microseconds) {
return microseconds / kTimestampFactor
}
function startOf(timestamp, time) {
let result = toTimestamp(timestamp) - time;
if (result < 0) throw "start timestamp cannnot be negative";
return result;
}
class ParseProcessor extends LogReader {
constructor() {
super();
this.dispatchTable_ = {
// Avoid accidental leaking of __proto__ properties and force this object
// to be in dictionary-mode.
__proto__: null,
// "function",{event type},
// {script id},{start position},{end position},{time},{timestamp},
// {function name}
'function': {
parsers: [
parseString, parseInt, parseInt, parseInt, parseFloat, parseInt,
parseString
],
processor: this.processFunctionEvent
},
// "compilation-cache","hit"|"put",{type},{scriptid},{start position},
// {end position},{timestamp}
'compilation-cache': {
parsers:
[parseString, parseString, parseInt, parseInt, parseInt, parseInt],
processor: this.processCompilationCacheEvent
},
'script': {
parsers: [parseString, parseInt, parseInt],
processor: this.processScriptEvent
},
// "script-details", {script_id}, {file}, {line}, {column}, {size}
'script-details': {
parsers: [parseInt, parseString, parseInt, parseInt, parseInt],
processor: this.processScriptDetails
},
'script-source': {
parsers: [parseInt, parseString, parseString],
processor: this.processScriptSource
},
};
this.functionEventDispatchTable_ = {
// Avoid accidental leaking of __proto__ properties and force this object
// to be in dictionary-mode.
__proto__: null,
'full-parse': this.processFull.bind(this),
'parse-function': this.processParseFunction.bind(this),
// TODO(cbruni): make sure arrow functions emit a normal parse-function
// event.
'parse': this.processParseFunction.bind(this),
'parse-script': this.processParseScript.bind(this),
'parse-eval': this.processParseEval.bind(this),
'preparse-no-resolution': this.processPreparseNoResolution.bind(this),
'preparse-resolution': this.processPreparseResolution.bind(this),
'first-execution': this.processFirstExecution.bind(this),
'compile-lazy': this.processCompileLazy.bind(this),
'compile': this.processCompile.bind(this),
'compile-eval': this.processCompileEval.bind(this),
'optimize-lazy': this.processOptimizeLazy.bind(this),
'deserialize': this.processDeserialize.bind(this),
};
this.idToScript = new Map();
this.fileToScript = new Map();
this.nameToFunction = new Map();
this.scripts = [];
this.totalScript = new TotalScript();
this.firstEventTimestamp = -1;
this.lastParseEventTimestamp = -1;
this.lastEventTimestamp = -1;
}
print() {
console.log("scripts:");
this.idToScript.forEach(script => script.print());
}
processString(string) {
let end = string.length;
let current = 0;
let next = 0;
let line;
let i = 0;
let entry;
while (current < end) {
next = string.indexOf("\n", current);
if (next === -1) break;
i++;
line = string.substring(current, next);
current = next + 1;
this.processLogLine(line);
}
this.postProcess();
}
processLogFile(fileName) {
this.collectEntries = true
this.lastLogFileName_ = fileName;
var line;
while (line = readline()) {
this.processLogLine(line);
}
this.postProcess();
}
postProcess() {
this.scripts = Array.from(this.idToScript.values())
.filter(each => !each.isNative);
this.scripts.forEach(script => {
script.finalize();
script.calculateMetrics(false)
});
this.scripts.forEach(script => this.totalScript.addAllFunktions(script));
this.totalScript.calculateMetrics(true);
this.firstEventTimestamp = this.totalScript.timestampMin(
this.scripts.map(each => each.firstEventTimestamp));
this.lastParseEventTimestamp = this.totalScript.timestampMax(
this.scripts.map(each => each.lastParseEventTimestamp));
this.lastEventTimestamp = this.totalScript.timestampMax(
this.scripts.map(each => each.lastEventTimestamp));
const series = {
firstParseEvent: 'Any Parse Event',
parse: 'Parsing',
preparse: 'Preparsing',
resolution: 'Preparsing with Var. Resolution',
lazyCompile: 'Lazy Compilation',
compile: 'Eager Compilation',
execution: 'First Execution',
};
let metrics = Object.keys(series);
this.totalScript.getAccumulatedTimeMetrics(
metrics, 0, this.lastEventTimestamp, 10);
}
processFunctionEvent(
eventName, scriptId, startPosition, endPosition, duration, timestamp,
functionName) {
let handlerFn = this.functionEventDispatchTable_[eventName];
if (handlerFn === undefined) {
console.error('Couldn\'t find handler for function event:' + eventName);
}
handlerFn(
scriptId, startPosition, endPosition, duration, timestamp,
functionName);
}
addEntry(entry) {
this.entries.push(entry);
}
lookupScript(id) {
return this.idToScript.get(id);
}
getOrCreateFunction(
scriptId, startPosition, endPosition, duration, timestamp, functionName) {
if (scriptId == -1) {
return this.lookupFunktionByRange(startPosition, endPosition);
}
let script = this.lookupScript(scriptId);
let funktion = script.getFunktionAtStartPosition(startPosition);
if (funktion === void 0) {
funktion = new Funktion(functionName, startPosition, endPosition, script);
}
return funktion;
}
// Iterates over all functions and tries to find matching ones.
lookupFunktionsByRange(start, end) {
let results = [];
this.idToScript.forEach(script => {
script.forEach(funktion => {
if (funktion.startPostion == start && funktion.endPosition == end) {
results.push(funktion);
}
});
});
return results;
}
lookupFunktionByRange(start, end) {
let results = this.lookupFunktionsByRange(start, end);
if (results.length != 1) throw "Could not find unique function by range";
return results[0];
}
processScriptEvent(eventName, scriptId, timestamp) {
let script = this.idToScript.get(scriptId);
switch (eventName) {
case 'create':
case 'reserve-id':
case 'deserialize': {
if (script !== undefined) return;
script = new Script(scriptId);
this.idToScript.set(scriptId, script);
if (eventName == 'deserialize') {
script.deserializationTimestamp = toTimestamp(timestamp);
}
return;
}
case 'background-compile':
if (script.isBackgroundCompiled) {
throw 'Cannot background-compile twice';
}
script.isBackgroundCompiled = true;
// TODO(cbruni): remove once backwards compatibility is no longer needed.
script.isStreamingCompiled = true;
// TODO(cbruni): fix parse events for background compilation scripts
script.preparseTimestamp = toTimestamp(timestamp);
return;
case 'streaming-compile':
if (script.isStreamingCompiled) throw 'Cannot stream-compile twice';
// TODO(cbruni): remove once backwards compatibility is no longer needed.
script.isBackgroundCompiled = true;
script.isStreamingCompiled = true;
// TODO(cbruni): fix parse events for background compilation scripts
script.preparseTimestamp = toTimestamp(timestamp);
return;
default:
console.error('Unhandled script event: ' + eventName);
}
}
processScriptDetails(scriptId, file, startLine, startColumn, size) {
let script = this.lookupScript(scriptId);
script.setFile(file);
}
processScriptSource(scriptId, url, source) {
let script = this.lookupScript(scriptId);
script.source = source;
}
processParseEval(
scriptId, startPosition, endPosition, duration, timestamp, functionName) {
if (startPosition != 0 && startPosition != -1) {
console.error('Invalid start position for parse-eval', arguments);
}
let script = this.processParseScript(...arguments);
script.isEval = true;
}
processFull(
scriptId, startPosition, endPosition, duration, timestamp, functionName) {
if (startPosition == 0) {
// This should only happen for eval.
let script = this.lookupScript(scriptId);
script.isEval = true;
return;
}
let funktion = this.getOrCreateFunction(...arguments);
// TODO(cbruni): this should never happen, emit differen event from the
// parser.
if (funktion.parseTimestamp > 0) return;
funktion.parseTimestamp = startOf(timestamp, duration);
funktion.parseDuration = duration;
}
processParseFunction(
scriptId, startPosition, endPosition, duration, timestamp, functionName) {
let funktion = this.getOrCreateFunction(...arguments);
funktion.parseTimestamp = startOf(timestamp, duration);
funktion.parseDuration = duration;
}
processParseScript(
scriptId, startPosition, endPosition, duration, timestamp, functionName) {
// TODO timestamp and duration
let script = this.lookupScript(scriptId);
let ts = startOf(timestamp, duration);
script.parseTimestamp = ts;
script.parseDuration = duration;
return script;
}
processPreparseResolution(
scriptId, startPosition, endPosition, duration, timestamp, functionName) {
let funktion = this.getOrCreateFunction(...arguments);
// TODO(cbruni): this should never happen, emit different event from the
// parser.
if (funktion.resolutionTimestamp > 0) return;
funktion.resolutionTimestamp = startOf(timestamp, duration);
funktion.resolutionDuration = duration;
}
processPreparseNoResolution(
scriptId, startPosition, endPosition, duration, timestamp, functionName) {
let funktion = this.getOrCreateFunction(...arguments);
funktion.preparseTimestamp = startOf(timestamp, duration);
funktion.preparseDuration = duration;
}
processFirstExecution(
scriptId, startPosition, endPosition, duration, timestamp, functionName) {
let script = this.lookupScript(scriptId);
if (startPosition === 0) {
// undefined = eval fn execution
if (script) {
script.executionTimestamp = toTimestamp(timestamp);
}
} else {
let funktion = script.getFunktionAtStartPosition(startPosition);
if (funktion) {
funktion.executionTimestamp = toTimestamp(timestamp);
} else {
// TODO(cbruni): handle funktions from compilation-cache hits.
}
}
}
processCompileLazy(
scriptId, startPosition, endPosition, duration, timestamp, functionName) {
let funktion = this.getOrCreateFunction(...arguments);
funktion.lazyCompileTimestamp = startOf(timestamp, duration);
funktion.lazyCompileDuration = duration;
}
processCompile(
scriptId, startPosition, endPosition, duration, timestamp, functionName) {
let script = this.lookupScript(scriptId);
if (startPosition === 0) {
script.compileTimestamp = startOf(timestamp, duration);
script.compileDuration = duration;
script.bytesTotal = endPosition;
return script;
} else {
let funktion = script.getFunktionAtStartPosition(startPosition);
if (funktion === undefined) {
// This should not happen since any funktion has to be parsed first.
console.error('processCompile funktion not found', ...arguments);
return;
}
funktion.compileTimestamp = startOf(timestamp, duration);
funktion.compileDuration = duration;
return funktion;
}
}
processCompileEval(
scriptId, startPosition, endPosition, duration, timestamp, functionName) {
let compilationUnit = this.processCompile(...arguments);
compilationUnit.isEval = true;
}
processOptimizeLazy(
scriptId, startPosition, endPosition, duration, timestamp, functionName) {
let compilationUnit = this.lookupScript(scriptId);
if (startPosition > 0) {
compilationUnit =
compilationUnit.getFunktionAtStartPosition(startPosition);
if (compilationUnit === undefined) {
// This should not happen since any funktion has to be parsed first.
console.error('processOptimizeLazy funktion not found', ...arguments);
return;
}
}
compilationUnit.optimizationTimestamp = startOf(timestamp, duration);
compilationUnit.optimizationDuration = duration;
}
processDeserialize(
scriptId, startPosition, endPosition, duration, timestamp, functionName) {
let compilationUnit = this.lookupScript(scriptId);
if (startPosition === 0) {
compilationUnit.bytesTotal = endPosition;
} else {
compilationUnit = this.getOrCreateFunction(...arguments);
}
compilationUnit.deserializationTimestamp = startOf(timestamp, duration);
compilationUnit.deserializationDuration = duration;
}
processCompilationCacheEvent(
eventType, cacheType, scriptId, startPosition, endPosition, timestamp) {
if (eventType !== 'hit') return;
let compilationUnit = this.lookupScript(scriptId);
if (startPosition > 0) {
compilationUnit =
compilationUnit.getFunktionAtStartPosition(startPosition);
}
compilationUnit.addCompilationCacheHit(toTimestamp(timestamp));
}
}
class ArgumentsProcessor extends BaseArgumentsProcessor {
getArgsDispatch() {
return {};
}
getDefaultResults() {
return {
logFileName: 'v8.log',
range: 'auto,auto',
};
}
}
```
|
Albert "Papa" French (November 16, 1910 – September 28, 1977) was an American jazz musician, banjo player, and band leader in New Orleans.
He was a banjo player in the Original Tuxedo Brass Band of New Orleans. This band was founded in 1910 and led for 44 years by Papa Celestin. After the death of Papa Celestin in 1954, leadership was briefly taken over by trombonist Eddie Pierson until his death in 1958. The leadership of the band fell to Banjo player Albert French, who was called "Papa" French as a token of endearment of the Late Papa Celestin. Papa French led the band until his death in 1977.
He released the traditional jazz LP A Night At Dixieland Hall, recorded live in 1965. Released on the Nobility label as Nobility 702, this set was recorded at Dixieland Hall, 522 Bourbon Street, New Orleans. It featured Jeanette Kimball on Piano, Louis Barbarin on drums (incorrectly spelled "Louise" on the LP liner notes), Steward Davis on Bass Fiddle, Joseph "Cornbread" Thomas on Clarinet and Vocals, Waldren "Frog" Joseph on Trombone, Wendell Eugene on Trombone, and the well known Alvin Alcorn on Trumpet.
Albert's son Bob French was a successful New Orleans musician and radio host who led the Tuxedo Jazz Band for decades after the death of his father in 1977.
Jazz musicians from New Orleans
1977 deaths
1910 births
|
Kidman's Tree of Knowledge is a heritage-listed tree at Glengyle Station, Bedourie, Shire of Diamantina, Queensland, Australia. It is also known as Tree of Knowledge. It was added to the Queensland Heritage Register on 21 October 1992.
History
Kidman's Tree of Knowledge is located on Glengyle Station in Queensland's Diamantina district and has become associated with Sir Sidney Kidman and the vast pastoral empire he established in the Australian interior in the late 19th and early 20th centuries.
The mature coolibah (Eucalyptus coolibah) is reputedly the tree under which Sidney Kidman camped when contemplating the development of his pastoral empire in Western Queensland. Glengyle Station on which the tree is situated subsequently proved to be the most important in Kidman's chain of properties that eventually stretched from the Barkly Tableland through to the Barrier Range in South Australia. However, while Kidman visited and purchased stock from Glengyle he did not acquire the leasehold until 1913.
Although European explorers had passed through the Diamantina district in the 1840s and early 1860s, pastoralists did not occupy this semi-arid region until the mid-1870s. In 1876 Patrick Drinan took up Annandale Station and Duncan McGregor took up Glengyle. Also taken up at this period were Sandringham and Carcory in 1877 and Dubbo Downs in 1878. The towns of Birdsville and Bedourie developed in the late 1870s/early 1880s to service these newly established Channel Country runs. The Diamantina and Georgina rivers, Cooper and Eyre creeks are part of a network of western Queensland waterways known as the Channel Country. They draw water from an area of 566,000 square kilometres. These systems contain innumerable waterholes of various depth and length that generally last throughout the dry season, however, after rain, the network of rivers, creeks and channels links together, stretching out over a vast floodplain like fingers, hence the name Channel Country. While some of the properties such as Glengyle border the Simpson Desert and have many square kilometres of sand dunes, the natural irrigation following the tropical north wet season means the land is ideal for grazing cattle.
Sidney Kidman was born on 9 May 1857 at Athelstone near Adelaide, the son of English immigrants. At about 13 years of age he left home and made his way north to Poolamacca Station in the Barrier Range where he met up with his brother, George. He acquired work with George Raines, a landless bushman who travelled the countryside taking advantage of unfenced lands where there was good feeding for his stock. It was at this time that Kidman learnt numerous bush survival skills and came to appreciate the knowledge and skills of the Aboriginal people.
In the early 1870s Kidman obtained work on various stations, drove cattle and bullocks, carted goods, opened a butcher's shop at Cobar shortly after the rush started and soon after went into business with his brother droving, buying stock and dealing. They took on mail contracts, ran a butchery in Broken Hill and in the 1890s started buying pastoral leaseholds as Kidman Brothers.
As a young man Sidney Kidman had talked widely with cattlemen about the Australian interior and in his travels buying and selling stock, realised the value of Channel Country land. His aim was to acquire a chain of properties so that in times of drought cattle could be moved from properties badly affected to areas with good grass. Eventually Kidman acquired two strings of properties. The first or "main chain" stretched from the Barkly Tablelands near the Gulf of Carpentaria down through the Channel Country of western Queensland and along the Birdsville Track to the rail head at Maree in South Australia. The second chain of stations followed the Overland Telegraph line from the Fitzroy River and Victoria River Downs Station in the north to Wilpena Station in the Flinders Ranges near Adelaide. The development of the Kidman empire in Queensland stems from Kidman Brothers' acquisition of Annandale in the Channel Country in 1896.
As result of his acquisitions, his knowledge of the bush and his business acumen Kidman's empire was able to survive the depression of the 1890s and the drought of 1899-1902.
The Pastoralists' Review of 16 September 1903 featured an interview with Sidney Kidman, the "Cattle King". It included biographical information about his life and detailed the properties he then owned: In the Northern Territory: Victoria Downs, with its 45,000 head of cattle, Newcastle Waters, Austral Downs; South Australia: Lake Albert, Eringa, Peake, Macumba, Mount Nor'-West, Clayton, Coongy on the cooper, Pandie Pandyie on the Diamantina, Alton Downs; and Queensland: Annandale, Collegwairi, Dubbo, Cartrey, Rocklands, Monkira, Bulla Downs; in New South Wales: Wompah and Tickelara. Kidman continued to buy properties, buy and sell cattle and horses and manage his properties while almost continuously on the move. He kept abreast of market fluctuations, weather conditions and what was happening on his properties, via the telegraph.
While Kidman abhorred wastefulness and was known to sack employees who exhibited such traits, he was also known to be generous to deserving causes. He gained a reputation for munificence to the war effort, his World War I donations including wool, meat, horses, ambulances and warplanes. In monetary terms this patriotic generosity amounted to hundreds of thousands of pounds. In 1921 he was knighted for his contribution to the war effort.
The leasehold to Glengyle Station was transferred several times after Duncan McGregor took up the run in 1876. The London Bank of Australia held the lease until William Frederick Buchanan had purchased the Glengyle holding by October 1907. Following the death of this Narrabri grazier in 1911 the lease was transferred to William Buchanan and Charles Henry Buchanan.
The 1008 square mile Glengyle leasehold became part of the Kidman empire in 1913 when he purchased the lease from the Buchanans for . Kidman had long wanted Glengyle Station for its size and its permanent deep waterholes on the Georgina River, its plains and flats of lignum and saltbush, and its strategic position adjoining his Queensland properties of Sandringham, Kaliduwarry, Dubbo Downs and Annandale. Moreover, Glengyle, between Eyre Creek and the sand hills of the Simpson Desert, did not always need to rely on local rainfall. In good seasons it is drained by channels fed by the northern monsoon. The property proved pivotal to the Kidman holdings in the Lake Eyre Basin and is still held by the family firm S Kidman and Company.
Kidman had married in 1885 and raised a family of 3 daughters and one son in Adelaide. Kidman retired in 1927 but his children continued to run the family business empire from Adelaide. On 2 September 1935, aged 78 years, Sir Sidney Kidman passed away in Adelaide and his only son, Walter Sidney Palethorpe (b.1900) took over as chairman of the Kidman empire.
The Kidman Tree of Knowledge has been described as "one of the state's most famous living monuments to the king". It is valued by both the local community and visitors as a tangible link with Sir Sidney Kidman, a pioneer who successfully created a pastoral empire in the vast remote interior of Australia, encompassing approximately 3.5% of the Australian continent.
Description
Kidman's Tree of Knowledge is situated on Glengyle Station on the western bank of Eyre Creek, about south of Bedourie.
It is located in the centre of a grassed square formed by Glengyle homestead and associated buildings and is healthy and mature.
Heritage listing
Kidman's Tree of Knowledge was listed on the Queensland Heritage Register on 21 October 1992 having satisfied the following criteria.
The place is important in demonstrating the evolution or pattern of Queensland's history.
For the many people who worked for Sir Sidney Kidman and for those who continue to be associated with Kidman Holdings, Kidman's Tree of Knowledge on Glengyle Station is significant for its association with Sir Sidney Kidman.For local people and visitors alike Kidman's tree of Knowledge is a tangible link with Sir Sidney Kidman, a pioneer who is recognised as having created a successful pastoral empire in the vast remote interior of Australia in the late 19th and early 20th centuries. The Tree of Knowledge is significant for its association with prominent Australian pastoralist Sir Sidney Kidman, who through business acumen, knowledge of the land he traversed and hard work, acquired a string of pastoral runs in the Australian interior (in Queensland, New South Wales, Northern Territory and Western Australia), where his stock could be moved from property to property to withstand the impact of drought. Whether Sir Sidney Kidman sat under this Coolibah tree near the Glengyle homestead is not known. It is, however, the perception or mythology of Kidman's association with this tree that is significant.
The place has a strong or special association with a particular community or cultural group for social, cultural or spiritual reasons.
For the many people who worked for Sir Sidney Kidman and for those who continue to be associated with Kidman Holdings, Kidman's Tree of Knowledge on Glengyle Station is significant for its association with Sir Sidney Kidman.For local people and visitors alike Kidman's tree of Knowledge is a tangible link with Sir Sidney Kidman, a pioneer who is recognised as having created a successful pastoral empire in the vast remote interior of Australia in the late 19th and early 20th centuries.
The place has a special association with the life or work of a particular person, group or organisation of importance in Queensland's history.
The Tree of Knowledge is significant for its association with prominent Australian pastoralist Sir Sidney Kidman, who through business acumen, knowledge of the land he traversed and hard work, acquired a string of pastoral runs in the Australian interior (in Queensland, New South Wales, Northern Territory and Western Australia), where his stock could be moved from property to property to withstand the impact of drought. Whether Sir Sidney Kidman sat under this Coolibah tree near the Glengyle homestead is not known. It is, however, the perception or mythology of Kidman's association with this tree that is significant.
See also
List of individual trees
References
Attribution
External links
Queensland Heritage Register
Bedourie, Queensland
Individual trees in Queensland
Articles incorporating text from the Queensland Heritage Register
|
```ruby
require 'xcodeproj'
module Fastlane
module Actions
module SharedValues
GENERATE_TEST_SCHEME_CUSTOM_VALUE = :GENERATE_TEST_SCHEME_CUSTOM_VALUE
end
class GenerateTestSchemeAction < Action
def self.run(params)
targets_to_test = params[:targets].select { |target| !target.empty? }
scheme_name = params[:scheme_name]
generated_scheme_name = "#{scheme_name}_generated"
workspace_path = params[:workspace_path]
workspace = Xcodeproj::Workspace.new_from_xcworkspace(workspace_path)
scheme_project_path = workspace.schemes.find { |k, v| k == scheme_name }&.last
UI.user_error!("Couldn't find project for scheme '#{scheme_name}' in workspace '#{workspace_path}'") unless scheme_project_path
pods_project_path = workspace.schemes.find { |k, v| v.include?('Pods.xcodeproj') }&.last
UI.user_error!("Couldn't find project 'Pods.xcodeproj' in workspace '#{workspace_path}'") unless pods_project_path
main_project = Xcodeproj::Project.open(scheme_project_path)
pods_project = Xcodeproj::Project.open(pods_project_path)
UI.message "Found main project at: '#{main_project.path}'"
UI.message "Found pods project at: '#{pods_project.path}'"
scheme_path = File.join(main_project.path, 'xcshareddata', 'xcschemes', "#{scheme_name}.xcscheme")
UI.user_error!("Couldn't find scheme '#{scheme_name}' in project '#{scheme_project_path}'.
Make sure that the scheme is shared.") unless File.exist?(scheme_path)
scheme = Xcodeproj::XCScheme.new(scheme_path)
UI.message "Found scheme '#{scheme_name}' in project '#{main_project.path}'"
UI.message "Finding test targets in the Pods project..."
testables = pods_project.native_targets.select { |target|
target.test_target_type? == true && (targets_to_test.empty? || targets_to_test.include?(target.name))
}.map { |target|
UI.message " - #{target.name}"
Xcodeproj::XCScheme::TestAction::TestableReference.new(target, main_project)
}
if testables.empty?
UI.user_error! "No test targets found in the Pods project" + (targets_to_test.empty? ? "" : " (filter: '#{targets_to_test.join(', ')}')") if testables.empty?
end
scheme.test_action.testables = testables
scheme.save_as(scheme_project_path, generated_scheme_name)
UI.message "Saved generated scheme '#{generated_scheme_name}' to project '#{scheme_project_path}'"
generated_scheme_name
end
#####################################################
# @!group Documentation
#####################################################
def self.description
"Generate a scheme containing all test targets from pods"
end
def self.details
"Creates a scheme aggegating all test targets from pod projects in given workspace.\nGenerated scheme is based on template scheme given as parameter."
end
def self.available_options
[
FastlaneCore::ConfigItem.new(key: :scheme_name,
description: "Initial scheme name for GenerateTestSchemeAction", # a short description of this parameter
verify_block: proc do |value|
UI.user_error!("No scheme for GenerateTestSchemeAction given, pass using `scheme_name: 'MyScheme'`") unless (value and not value.empty?)
end),
FastlaneCore::ConfigItem.new(key: :workspace_path,
description: "Path to workspace file", # a short description of this parameter
verify_block: proc do |value|
UI.user_error!("No workspace path given, pass using `workspace_path: 'path/to/file.xcworkspace'`") unless (value and not value.empty?)
UI.user_error!("Couldn't find workspace file at path '#{value}'") unless File.exist?(value)
end),
FastlaneCore::ConfigItem.new(key: :targets,
description: "List of targets to test. If not specified, all packages in the workspace will be tested",
is_string: false,
type: Array,
optional: true)
]
end
def self.return_value
"Generated scheme name"
end
def self.is_supported?(platform)
platform == :ios
end
end
end
end
```
|
Tim or Timothy Kelly may refer to:
Tim Kelly (Alaska politician) (1944–2009), Alaska state legislator
Tim Kelly (Minnesota politician) (born 1964), Minnesota politician and a member of the Minnesota House of Representatives
Tim Kelly (Michigan politician) (born 1956), member of the Michigan House of Representatives
Tim Kelly (Tennessee politician) (born 1967), mayor of Chattanooga
Tim Kelly (footballer) (born 1994), Australian footballer for West Coast
Tim Kelly (musician) (1963–1998), American guitarist for the band Slaughter
Tim Kelly (playwright) (1937–1998), American playwright
Tim David Kelly, American musician, songwriter and record producer
Tim T. Kelly, American media executive, film producer, and conservationist
Tim Kelly (American football) (born 1986), American football coach
Timothy Kelly (sports executive), American lacrosse executive
Timothy J. Kelly (born 1969), United States District Judge
See also
Tim O'Kelly (1941–1990), American actor
|
Little Bedwyn (also spelt Little Bedwin, and sometimes called Bedwyn Parva) is a village and civil parish on the River Dun in Wiltshire, England, about south-west of the market town of Hungerford in neighbouring Berkshire. The parish includes the hamlet of Chisbury.
The Kennet and Avon Canal and the Reading to Taunton railway line follow the Dun and pass through the village. Little Bedwyn is served by Bedwyn railway station, which is about south-west of the village at Great Bedwyn.
History
About west of Little Bedwyn is Chisbury Camp, an Iron Age hillfort consisting of earthworks which enclose some . Within the camp is the former St Martin's chapel, a Decorated Gothic building of flint, now a farm building. Bedwyn Dyke, an early medieval fortification with similarities to the Wansdyke, stretches some 2.8 km southeast from the hillfort.
Most of Little Bedwyn was part of a larger estate called Bedwyn, which in the early Middle Ages was held by the kings of Wessex and of England. Tenants of the king included (from c.1211) John Russell; a member of the family seated at Kingston Russell, Dorset, he was a household knight of King John. His descendants included William Russell (1257–1311), administrator and defender of the Isle of Wight, elected to parliament for one session to represent Great Bedwyn. The Victoria County History traces later owners.
Anciently the whole parish was within Savernake Forest, but after a redrawing of the forest's boundaries in 1330 only the western part remained in it.
The National Gazetteer of Great Britain and Ireland of 1868 says of Little Bedwyn:
In the mid 19th century there was some uncertainty as to whether the parish included about of Savernake Forest lying at the parish's western end, but by the 1880s it had been decided that the land was part of the parish. From then until 1987 the total size of the parish was . In 1987, an area of was transferred to Great Bedwyn.
The population of the parish has fluctuated in recent centuries. Between 1801 and 1871 it rose from 428 to 579, but since then it has fallen gradually and in 2001 stood at 280.
Surrealist singer and poet Ivor Cutler made reference to the village on his final recorded album, 1998's A Flat Man, via the track "Empty Road at Little Bedwyn".
Parish church
The Church of England parish church of St. Michael at Little Bedwyn is at the north end of the village, on the bank of the River Dun. It was built in the 12th or 13th century, although the tall and narrow nave has the proportions of an earlier Anglo-Saxon church. The oldest parts are the three-bay north and south arcades, from the late 12th century and early 13th respectively, although their carved details were restored in the 19th century.
All the windows are from the 15th century, as is the south porch; around that time the west tower was rebuilt and the spire added. The architect C. E. Ponting wrote in 1895 that the aisles and chancel were also rebuilt from the ground up in the mid-15th century. The church is built of flint rubble with Bath stone dressings; the spire is entirely Bath stone. The roof of the north aisle is from c.1500, while the roofs of the chancel and nave were replaced in 1841.
Extensive restoration was carried out by T.H. Wyatt in 1868. The work included the building of the north vestry, and new furnishings. The round window over the south door is also 19th-century. Fragments of medieval glass were fitted into the north window of the chancel; Pevsner dismisses the east window of 1869 as "terrible".
The spire was dismantled and rebuilt in 1963 after being struck by lightning. The church was designated as Grade I listed in 1966. The listing states that the octagonal limestone font is 19th-century but Orbach places it in the 14th.
The four bells in the tower were augmented by a fifth in 2014. The oldest two are from the 17th century.
Prebend and parish
In the Middle Ages, the church at Little Bedwyn was a chapel of the parish church at Great Bedwyn, and the rector of Great Bedwyn had prebendal rights over Little Bedwyn. The church had its own graveyard, and from 1554, when a vicar was appointed, it had the status of a parish church. From around this time, its area extended to Chisbury. After St Katharine's church was built for the Tottenham House estate, the parish created for it in 1864 took the western third of Little Bedwyn parish.
Today the parish, alongside eleven others, is within the area of the Savernake team ministry.
St. Michael's parish registers are in the Wiltshire and Swindon History Centre and cover the years 1722–1857 (baptisms), 1722–1959 (marriages), and 1722–1919 (burials).
Notable people
Henry Randall, Archdeacon of Bristol, was born at Little Bedwyn in 1808.
Sir Felix Pole, who worked his way up to be general manager of the Great Western Railway in the 1920s, was born at Little Bedwyn and is buried there. Lorenzo Quelch, trade unionist and Reading councillor, was born at Little Bedwyn in 1862. The Spanish-born philanthropist Delfina Entrecanales bought a farm with cottages at Little Bedwyn in the 1970s, and set up a recording studio there.
See also
Little Bedwyn Lock
St Martin's Chapel, Chisbury
References
External links
Little Bedwyn Parish Council
Villages in Wiltshire
Civil parishes in Wiltshire
|
Catahoula National Wildlife Refuge, located in east central Louisiana, United States, east of Jena, was established in 1958 as a wintering area for migratory waterfowl. The refuge contains divided into two units. The Headquarters Unit borders nine miles (14 km) of the northeast shore of Catahoula Lake, a natural wetland renowned for its large concentrations of migratory waterfowl. The Bushley Bayou Unit, located west of Jonesville, was established May 16, 2001. This acquisition was made possible through a partnership agreement between The Conservation Fund, American Electric Power, and the Fish and Wildlife Service. The habitat found at the refuge is primarily lowland hardwood forest subject to seasonal backwater flooding from the Ouachita, and Red Rivers.
Wildlife
White-tailed deer, small game mammals, songbirds, raptors, waterbirds, reptiles, and amphibians are commonly seen throughout the refuge. Waterfowl are abundant during the winter. Peak waterfowl populations of 75,000 ducks have been recorded. In 1979, the Duck Lake Impoundment was created to provide of waterfowl habitat. Management of the impoundment is to manipulate water levels to promote the growth of aquatic and moist soil vegetation. In 2001, Catahoula NWR was designated a Globally Important Bird Area. Catahoula Lake is recognized as a Wetlands of International Importance (Ramsar site): a historic concentration area for shorebirds, waterbirds, and migrating/wintering waterfowl. Catahoula NWR also borders a portion of the Dewey Wills Wildlife Management Area. Together, these areas provide a haven for wildlife and preserve representative samples of the unique habitats originally found in the Lower Mississippi River Ecosystem.
See also
List of National Wildlife Refuges: Louisiana
References
Protected areas of Catahoula Parish, Louisiana
Protected areas of LaSalle Parish, Louisiana
National Wildlife Refuges in Louisiana
Protected areas established in 1958
Wetlands and bayous of Louisiana
Landforms of Catahoula Parish, Louisiana
Landforms of LaSalle Parish, Louisiana
|
```go
// Unless explicitly stated otherwise all files in this repository are licensed
// This product includes software developed at Datadog (path_to_url
//go:build !windows && kubeapiserver
//go:generate go run ../../pkg/config/render_config.go dca ../../pkg/config/config_template.yaml ../../Dockerfiles/cluster-agent/datadog-cluster.yaml
package main
import (
_ "expvar" // Blank import used because this isn't directly used in this file
_ "net/http/pprof" // Blank import used because this isn't directly used in this file
"os"
"github.com/DataDog/datadog-agent/cmd/cluster-agent/command"
"github.com/DataDog/datadog-agent/cmd/cluster-agent/subcommands"
"github.com/DataDog/datadog-agent/pkg/util/flavor"
"github.com/DataDog/datadog-agent/pkg/util/log"
)
func main() {
// set the Agent flavor
flavor.SetFlavor(flavor.ClusterAgent)
ClusterAgentCmd := command.MakeCommand(subcommands.ClusterAgentSubcommands())
if err := ClusterAgentCmd.Execute(); err != nil {
log.Error(err)
os.Exit(-1)
}
}
```
|
Zhang Ji (died 196) was a military general serving under the warlord Dong Zhuo during the late Eastern Han dynasty of China.
Life
Zhang Ji was from Zuli County (), Wuwei Commandery (), which is in present-day Jingyuan County, Gansu. He started his career as a subordinate of Niu Fu, a son-in-law of the warlord Dong Zhuo, who controlled the Han central government and the figurehead Emperor Xian from 189 to 192. In 192, Niu Fu ordered Zhang Ji to join Li Jue and Guo Si in leading troops to attack the general Zhu Jun at Zhongmu County () and pillage Chenliu () and Yingchuan () commanderies.
After Dong Zhuo was assassinated in Chang'an in 192, Li Jue, Guo Si, Zhang Ji and other former followers of Dong Zhuo requested amnesty from Wang Yun, who replaced Dong Zhuo as the new head of the central government. However, Wang Yun refused and wanted to have all of them executed. Heeding Jia Xu's advice, Li Jue, Guo Si, Zhang Ji and Dong Zhuo's former followers led their troops to attack Chang'an and succeeded in driving away Lü Bu and seizing control of the central government. Zhang Ji was then appointed as General Who Guards the East () and ordered to station at a military garrison in Hongnong Commandery (). He was also enfeoffed as the Marquis of Pingyang ().
In 195, when internal conflict broke out between Li Jue and Guo Si in Chang'an, Zhang Ji succeeded in mediating the conflict and persuading both sides to make peace. Zhang Ji also suggested letting Emperor Xian leave Chang'an and return to the old imperial capital, Luoyang. Emperor Xian then promoted Zhang Ji to General of Agile Cavalry (). However, Zhang Ji later had disagreements with the generals Yang Feng and Dong Cheng, who were escorting Emperor Xian back to Luoyang, so he allied with Li Jue and Guo Si to attack Yang Feng and Dong Cheng in an attempt to capture Emperor Xian and bring him back to Chang'an. However, the emperor had already escaped and taken shelter under the warlord Zhang Yang.
In 196, Zhang Ji led his troops out of the Guanzhong region and moved to Nanyang Commandery () in northern Jing Province. He then attempted to conquer Rang County (穰縣; present-day Dengzhou, Henan), but was killed by a stray arrow in the midst of battle.
Zhang Ji's nephew, Zhang Xiu, made peace with Liu Biao, the Governor of Jing Province, who allowed him to stay at Wan County (宛縣; or Wancheng 宛城; present-day Wancheng District, Nanyang, Henan). Zhang Xiu became a minor warlord in his own right. Zhang Ji's widow, who is called Lady Zou () in the 14th-century historical novel Romance of the Three Kingdoms, was taken by the warlord Cao Cao as a concubine.
See also
Lists of people of the Three Kingdoms
References
Chen, Shou (3rd century). Records of the Three Kingdoms (Sanguozhi).
Fan, Ye (5th century). Book of the Later Han (Houhanshu).
Pei, Songzhi (5th century). Annotations to Records of the Three Kingdoms (Sanguozhi zhu).
2nd-century births
196 deaths
Generals under Dong Zhuo
People from Baiyin
Han dynasty people killed in battle
|
Pyar Zindagi Hai is an Indian television comedy series that premiered on Zee TV on 30 March 2003. The series is set in the Punjabi backdrop, and stars Rakhee Tandon & Mukul Dev in the main lead.
Love, Life & Laughter are the three mantras of this delightful comedy series that will leave you with a smile on your face but with a tear in your eye. It’s about all the special moments of life shared with the people who matter the most. It shows that life is all about falling in love and making love your life. It also portrays that if you are in love you would have to face problems, but in those problems also you find happiness and keep your relation going. This serial is for all the viewers who are in love and even for those ready to fall in love.
Cast
Rakhee Tandon ... Simi (main female protagonist)
Mukul Dev ... Sunny (Simi's husband)
Bharat Kapoor
Sadhana Singh
Kanwarjit Paintal ... ?? (Simi's father-in-law)
Sheela Sharma
References
External links
Pyar Zindagi Hai News Article on Indiantelevision.com
Pyar Zindagi Hai launch in UK
Zee TV original programming
Indian television sitcoms
2003 Indian television series debuts
|
```go
// contributor license agreements. See the NOTICE file distributed with
// this work for additional information regarding copyright ownership.
//
// 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 spannerio
import (
"context"
"fmt"
"reflect"
"strings"
"github.com/apache/beam/sdks/v2/go/pkg/beam/util/structx"
"cloud.google.com/go/spanner"
"github.com/apache/beam/sdks/v2/go/pkg/beam"
"github.com/apache/beam/sdks/v2/go/pkg/beam/register"
"google.golang.org/api/iterator"
)
// spannerTag is the struct tag key used to identify Spanner field names.
const (
spannerTag = "spanner"
)
func init() {
register.DoFn3x1[context.Context, []byte, func(beam.X), error]((*queryFn)(nil))
register.Emitter1[beam.X]()
}
// Read reads all rows from the given spanner table. It returns a PCollection<t> for a given type T.
// T must be a struct with exported fields that have the "spanner" tag. If the
// table has more rows than t, then Read is implicitly a projection.
func Read(s beam.Scope, db string, table string, t reflect.Type) beam.PCollection {
if db == "" {
panic("no database provided!")
}
cols := strings.Join(structx.InferFieldNames(t, spannerTag), ",")
return query(s, db, fmt.Sprintf("SELECT %v from %v", cols, table), t, newQueryOptions())
}
// Query executes a spanner query. It returns a PCollection<t> for a given type T. T must be a struct with exported
// fields that have the "spanner" tag. By default, the transform uses spanners partitioned read ability to split
// the results into bundles.
// If the underlying query is not root-partitionable you can disable batching via UseBatching.
func Query(s beam.Scope, db string, q string, t reflect.Type, options ...QueryOptionFn) beam.PCollection {
queryOptions := newQueryOptions(options...)
if db == "" {
panic("no database provided!")
}
if queryOptions.Batching {
return readBatch(s, db, q, t, queryOptions)
} else {
return query(s, db, q, t, queryOptions)
}
}
func query(s beam.Scope, db string, query string, t reflect.Type, options queryOptions) beam.PCollection {
s = s.Scope("spanner.Query")
if options.TimestampBound != (spanner.TimestampBound{}) {
panic("spannerio.Query: specifying timestamp bound for non-batched reads not currently supported.")
}
imp := beam.Impulse(s)
return beam.ParDo(s, newQueryFn(db, query, t, options), imp, beam.TypeDefinition{Var: beam.XType, T: t})
}
type queryFn struct {
spannerFn
Query string `json:"query"` // Table is the table identifier.
Type beam.EncodedType `json:"type"` // Type is the encoded schema type.
Options queryOptions `json:"options"` // Options specifies additional query execution options.
}
func newQueryFn(
db string,
query string,
t reflect.Type,
options queryOptions,
) *queryFn {
return &queryFn{spannerFn: newSpannerFn(db), Query: query, Type: beam.EncodedType{T: t}, Options: options}
}
func (f *queryFn) Setup(ctx context.Context) error {
return f.spannerFn.Setup(ctx)
}
func (f *queryFn) Teardown() {
f.spannerFn.Teardown()
}
func (f *queryFn) ProcessElement(ctx context.Context, _ []byte, emit func(beam.X)) error {
stmt := spanner.Statement{SQL: f.Query}
it := f.client.Single().Query(ctx, stmt)
defer it.Stop()
for {
val := reflect.New(f.Type.T).Interface() // val : *T
row, err := it.Next()
if err != nil {
if err == iterator.Done {
break
}
return err
}
if err := row.ToStruct(val); err != nil {
return err
}
emit(reflect.ValueOf(val).Elem().Interface()) // emit(*val)
}
return nil
}
```
|
Hans Hartvig Møller (sometimes also written as Hans Hartvig-Møller) (Nordborg, Als 1873-1953) was the Rector (1909-1943) of Gammel Hellerup Gymnasium (GHG) founded in 1894 and originally a private school exclusively for boys, the founder of student council in Denmark, and one of the founders of Danish Scouting.
The Elevråd student council was first established in Denmark in 1909 at Hellerup Gymnasium at the behest of newly appointed headmaster Hartvig Møller.
The first Danish scout organisation Det Danske Spejderkorps was founded December 16, 1910 by Hans Hartvig Møller, Cay Lembcke, Oscar Hansen, P. Nørgaard and E. Bøcher, and the first Scout patrol for boys was organized by Hartvig Møller November 20, 1909 at Gammel Hellerup Gymnasium.
In 1922 his daughter Kirsten was the first female student of Gammel Hellerup Gymnasium.
One road, Hartvig-Møllers Vej situated near Gunderød in Fredensborg Municipality, is named in honour of Hans Hartvig Møller.
Works
Hans Hartvig Møller: "Elevraad". Vor Ungdom, 53. Aargang, 1931-32, hæfte X, marts 1932. (p. 457)
References
Scouting pioneers
Scouting and Guiding in Denmark
1873 births
1953 deaths
People from Sønderborg Municipality
|
```php
<?php
/*
* This file is part of the Kimai time-tracking app.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace App\Form\Type;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\Extension\Core\Type\ChoiceType;
use Symfony\Component\OptionsResolver\OptionsResolver;
/**
* Custom form field type to select the first of the week.
*/
final class FirstWeekDayType extends AbstractType
{
public function configureOptions(OptionsResolver $resolver): void
{
$choices = [
'Monday' => 'monday',
'Sunday' => 'sunday'
];
$resolver->setDefaults([
'multiple' => false,
'choices' => $choices,
'label' => 'first_weekday',
'translation_domain' => 'system-configuration',
'search' => false,
]);
}
public function getParent(): string
{
return ChoiceType::class;
}
}
```
|
```python
#!/usr/bin/env python3
# All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.
import argparse
import os
import sys
if __name__ == "__main__":
parser = argparse.ArgumentParser(description="test binary, exits with exitcode")
parser.add_argument("--exitcode", type=int, default=0)
parser.add_argument("msg", type=str)
args = parser.parse_args()
rank = int(os.environ["RANK"])
exitcode = args.exitcode
if exitcode != 0:
print(f"exit {exitcode} from {rank}", file=sys.stderr)
sys.exit(exitcode)
else:
print(f"{args.msg} stdout from {rank}")
print(f"{args.msg} stderr from {rank}", file=sys.stderr)
```
|
The 1987–88 Football League season was Birmingham City Football Club's 85th in the Football League and their 35th in the Second Division. They finished in 19th position in the division, expanded for this season to 23 teams as part of a restructuring process, and again avoided relegation only by two points. They entered the 1987–88 FA Cup in the third round proper and lost in the fifth round to Nottingham Forest, and were beaten by Mansfield Town over two legs in the first round of the League Cup and by Derby County in the first round of the Full Members' Cup.
Football League Second Division
The league programme did not end on the same day for all clubs. Although Birmingham were in 18th place after their last match, on 6 May, the last Second Division fixture was played the following day, when they were overtaken by Shrewsbury Town, so finished 19th.
League table (part)
FA Cup
League Cup
Full Members' Cup
Appearances and goals
Numbers in parentheses denote appearances as substitute.
Players with name struck through and marked left the club during the playing season.
Players with names in italics and marked * were on loan from another club for the whole of their season with Birmingham.
See also
Birmingham City F.C. seasons
References
General
Source for match dates, league positions and results:
Source for line-ups, appearances, goalscorers and attendances: Matthews (2010), Complete Record, pp. 410–11, 480.
Specific
Birmingham City F.C. seasons
Birmingham City
|
Earl Anthony Timberlake Jr. (born November 4, 2000) is an American college basketball player for the Bryant Bulldogs of the America East Conference. He previously played for the Miami Hurricanes and the Memphis Tigers.
Early life and high school career
Timberlake grew up in Southeast Washington, D.C. and began playing basketball in fourth grade. As a high school freshman, he played for Rock Creek Christian Academy in Rosaryville, Maryland. After averaging 8.3 points per game in his first season, he transferred to DeMatha Catholic High School in Hyattsville, Maryland. Timberlake averaged 11.3 points per game as a sophomore. In his senior season, he averaged 16.5 points and 10 rebounds per game, capturing his second Washington Catholic Athletic Conference (WCAC) title. He was a two-time first-team All-WCAC selection. In 2019, Timberlake competed for Team Durant at the Nike Elite Youth Basketball League.
Recruiting
Timberlake was a consensus four-star recruit and the highest ranked player from Maryland in the 2020 class. On November 4, 2019, he committed to playing college basketball for Miami (Florida) over offers from Georgetown, Ohio State, Alabama, Maryland, Providence, Wake Forest, North Carolina, Seton Hall, South Carolina and Pittsburgh. Timberlake became the program's best recruit since Lonnie Walker in the 2017 class.
College career
As a freshman with the Miami Hurricanes, Timberlake was limited to seven games due to ankle and shoulder injuries. He averaged 9.3 points, five rebounds and 2.4 assists per game. For his sophomore season, he transferred to Memphis.
Career statistics
College
|-
| style="text-align:left;"| 2020–21
| style="text-align:left;"| Miami
| 7 || 3 || 27.4 || .449 || .286 || .704 || 5.0 || 2.4 || 1.7 || .6 || 9.3
|-
| style="text-align:left;"| 2021–22
| style="text-align:left;"| Memphis
| 29 || 11 || 17.1 || .468 || .000 || .585 || 3.4 || 1.6 || .5 || .5 || 4.7
|-
| style="text-align:left;"| 2022–23
| style="text-align:left;"| Bryant
| 28 || 26 || 32.6 || .526 || .200 || .643 || 8.4 || 2.7 || .9 || .6 || 13.8
|- class="sortbottom"
| style="text-align:center;" colspan="2"| Career
| 64 || 40 || 25.0 || .503 || .194 || .636 || 5.8 || 2.2 || .8 || .6 || 9.1
Personal life
Timberlake is the son of Earl Timberlake Sr. and Taundaleah Nicole Stewart. He has two younger sisters, Christiana and Brooklyn.
References
External links
Memphis Tigers bio
Miami Hurricanes bio
Bryant Bulldogs bio
2000 births
Living people
21st-century African-American sportspeople
African-American basketball players
American men's basketball players
Basketball players from Washington, D.C.
Bryant Bulldogs men's basketball players
DeMatha Catholic High School alumni
Memphis Tigers men's basketball players
Miami Hurricanes men's basketball players
People from Southeast (Washington, D.C.)
Shooting guards
|
The Swan 53-2, also called the Swan 53 Mk II, is a Finnish sailboat that was designed by Germán Frers as a blue water cruiser and first built in 2005.
The design was originally marketed by the manufacturer as the Swan 53, but is now usually referred to as the Swan 53-2 or Mk II, to differentiate it from Frers' unrelated 1987 Swan 53 Mk I design.
The boat is a developed into the Swan 54, using the same hull design.
Production
The design was built by Oy Nautor AB in Finland, from 2005 to 2009 with 20 boats completed, but it is now out of production.
Design
The Swan 53-2 is a recreational keelboat, built predominantly of glassfibre, with wood trim. It has a masthead sloop rig, with two sets of swept spreaders. The hull has a raked stem plumb stem, a reverse transom, an internally mounted spade-type rudder controlled by dual wheels and a fixed fin keel or optional stub keel and daggerboard. It displaces and carries of lead ballast in teh fin keel version and of ballast in the daggerboard model.
The keel-equipped version of the boat has a draft of , while the daggerboard-equipped version has a draft of with the board extended and with it retracted, allowing operation in shallow water.
The boat is fitted with a Japanese Yanmar diesel engine for docking and manoeuvring. The fuel tank holds and the fresh water tank has a capacity of .
The design has sleeping accommodation for eight people, with a double island berth in the bow cabin, a double berth to port in the forward cabin, an "L"-shaped settee and a straight settee in the main cabin and two aft cabins, each with a double berth. The galley is located on the starboard side just forward of the companionway ladder. The galley is "L"-shaped and is equipped with a three-burner stove, an ice box and a double sink. There are three heads, two just aft of the bow cabin on the starboard side and one on the port side, aft.
For sailing downwind the design may be equipped with a symmetrical spinnaker. The boat has a hull speed of .
See also
List of sailing boat types
References
External links
Keelboats
2010s sailboat type designs
Sailing yachts
Sailboat type designs by Germán Frers
Sailboat types built by Nautor Swan
|
Hawayeq () is a Syrian village located in Tell Salhab Subdistrict in Al-Suqaylabiyah District, Hama. According to the Syria Central Bureau of Statistics (CBS), Hawayeq had a population of 747 in the 2004 census.
References
Populated places in al-Suqaylabiyah District
|
Donatella Danielli (born 1966) is a professor of mathematics at Arizona State University and is known for her contributions to partial differential equations, calculus of variations and geometric measure theory, with specific emphasis on free boundary problems.
Career
She received a Laurea cum Laude in Mathematics from the University of Bologna, Italy in 1989. She completed her doctorate in 1999 at Purdue, under the supervision of Carlos Kenig. Before joining the Purdue University faculty in 2001, she held positions at The Johns Hopkins University and at the Institut Mittag-Leffler in Sweden. She was also a visiting fellow at the Isaac Newton Institute for Mathematical Sciences in 2014. She serves as member-at-large in the Executive Committee of the Association for Women in Mathematics.
Selected awards
National Science Foundation CAREER Award (2003)
Simons Fellow in Mathematics (2014)
Fellow of the American Mathematical Society since 2017 "for contributions to partial differential equations and geometric measure theory, and for service to the mathematical community".
Fellow of the Association for Women in Mathematics since 2020 for "her generous and consistent involvement in, and remarkable impact on, a large number of excellent local, national, and international initiatives to support interest and involvement of women in mathematics at all levels; and for remarkable, pioneering contributions positioning her as a role model for more junior mathematicians, particularly women".
Selected publications
Books
Capogna, Luca, et al. An introduction to the Heisenberg group and the sub-Riemannian isoperimetric problem. Vol. 259. Springer Science & Business Media, 2007.
Papers
References
External links
Personal home page.
IMA Presentation on Regularity Results for a Class of Permeability Problems
1966 births
Living people
21st-century women mathematicians
Fellows of the American Mathematical Society
Fellows of the Association for Women in Mathematics
Johns Hopkins University faculty
Purdue University alumni
Purdue University faculty
University of Bologna alumni
|
Copris howdeni, or Howden's copri, is a species of dung beetle in the family Scarabaeidae.
References
Further reading
External links
Coprini
Beetles described in 1959
|
Thiệu Hóa is a township () and capital of Thiệu Hóa District, Thanh Hóa Province, Vietnam.
References
Populated places in Thanh Hóa province
District capitals in Vietnam
Townships in Vietnam
|
```xml
/**
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import { ctx } from '../../_ctx';
import { getRoutes, Options } from '../getRoutes';
import { ExpoRouterServerManifestV1, getServerManifest } from '../getServerManifest';
import { loadStaticParamsAsync } from '../loadStaticParamsAsync';
/**
* Get the server manifest with all dynamic routes loaded with `generateStaticParams`.
* Unlike the `expo-router/src/routes-manifest.ts` method, this requires loading the entire app in-memory, which
* takes substantially longer and requires Metro bundling.
*
* This is used for the production manifest where we pre-render certain pages and should no longer treat them as dynamic.
*/
export async function getBuildTimeServerManifestAsync(
options: Options = {}
): Promise<ExpoRouterServerManifestV1> {
const routeTree = getRoutes(ctx, {
platform: 'web',
...options,
});
if (!routeTree) {
throw new Error('No routes found');
}
// Evaluate all static params
await loadStaticParamsAsync(routeTree);
return getServerManifest(routeTree);
}
```
|
Gentofte Fire Station (Danish: Gentofte Brandstation) is situated adjacent to Gentofte Town Hall on Bernstorffsvej in Gentofte Municipality, Greater Copenhagen, Denmark. It is operated by Beredskab Øst.
History
Gentofte Fire Department was founded on 17 May 1902 with volunteer personnel at six local fire stations (sprøjtehuse) in Gentofte, Ordrup, Skovshovede, Hellerup, Jægersborg and Vangede. The fire station in Hellerup, which had more tall buildings, acquired a 26 ft ladder. One of the firemen, Søren Christensen, made two motorcycles available to the fire station in 1903.
In 1905, Gentofte Fire Department acquired its first motorized fire engine. A second fire engine, an Anglo Dane, was acquired in 1907.
A new central fire and police station was inaugurated at Hellerupvej 55 in 1909. A Dennis fire engine was acquired in 1911, and professional fire fighters were engaged on part-time contracts. The fire station was expanded in 1919, and a new fire engine and a 25 m automatic ladder were also acquired.
A new fire station was inaugurated on 16 June 1939.
Artworks
At the entrance to the fire station is a relief by the artist Herlge Holmskov, entitled The Red Cock (Denn Røde Hane). The 4.5 m tall relief resembles a composition of flames of which the upper part forms the silhouette of a cock. It was unveiled on 17 May 1977 in connection with the 75-year anniversary of the fire department.
The tower is topped by a weather vane in copper by the artist Jais Nielsens. It depicts a fireman fighting a fire while protected a woman.
See also
Copenhagen Fire Department
References
External links
Beredskab Øst
Buildings and structures in Gentofte Municipality
Fire stations in Denmark
Buildings and structures completed in 1939
1939 establishments in Denmark
|
is a Japanese racing cyclist, who currently rides for Japanese amateur team Sparkle Ōita Racing Team. He rode in the men's team pursuit event at the 2018 UCI Track Cycling World Championships.
Major results
2015
1st Road race, Asian Junior Cycling Championships
1st Road race, National Junior Road Championships
2019
1st Prologue Tour de Kumano
References
External links
1998 births
Living people
Japanese male cyclists
Place of birth missing (living people)
Asian Games medalists in cycling
Cyclists at the 2018 Asian Games
Medalists at the 2018 Asian Games
Asian Games bronze medalists for Japan
Japanese track cyclists
|
Tenascins are extracellular matrix glycoproteins. They are abundant in the extracellular matrix of developing vertebrate embryos and they reappear around healing wounds and in the stroma of some tumors.
Types
There are four members of the tenascin gene family: tenascin-C, tenascin-R, tenascin-X and tenascin-W.
Tenascin-C is the founding member of the gene family. In the embryo it is made by migrating cells like the neural crest; it is also abundant in developing tendons, bone and cartilage.
Tenascin-R is found in the developing and adult nervous system.
Tenascin-X is found primarily in loose connective tissue; mutations in the human tenascin-X gene can lead to a form of Ehlers-Danlos syndrome.
Tenascin-W is found in the kidney and in developing bone.
The basic structure is 14 EGF-like repeats towards the N-terminal end, and 8 or more fibronectin-III domains which vary upon species and variant.
Tenascin-C is the most intensely studied member of the family. It has anti-adhesive properties, causing cells in tissue culture to become rounded after it is added to the medium. One mechanism to explain this may come from its ability to bind to the extracellular matrix glycoprotein fibronectin and block fibronectin's interactions with specific syndecans. The expression of tenascin-C in the stroma of certain tumors is associated with a poor prognosis.
References
External links
|
```c++
// your_sha256_hash------------
// - Open3D: www.open3d.org -
// your_sha256_hash------------
// your_sha256_hash------------
#include "open3d/t/geometry/LineSet.h"
#include <string>
#include "open3d/core/Dtype.h"
#include "open3d/core/EigenConverter.h"
#include "open3d/core/ShapeUtil.h"
#include "open3d/core/Tensor.h"
#include "open3d/core/TensorCheck.h"
#include "open3d/core/linalg/Matmul.h"
#include "open3d/t/geometry/TensorMap.h"
#include "open3d/t/geometry/VtkUtils.h"
#include "open3d/t/geometry/kernel/Transform.h"
namespace open3d {
namespace t {
namespace geometry {
LineSet::LineSet(const core::Device &device)
: Geometry(Geometry::GeometryType::LineSet, 3),
device_(device),
point_attr_(TensorMap("positions")),
line_attr_(TensorMap("indices")) {}
LineSet::LineSet(const core::Tensor &point_positions,
const core::Tensor &line_indices)
: LineSet([&]() {
core::AssertTensorDevice(line_indices, point_positions.GetDevice());
return point_positions.GetDevice();
}()) {
SetPointPositions(point_positions);
SetLineIndices(line_indices);
}
LineSet LineSet::To(const core::Device &device, bool copy) const {
if (!copy && GetDevice() == device) {
return *this;
}
LineSet lineset(device);
for (const auto &kv : line_attr_) {
lineset.SetLineAttr(kv.first, kv.second.To(device, /*copy=*/true));
}
for (const auto &kv : point_attr_) {
lineset.SetPointAttr(kv.first, kv.second.To(device, /*copy=*/true));
}
return lineset;
}
std::string LineSet::ToString() const {
std::string str = fmt::format("LineSet on {}\n", GetDevice().ToString());
if (point_attr_.size() == 0) {
str += "[0 points ()] Attributes: None.";
} else {
str += fmt::format(
"[{} points ({})] Attributes:", GetPointPositions().GetShape(0),
GetPointPositions().GetDtype().ToString());
}
if (point_attr_.size() == 1) {
str += " None.";
} else {
for (const auto &keyval : point_attr_) {
if (keyval.first == "positions") continue;
str += fmt::format(" {} (dtype = {}, shape = {}),", keyval.first,
keyval.second.GetDtype().ToString(),
keyval.second.GetShape().ToString());
}
str[str.size() - 1] = '.';
}
if (line_attr_.size() == 0) {
str += "\n[0 lines ()] Attributes: None.";
} else {
str += fmt::format(
"\n[{} lines ({})] Attributes:", GetLineIndices().GetShape(0),
GetLineIndices().GetDtype().ToString());
}
if (line_attr_.size() == 1) {
str += " None.";
} else {
for (const auto &keyval : line_attr_) {
if (keyval.first == "indices") continue;
str += fmt::format(" {} (dtype = {}, shape = {}),", keyval.first,
keyval.second.GetDtype().ToString(),
keyval.second.GetShape().ToString());
}
str[str.size() - 1] = '.';
}
return str;
}
LineSet &LineSet::Transform(const core::Tensor &transformation) {
core::AssertTensorShape(transformation, {4, 4});
kernel::transform::TransformPoints(transformation, GetPointPositions());
return *this;
}
LineSet &LineSet::Translate(const core::Tensor &translation, bool relative) {
core::AssertTensorShape(translation, {3});
core::Tensor transform =
translation.To(GetDevice(), GetPointPositions().GetDtype());
if (!relative) {
transform -= GetCenter();
}
GetPointPositions() += transform;
return *this;
}
LineSet &LineSet::Scale(double scale, const core::Tensor ¢er) {
core::AssertTensorShape(center, {3});
const core::Tensor center_d =
center.To(GetDevice(), GetPointPositions().GetDtype());
GetPointPositions().Sub_(center_d).Mul_(scale).Add_(center_d);
return *this;
}
LineSet &LineSet::Rotate(const core::Tensor &R, const core::Tensor ¢er) {
core::AssertTensorShape(R, {3, 3});
core::AssertTensorShape(center, {3});
kernel::transform::RotatePoints(R, GetPointPositions(), center);
return *this;
}
geometry::LineSet LineSet::FromLegacy(
const open3d::geometry::LineSet &lineset_legacy,
core::Dtype float_dtype,
core::Dtype int_dtype,
const core::Device &device) {
if (float_dtype != core::Float32 && float_dtype != core::Float64) {
utility::LogError("float_dtype must be Float32 or Float64, but got {}.",
float_dtype.ToString());
}
if (int_dtype != core::Int32 && int_dtype != core::Int64) {
utility::LogError("int_dtype must be Int32 or Int64, but got {}.",
int_dtype.ToString());
}
LineSet lineset(device);
if (lineset_legacy.HasPoints()) {
lineset.SetPointPositions(
core::eigen_converter::EigenVector3dVectorToTensor(
lineset_legacy.points_, float_dtype, device));
} else {
utility::LogWarning("Creating from empty legacy LineSet.");
}
if (lineset_legacy.HasLines()) {
lineset.SetLineIndices(
core::eigen_converter::EigenVector2iVectorToTensor(
lineset_legacy.lines_, int_dtype, device));
} else {
utility::LogWarning("Creating from legacy LineSet with no lines.");
}
if (lineset_legacy.HasColors()) {
lineset.SetLineColors(
core::eigen_converter::EigenVector3dVectorToTensor(
lineset_legacy.colors_, float_dtype, device));
}
return lineset;
}
open3d::geometry::LineSet LineSet::ToLegacy() const {
open3d::geometry::LineSet lineset_legacy;
if (HasPointPositions()) {
lineset_legacy.points_ =
core::eigen_converter::TensorToEigenVector3dVector(
GetPointPositions());
}
if (HasLineIndices()) {
lineset_legacy.lines_ =
core::eigen_converter::TensorToEigenVector2iVector(
GetLineIndices());
}
if (HasLineColors()) {
lineset_legacy.colors_ =
core::eigen_converter::TensorToEigenVector3dVector(
GetLineColors());
}
return lineset_legacy;
}
AxisAlignedBoundingBox LineSet::GetAxisAlignedBoundingBox() const {
return AxisAlignedBoundingBox::CreateFromPoints(GetPointPositions());
}
TriangleMesh LineSet::ExtrudeRotation(double angle,
const core::Tensor &axis,
int resolution,
double translation,
bool capping) const {
using namespace vtkutils;
return ExtrudeRotationTriangleMesh(*this, angle, axis, resolution,
translation, capping);
}
TriangleMesh LineSet::ExtrudeLinear(const core::Tensor &vector,
double scale,
bool capping) const {
using namespace vtkutils;
return ExtrudeLinearTriangleMesh(*this, vector, scale, capping);
}
OrientedBoundingBox LineSet::GetOrientedBoundingBox() const {
return OrientedBoundingBox::CreateFromPoints(GetPointPositions());
}
LineSet &LineSet::PaintUniformColor(const core::Tensor &color) {
core::AssertTensorShape(color, {3});
core::Tensor clipped_color = color.To(GetDevice());
if (color.GetDtype() == core::Float32 ||
color.GetDtype() == core::Float64) {
clipped_color = clipped_color.Clip(0.0f, 1.0f);
}
core::Tensor ls_colors =
core::Tensor::Empty({GetLineIndices().GetLength(), 3},
clipped_color.GetDtype(), GetDevice());
ls_colors.AsRvalue() = clipped_color;
SetLineColors(ls_colors);
return *this;
}
LineSet LineSet::CreateCameraVisualization(int view_width_px,
int view_height_px,
const core::Tensor &intrinsic_in,
const core::Tensor &extrinsic_in,
double scale,
const core::Tensor &color) {
core::AssertTensorShape(intrinsic_in, {3, 3});
core::AssertTensorShape(extrinsic_in, {4, 4});
core::Tensor intrinsic = intrinsic_in.To(core::Float32, "CPU:0");
core::Tensor extrinsic = extrinsic_in.To(core::Float32, "CPU:0");
// Calculate points for camera visualization
float w(view_width_px), h(view_height_px), s(scale);
float fx = intrinsic[0][0].Item<float>(),
fy = intrinsic[1][1].Item<float>(),
cx = intrinsic[0][2].Item<float>(),
cy = intrinsic[1][2].Item<float>();
core::Tensor points = core::Tensor::Init<float>({{0.f, 0.f, 0.f}, // origin
{0.f, 0.f, s},
{w * s, 0.f, s},
{w * s, h * s, s},
{0.f, h * s, s},
// Add XYZ axes
{fx * s, 0.f, 0.f},
{0.f, fy * s, 0.f},
{cx * s, cy * s, s}});
points = (intrinsic.Inverse().Matmul(points.T()) -
extrinsic.Slice(0, 0, 3).Slice(1, 3, 4))
.T()
.Matmul(extrinsic.Slice(0, 0, 3).Slice(1, 0, 3));
// Add lines for camera frame and XYZ axes
core::Tensor lines = core::Tensor::Init<int>({{0, 1},
{0, 2},
{0, 3},
{0, 4},
{1, 2},
{2, 3},
{3, 4},
{4, 1},
// Add XYZ axes
{0, 5},
{0, 6},
{0, 7}});
LineSet lineset(points, lines);
if (color.NumElements() == 3) {
lineset.PaintUniformColor(color);
} else {
lineset.PaintUniformColor(core::Tensor::Init<float>({0.f, 0.f, 1.f}));
}
auto &lscolors = lineset.GetLineColors();
lscolors[8] = core::Tensor::Init<float>({1.f, 0.f, 0.f}); // Red
lscolors[9] = core::Tensor::Init<float>({0.f, 1.f, 0.f}); // Green
lscolors[10] = core::Tensor::Init<float>({0.f, 0.f, 1.f}); // Blue
return lineset;
}
} // namespace geometry
} // namespace t
} // namespace open3d
```
|
The Confessional Reformed Church of Benin (Egliese Reformée Confessante au Benin in Spanish) was started by the radio broadcasting mission of the Christian Reformed Church in North America, this was the "Back to God Hour" radio ministry, the leader was Rev. Kayayan. The French-speaking countries like Benin and Congo this effort took root. In 1986 the congregation that formed in this period united to create the Confessional Reformed Churches, or ERCB. It has two congregations one in Cotonou, the largest city in Benin, and one in Mono/Couffo in south west Benin, and has approximately 400 members. It has no ministers, the churches affirms the Heidelberg Catechism and the La Rochelle Confession of Faith.
Later more than 13 community groups were formed around Cotonou in rural areas. Since 2011 the church had a graduate pastor.
From 1995, 30 congregations of the Reformed Churches in the Netherlands (Liberated) support this denomination to build the church and to evangelise.
As of 2014, there are 14 congregations and the church is still growing.
References
Reformed denominations in Africa
1986 establishments in Benin
|
Kachek Bel-e Sofla (, also Romanized as Kachek Bel-e Soflá; also known as Kajak Bel-e Soflá and Kūchek Bel-e Soflá) is a village in Gurani Rural District, Gahvareh District, Dalahu County, Kermanshah Province, Iran. At the 2006 census, its population was 116, in 22 families.
References
Populated places in Dalahu County
|
```ruby
class StripeCli < Formula
desc "Command-line tool for Stripe"
homepage "path_to_url"
url "path_to_url"
sha256 your_sha256_hash
license "Apache-2.0"
bottle do
sha256 cellar: :any_skip_relocation, arm64_sonoma: your_sha256_hash
sha256 cellar: :any_skip_relocation, arm64_ventura: your_sha256_hash
sha256 cellar: :any_skip_relocation, arm64_monterey: your_sha256_hash
sha256 cellar: :any_skip_relocation, sonoma: your_sha256_hash
sha256 cellar: :any_skip_relocation, ventura: your_sha256_hash
sha256 cellar: :any_skip_relocation, monterey: your_sha256_hash
sha256 cellar: :any_skip_relocation, x86_64_linux: your_sha256_hash
end
depends_on "go" => :build
def install
# See configuration in `.goreleaser` directory
ENV["CGO_ENABLED"] = OS.mac? ? "1" : "0"
ldflags = %W[-s -w -X github.com/stripe/stripe-cli/pkg/version.Version=#{version}]
system "go", "build", *std_go_args(ldflags:, output: bin/"stripe"), "cmd/stripe/main.go"
# Doesn't work with `generate_completions_from_executable`
# Taken from `.goreleaser` directory
system bin/"stripe", "completion", "--shell", "bash"
system bin/"stripe", "completion", "--shell", "zsh"
bash_completion.install "stripe-completion.bash"
zsh_completion.install "stripe-completion.zsh" => "_stripe"
end
test do
assert_match version.to_s, shell_output("#{bin}/stripe version")
assert_match "secret or restricted key",
shell_output("#{bin}/stripe --api-key=not_real_key get ch_1EGYgUByst5pquEtjb0EkYha", 1)
end
end
```
|
```smalltalk
using System;
using System.Threading.Tasks;
using Hangfire;
using Hangfire.Server;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Logging.Abstractions;
namespace SimplCommerce.Module.HangfireJobs.Models
{
/// <summary>
/// Base class for Hangfire jobs which provides auto-scheduling and logging.
/// </summary>
public abstract class ScheduledJob
{
/// <summary>
/// Gets the <see cref="ILogger"/> instance for this job.
/// </summary>
public ILogger<ScheduledJob> Logger { get; set; }
/// <summary>
/// Gets the schedule for automatically scheduled jobs.
/// Default is null which means that the job is not automatically scheduled.
/// </summary>
public virtual string Schedule => null;
/// <summary>
/// Initializes the <see cref="ScheduledJob"/>.
/// </summary>
protected ScheduledJob()
{
Logger = NullLogger<ScheduledJob>.Instance;
}
/// <summary>
/// Executes the job.
/// </summary>
/// <param name="performContext">
/// The context in which the job is performed. Populated by Hangfire.
/// It is safe to pass <c>null</c> in unit tests or other manual scenarios.
/// </param>
/// <param name="cancellationToken">
/// The <see cref="IJobCancellationToken"/>. Populated by Hangfire.
/// It is safe to pass <c>null</c> in unit tests or other manual scenarios,
/// a new instance of <see cref="JobCancellationToken"/> will be created in that case.
/// </param>
public async Task ExecuteAsync(PerformContext performContext, IJobCancellationToken cancellationToken)
{
var jobId = performContext?.BackgroundJob?.Id;
cancellationToken?.ThrowIfCancellationRequested();
Logger.LogDebug($"Starting job {jobId}");
try
{
await ExecuteAsync(cancellationToken ?? new JobCancellationToken(false));
Logger.LogDebug($"Finished job {jobId}");
}
catch (Exception ex)
{
Logger.LogError(ex, $"Failed executing job {jobId}/{GetType().Name}: {ex.Message}");
throw;
}
}
/// <summary>
/// Executes the inner logic of the job.
/// </summary>
/// <param name="cancellationToken">The <see cref="IJobCancellationToken"/>.</param>
protected abstract Task ExecuteAsync(IJobCancellationToken cancellationToken);
}
}
```
|
```xml
import React, { useState } from "react";
import { RQButton } from "lib/design-system/components";
import { IoMdCopy } from "@react-icons/all-files/io/IoMdCopy";
import { PiBracketsCurlyBold } from "@react-icons/all-files/pi/PiBracketsCurlyBold";
import { BsFiletypeRaw } from "@react-icons/all-files/bs/BsFiletypeRaw";
import { MdOpenInFull } from "@react-icons/all-files/md/MdOpenInFull";
import { MdCloseFullscreen } from "@react-icons/all-files/md/MdCloseFullscreen";
import { EditorLanguage, EditorCustomToolbar } from "componentsV2/CodeEditor/types";
import { Tooltip } from "antd";
import { useTheme } from "styled-components";
import "./toolbar.scss";
import { prettifyCode } from "componentsV2/CodeEditor/utils";
import {
trackCodeEditorCodePrettified,
trackCodeEditorCodeMinified,
trackCodeEditorCodeCopied,
} from "componentsV2/CodeEditor/components/analytics";
interface CodeEditorToolbarProps {
language: EditorLanguage;
code: string;
customOptions?: EditorCustomToolbar;
onCodeFormat: (formattedCode: string) => void;
isFullScreen: boolean;
handleFullScreenToggle: () => void;
}
const CodeEditorToolbar: React.FC<CodeEditorToolbarProps> = ({
language,
code,
onCodeFormat,
customOptions,
isFullScreen = false,
handleFullScreenToggle = () => {},
}) => {
const theme = useTheme();
const [isCodePrettified, setIsCodePrettified] = useState(false);
const [isCopied, setIsCopied] = useState(false);
const handleCodeFormatting = () => {
if (language === EditorLanguage.JSON) {
handlePrettifyToggle();
} else {
handlePrettifyCode();
}
};
// This function is used for all languages except JSON
const handlePrettifyCode = () => {
const result = prettifyCode(code, language);
if (result.success) {
onCodeFormat(result.code);
trackCodeEditorCodePrettified();
}
};
// This function is only used for JSON code
const handlePrettifyToggle = () => {
if (isCodePrettified) {
try {
const minifiedCode = JSON.stringify(JSON.parse(code));
onCodeFormat(minifiedCode);
trackCodeEditorCodeMinified();
setIsCodePrettified(false);
} catch (error) {
// NOOP
}
} else {
handlePrettifyCode();
setIsCodePrettified(true);
trackCodeEditorCodePrettified();
}
};
const handleCopyCode = () => {
navigator.clipboard.writeText(code);
setIsCopied(true);
trackCodeEditorCodeCopied();
setTimeout(() => {
setIsCopied(false);
}, 1000);
};
return (
<div className="code-editor-toolbar">
<div className="code-editor-custom-options-row">
{customOptions ? (
<>
{customOptions.title ? <div className="code-editor-custom-options-title">{customOptions.title}</div> : null}
{customOptions.options ? (
<div className="code-editor-custom-options-block">
{customOptions.options.map((option, index) => (
<div key={index} className="code-editor-custom-option">
{option}
</div>
))}
</div>
) : null}
</>
) : null}
</div>
<div className="code-editor-actions">
{/* TODO: ADD toggle search button */}
<Tooltip title={isCopied ? "Copied" : "Copy code"} color={theme.colors.black} mouseEnterDelay={0.6}>
<RQButton type="text" icon={<IoMdCopy />} onClick={handleCopyCode} />
</Tooltip>
<Tooltip
title={language === EditorLanguage.JSON && isCodePrettified ? "View raw" : "Prettify code"}
color={theme.colors.black}
mouseEnterDelay={0.6}
>
<RQButton
type="text"
icon={isCodePrettified ? <BsFiletypeRaw /> : <PiBracketsCurlyBold />}
onClick={handleCodeFormatting}
/>
</Tooltip>
<Tooltip
color={theme.colors.black}
title={isFullScreen ? "Exit full screen (esc)" : "Full screen"}
placement="bottomLeft"
>
<RQButton
type="text"
icon={isFullScreen ? <MdCloseFullscreen /> : <MdOpenInFull />}
onClick={handleFullScreenToggle}
/>
</Tooltip>
</div>
</div>
);
};
export default CodeEditorToolbar;
```
|
Barningham is a village in County Durham, in the Pennines of England.
History
Barningham is listed in the Domesday Book under the Gilling Wapentake (later Gilling West and part of the Honour of Richmond) of Yorkshire as a property owned in 1066 by an Anglo-Saxon lord, Thor, before the Norman conquest; by 1086, the ownership had transferred to Enisant Musard, with Count Alan of Brittany as a tenant.
The village, along with the wider and former Startforth Rural District, was formerly governed under the North Riding and was transferred to County Durham's governance in 1974.
Amenities
Barningham is a tranquil conservation village of around 60 houses. It has a large village green, a church, a stately hall occupied by a local landowning baronet, a village hall used by local interest groups and a recently restored pub. It is on the edge of moors stretching westwards to Cumbria and is a good base for walking the local dales and hills. The village has an enthusiastic local history society which runs a website and offers assistance to anyone trying to trace ancestors from the area.
Notable buildings
Barningham Park has been the home of the Milbank family since 1690. It is a Grade II* listed country house dating from the 15th century set in a 7000-acre estate.
The Milbank Arms is a Grade II listed public house built in the early 19th century and extensively rebuilt in 2019. It was formerly on the Campaign for Real Ale's National Inventory of Historic Pub Interiors.
References
External links
Villages in County Durham
|
Rekcin is a village in the administrative district of Gmina Pruszcz Gdański, within Gdańsk County, Pomeranian Voivodeship, in northern Poland. It lies approximately south-west of Pruszcz Gdański and south of the regional capital Gdańsk.
For details of the history of the region, see History of Pomerania.
References
Rekcin
|
Mila (Cyrillic: Мила, ) is a female Slavic name originating from Central or Eastern Europe. It is a diminutive of Slavic names beginning or ending with Mila which derived from the element Mil (Мил) meaning "gracious" or "dear". It is also used among the Spanish as a short-hand for Milagros, meaning "miracles".
Notable people
Mila Gojsalić (died 1530), Croatian folk heroine
Mila Horvat (born 1981), Croatian television host
Mila Kunis (born 1983), American actress of Ukrainian descent
Mila Mason (born 1963), American country music artist
Mila Mulroney (born 1953), Serbian-Canadian campaigner
Mila Nikolova (1962–2018), Bulgarian mathematician
Mila, in the Mila affair, subjected to online abuse after criticising Islam
Fictional characters
Mila (Dead or Alive), in the video game Dead or Alive 5
Mila (Star Trek), in the TV series Star Trek: Deep Space Nine
Mila, the goddess of Valentia and the sister of Duma in the video game Fire Emblem Gaiden
Mila, in the video game Hotel Dusk: Room 215
Mila, in the German release of the Japanese anime Attack No. 1 (retitled Mila Superstar)
Mila, in the children's book The Music of Dolphins by Karen Hesse
Mila Babicheva, in the anime Yuri on Ice
See also
Milla (disambiguation)
Ludmila (given name)
Milada (name)
Milena (name)
Milagros
Mile (given name)
Milica
References
Slavic feminine given names
Croatian feminine given names
Russian feminine given names
Serbian feminine given names
Ukrainian feminine given names
Arabic-language feminine given names
Feminine given names
Hebrew feminine given names
|
```c++
//
//
// path_to_url
//
// Unless required by applicable law or agreed to in writing, software
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
#include "paddle/fluid/pir/transforms/general/map_op_to_another_pass.h"
#include "paddle/fluid/pir/dialect/operator/ir/pd_op.h"
#include "paddle/fluid/pir/drr/include/drr_pattern_base.h"
#include "paddle/pir/include/pass/pass.h"
#include "paddle/pir/include/pass/pass_registry.h"
namespace {
class DepthWiseConv2d2Conv2dPattern : public paddle::drr::DrrPatternBase {
public:
std::string name() const override { return "DepthWiseConv2d2Conv2dPattern"; }
void operator()(paddle::drr::DrrPatternContext *ctx) const override {
paddle::drr::SourcePattern pat = ctx->SourcePattern();
const auto &depthwise_conv2d_op =
pat.Op(paddle::dialect::DepthwiseConv2dOp::name(),
{{"strides", pat.Attr("strides")},
{"paddings", pat.Attr("paddings")},
{"padding_algorithm", pat.Attr("padding_algorithm")},
{"dilations", pat.Attr("dilations")},
{"groups", pat.Attr("groups")},
{"data_format", pat.Attr("data_format")}});
depthwise_conv2d_op({&pat.Tensor("input"), &pat.Tensor("filter")},
{&pat.Tensor("depthwise_conv2d_out")});
pat.AddConstraint([](const paddle::drr::MatchContext &match_ctx) -> bool {
#if defined(PADDLE_WITH_CUDA) && CUDA_VERSION >= 8100
auto groups = match_ctx.Attr<int>("groups");
return groups > 1;
#else
return false;
#endif
});
paddle::drr::ResultPattern res = pat.ResultPattern();
const auto &conv2d =
res.Op(paddle::dialect::Conv2dOp::name(),
{{"strides", pat.Attr("strides")},
{"paddings", pat.Attr("paddings")},
{"padding_algorithm", pat.Attr("padding_algorithm")},
{"dilations", pat.Attr("dilations")},
{"groups", pat.Attr("groups")},
{"data_format", pat.Attr("data_format")}});
conv2d({&res.Tensor("input"), &res.Tensor("filter")},
{&res.Tensor("depthwise_conv2d_out")});
}
};
class MapOpToAnotherPass : public pir::PatternRewritePass {
public:
MapOpToAnotherPass() : pir::PatternRewritePass("map_op_to_another_pass", 2) {}
pir::RewritePatternSet InitializePatterns(pir::IrContext *context) override {
pir::RewritePatternSet ps(context);
ps.Add(paddle::drr::Create<DepthWiseConv2d2Conv2dPattern>(context));
return ps;
}
};
} // namespace
namespace pir {
std::unique_ptr<Pass> CreateMapOpToAnotherPass() {
return std::make_unique<MapOpToAnotherPass>();
}
} // namespace pir
REGISTER_IR_PASS(map_op_to_another_pass, MapOpToAnotherPass);
```
|
The Sparidae are a family of fish in the order Perciformes, commonly called sea breams and porgies. The sheepshead, scup, and red seabream are species in this family. Most sparids are deep-bodied compressed fish with a small mouth separated by a broad space from the eye, a single dorsal fin with strong spines and soft rays, a short anal fin, long pointed pectoral fins and rather large firmly attached scales. They are found in shallow temperate and tropical waters and are bottom-dwelling carnivores.
Hermaphrodites occur in the Sparidae. Protogyny and protandry appear sporadically through this lineage of fish. Simultaneous hermaphrodites and bidirectional hermaphrodites do not appear as much, since Sparidae are found in shallow waters. Species of fish that express a hermaphroditic condition usually "lack a genetic hardwire", so ecological factors play a role in sex determination.
Most species possess grinding, molar-like teeth. Some of the species, such as Polysteganus undulosus, have been subject to overfishing, or exploitation beyond sustainable recovery.
Genera
The family Sparidae contains about 155 species in 38 genera:
Acanthopagrus Peters, 1855
Amamiichthys Tanaka & Iwatsuki, 2015
Archosargus Gill, 1865
Argyrops Swainson, 1839
Argyrozona Smith, 1938
Boops Cuvier, 1814
Boopsoidea Castelnau, 1861
Calamus Swainson, 1839
Centracanthus Rafinesque, 1810
Cheimerius Smith, 1938
Chrysoblephus Swainson, 1839
Crenidens Valenciennes, 1830
Cymatoceps Smith, 1938
Dentex Cuvier, 1814
Diplodus Rafinesque, 1810
Evynnis Jordan & Thompson, 1912
Gymnocrotaphus Günther, 1859
Lagodon Holbrook, 1855
Lithognathus Swainson, 1839
Oblada Cuvier, 1829
Pachymetopon Günther, 1859
Pagellus Valenciennes, 1830
Pagrus Cuvier, 1816
Parargyrops Tanaka, 1916
Petrus Smith, 1938
Polyamblyodon Norman, 1935
Polysteganus Klunzinger, 1870
Porcostoma Smith, 1938
Pterogymnus Smith, 1938
Rhabdosargus Fowler, 1933
Sarpa Bonaparte, 1831
Sparidentex Munro, 1948
Sparodon Smith, 1938
Sparus Linnaeus, 1758
Spicara Rafinesque, 1810
Spondyliosoma Cantor, 1849
Stenotomus Gill, 1865
Virididentex Poll, 1971
Cookery
The most celebrated of the breams in cookery are the gilt-head bream and the common dentex.
See also
Porgie fishing
References
Spariformes
Sport fish
Marine fish families
Articles which contain graphical timelines
Taxa named by Constantine Samuel Rafinesque
|
Rain Rosimannus (born 9 November 1968) is an Estonian entrepreneur, sociologist, politician. He has been a member of X and XI Riigikogu.
Education
Rosimannus was born in Rapla. He graduated from Rapla Secondary School in 1987 (1983–1984 studied in Tallinn Sports Boarding School) and from the University of Tartu in 2001 where he studied Sociology. In 2008 he received his Master's degree.
Career
Rosimannus worked as a senior laboratory assistant at Mainor Center for Public Opinion Research from 1989-1991, as a sociologist and project manager for TNS Emor from 1991-1994, as an expert of the Ida-Virumaa Government Committee in 1993, in the Office of the President of the Republic of Estonia as Adviser to the President on Internal Affairs 1994–1997, in the Chancellery of the Parliament of Estonia as an adviser to the Estonian Reform Party faction 1997-1999, in the Ministry of Finance as an adviser to the Minister 1999-2002 and as the head of Office of Prime Minister of Estonia 2002-2003, Member of the Parliament in 2003-2011 and CEO of the Academy of Liberalism in 2011-2015.
Political activity
Rosimannus has been a member of the Estonian Reform Party since 1998. He was a member of the board of the Reform Party from 2003 to 2009. Chairman of the Reform Party Council 2003–2011. Honorary Golden Badges of the Reform Party in 2002, 2005, 2006 and 2010. Rosimannus was a member of the Rapla City Council since 1998. He was a member of the board of the Reform Party from 2003 to 2009. Chairman of the Reform Party Council 2003–2011 from 1999 to 2002 and Deputy Chairman of Rapla Parish Council from 2002 to 2005. He was a member of the X Riigikogu and the XI Riigikogu. Deputy Chairman of the Riigikogu faction of the Reform Party in 2005–2007 and 2009–2011. Vice-Chairman of the Estonian-Chinese, Estonian-Montenegrin and Estonian-Kuwait Friendship Groups of the Parliament 2003-11, Chairman of the Estonian-Albanian Friendship Group 2007-11. Rosimannus' activities have been directly related to the success of the Estonian Reform Party. The newspaper Äripäev named him as the person with the greatest impact on Estonian life in 2014.
Entrepreneurship
Shareholder of AS EMOR (today: Kantar Emor) since 1990, in 1994 sold its 8% stake to Suomen Gallup OY. OÜ Prime Time Konverentsid partner was engaged in conference and training business in 2000–2001. Since 2004, he has owned the investment holding company OÜ Väädi. Since 2011, OÜ Väädi and its subsidiaries have been more active in business. From 2011 to 2014, it held a majority stake in Seitse (TV channel), now called MyHits. Minority shareholder in European Lingerie Group AB (3.33%), Arsenal Center (4.65%) and at-visions Nordic OÜ (2%). Shareholder (30%) of Südamekodud AS and member of the supervisory board. 20% stake in Levinum OÜ, the fund manager company of WineFortune Premium Selection LP Fund (www.winefortune.com). Was a member of the Supervisory Board of AS Edelaraudtee (2000) and AS Eesti Raudtee (2003–2009).
Other community, social and personal service activities
President of the Rapla Boys' Club (1983–84). Founding member of the Estonian Academic Association of Sociologists (1990; since 1999 the Estonian Association of Sociologists). Founding member of the Estonian Sociology Students' Union (1991). Founding member of the Estonian-Chinese Society (2007; discontinued). Member of the Board of Trustees of the Estonian Academy of Arts 2005–2014. He has also been a member of the supervisory board of the North Estonia Medical Centre Foundation (2007–2009) and the Environmental Investment Center Foundation (2003–2009). 2012–2016 and since February 2018 Member of the Council of Estonian Evangelical Lutheran Church Tallinn St. John's Congregation.
Personal life
Rosimannus is married to Keit Pentus-Rosimannus. One daughter (born in 2021). Two adult sons from a previous marriage. He has played football as a defender and midfielder at the Rapla County (Rapla SAO, Rapla KEK, FC Lelle), Tallinn Youth (OSK III) and Adult (Tallinn Specialized Car Base) and Estonian Championships (FC Tallinn, FC Toompea). He is a member of the Estonian Reform Party.
Articles, interviews
1. Juhan Kivirähk, Rain Rosimannus, Indrek Pajumaa (1993). The Premises for Democracy: A Study of Political Values in Post-Independent Estonia. Journal of Baltic Studies, Vol. XXIV, 2, lk. 149–160.
2. 2004 Rain Rosimannus, Mikk Titma. "Estonia" in Public Opinion and Polling Around the World. Geer, J. G. (Editor). Public Opinion and Polling Around the World: A Historical Encyclopedia, 2, Santa Barbara: ABC-CLIO. p 570–576
3. 1995 Rain Rosimannus. "Political Parties: Identity and Identification". In A. Park, R. Ruutsoo (editors) Visions and Policies: Estonia's Path to Independence and Beyond, 1987-1993, Nationalities Papers, Vol. 23, No. 1, 1995, p 29-41
References
1968 births
Living people
Estonian sociologists
Estonian Reform Party politicians
Members of the Riigikogu, 2003–2007
Members of the Riigikogu, 2007–2011
University of Tartu alumni
People from Rapla
|
Mollington is a village and civil parish about north of Banbury in Oxfordshire, England. The 2011 Census recorded the parish's population as 479.
Toponym
An Anglo-Saxon will from AD 1015 records the toponym as Mollintun and the Domesday Book of 1086 records it as Molitone and Mollitone. An entry for 1220 in the Book of Fees records it as Mulinton and a pipe roll from 1230 records it in its modern form of Mollington. It is derived from Old English, meaning the tūn of Molls people.
Manor and governance
Æthelstan Ætheling, eldest son of Æthelred the Unready willed an estate at Mollington to his father in 1014 or 1015. The Domesday Book records that by 1086 the manor was held by William d'Évreux, a kinsman of William the Conqueror.
In 1086 Mollington was partly in three counties: Oxfordshire, Warwickshire and Northamptonshire. Later the village was only in Oxfordshire and Warwickshire, and in 1895 the Warwickshire part was transferred to Oxfordshire by the Local Government Act 1894.
Church and chapel
Church of England
The earliest parts of the Church of England parish church of All Saints date from the 14th century, but the font is 13th century so there may have been an earlier church building on the site. All Saints' has a north aisle which is linked to the nave by an arcade of four bays. The tower was built in the 16th century. There was a chapel on the north side of the chancel, but it was demolished in 1786. A blocked arch and doorway survive in the north wall of the chancel and a piscina can be seen from the outside.
The building was restored in 1856 under the direction of the Gothic Revival architect William White. All Saints' is a Grade II* listed building.
The tower has a ring of six bells. Henry I Bagley of Chacombe, Northamptonshire cast the fifth bell in 1631 and John Briant of Hertford cast the fourth bell in 1789. Mears and Stainbank of the Whitechapel Bell Foundry cast the third and tenor bells in 1875. The Whitechapel Bell Foundry cast the treble and second bells in 1981, completing the present ring. All Saints has also a Sanctus bell, cast by John Conyers of Yorkshire in about 1630. Conyers had two bell-foundries: one in Kingston upon Hull and the other in New Malton.
All Saints' parish is now part of the Benefice of Shires' Edge along with the parishes of Claydon, Cropredy, Great Bourton and Wardington.
Primitive Methodist and Brethren
In 1817 a private house in Mollington was registered for non-conformist worship. Houses were registered for Methodist worship in 1821 and 1828. A Primitive Methodist minister preached in Mollington in 1835, and a red brick chapel of that denomination was built in the village in 1845. It thrived the 1850s, 60s and 70s but declined in the first half of the 20th century, and was closed in 1947.
The chapel was bought in 1950 for Brethren worship, but closed again by 1969. It is now a private house.
Social and economic history
In 1872 a National School was built in the village. It was a Church of England school and was still open in 1996, but has since been closed.
Mollington used to have a post office.
A Point to point racing ground opened at Mollington in 1972. A number of hunt groups were based at the ground until its closure in 2007. It has since reopened with its first event on 7 May 2012.
Amenities
Mollington has a public house, The Green Man, that was probably built in the middle of the 18th century. It also has a village hall and two children's playgrounds.
References
Sources
External links
Mollington Village Hall Oxfordshire
Civil parishes in Oxfordshire
Villages in Oxfordshire
|
Field Marshal Richard Molesworth, 3rd Viscount Molesworth, PC (Ire) FRS (1680 – 12 October 1758), styled The Honourable Richard Molesworth from 1716 to 1726, was an Anglo-Irish military officer, politician and nobleman. He served with his regiment at the Battle of Blenheim before being appointed aide-de-camp to the Duke of Marlborough during the War of the Spanish Succession. During the Battle of Ramillies Molesworth offered Marlborough his own horse after Marlborough fell from the saddle. Molesworth then recovered his commander's charger and slipped away: by these actions he saved Marlborough's life. Molesworth went on Lieutenant of the Ordnance in Ireland and was wounded at the Battle of Preston during the Jacobite rising of 1715 before becoming Master-General of the Ordnance in Ireland and then Commander-in-Chief of the Royal Irish Army.
Military career
Born the younger son of Robert Molesworth, 1st Viscount Molesworth and Letitia Molesworth (née Coote, daughter of Richard Coote, Lord Coloony), Molesworth abandoned his legal studies and was commissioned as an ensign in Orkney's Regiment on 14 April 1702.
Promoted to captain, Molesworth served with his regiment at the Battle of Blenheim in August 1704, before being appointed aide-de-camp to the Duke of Marlborough on 22 May 1706 during the War of the Spanish Succession. During the Battle of Ramillies, which took place the following day, Molesworth offered Marlborough his own horse after Marlborough fell from the saddle. Molesworth then recovered his master's charger and slipped away: by these actions he saved his master's life. Promoted to captain in the Coldstream Guards and lieutenant colonel in the Army on 5 May 1707, he was present at the relief of Brussels in 1708 and at the Battle of Malplaquet in September 1709 and was wounded by a mine at the Siege of Mons in October 1709. He commanded an infantry regiment in Catalonia under the Duke of Argyll from July 1710 until he returned to England in late 1712.
Molesworth became Lieutenant of the Ordnance in Ireland in December 1714 and was elected Member of Parliament in the Irish House of Commons for Swords in 1715. He raised a regiment of Dragoons in 1715 and was wounded at the Battle of Preston in November 1715 during the Jacobite rising of that year. After taking part in the competition to develop a marine chronometer, he was elected a Fellow of the Royal Society in March 1722.
Molesworth became colonel of the Inniskilling Regiment of Foot in March 1725 and succeeded his brother as 3rd Viscount Molesworth on 17 February 1726. He went on to be colonel of the Viscount Molesworth's Regiment of Dragoons in May 1732 and, having been promoted to major-general on 18 December 1735 and appointed a Lord Justice for Ireland in December 1736, he became colonel of the 5th Regiment of Dragoons in June 1737. Promoted to the local rank of lieutenant-general in Ireland in 1739, he became Master-General of the Ordnance in Ireland in 1740. Promoted to the substantive rank of lieutenant-general on 1 July 1742 and to general of the horse on 24 March 1746, he became Commander-in-Chief, Ireland in September 1751. At this time he lived at 14 Henrietta Street in Dublin.
Promoted to field marshal on 3 December 1757, Molesworth became Governor of the Royal Hospital Kilmainham; he died in London on 12 October 1758 and was buried in Kensington. He was succeeded in the title by his only son Richard. Lady Molesworth died in a house fire in 1763 with two of her daughters.
Family
Molesworth first married Jane Lucas, of whose family little is known; they had three children, Amelia, Letitia, and Mary, who became the second wife of Robert Rochfort, 1st Earl of Belvedere, and suffered greatly from his ill-treatment of her, which became a subject of public comment. Following the death of his first wife he married Mary Jenney Ussher, daughter of the Reverend William Ussher, Archdeacon of Clonfert, and his wife Mary Jenney, on 7 February 1744 and had seven children from this union: Richard, 4th Viscount Molesworth, Henrietta (who married Right Hon. John Staples, MP for Antrim), Elizabeth, Charlotte, Melosina, Mary and Louisa (who married firstly William Ponsonby, 1st Baron Ponsonby, and secondly William Fitzwilliam, 4th Earl Fitzwilliam). Mary and Melosina perished along with their mother in a house fire in 1763.
References
Sources
|-
1680 births
1758 deaths
Members of the Middle Temple
5th Royal Irish Lancers officers
9th Queen's Royal Lancers officers
British field marshals
Irish MPs 1715–1727
Members of the Parliament of Ireland (pre-1801) for County Dublin constituencies
Members of the Privy Council of Ireland
Royal Scots officers
Viscounts in the Peerage of Ireland
Fellows of the Royal Society
Coldstream Guards officers
Younger sons of viscounts
|
```objective-c
/* ui_util.h
* Declarations of UI utility routines; these routines have GUI-independent
* APIs, but GUI-dependent implementations, so that they can be called by
* GUI-independent code to affect the GUI.
*
* $Id: ui_util.h 36161 2011-03-08 01:52:25Z sake $
*
* Wireshark - Network traffic analyzer
* By Gerald Combs <gerald@wireshark.org>
*
* This program is free software; you can redistribute it and/or
* as published by the Free Software Foundation; either version 2
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
*
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#ifndef __UI_UTIL_H__
#define __UI_UTIL_H__
#include "epan/packet_info.h"
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
/* gui_utils.c */
/* Set the name of the top-level window and its icon. */
void set_main_window_name(const gchar *);
/* Update the name of the main window if the user-specified decoration
changed. */
void update_main_window_title(void);
/* update the main window */
extern void main_window_update(void);
/* exit the main window */
extern void main_window_exit(void);
/* quit a nested main window */
extern void main_window_nested_quit(void);
/* quit the main window */
extern void main_window_quit(void);
/* read from a pipe (callback) */
typedef gboolean (*pipe_input_cb_t) (gint source, gpointer user_data);
/* install callback function, called if pipe input is available */
extern void pipe_input_set_handler(gint source, gpointer user_data, int *child_process, pipe_input_cb_t input_cb);
/* packet_list.c */
void new_packet_list_clear(void);
void new_packet_list_freeze(void);
void new_packet_list_recreate_visible_rows(void);
void new_packet_list_thaw(void);
void new_packet_list_next(void);
void new_packet_list_prev(void);
guint new_packet_list_append(column_info *cinfo, frame_data *fdata, packet_info *pinfo);
frame_data * new_packet_list_get_row_data(gint row);
void new_packet_list_set_selected_row(gint row);
void new_packet_list_enable_color(gboolean enable);
void new_packet_list_queue_draw(void);
void new_packet_list_select_first_row(void);
void new_packet_list_select_last_row(void);
void new_packet_list_moveto_end(void);
gboolean new_packet_list_check_end(void);
gint new_packet_list_find_row_from_data(gpointer data, gboolean select);
void new_packet_list_resize_column(gint col);
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif /* __UI_UTIL_H__ */
```
|
Parker is a city in Bay County, Florida, United States. As of the 2010 census, it had a population of 4,317. It is part of the Panama City–Lynn Haven–Panama City Beach Metropolitan Statistical Area.
Geography
Parker is located at .
According to the United States Census Bureau, the city has a total area of 6.3 km (2.4 mi), of which is land and (20.16%) is water.
Demographics
At the 2010 census there were 4,317 people in 1,861 households, including 1,179 families, in the city. The population density was . There were 2,310 housing units at an average density of . The racial makeup of the city was 78.5% White, 12.5% African American, 0.9% American Indian or Alaska Native, 2.5% Asian, 1.2% some other race, and 4.3% from two or more races. Hispanic or Latino of any race were 5.6%.
There were 1,861 households, 23.6% had children under the age of 18 living with them, 42.8% were headed by married couples living together, 14.5% had a female householder with no husband present, and 36.6% were non-families. 29.4% of households were made up of individuals, and 11.6% were someone living alone who was 65 or older. The average household size was 2.32, and the average family size was 2.82.
The age distribution was 21.2% under the age of 18, 9.1% from 18 to 24, 24.3% from 25 to 44, 28.0% from 45 to 64, and 17.4% 65 or older. The median age was 40.9 years. For every 100 females, there were 94.8 males. For every 100 females age 18 and over, there were 91.6 males.
As of the 2000 census, the median household income was $35,813, and the median family income was $43,929. Males had a median income of $28,455 versus $21,205 for females. The per capita income for the city was $18,660. About 10.1% of families and 12.2% of the population were below the poverty line, including 21.3% of those under age 18 and 4.6% of those age 65 or over.
Education
Parker is home to Parker Elementary School , the city is part of the Bay County School District.
References
Cities in Bay County, Florida
Populated places on the Intracoastal Waterway in Florida
Populated places established in 1830
Cities in Florida
Former census-designated places in Florida
1830 establishments in Florida Territory
|
This is a list of Electricity distribution companies by country.
Albania
KESH (Albanian Power Corporation)
OSHEE (Electric Power Distribution Operator)
OST (Transmission System Operator)
Algeria
SDC (Groupe SONELGAZ)
Australia
Ausgrid (previously EnergyAustralia)
AusNet Services (previously SP AusNet)
Endeavour Energy (previously Integral Energy)
Energex
Ergon Energy
Essential Energy (previously Country Energy)
Evoenergy (previously ActewAGL)
Horizon Power
Jemena
Power and Water Corporation
Powercor Australia (includes CitiPower)
SA Power Networks (previously ETSA Utilities)
TasNetworks
United Energy
Western Power
Azerbaijan
Azerishiq (Baku)
Azerenerji
Bangladesh
Ashuganj Power Station Company Limited
Bangladesh Power Development Board
Dhaka Electric Supply Company Limited
Dhaka Power Distribution Company
Electricity Generation Company of Bangladesh
Northern Electricity Supply Company Limited
Power Grid Company of Bangladesh Limited
Rural Electrification Board of Bangladesh
West Zone Power Distribution Company Limited
Barbados
Barbados Light and Power Company
Belgium
Eandis:IMEA
Eandis:Imewo
Eandis:Intergem
Eandis:Iveka
Eandis:Iverlek
Eandis:Sibelgas
Elia
Gaselwest
Infrax:P.B.E.
Infrax:IVEG
Infrax:Infrax-West
Infrax:Inter-Electra
Ores:IDEG
Ores:IEH
Ores:IGH
Ores:Interest
Ores:Interlux
Ores:Intermosane
Ores:Sedilec
Ores:Simogel
RESA
Sibelga
Brazil
Enel São Paulo
Energisa
EDP Brasil
Celesc
Celpe
Cemig
CPFL, subsidiary of State Grid Corporation of China
Coelba
Copel
Cosern
Elektro
Equatorial Energia
Light
RGE
Botswana
Botswana Power Corporation
Canada
Alectra Utilities
AltaLink
ATCO Electric
ATCO Power
BC Hydro and Power Authority
Brookfield Power
Cornwall Electric
ENMAX
EPCOR
EQUS REA LTD.
FortisAlberta
FortisBC
Hydro One
Hydro Ottawa
Hydro-Québec Distribution
Manicouagan Power Company
Manitoba Hydro
Maritime Electric Power Company
New Brunswick Power
Newfoundland and Labrador Hydro
Newfoundland Power
Northwest Territories Power Corporation
Nova Scotia Power
Ontario Power Generation
Saint John Energy
SaskPower
Toronto Hydro
TransAlta
TransCanada Corporation
Yukon Energy Corporation
Additionally, there are dozens of small regional companies, some of which are listed in List of Canadian electric utilities.
China
China Southern Power Grid
State Grid Corporation of China
Colombia
ISA INTERCOLOMBIA (Grupo ISA)
Costa Rica
Instituto Costarricense de Electricidad
Compañía Nacional de Fuerza y Luz (CNFL)
Coopeguanacaste
Coopelesca
Coopesantos
Coopealfaroruiz
Empresa de Servicios Públicos de Heredia (ESPH)
JASEC
Croatia
HEP Operator distribucijskog sustava (HEP ODS)
Cyprus
Electricity Authority of Cyprus
Czech Republic
CEZ Distribuce
E.ON Distribuce
PREdistribuce
Denmark
DONG Energy - now Orsted
Energi & MiljøForum Thy/Mors
Energi Fyn
Energi Hurup
Energi Nord
EnergiMidt
Elforsyning Sydvendsyssel
Helsingør Elforsyning
Himmerlands Elforsyning
Korsør Forsyning A/S
N1
Natur-Energi
NRGi
Nyfors
SEAS-NVE
SYD Energi (ESS Energi Danmark)
Struer Forsyning
Sydfyns Elforsyning
TRE-FOR
Verdo
Egypt
Canal Company for Electricity Distribution
Estonia
220 Energia
Alexela Energia
Baltic Energy Services
Eesti Energia
Eesti Gaas
Elektrum (Latvenergo)
Elveso
Energijos tiekimas
ESRO
Imatra Elekter (Imatran Seudun Sähkö)
Sagro Elekter
Sillamäe SEJ
TS Energia (Port of Tallinn)
VKG Elektrivõrgud
Finland
Caruna
Elenia
Forssan Energia
Helen
Kokemäen Sähkö
Köyliön-Säkylän Sähkö
Lankosken Sähkö
Lappeenrannan Energia
Leppäkosken Sähkö
Lammaisten Energia
Paneliankosken Voima
Pohjolan Voima
Sallila Energia
Savon Voima
Tampereen Sähköverkko
Teollisuuden Voima
Vantaan Energia
Vatajankosken Sähkö
Vakka-Suomen Voima
France
Enedis, main distribution company in France with 95% of the electricity distribution grid, 100% subsidiary of Électricité de France (EDF)
Local distribution companies :
(ES Energies)
(GEG)
SICAE de l’Aisne
Régie d’électricité de Roquebillière
Régie municipale de Tarascon-sur-Ariège
Régie du Syndicat Electrique Intercommunal du Pays Chartrain (RSEIPC)
Régie municipale multiservices de la Réole
SICAP Pithiviers
Régie communale d’électricité de Saulnes
Usine d’Électricité de Metz (UEM)
SICAE de l’Oise
Vialis Colmar
Régie d’électricité d’Elbeuf
Seolis
Coopérative d’électricité de Villiers-sur-Marne
Germany
E.ON
EnBW
Entega
EWR
RWE
Stadtwerke Gronau
Stadtwerke Haiger
Stadtwerke Mainz
M-Strom (Stadtwerke München)
Vattenfall
Westnetz
Stromnetz Berlin
Westnetz GmbH
Bayernwerk Netz GmbH
Netze BW GmbH
Stromnetz Berlin GmbH
Mitteldeutsche Netzgesellschaft Strom mbH
EWE NETZ GmbH
E.DIS Netz GmbH
Avacon Netz GmbH
Syna GmbH
Stromnetz Hamburg GmbH
Rheinische NETZGesellschaft mbH
SWM Infrastruktur GmbH & Co. KG
EAM Netz GmbH
Schleswig-Holstein Netz AG
n-ERGIE Netz GmbH
Westfalen Weser Netz GmbH
LEW Verteilnetz GmbH
TEN Thüringer Energienetze GmbH & Co. KG
NEW Netz GmbH
e-netz Südhessen GmbH & Co. KG
NRM Netzdienste Rhein-Main GmbH
enercity Netzgesellschaft mbH
ENSO Netz GmbH
Netzgesellschaft Düsseldorf mbH
Stuttgart Netze Betrieb GmbH
Netz Leipzig GmbH
Dortmunder Netz GmbH
regionetz GmbH
wesernetz Bremen GmbH
Pfalzwerke Netz AG
DREWAG NETZ GmbH
Netze Duisburg GmbH
ED Netze GmbH
ELE Verteilnetz GmbH
ENERVIE Vernetzt GmbH
ovag Netz AG
Netzgesellschaft Ostwürttemberg DonauRies GmbH
EWR Netz GmbH
e-rp GmbH
Energienetze Mittelrhein GmbH & Co. KG
Mainzer Netze GmbH
Stadtwerke Bochum Netz GmbH
WSW Netz GmbH
bnNETZE GmbH
energis-Netzgesellschaft mbH
SWB Netz GmbH
LSW Netz GmbH & Co. KG
Bonn-Netz GmbH
MVV Netze GmbH
münsterNetz GmbH
Stadtwerke Karlsruhe Netzservice GmbH
SWKiel Netz GmbH
swa Netze GmbH
Stadtwerke Wiesbaden Netz GmbH
WEMAG Netz GmbH
Netze Mittelbaden GmbH & Co. KG
OsthessenNetz GmbH
NGN NETZGESELLSCHAFT NIEDERRHEIN MBH
Braunschweiger Netz GmbH
Regensburg Netz GmbH
Netze Magdeburg GmbH
Celle-Uelzen Netz GmbH
Energieversorgung Halle Netz GmbH
Stadtwerke Ulm/Neu-Ulm Netze GmbH
Energienetze Offenbach GmbH
Netz Lübeck GmbH
Oberhausener Netzgesellschaft mbH
SWE Netz GmbH
FairNetz GmbH
Stadtwerke Rostock Netzgesellschaft mbH
Mainfranken Netze GmbH
AVU Netz GmbH
Städtische Werke Netz + Service GmbH
AllgäuNetz GmbH & Co. KG
Netzgesellschaft Potsdam GmbH
Stadtwerke Saarbrücken Netz AG
Energie- und Wasserversorgung Hamm GmbH
TWL Netze GmbH
Mittelhessen Netz GmbH
Harz Energie Netz GmbH
SWO Netz GmbH
SWS Netze Solingen GmbH
Stadtwerke Heidelberg Netze GmbH
Stadtwerke Jena Netze GmbH
SWP Stadtwerke Pforzheim GmbH & Co. KG
Stadtwerke Ingolstadt Netze GmbH
NHF Netzgesellschaft Heilbronn-Franken mbH
GGEW, Gruppen-Gas- und Elektrizitätswerk Bergstraße AG
infra fürth gmbh
Energie Waldeck-Frankenberg GmbH
Unterfränkische Überlandzentrale eG
Erlanger Stadtwerke AG
wesernetz Bremerhaven GmbH
EWR GmbH
Albwerk GmbH & Co. KG
GSW Gemeinschaftsstadtwerke GmbH
SWT Stadtwerke Trier Versorgungs-GmbH
EVI Energieversorgung Hildesheim GmbH & Co. KG
Netzgesellschaft Gütersloh mbH
Aschaffenburger Versorgungs-GmbH
SWK Stadtwerke Kaiserslautern Versorgungs-AG
Netzgesellschaft Schwerin mbH (NGS)
Hanau Netz GmbH
GeraNetz GmbH
SÜC Energie und H2O GmbH
Überlandwerk Rhön GmbH
LEITUNGSPARTNER GmbH
Stadtwerke Konstanz GmbH
BIGGE ENERGIE GmbH & Co. KG
Thüga Energienetze GmbH
Elektroenergieversorgung Cottbus GmbH
nvb Nordhorner Versorgungsbetriebe GmbH
Dessauer Stromversorgung GmbH
Zwickauer Energieversorgung GmbH
GEW Wilhelmshaven GmbH
Vereinigte Wertach-Elektrizitätswerke GmbH
Stadtwerke Troisdorf GmbH
KEW Kommunale Energie- und Wasserversorgung AG
TWS Netz GmbH
Energie- und Wasserversorgung Rheine GmbH
Bocholter Energie- und Wasserversorgung GmbH
BEW Netze GmbH
StWB Stadtwerke Brandenburg an der Havel GmbH & Co. KG
Stadtwerke Aalen GmbH
Stadtwerke Schweinfurt GmbH
Energieversorgung Rüsselsheim GmbH
Verteilnetz Plauen GmbH
ENWG Energienetze Weimar GmbH & Co. KG
Neubrandenburger Stadtwerke GmbH
Osterholzer Stadtwerke GmbH & Co. KG
Stadtwerke Rosenheim Netze GmbH
Hertener Stadtwerke GmbH
Überlandwerk Leinetal GmbH
SWS Netze GmbH
Netzgesellschaft Frankfurt (Oder) mbH
Regionalwerk Bodensee Netze GmbH & Co. KG
Vereinigte Stadtwerke Netz GmbH
Mainnetz GmbH
GWS Stadtwerke Hameln GmbH
Stadtwerke Wolfenbüttel GmbH
EnergieSüdwest Netz GmbH
Albstadtwerke GmbH
Netzgesellschaft Ahlen mbH
Hellenstein-Energie-Logistik GmbH
KommEnergie GmbH
enwag energie- und wassergesellschaft mbH
SVS-Versorgungsbetriebe GmbH
Stadtwerke Passau GmbH
Freisinger Stadtwerke Versorgungs-GmbH
Überlandwerk Erding GmbH & Co. KG
Elektrizitätswerk Wörth a.d. Donau Rupert Heider & Co. KG
SWE Netz GmbH (Ettlingen)
star.Energiewerke GmbH & Co. KG
Energie- und Wasserversorgung Bruchsal GmbH
SWF Stadtwerke Fellbach GmbH
Stromnetz Weiden i.d.Opf. GmbH & Co. KG
Stadtnetze Neustadt a. Rbge. GmbH & Co. KG
MEGA Monheimer Elektrizitäts- und Gasversorgung GmbH
ENRW Energieversorgung Rottweil GmbH & Co. KG
Strom- und Gasnetz Wismar GmbH
EVB Netze GmbH
Nordhausen Netz GmbH
Alliander Netz Heinsberg GmbH
Freiberger Stromversorgung GmbH
Maintal-Werke-GmbH
Energienetze Bayern GmbH
FREITALER STROM+GAS GMBH
Netzgesellschaft Bitterfeld-Wolfen mbH
Teutoburger Energie Netzwerk eG (TEN eG)
EGT Energie GmbH
SWL Verteilungsnetzgesellschaft mbH
WEV Warendorfer Energieversorgung GmbH
Stadtwerke Merseburg GmbH
Energie- und Wasserwerke Bautzen GmbH
Stadtwerke Zweibrücken GmbH
Netzwerke Saarlouis GmbH
Elektrizitätsnetze Allgäu GmbH
Versorgungsbetriebe Hoyerswerda GmbH
e.wa riss Netze GmbH
Rheinhessische Energie- und Wasserversorgungs-GmbH
Sömmerdaer Energieversorgung GmbH
Werraenergie GmbH
SEW Stromversorgungs-GmbH
NHL Netzgesellschaft Heilbronner Land GmbH & Co. KG
KWH Netz GmbH
Stromnetzgesellschaft Herrenberg mbH & Co. KG
Netzwerke Merzig GmbH
Stadt- und Überlandwerke GmbH Luckau-Lübbenau
Energie- und Wasserversorgung Altenburg GmbH
REDINET Burgenland GmbH
SWN Stadtwerke Northeim GmbH
Stadtwerke Ilmenau GmbH
Meißener Stadtwerke GmbH
Wirtschaftsbetriebe der Stadt Norden GmbH
Bad Honnef AG
Technische Werke Naumburg GmbH
Stadtwerke Zirndorf GmbH
Netzgesellschaft Lübbecke mbH
VersorgungsBetriebe Elbe GmbH
Stromnetz Kulmbach GmbH & Co. KG
SSW Netz GmbH
Kommunale Energienetze Inn-Salzach GmbH & Co. KG
Kommunale Energieversorgung GmbH Eisenhüttenstadt
Saalfelder Energienetze GmbH
Schleswiger Stadtwerke GmbH
Stadtwerke Staßfurt GmbH
EGF EnergieGesellschaft Frankenberg mbH
Herzo Werke GmbH
Versorgungsbetriebe Hann. Münden GmbH
Stadtwerke Lutherstadt Eisleben GmbH
EZV Energie- und Service GmbH & Co. KG Untermain
Energie Calw GmbH
Licht-, Kraft- und Wasserwerke Kitzingen GmbH
ENA Energienetze Apolda GmbH
EnR Energienetze Rudolstadt GmbH
Stadtwerk Tauberfranken GmbH
T.W.O. Technische Werke Osning GmbH
Stadtwerke Zittau GmbH
Greizer Energienetze GmbH
Städtische Betriebswerke Luckenwalde GmbH
InfraServ GmbH & Co. Wiesbaden KG
TRIDELTA Energieversorgungs GmbH
Stromversorgung Neunkirchen GmbH
Stromnetzgesellschaft Hechingen GmbH & Co. KG
Energieversorgung Sylt GmbH
EVE Netz GmbH
EHINGER ENERGIE GmbH & Co. KG
SWL-energis Netzgesellschaft mbH & Co. KG
Stadtwerke Wolfhagen GmbH
Energieversorgung Alzenau GmbH
NETZE Bad Langensalza GmbH
Netzgesellschaft Forst (Lausitz) mbH & Co. KG
SWV Regional GmbH
SWW Wunsiedel GmbH
SVI - Stromversorgung Ismaning GmbH
ews-Netz GmbH
Überlandzentrale Wörth/I.-Altheim Netz AG
Stadtwerke Weißenburg GmbH
Stadtwerk Haßfurt GmbH
Stadtwerke Witzenhausen GmbH
Verteilnetze Energie Weißenhorn GmbH & Co. KG
Stadtwerke Zeven GmbH
TWL-Verteilnetz GmbH
NWW Netzwerke Wadern GmbH
Städtische Werke Borna Netz GmbH
SWN Stadtwerke Neustadt GmbH
NordNetz GmbH
Blomberger Versorgungsbetriebe GmbH
StWL Städtische Werke Lauf a.d. Pegnitz GmbH
Stromversorgung Zerbst GmbH & Co. KG
eneREGIO GmbH
SWR Energie GmbH & Co. KG
Stromversorgung Pfaffenhofen a. d. Ilm GmbH & Co. KG
NWS Netzwerke Saarwellingen GmbH
Energie und Wasserversorgung Aktiengesellschaft Kamenz
EMB Energieversorgung Miltenberg-Bürgstadt GmbH & Co. KG
Butzbacher Netzbetrieb GmbH & Co. KG
HEWA GmbH
Kommunalunternehmen Gemeindewerke Peißenberg
PVU Energienetze GmbH
Versorgungsbetriebe Kronshagen GmbH
Bauer Netz GmbH & Co. KG
VersorgungsWerke Heddesheim GmbH & Co. KG
Elektrizitätsgenossenschaft Hasbergen e.G.
Verbandsgemeindewerke Dahner Felsenland
Eichsfelder Energie- und Wasserversorgungsgesellschaft mbH
Netzgesellschaft Eisenberg mbH
Stadtnetze Barmstedt GmbH
KEEP - Kommunale Eisenberger Energiepartner GmbH
Regionalnetze Linzgau GmbH
SVH Stromversorgung Haar GmbH
Netzbetrieb Hirschberg GmbH & Co. KG
Odenwald Netzgesellschaft GmbH & Co. KG
Energie- und Wasserversorgung Kirchzarten GmbH
Versorgungsbetriebe Bordesholm GmbH
Havelstrom Zehdenick GmbH
Weißachtal-Kraftwerke eG
Stromversorgung Angermünde GmbH
SWB Stadtwerke Biedenkopf GmbH
Feuchter Gemeindewerke GmbH
Stadtwerke Zwiesel
Stromversorgung Sulz GmbH
Städtisches Kommunalunternehmen Baiersdorf
Überlandwerk Eppler GmbH
GELSENWASSER Energienetze GmbH
KEW Karwendel Energie & Wasser GmbH
Saerbecker Ver- und Entsorgungsnetzgesellschaft mbH
Verbandsgemeindewerke Enkenbach-Alsenborn
Energieversorgung A9 Mitte GmbH & Co. KG
Licht- und Kraftwerke Helmbrechts GmbH
EWR Netze GmbH
Versorgungsbetriebe Zellingen
Kommunalunternehmen Stadtwerke Klingenberg (AöR)
Stadtwerke Zeil a. Main
Elektrizitätswerke Schönau Netze GmbH
Stromversorgung Inzell eG
Stromversorgung Schierling eG
Wirtschaftsbetriebe der Stadt NSHB Borkum GmbH
abita Energie Otterberg GmbH
Stromversorgung Röttenbach
Versorgungsbetrieb Waldbüttelbrunn GmbH
Gammertinger Energie- und Wasserversorgung GmbH
Cramer-Mühle KG
Gebrüder Eirich GmbH & Co KG
Gebrüder Miller GmbH & Co. KG
EVI Energieversorgung Ihmert GmbH & Co KG
Raiffeisenbank Greding-Thalmässing eG
C. Ensinger GmbH & Co. KG
Westenthanner Energieversorgung GmbH
Rothmoser GmbH & Co. KG
Elektrizitätsgenossenschaft Dirmstein eG
Elektrizitätsgenossenschaft Oesterweg e.G.
Elektra-Genossenschaft Effeltrich eG
TauberEnergie Kuhn, Karl und Andreas Kuhn OHG
Energienetze Berlin GmbH
Versorgungsbetriebe Röttingen
GETEC net delta GmbH & Co.KG
Fürstlich Fugger v. Glött´sche E-Werk GmbH & Co. KG
Eichenmüller GmbH & Co. KG Energieversorgung + Elektrotechnik
Markt Thüngen
Müller - Mühle GmbH & Co. KG
Hermann Geuder e.K. Elektrizitätswerk
Stromkontor Netzgesellschaft mbH
Elektrizitätsgenossenschaft Karlstein eG
Elektrizitäts- und Wasserversorgungsgenossenschaft Vagen eG
EVIP GmbH
Covestro Brunsbüttel Energie GmbH
Pharmaserv GmbH
Greece
HEDNO
Hong Kong
CLP
Hongkong Electric
Hungary
ÉDÁSZ
DÉDÁSZ
TITÁSZ
ELMŰ
ÉMÁSZ
DÉMÁSZ
Iceland
HS Veitur
Landsnet (Transmission System Operator)
Norðurorka
Orkubú Vestfjarða
RARIK
Veitur
India
Adani Electricity Mumbai Limited
Ajmer Vidyut Vitran Nigam Ltd
Andhra Pradesh State Electricity Board (APSEB), Andhra Pradesh
Southern Power Distribution Company of Andhra Pradesh Limited
Assam Power Distribution Company Limited (APDCL), Assam
Bangalore Electricity Supply Company
Brihanmumbai Electric Supply and Transport
BSES Rajdhani Power Ltd. Delhi
BSES Yamuna Power Ltd. Delhi
Calcutta Electric Supply Corporation
Chamundeshwari Electricity Supply Corporation Limited
Dakshin Gujarat Vij Company Ltd. (DGVCL) Surat
Dakshin Haryana Bijli Vitran Nigam
Damodar Valley Corporation
Essel Vidhyut Vitran Ujjain Pvt. Ltd.
Goa Electricity Board
Gulbarga Electricity Supply Company Limited
Hubli Electricity Supply Company Limited
India Power Corporation Limited
Jaipur Vidyut Vitran Nigam Limited
Jodhpur Vidyut Vitran Nigam Ltd
Karnataka Power Corporation Limited
Kerala State Electricity Board
Madhya Pradesh Paschim Kshetra Vidyut Vitaran Company Ltd.
Madhya Pradesh Poorv Kshetra Vidyut Vitaran Company Ltd.
Madhya Pradesh Madhya Kshetra Vidyut Vitaran Company Ltd.
Madhya Gujarat Vij Company Ltd. (MGVCL) Vadodara
Maharashtra State Electricity Distribution Company Limited
Mangalore Electricity Supply Company Limited
Manipur State Power Distribution Company Limited
National Thermal Power Corporation
Neyveli Lignite Corporation
North Eastern Supply Company of Odisha Ltd
Noida Power Company Limited
North Bihar Power Distribution Company Limited
Paschim Gujarat Vij Company Ltd (PGVCL) Rajkot
Power Development Department
PowerGrid Corporation of India
Punjab State Power Corporation Limited
Reliance Infrastructure
South Bihar Power Distribution Company Limited
Southern Electricity Supply Company of Orissa
Tamil Nadu Electricity Board
Tata Power
Tata Power Delhi Distribution Limited (NDPL), Delhi
Torrent Power Ltd
Torrent Power Ltd, Agra
Torrent Power Ltd, Ahmedabad
Torrent Power Ltd, Surat
Tripura State Electricity Corporation Limited (TSECL)
Uttar Gujarat Vij Company Ltd (UGVCL) Mehsana
Uttar Haryana Bijli Vitran Nigam Limited
Uttar Pradesh Power Corporation Limited
Dakshinanchal Vidyut Vitaran Nigam Limited (DVVNL)[2] - Agra Zone Discom
Kanpur Electricity Supply Company (KESCO)[6] - Kanpur City Discom
Lucknow Electricity Supply Administration (LESA) - Lucknow City Discom
Madhyanchal Vidyut Vitaran Nigam Limited (MVVNL)[3] - Lucknow Zone Discom
Pashchimanchal Vidyut Vitaran Nigam Limited (PVVNL)[4] - Meerut Zone Discom
Purvanchal Vidyut Vitaran Nigam Limited (PUVVNL)[5] - Varanasi Zone Discom
West Bengal State Electricity Board (WBSEDCL)
Indonesia
Perusahaan Listrik Negara
Ireland
ESB Group
Italy
A2A
Edison S.p.A.
Enel
Eni
Sorgenia
Terna Group
Iran
Israel
Israel Electric Corporation
Japan
Chubu Electric Power Company
Chugoku Electric Power Company
Hokkaido Electric Power Company
Hokuriku Electric Power Company
Kansai Electric Power Company
Kyushu Electric Power Company
Okinawa Electric Power Company
Shikoku Electric Power Company
Tohoku Electric Power Company
Tokyo Electric Power Company
Jordan
NEPCO
Jordan Electric Power Company - JEPCO
Kenya
Kenya Power and Lighting Company
Latvia
Inter RAO
Latvenergo
Lebanon
Electricité Du Liban (EDL)
Lithuania
AB ESO
Macau
CEM
Madagascar
Jirama
Hydelec Madagascar
Malaysia
Tenaga Nasional
Sarawak Energy
Sabah Electricity
Mexico
Comisión Federal de Electricidad
Namibia
Central North Regional Electricity Distributor
City of Windhoek
Erongo Red
NamPower
Nored Electricity
Nepal
Nepal Electricity Authority
Netherlands
Coteq Netbeheer
Enduris
Enexis
Liander
Rendo
Stedin
Westland Infra
New Zealand
Alpine Energy
Aurora Energy
Buller Electricity
Centralines
Counties Power
Eastland Network
Electra
Electricity Ashburton
Electricity Invercargill
Horizon Energy Distribution
MainPower
Marlborough Lines
Nelson Electricity
Network Tasman
Network Waitaki
Northpower
Orion
OtagoNet
Powerco
Scanpower
The Lines Company
The Power Company
Top Energy
Unison Networks
Vector Limited
Waipa Networks
WEL Networks
Wellington Electricity
Westpower
Nigeria
Abuja Electricity Distribution Company
Benin Electricity Distribution Company
Eko Electricity Distribution Company
Enugu Electricity Distribution Company
Ibadan Electricity Distribution Company
Ikeja Electricity Distribution Company
Jos Electricity Distribution Company
Kaduna Electricity Distribution Company Plc
Kano Electricity Distribution Company
Port Harcourt Electricity Distribution Company
Yola Electricity Distribution Company
North Macedonia
EVN AD Skopje (subsidiary of EVN Group)
Pakistan
Arslan Electric Provider (AEP)
Faisalabad Electric Supply Company
Gujranwala Electric Power Company
Hazara Electric Power Company
Hub Power Company
Hyderabad Electric Supply Company
Islamabad Electric Supply Company
K-Electric
Kot Addu Power Company
Lahore Electric Supply Company
Multan Electric Power Company
Peshawar Electric Power Company
Quetta Electric Supply Company
Sukkur Electric Supply Company
Tribal Electric Supply Company
Water and Power Development Authority
Philippines
Davao Light and Power Company
Meralco
National Power Corporation
National Grid Corporation of the Philippines
Visayan Electric Company
Poland
Enea Operator Sp. z o.o.
Energa Operator SA
PGE Dystrybucja SA
Polskie Sieci Elektroenergetyczne (PSE)
RWE Stoen Operator Sp. z o.o.
Tauron Dystrybucja SA
Portugal
Energias de Portugal
Redes Energéticas Nacionais
Qatar
Kahramaa
Romania
A ENERGY INDSRL
ADERRO GP ENERGY
ALPA WIND SRL
Alpiq RomIndustries S.R.L.
ALRO S.A.
APURON Energy
AXPO ENERGY ROMANIA SA
C-Gaz & Energy Distributie SRL
CAS REGENERABILE SRL
CEZ Distribuție SA
CEZ Vanzare
CIGA ENERGY SA
CURENT ALTERNATIV SRL
Electric Planners SRL
Electrica S.A.
Electrica Distribuție Muntenia Nord SA
Electrica Transilvania Nord SA
ENOL GRUP SA
ENEL TRADE ROMANIA SRL
Energy Distribution Services
ENEX S.R.L.
ENGIE Romania
ENTREX SERVICES SRL
E.ON Energie Romania
EVA ENERGY S.A
EFT FURNIZARE S.R.L.
ELECTROMAGNETICA SA
GDM LOGISTICS
GETICA 95 COM
INDUSTRIAL ENERGY S.A.
Luxten Lighting Company S.A.
MET ROMANIA ENERGY MARKETING SRL
Monsson Trading S.R.L.
NEPTUN S.A.
NEXT ENERGY PARTNERS S.R.L.
NOVA POWER & GAS
PHOTOVOLTAIC GREEN PROJECT S.R.L.
POWER CLOUDS S.R.L.
RCS &RDS SA
RENOVATIO TRADING SRL
RESTART ENERGY ONE SRL
ROMELECTRO SA
RWE energie electrică
S.C. ENERGY NETWORK S.R.L.
S.C. MIDAS&CO SRL
S.C. Vienna Energy Forta Naturala S.R.L
SC ALIVE CAPITAL SRL
SC Fidelis Energy Srl
SC ELECTRICOM SA
SC ELECTRIFICARE CFR SA
SC NEXT POWER SRL
SC STOCK ENERGY SRL
Tinmar Energy
TRANSENERGO COM S.A.
WERK ENERGY SRL
VENTUS RENEW ROMANIA SRL
Russia
Rosseti
RusHydro
Inter RAO
IDGC of the Urals
IDGC of Siberia
IDGC of Center and Volga Region
IDGC of Volga
IDGC of South
IDGC of the North Caucasus
Kubanenergo
Lenenergo
Moscow United Electric Grid Company
Tyumenenergo
Yantarenergo
Serbia
Elektroprivreda Srbije
ENEKOD
Restart Energy DOO
Singapore
Singapore Power
Slovenia
Elektro Celje
Elektro Gorenjska
Elektro Ljubljana
Elektro Maribor
Elektro Primorska
GEN-I
South Africa
Eskom
South Korea
Korea Electric Power Corporation
Spain
Red Eléctrica de España
Sri Lanka
Ceylon Electricity Board
Sweden
E.ON
Ellevio
Götene Elförening ek. för.
Gislaved Energi AB
Öresundskraft
Sala-Heby Energi Elnät AB
Smedjebacken Energi Nät AB
Sollentuna Energi AB
Varabygdens Energi ek. för.
Vattenfall
Switzerland
BKW
Groupe E
Taiwan
Taiwan Power Company
Tanzania
TANESCO-TZ does not allow any other firm to provide electricity
Thailand
Electricity Generating Authority of Thailand
Metropolitan Electricity Authority
Provincial Electricity Authority
Turkey
Akdeniz Electricity Distribution Company
Akedaş Electricity Distribution Corp.
Aras Electricity Distribution Company
Aydem Electricity Distribution Corp.
Boğaziçi Electricity Distribution Company
Çalık Yeşilırmak Electricity Distribution Company
Çamlıbel Electricity Distribution Corp.
Çoruh Electricity Distribution Company
Dicle Electricity Distribution Company
Enerjisa Başkent Electricity Distribution Company
Fırat Electricity Distribution Company
Gediz Electricity Distribution Company
İstanbul Anadolu Yakası Electricity Distribution Company
Kayseri ve Civarı Electricity Distribution Turk Corp.
Meram Electricity Distribution Company
Osmangazi Electricity Distribution Company
Sakarya Electricity Distribution Company
Trakya Electricity Distribution Company
Toroslar Electricity Distribution Company
Turkish Electricity Distribution Corporation
Uludağ Electricity Distribution Company
Yeşilırmak Electricity Distribution Company
Van Gölü Electricity Distribution Company
United Arab Emirates
Abu Dhabi - Abu Dhabi Distribution Company (ADDC) and Al Ain Distribution Company (AADC)
Dubai - Dubai Electricity & Water Authority (DEWA)
Sharjah - Sharjah Electricity & Water Authority (SEWA)
Rest of UAE - Federal Electricity & Water Authority (FEWA)
United Kingdom
There are 15 distribution network operator (DNO) regions. Fourteen different district networks are managed by six operators across England, Scotland and Wales, whilst one operator controls the distribution network in Northern Ireland.
England
Electricity North West (previously NORWEB)
Northern Powergrid (Northern Electric & Yorkshire Electricity)
Scottish and Southern Electricity Networks (previously Scottish Hydro-Electric)
Scottish Power (SP Manweb)
UK Power Networks (LPN-EPN & SPN)
National Grid (Great Britain) (Western Power Distribution, Central Networks and SWEB)
Scotland
Scottish and Southern Electricity Networks (previously Scottish Hydro-Electric)
Scottish Power
Wales
Scottish Power (SP Manweb)
National Grid (Great Britain) (Western Power Distribution, Infralec and South Wales Electricity)
Northern Ireland
ESB Group (Northern Ireland Electricity)
United States
Alabama - Alabama Power, a part of the Southern Company, PowerSouth Energy Cooperative, Inc., Wiregrass Electric Cooperative, Tennessee Valley Authority
Alaska - Golden Valley Electric Association, Chugach Electric Association, Copper Valley Electric Association, Municipal Light & Power, Kodiak Electric Association
Arizona - Arizona Public Service, Salt River Project, Tucson Electric Power
Arkansas - Entergy
California - Azusa Light & Water, East Bay Municipal Utility District, Glendale Public Service Department, Gridley Municipal Utilities, Healdsburg Municipal Electric Department, Los Angeles Department of Water and Power, Merced Irrigation District, Modesto Irrigiation District, Nevada Irrigation District, Placer County Water Agency, Pacific Gas & Electric, Pacific Power, Riverside Public Utilities, Sacramento Municipal Utility District, Santa Clara Electric Department, San Diego Gas & Electric, Sierra-Pacific Power, Southern California Edison, Southern California Public Power Authority, Turlock Irrigation District, California Department of Water Resources, U.S. Bureau of Reclamation, Pasadena Water & Power, Burbank Water & Power, Anaheim Public Utilities
Colorado - Xcel Energy
Connecticut - Northeast Utilities (including Connecticut Light & Power), United Illuminating, Connecticut Natural Gas, Discount Power
Delaware - Delmarva Power and Light (a subsidiary of Exelon)
District of Columbia - PEPCO
Florida - Florida Power & Light, TECO, Progress Energy Florida, Lake Worth Utilities, JEA (formerly Jacksonville Electric Authority), Gulf Power Company, a part of the Southern Company, Kissimmee Utility Authority, Ocala Electric, Florida Public Utility Company Palm Beach, Florida Municipal Power Agency, LCEC
Georgia - Georgia Power, a part of the Southern Company, Flint Energies, Tennessee Valley Authority
Hawaii - Hawaiian Electric Industries (HECO)
Idaho - IDACORP, PacifiCorp (Rocky Mountain Power)
Illinois - ComEd, Ameren
Indiana - AES Indiana, Duke Energy, Northern Indiana Public Service Company, American Electric Power
Iowa - MidAmerican Energy
Kansas - Kansas City Power & Light, Westar Energy, Kansas City Board of Public Utilities
Kentucky - Kentucky Utilities, Louisville Gas & Electric, Duke Energy, American Electric PowerOwensboro Municipal Utilities
Louisiana - SWEPCO (a subsidiary of American Electric Power), Entergy, CLECO
Maine - Central Maine Power, Bangor Hydro Electric
Maryland - Allegheny Power, Baltimore Gas & Electric, Choptank Electric Cooperative, Delmarva Power, PEPCO, Southern Maryland Electric Cooperative,
Massachusetts - Massachusetts Municipal Wholesale Electric Company (MMWEC), NSTAR, Northeast Utilities (including Western Massachusetts Electric, Berkshire Company/WMECO), National Grid (including Nantucket Electric and Massachusetts Electric), Peabody Municipal Light Plant
Michigan - Consumers Energy, DTE Energy/(Detroit Edison), We Energies, American Electric Power, Wyandotte Municipal Services City of Wyandotte only, Holland Board of Public Works, Lansing Board of Water & Light
Mississippi - Entergy, Southwest Mississippi Electric Power Association, Magnolia Electric, Mississippi Power company, a part of the Southern Company, Tennessee Valley Authority
Minnesota - Xcel Energy, Great River Energy (and its 28-member cooperatives), Minnkota Power Cooperative (and its 11-member cooperatives), Basin Electric Power Cooperative, Dairyland Power Co-op, East River Electric Power Co-op, Hutchinson Utilities Commission, Interstate Power and Light Company, L&O Power Co-op, Marshall Municipal Utilities, Minnesota Power, Minnetonka Power Co-op, Missouri River Energy, Otter Tail Power Company, Rochester Public Utilities Commission, Southern Minnesota Municipal Power Agency, Willmar Municipal Utilities, Freeborn-Mower Co-op Services, People’s Co-op, Tri-County Electric
Missouri - Ameren, Kansas City Power & Light, Empire District Electric, Aquila, City Utilities of Springfield, Independence Power and Light
Montana - Central Montana Electric Power Cooperative, MDU, Montana Electric Cooperatives' Association (and its 25-member cooperatives), NorthWestern Energy
Nebraska - Omaha Public Power District, Nebraska Public Power District
Nevada - Nevada Power, Sierra Pacific Power
New Hampshire - Northeast Utilities (including Public Service of NH), National Grid (including Granite State Electric)
New Jersey - Atlantic City Electric (A subsidiary of Exelon), Public Service Electric and Gas Company (PSE&G), Northeast Utilities, FirstEnergy, Jersey Central Power and Light Company (A subsidiary of GPU Energy, which is a subsidiary of GPU; all of which is now part of FirstEnergy), Vineland Municipal Electric Utility(the only municipal-owned utility in New Jersey), Sussex Rural Electric Cooperative (the only Electric Utility Cooperative in New Jersey)
New Mexico - Public Service Company of New Mexico
New York - CH Energy Group (formerly Central Hudson Gas & Electric), Consolidated Edison Company of New York (Con Edison), Long Island Power Authority (LIPA), Northeast Utilities, National Grid (including Niagara Mohawk), New York State Electric & Gas (NYSEG), Rochester Gas & Electric
North Carolina - Progress Energy Carolinas, Duke Energy, ElectriCities, North Carolina Electric Membership Corp.
North Dakota - Xcel Energy, Otter Tail Power Company, MDU, Central Power Electric Cooperative, Minnkota Power Cooperative, Basin Electric Power Cooperative, Upper Missouri G&T Cooperative
Ohio - Duke Energy, FirstEnergy (Cleveland Electric Illuminating Company, Ohio Edison, Toledo Edison), AEP Ohio, Dayton Power & Light, South Central Power Company, Consolidated Electric Cooperative
Oklahoma - Oklahoma Gas & Electric, Public Service Company of Oklahoma (part of American Electric Power)
Oregon - Columbia River Public Utility District, Eugene Water & Electric Board, PacifiCorp (Pacific Power), Portland General Electric, West Oregon Electric Cooperative
Pennsylvania - Northeast Utilities, Rural valley electric Co. FirstEnergy (Penn Power, Met-Ed, Penelec), PECO, Allegheny Power, PPL, Duquesne Light, Citizens Electric of Lewisburg, Pike County Light & Power Company, UGI Utilities, Inc. and Wellsboro Electric Company
Puerto Rico - Autoridad de Energía Eléctrica, EcoEléctrica
Rhode Island - Northeast Utilities, National Grid (including Narragansett Electric)
South Carolina - Santee Cooper, Duke Energy, Central Electric Power Cooperative, Inc., Progress Energy Carolinas, South Carolina Electric & Gas Company
South Dakota - Xcel Energy, Otter Tail Power Company, Northwestern Energy, Black Hills Power, East River Electric Cooperative, Rushmore Electric Cooperative
Tennessee - Citizens Utilities Board, Electric Power Board, Knoxville Utilities Board, Kingsport Power (Appalachian Power), Lenoir City Utilities Board, Memphis Light, Gas and Water, Nashville Electric Service, Tennessee Valley Authority
Texas - AEP Texas, Austin Energy, CPS Energy, dPi Energy, Electric Database Publishing, Entergy, Garland Power and Light, Lower Colorado River Authority, Reliant Energy, CenterPoint Energy, Texas Electric Service Company, TXU Energy,
Utah - Intermountain Power Agency, PacifiCorp (Rocky Mountain Power)
Vermont - Central Vermont Public Service, Green Mountain Power
Virginia - Allegheny Power, Appalachian Power, Dominion Energy, Rappahannock Electric Cooperative
Washington - PacifiCorp (Pacific Power), Puget Sound Energy, Seattle City Light, Snohomish County Public Utility District (PUD), Mason County Public Utility District 3, Klickitat Public Utility District, Cowlitz County PUD, Clark County PUD, Asotin County PUD, Benton County PUD, Chelan County PUD, Clallam County PUD, Douglas County PUD, Ferry County PUD, Franklin County PUD, Grant County PUD, Grays Harbor County PUD, Jefferson County PUD, Kitsap County PUD, Kittitas County PUD, Lewis County PUD, Okanogan County PUD, Pacific County PUD, Pend Oreille County PUD, Skagit County PUD, Skamania County PUD, Stevens County PUD, Thurston County PUD, Wahkiakum County PUD, Whatcom County PUD
West Virginia - Allegheny Power, Appalachian Power, Wheeling Electric Power (AEP Ohio)
Wisconsin - We Energies, Wisconsin Public Service Corp., Xcel Energy, Madison Gas and Electric, Wisconsin Power & Light
Wyoming - PacifiCorp (Rocky Mountain Power), Lower Valley Energy
Uruguay
UTE
Venezuela
Corpoelec
Vietnam
Vietnam Electricity (EVN)
References
Electric power distribution network operators
Distribution by country
Lists by country
Lists of energy companies
|
```javascript
var Document = require('../document');
var PromiseProvider = require('../promise_provider');
module.exports = Subdocument;
/**
* Subdocument constructor.
*
* @inherits Document
* @api private
*/
function Subdocument() {
Document.apply(this, arguments);
this.$isSingleNested = true;
}
Subdocument.prototype = Object.create(Document.prototype);
/**
* Used as a stub for [hooks.js](path_to_url
*
* ####NOTE:
*
* _This is a no-op. Does not actually save the doc to the db._
*
* @param {Function} [fn]
* @return {Promise} resolved Promise
* @api private
*/
Subdocument.prototype.save = function(fn) {
var Promise = PromiseProvider.get();
return new Promise.ES6(function(resolve) {
fn && fn();
resolve();
});
};
Subdocument.prototype.$isValid = function(path) {
if (this.$parent) {
return this.$parent.$isValid([this.$basePath, path].join('.'));
}
};
Subdocument.prototype.markModified = function(path) {
if (this.$parent) {
this.$parent.markModified([this.$basePath, path].join('.'));
}
};
Subdocument.prototype.$markValid = function(path) {
if (this.$parent) {
this.$parent.$markValid([this.$basePath, path].join('.'));
}
};
Subdocument.prototype.invalidate = function(path, err, val) {
if (this.$parent) {
this.$parent.invalidate([this.$basePath, path].join('.'), err, val);
}
};
```
|
```haskell
-- | Specification of Pos.Core.Slotting.
module Test.Pos.Core.SlottingSpec
( spec
) where
import Universum
import Test.Hspec (Expectation, Spec, anyErrorCall, describe)
import Test.Hspec.QuickCheck (prop)
import Test.QuickCheck (NonNegative (..), Positive (..), Property,
(===), (==>))
import Pos.Core (EpochOrSlot, SlotId (..), epochOrSlotFromEnum,
epochOrSlotMaxBound, epochOrSlotMinBound, epochOrSlotPred,
epochOrSlotSucc, epochOrSlotToEnum, flattenSlotId,
unflattenSlotId)
import Test.Pos.Core.Arbitrary (EoSToIntOverflow (..),
UnreasonableEoS (..))
import Test.Pos.Core.Dummy (dummyEpochSlots)
import Test.Pos.Util.QuickCheck.Property (shouldThrowException, (.=.))
spec :: Spec
spec = describe "Slotting" $ do
describe "SlotId" $ do
describe "Ord" $ do
prop "is consistent with flatten/unflatten"
flattenOrdConsistency
describe "flattening" $ do
prop "unflattening after flattening returns original SlotId"
flattenThenUnflatten
describe "EpochOrSlot" $ do
prop "succ . pred = id" predThenSucc
prop "Using 'pred' with 'minBound :: EpochOrSlot' triggers an exception"
predToMinBound
prop "pred . succ = id" succThenPred
prop "Using 'succ' with 'maxBound :: EpochOrSlot' triggers an exception"
succToMaxBound
prop "from . toEnum = id @Int" toFromEnum
prop "toEnum . fromEnum = id @EpochOrSlot" fromToEnum
prop "toEnum . fromEnum = id @EpochOrSlot (with very large, larger than \
\ 'maxReasonableEpoch', epochs" fromToEnumLargeEpoch
prop "calling 'fromEnum' with a result greater than 'maxBound :: Int' will raise \
\ an exception" fromEnumOverflow
prop "calling 'toEnum' with a negative number will raise an exception"
toEnumNegative
flattenOrdConsistency :: SlotId -> SlotId -> Property
flattenOrdConsistency a b =
a
`compare` b
=== flattenSlotId dummyEpochSlots a
`compare` flattenSlotId dummyEpochSlots b
flattenThenUnflatten :: SlotId -> Property
flattenThenUnflatten si =
si === unflattenSlotId dummyEpochSlots (flattenSlotId dummyEpochSlots si)
predThenSucc :: EpochOrSlot -> Property
predThenSucc eos =
eos
> epochOrSlotMinBound
==> epochOrSlotSucc dummyEpochSlots
(epochOrSlotPred dummyEpochSlots eos)
=== eos
predToMinBound :: Expectation
predToMinBound = shouldThrowException (epochOrSlotPred dummyEpochSlots)
anyErrorCall
epochOrSlotMinBound
succThenPred :: EpochOrSlot -> Property
succThenPred eos =
eos
< epochOrSlotMaxBound dummyEpochSlots
==> epochOrSlotPred dummyEpochSlots
(epochOrSlotSucc dummyEpochSlots eos)
=== eos
succToMaxBound :: Expectation
succToMaxBound = shouldThrowException (epochOrSlotSucc dummyEpochSlots)
anyErrorCall
(epochOrSlotMaxBound dummyEpochSlots)
-- It is not necessary to check that 'int < fromEnum (maxBound :: EpochOrSlot)' because
-- this is not possible with the current implementation of the type.
toFromEnum :: NonNegative Int -> Property
toFromEnum (getNonNegative -> int) =
epochOrSlotFromEnum dummyEpochSlots (epochOrSlotToEnum dummyEpochSlots int)
=== int
fromToEnum :: EpochOrSlot -> Property
fromToEnum =
epochOrSlotToEnum dummyEpochSlots
. epochOrSlotFromEnum dummyEpochSlots
.=. identity
fromToEnumLargeEpoch :: UnreasonableEoS -> Property
fromToEnumLargeEpoch (getUnreasonable -> eos) =
epochOrSlotToEnum dummyEpochSlots (epochOrSlotFromEnum dummyEpochSlots eos)
=== eos
fromEnumOverflow :: EoSToIntOverflow -> Expectation
fromEnumOverflow (getEoS -> eos) =
shouldThrowException (epochOrSlotFromEnum dummyEpochSlots) anyErrorCall eos
toEnumNegative :: Positive Int -> Expectation
toEnumNegative (negate . getPositive -> int) =
shouldThrowException (epochOrSlotToEnum dummyEpochSlots) anyErrorCall int
```
|
```objective-c
//your_sha256_hash------------
#ifndef ConsoleH
#define ConsoleH
//your_sha256_hash------------
#include "HistoryComboBox.hpp"
#include "PathLabel.hpp"
#include <System.Classes.hpp>
#include <Vcl.ActnList.hpp>
#include <Vcl.Controls.hpp>
#include <Vcl.ExtCtrls.hpp>
#include <Vcl.ImgList.hpp>
#include <Vcl.Menus.hpp>
#include <Vcl.StdActns.hpp>
#include <Vcl.StdCtrls.hpp>
//your_sha256_hash------------
#include "WinInterface.h"
#include <Terminal.h>
#include "PngImageList.hpp"
#include <Vcl.Imaging.pngimage.hpp>
#include <System.Actions.hpp>
#include <GUITools.h>
//your_sha256_hash------------
class TConsoleDialog : public TForm
{
__published:
TMemo *OutputMemo;
TBevel *Bevel1;
TLabel *Label1;
TLabel *Label2;
TLabel *Label4;
TButton *CancelBtn;
THistoryComboBox *CommandEdit;
TButton *ExecuteButton;
TPathLabel *DirectoryLabel;
TButton *HelpButton;
TPngImageList *Images;
TPopupMenu *PopupMenu;
TMenuItem *SelectAllItem;
TMenuItem *CopyItem;
TMenuItem *N1;
TMenuItem *AdjustWindowItem;
TActionList *ActionList;
TEditCopy *EditCopy;
TEditSelectAll *EditSelectAll;
TAction *AdjustWindow;
TImage *Image;
TPngImageList *Images120;
TPngImageList *Images144;
TPngImageList *Images192;
void __fastcall ExecuteButtonClick(TObject *Sender);
void __fastcall CommandEditChange(TObject *Sender);
void __fastcall HelpButtonClick(TObject *Sender);
void __fastcall ActionListExecute(TBasicAction *Action, bool &Handled);
void __fastcall ActionListUpdate(TBasicAction *Action, bool &Handled);
void __fastcall FormShow(TObject *Sender);
void __fastcall OutputMemoContextPopup(TObject *Sender, TPoint &MousePos,
bool &Handled);
void __fastcall FormCloseQuery(TObject *Sender, bool &CanClose);
private:
TTerminal * FTerminal;
TTerminal * FLastTerminal;
TNotifyEvent FOldChangeDirectory;
TNotifyEvent FPrevTerminalClose;
TRect FAutoBounds;
bool FClearExceptionOnFail;
bool FDirectoryChanged;
bool FExecuting;
void __fastcall DoExecuteCommand();
void __fastcall ExecuteCommand();
void __fastcall SetTerminal(TTerminal * value);
void __fastcall TerminalClose(TObject * Sender);
void __fastcall AddLine(const UnicodeString & Line, TCaptureOutputType OutputType);
protected:
void __fastcall DoChangeDirectory(TObject * Sender);
void __fastcall UpdateControls();
virtual void __fastcall CreateParams(TCreateParams & Params);
virtual void __fastcall Dispatch(void * Message);
void __fastcall DoAdjustWindow();
INTERFACE_HOOK;
public:
virtual __fastcall ~TConsoleDialog();
virtual __fastcall TConsoleDialog(TComponent* AOwner);
bool __fastcall Execute(const UnicodeString Command = L"",
const TStrings * Log = NULL);
__property TTerminal * Terminal = { read = FTerminal, write = SetTerminal };
};
//your_sha256_hash------------
#endif
```
|
```python
from streamlink.stream.segmented.segmented import log
def test_logger_name():
assert log.name == "streamlink.stream.segmented"
```
|
```c
int hogehoge(void){return 0;}
```
|
```smalltalk
using Ocelot.Configuration.File;
namespace Ocelot.UnitTests.Configuration.FileModels;
public class FileQoSOptionsTests
{
[Fact(DisplayName = "1833: Default constructor must assign zero to the TimeoutValue property")]
public void Cstor_Default_AssignedZeroToTimeoutValue()
{
// Arrange, Act
var actual = new FileQoSOptions();
// Assert
Assert.Equal(0, actual.TimeoutValue);
}
[Fact]
public void Cstor_Default_AssignedZeroToExceptionsAllowedBeforeBreaking()
{
// Arrange, Act
var actual = new FileQoSOptions();
// Assert
Assert.Equal(0, actual.ExceptionsAllowedBeforeBreaking);
}
[Fact]
public void Cstor_Default_AssignedOneToDurationOfBreak()
{
// Arrange, Act
var actual = new FileQoSOptions();
// Assert
Assert.Equal(1, actual.DurationOfBreak);
}
}
```
|
John Graham Miller (8 October 1913 – 6 September 2008) was a New Zealand-Australian pastor and missionary.
Miller was born in Rangiora, New Zealand and studied at the University of Otago and Knox College, Otago. He served as a missionary in the New Hebrides (now Vanuatu), working on the island of Tangoa, where he was principal of the Tangoa Training Institute from 1947 to 1952. Miller was elected the inaugural Moderator of the General Assembly of the Presbyterian Church in Vanuatu in 1948. He later pastored churches in New Zealand and Australia, and served as Principal of the Melbourne Bible Institute, before returning to Tangoa to help establish the Presbyterian Bible College there in 1971.
In 1980, a Festschrift was published in his honour: Evangelism and the Reformed faith: and other essays commemorating the ministry of J. Graham Miller.
Publications
Jonah - A Sign, J. Graham Miller, Gospel Literature Service, Bombay, 1961.
A Workbook on Christian Doctrine, J. Graham Miller, Lawson, NSW, Australia 1974.
A History of Church Planting in the New Hebrides, J. Graham Miller, Book 1 1978, Book 2 1981, Book 3 1985, Book 4 1986, Book 5 1987, Book 6 1989, Book 7 1990, Sydney, Australia.
The Treasury of His Promises, J. Graham Miller, The Banner of Truth Trust, Edinburgh 1986, reprinted 2001.
Calvin’s Wisdom: An Anthology, J. Graham Miller, The Banner of Truth Trust, Edinburgh 1992.
An A-Z of Christian Truth and Experience, J. Graham Miller, The Banner of Truth Trust, Edinburgh 2003.
A Day’s March Nearer Home: Autobiography of J. Graham Miller, edited by Iain H. Murray, The Banner of Truth Trust 2010.
References
1913 births
2008 deaths
New Zealand emigrants to Australia
People from Rangiora
University of Otago alumni
New Zealand Presbyterian missionaries
Presbyterian missionaries in Vanuatu
Seminary presidents
New Zealand expatriates in Vanuatu
|
```java
/*
* one or more contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright ownership.
*/
package io.camunda.operate.schema.migration;
import io.camunda.operate.JacksonConfig;
import io.camunda.operate.Metrics;
import io.camunda.operate.schema.SchemaStartup;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.WebApplicationType;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.event.ApplicationFailedEvent;
import org.springframework.context.ApplicationListener;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.FullyQualifiedAnnotationBeanNameGenerator;
import org.springframework.context.annotation.Import;
@SpringBootApplication
@ComponentScan(
basePackages = {
"io.camunda.operate.property",
"io.camunda.operate.tenant",
"io.camunda.operate.connect",
"io.camunda.operate.store",
"io.camunda.operate.schema",
"io.camunda.operate.management",
"io.camunda.operate.conditions"
},
nameGenerator = FullyQualifiedAnnotationBeanNameGenerator.class)
@Import({JacksonConfig.class, Metrics.class})
public class SchemaMigration implements CommandLineRunner {
private static final Logger LOGGER = LoggerFactory.getLogger(SchemaMigration.class);
@Autowired private SchemaStartup schemaStartup;
public static void main(String[] args) {
// To ensure that debug logging performed using java.util.logging is routed into Log4j2
System.setProperty("java.util.logging.manager", "org.apache.logging.log4j.jul.LogManager");
// Workaround for path_to_url
System.setProperty(
"spring.config.location",
"optional:classpath:/,optional:classpath:/config/,optional:file:./,optional:file:./config/");
final SpringApplication springApplication = new SpringApplication(SchemaMigration.class);
springApplication.setWebApplicationType(WebApplicationType.NONE);
springApplication.setAddCommandLineProperties(true);
springApplication.addListeners(new ApplicationErrorListener());
final ConfigurableApplicationContext ctx = springApplication.run(args);
SpringApplication.exit(ctx);
}
@Override
public void run(String... args) {
LOGGER.info("SchemaMigration finished.");
}
public static class ApplicationErrorListener
implements ApplicationListener<ApplicationFailedEvent> {
@Override
public void onApplicationEvent(ApplicationFailedEvent event) {
if (event.getException() != null) {
event.getApplicationContext().close();
System.exit(-1);
}
}
}
}
```
|
```shell
You can use git offline!
Search by commit message keyword
Check the status of your files
Use `short` status to make output more compact
Remote repositories: viewing, editing and deleting
```
|
```smalltalk
using System;
namespace XIVLauncher.Common.Game.Patch;
public class PatchInstallerException : Exception
{
public PatchInstallerException(string message, Exception? inner = null) : base(message, inner)
{
// ignored
}
}
```
|
```java
package com.yahoo.vespa.model.admin.clustercontroller;
import com.yahoo.config.model.api.Reindexing;
import com.yahoo.config.model.deploy.DeployState;
import com.yahoo.config.model.producer.TreeConfigProducer;
import com.yahoo.config.provision.ClusterSpec;
import com.yahoo.search.config.QrStartConfig;
import com.yahoo.vespa.model.container.ContainerCluster;
import com.yahoo.vespa.model.container.PlatformBundles;
import java.nio.file.Path;
import java.util.Optional;
import java.util.Set;
/**
* Container cluster for cluster-controller containers.
*
* @author gjoranv
* @author bjorncs
*/
public class ClusterControllerContainerCluster extends ContainerCluster<ClusterControllerContainer> {
private static final Set<Path> UNNECESSARY_BUNDLES = Set.copyOf(PlatformBundles.VESPA_SECURITY_BUNDLES);
private final ReindexingContext reindexingContext;
public ClusterControllerContainerCluster(
TreeConfigProducer<?> parent, String subId, String name, DeployState deployState) {
super(parent, subId, name, deployState, false);
addDefaultHandlersWithVip();
this.reindexingContext = createReindexingContext(deployState);
setJvmGCOptions(deployState.getProperties().jvmGCOptions(Optional.of(ClusterSpec.Type.admin)));
if (isHostedVespa())
addAccessLog("controller");
}
@Override
protected Set<Path> unnecessaryPlatformBundles() { return UNNECESSARY_BUNDLES; }
@Override protected boolean messageBusEnabled() { return false; }
@Override
public void getConfig(QrStartConfig.Builder builder) {
super.getConfig(builder);
builder.jvm.heapsize(128);
}
public ReindexingContext reindexingContext() { return reindexingContext; }
private static ReindexingContext createReindexingContext(DeployState deployState) {
return new ReindexingContext(deployState.reindexing().orElse(Reindexing.DISABLED_INSTANCE));
}
}
```
|
Emily Stewart Lakdawalla (born February 8, 1975) is an American planetary geologist and former Senior Editor of The Planetary Society, contributing as both a science writer and a blogger. She has also worked as a teacher and as an environmental consultant. She has performed research work in geology, Mars topography, and science communication and education. Lakdawalla is a science advocate on various social media platforms, interacting with space professionals and enthusiasts on Facebook, Google+ and Twitter. She has appeared on such media outlets as NPR, BBC and BBC America.
Education
In 1996, Lakdawalla was awarded her Bachelor of Arts degree in geology from Amherst College. In 2000 she received her Master of Science degree in planetary geology from Brown University.
Career
After completing her studies at Amherst, Lakdawalla spent two years, from 1996 through 1998, teaching fifth and sixth grade science at Lake Forest Country Day School in Lake Forest, Illinois.
In 1997, inspired by a space simulation project using images returning from the Galileo mission of two of Jupiter's moons, Io and Europa, Lakdawalla decided to undertake independent research in structural geology.
Research
At Amherst, Lakdawalla worked to study deformed metasedimentary rocks of northeastern Washington. Working at Brown concurrently, she performed analyses of radar images received from Magellan, while also processing topographic data taken of the Baltis Vallis region on Venus, in order to model its geological history.
Lakdawalla has published research on the topography of a putative stratovolcano on Mars, recorded by the Mars Orbiter Laser Altimeter. She has also worked with an international team to analyze returned Mars rover data, and to evaluate Devon Island as a test site for unmanned aerial vehicles (UAVs) developed for use on Mars.
Lakdawalla's work with Pamela Gay, et al., on the immersion of audiences in interactive educational astronomy content, has been cited by further research into social media content classification and delivery of content types through social media.
Lakdawalla has also engaged in advocacy for citizen science research projects, especially those involving space exploration, such as CosmoQuest and Zooniverse.
The Planetary Society
In 2001, Lakdawalla joined The Planetary Society as a deputy project manager of the Society's Red Rover Goes to Mars project, an educational and public outreach program on the Mars Exploration Rover mission funded by The Lego Group. In 2002, in support of training exercises for Mars rover operations, she administered an international competition, which selected secondary school students for training and travel to Pasadena, California for participation in these exercises. In early 2005, this competition and selection was performed again for actual Mars Exploration Rover mission operations.
During a research operation on Devon Island (located in the Canadian high Arctic), which was funded by The Planetary Society, where a team worked to test the location as a potential analogue for unmanned aerial vehicles to be deployed on Mars, Lakdawalla began writing for the Society's online publications. For several years, she wrote web news articles, as well as making contributions to the society's print publications, including The Planetary Report, where she assumed chief editorial responsibilities in September 2018. Lackdawalla left the Planetary Society in September of 2020
Writing
Lakdawalla is a contributing editor to Sky & Telescope magazine, for which she has written articles about Mars, the Moon, outer planets, spacecraft imaging, and Kuiper belt objects. She has written a book about the design and engineering of the Curiosity rover mission, published in 2018, and is working on a second book, about the scientific discoveries of Curiosity, to be published in 2019.
Starting in September 2013, Lakdawalla has penned the monthly "In the Press" column for Nature Geoscience.
Media appearances
Lakdawalla is a regular contributor to the weekly Planetary Radio podcast.
Following Bill Nye's installation as The Planetary Society's Executive Director, Lakdawalla has appeared on television, in webcasts, on Google+ Hangouts, and on Snapshots from Space, viewable from The Planetary Society's YouTube channel.
Lakdawalla has been a host for CosmoQuest's Science Hour, interviewing guests, including Bill Nye, about the future of planetary exploration.
In an interview with Brad Allen, Lakdawalla discussed the path that led to a career in science communication, the state of human space exploration and current space exploration missions, such as the Mars Science Laboratory.
In a December 2013 interview with Universe Today, Lakdawalla discussed candidate locations for life in the Solar System based on geological activity and presence of water. In addition to Europa, Lakdawalla cited Enceladus (a moon of Saturn), due to its active salty geysers: "Those geysers are salty – it's a salt water ocean, so we basically have a world that is conveniently venting its ocean out into space. You don't even have to land – you can just fly right through that plume and check to see what kinds of cool chemistry is happening there. So yeah, I think Enceladus would be a really cool place to explore for life."
Lakdawalla has been interviewed on topics such as China's Jade Rabbit moon rover on NPR's All Things Considered.
Lakdawalla has appeared on BBC America and BBC World News.
Awards and honors
In 2011, Lakdawalla received the Jonathan Eberhart Planetary Sciences Journalism Award from the Division for Planetary Sciences of the American Astronomical Society for her reporting on the Phoebe ring of Saturn.
Asteroid 274860 Emilylakdawalla, discovered by German astronomers Matthias Busch and Rainer Kresken at the ESA Optical Ground Station in 2009, was named in her honor. The official was published by the Minor Planet Center on July 12, 2014 ().
Personal life
Lakdawalla resides in Los Angeles with her husband, economist Darius Lakdawalla. The couple originally met when attending Amherst together as undergraduates in the early 1990s. They have two daughters.
See also
Darius Lakdawalla
Neil deGrasse Tyson
Phil Plait
References
Bibliography
External links
1975 births
Living people
Planetary scientists
Women planetary scientists
American women astronomers
American science writers
Science bloggers
Amherst College alumni
Brown University alumni
American women bloggers
American bloggers
Women science writers
Sky & Telescope people
American women non-fiction writers
21st-century American non-fiction writers
21st-century American women writers
|
```javascript
'use strict';
const common = require('../common');
const assert = require('assert');
const path = require('path');
const fs = require('fs');
const tmpdir = require('../common/tmpdir');
tmpdir.refresh();
const tmpDir = tmpdir.path;
const longPath = path.join(...[tmpDir].concat(Array(30).fill('1234567890')));
fs.mkdirSync(longPath, { recursive: true });
// Test if we can have symlinks to files and folders with long filenames
const targetDirtectory = path.join(longPath, 'target-directory');
fs.mkdirSync(targetDirtectory);
const pathDirectory = path.join(tmpDir, 'new-directory');
fs.symlink(targetDirtectory, pathDirectory, 'dir', common.mustCall((err) => {
assert.ifError(err);
assert(fs.existsSync(pathDirectory));
}));
const targetFile = path.join(longPath, 'target-file');
fs.writeFileSync(targetFile, 'data');
const pathFile = path.join(tmpDir, 'new-file');
fs.symlink(targetFile, pathFile, common.mustCall((err) => {
assert.ifError(err);
assert(fs.existsSync(pathFile));
}));
```
|
Sadewa is a village development committee in the Himalayas of Taplejung District in the Province No. 1 of north-eastern Nepal. At the time of the 2011 Nepal census it had a population of 1,048 people living in 211 individual households. There were 515 males and 533 females at the time of census.
References
1. High school
2. Heath post
3. Post Office
External links
UN map of the municipalities of Taplejung District
Populated places in Taplejung District
|
is a 2000 Japanese made-for-TV horror film directed by Kiyoshi Kurosawa, starring Kōji Yakusho, Jun Fubuki and Tsuyoshi Kusanagi. It is based on the 1961 novel Séance on a Wet Afternoon by Mark McShane, which was also the basis for the 1964 film of the same title.
Plot
Koji Sato (Kōji Yakusho) is a mild-mannered sound technician who is married to Junko (Jun Fubuki), a waitress who possesses powerful psychic abilities. Though these abilities allow her to see and communicate with spirits, they interfere in her day-to-day life and make it difficult for her to hold down a normal job. She hopes to build a business around her psychic powers, but faces a daunting task of proving her abilities to a skeptical world. When Hayakawa (Tsuyoshi Kusanagi), a young graduate student in psychology, invites her into a study of the paranormal, she leaps at the ability to demonstrate her skill as a medium.
Through Hayakawa, Junko becomes involved with the police search for a young girl kidnapped by a deranged ex-cop. But through a bizarre coincidence, the young girl escapes her captor and takes refuge in Koji's equipment case, unbeknownst to him. When the couple discover the unconscious child at their home, they devise a plan to keep her hidden, while Junko gradually leads the police to her. They reason that this will prove Junko's psychic abilities to the public, and also ensure that they are not falsely blamed for the kidnapping.
The plan quickly goes awry, however, and an accident leads to the child's death. Afterwards, Koji and Junko must try to hide their involvement in the girl's death, while being haunted by her angry spirit.
Cast
Kōji Yakusho – Koji Sato
Jun Fubuki – Junko Sato
Tsuyoshi Kusanagi – Hayakawa
Ittoku Kishibe – College Professor
Show Aikawa – Shinto Priest
Production
Director and co-writer Kiyoshi Kurosawa was approached by the Kansai Telecasting Corporation with the idea of adapting Mark McShane's novel Seance on a Wet Afternoon. In a 2005 interview, Kurosawa explained, "What interested me about the narrative story in the book was that it featured a ghost, in other words, a dead human being, as well as an average couple who had been living very normal lives who, in fact, became criminals. These are the two elements of the original novel that interested me." When he made the film, Kurosawa had no idea the novel had already been adapted into a 1964 film directed by Bryan Forbes and starring Richard Attenborough and Kim Stanley. Eventually having seen it, he commented, "I thought it was very interesting. I thought it was fairly faithful to the original novel" (which does not have any literal ghosts in it, as opposed to Kurosawa's version).
Though the film was specifically made for Japanese television, Kurosawa shot it on film. In a 2001 interview, he recalled, "I was actually hoping for film festivals to ask me to come show this film and thankfully that was what happened. But this is not the normal situation for a tv drama." He claims that he "shot it as a film," and that working for television was not particularly different from his usual work style except that, "The only thing was that I couldn't use shocking scenes. It has to be more quiet. There aren't a lot of people dying, because that's not allowed [on television]."
On the casting of Kōji Yakusho (who has appeared in many of Kurosawa's films) Kurosawa commented, "First of all, I think he is a great actor. He can play any type of character. He can be a regular guy, but he can also become a monster, a person of whom you don't know what he's thinking. Secondly, he is the same age as me. So our points of view are alike. We're on the same level as human beings. As to the casting of another frequent collaborator, Show Aikawa, Kurosawa explained, "...this bit of casting was very funny. In Japan, people can't think of him as a Shinto priest, as an exorcist. Aikawa-san is a yakuza movie star, so people only think of him as a yakuza. In real life, he is the opposite. He is a total gentleman. So I wanted to show Japanese people that he is not like a yakuza at all."
The film was shot in two weeks, on what Kurosawa describes as a low budget (around $200,000 to $300,000 US dollars).
Reception
The film was well-received by critics. Derek Elley of Variety wrote, "Seance, made for TV but looking just fine on the bigscreen, will please the cult director’s fans and maybe make some more as well. Though not on the tenebrous level of Cure, it’s an entertaining ride.". Nicholas Rucka of Midnight Eye agreed, writing, "Suffice it to say that while Séance is not as strong as Cure, in my book, it is a good piece and certainly better than most of the recent horror fare in Japan and abroad."
.
References
External links
2000 films
2000 television films
2000 crime thriller films
2000 psychological thriller films
Japanese television films
2000s Japanese-language films
Films directed by Kiyoshi Kurosawa
Films based on British novels
Japanese remakes of foreign films
Remakes of British films
|
James Laverne Dutcher (May 10, 1918 – December 14, 1992) was an American football coach. He served as the 23rd head football coach at Doane College in Crete, Nebraska and he held that position for ten seasons, from 1942 until 1951. His coaching record at Doane was 52–28–5. Dutcher led his team to a victory in the 1950 Bean Bowl by a score of 14 to 6 on November 23, 1950.
Dutcher later served as the head coach for Cornell College in Mount Vernon, Iowa from 1953 to 1958, where he compiled a record of 17–27–4.
Head coaching record
Football
References
External links
1918 births
1992 deaths
Basketball coaches from Nebraska
Cornell Rams football coaches
Doane Tigers football coaches
Doane Tigers men's basketball coaches
People from Hebron, Nebraska
|
Francis Courtenay may refer to:
Francis Courtenay (died 1638) (1576–1638), MP
Francis Courtenay (died 1699), his grandson, MP
Sir Francis Courtenay, 3rd Baronet (1617–1660), of the Courtenay baronets
|
Ælfwig (died 1066), was the abbot of New Minster, the uncle of Harold, and was probably the brother of Earl Godwine.
Ælfwig was made abbot in 1063. When Harold marched to meet the Normans, Ælfwig joined him with twelve of his monks, wearing coats of mail over their monastic garb, and with twenty armed men. He and his monks fell fighting at Senlac. After the battle their bodies were recognised by the habit of their order, which was seen beneath their armour. The Conqueror punished the convent severely for the part which it had taken in resisting his invasion.
References
External links
1066 deaths
English abbots
11th-century English clergy
Year of birth unknown
|
```go
package vm
import "math"
func opCheckOutput(vm *virtualMachine) error {
err := vm.applyCost(16)
if err != nil {
return err
}
code, err := vm.pop(true)
if err != nil {
return err
}
vmVersion, err := vm.popInt64(true)
if err != nil {
return err
}
if vmVersion < 0 {
return ErrBadValue
}
assetID, err := vm.pop(true)
if err != nil {
return err
}
amount, err := vm.popInt64(true)
if err != nil {
return err
}
if amount < 0 {
return ErrBadValue
}
data, err := vm.pop(true)
if err != nil {
return err
}
index, err := vm.popInt64(true)
if err != nil {
return err
}
if index < 0 {
return ErrBadValue
}
if vm.context.CheckOutput == nil {
return ErrContext
}
ok, err := vm.context.CheckOutput(uint64(index), data, uint64(amount), assetID, uint64(vmVersion), code, vm.expansionReserved)
if err != nil {
return err
}
return vm.pushBool(ok, true)
}
func opAsset(vm *virtualMachine) error {
err := vm.applyCost(1)
if err != nil {
return err
}
if vm.context.AssetID == nil {
return ErrContext
}
return vm.push(*vm.context.AssetID, true)
}
func opAmount(vm *virtualMachine) error {
err := vm.applyCost(1)
if err != nil {
return err
}
if vm.context.Amount == nil {
return ErrContext
}
return vm.pushInt64(int64(*vm.context.Amount), true)
}
func opProgram(vm *virtualMachine) error {
err := vm.applyCost(1)
if err != nil {
return err
}
return vm.push(vm.context.Code, true)
}
func opMinTime(vm *virtualMachine) error {
err := vm.applyCost(1)
if err != nil {
return err
}
if vm.context.MinTimeMS == nil {
return ErrContext
}
return vm.pushInt64(int64(*vm.context.MinTimeMS), true)
}
func opMaxTime(vm *virtualMachine) error {
err := vm.applyCost(1)
if err != nil {
return err
}
if vm.context.MaxTimeMS == nil {
return ErrContext
}
maxTimeMS := *vm.context.MaxTimeMS
if maxTimeMS == 0 || maxTimeMS > math.MaxInt64 {
maxTimeMS = uint64(math.MaxInt64)
}
return vm.pushInt64(int64(maxTimeMS), true)
}
func opEntryData(vm *virtualMachine) error {
err := vm.applyCost(1)
if err != nil {
return err
}
if vm.context.EntryData == nil {
return ErrContext
}
return vm.push(*vm.context.EntryData, true)
}
func opTxData(vm *virtualMachine) error {
err := vm.applyCost(1)
if err != nil {
return err
}
if vm.context.TxData == nil {
return ErrContext
}
return vm.push(*vm.context.TxData, true)
}
func opIndex(vm *virtualMachine) error {
err := vm.applyCost(1)
if err != nil {
return err
}
if vm.context.DestPos == nil {
return ErrContext
}
return vm.pushInt64(int64(*vm.context.DestPos), true)
}
func opEntryID(vm *virtualMachine) error {
err := vm.applyCost(1)
if err != nil {
return err
}
return vm.push(vm.context.EntryID, true)
}
func opOutputID(vm *virtualMachine) error {
err := vm.applyCost(1)
if err != nil {
return err
}
if vm.context.SpentOutputID == nil {
return ErrContext
}
return vm.push(*vm.context.SpentOutputID, true)
}
func opNonce(vm *virtualMachine) error {
err := vm.applyCost(1)
if err != nil {
return err
}
if vm.context.AnchorID == nil {
return ErrContext
}
return vm.push(*vm.context.AnchorID, true)
}
func opNextProgram(vm *virtualMachine) error {
err := vm.applyCost(1)
if err != nil {
return err
}
if vm.context.NextConsensusProgram == nil {
return ErrContext
}
return vm.push(*vm.context.NextConsensusProgram, true)
}
func opBlockTime(vm *virtualMachine) error {
err := vm.applyCost(1)
if err != nil {
return err
}
if vm.context.BlockTimeMS == nil {
return ErrContext
}
return vm.pushInt64(int64(*vm.context.BlockTimeMS), true)
}
```
|
Murphy's Law is the debut album by St. Louis rapper Murphy Lee. On October 11, 2003 the album peaked at number 8 on the Billboard 200 music chart. It was released on September 23, 2003 and was certified gold on November 17, 2003. It featured the single from the Bad Boys II Soundtrack "Shake Your Tailfeather" (with Nelly and P. Diddy). Its first official single was "Wat Da Hook Gon Be", which peaked at #17 in the U.S. pop charts, followed by "Luv Me Baby" and " Hold Up".
Track listing
"Be Myself"
"Don't Blow It" (featuring City Spud)
"Hold Up" (featuring Nelly)
"Granpa Gametight"
"Luv Me Baby" (featuring Jazze Pha & Sleepy Brown)
"Murphy's Law (Interlude)"
"Cool Wit It" (featuring St. Lunatics)
"This Goes Out" (featuring Nelly, Roscoe, Cardan, Lil Jon, & Lil Wayne)
"Wat Da Hook Gon' Be" (featuring Jermaine Dupri)
"So X-Treme" (featuring King Jacob & Jung Tru)
"How Many Kids You Got (Interlude)"
"I Better Go" (featuring Avery Storm)
"Red Hot Riplets" (featuring St. Lunatics)
"Regular Guy" (featuring Seven)
"Gods Don't Chill" (featuring King Jacob & Jung Tru)
"Murphy Lee" (featuring Zee)
"Head From A Midget (Interlude)"
"Shake Ya Tailfeather" (featuring Nelly & P. Diddy)
"Same Ol' Dirty" (featuring Toya)
Charts
Weekly charts
Year-end charts
Certifications
References
2003 debut albums
Murphy Lee albums
Albums produced by Jazze Pha
Albums produced by Jermaine Dupri
Albums produced by Mannie Fresh
|
Petrit Halilaj (born 1986) is a Kosovar visual artist living and working between Germany, Kosovo and Italy. His work is based on documents, stories, and memories related to the history of Kosovo.
With his husband Alvaro Urbano, Halilaj is a joint tutor at Beaux-Arts de Paris, in Paris, France.
Early life
Born in SFR Yugoslavia, now Kosovo, Halilaj left the country at the age of 13 with his family during the Yugoslav Wars of 1991–2001. At a refugee camp in Albania, a team of Italian psychologists, hoping to help the children process the trauma of the war, gave Halilaj felt-tip markers, with which he began to make drawings about his experiences.
Settled in Italy, Halilaj studied at the Brera Academy of Fine Arts in Milan.
Career
During the 6th Berlin Biennale in 2010, Halilaj exhibited a sculptural reconstruction of a house built by his parents, to replace the family home that was levelled by bombing during the 1998–1999 Kosovo war.
Halilaj represented the Republic of Kosovo at the 55th Venice Biennale in 2013.
Halilaj had several solo exhibitions, including one at the New Museum in New York in 2017–2018 and one at the Hammer Museum in Los Angeles in 2018–2019.
Halilaj created a large site-specific installation of giant sculptural flowers in 2020 for Madrid's Palacio de Cristal.
In 2020 Halilaj dropped out of the 58th , claiming that the , which organises it, would not recognize his Kosovar nationality.
In July 2021, Halilaj and Urbano collaborated on an installation of "huge fabric flowers" at the Kosovo National Library to celebrate the 5th annual Kosovo Pride Week.
According to the New York Times:
In October 2021, an exhibit opened at Tate St Ives of an installation by Halilaj inspired by his youthful marker drawings done in the refugee camp.
In the exhibit, visitors walk among hanging cutouts of images from the drawings blown up to a huge scale. Approached from the entrance, the cutouts show "a fantasy landscape of exotic birds and palm trees," but when the visitors turn back to the entrance, "they find that some of the suspended forms have been printed on the reverse with a more macabre selection of Halilaj’s doodles: soldiers, tanks, wailing figures, burning houses."
Solo exhibitions
2009 – Back to the Future, curated by Albert Heta, at Stacion – Center for Contemporary Art Prishtina, Pristina, Kosovo
2013 – Kosovar Pavilion, 55th Venice Biennale, curated by Kathrin Rhomberg, at the Arsenale, Venice, Italy
2013–2014 – Petrit Halilaj: Poisoned by men in need of some love, curated by Elena Filipovic, at WIELS, Brussels, Belgium
2015–2016 – Petrit Halilaj: Space Shuttle in the Garden, curated by Roberta Tenconi, at HangarBicocca, Milan, Italy
2017–2018 – Petrit Halilaj: RU, curated by assistant curator Helga Christoffersen, at New Museum, New York City, NY, USA
2018–2019 – Hammer Projects: Petrit Halilaj, organised by adjunct curator Ali Subotnick and curatorial associate MacKenzie Stevens, at Hammer Museum, Los Angeles, CA, USA
2018–2019 – Shkrepëtima, curated by Leonardo Bigazzi, at Fondazione Merz, Turin, Italy
2021–2022 – Petrit Halilaj: Very volcanic over this green feather, curated by Anne Barlow with assistant curator Giles Jackson, Tate St Ives, Saint Ives, UK
Group exhibitions
2010 – 6th Berlin Biennale for Contemporary Art: what is waiting out there, curated by Kathrin Rhomberg, at KW Institute for Contemporary Art, Berlin, Germany
2011 – Ostalgia, curated by Massimiliani Gioni, at the New Museum, New York City, NY, USA
2015–2016 – Super Superstudio: Radical Art and Architecture, curated by Andreas Angelidakis, Vittorio Pizzigoni, and Valter Scelsi, at Padiglione d'Arte Contemporanea (PAC), Milan, Italy
2017 – 57th Venice Biennale: Viva Arte Viva, curated by Christine Macel, at the Central Pavilion, Venice, Italy
2019 – Hotel Europa: Their Past, Your Present, Our Future, curated by Théo-Mario Coppola with associate curator Livia Tarsia in Curia, at Open Space of Experimental Art, Tbilisi, Georgia
2019 – Homeless Souls, curated by Marie Laurberg, at the Louisiana Museum, Humlebæk, Denmark
Collections
Centre Pompidou, Paris, France
, Turin, Italy
Museum of Contemporary Art Chicago, Chicago, IL, USA
Museum of Modern Art, Warsaw, Warsaw, Poland
Tate Modern, London, UK
Awards
He received the Mario Merz Prize and a special mention of the jury at the 57th Venice Biennale, both in 2017.
Books
Roberta Tenconi, ed., Petrit Halilaj: Space Shuttle in the Garden, Milan: Mousse Publishing, 2016, 160 p., English / Italian,
References
Kosovan artists
Kosovo Albanians
People from the District of Mitrovica
1986 births
Living people
Brera Academy alumni
Albanian artists
|
```yaml
description: Texas Instruments LMP90079 AFE binding
compatible: "ti,lmp90079"
include: ti,lmp90xxx-base.yaml
```
|
The 63rd Grey Cup was played on November 23, 1975, before 32,454 fans at McMahon Stadium in Calgary. In a tight, defensive battle, the Edmonton Eskimos defeated the Montreal Alouettes 9–8. Just before the contest began, a young woman "streaked" during the coin toss.
Box Score
First Quarter
Montreal – FG – Don Sweet 35 yards
Montreal – FG – Don Sweet 47 yards
Second Quarter
Edmonton - FG – Dave Cutler 40 yards
Montreal - Single – Don Sweet 32-yard missed field goal
Third Quarter
Edmonton - FG – Dave Cutler 25 yards
Edmonton - FG – Dave Cutler 52 yards
Fourth Quarter
Montreal - Single – Don Sweet 19-yard missed field goal
Game summary
Perhaps the defining factor in this low-scoring contest was the chilly weather. The game-time temperature was -15 degrees Celsius, and a 25-kilometre-per-hour wind played havoc with passing and kicking.
Alouette coach Marv Levy's third-quarter decision to gamble on a 3rd-and-3 inside the Edmonton 10 proved to be a turning point, as a successful field goal would have provided sufficient margin for a Montreal victory. Instead, the Eskimos held and kept the Alouettes off the scoreboard. Nevertheless, the Als still had the win within their grasp. With just 3:49 left to play, Sonny Wade came off the Alouette bench to replace starting quarterback Jimmy Jones. Trailing 9-7 and starting from the Montreal 23-yard-line, Wade threw a 26-yard bullet to Larry Smith. He then faked a reverse to Johnny Rodgers and threw a 46-yard pass to Joe Petty. This gave the Als a chance for the game-winning field goal in the final seconds of the game, but Jones mishandled the snap from centre. Don Sweet's 19-yard attempt went wide for a single point and from there, the Eskimos were able to run out the clock.
Trivia
Edmonton and Montreal have met in 11 Grey Cup clashes. The Alouettes prevailed at soggy Empire Stadium (Vancouver) in 1974, in the Ice Bowl of 1977 and in 2002. The Eskimos were victorious in 1954, 1955, 1956, 1975, 1978, 1979, 2003 and 2005.
The 1975 game was just the third Grey Cup in which no touchdowns were scored (the others being the 21st Grey Cup and the 25th Grey Cup), and it remains the only such game in the modern era. It's also the only Grey Cup where one player from each team was responsible for all the points scored. Also, for the first time since 1945, all the points were scored by Canadians.
This game was the first Grey Cup played in the city of Calgary and the province of Alberta; it was also the last Grey Cup game held in Western Canada for eight years. Between 1976 and 1982, the game was held in alternating years in either Toronto or Montreal.
This was, until the 2015 Grey Cup, the last Grey Cup championship for the Eskimos that did not involve Hugh Campbell in some capacity with the team; he would be hired as its head coach in 1977, and aside from a brief break from 1983 to 1985, won nine Grey Cups (including five in a row from 1978 to 1982) with the team as either a head coach or general manager until his retirement in 2006.
This was the first Grey Cup appearance of future prime minister Justin Trudeau, then almost four years old, brought to the game by his father, Pierre Trudeau.
External links
Grey Cup
Grey Cup
Canadian football competitions in Calgary
1975 in Alberta
Montreal Alouettes
Edmonton Elks
20th century in Calgary
1975 in Canadian television
November 1975 sports events in Canada
|
```javascript
exports.keys = 'foo';
exports.proxy = true;
```
|
```makefile
PKG_NAME="libXext"
PKG_VERSION="1.3.5"
PKG_SHA256=your_sha256_hash
PKG_LICENSE="OSS"
PKG_SITE="path_to_url"
PKG_URL="path_to_url{PKG_NAME}-${PKG_VERSION}.tar.xz"
PKG_DEPENDS_TARGET="toolchain util-macros libX11"
PKG_LONGDESC="LibXext provides an X Window System client interface to several extensions to the X protocol."
PKG_CONFIGURE_OPTS_TARGET="--enable-malloc0returnsnull --without-xmlto"
post_configure_target() {
libtool_remove_rpath libtool
}
```
|
Negotiation is a process of resolving disputes through discussion, without using force.
Negotiation may also refer to:
"The Negotiation", an episode of The Office
"The Negotiation" (Brooklyn Nine-Nine), an episode
"The Negotiation" (FlashForward), an episode
The Negotiation (film), a 2018 South Korean film
Negotiations (Free Agents album), 2002
Negotiations (The Helio Sequence album), 2012
See also
The Negotiator (novel), a crime novel by Frederick Forsyth
The Negotiator (film), a 1988 movie starring Samuel L. Jackson and Kevin Spacey
|
```go
package response
import "github.com/admpub/nging/v5/application/library/namedstruct"
var Registry = namedstruct.NewStructs()
```
|
The Tri-State Defender is a weekly African-American newspaper serving Memphis, Tennessee, and the nearby areas of Arkansas, Mississippi and Tennessee. It bills itself as "The Mid-South's Best Alternative Newspaper". The Defender was founded in 1951 by John H. Sengstacke, owner of the Chicago Defender. In 2013, the paper was locally purchased from Real Times Media by Best Media Inc.
History
Sengstacke's Chicago Defender circulated widely across the Southern United States, but Sengstacke in the early 1950s identified Memphis as a particularly attractive market, where several African-American newspapers had failed to take root and a startup would face only one competitor, The Memphis World, which had begun in 1931 (and would continue publishing until 1961).
In November 1951, Sengstacke and editor Lewis O. Swingler, the former editor of the World, published the first edition of the Tri-State Defender, adopting the slogan "The South's Independent Weekly". The 20-page inaugural edition included "The Tri-State Defender Ten Point Program", consisting of vows "to broadcast to the world the achievements of all the citizens it serves", "to join hands with all citizens regardless of creed or color who wish to develop better human relations and to advance the principals of American Democracy", and "to uphold those Christian principles which under gird our republic", among others. Swingler served as editor in chief until 1955.
Editor L. Alex Wilson and his Tri-State Defender journalists led coverage of the 1955 murder of Emmett Till, an African-American teen from Illinois who was killed in Mississippi after allegedly flirting with a white woman. Their stories and photographs dominated both their own paper and the Chicago Defender for weeks, and the trial became a media sensation and landmark event in the Civil Rights Movement. Wilson' s coverage of the Civil Rights Movement had a more powerful editorial influence than its competitor, The Memphis World, on the Memphis black community.
The Tri-State Defender in its first 50 years was part of Sengstacke Enterprises Inc., a chain of prominent African-American publications, which in the 1990s included the flagship Chicago Daily Defender, the Michigan Chronicle and the New Pittsburgh Courier. Following Sengstacke's death in 1997, the four-paper chain was held in a family trust until 2003, when it was sold for nearly $12 million to Real Times, a group of investors with several business and family ties to Sengstacke.
References
External links
Newspapers published in Tennessee
African-American newspapers
Newspapers established in 1951
|
```python
import django_filters
from django.db.models import Q
from django.utils.translation import gettext as _
from dcim.models import Device, Interface
from ipam.models import IPAddress, RouteTarget, VLAN
from netbox.filtersets import NetBoxModelFilterSet, OrganizationalModelFilterSet
from tenancy.filtersets import TenancyFilterSet
from utilities.filters import ContentTypeFilter, MultiValueCharFilter, MultiValueNumberFilter
from virtualization.models import VirtualMachine, VMInterface
from .choices import *
from .models import *
__all__ = (
'IKEPolicyFilterSet',
'IKEProposalFilterSet',
'IPSecPolicyFilterSet',
'IPSecProfileFilterSet',
'IPSecProposalFilterSet',
'L2VPNFilterSet',
'L2VPNTerminationFilterSet',
'TunnelFilterSet',
'TunnelGroupFilterSet',
'TunnelTerminationFilterSet',
)
class TunnelGroupFilterSet(OrganizationalModelFilterSet):
class Meta:
model = TunnelGroup
fields = ('id', 'name', 'slug', 'description')
class TunnelFilterSet(NetBoxModelFilterSet, TenancyFilterSet):
status = django_filters.MultipleChoiceFilter(
choices=TunnelStatusChoices
)
group_id = django_filters.ModelMultipleChoiceFilter(
queryset=TunnelGroup.objects.all(),
label=_('Tunnel group (ID)'),
)
group = django_filters.ModelMultipleChoiceFilter(
field_name='group__slug',
queryset=TunnelGroup.objects.all(),
to_field_name='slug',
label=_('Tunnel group (slug)'),
)
encapsulation = django_filters.MultipleChoiceFilter(
choices=TunnelEncapsulationChoices
)
ipsec_profile_id = django_filters.ModelMultipleChoiceFilter(
queryset=IPSecProfile.objects.all(),
label=_('IPSec profile (ID)'),
)
ipsec_profile = django_filters.ModelMultipleChoiceFilter(
field_name='ipsec_profile__name',
queryset=IPSecProfile.objects.all(),
to_field_name='name',
label=_('IPSec profile (name)'),
)
class Meta:
model = Tunnel
fields = ('id', 'name', 'tunnel_id', 'description')
def search(self, queryset, name, value):
if not value.strip():
return queryset
return queryset.filter(
Q(name__icontains=value) |
Q(description__icontains=value) |
Q(comments__icontains=value)
)
class TunnelTerminationFilterSet(NetBoxModelFilterSet):
tunnel_id = django_filters.ModelMultipleChoiceFilter(
field_name='tunnel',
queryset=Tunnel.objects.all(),
label=_('Tunnel (ID)'),
)
tunnel = django_filters.ModelMultipleChoiceFilter(
field_name='tunnel__name',
queryset=Tunnel.objects.all(),
to_field_name='name',
label=_('Tunnel (name)'),
)
role = django_filters.MultipleChoiceFilter(
choices=TunnelTerminationRoleChoices
)
termination_type = ContentTypeFilter()
interface = django_filters.ModelMultipleChoiceFilter(
field_name='interface__name',
queryset=Interface.objects.all(),
to_field_name='name',
label=_('Interface (name)'),
)
interface_id = django_filters.ModelMultipleChoiceFilter(
field_name='interface',
queryset=Interface.objects.all(),
label=_('Interface (ID)'),
)
vminterface = django_filters.ModelMultipleChoiceFilter(
field_name='vminterface__name',
queryset=VMInterface.objects.all(),
to_field_name='name',
label=_('VM interface (name)'),
)
vminterface_id = django_filters.ModelMultipleChoiceFilter(
field_name='vminterface',
queryset=VMInterface.objects.all(),
label=_('VM interface (ID)'),
)
outside_ip_id = django_filters.ModelMultipleChoiceFilter(
field_name='outside_ip',
queryset=IPAddress.objects.all(),
label=_('Outside IP (ID)'),
)
class Meta:
model = TunnelTermination
fields = ('id', 'termination_id')
class IKEProposalFilterSet(NetBoxModelFilterSet):
ike_policy_id = django_filters.ModelMultipleChoiceFilter(
field_name='ike_policies',
queryset=IKEPolicy.objects.all(),
label=_('IKE policy (ID)'),
)
ike_policy = django_filters.ModelMultipleChoiceFilter(
field_name='ike_policies__name',
queryset=IKEPolicy.objects.all(),
to_field_name='name',
label=_('IKE policy (name)'),
)
authentication_method = django_filters.MultipleChoiceFilter(
choices=AuthenticationMethodChoices
)
encryption_algorithm = django_filters.MultipleChoiceFilter(
choices=EncryptionAlgorithmChoices
)
authentication_algorithm = django_filters.MultipleChoiceFilter(
choices=AuthenticationAlgorithmChoices
)
group = django_filters.MultipleChoiceFilter(
choices=DHGroupChoices
)
ike_policy_id = django_filters.ModelMultipleChoiceFilter(
field_name='ike_policies',
queryset=IKEPolicy.objects.all(),
label=_('IKE policy (ID)'),
)
ike_policy = django_filters.ModelMultipleChoiceFilter(
field_name='ike_policies__name',
queryset=IKEPolicy.objects.all(),
to_field_name='name',
label=_('IKE policy (name)'),
)
class Meta:
model = IKEProposal
fields = ('id', 'name', 'sa_lifetime', 'description')
def search(self, queryset, name, value):
if not value.strip():
return queryset
return queryset.filter(
Q(name__icontains=value) |
Q(description__icontains=value) |
Q(comments__icontains=value)
)
class IKEPolicyFilterSet(NetBoxModelFilterSet):
version = django_filters.MultipleChoiceFilter(
choices=IKEVersionChoices
)
mode = django_filters.MultipleChoiceFilter(
choices=IKEModeChoices
)
ike_proposal_id = django_filters.ModelMultipleChoiceFilter(
field_name='proposals',
queryset=IKEProposal.objects.all()
)
ike_proposal = django_filters.ModelMultipleChoiceFilter(
field_name='proposals__name',
queryset=IKEProposal.objects.all(),
to_field_name='name'
)
# TODO: Remove in v4.1
proposal = ike_proposal
proposal_id = ike_proposal_id
class Meta:
model = IKEPolicy
fields = ('id', 'name', 'preshared_key', 'description')
def search(self, queryset, name, value):
if not value.strip():
return queryset
return queryset.filter(
Q(name__icontains=value) |
Q(description__icontains=value) |
Q(comments__icontains=value)
)
class IPSecProposalFilterSet(NetBoxModelFilterSet):
ipsec_policy_id = django_filters.ModelMultipleChoiceFilter(
field_name='ipsec_policies',
queryset=IPSecPolicy.objects.all(),
label=_('IPSec policy (ID)'),
)
ipsec_policy = django_filters.ModelMultipleChoiceFilter(
field_name='ipsec_policies__name',
queryset=IPSecPolicy.objects.all(),
to_field_name='name',
label=_('IPSec policy (name)'),
)
encryption_algorithm = django_filters.MultipleChoiceFilter(
choices=EncryptionAlgorithmChoices
)
authentication_algorithm = django_filters.MultipleChoiceFilter(
choices=AuthenticationAlgorithmChoices
)
class Meta:
model = IPSecProposal
fields = ('id', 'name', 'sa_lifetime_seconds', 'sa_lifetime_data', 'description')
def search(self, queryset, name, value):
if not value.strip():
return queryset
return queryset.filter(
Q(name__icontains=value) |
Q(description__icontains=value) |
Q(comments__icontains=value)
)
class IPSecPolicyFilterSet(NetBoxModelFilterSet):
pfs_group = django_filters.MultipleChoiceFilter(
choices=DHGroupChoices
)
ipsec_proposal_id = django_filters.ModelMultipleChoiceFilter(
field_name='proposals',
queryset=IPSecProposal.objects.all()
)
ipsec_proposal = django_filters.ModelMultipleChoiceFilter(
field_name='proposals__name',
queryset=IPSecProposal.objects.all(),
to_field_name='name'
)
# TODO: Remove in v4.1
proposal = ipsec_proposal
proposal_id = ipsec_proposal_id
class Meta:
model = IPSecPolicy
fields = ('id', 'name', 'description')
def search(self, queryset, name, value):
if not value.strip():
return queryset
return queryset.filter(
Q(name__icontains=value) |
Q(description__icontains=value) |
Q(comments__icontains=value)
)
class IPSecProfileFilterSet(NetBoxModelFilterSet):
mode = django_filters.MultipleChoiceFilter(
choices=IPSecModeChoices
)
ike_policy_id = django_filters.ModelMultipleChoiceFilter(
queryset=IKEPolicy.objects.all(),
label=_('IKE policy (ID)'),
)
ike_policy = django_filters.ModelMultipleChoiceFilter(
field_name='ike_policy__name',
queryset=IKEPolicy.objects.all(),
to_field_name='name',
label=_('IKE policy (name)'),
)
ipsec_policy_id = django_filters.ModelMultipleChoiceFilter(
queryset=IPSecPolicy.objects.all(),
label=_('IPSec policy (ID)'),
)
ipsec_policy = django_filters.ModelMultipleChoiceFilter(
field_name='ipsec_policy__name',
queryset=IPSecPolicy.objects.all(),
to_field_name='name',
label=_('IPSec policy (name)'),
)
class Meta:
model = IPSecProfile
fields = ('id', 'name', 'description')
def search(self, queryset, name, value):
if not value.strip():
return queryset
return queryset.filter(
Q(name__icontains=value) |
Q(description__icontains=value) |
Q(comments__icontains=value)
)
class L2VPNFilterSet(NetBoxModelFilterSet, TenancyFilterSet):
type = django_filters.MultipleChoiceFilter(
choices=L2VPNTypeChoices,
null_value=None
)
import_target_id = django_filters.ModelMultipleChoiceFilter(
field_name='import_targets',
queryset=RouteTarget.objects.all(),
label=_('Import target'),
)
import_target = django_filters.ModelMultipleChoiceFilter(
field_name='import_targets__name',
queryset=RouteTarget.objects.all(),
to_field_name='name',
label=_('Import target (name)'),
)
export_target_id = django_filters.ModelMultipleChoiceFilter(
field_name='export_targets',
queryset=RouteTarget.objects.all(),
label=_('Export target'),
)
export_target = django_filters.ModelMultipleChoiceFilter(
field_name='export_targets__name',
queryset=RouteTarget.objects.all(),
to_field_name='name',
label=_('Export target (name)'),
)
class Meta:
model = L2VPN
fields = ('id', 'identifier', 'name', 'slug', 'type', 'description')
def search(self, queryset, name, value):
if not value.strip():
return queryset
qs_filter = Q(name__icontains=value) | Q(description__icontains=value)
try:
qs_filter |= Q(identifier=int(value))
except ValueError:
pass
return queryset.filter(qs_filter)
class L2VPNTerminationFilterSet(NetBoxModelFilterSet):
l2vpn_id = django_filters.ModelMultipleChoiceFilter(
queryset=L2VPN.objects.all(),
label=_('L2VPN (ID)'),
)
l2vpn = django_filters.ModelMultipleChoiceFilter(
field_name='l2vpn__slug',
queryset=L2VPN.objects.all(),
to_field_name='slug',
label=_('L2VPN (slug)'),
)
region = MultiValueCharFilter(
method='filter_region',
field_name='slug',
label=_('Region (slug)'),
)
region_id = MultiValueNumberFilter(
method='filter_region',
field_name='pk',
label=_('Region (ID)'),
)
site = MultiValueCharFilter(
method='filter_site',
field_name='slug',
label=_('Site (slug)'),
)
site_id = MultiValueNumberFilter(
method='filter_site',
field_name='pk',
label=_('Site (ID)'),
)
device = django_filters.ModelMultipleChoiceFilter(
field_name='interface__device__name',
queryset=Device.objects.all(),
to_field_name='name',
label=_('Device (name)'),
)
device_id = django_filters.ModelMultipleChoiceFilter(
field_name='interface__device',
queryset=Device.objects.all(),
label=_('Device (ID)'),
)
virtual_machine = django_filters.ModelMultipleChoiceFilter(
field_name='vminterface__virtual_machine__name',
queryset=VirtualMachine.objects.all(),
to_field_name='name',
label=_('Virtual machine (name)'),
)
virtual_machine_id = django_filters.ModelMultipleChoiceFilter(
field_name='vminterface__virtual_machine',
queryset=VirtualMachine.objects.all(),
label=_('Virtual machine (ID)'),
)
interface = django_filters.ModelMultipleChoiceFilter(
field_name='interface__name',
queryset=Interface.objects.all(),
to_field_name='name',
label=_('Interface (name)'),
)
interface_id = django_filters.ModelMultipleChoiceFilter(
field_name='interface',
queryset=Interface.objects.all(),
label=_('Interface (ID)'),
)
vminterface = django_filters.ModelMultipleChoiceFilter(
field_name='vminterface__name',
queryset=VMInterface.objects.all(),
to_field_name='name',
label=_('VM interface (name)'),
)
vminterface_id = django_filters.ModelMultipleChoiceFilter(
field_name='vminterface',
queryset=VMInterface.objects.all(),
label=_('VM Interface (ID)'),
)
vlan = django_filters.ModelMultipleChoiceFilter(
field_name='vlan__name',
queryset=VLAN.objects.all(),
to_field_name='name',
label=_('VLAN (name)'),
)
vlan_vid = django_filters.NumberFilter(
field_name='vlan__vid',
label=_('VLAN number (1-4094)'),
)
vlan_id = django_filters.ModelMultipleChoiceFilter(
field_name='vlan',
queryset=VLAN.objects.all(),
label=_('VLAN (ID)'),
)
assigned_object_type = ContentTypeFilter()
class Meta:
model = L2VPNTermination
fields = ('id', 'assigned_object_id')
def search(self, queryset, name, value):
if not value.strip():
return queryset
qs_filter = Q(l2vpn__name__icontains=value)
return queryset.filter(qs_filter)
def filter_assigned_object(self, queryset, name, value):
qs = queryset.filter(
Q(**{'{}__in'.format(name): value})
)
return qs
def filter_site(self, queryset, name, value):
qs = queryset.filter(
Q(
Q(**{'vlan__site__{}__in'.format(name): value}) |
Q(**{'interface__device__site__{}__in'.format(name): value}) |
Q(**{'vminterface__virtual_machine__site__{}__in'.format(name): value})
)
)
return qs
def filter_region(self, queryset, name, value):
qs = queryset.filter(
Q(
Q(**{'vlan__site__region__{}__in'.format(name): value}) |
Q(**{'interface__device__site__region__{}__in'.format(name): value}) |
Q(**{'vminterface__virtual_machine__site__region__{}__in'.format(name): value})
)
)
return qs
```
|
```smalltalk
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using Microsoft.Toolkit.Uwp.UI.Controls;
using Windows.UI.Xaml.Automation;
using Windows.UI.Xaml.Automation.Peers;
using Windows.UI.Xaml.Controls;
namespace Microsoft.Toolkit.Uwp.UI.Automation.Peers
{
/// <summary>
/// Defines a framework element automation peer for the <see cref="BladeItem"/>.
/// </summary>
public class BladeItemAutomationPeer : FrameworkElementAutomationPeer
{
/// <summary>
/// Initializes a new instance of the <see cref="BladeItemAutomationPeer"/> class.
/// </summary>
/// <param name="owner">
/// The <see cref="BladeItem" /> that is associated with this <see cref="T:Windows.UI.Xaml.Automation.Peers.BladeItemAutomationPeer" />.
/// </param>
public BladeItemAutomationPeer(BladeItem owner)
: base(owner)
{
}
private BladeItem OwnerBladeItem
{
get { return this.Owner as BladeItem; }
}
/// <summary>
/// Gets the control type for the element that is associated with the UI Automation peer.
/// </summary>
/// <returns>The control type.</returns>
protected override AutomationControlType GetAutomationControlTypeCore()
{
return AutomationControlType.ListItem;
}
/// <summary>
/// Called by GetClassName that gets a human readable name that, in addition to AutomationControlType,
/// differentiates the control represented by this AutomationPeer.
/// </summary>
/// <returns>The string that contains the name.</returns>
protected override string GetClassNameCore()
{
return Owner.GetType().Name;
}
/// <summary>
/// Called by GetName.
/// </summary>
/// <returns>
/// Returns the first of these that is not null or empty:
/// - Value returned by the base implementation
/// - Name of the owning BladeItem
/// - BladeItem class name
/// </returns>
protected override string GetNameCore()
{
string name = AutomationProperties.GetName(this.OwnerBladeItem);
if (!string.IsNullOrEmpty(name))
{
return name;
}
name = this.OwnerBladeItem.Name;
if (!string.IsNullOrEmpty(name))
{
return name;
}
name = this.OwnerBladeItem.Header?.ToString();
if (!string.IsNullOrEmpty(name))
{
return name;
}
TextBlock textBlock = this.OwnerBladeItem.FindDescendant<TextBlock>();
if (textBlock != null)
{
return textBlock.Text;
}
name = base.GetNameCore();
if (!string.IsNullOrEmpty(name))
{
return name;
}
return string.Empty;
}
/// <summary>
/// Returns the size of the set where the element that is associated with the automation peer is located.
/// </summary>
/// <returns>
/// The size of the set.
/// </returns>
protected override int GetSizeOfSetCore()
{
int sizeOfSet = base.GetSizeOfSetCore();
if (sizeOfSet != -1)
{
return sizeOfSet;
}
BladeItem owner = this.OwnerBladeItem;
BladeView parent = owner.ParentBladeView;
sizeOfSet = parent.Items.Count;
return sizeOfSet;
}
/// <summary>
/// Returns the ordinal position in the set for the element that is associated with the automation peer.
/// </summary>
/// <returns>
/// The ordinal position in the set.
/// </returns>
protected override int GetPositionInSetCore()
{
int positionInSet = base.GetPositionInSetCore();
if (positionInSet != -1)
{
return positionInSet;
}
BladeItem owner = this.OwnerBladeItem;
BladeView parent = owner.ParentBladeView;
positionInSet = parent.IndexFromContainer(owner);
return positionInSet;
}
}
}
```
|
```ruby
# frozen_string_literal: true
class StatusIdsToTimestampIds < ActiveRecord::Migration[5.1]
def up
# Prepare the function we will use to generate IDs.
Mastodon::Snowflake.define_timestamp_id
# Set up the statuses.id column to use our timestamp-based IDs.
ActiveRecord::Base.connection.execute(<<~SQL.squish)
ALTER TABLE statuses
ALTER COLUMN id
SET DEFAULT timestamp_id('statuses')
SQL
# Make sure we have a sequence to use.
Mastodon::Snowflake.ensure_id_sequences_exist
end
def down
# Revert the column to the old method of just using the sequence
# value for new IDs. Set the current ID sequence to the maximum
# existing ID, such that the next sequence will be one higher.
# We lock the table during this so that the ID won't get clobbered,
# but ID is indexed, so this should be a fast operation.
ActiveRecord::Base.connection.execute(<<~SQL.squish)
LOCK statuses;
SELECT setval('statuses_id_seq', (SELECT MAX(id) FROM statuses));
ALTER TABLE statuses
ALTER COLUMN id
SET DEFAULT nextval('statuses_id_seq');
SQL
end
end
```
|
Platytomus atlanticus is a species of aphodiine dung beetle in the family Scarabaeidae. It is found in North America.
References
Further reading
Scarabaeidae
Articles created by Qbugbot
Beetles described in 1948
|
```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 <cstdint>
#include <deque>
#include <memory>
#include <ostream>
#include <string>
#include <thread>
#include <utility>
#include <vector>
#include <glog/logging.h>
#include <gtest/gtest.h>
#include "kudu/gutil/strings/substitute.h"
#include "kudu/gutil/walltime.h"
#include "kudu/security/crypto.h"
#include "kudu/security/token.pb.h"
#include "kudu/security/token_signer.h"
#include "kudu/security/token_signing_key.h"
#include "kudu/security/token_verifier.h"
#include "kudu/util/countdown_latch.h"
#include "kudu/util/logging.h"
#include "kudu/util/monotime.h"
#include "kudu/util/openssl_util.h"
#include "kudu/util/pb_util.h"
#include "kudu/util/status.h"
#include "kudu/util/test_macros.h"
#include "kudu/util/test_util.h"
using kudu::pb_util::SecureDebugString;
using std::make_shared;
using std::string;
using std::thread;
using std::unique_ptr;
using std::vector;
using strings::Substitute;
namespace kudu {
namespace security {
namespace {
// Dummy variables to use when their values don't matter much.
const int kNumBits = UseLargeKeys() ? 2048 : 512;
const int64_t kTokenValiditySeconds = 10;
const char kUser[] = "user";
// Repeatedly signs tokens and attempts to rotate TSKs until the active TSK's
// sequence number passes `seq_num`, returning the last token signed by the TSK
// at `seq_num`. This token is roughly the last possible token signed in the
// TSK's activity interval.
// The TokenGenerator 'generate_token' is a lambda that fills in a
// SignedTokenPB and returns a Status.
template <class TokenGenerator>
Status SignUntilRotatePast(TokenSigner* signer, TokenGenerator generate_token,
const string& token_type, int64_t seq_num,
SignedTokenPB* last_signed_by_tsk) {
SignedTokenPB last_signed;
RETURN_NOT_OK_PREPEND(generate_token(&last_signed),
Substitute("Failed to generate first $0 token", token_type));
DCHECK_EQ(seq_num, last_signed.signing_key_seq_num())
<< Substitute("Unexpected starting seq_num for $0 token", token_type);
auto cur_seq_num = seq_num;
while (cur_seq_num == seq_num) {
SleepFor(MonoDelta::FromMilliseconds(50));
KLOG_EVERY_N_SECS(INFO, 1) <<
Substitute("Generating $0 token for activity interval $1", token_type, seq_num);
RETURN_NOT_OK_PREPEND(signer->TryRotateKey(), "Failed to attempt to rotate key");
SignedTokenPB signed_token;
RETURN_NOT_OK_PREPEND(generate_token(&signed_token),
Substitute("Failed to generate $0 token", token_type));
// We want to return the last token signed by the `seq_num` TSK, so only
// update it when appropriate.
cur_seq_num = signed_token.signing_key_seq_num();
if (cur_seq_num == seq_num) {
last_signed = std::move(signed_token);
}
}
*last_signed_by_tsk = std::move(last_signed);
return Status::OK();
}
SignedTokenPB MakeUnsignedToken(int64_t expiration) {
SignedTokenPB ret;
TokenPB token;
token.set_expire_unix_epoch_seconds(expiration);
CHECK(token.SerializeToString(ret.mutable_token_data()));
return ret;
}
SignedTokenPB MakeIncompatibleToken() {
SignedTokenPB ret;
TokenPB token;
token.set_expire_unix_epoch_seconds(WallTime_Now() + 100);
token.add_incompatible_features(TokenPB::Feature_MAX + 1);
CHECK(token.SerializeToString(ret.mutable_token_data()));
return ret;
}
// Generate public key as a string in DER format for tests.
Status GeneratePublicKeyStrDer(string* ret) {
PrivateKey private_key;
RETURN_NOT_OK(GeneratePrivateKey(kNumBits, &private_key));
PublicKey public_key;
RETURN_NOT_OK(private_key.GetPublicKey(&public_key));
string public_key_str_der;
RETURN_NOT_OK(public_key.ToString(&public_key_str_der, DataFormat::DER));
*ret = public_key_str_der;
return Status::OK();
}
// Generate token signing key with the specified parameters.
Status GenerateTokenSigningKey(int64_t seq_num,
int64_t expire_time_seconds,
unique_ptr<TokenSigningPrivateKey>* tsk) {
{
unique_ptr<PrivateKey> private_key(new PrivateKey);
RETURN_NOT_OK(GeneratePrivateKey(kNumBits, private_key.get()));
tsk->reset(new TokenSigningPrivateKey(
seq_num, expire_time_seconds, std::move(private_key)));
}
return Status::OK();
}
void CheckAndAddNextKey(int iter_num,
TokenSigner* signer,
int64_t* key_seq_num) {
ASSERT_NE(nullptr, signer);
ASSERT_NE(nullptr, key_seq_num);
int64_t seq_num;
{
unique_ptr<TokenSigningPrivateKey> key;
ASSERT_OK(signer->CheckNeedKey(&key));
ASSERT_NE(nullptr, key.get());
seq_num = key->key_seq_num();
}
for (int i = 0; i < iter_num; ++i) {
unique_ptr<TokenSigningPrivateKey> key;
ASSERT_OK(signer->CheckNeedKey(&key));
ASSERT_NE(nullptr, key.get());
ASSERT_EQ(seq_num, key->key_seq_num());
if (i + 1 == iter_num) {
// Finally, add the key to the TokenSigner.
ASSERT_OK(signer->AddKey(std::move(key)));
}
}
*key_seq_num = seq_num;
}
} // anonymous namespace
class TokenTest : public KuduTest {
};
TEST_F(TokenTest, TestInit) {
TokenSigner signer(kTokenValiditySeconds, kTokenValiditySeconds, 10);
const TokenVerifier& verifier(signer.verifier());
SignedTokenPB token = MakeUnsignedToken(WallTime_Now());
Status s = signer.SignToken(&token);
ASSERT_TRUE(s.IsIllegalState()) << s.ToString();
static const int64_t kKeySeqNum = 100;
PrivateKey private_key;
ASSERT_OK(GeneratePrivateKey(kNumBits, &private_key));
string private_key_str_der;
ASSERT_OK(private_key.ToString(&private_key_str_der, DataFormat::DER));
TokenSigningPrivateKeyPB pb;
pb.set_rsa_key_der(private_key_str_der);
pb.set_key_seq_num(kKeySeqNum);
pb.set_expire_unix_epoch_seconds(WallTime_Now() + 120);
ASSERT_OK(signer.ImportKeys({pb}));
vector<TokenSigningPublicKeyPB> public_keys(verifier.ExportKeys());
ASSERT_EQ(1, public_keys.size());
ASSERT_EQ(kKeySeqNum, public_keys[0].key_seq_num());
// It should be possible to sign tokens once the signer is initialized.
ASSERT_OK(signer.SignToken(&token));
ASSERT_TRUE(token.has_signature());
}
// Verify that TokenSigner does not allow 'holes' in the sequence numbers
// of the generated keys. The idea is to not allow sequences like '1, 5, 6'.
// In general, calling the CheckNeedKey() method multiple times and then calling
// the AddKey() method once should advance the key sequence number only by 1
// regardless of number CheckNeedKey() calls.
//
// This is to make sure that the sequence numbers are not sparse in case if
// running scenarios CheckNeedKey()-try-to-store-key-AddKey() over and over
// again, given that the 'try-to-store-key' part can fail sometimes.
TEST_F(TokenTest, TestTokenSignerNonSparseSequenceNumbers) {
static const int kIterNum = 3;
static const int64_t kAuthnTokenValiditySeconds = 1;
static const int64_t kAuthzTokenValiditySeconds = 1;
static const int64_t kKeyRotationSeconds = 1;
TokenSigner signer(kAuthnTokenValiditySeconds, kAuthzTokenValiditySeconds, kKeyRotationSeconds);
int64_t seq_num_first_key;
NO_FATALS(CheckAndAddNextKey(kIterNum, &signer, &seq_num_first_key));
SleepFor(MonoDelta::FromSeconds(kKeyRotationSeconds + 1));
int64_t seq_num_second_key;
NO_FATALS(CheckAndAddNextKey(kIterNum, &signer, &seq_num_second_key));
ASSERT_EQ(seq_num_first_key + 1, seq_num_second_key);
}
// Verify the behavior of the TokenSigner::ImportKeys() method. In general,
// it should tolerate mix of expired and non-expired keys, even if their
// sequence numbers are intermixed: keys with greater sequence numbers could
// be already expired but keys with lesser sequence numbers could be still
// valid. The idea is to correctly import TSKs generated with different
// validity period settings. This is to address scenarios when the system
// was run with long authn token validity interval and then switched to
// a shorter one.
//
// After importing keys, the TokenSigner should contain only the valid ones.
// In addition, the sequence number of the very first key generated after the
// import should be greater than any sequence number the TokenSigner has seen
// during the import.
TEST_F(TokenTest, TestTokenSignerAddKeyAfterImport) {
static const int64_t kKeyRotationSeconds = 8;
TokenSigner signer(kTokenValiditySeconds, kTokenValiditySeconds, kKeyRotationSeconds);
const int64_t key_validity_seconds = signer.key_validity_seconds_;
const TokenVerifier& verifier(signer.verifier());
static const int64_t kExpiredKeySeqNum = 100;
static const int64_t kKeySeqNum = kExpiredKeySeqNum - 1;
{
// First, try to import already expired key to check that internal key
// sequence number advances correspondingly.
PrivateKey private_key;
ASSERT_OK(GeneratePrivateKey(kNumBits, &private_key));
string private_key_str_der;
ASSERT_OK(private_key.ToString(&private_key_str_der, DataFormat::DER));
TokenSigningPrivateKeyPB pb;
pb.set_rsa_key_der(private_key_str_der);
pb.set_key_seq_num(kExpiredKeySeqNum);
pb.set_expire_unix_epoch_seconds(WallTime_Now() - 1);
ASSERT_OK(signer.ImportKeys({pb}));
// Check the result of importing keys: there should be no keys because
// the only one we tried to import was already expired.
vector<TokenSigningPublicKeyPB> public_keys(verifier.ExportKeys());
ASSERT_TRUE(public_keys.empty());
}
{
// Now import valid (not yet expired) key, but with sequence number less
// than of the expired key.
PrivateKey private_key;
ASSERT_OK(GeneratePrivateKey(kNumBits, &private_key));
string private_key_str_der;
ASSERT_OK(private_key.ToString(&private_key_str_der, DataFormat::DER));
TokenSigningPrivateKeyPB pb;
pb.set_rsa_key_der(private_key_str_der);
pb.set_key_seq_num(kKeySeqNum);
// Set the TSK's expiration time: make the key valid but past its activity
// interval.
pb.set_expire_unix_epoch_seconds(
WallTime_Now() + (key_validity_seconds - 2 * kKeyRotationSeconds - 1));
ASSERT_OK(signer.ImportKeys({pb}));
// Check the result of importing keys. The lower sequence number is
// accepted, even though we previously imported a key with a higher
// sequence number that was expired.
vector<TokenSigningPublicKeyPB> public_keys(verifier.ExportKeys());
ASSERT_EQ(1, public_keys.size());
ASSERT_EQ(kKeySeqNum, public_keys[0].key_seq_num());
// The newly imported key should be used to sign tokens.
SignedTokenPB token = MakeUnsignedToken(WallTime_Now());
ASSERT_OK(signer.SignToken(&token));
ASSERT_TRUE(token.has_signature());
ASSERT_TRUE(token.has_signing_key_seq_num());
EXPECT_EQ(kKeySeqNum, token.signing_key_seq_num());
}
{
unique_ptr<TokenSigningPrivateKey> key;
ASSERT_OK(signer.CheckNeedKey(&key));
ASSERT_NE(nullptr, key.get());
ASSERT_EQ(kExpiredKeySeqNum + 1, key->key_seq_num());
ASSERT_OK(signer.AddKey(std::move(key)));
bool has_rotated = false;
ASSERT_OK(signer.TryRotateKey(&has_rotated));
ASSERT_TRUE(has_rotated);
}
{
// Check the result of generating the new key: the identifier of the new key
// should be +1 increment from the identifier of the expired imported key.
vector<TokenSigningPublicKeyPB> public_keys(verifier.ExportKeys());
ASSERT_EQ(2, public_keys.size());
EXPECT_EQ(kKeySeqNum, public_keys[0].key_seq_num());
EXPECT_EQ(kExpiredKeySeqNum + 1, public_keys[1].key_seq_num());
}
// At this point the new key should be used to sign tokens.
SignedTokenPB token = MakeUnsignedToken(WallTime_Now());
ASSERT_OK(signer.SignToken(&token));
ASSERT_TRUE(token.has_signature());
ASSERT_TRUE(token.has_signing_key_seq_num());
EXPECT_EQ(kExpiredKeySeqNum + 1, token.signing_key_seq_num());
}
// The AddKey() method should not allow to add a key with the sequence number
// less or equal to the sequence number of the most 'recent' key.
TEST_F(TokenTest, TestAddKeyConstraints) {
{
// If a signer has not created a TSK yet, it will create a key, and will
// happily accept the generated key.
TokenSigner signer(kTokenValiditySeconds, kTokenValiditySeconds, 1);
unique_ptr<TokenSigningPrivateKey> key;
ASSERT_OK(signer.CheckNeedKey(&key));
ASSERT_NE(nullptr, key.get());
ASSERT_OK(signer.AddKey(std::move(key)));
}
{
// If the key sequence number added to the signer isn't monotonically
// increasing, the signer will complain.
TokenSigner signer(kTokenValiditySeconds, kTokenValiditySeconds, 1);
unique_ptr<TokenSigningPrivateKey> key;
ASSERT_OK(signer.CheckNeedKey(&key));
ASSERT_NE(nullptr, key.get());
const int64_t key_seq_num = key->key_seq_num();
key->key_seq_num_ = key_seq_num - 1;
Status s = signer.AddKey(std::move(key));
ASSERT_TRUE(s.IsInvalidArgument()) << s.ToString();
ASSERT_STR_CONTAINS(s.ToString(),
": invalid key sequence number, should be at least ");
}
{
// Test importing expired keys. The signer should be OK with it.
TokenSigner signer(kTokenValiditySeconds, kTokenValiditySeconds, 1);
static const int64_t kKeySeqNum = 100;
PrivateKey private_key;
ASSERT_OK(GeneratePrivateKey(kNumBits, &private_key));
string private_key_str_der;
ASSERT_OK(private_key.ToString(&private_key_str_der, DataFormat::DER));
TokenSigningPrivateKeyPB pb;
pb.set_rsa_key_der(private_key_str_der);
pb.set_key_seq_num(kKeySeqNum);
// Make the key already expired.
pb.set_expire_unix_epoch_seconds(WallTime_Now() - 1);
ASSERT_OK(signer.ImportKeys({pb}));
// Generated keys thereafter are expected to have higher sequence numbers
// than the imported expired keys.
unique_ptr<TokenSigningPrivateKey> key;
ASSERT_OK(signer.CheckNeedKey(&key));
ASSERT_NE(nullptr, key.get());
const int64_t key_seq_num = key->key_seq_num();
ASSERT_GT(key_seq_num, kKeySeqNum);
key->key_seq_num_ = kKeySeqNum;
Status s = signer.AddKey(std::move(key));
ASSERT_TRUE(s.IsInvalidArgument()) << s.ToString();
ASSERT_STR_CONTAINS(s.ToString(),
": invalid key sequence number, should be at least ");
}
}
TEST_F(TokenTest, TestGenerateAuthnTokenNoUserName) {
TokenSigner signer(kTokenValiditySeconds, kTokenValiditySeconds, 10);
SignedTokenPB signed_token_pb;
const Status& s = signer.GenerateAuthnToken("", &signed_token_pb);
EXPECT_TRUE(s.IsInvalidArgument()) << s.ToString();
ASSERT_STR_CONTAINS(s.ToString(), "no username provided for authn token");
}
TEST_F(TokenTest, TestGenerateAuthzToken) {
// We cannot generate tokens with no username associated with it.
auto verifier(make_shared<TokenVerifier>());
TokenSigner signer(kTokenValiditySeconds, kTokenValiditySeconds, 10, verifier);
TablePrivilegePB table_privilege;
SignedTokenPB signed_token_pb;
Status s = signer.GenerateAuthzToken("", table_privilege, &signed_token_pb);
EXPECT_TRUE(s.IsInvalidArgument()) << s.ToString();
ASSERT_STR_CONTAINS(s.ToString(), "no username provided for authz token");
// Generated tokens will have the specified privileges.
const string kAuthorized = "authzed";
unique_ptr<TokenSigningPrivateKey> key;
ASSERT_OK(signer.CheckNeedKey(&key));
ASSERT_NE(nullptr, key.get());
ASSERT_OK(signer.AddKey(std::move(key)));
ASSERT_OK(signer.GenerateAuthzToken(kAuthorized,
table_privilege,
&signed_token_pb));
ASSERT_TRUE(signed_token_pb.has_token_data());
TokenPB token_pb;
ASSERT_EQ(TokenVerificationResult::VALID,
verifier->VerifyTokenSignature(signed_token_pb, &token_pb));
ASSERT_TRUE(token_pb.has_authz());
ASSERT_EQ(kAuthorized, token_pb.authz().username());
ASSERT_TRUE(token_pb.authz().has_table_privilege());
ASSERT_EQ(SecureDebugString(table_privilege),
SecureDebugString(token_pb.authz().table_privilege()));
}
TEST_F(TokenTest, TestIsCurrentKeyValid) {
// This test sleeps for a key validity period, so set it up to be short.
static const int64_t kShortTokenValiditySeconds = 1;
static const int64_t kKeyRotationSeconds = 1;
TokenSigner signer(kShortTokenValiditySeconds, kShortTokenValiditySeconds, kKeyRotationSeconds);
static const int64_t key_validity_seconds = signer.key_validity_seconds_;
EXPECT_FALSE(signer.IsCurrentKeyValid());
{
unique_ptr<TokenSigningPrivateKey> key;
ASSERT_OK(signer.CheckNeedKey(&key));
// No keys are available yet, so should be able to add.
ASSERT_NE(nullptr, key.get());
ASSERT_OK(signer.AddKey(std::move(key)));
}
EXPECT_TRUE(signer.IsCurrentKeyValid());
SleepFor(MonoDelta::FromSeconds(key_validity_seconds));
// The key should expire after its validity interval.
EXPECT_FALSE(signer.IsCurrentKeyValid());
// Anyway, current implementation allows to use an expired key to sign tokens.
SignedTokenPB token = MakeUnsignedToken(WallTime_Now());
EXPECT_OK(signer.SignToken(&token));
}
TEST_F(TokenTest, TestTokenSignerAddKeys) {
{
TokenSigner signer(kTokenValiditySeconds, kTokenValiditySeconds, 10);
unique_ptr<TokenSigningPrivateKey> key;
ASSERT_OK(signer.CheckNeedKey(&key));
// No keys are available yet, so should be able to add.
ASSERT_NE(nullptr, key.get());
ASSERT_OK(signer.AddKey(std::move(key)));
ASSERT_OK(signer.CheckNeedKey(&key));
// It's not time to add next key yet.
ASSERT_EQ(nullptr, key.get());
}
{
// Special configuration for TokenSigner: rotation interval is zero,
// so should be able to add two keys right away.
TokenSigner signer(kTokenValiditySeconds, kTokenValiditySeconds, 0);
unique_ptr<TokenSigningPrivateKey> key;
ASSERT_OK(signer.CheckNeedKey(&key));
// No keys are available yet, so should be able to add.
ASSERT_NE(nullptr, key.get());
ASSERT_OK(signer.AddKey(std::move(key)));
// Should be able to add next key right away.
ASSERT_OK(signer.CheckNeedKey(&key));
ASSERT_NE(nullptr, key.get());
ASSERT_OK(signer.AddKey(std::move(key)));
// Active key and next key are already in place: no need for a new key.
ASSERT_OK(signer.CheckNeedKey(&key));
ASSERT_EQ(nullptr, key.get());
}
if (AllowSlowTests()) {
// Special configuration for TokenSigner: short interval for key rotation.
// It should not need next key right away, but should need next key after
// the rotation interval.
static const int64_t kKeyRotationIntervalSeconds = 8;
TokenSigner signer(kTokenValiditySeconds, kTokenValiditySeconds, kKeyRotationIntervalSeconds);
unique_ptr<TokenSigningPrivateKey> key;
ASSERT_OK(signer.CheckNeedKey(&key));
// No keys are available yet, so should be able to add.
ASSERT_NE(nullptr, key.get());
ASSERT_OK(signer.AddKey(std::move(key)));
// Should not need next key right away.
ASSERT_OK(signer.CheckNeedKey(&key));
ASSERT_EQ(nullptr, key.get());
SleepFor(MonoDelta::FromSeconds(kKeyRotationIntervalSeconds));
// Should need next key after the rotation interval.
ASSERT_OK(signer.CheckNeedKey(&key));
ASSERT_NE(nullptr, key.get());
ASSERT_OK(signer.AddKey(std::move(key)));
// Active key and next key are already in place: no need for a new key.
ASSERT_OK(signer.CheckNeedKey(&key));
ASSERT_EQ(nullptr, key.get());
}
}
// Test how key rotation works.
TEST_F(TokenTest, TestTokenSignerSignVerifyExport) {
// Key rotation interval 0 allows adding 2 keys in a row with no delay.
TokenSigner signer(kTokenValiditySeconds, kTokenValiditySeconds, 0);
const TokenVerifier& verifier(signer.verifier());
// Should start off with no signing keys.
ASSERT_TRUE(verifier.ExportKeys().empty());
// Trying to sign a token when there is no TSK should give an error.
SignedTokenPB token = MakeUnsignedToken(WallTime_Now());
Status s = signer.SignToken(&token);
ASSERT_TRUE(s.IsIllegalState()) << s.ToString();
// Generate and set a new key.
int64_t signing_key_seq_num;
{
unique_ptr<TokenSigningPrivateKey> key;
ASSERT_OK(signer.CheckNeedKey(&key));
ASSERT_NE(nullptr, key.get());
signing_key_seq_num = key->key_seq_num();
ASSERT_GT(signing_key_seq_num, -1);
ASSERT_OK(signer.AddKey(std::move(key)));
}
// We should see the key now if we request TSKs starting at a
// lower sequence number.
ASSERT_EQ(1, verifier.ExportKeys().size());
// We should not see the key if we ask for the sequence number
// that it is assigned.
ASSERT_EQ(0, verifier.ExportKeys(signing_key_seq_num).size());
// We should be able to sign a token now.
ASSERT_OK(signer.SignToken(&token));
ASSERT_TRUE(token.has_signature());
ASSERT_EQ(signing_key_seq_num, token.signing_key_seq_num());
// Set next key and check that we return the right keys.
int64_t next_signing_key_seq_num;
{
unique_ptr<TokenSigningPrivateKey> key;
ASSERT_OK(signer.CheckNeedKey(&key));
ASSERT_NE(nullptr, key.get());
next_signing_key_seq_num = key->key_seq_num();
ASSERT_GT(next_signing_key_seq_num, signing_key_seq_num);
ASSERT_OK(signer.AddKey(std::move(key)));
}
ASSERT_EQ(2, verifier.ExportKeys().size());
ASSERT_EQ(1, verifier.ExportKeys(signing_key_seq_num).size());
ASSERT_EQ(0, verifier.ExportKeys(next_signing_key_seq_num).size());
// The first key should be used for signing: the next one is saved
// for the next rotation.
{
SignedTokenPB token = MakeUnsignedToken(WallTime_Now());
ASSERT_OK(signer.SignToken(&token));
ASSERT_TRUE(token.has_signature());
ASSERT_EQ(signing_key_seq_num, token.signing_key_seq_num());
}
}
// Test that the TokenSigner can export its public keys in protobuf form
// via bound TokenVerifier.
TEST_F(TokenTest, TestExportKeys) {
// Test that the exported public keys don't contain private key material,
// and have an appropriate expiration.
const int64_t key_exp_seconds = 30;
const int64_t key_rotation_seconds = 10;
TokenSigner signer(key_exp_seconds - 2 * key_rotation_seconds, 0,
key_rotation_seconds);
int64_t key_seq_num;
{
unique_ptr<TokenSigningPrivateKey> key;
ASSERT_OK(signer.CheckNeedKey(&key));
ASSERT_NE(nullptr, key.get());
key_seq_num = key->key_seq_num();
ASSERT_OK(signer.AddKey(std::move(key)));
}
const TokenVerifier& verifier(signer.verifier());
auto keys = verifier.ExportKeys();
ASSERT_EQ(1, keys.size());
const TokenSigningPublicKeyPB& key = keys[0];
ASSERT_TRUE(key.has_rsa_key_der());
ASSERT_EQ(key_seq_num, key.key_seq_num());
ASSERT_TRUE(key.has_expire_unix_epoch_seconds());
const int64_t now = WallTime_Now();
ASSERT_GT(key.expire_unix_epoch_seconds(), now);
ASSERT_LE(key.expire_unix_epoch_seconds(), now + key_exp_seconds);
}
// Test that the TokenVerifier can import keys exported by the TokenSigner
// and then verify tokens signed by it.
TEST_F(TokenTest, TestEndToEnd_Valid) {
TokenSigner signer(kTokenValiditySeconds, kTokenValiditySeconds, 10);
{
unique_ptr<TokenSigningPrivateKey> key;
ASSERT_OK(signer.CheckNeedKey(&key));
ASSERT_NE(nullptr, key.get());
ASSERT_OK(signer.AddKey(std::move(key)));
}
// Make and sign a token.
SignedTokenPB signed_token = MakeUnsignedToken(WallTime_Now() + 600);
ASSERT_OK(signer.SignToken(&signed_token));
// Try to verify it.
TokenVerifier verifier;
ASSERT_OK(verifier.ImportKeys(signer.verifier().ExportKeys()));
TokenPB token;
ASSERT_EQ(TokenVerificationResult::VALID, verifier.VerifyTokenSignature(signed_token, &token));
}
// Test all of the possible cases covered by token verification.
// See TokenVerificationResult.
TEST_F(TokenTest, TestEndToEnd_InvalidCases) {
// Key rotation interval 0 allows adding 2 keys in a row with no delay.
TokenSigner signer(kTokenValiditySeconds, kTokenValiditySeconds, 0);
{
unique_ptr<TokenSigningPrivateKey> key;
ASSERT_OK(signer.CheckNeedKey(&key));
ASSERT_NE(nullptr, key.get());
ASSERT_OK(signer.AddKey(std::move(key)));
}
TokenVerifier verifier;
ASSERT_OK(verifier.ImportKeys(signer.verifier().ExportKeys()));
// Make and sign a token, but corrupt the data in it.
{
SignedTokenPB signed_token = MakeUnsignedToken(WallTime_Now() + 600);
ASSERT_OK(signer.SignToken(&signed_token));
signed_token.set_token_data("xyz");
TokenPB token;
ASSERT_EQ(TokenVerificationResult::INVALID_TOKEN,
verifier.VerifyTokenSignature(signed_token, &token));
}
// Make and sign a token, but corrupt the signature.
{
SignedTokenPB signed_token = MakeUnsignedToken(WallTime_Now() + 600);
ASSERT_OK(signer.SignToken(&signed_token));
signed_token.set_signature("xyz");
TokenPB token;
ASSERT_EQ(TokenVerificationResult::INVALID_SIGNATURE,
verifier.VerifyTokenSignature(signed_token, &token));
}
// Make and sign a token, but set it to be already expired.
{
SignedTokenPB signed_token = MakeUnsignedToken(WallTime_Now() - 10);
ASSERT_OK(signer.SignToken(&signed_token));
TokenPB token;
ASSERT_EQ(TokenVerificationResult::EXPIRED_TOKEN,
verifier.VerifyTokenSignature(signed_token, &token));
}
// Make and sign a token which uses an incompatible feature flag.
{
SignedTokenPB signed_token = MakeIncompatibleToken();
ASSERT_OK(signer.SignToken(&signed_token));
TokenPB token;
ASSERT_EQ(TokenVerificationResult::INCOMPATIBLE_FEATURE,
verifier.VerifyTokenSignature(signed_token, &token));
}
// Set a new signing key, but don't inform the verifier of it yet. When we
// verify, we expect the verifier to complain the key is unknown.
{
{
unique_ptr<TokenSigningPrivateKey> key;
ASSERT_OK(signer.CheckNeedKey(&key));
ASSERT_NE(nullptr, key.get());
ASSERT_OK(signer.AddKey(std::move(key)));
bool has_rotated = false;
ASSERT_OK(signer.TryRotateKey(&has_rotated));
ASSERT_TRUE(has_rotated);
}
SignedTokenPB signed_token = MakeUnsignedToken(WallTime_Now() + 600);
ASSERT_OK(signer.SignToken(&signed_token));
TokenPB token;
ASSERT_EQ(TokenVerificationResult::UNKNOWN_SIGNING_KEY,
verifier.VerifyTokenSignature(signed_token, &token));
}
// Set a new signing key which is already expired, and inform the verifier
// of all of the current keys. The verifier should recognize the key but
// know that it's expired.
{
{
unique_ptr<TokenSigningPrivateKey> tsk;
ASSERT_OK(GenerateTokenSigningKey(100, WallTime_Now() - 1, &tsk));
// This direct access is necessary because AddKey() does not allow to add
// an expired key.
TokenSigningPublicKeyPB tsk_public_pb;
tsk->ExportPublicKeyPB(&tsk_public_pb);
ASSERT_OK(verifier.ImportKeys({tsk_public_pb}));
signer.tsk_deque_.push_front(std::move(tsk));
}
SignedTokenPB signed_token = MakeUnsignedToken(WallTime_Now() + 600);
// Current implementation allows to use an expired key to sign tokens.
ASSERT_OK(signer.SignToken(&signed_token));
TokenPB token;
ASSERT_EQ(TokenVerificationResult::EXPIRED_SIGNING_KEY,
verifier.VerifyTokenSignature(signed_token, &token));
}
}
// Test functionality of the TokenVerifier::ImportKeys() method.
TEST_F(TokenTest, TestTokenVerifierImportKeys) {
TokenVerifier verifier;
// An attempt to import no keys is fine.
ASSERT_OK(verifier.ImportKeys({}));
ASSERT_TRUE(verifier.ExportKeys().empty());
TokenSigningPublicKeyPB tsk_public_pb;
const auto exp_time = WallTime_Now() + 600;
tsk_public_pb.set_key_seq_num(100500);
tsk_public_pb.set_expire_unix_epoch_seconds(exp_time);
string public_key_str_der;
ASSERT_OK(GeneratePublicKeyStrDer(&public_key_str_der));
tsk_public_pb.set_rsa_key_der(public_key_str_der);
ASSERT_OK(verifier.ImportKeys({ tsk_public_pb }));
{
const auto& exported_tsks_public_pb = verifier.ExportKeys();
ASSERT_EQ(1, exported_tsks_public_pb.size());
EXPECT_EQ(tsk_public_pb.SerializeAsString(),
exported_tsks_public_pb[0].SerializeAsString());
}
// Re-importing the same key again is fine, and the total number
// of exported keys should not increase.
ASSERT_OK(verifier.ImportKeys({ tsk_public_pb }));
{
const auto& exported_tsks_public_pb = verifier.ExportKeys();
ASSERT_EQ(1, exported_tsks_public_pb.size());
EXPECT_EQ(tsk_public_pb.SerializeAsString(),
exported_tsks_public_pb[0].SerializeAsString());
}
}
// Test using different token validity intervals.
TEST_F(TokenTest, TestVaryingTokenValidityIntervals) {
constexpr int kShortValiditySeconds = 2;
const int kLongValiditySeconds = kShortValiditySeconds * 3;
auto verifier(make_shared<TokenVerifier>());
TokenSigner signer(kLongValiditySeconds, kShortValiditySeconds, 10, verifier);
unique_ptr<TokenSigningPrivateKey> key;
ASSERT_OK(signer.CheckNeedKey(&key));
ASSERT_NE(nullptr, key.get());
ASSERT_OK(signer.AddKey(std::move(key)));
const TablePrivilegePB table_privilege;
SignedTokenPB signed_authn;
SignedTokenPB signed_authz;
ASSERT_OK(signer.GenerateAuthnToken(kUser, &signed_authn));
ASSERT_OK(signer.GenerateAuthzToken(kUser, table_privilege, &signed_authz));
TokenPB authn_token;
TokenPB authz_token;
ASSERT_EQ(TokenVerificationResult::VALID,
verifier->VerifyTokenSignature(signed_authn, &authn_token));
ASSERT_EQ(TokenVerificationResult::VALID,
verifier->VerifyTokenSignature(signed_authz, &authz_token));
// Wait for the authz validity interval to pass and verify its expiration.
SleepFor(MonoDelta::FromSeconds(1 + kShortValiditySeconds));
EXPECT_EQ(TokenVerificationResult::VALID,
verifier->VerifyTokenSignature(signed_authn, &authn_token));
EXPECT_EQ(TokenVerificationResult::EXPIRED_TOKEN,
verifier->VerifyTokenSignature(signed_authz, &authz_token));
// Wait for the authn validity interval to pass and verify its expiration.
SleepFor(MonoDelta::FromSeconds(kLongValiditySeconds - kShortValiditySeconds));
EXPECT_EQ(TokenVerificationResult::EXPIRED_TOKEN,
verifier->VerifyTokenSignature(signed_authn, &authn_token));
EXPECT_EQ(TokenVerificationResult::EXPIRED_TOKEN,
verifier->VerifyTokenSignature(signed_authz, &authz_token));
}
// Test to check the invariant that all tokens signed within a TSK's activity
// interval must be expired by the end of the TSK's validity interval.
TEST_F(TokenTest, TestKeyValidity) {
SKIP_IF_SLOW_NOT_ALLOWED();
// Note: this test's runtime is roughly the length of a key-validity
// interval, which is determined by the token validity intervals and the key
// rotation interval.
const int kShortValiditySeconds = 2;
const int kLongValiditySeconds = 6;
const int kKeyRotationSeconds = 5;
auto verifier(make_shared<TokenVerifier>());
TokenSigner signer(kLongValiditySeconds, kShortValiditySeconds, kKeyRotationSeconds, verifier);
unique_ptr<TokenSigningPrivateKey> key;
ASSERT_OK(signer.CheckNeedKey(&key));
ASSERT_NE(nullptr, key.get());
ASSERT_OK(signer.AddKey(std::move(key)));
// First, start a countdown for the first TSK's validity interval. Any token
// signed during the first TSK's activity interval must be expired once this
// latch counts down.
vector<thread> threads;
CountDownLatch first_tsk_validity_latch(1);
const double key_validity_seconds = signer.key_validity_seconds_;
threads.emplace_back([&first_tsk_validity_latch, key_validity_seconds] {
SleepFor(MonoDelta::FromSeconds(key_validity_seconds));
LOG(INFO) << Substitute("First TSK's validity interval of $0 secs has finished!",
key_validity_seconds);
first_tsk_validity_latch.CountDown();
});
// Set up a second TSK so our threads can rotate TSKs when the time comes.
while (true) {
KLOG_EVERY_N_SECS(INFO, 1) << "Waiting for a second key...";
unique_ptr<TokenSigningPrivateKey> tsk;
ASSERT_OK(signer.CheckNeedKey(&tsk));
if (tsk) {
LOG(INFO) << "Added second key!";
ASSERT_OK(signer.AddKey(std::move(tsk)));
break;
}
SleepFor(MonoDelta::FromMilliseconds(50));
}
// Utility lambda to check that the token is expired.
const auto verify_expired = [&verifier] (const SignedTokenPB& signed_token,
const string& token_type) {
TokenPB token_pb;
const auto result = verifier->VerifyTokenSignature(signed_token, &token_pb);
const auto expire_secs = token_pb.expire_unix_epoch_seconds();
ASSERT_EQ(TokenVerificationResult::EXPIRED_TOKEN, result)
<< Substitute("validation result '$0': $1 token expires at $2, now $3",
TokenVerificationResultToString(result), token_type,
expire_secs, WallTime_Now());
};
// Create a thread that repeatedly signs new authn tokens, returning the
// final one signed by TSK with seq_num 0. At the end of the key validity
// period, this token will not be valid.
vector<SignedTokenPB> tsks(2);
vector<Status> results(2);
threads.emplace_back([&] {
results[0] = SignUntilRotatePast(&signer,
[&] (SignedTokenPB* signed_token) {
return signer.GenerateAuthnToken(kUser, signed_token);
},
"authn", 0, &tsks[0]);
first_tsk_validity_latch.Wait();
});
// Do the same for authz tokens.
threads.emplace_back([&] {
results[1] = SignUntilRotatePast(&signer,
[&] (SignedTokenPB* signed_token) {
return signer.GenerateAuthzToken(kUser, TablePrivilegePB(), signed_token);
},
"authz", 0, &tsks[1]);
first_tsk_validity_latch.Wait();
});
for (auto& t : threads) {
t.join();
}
EXPECT_OK(results[0]);
EXPECT_OK(results[1]);
NO_FATALS(verify_expired(tsks[0], "authn"));
NO_FATALS(verify_expired(tsks[1], "authz"));
}
} // namespace security
} // namespace kudu
```
|
```xml
<resources>
<dimen name="frames_video_height">60dip</dimen>
</resources>
```
|
```smalltalk
using System;
using System.ComponentModel.DataAnnotations;
namespace Volo.Blogging.Comments.Dtos
{
public class CreateCommentDto
{
public Guid? RepliedCommentId { get; set; }
public Guid PostId { get; set; }
[Required]
public string Text { get; set; }
}
}
```
|
```yaml
bigheader: "Tools"
abstract: "Tools to help you use and enhance Kubernetes."
toc:
- docs/tools/index.md
```
|
```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\Sheets;
class RefreshCancellationStatus extends \Google\Model
{
/**
* @var string
*/
public $errorCode;
/**
* @var string
*/
public $state;
/**
* @param string
*/
public function setErrorCode($errorCode)
{
$this->errorCode = $errorCode;
}
/**
* @return string
*/
public function getErrorCode()
{
return $this->errorCode;
}
/**
* @param string
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return string
*/
public function getState()
{
return $this->state;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RefreshCancellationStatus::class, 'Google_Service_Sheets_RefreshCancellationStatus');
```
|
Qin'an railway station is a railway station of Baoji–Lanzhou High-Speed Railway, Gansu, China.
Stations on the Xuzhou–Lanzhou High-Speed Railway
Railway stations in Gansu
|
```javascript
'use strict';
const common = require('../common');
if (!common.hasCrypto)
common.skip('missing crypto');
const assert = require('assert');
const http2 = require('http2');
const server = http2.createServer();
server.on('stream', common.mustCall((stream) => {
stream.respond();
stream.end();
}));
server.listen(0, common.mustCall(() => {
const client = http2.connect(`path_to_url{server.address().port}`);
const req = client.request();
client.once('connect', common.mustCall());
req.on('response', common.mustCall(() => {
assert.strictEqual(client.listenerCount('connect'), 0);
}));
req.on('close', common.mustCall(() => {
server.close();
client.close();
}));
}));
```
|
```objective-c
////////////////////////////////////////////////////////////////////////////////
//
// B L I N K
//
//
// This file is part of Blink.
//
// Blink is free software: you can redistribute it and/or modify
// (at your option) any later version.
//
// Blink is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
//
// along with Blink. If not, see <path_to_url
//
// In addition, Blink is also subject to certain additional terms under
// GNU GPL version 3 section 7.
//
// You should have received a copy of these additional terms immediately
// which accompanied the Blink Source Code. If not, see
// <path_to_url
//
////////////////////////////////////////////////////////////////////////////////
#import <UIKit/UIKit.h>
@interface BKSecurityConfigurationViewController : UITableViewController
@end
```
|
```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 scalewaytasks
import (
"fmt"
"os"
"strings"
"k8s.io/klog/v2"
"k8s.io/kops/pkg/wellknownservices"
"k8s.io/kops/upup/pkg/fi"
"k8s.io/kops/upup/pkg/fi/cloudup/scaleway"
"k8s.io/kops/upup/pkg/fi/cloudup/terraform"
"k8s.io/kops/upup/pkg/fi/cloudup/terraformWriter"
"github.com/scaleway/scaleway-sdk-go/api/lb/v1"
"github.com/scaleway/scaleway-sdk-go/scw"
)
const LbDefaultType = "LB-S"
// +kops:fitask
type LoadBalancer struct {
Name *string
Type string
Lifecycle fi.Lifecycle
Zone *string
LBID *string
LBAddresses []string
Tags []string
Description string
SslCompatibilityLevel string
// WellKnownServices indicates which services are supported by this resource.
// This field is internal and is not rendered to the cloud.
WellKnownServices []wellknownservices.WellKnownService
}
var _ fi.CompareWithID = &LoadBalancer{}
var _ fi.HasAddress = &LoadBalancer{}
func (l *LoadBalancer) CompareWithID() *string {
return l.LBID
}
// GetWellKnownServices implements fi.HasAddress::GetWellKnownServices.
// It indicates which services we support with this load balancer.
func (l *LoadBalancer) GetWellKnownServices() []wellknownservices.WellKnownService {
return l.WellKnownServices
}
func (l *LoadBalancer) Find(context *fi.CloudupContext) (*LoadBalancer, error) {
cloud := context.T.Cloud.(scaleway.ScwCloud)
lbService := cloud.LBService()
lbResponse, err := lbService.ListLBs(&lb.ZonedAPIListLBsRequest{
Zone: scw.Zone(cloud.Zone()),
Name: l.Name,
}, scw.WithAllPages())
if err != nil {
return nil, fmt.Errorf("getting load-balancer %s: %w", fi.ValueOf(l.LBID), err)
}
if lbResponse.TotalCount != 1 {
return nil, nil
}
loadBalancer := lbResponse.LBs[0]
lbIPs := []string(nil)
for _, IP := range loadBalancer.IP {
lbIPs = append(lbIPs, IP.IPAddress)
}
return &LoadBalancer{
Name: fi.PtrTo(loadBalancer.Name),
LBID: fi.PtrTo(loadBalancer.ID),
Zone: fi.PtrTo(string(loadBalancer.Zone)),
LBAddresses: lbIPs,
Tags: loadBalancer.Tags,
Lifecycle: l.Lifecycle,
WellKnownServices: l.WellKnownServices,
}, nil
}
func (l *LoadBalancer) FindAddresses(context *fi.CloudupContext) ([]string, error) {
// Skip if we're running integration tests
if profileName := os.Getenv("SCW_PROFILE"); profileName == "REDACTED" {
return nil, nil
}
cloud := context.T.Cloud.(scaleway.ScwCloud)
lbService := cloud.LBService()
loadBalancers, err := lbService.ListLBs(&lb.ZonedAPIListLBsRequest{
Zone: scw.Zone(cloud.Zone()),
Name: l.Name,
})
if err != nil {
return nil, err
}
addresses := []string(nil)
for _, loadBalancer := range loadBalancers.LBs {
for _, address := range loadBalancer.IP {
addresses = append(addresses, address.IPAddress)
}
}
return addresses, nil
}
func (l *LoadBalancer) Run(context *fi.CloudupContext) error {
return fi.CloudupDefaultDeltaRunMethod(l, context)
}
func (_ *LoadBalancer) CheckChanges(actual, expected, changes *LoadBalancer) error {
if actual != nil {
if changes.Name != nil {
return fi.CannotChangeField("Name")
}
if changes.LBID != nil {
return fi.CannotChangeField("ID")
}
if changes.Zone != nil {
return fi.CannotChangeField("Zone")
}
} else {
if expected.Name == nil {
return fi.RequiredField("Name")
}
if expected.Zone == nil {
return fi.RequiredField("Zone")
}
}
return nil
}
func (l *LoadBalancer) RenderScw(t *scaleway.ScwAPITarget, actual, expected, changes *LoadBalancer) error {
lbService := t.Cloud.LBService()
if actual != nil {
klog.Infof("Updating existing load-balancer with name %q", fi.ValueOf(expected.Name))
// We update the tags
if changes != nil || len(actual.Tags) != len(expected.Tags) {
_, err := lbService.UpdateLB(&lb.ZonedAPIUpdateLBRequest{
Zone: scw.Zone(fi.ValueOf(actual.Zone)),
LBID: fi.ValueOf(actual.LBID),
Name: fi.ValueOf(actual.Name),
Description: expected.Description,
SslCompatibilityLevel: lb.SSLCompatibilityLevel(expected.SslCompatibilityLevel),
Tags: expected.Tags,
})
if err != nil {
return fmt.Errorf("updatings tags for load-balancer %q: %w", fi.ValueOf(expected.Name), err)
}
}
expected.LBID = actual.LBID
expected.LBAddresses = actual.LBAddresses
} else {
klog.Infof("Creating new load-balancer with name %q", fi.ValueOf(expected.Name))
lbCreated, err := lbService.CreateLB(&lb.ZonedAPICreateLBRequest{
Zone: scw.Zone(fi.ValueOf(expected.Zone)),
Name: fi.ValueOf(expected.Name),
Type: LbDefaultType,
Tags: expected.Tags,
})
if err != nil {
return fmt.Errorf("creating load-balancer: %w", err)
}
_, err = lbService.WaitForLb(&lb.ZonedAPIWaitForLBRequest{
LBID: lbCreated.ID,
Zone: scw.Zone(fi.ValueOf(expected.Zone)),
})
if err != nil {
return fmt.Errorf("waiting for load-balancer %s: %w", lbCreated.ID, err)
}
lbIPs := []string(nil)
for _, ip := range lbCreated.IP {
lbIPs = append(lbIPs, ip.IPAddress)
}
expected.LBID = &lbCreated.ID
expected.LBAddresses = lbIPs
}
return nil
}
type terraformLBIP struct{}
type terraformLoadBalancer struct {
Type string `cty:"type"`
Name *string `cty:"name"`
Description string `cty:"description"`
Tags []string `cty:"tags"`
IPID *terraformWriter.Literal `cty:"ip_id"`
}
func (_ *LoadBalancer) RenderTerraform(t *terraform.TerraformTarget, actual, expected, changes *LoadBalancer) error {
tfName := strings.ReplaceAll(fi.ValueOf(expected.Name), ".", "-")
tfLBIP := terraformLBIP{}
err := t.RenderResource("scaleway_lb_ip", tfName, tfLBIP)
if err != nil {
return err
}
tfLB := terraformLoadBalancer{
Type: LbDefaultType,
Name: expected.Name,
Description: expected.Description,
Tags: expected.Tags,
IPID: terraformWriter.LiteralProperty("scaleway_lb_ip", tfName, "id"),
}
return t.RenderResource("scaleway_lb", tfName, tfLB)
}
func (l *LoadBalancer) TerraformLink() *terraformWriter.Literal {
return terraformWriter.LiteralProperty("scaleway_lb", fi.ValueOf(l.Name), "id")
}
```
|
```objective-c
/*
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY APPLE INC. ``AS IS'' AND ANY
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
* OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef DeprecatedPaintLayerCompositor_h
#define DeprecatedPaintLayerCompositor_h
#include "core/CoreExport.h"
#include "core/layout/compositing/CompositingReasonFinder.h"
#include "platform/graphics/GraphicsLayerClient.h"
#include "wtf/HashMap.h"
namespace blink {
class DeprecatedPaintLayer;
class DocumentLifecycle;
class GraphicsLayer;
class GraphicsLayerFactory;
class IntPoint;
class Page;
class LayoutPart;
class ScrollingCoordinator;
enum CompositingUpdateType {
CompositingUpdateNone,
CompositingUpdateAfterGeometryChange,
CompositingUpdateAfterCompositingInputChange,
CompositingUpdateRebuildTree,
};
enum CompositingStateTransitionType {
NoCompositingStateChange,
AllocateOwnCompositedDeprecatedPaintLayerMapping,
RemoveOwnCompositedDeprecatedPaintLayerMapping,
PutInSquashingLayer,
RemoveFromSquashingLayer
};
// DeprecatedPaintLayerCompositor manages the hierarchy of
// composited Layers. It determines which Layers
// become compositing, and creates and maintains a hierarchy of
// GraphicsLayers based on the Layer painting order.
//
// There is one DeprecatedPaintLayerCompositor per LayoutView.
class CORE_EXPORT DeprecatedPaintLayerCompositor final : public GraphicsLayerClient {
WTF_MAKE_FAST_ALLOCATED(DeprecatedPaintLayerCompositor);
public:
explicit DeprecatedPaintLayerCompositor(LayoutView&);
virtual ~DeprecatedPaintLayerCompositor();
void updateIfNeededRecursive();
// Return true if this LayoutView is in "compositing mode" (i.e. has one or more
// composited Layers)
bool inCompositingMode() const;
// FIXME: Replace all callers with inCompositingMode and remove this function.
bool staleInCompositingMode() const;
// This will make a compositing layer at the root automatically, and hook up to
// the native view/window system.
void setCompositingModeEnabled(bool);
// Returns true if the accelerated compositing is enabled
bool hasAcceleratedCompositing() const { return m_hasAcceleratedCompositing; }
bool preferCompositingToLCDTextEnabled() const;
bool rootShouldAlwaysComposite() const;
// Copy the accelerated compositing related flags from Settings
void updateAcceleratedCompositingSettings();
// Used to indicate that a compositing update will be needed for the next frame that gets drawn.
void setNeedsCompositingUpdate(CompositingUpdateType);
void didLayout();
// Whether layer's compositedDeprecatedPaintLayerMapping needs a GraphicsLayer to clip z-order children of the given Layer.
bool clipsCompositingDescendants(const DeprecatedPaintLayer*) const;
// Whether the given layer needs an extra 'contents' layer.
bool needsContentsCompositingLayer(const DeprecatedPaintLayer*) const;
bool supportsFixedRootBackgroundCompositing() const;
bool needsFixedRootBackgroundLayer(const DeprecatedPaintLayer*) const;
GraphicsLayer* fixedRootBackgroundLayer() const;
void setNeedsUpdateFixedBackground() { m_needsUpdateFixedBackground = true; }
// Issue paint invalidations of the appropriate layers when the given Layer starts or stops being composited.
void paintInvalidationOnCompositingChange(DeprecatedPaintLayer*);
void fullyInvalidatePaint();
DeprecatedPaintLayer* rootLayer() const;
GraphicsLayer* rootGraphicsLayer() const;
GraphicsLayer* frameScrollLayer() const;
GraphicsLayer* scrollLayer() const;
GraphicsLayer* containerLayer() const;
// We don't always have a root transform layer. This function lazily allocates one
// and returns it as required.
GraphicsLayer* ensureRootTransformLayer();
enum RootLayerAttachment {
RootLayerUnattached,
RootLayerAttachedViaChromeClient,
RootLayerAttachedViaEnclosingFrame
};
RootLayerAttachment rootLayerAttachment() const { return m_rootLayerAttachment; }
void updateRootLayerAttachment();
void updateRootLayerPosition();
void setIsInWindow(bool);
static DeprecatedPaintLayerCompositor* frameContentsCompositor(LayoutPart*);
// Return true if the layers changed.
static bool parentFrameContentLayers(LayoutPart*);
// Update the geometry of the layers used for clipping and scrolling in frames.
void frameViewDidChangeLocation(const IntPoint& contentsOffset);
void frameViewDidChangeSize();
void frameViewDidScroll();
void frameViewScrollbarsExistenceDidChange();
void rootFixedBackgroundsChanged();
bool scrollingLayerDidChange(DeprecatedPaintLayer*);
String layerTreeAsText(LayerTreeFlags);
GraphicsLayer* layerForHorizontalScrollbar() const { return m_layerForHorizontalScrollbar.get(); }
GraphicsLayer* layerForVerticalScrollbar() const { return m_layerForVerticalScrollbar.get(); }
GraphicsLayer* layerForScrollCorner() const { return m_layerForScrollCorner.get(); }
void resetTrackedPaintInvalidationRects();
void setTracksPaintInvalidations(bool);
virtual String debugName(const GraphicsLayer*) override;
DocumentLifecycle& lifecycle() const;
bool needsUpdateDescendantDependentFlags() const { return m_needsUpdateDescendantDependentFlags; }
void setNeedsUpdateDescendantDependentFlags() { m_needsUpdateDescendantDependentFlags = true; }
void updatePotentialCompositingReasonsFromStyle(DeprecatedPaintLayer*);
// Whether the layer could ever be composited.
bool canBeComposited(const DeprecatedPaintLayer*) const;
// FIXME: Move allocateOrClearCompositedDeprecatedPaintLayerMapping to CompositingLayerAssigner once we've fixed
// the compositing chicken/egg issues.
bool allocateOrClearCompositedDeprecatedPaintLayerMapping(DeprecatedPaintLayer*, CompositingStateTransitionType compositedLayerUpdate);
void updateDirectCompositingReasons(DeprecatedPaintLayer*);
bool inOverlayFullscreenVideo() const { return m_inOverlayFullscreenVideo; }
private:
#if ENABLE(ASSERT)
void assertNoUnresolvedDirtyBits();
#endif
// GraphicsLayerClient implementation
virtual void paintContents(const GraphicsLayer*, GraphicsContext&, GraphicsLayerPaintingPhase, const IntRect&) override;
virtual bool isTrackingPaintInvalidations() const override;
void updateWithoutAcceleratedCompositing(CompositingUpdateType);
void updateIfNeeded();
void ensureRootLayer();
void destroyRootLayer();
void attachRootLayer(RootLayerAttachment);
void detachRootLayer();
void attachCompositorTimeline();
void detachCompositorTimeline();
void updateOverflowControlsLayers();
Page* page() const;
GraphicsLayerFactory* graphicsLayerFactory() const;
ScrollingCoordinator* scrollingCoordinator() const;
void enableCompositingModeIfNeeded();
bool requiresHorizontalScrollbarLayer() const;
bool requiresVerticalScrollbarLayer() const;
bool requiresScrollCornerLayer() const;
void applyOverlayFullscreenVideoAdjustment();
LayoutView& m_layoutView;
OwnPtr<GraphicsLayer> m_rootContentLayer;
OwnPtr<GraphicsLayer> m_rootTransformLayer;
CompositingReasonFinder m_compositingReasonFinder;
CompositingUpdateType m_pendingUpdateType;
bool m_hasAcceleratedCompositing;
bool m_compositing;
// The root layer doesn't composite if it's a non-scrollable frame.
// So, after a layout we set this dirty bit to know that we need
// to recompute whether the root layer should composite even if
// none of its descendants composite.
// FIXME: Get rid of all the callers of setCompositingModeEnabled
// except the one in updateIfNeeded, then rename this to
// m_compositingDirty.
bool m_rootShouldAlwaysCompositeDirty;
bool m_needsUpdateFixedBackground;
bool m_isTrackingPaintInvalidations; // Used for testing.
bool m_inOverlayFullscreenVideo;
bool m_needsUpdateDescendantDependentFlags;
RootLayerAttachment m_rootLayerAttachment;
// Enclosing container layer, which clips for iframe content
OwnPtr<GraphicsLayer> m_containerLayer;
OwnPtr<GraphicsLayer> m_scrollLayer;
// Enclosing layer for overflow controls and the clipping layer
OwnPtr<GraphicsLayer> m_overflowControlsHostLayer;
// Layers for overflow controls
OwnPtr<GraphicsLayer> m_layerForHorizontalScrollbar;
OwnPtr<GraphicsLayer> m_layerForVerticalScrollbar;
OwnPtr<GraphicsLayer> m_layerForScrollCorner;
};
} // namespace blink
#endif // DeprecatedPaintLayerCompositor_h
```
|
Jasem Al-Dowaila (born 9 March 1963) is a Kuwaiti hurdler. He competed in the 400 metres hurdles at the 1984 Summer Olympics and the 1988 Summer Olympics.
References
External links
1963 births
Living people
Athletes (track and field) at the 1984 Summer Olympics
Athletes (track and field) at the 1988 Summer Olympics
Kuwaiti male hurdlers
Olympic athletes for Kuwait
Place of birth missing (living people)
Asian Games medalists in athletics (track and field)
Asian Games bronze medalists for Kuwait
Athletes (track and field) at the 1986 Asian Games
Medalists at the 1986 Asian Games
20th-century Kuwaiti people
21st-century Kuwaiti people
|
```kotlin
package droidninja.filepicker.models
import android.net.Uri
import android.os.Parcelable
import kotlinx.android.parcel.Parcelize
@Parcelize
class PhotoDirectory(
var id: Long = 0,
var bucketId: String? = null,
private var coverPath: Uri? = null,
var name: String? = null,
var dateAdded: Long = 0,
val medias: MutableList<Media> = mutableListOf()
) : Parcelable {
fun getCoverPath(): Uri? {
return when {
medias.size > 0 -> medias[0].path
coverPath != null -> coverPath
else -> null
};
}
fun setCoverPath(coverPath: Uri?) {
this.coverPath = coverPath
}
fun addPhoto(imageId: Long, fileName: String, path: Uri, mediaType: Int) {
medias.add(Media(imageId, fileName, path, mediaType))
}
override fun equals(other: Any?): Boolean {
return this.bucketId == (other as? PhotoDirectory)?.bucketId
}
override fun hashCode(): Int {
var result = id.hashCode()
result = 31 * result + (bucketId?.hashCode() ?: 0)
result = 31 * result + (coverPath?.hashCode() ?: 0)
result = 31 * result + (name?.hashCode() ?: 0)
result = 31 * result + dateAdded.hashCode()
result = 31 * result + medias.hashCode()
return result
}
}
```
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.