text
stringlengths 1
22.8M
|
|---|
```elixir
defmodule EventStore.ProcessHelper do
import ExUnit.Assertions
@doc """
Stop the given process name or PID with a non-normal exit reason.
"""
def shutdown(name_or_pid)
def shutdown(name) when is_atom(name) do
name |> Process.whereis() |> shutdown()
end
def shutdown(pid) when is_pid(pid) do
ref = Process.monitor(pid)
Process.unlink(pid)
Process.exit(pid, :shutdown)
assert_receive {:DOWN, ^ref, :process, _object, _reason}, 1_000
end
end
```
|
```javascript
/*
Language: OCaml
Author: Mehdi Dogguy <mehdi@dogguy.org>
Contributors: Nicolas Braud-Santoni <nicolas.braud-santoni@ens-cachan.fr>, Mickael Delahaye <mickael.delahaye@gmail.com>
Description: OCaml language definition.
Category: functional
*/
function(hljs) {
/* missing support for heredoc-like string (OCaml 4.0.2+) */
return {
aliases: ['ml'],
keywords: {
keyword:
'and as assert asr begin class constraint do done downto else end ' +
'exception external for fun function functor if in include ' +
'inherit! inherit initializer land lazy let lor lsl lsr lxor match method!|10 method ' +
'mod module mutable new object of open! open or private rec sig struct ' +
'then to try type val! val virtual when while with ' +
/* camlp4 */
'parser value',
built_in:
/* built-in types */
'array bool bytes char exn|5 float int int32 int64 list lazy_t|5 nativeint|5 string unit ' +
/* (some) types in Pervasives */
'in_channel out_channel ref',
literal:
'true false'
},
illegal: /\/\/|>>/,
lexemes: '[a-z_]\\w*!?',
contains: [
{
className: 'literal',
begin: '\\[(\\|\\|)?\\]|\\(\\)',
relevance: 0
},
hljs.COMMENT(
'\\(\\*',
'\\*\\)',
{
contains: ['self']
}
),
{ /* type variable */
className: 'symbol',
begin: '\'[A-Za-z_](?!\')[\\w\']*'
/* the grammar is ambiguous on how 'a'b should be interpreted but not the compiler */
},
{ /* polymorphic variant */
className: 'type',
begin: '`[A-Z][\\w\']*'
},
{ /* module or constructor */
className: 'type',
begin: '\\b[A-Z][\\w\']*',
relevance: 0
},
{ /* don't color identifiers, but safely catch all identifiers with '*/
begin: '[a-z_]\\w*\'[\\w\']*', relevance: 0
},
hljs.inherit(hljs.APOS_STRING_MODE, {className: 'string', relevance: 0}),
hljs.inherit(hljs.QUOTE_STRING_MODE, {illegal: null}),
{
className: 'number',
begin:
'\\b(0[xX][a-fA-F0-9_]+[Lln]?|' +
'0[oO][0-7_]+[Lln]?|' +
'0[bB][01_]+[Lln]?|' +
'[0-9][0-9_]*([Lln]|(\\.[0-9_]*)?([eE][-+]?[0-9_]+)?)?)',
relevance: 0
},
{
begin: /[-=]>/ // relevance booster
}
]
}
}
```
|
```objective-c
/*******************************************************************************
*
* All rights reserved. This program and the accompanying materials
*
* path_to_url
* path_to_url
*
* Contributors:
* Allan Stockdill-Mander - initial API and implementation and/or initial documentation
*******************************************************************************/
#if !defined(MQTTFreeRTOS_H)
#define MQTTFreeRTOS_H
#include "FreeRTOS.h"
#include "FreeRTOS_Sockets.h"
#include "FreeRTOS_IP.h"
#include "semphr.h"
#include "task.h"
typedef struct Timer
{
TickType_t xTicksToWait;
TimeOut_t xTimeOut;
} Timer;
typedef struct Network Network;
struct Network
{
xSocket_t my_socket;
int (*mqttread) (Network*, unsigned char*, int, int);
int (*mqttwrite) (Network*, unsigned char*, int, int);
void (*disconnect) (Network*);
};
void TimerInit(Timer*);
char TimerIsExpired(Timer*);
void TimerCountdownMS(Timer*, unsigned int);
void TimerCountdown(Timer*, unsigned int);
int TimerLeftMS(Timer*);
typedef struct Mutex
{
SemaphoreHandle_t sem;
} Mutex;
void MutexInit(Mutex*);
int MutexLock(Mutex*);
int MutexUnlock(Mutex*);
typedef struct Thread
{
TaskHandle_t task;
} Thread;
int ThreadStart(Thread*, void (*fn)(void*), void* arg);
int FreeRTOS_read(Network*, unsigned char*, int, int);
int FreeRTOS_write(Network*, unsigned char*, int, int);
void FreeRTOS_disconnect(Network*);
void NetworkInit(Network*);
int NetworkConnect(Network*, char*, int);
/*int NetworkConnectTLS(Network*, char*, int, SlSockSecureFiles_t*, unsigned char, unsigned int, char);*/
#endif
```
|
Susanna (sometimes spelled Susannah) Wales, Lady Malet was a British artist.
Biography
Wales was the daughter of Scottish artist James Wales. She appears to have travelled with her father to India in the 1790s, either to Poona or Bombay, before she was married. On 17 September 1799 she married Sir Charles Malet, whom her father had met while working in India. The couple had eight sons and lived at Wilbury House, Wiltshire.
Wales is credited to a portrait of Sir Alexander Malet and his wife Marian Malet, posed in Wilbury House.
Engraver Charles Heath used one of Wales' drawings to create 'The Conclusion of the Cheetah Hunt at Cambay', which appeared in James Forbes' Oriental Memoirs.
References
1780 births
1868 deaths
British women painters
British portrait painters
Wives of baronets
|
Christopher Evelyn Bunting (8 August 1924 β 28 July 2005) was an English cellist. He had an international reputation, and was a highly regarded teacher; he gave first performances of notable cello concertos.
Life
Bunting was born in London in 1924. His father was a civil engineer in India, and an amateur pianist; his mother, also an amateur musician, played cello and piano. He played the piano from age five, and the following year began playing the cello, studying with Ivor James.
He began an engineering course at Bristol University, but abandoned this and studied music at Cambridge University. Studies were interrupted by army service during the Second World War; he finally gained his music degree in 1947. At about this time he studied with Maurice Eisenberg, both in the USA and during Eisenberg's visits to England.
In 1952 he gave a successful debut recital at the Wigmore Hall with pianist Gerald Moore, and soon afterwards travelled to take up a scholarship studying with Pablo Casals in Prades, PyrΓ©nΓ©es-Orientales.
His own teaching was influenced by Casals's detailed analysis of music performed; Bunting came to be regarded as a demanding but inspirational teacher. He was an accomplished pianist, and often played sonatas with his students. For six years from 1963 he taught at the Yehudi Menuhin School. For many years he was professor of cello at the Royal College of Music.
In 1955 at the Cheltenham Music Festival, Bunting gave the first performance of Gerald Finzi's Cello Concerto; he had been involved in its composition. In 1967 he gave the first performance of Alan Rawsthorne's Cello Concerto, and he also gave the first British broadcast performance of Shostakovich's First Cello Concerto.
He acquired an international reputation. He gave duo recitals with pianists Yonty Solomon, Peter Wallfisch and others, and gave master classes. In 1991 he was elected president of the British branch of the European String Teachers' Association. He was appointed MBE in 2000.
From 1994 his performing career ended; he suffered from a spinal condition which was never satisfactorily diagnosed, and was in a wheelchair, but he continued to teach. Bunting died in 2005, aged 80.
He was married and divorced three times. He had a son, Mark, who predeceased him, and a daughter, Philippa.
Compositions and writings
Compositions include a concerto for cello and strings, which he premiered in 1984, a fugue for six cellos, and Elegy for cello and piano. He wrote "A Portfolio of Cello Exercises", and in 1982 he wrote "Essay on the Craft of Cello Playing".
References
English classical cellists
1924 births
2005 deaths
20th-century classical musicians
20th-century English musicians
Musicians from London
Academics of the Royal College of Music
Members of the Order of the British Empire
20th-century British male musicians
20th-century cellists
|
Felipe B. Miranda is a Filipino political scientist and public opinion expert based at the University of the Philippines Diliman (where he holds the rank of professor emeritus). He is a founding fellow and chairperson of Social Weather Stations and Pulse Asia respectively, the Philippines' leading opinion surveying firms.
He also served as chairperson of the Philippine Social Science Council, the umbrella organization of the country's learned societies in the social sciences. Professor Miranda also writes a column for The Philippine Star.
Miranda earned his B.A. Political Science degree from Brandeis University in 1963 and later did graduate work at the University of Chicago (M.A. Political Science, 1968 and was a Ph.D. candidate in the same year).
References
Year of birth missing (living people)
University of Chicago alumni
Academic staff of the University of the Philippines
Filipino political scientists
Living people
|
```ruby
# frozen_string_literal: false
require 'forwardable'
require_relative '../parseexception'
require_relative 'baseparser'
require_relative '../xmltokens'
module REXML
module Parsers
# = Using the Pull Parser
# <em>This API is experimental, and subject to change.</em>
# parser = PullParser.new( "<a>text<b att='val'/>txet</a>" )
# while parser.has_next?
# res = parser.next
# puts res[1]['att'] if res.start_tag? and res[0] == 'b'
# end
# See the PullEvent class for information on the content of the results.
# The data is identical to the arguments passed for the various events to
# the StreamListener API.
#
# Notice that:
# parser = PullParser.new( "<a>BAD DOCUMENT" )
# while parser.has_next?
# res = parser.next
# raise res[1] if res.error?
# end
#
# Nat Price gave me some good ideas for the API.
class PullParser
include XMLTokens
extend Forwardable
def_delegators( :@parser, :has_next? )
def_delegators( :@parser, :entity )
def_delegators( :@parser, :empty? )
def_delegators( :@parser, :source )
def initialize stream
@entities = {}
@listeners = nil
@parser = BaseParser.new( stream )
@my_stack = []
end
def add_listener( listener )
@listeners = [] unless @listeners
@listeners << listener
end
def each
while has_next?
yield self.pull
end
end
def peek depth=0
if @my_stack.length <= depth
(depth - @my_stack.length + 1).times {
e = PullEvent.new(@parser.pull)
@my_stack.push(e)
}
end
@my_stack[depth]
end
def pull
return @my_stack.shift if @my_stack.length > 0
event = @parser.pull
case event[0]
when :entitydecl
@entities[ event[1] ] =
event[2] unless event[2] =~ /PUBLIC|SYSTEM/
when :text
unnormalized = @parser.unnormalize( event[1], @entities )
event << unnormalized
end
PullEvent.new( event )
end
def unshift token
@my_stack.unshift token
end
end
# A parsing event. The contents of the event are accessed as an +Array?,
# and the type is given either by the ...? methods, or by accessing the
# +type+ accessor. The contents of this object vary from event to event,
# but are identical to the arguments passed to +StreamListener+s for each
# event.
class PullEvent
# The type of this event. Will be one of :tag_start, :tag_end, :text,
# :processing_instruction, :comment, :doctype, :attlistdecl, :entitydecl,
# :notationdecl, :entity, :cdata, :xmldecl, or :error.
def initialize(arg)
@contents = arg
end
def []( start, endd=nil)
if start.kind_of? Range
@contents.slice( start.begin+1 .. start.end )
elsif start.kind_of? Numeric
if endd.nil?
@contents.slice( start+1 )
else
@contents.slice( start+1, endd )
end
else
raise "Illegal argument #{start.inspect} (#{start.class})"
end
end
def event_type
@contents[0]
end
# Content: [ String tag_name, Hash attributes ]
def start_element?
@contents[0] == :start_element
end
# Content: [ String tag_name ]
def end_element?
@contents[0] == :end_element
end
# Content: [ String raw_text, String unnormalized_text ]
def text?
@contents[0] == :text
end
# Content: [ String text ]
def instruction?
@contents[0] == :processing_instruction
end
# Content: [ String text ]
def comment?
@contents[0] == :comment
end
# Content: [ String name, String pub_sys, String long_name, String uri ]
def doctype?
@contents[0] == :start_doctype
end
# Content: [ String text ]
def attlistdecl?
@contents[0] == :attlistdecl
end
# Content: [ String text ]
def elementdecl?
@contents[0] == :elementdecl
end
# Due to the wonders of DTDs, an entity declaration can be just about
# anything. There's no way to normalize it; you'll have to interpret the
# content yourself. However, the following is true:
#
# * If the entity declaration is an internal entity:
# [ String name, String value ]
# Content: [ String text ]
def entitydecl?
@contents[0] == :entitydecl
end
# Content: [ String text ]
def notationdecl?
@contents[0] == :notationdecl
end
# Content: [ String text ]
def entity?
@contents[0] == :entity
end
# Content: [ String text ]
def cdata?
@contents[0] == :cdata
end
# Content: [ String version, String encoding, String standalone ]
def xmldecl?
@contents[0] == :xmldecl
end
def error?
@contents[0] == :error
end
def inspect
@contents[0].to_s + ": " + @contents[1..-1].inspect
end
end
end
end
```
|
Leonardo da Vinci: Flights of the Mind is a 2004 biography of Leonardo da Vinci by Charles Nicholl.
Description
The book researches the life of Leonardo da Vinci in Tuscane and explores the reasons of his historic success. The author's main observation is that most of Leonardo's work was unfinished. Through a thorough research, the author dismisses most of the romanticized facts about da Vinci and concludes that a lot is unknown about the genius inventor. Leonardo is described as an engineer obsessed with natural designs. Washington Post writer Alexander Nagel criticized Nicholl's technical analysis of the inventor's paintings that lack insight and misses an opportunity to push deeper into the mind of Leonardo.
The author retranslates many of Leonardo's mirrorscript writings. Some guesswork is admittedly thrown in this biography: an old woman visiting Leonardo in 1493 becomes his mother; Freudian concepts are used to explain his probable homosexuality (Joseph missing from his representations of the Holy Family); His stay in jail is linked to his plans to reverse engineer locks... The author also argues that Leonardo's obsession with flying devices comes from his alchemical quest for a levitation technology.
David Gelernter criticized his interpretations around the hypothetical encounter of Michelangelo and Leonardo.
The release of Leonardo da Vinci: Flights of the Mind coincided with the release of another Leonardo biography, Leonardo by Martin Kemp.
Release details
2004, United States, Viking Adult , Pub date 18 November 2004, Hardcover
2005, United States, Penguin , 29 November 2005, Paperback
References
External links
Leonardo da Vinci: The Flights of the Mind on the Internet Archive
2004 non-fiction books
Biographies about artists
Works about Leonardo da Vinci
|
```swift
//
// ViewController.swift
// Fusuma
//
// Created by ytakzk on 01/31/2016.
//
import UIKit
class ViewController: UIViewController, FusumaDelegate {
@IBOutlet weak var imageView: UIImageView!
@IBOutlet weak var showButton: UIButton!
@IBOutlet weak var fileUrlLabel: UILabel!
override func viewDidLoad() {
super.viewDidLoad()
showButton.layer.cornerRadius = 2.0
fileUrlLabel.text = ""
}
@IBAction func showButtonPressed(_ sender: AnyObject) {
// Show Fusuma
let fusuma = FusumaViewController()
fusuma.delegate = self
fusuma.cropHeightRatio = 1.0
fusuma.allowMultipleSelection = false
fusuma.availableModes = [.library, .video, .camera]
fusuma.photoSelectionLimit = 4
fusumaSavesImage = true
present(fusuma, animated: true, completion: nil)
}
// MARK: FusumaDelegate Protocol
func fusumaImageSelected(_ image: UIImage, source: FusumaMode) {
switch source {
case .camera:
print("Image captured from Camera")
case .library:
print("Image selected from Camera Roll")
default:
print("Image selected")
}
imageView.image = image
}
func fusumaMultipleImageSelected(_ images: [UIImage], source: FusumaMode) {
print("Number of selection images: \(images.count)")
var count: Double = 0
for image in images {
DispatchQueue.main.asyncAfter(deadline: .now() + (3.0 * count)) {
self.imageView.image = image
print("w: \(image.size.width) - h: \(image.size.height)")
}
count += 1
}
}
func fusumaImageSelected(_ image: UIImage, source: FusumaMode, metaData: ImageMetadata) {
print("Image mediatype: \(metaData.mediaType)")
print("Source image size: \(metaData.pixelWidth)x\(metaData.pixelHeight)")
print("Creation date: \(String(describing: metaData.creationDate))")
print("Modification date: \(String(describing: metaData.modificationDate))")
print("Video duration: \(metaData.duration)")
print("Is favourite: \(metaData.isFavourite)")
print("Is hidden: \(metaData.isHidden)")
print("Location: \(String(describing: metaData.location))")
}
func fusumaVideoCompleted(withFileURL fileURL: URL) {
print("video completed and output to file: \(fileURL)")
self.fileUrlLabel.text = "file output to: \(fileURL.absoluteString)"
}
func fusumaDismissedWithImage(_ image: UIImage, source: FusumaMode) {
switch source {
case .camera:
print("Called just after dismissed FusumaViewController using Camera")
case .library:
print("Called just after dismissed FusumaViewController using Camera Roll")
default:
print("Called just after dismissed FusumaViewController")
}
}
func fusumaCameraRollUnauthorized() {
print("Camera roll unauthorized")
let alert = UIAlertController(title: "Access Requested",
message: "Saving image needs to access your photo album",
preferredStyle: .alert)
alert.addAction(UIAlertAction(title: "Settings", style: .default) { (action) -> Void in
if let url = URL(string: UIApplication.openSettingsURLString) {
UIApplication.shared.openURL(url)
}
})
alert.addAction(UIAlertAction(title: "Cancel", style: .cancel) { (action) -> Void in
})
guard let vc = UIApplication.shared.delegate?.window??.rootViewController, let presented = vc.presentedViewController else {
return
}
presented.present(alert, animated: true, completion: nil)
}
func fusumaClosed() {
print("Called when the FusumaViewController disappeared")
}
func fusumaWillClosed() {
print("Called when the close button is pressed")
}
}
```
|
```rust
/*
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
use std::sync::Arc;
use indexedlog::index::InsertKey;
use indexedlog::index::InsertValue;
use indexedlog::index::OpenOptions;
use minibench::bench;
use minibench::elapsed;
use minibench::measure;
use minibench::Measure;
use rand_chacha::rand_core::RngCore;
use rand_chacha::rand_core::SeedableRng;
use rand_chacha::ChaChaRng;
use tempfile::tempdir;
const N: usize = 204800;
/// Generate random buffer
fn gen_buf(size: usize) -> Vec<u8> {
let mut buf = vec![0u8; size];
ChaChaRng::seed_from_u64(0).fill_bytes(buf.as_mut());
buf
}
/// Default open options: 4K checksum chunk
fn open_opts() -> OpenOptions {
let mut open_opts = OpenOptions::new();
open_opts.checksum_chunk_size_logarithm(12);
open_opts
}
fn main() {
bench("index insertion (owned key)", || {
let dir = tempdir().unwrap();
let mut idx = open_opts().open(dir.path().join("i")).expect("open");
let buf = gen_buf(N * 20);
elapsed(move || {
for i in 0..N {
idx.insert(&&buf[20 * i..20 * (i + 1)], i as u64)
.expect("insert");
}
})
});
bench("index insertion (referred key)", || {
let dir = tempdir().unwrap();
let buf = gen_buf(N * 20);
let mut idx = open_opts()
.key_buf(Some(Arc::new(buf.clone())))
.open(dir.path().join("i"))
.expect("open");
elapsed(move || {
for i in 0..N {
idx.insert(&&buf[20 * i..20 * (i + 1)], i as u64)
.expect("insert");
}
})
});
bench("index flush", || {
let dir = tempdir().unwrap();
let mut idx = open_opts().open(dir.path().join("i")).expect("open");
let buf = gen_buf(N * 20);
for i in 0..N {
idx.insert(&&buf[20 * i..20 * (i + 1)], i as u64)
.expect("insert");
}
elapsed(|| {
idx.flush().expect("flush");
})
});
{
let dir = tempdir().unwrap();
let mut idx = open_opts().open(dir.path().join("i")).expect("open");
let buf = gen_buf(N * 20);
for i in 0..N {
idx.insert(&&buf[20 * i..20 * (i + 1)], i as u64)
.expect("insert");
}
bench("index lookup (memory)", || {
elapsed(|| {
for i in 0..N {
idx.get(&&buf[20 * i..20 * (i + 1)]).expect("lookup");
}
})
});
bench("index prefix scan (2B)", || {
elapsed(|| {
for _ in 0..(N / 3) {
idx.scan_prefix([0x33, 0x33]).unwrap().count();
}
})
});
bench("index prefix scan (1B)", || {
elapsed(|| {
for _ in 0..(N / 807) {
idx.scan_prefix([0x33]).unwrap().count();
}
})
});
}
{
let dir = tempdir().unwrap();
let mut idx = open_opts()
.checksum_enabled(false)
.open(dir.path().join("i"))
.expect("open");
let buf = gen_buf(N * 20);
for i in 0..N {
idx.insert(&&buf[20 * i..20 * (i + 1)], i as u64)
.expect("insert");
}
idx.flush().expect("flush");
bench("index lookup (disk, no verify)", || {
elapsed(|| {
for i in 0..N {
idx.get(&&buf[20 * i..20 * (i + 1)]).expect("lookup");
}
})
});
bench("index prefix scan (2B, disk)", || {
elapsed(|| {
for _ in 0..(N / 3) {
idx.scan_prefix([0x33, 0x33]).unwrap().count();
}
})
});
bench("index prefix scan (1B, disk)", || {
elapsed(|| {
for _ in 0..(N / 807) {
idx.scan_prefix([0x33]).unwrap().count();
}
})
});
}
bench("index lookup (disk, verified)", || {
let dir = tempdir().unwrap();
let mut idx = open_opts().open(dir.path().join("i")).expect("open");
let buf = gen_buf(N * 20);
for i in 0..N {
idx.insert(&&buf[20 * i..20 * (i + 1)], i as u64)
.expect("insert");
}
idx.flush().expect("flush");
elapsed(move || {
for i in 0..N {
idx.get(&&buf[20 * i..20 * (i + 1)]).expect("lookup");
}
})
});
bench("index size (5M owned keys)", || {
const N: usize = 5000000;
let dir = tempdir().unwrap();
let mut idx = open_opts().open(dir.path().join("i")).expect("open");
let buf = gen_buf(N * 20);
for i in 0..N {
idx.insert(&&buf[20 * i..20 * (i + 1)], i as u64)
.expect("insert");
}
measure::Bytes::measure(|| idx.flush().unwrap())
});
bench("index size (5M referred keys)", || {
const N: usize = 5000000;
let dir = tempdir().unwrap();
let buf = gen_buf(N * 20);
let mut idx = open_opts()
.key_buf(Some(Arc::new(buf.clone())))
.open(dir.path().join("i"))
.expect("open");
for i in 0..N {
let ext_key = InsertKey::Reference((i as u64 * 20, 20));
idx.insert_advanced(ext_key, InsertValue::Prepend(i as u64))
.expect("insert");
}
measure::Bytes::measure(|| idx.flush().unwrap())
});
}
```
|
Pallavi Anu Pallavi is a 1983 Indian Kannada-language romantic drama film written and directed by Mani Ratnam in his debut. The film stars Anil Kapoor, Lakshmi, and Kiran Vairale. It revolves around a young man falling in love with a slightly older woman. The music was composed by Ilaiyaraaja, while cinematography was handled by Balu Mahendra. The film is also Kapoor's debut in Kannada cinema.
Pallavi Anu Pallavi was released on 7 January 1983 to critical acclaim. However, the film was an average grosser at the box office, performing well in bigger cities but not so well in smaller towns and villages. The film won in three categories at the Karnataka State Film Awards: Best Screenplay for Ratnam, Best Cinematographer for Balu Mahendra and Best Dialogue for R. N. Jayagopal.
Plot
Having pledged his love for college girl Madhu, Vijay finds himself entwined in a close friendship with Anu, a married woman separated from her husband. Vijay grapples with the definition of love, treading the fine line between trust and attraction, amidst tremendous societal pressure. He is confused about his feelings for Anu, yet wants Madhu as his life partner. Amid all this is his youthful streak of rebellion, ready to take on the world despite the society's extreme reaction, which creates more grief than good.
Cast
Anil Kapoor as Vijay
Lakshmi as Anu
Kiran Vairale as Madhu
Vikram Makandar as Kumar
Master Rohith Srinath as Harsha,Anu and Kumar's son
Sundar Raj
Production
After completing his MBA and beginning work as a management consultant, Mani Ratnam was keen to enter the film industry and thus accepted the invitation of his friends Ravishankar and Raman (the sons of director B. R. Panthulu and musician S. Balachander respectively) to co-write the script of a Kannada film they were making, titled Bangarada Gani. Featuring Vishnuvardhan, Lakshmi, Ambareesh and Roja Ramani, the film was never completed and was later shelved. Ratnam then decided to branch out as a director himself and wrote a script entirely in English, during a single month in 1980.
With the script of the film which he intended to make in Tamil, Ratnam first met Kamal Haasan to play the protagonist, after his friend Kitty arranged a meeting with the actor. Haasan demanded major changes to the script if he were to play the lead role, and introduced Ratnam to his brother Charuhasan, who pledged to help find the script a producer. Ratnam revealed that he was open to the idea of selling the script to a popular director so that he could learn about filmmaking during the production process, but his meetings with K. Balachander, Bharathiraja and Mahendran were not successful. Haasan had later claimed that he was unable to work in Pallavi Anu Pallavi due to his commitment to Raja Paarvai (1981) and around the same time "also getting into Hindi films".
Ratnam subsequently met several producers. The script was rejected by over twenty studios, including Rajkannu of Sri Amman Creations and Gowri Shankar of Devi Films. Subsequently, Ratnam's uncle Krishnamurthy and T. Govindarajan of Venus Films agreed to finance the film under the condition that he made it as a low-budget Kannada film. While P. C. Sreeram was his original choice for cinematography, the producers insisted on an established cinematographer. Ratnam then approached Balu Mahendra. Ratnam also convinced B. Lenin (who was incidentally his neighbour), to work as the editor, since he had been impressed with his editing of Mahendran's Uthiripookkal (1979). Thota Tharani who happened to meet Ratnam during the shoot of Raja Paarvai, which the director had gone to watch, joined the team next.
While selecting the cast, Ratnam approached Lakshmi, with whom he had worked during the making of Bangarada Gani to portray the lead character with whom the younger man falls in love. Lakshmi was a well-established star at the time, and her coming on board, prompted Krishnamurthy to agree to financing the film. Anil Kapoor was chosen to portray the male protagonist after Ratnam was impressed with his performance in the Telugu film Vamsa Vruksham (1980). Kapoor also helped bring Kiran Vairale on board when Suhasini turned down the role. Rohit, the son of Srinath, was a child actor in the film and appeared in Ratnam's first shot.
Ratnam did not know Kannada before directing the film but learned it "on the job", as he extensively researched literature for the script at the USIS and British Council offices in Chennai. With the help of his associate Shivanand, he was able to convert the English dialogues into Kannada and help Kapoor and Kiran Vairale perform to their respective lines, in a language unfamiliar to them. The film was shot in Coorg and Bangalore, close to Venus Films' distribution centre in the city. Towards the end of production, the film ran into financial difficulties and it took twenty one months to finish the final three days of the shoot, owing to call-sheet conflicts.
Soundtrack
Ilaiyaraaja composed the score and soundtrack, the lyrics for which were written by R. N. Jayagopal. In his biographical book Conversations with Mani Ratnam, Ratnam revealed that Balu Mahendra introduced him to Ilaiyaraaja. Ratnam told Ilaiyaraaja that he was doing a Kannada film with a very small budget but wanted him to compose the music, while also confessing that he could not afford to pay the latter's market price. Ilaiyaraaja agreed to work for one-fifth the amount he was getting at the time. The composer would go on to collaborate with the director for nine more films, including acclaimed Tamil films like Mouna Ragam (1986), Nayakan (1987), Agni Natchathiram (1988), Anjali (1990) and Thalapathi (1991).
Release
Pallavi Anu Pallavi was released on 7 January 1983. The film experienced moderate success at the box office, performing well in bigger cities but not so well in smaller towns and villages.
Awards
1982β83 Karnataka State Film Awards
Best ScreenplayΒ β Mani Ratnam
Best CinematographerΒ β Balu Mahendra
Best DialogueΒ β R. N. Jayagopal
Legacy
Pallavi Anu Pallavi was dubbed in Telugu with same title and in Tamil language as Priya oh Priya. Idea Cellular has used the tune of Naguva Nayana as their theme music for the advertisements.
References
Bibliography
External links
1983 films
1980s Kannada-language films
Films directed by Mani Ratnam
Indian romantic drama films
1983 romantic drama films
Sexuality and age in fiction
Films scored by Ilaiyaraaja
Films set in Bangalore
1983 directorial debut films
|
Vandal may refer to the following ships:
, British submarine launched in 1942 and lost in 1943
, Russian diesel-powered tanker launched in 1903
Ship names
|
```java
package com.journaldev.mockito.staticmethod;
import static org.testng.Assert.assertFalse;
import static org.testng.Assert.assertTrue;
import static org.mockito.Mockito.*;
import org.powermock.api.mockito.PowerMockito;
import org.powermock.core.classloader.annotations.PrepareForTest;
import org.powermock.modules.testng.PowerMockTestCase;
import org.testng.annotations.Test;
@PrepareForTest(Utils.class)
public class TestNGPowerMockitoStaticTest extends PowerMockTestCase{
@Test
public void test_static_mock_methods() {
PowerMockito.mockStatic(Utils.class);
when(Utils.print("Hello")).thenReturn(true);
when(Utils.print("Wrong Message")).thenReturn(false);
assertTrue(Utils.print("Hello"));
assertFalse(Utils.print("Wrong Message"));
PowerMockito.verifyStatic(Utils.class);
Utils.print("Hello");
PowerMockito.verifyStatic(Utils.class, times(2));
Utils.print(anyString());
}
}
```
|
The 2008 season was the Kansas City Chiefs' 39th in the National Football League (NFL), their 49th overall, and their third and final season under head coach Herm Edwards at the helm. The Chiefs failed to improve on their 4β12 record from 2007 with the youngest team in the NFL as part of their "youth movement". The season turned out to be the worst in the franchise's history at the time, by tallying 13 losses for the first time ever. The Chiefs' record tied with the St. Louis Rams where they stood 2β14.
The Chiefs' 2008 season began with a 1β10 record, with the franchise losing 19 of 20 games over a two-year period. The team lost seven games by 7 points or less, two games by 24-point margins, suffered a 34β0 shutout to the Carolina Panthers, and allowed a franchise-high 54 points against the Buffalo Bills. Following a 22β21 loss to the Chargers, a game in which Kansas City allowed two touchdowns and lost an 11-point lead in the game's final minutes, Chiefs owner Clark Hunt announced the resignation of General Manager/Vice President/CEO Carl Peterson effective at the end of the season. The Chiefs suffered instability on offense with rotation at the quarterback position and offensive gameplans, and also on defense after trading DE Jared Allen to the Minnesota Vikings. After trading Allen, who led the NFL in sacks in 2007, the Chiefs got 10 sacks on the season, setting a new NFL record for fewest sacks in a 16-game season.
The Chiefs reorganized their offense to focus around quarterback Brodie Croyle, but his season-ending injury in Week 7 led to a new spread offense gameplan focused around Tyler Thigpen. His passer rating climbed from 44.3 to 76.9 in the five games following his initial start at Atlanta. The Chiefs scored more than 10 points just twice in their first six games, but scored more offensive points than that in every game since, and twice topped 25 points. The Chiefs won their first game with the new offense against the Raiders in Week 13.
The season was the twelfth and final season in Kansas City for long-time Chiefs tight end Tony Gonzalez, who was traded to the Atlanta Falcons after the season.
Offseason
Beginning with the 2008 season, the team's Lamar Hunt/American Football League tribute patch which was introduced in the 2007 season became a permanent part of the Chiefs' uniform.
Coaching and roster changes
Following the Chiefs loss to the New York Jets in the 2007 season finale, general manager Carl Peterson announced that both he and head coach Herman Edwards would return to the Chiefs in 2008. However, team chairman Clark Huntβwho took over leadership of the Chiefs in late 2006 after the death of his father, team founder Lamar Huntβdeclined to immediately comment on Peterson's status. Hunt spoke out weeks later and stated that the Chiefs were his "No. 1 priority" and that "to have the best chance of success in 2008, having Carl here makes a lot of sense." Hunt wanted to avoid having a new general manager come in with a new head coach, and starting from scratch again. Edwards and Peterson were considered to be on the hot seat by the press, but inside the team, both were considered to be safe unless absolutely zero progress was made in 2008. Clark Hunt had expressed his expectations of a winning Chiefs team earning a playoff berth in 2008.
On January 1, the Chiefs fired offensive coordinator Mike Solari after two unproductive seasons.
Offensive line coach John Matsko, receivers coach Charlie Joiner and running backs coach James Saxon were fired as well after a season in which the Chiefs were among the worst offensive teams in the NFL. Tight ends coach Jon Embree and assistant head coach/quarterbacks coach Dick Curl were the only offensive assistants who were retained.
For offensive coordinator, the Chiefs interviewed Chan Gailey, Paul Hackett, Eric Price, Mike Shula, and Jim Fassel. Both Shula and Gailey were interviewed twice. Gailey was hired on January 16. Price was later added as the team's wide receivers coach.
In addition to Gailey, the Chiefs added Bob Bicknell as their offensive line coach, and Joe D'Alessandris assistant offensive line coach. Curtis Modkins, from Gailey's staff at Georgia Tech, was added as the team's running backs coach.
By releasing several veteran players, the Chiefs began their youth movement. Overall, the 2008 Chiefs were the NFL's youngest at an average of 25.9 years of age. They had the youngest starting lineup at 25.5.
Free agency
The Chiefs had 9 unrestricted free agents heading into the 2008 off-season.
Additions
In February, Kansas City claimed OT Anthony Alabi off waivers from the Miami Dolphins. Kansas City also agreed to two-year contracts with K Nick Novak, S Erick Harris, DT T.J. Jackson, CB Chad Johnson, OT Joe Lobdell, and G Rob Smith.
In March, Kansas City claimed FB Oliver Hoyte off waivers from the Dallas Cowboys. The team also signed free agent LB Demorrio Williams, and WR Devard Darling.
In April, Kansas City signed KR B.J. Sams, TE John Paul Foschi and C Wade Smith.
In May, the Chiefs signed a total of 23 undrafted free agents. and cornerbacks Will Poole and Jason Horton.
In August, the Chiefs signed K Jay Feely but released him the following day.
In September, the Chiefs signed QB Ingle Martin following an injury to Brodie Croyle.
In October, the Chiefs re-signed K Connor Barth, who was released at the beginning of the season at the 53-man roster deadline. Kansas City also signed QB Quinn Gray following a season-ending injury to starting QB Brodie Croyle. A slew of injuries to the Chiefs' starting lineup in October and November made the team sign several players in order to fill holes.
Departures
In February, the Chiefs released WR Eddie Kennison, OT John Welbourn, RB Gilbert Harris, DE Khreem Smith, CB Ty Law, LB Kendrell Bell, TE Jason Dunn, DT James Reed, and OT Chris Bober. After attempting to trade him for the second consecutive year, the Chiefs released FS Greg Wesley in July. In October, Kansas City released LB Napoleon Harris, and K Nick Novak.
Failed signings
The Chiefs were as aggressive as NFL rules allowed them to be in pursuing of C Jeff Faine and K Josh Brown, both of whom signed with teams on the first day of free agency. NFL rules prohibit teams from contacting prospective free agents or their agents until free agency begins. In 2008, that time was 11Β p.m. on February 28. "There were probably some deals done before (the start of the league year)", Edwards said when asked why the Chiefs didn't get in the game with either player. "We didn't cheat. We abided by the rules. That's how you're supposed to do it, and that's what we did."
Entering the season, the Chiefs were unsure if injury-prone Brodie Croyle could be their quarterback of the future. Following the season-ending injury to QB Croyle, the Chiefs contacted recently retired QB Daunte Culpepper and free agent QB Bruce Gradkowski. Culpepper acted as his own agent and asked for "preposterous" contract terms, which caused many teams to cancel talks, including Kansas City. Culpepper agreed to meet with the Chiefs on October 28 for a physical and face-to-face negotiations but canceled the meeting in favor of other opportunities with the NFL.
Jared Allen trade
In February, the Chiefs placed the franchise tag on DE Jared Allen to prevent him from hitting the free agent market before the teams agree on a long-term deal. In April, reports surfaced detailing a proposed trade between Kansas City and the Minnesota Vikings which would send Allen to Minnesota in exchange for additional selections in the 2008 NFL Draft. Other teams that had contacted Allen's agent include the Tampa Bay Buccaneers and the Jacksonville Jaguars. The Philadelphia Eagles also proposed a trade with Kansas City. Allen was not tagged as an exclusive rights franchise player and had the right to visit and negotiate with other teams.
Chiefs general manager Carl Peterson's relationship with Allen had been strained ever since Peterson, in the wake of Allen's DUI convictions, described him as "a young man at risk." Allen, who could be suspended for a season if he has another alcohol-related episode, had said he would not negotiate with Kansas City if he did not get a contract done by July 2009. Allen had previously voiced his wish to stay with the Chiefs.
On April 22, the Chiefs and Vikings reached an agreement on a trade package, and at roughly the same time, Allen reached an agreement in principle on a contract with the Vikings. Upon reaching the contract agreement, Allen headed to the airport and left for Minnesota.
Sources said the Vikings included a second third-round pick (No. 73) in the 2008 draft to get the deal done. They had been offering a No. 1 pick (17th in the first round) and a No. 3 (No. 82). The teams also swapped spots in the sixth round with the Vikings getting a better spot in the sixth round, sources said.
Draft
The Chiefs chose fifth overall in the 2008 NFL Draft. A coin flip held at the NFL Scouting Combine determined the tie-breaker between the Chiefs, Falcons, and Raiders. The Chiefs had a league-high 13 selections heading into the draft.
Kansas City was interested in defensive end Chris Long following the departure of Jared Allen, but ended up with Glenn Dorsey after he slipped to #5 overall. Kansas City had Dorsey rated higher than Long, despite not having an immediate need at the position. Regardless of concern from NFL scouts about a previous leg injury to Dorsey which may cause him to get surgery in the near future, Kansas City selected Dorsey fifth overall. Dorsey and OT Branden Albert, Kansas City's other first-round selection, were considered by some to be the best players in the entire Draft.
Several analysts considered Kansas City to have made the best draft selections of any team. Kansas City also received the largest rookie pool to pay their 12 rookies, with a sum of $8,221,790, due in part to their two selections in the top 15 of the NFL Draft.
Notes:
Obtained Minnesota's first round selection (#17), and two third round selections (#73, #82) in exchange for DE Jared Allen. The teams also swapped sixth round selections (Kansas City moved from #187 to #182).
Obtained Miami's fifth round selection (#136) in exchange for QB Trent Green. The selection was later traded to Detroit.
Obtained Tampa Bay's sixth round selection (#187) in exchange for RB Michael Bennett. The selection was later swapped with Minnesota.
Obtained New York's seventh round selection (#239) in exchange for K Lawrence Tynes.
(Draft day trade) Obtained Detroit's first round selection (#15) and third round selection (#76) in exchange for the Chiefs' first round selection (#17), third round selection (#66) and fifth round selection (#136).
Roster
Staff
Preseason
Training camp
The Chiefs departed for training camp at the University of WisconsinβRiver Falls on July 24 and broke camp on August 15. The 2008 training camp session marked the Chiefs' 18th season in River Falls, Wisconsin. Prior to the start of the season, Kansas City named Patrick Surtain, Pat Thomas, Brian Waters, and Jon McGraw as team captains.
Exhibition games
The Chiefs played the Chicago Bears on August 7 and their offense was very consistent. They won the game 24β20 and had their first victory in the pre-season since August 2006. The team lost to the Arizona Cardinals by a score of 27β17 at Arrowhead Stadium on August 16. The Chiefs were shut out by the Miami Dolphins at Dolphin Stadium by a score of 24β0 on August 23. Kansas City played its final pre-season game against the St. Louis Rams on August 28 at Arrowhead Stadium for the Missouri Governor's Cup. The Chiefs won the game 21β17.
Schedule
Game summaries
Week 1: at Chicago Bears
Week 2: vs. Arizona Cardinals
Week 3: at Miami Dolphins
Week 4: vs. St. Louis Rams
Regular season
Schedule
The 2008 NFL season schedule was released on April 15. The Chiefs were reportedly one of the four teams being considered to play an international regular season game in London in 2008. Among the Chiefs, the Tampa Bay Buccaneers, New Orleans Saints, and Seattle Seahawks were in consideration. The Chargers and Saints were later chosen instead.
Note: Intra-division opponents are in bold text.
Game summaries
Week 1: at New England Patriots
The Chiefs played the defending AFC Champion New England Patriots, and were 16 Β½-point underdogs entering the game. With 7:20 left in the first quarter, safety Bernard Pollard hit quarterback Tom Brady in his left leg. Brady went down, clutching his left knee and would not return to play in the game. Backup quarterback Matt Cassel entered the game, and his first pass of the game went 51Β yards to wide receiver Randy Moss. Cassel continued to excel as he was 5β6 on the drive. It ended on a 10-yard touchdown pass to Moss, giving the heavily favored Patriots the early lead in the second quarter. Five drives later the Chiefs got on the scoreboard after a 13-play drive that ended on a 40-yard field goal from kicker Nick Novak. However, New England replied with their second touchdown of the day, this time a 5-yard run by running back Sammy Morris. Chiefs quarterback Brodie Croyle was hurt when he was sacked and slammed to the turf on his shoulder. With around 50Β seconds on the clock and down by a touchdown in the fourth quarter, the Chiefs had the ball near the Patriots goal line. Kansas City had a chance to score but Dwayne Bowe dropped a pass in the end zone on fourth down, resulting in a Patriots victory. The loss also gave them a franchise-worst 10-straight losses, dating back to last season. Croyle tried to throw on the sideline, but immediately indicated he was through for the day. Damon Huard substituted for Croyle and had the Chiefs on the 5-yard line when they ran out of downs. The Patriots won the game 17β10, and the Chiefs fell to an 0β1 start.
Week 2: vs. Oakland Raiders
Hoping to rebound from their tough road loss to the Patriots, the Chiefs hosted their AFC West rival, the Oakland Raiders. In the first quarter, Kansas City trailed early as Raiders kicker Sebastian Janikowski got a 56-yard and a 25-yard field goal. Chiefs quarterback Damon Huard suffered a neck injury in the first quarter and Tyler Thigpen substituted as quarterback for the remainder of the game. Huard was in for Kansas City's first two series, but didn't return after throwing an interception late in the second quarter. Marques Hagans, who was listed on the Chiefs' roster as a wide receiver, checked in as quarterback for several draw plays. The Chiefs announced at the end of the third quarter that Huard sustained "mild head trauma," a move deemed controversial as Huard never sought medical attention in the following days.
Under Thigpen, the Chiefs' offense struggled to move the ball down the field. In using three quarterbacks, the Chiefs had only 65 net yards at halftime. Raiders RB Darren McFadden got a 19-yard TD run in the third quarter. Oakland increased its lead with Janikowski nailing a 40-yard field goal in the fourth quarter. The Chiefs would respond with rookie QB Tyler Thigpen completing a 2-yard TD pass to TE Tony Gonzalez, Kansas City executed a two-point conversion pass to rookie FB Mike Cox to make them within 8 points with just over five minutes remaining. The Chiefs' two-point conversion was the team's first in two years. Kansas City lost its opportunity to tie the game as the Raiders pulled away with RB Michael Bush getting a 32-yard TD run.
The Chiefs' defense allowed the third-highest total yards on offense in franchise history. JaMarcus Russell completed only 6 of 17 passes for 55Β yards and led the Raiders to a 15-point victory. Following the game, Chiefs RB Larry Johnson voiced his displeasure with the Chiefs' offense and his role with the team. With the loss, the Chiefs fell to an 0β2 record for the third consecutive year. Kansas City's 11-game losing streak (2007β2008) is the longest in franchise history. The Chiefs also lost their second consecutive game to the Raiders for the first time since 2001.
Week 3: at Atlanta Falcons
Trying to snap a two-game losing skid, the Chiefs played a Week 3 interconference duel against the Atlanta Falcons. With Damon Huard still recovering, second-year quarterback Tyler Thigpen was given the start.
In the first quarter, Kansas City's struggled as Falcons RB Michael Turner got a 4-yard TD run, along with QB Matt Ryan completing a 70-yard TD pass to WR Roddy White. In the second quarter, Atlanta increased its lead with kicker Jason Elam getting a 27-yard field goal, along with Turner's 1-yard TD run. The Chiefs would close out the first half with Thigpen completing a 15-yard TD pass to WR Dwayne Bowe.
In the third quarter, Kansas City closed in on Atlanta's lead as RB Larry Johnson got a 1-yard TD run. However, the Falcons replied with Turner's 2-yard TD run, and a fourth quarter interception sealed the win when CB Chris Houston returned it 10Β yards for a touchdown.
With their twelfth consecutive loss, the Chiefs fell to 0β3.
Week 4: vs. Denver Broncos
The Chiefs hosted the 3β0 Broncos in hopes of winning their first game of the season. The Chiefs' offense, averaging fewer than 11 points a game, turned early touchdown opportunities into short field goals.
In its first two possessions, Denver's league-leading offense had a turnover, a sack and a shanked punt. Larry Johnson ran a career-long 65-yard run to the 21Β yard line on the game's second play. Kansas City had first-and-goal from the 9, but only managed a field goal. The field goal gave Kansas City their first lead in 22 quarters, since the team's lead against the Titans on December 16, 2007.
With QB Damon Huard at the helm, the Chiefs' offense allowed no turnovers and scored more points in one game (33) than their first three games of the season combined (32). Denver's running defense was noticeably weak and allowed Chiefs RB Larry Johnson to run for 198Β yards. Johnson also tallied his first 2 touchdown game in over two years. Denver allowed four turnovers, which the Chiefs capitalized on three. Chiefs TE Tony Gonzalez scored one touchdown and finished the game within three yards shy of tying Shannon Sharpe's all-time receiving record (10,060).
The win was Kansas City's first since a victory over Oakland on October 21, 2007. Johnson tallied his 29th career 100-yard rushing game and his fifth against Denver.
Week 5: at Carolina Panthers
Coming off their stunning home win over the Broncos, the Chiefs flew to Bank of America Stadium for a Week 5 interconference duel with the Carolina Panthers. In the first quarter, Kansas City trailed as RB DeAngelo Williams got a 10-yard TD run. In the second quarter, the Chiefs continued to trail as Williams caught a 25-yard TD pass from QB Jake Delhomme, along with getting a 32-yard TD run. In the third quarter, Carolina kicker John Kasay made a 32-yard field goal, along with Delhomme completing a 47-yard TD pass to WR Muhsin Muhammad. In the fourth quarter, the Panthers sealed the win with Kasay nailing a 43-yard field goal. TE Tony Gonzalez (3 receptions for 17Β yards) became the NFL's all-time leader in career receiving yards for a tight end with 10,063Β yards.
With the shutout loss, the Chiefs fell to 1β4.
Bye Week: Gonzalez and Johnson controversies
TE Tony Gonzalez met with Chiefs GM Carl Peterson during the bye week and inquired about a trade to a playoff contender. Gonzalez, who had always said he would like to end his career with the Chiefs, voiced his desire to play for a Super Bowl contending team and the rebuilding Chiefs would like to acquire extra draft picks. Buffalo, Atlanta, Green Bay, Philadelphia, and the New York Giants had been in contact with the Chiefs regarding Gonzalez. The Giants were considered to be the front-runners, but showed "lukewarm" interest. The Packers offered a third round draft choice, but the deal was not finalized, and Gonzalez remained with the Chiefs after the trading deadline passed.
RB Larry Johnson was charged with simple assault for allegedly pushing a woman at a Kansas City nightclub in February, the third time he has faced assault charges against a woman. Johnson was also reportedly offered by the Chiefs for a trade. Days later, coach Herm Edwards ruled Johnson out of the Chiefs' upcoming game against Tennessee as a result of a violation of team rules. Edwards stated that it was not in response to Johnson's legal troubles, but instead of insubordination.
Days later, reports surfaced that Johnson was under investigation for allegedly telling a woman that he was going to kill her boyfriend then spat in her face at Kansas City's Club Blonde on October 10, just four days prior to his court hearing for a separate incident. Johnson's pattern of behavior could lead to a possible suspension under the NFL's personal conduct policy. Johnson made a public apology on October 22. As a result of his October 10 incident, Johnson was de-activated for the Chiefs' game against the New York Jets. As a result, Johnson was charged with simple assault for the second time in two weeks. The Chiefs indicated that Johnson would meet with NFL commissioner Roger Goodell and would not play "for the foreseeable future." Goodell subsequently suspended Johnson for the Chiefs' Week 10 game against the Chargers.
Week 7: vs. Tennessee Titans
Coming off their bye week, the Chiefs went home for a Week 7 duel with the undefeated Tennessee Titans. In the first quarter, Kansas City trailed early as Titans kicker Rob Bironas got a 49-yard field goal, along with RB LenDale White getting a 6-yard TD run. In the second quarter, Tennessee increased its lead with White getting a 2-yard TD run. In the third quarter, the Chiefs continued to struggle as Bironas got a 46-yard field goal. In the fourth quarter, the Titans began to put the game out of reach as White got an 80-yard TD run. Kansas City would finally get on the board as kicker Nick Novak got a 26-yard field goal. Tennessee would seal the win as RB Chris Johnson got a 66-yard TD run. The Chiefs would end the game with QB Tyler Thigpen getting a 14-yard TD run.
With the loss, Kansas City fell to 1β5.
During the game starting QB Brodie Croyle (9/10 for 63Β yards) suffered a sprained knee in the second quarter. Also, veteran QB Damon Huard (9/16 for 96Β yards) later left the game in the fourth with an injured thumb. Both would be placed on injured reserve, ending their seasons.
Implementing the spread offense
To help Tyler Thigpen prepare for the game against the Jets, the Chiefs implemented the spread offense to help Thigpen and the rest of the younger players play to the best of their abilities, and also following the absence of RB Larry Johnson due to suspension. The Chiefs made a huge gamble by doing so, as most in the NFL believe that a spread offense cannot work in professional football, and also head coach Herman Edwards was traditionally in favor of more conservative, run-oriented game plans. Prior to the Chiefs implementing the spread offense, Thigpen had been playing erratically with the Chiefs, and he suddenly became poised and effective running the new offense.
Week 8: at New York Jets
Hoping to rebound from their loss to the Titans, the Chiefs flew to The Meadowlands for a Week 8 duel with the New York Jets. Due to the season-ending injuries to QB's Brodie Croyle and Damon Huard, Tyler Thigpen made his second career start. Thigpen became the starting quarterback by default.
In the first quarter, Kansas City trailed early as Jets QB Brett Favre completed an 18-yard TD pass to RB Leon Washington. In the second quarter, the Chiefs tied the game as Thigpen completed a 19-yard TD pass to TE Tony Gonzalez. New York responded with Washington getting a 60-yard TD run, yet Kansas City closed out the half with Thigpen completed an 11-yard TD pass to WR Mark Bradley.
In the third quarter, the Chiefs took the lead as rookie kicker Connor Barth nailed a 30-yard field goal, yet the Jets regained the lead with RB Thomas Jones getting a 1-yard TD run. In the fourth quarter, Kansas City took the lead again as rookie CB Brandon Flowers returned an interception 91Β yards for a touchdown. However, New York got the last laugh as Favre completed a 15-yard TD pass to WR Laveranues Coles.
With the loss, the Chiefs fell to 1β6.
Week 9: vs. Tampa Bay Buccaneers
The game started well for the Chiefs who jumped out to a 24β3 lead, which included a "trick" touchdown pass from Mark Bradley (wide receiver) to Tyler Thigpen (quarterback). The momentum started to change when the Buccaneers ran a punt return for a touchdown and added a late field goal to cut the deficit to a 24β13 margin. In the fourth quarter, Tampa Bay picked up a late touchdown on a fumble to bring the game to a 27β25 deficit. They converted the two-point conversion to tie the game at 27β27. In overtime, the Buccaneers systematically ran the ball to the 30-yard line and then kicked the winning field goal to capture a 30β27 victory. It was the biggest margin they have overcome in their history. The loss was the Chiefs' 16th in the past 17 games.
With their 4th-straight loss, Kansas City fell to 1β7.
Week 10: at San Diego Chargers
The Chiefs took an early lead on a 30-yard pass from Tyler Thigpen to Mark Bradley. The Chiefs defense continued to show improvement in the red zone, limiting the Chargers to two field goals instead of two touchdowns. At the end of the first half, Thigpen threw a pass to 34Β yard touchdown pass to Tony Gonzalez. However, the extra point snap was botched and an attempt at a quick pass failed.
The Chargers controlled the second half better than the first, scoring two touchdowns and leading the Chiefs by 7 at the end of the fourth quarter. The Chiefs' final drive ended with a 3-yard touchdown pass to Gonzalez. A 1-point PAT would tie the game. However, Herm Edwards told Thigpen to go for two, explaining in a post-game interview that the defense was too beat up for overtime play. The resulting two-point conversion ended in an incomplete pass. The Chiefs lost by one point.
With the loss, Kansas City fell to 1β8.
Week 11: vs. New Orleans Saints
Hoping to snap their five-game losing streak, the Chiefs went home for a Week 11 interconference duel with the New Orleans Saints. In the first quarter, Kansas City struck first as QB Tyler Thigpen completed a 6-yard TD pass to WR Dwayne Bowe. The Saints would respond with kicker Garrett Hartley getting a 30-yard field goal. In the second quarter, New Orleans took the lead as RB Deuce McAllister got a 1-yard TD run. The Chiefs would answer with rookie kicker Connor Barth getting a 20-yard field goal. The Saints closed out the half with Hartley making a 23-yard field goal.
In the third quarter, New Orleans increased their lead with QB Drew Brees completing a 47-yard TD pass to WR Lance Moore. Kansas City replied with Barth making a 21-yard field goal, yet the Saints answered with RB Pierre Thomas getting a 1-yard TD run. In the fourth quarter, the Chiefs tried to rally as Thigpen hooked up with Bowe again on a 5-yard TD pass. However, New Orleans pulled away with Hartley nailing a 35-yard field goal.
With their sixth-straight loss, Kansas City fell to 1β9.
Week 12: vs. Buffalo Bills
The Chiefs hosted the 5β5 Bills, losers of their past four games, on November 23. Tyler Thigpen had his first bad game in five outings in the Chiefs' 54β31 loss. Thigpen's three turnoversβtwo interceptions and one lost fumbleβled to 20 points by the Bills. Despite the turnovers, Thigpen also threw for 240Β yards and three touchdowns.
The 54 points by Buffalo were the Chiefs' most allowed in a game in the franchise's history. With the loss, the Chiefs fell to a 1β10 record, their 19th loss in 20 games.
Week 13: at Oakland Raiders
The Raiders hosted the Chiefs at OaklandβAlameda County Coliseum on November 30. The game began with both teams exchanging field goals to tie the game at 3. The Raiders lined up to kick another field goal, but instead elected to run a fake field goal, which was fumbled and recovered by Chiefs CB Maurice Leggett and returned for a touchdown. The Chiefs led the game 10β3 at halftime. In the third quarter, the Raiders tied the game at 10 with a touchdown by RB Justin Fargas. With the Chiefs backed up to their own 9 following a punt, QB Tyler Thigpen led the Chiefs's offense down the field and capped the drive with a hand-off to RB Larry Johnson for a 2-yard touchdown. On Oakland's next possession, Justin Fargas fumbled the football which eventually set up a Chiefs field goal. The Raiders attempted to get back in the game with a field goal by K Sebastian Janikowski, but the Chiefs held possession and ran out the clock for the remainder of the game. The Chiefs managed to snap their seven-game losing streak by beating the Raiders 20β13. It was Kansas City's sixth consecutive victory at OaklandβAlameda County Coliseum. The victory was Tyler Thigpen's first as the Chiefs' starting quarterback.
With the win, Kansas City improved to 2β10.
Week 14: at Denver Broncos
Fresh off their divisional road win over the Raiders, the Chiefs flew to Invesco Field at Mile High for a Week 14 AFC West rematch with the Denver Broncos. In the first quarter, Kansas City got the early lead as rookie kicker Connor Barth got a 26-yard field goal, while rookie CB Maurice Leggett returned an interception 27Β yards for a touchdown. The Broncos would with RB Peyton Hillis getting an 18-yard touchdown run. The Chiefs answered in the second quarter with QB Tyler Thigpen completing a 13-yard touchdown pass to TE Tony Gonzalez, yet Denver closed out the half with QB Jay Cutler completing a 12-yard touchdown pass to WR Brandon Marshall.
In the third quarter, the Broncos tied the game with kicker Matt Prater nailing a 33-yard field goal. In the fourth quarter, Denver took the lead as Cutler hooked up with Marshall again on a 6-yard touchdown pass. Kansas City tried to rally, but the Broncos' defense was too much to overcome.
With the loss, the Chiefs fell to 2β11.
Week 15: vs. San Diego Chargers
The Chiefs hosted the 5β8 Chargers on December 14, hoping to end their slim playoff chances. Temperatures which hovered in the low 60s when early-arriving fans first showed up plunged into the 20s by the end of the game. The Chiefs dominated the game early, leading 14β3 at halftime. Chiefs quarterback Tyler Thigpen threw for one touchdown and ran for another for the Chiefs and was 19-for-28 for 171Β yards.
The Chargers had three turnovers and, perhaps more embarrassing, gave up three sacks to the NFL's worst pass rush. Tamba Hali had two sacks and caused two fumbles for a Chiefs defense that hadn't gotten a sack since playing San Diego four games ago. The three sacks pushed Kansas City's season total to a league-low nine, and the Chiefs need five in their last two games to avoid tying the NFL record for fewest in a season. Five of the sacks from the season have come against San Diego.
Leading into the fourth quarter, Kansas City led 21β10, but allowed 11 points in the final 79Β seconds of the game to lose 22β21. The Chiefs, despite having an 18-point lead, used up all three time-outs. The victory sealed a season sweep for San Diego over Kansas City, with both victories ending in a one-point margin.
Resignation of Carl Peterson
The day after the Chiefs' loss to San Diego, Chiefs owner Clark Hunt announced the resignation of Carl Peterson from all positions held (general manager, vice president, and chief executive officer) effective at the end of the season.
The official press release stated that Peterson resigned, but Hunt had said the conversation had been on-going throughout the season. Hunt said his decision to relieve Peterson of duties was not based on what happened the previous day, when the Chiefs lost an 11-point lead in the final 73Β seconds and were beaten 22β21 by San Diego, dropping their record to 2β12. Hunt also said that the fate of head coach Herman Edwards would be settled after the season. Hunt said he would split the duties previously held by Peterson and have someone in charge of the business side and someone else in charge of football for the franchise. Hunt said he plans on hiring someone from outside the organization.
Week 16: vs. Miami Dolphins
Kansas City hosted the Miami Dolphins in the second-coldest game ever held at Arrowhead Stadium on December 21 with the game-time temperature at and a wind chill at . It was the coldest conditions that Miami had ever played in. Miami scored first on the opening drive with a touchdown by WR Ted Ginn Jr. Despite trailing 10β0 early in the game, Tyler Thigpen led the Chiefs to a 28β24 lead by halftime. The Chiefs failed to score a touchdown in the second half of the game, only managing a field goal by Connor Barth. The Dolphins broke a 31β31 tie with a touchdown by TE Anthony Fasano with 4:08 remaining in the game. With just over a minute remaining, Chiefs LB Demorrio Williams forced and recovered a fumble to give the Chiefs another chance to tie the game. A failed drive capped off by Thigpen's third interception helped Miami run out the clock. Thigpen threw a career best 320Β yards with two touchdowns, but also threw three interceptions. TE Tony Gonzalez became the first Chiefs player and first NFL tight end to record four 1,000Β yard receiving seasons. The game also marked the last time Gonzalez played in Arrowhead Stadium as a member of the Chiefs, due to his trade to the Falcons following the season.
Week 17: at Cincinnati Bengals
The Bengals hosted the Chiefs for both teams' final game of the 2008 season on December 28. Entering the game, the Bengals had a 3β11β1 record and the Chiefs had a 2β13 record. While there was speculation over the job status of Herm Edwards as head coach entering the off-season, RB Larry Johnson voiced his intention to seek a trade. Cincinnati completely dominated the game. They outrushed the Chiefs 204Β yards to 31Β yards. Kansas City could only manage two first downs in the first half.
The Chiefs did not get closer than the Bengals' 37-yard line until their final drive, which ended with TE Tony Gonzalez's 5-yard touchdown catch from QB Tyler Thigpen with 2:20 left in the game. A two-point conversion attempt failed, and the Bengals effectively held the lead for the remainder of the game. The Chiefs' defense had one sack in the game to finish the season with 10βthe fewest in the NFL since the league started recording team sacks in 1960. The team surpassed the 1982 Baltimore Colts' record of 11 sacks.
Standings
Season statistics
All statistics through the completion of the 2008 NFL season (December 28, 2008).
Offense
Yards per game: 314.6 (#22 in NFL)
Total yards in season: 4,719 (#22 in NFL)
Points per game: 19.0 (#25 in NFL)
Points in season: 285 (#25 in NFL)
Quarterback rating:
Tyler Thigpen (11 starts) β 75.8
Rushing yards in season: 1,779 (#11 in NFL)
Rushing yards per game: 118.6 (#11 in NFL)
Passing yards in season: 2,940 (#19 in NFL)
Passing yards per game: 196.0 (#19 in NFL)
Defense
Yards allowed per game: 397.5 (#31 in NFL)
Rushing yards allowed per game: 155.9 (#30 in NFL)
Passing yards allowed per game: 241.5 (#30 in NFL)
Points allowed in season: 424 (#30 in NFL)
Points allowed per game: 28.3 (#30 in NFL)
Fewest quarterback sacks, team: 10 (#32 in NFLβall-time record)
References
Kansas City
Kansas City Chiefs seasons
Kansas
|
```c
/*
*
*/
#include <zephyr/ztest.h>
#include <zephyr/fs/fs.h>
#include <zephyr/fs/ext2.h>
#include "utils.h"
ZTEST(ext2tests, test_mount_only)
{
struct fs_mount_t *mp = &testfs_mnt;
int ret = 0;
/* Test FS_MOUNT_FLAG_NO_FORMAT flag */
mp->flags |= FS_MOUNT_FLAG_NO_FORMAT;
ret = fs_mount(mp);
TC_PRINT("Mount unformatted with FS_MOUNT_FLAG_NO_FORMAT set\n");
zassert_false(ret == 0, "Expected failure (ret=%d)", ret);
/* Test FS_MOUNT_FLAG_READ_ONLY on non-formatted volume*/
mp->flags = FS_MOUNT_FLAG_READ_ONLY;
ret = fs_mount(mp);
TC_PRINT("Mount unformatted with FS_MOUNT_FLAG_READ_ONLY set\n");
zassert_false(ret == 0, "Expected failure (ret=%d)", ret);
/* Format volume and add some files/dirs to check read-only flag */
mp->flags = 0;
ret = fs_mount(mp);
TC_PRINT("Mount again to format volume\n");
zassert_equal(ret, 0, "Expected success (ret=%d)", ret);
TC_PRINT("Create some file\n");
ret = fs_unmount(mp);
zassert_equal(ret, 0, "Expected success (ret=%d)", ret);
/* Check fs operation on volume mounted with FS_MOUNT_FLAG_READ_ONLY */
mp->flags = FS_MOUNT_FLAG_READ_ONLY;
TC_PRINT("Mount as read-only\n");
ret = fs_mount(mp);
zassert_equal(ret, 0, "Expected success (ret=%d)", ret);
ret = fs_unmount(mp);
zassert_equal(ret, 0, "Expected success (ret=%d)", ret);
}
ZTEST(ext2tests, test_statvfs)
{
int ret = 0;
struct fs_statvfs sbuf;
struct fs_mount_t *mp = &testfs_mnt;
size_t partition_size = MIN(0x800000, get_partition_size((uintptr_t)mp->storage_dev));
mp->flags = 0;
ret = fs_mount(mp);
zassert_equal(ret, 0, "Expected success (ret=%d)", ret);
ret = fs_statvfs(mp->mnt_point, &sbuf);
zassert_equal(ret, 0, "Expected success (ret=%d)", ret);
TC_PRINT("Mounted file system: bsize:%lu frsize:%lu blocks:%lu, bfree:%lu\n",
sbuf.f_bsize, sbuf.f_frsize, sbuf.f_blocks, sbuf.f_bfree);
zassert_equal(sbuf.f_bsize, 1024,
"Wrong block size %lu (expected %lu)", sbuf.f_bsize, 1024);
zassert_equal(sbuf.f_frsize, 1024,
"Wrong frag size %lu (expected %lu)", sbuf.f_frsize, 1024);
zassert_equal(sbuf.f_blocks, partition_size / 1024,
"Wrong block count %lu (expected %lu)",
sbuf.f_blocks, partition_size / 1024);
ret = fs_unmount(mp);
zassert_equal(ret, 0, "Expected success (ret=%d)", ret);
}
/* Tests from common directory */
void test_fs_mkfs_simple(void);
/* Global variables expected by tests */
struct fs_mount_t *fs_mkfs_mp = &testfs_mnt;
const int fs_mkfs_type = FS_EXT2;
uintptr_t fs_mkfs_dev_id;
int fs_mkfs_flags;
ZTEST(ext2tests, test_mkfs_simple)
{
struct fs_mount_t *mp = &testfs_mnt;
fs_mkfs_dev_id = (uintptr_t) mp->storage_dev;
fs_mkfs_flags = 0;
test_fs_mkfs_simple();
}
void mkfs_custom_config(struct ext2_cfg *cfg)
{
int ret = 0;
struct fs_statvfs sbuf;
struct fs_mount_t *mp = &testfs_mnt;
size_t partition_size = MIN(cfg->fs_size, get_partition_size((uintptr_t)mp->storage_dev));
ret = fs_mkfs(FS_EXT2, (uintptr_t)mp->storage_dev, cfg, 0);
zassert_equal(ret, 0, "Failed to mkfs with 2K blocks");
mp->flags = FS_MOUNT_FLAG_NO_FORMAT;
ret = fs_mount(mp);
zassert_equal(ret, 0, "Mount failed (ret=%d)", ret);
ret = fs_statvfs(mp->mnt_point, &sbuf);
zassert_equal(ret, 0, "Statvfs failed (ret=%d)", ret);
TC_PRINT("Mounted file system: bsize:%lu frsize:%lu blocks:%lu, bfree:%lu\n",
sbuf.f_bsize, sbuf.f_frsize, sbuf.f_blocks, sbuf.f_bfree);
zassert_equal(sbuf.f_bsize, cfg->block_size,
"Wrong block size %lu (expected %lu)", sbuf.f_bsize, cfg->block_size);
zassert_equal(sbuf.f_frsize, cfg->block_size,
"Wrong frag size %lu (expected %lu)", sbuf.f_frsize, cfg->block_size);
zassert_equal(sbuf.f_blocks, partition_size / cfg->block_size,
"Wrong block count %lu (expected %lu)",
sbuf.f_blocks, partition_size / cfg->block_size);
ret = fs_unmount(mp);
zassert_equal(ret, 0, "Unmount failed (ret=%d)", ret);
}
#if defined(CONFIG_APP_TEST_BIG)
ZTEST(ext2tests, test_mkfs_custom_2K)
{
struct ext2_cfg config = {
.block_size = 2048,
.fs_size = 0x2000000,
.bytes_per_inode = 0,
.volume_name[0] = 0,
.set_uuid = false,
};
mkfs_custom_config(&config);
}
ZTEST(ext2tests, test_mkfs_custom_4K)
{
struct ext2_cfg config = {
.block_size = 4096,
.fs_size = 0x8000000,
.bytes_per_inode = 0,
.volume_name[0] = 0,
.set_uuid = false,
};
mkfs_custom_config(&config);
}
#endif
```
|
```python
import threading
from contextlib import contextmanager
import attr
@attr.s(slots=True)
class Settings:
"""
:param strict: boolean to indicate if the lxml should be parsed a 'strict'.
If false then the recover mode is enabled which tries to parse invalid
XML as best as it can.
:type strict: boolean
:param raw_response: boolean to skip the parsing of the XML response by
zeep but instead returning the raw data
:param forbid_dtd: disallow XML with a <!DOCTYPE> processing instruction
:type forbid_dtd: bool
:param forbid_entities: disallow XML with <!ENTITY> declarations inside the DTD
:type forbid_entities: bool
:param forbid_external: disallow any access to remote or local resources
in external entities or DTD and raising an ExternalReferenceForbidden
exception when a DTD or entity references an external resource.
:type forbid_external: bool
:param xml_huge_tree: disable lxml/libxml2 security restrictions and
support very deep trees and very long text content
:param force_https: Force all connections to HTTPS if the WSDL is also
loaded from an HTTPS endpoint. (default: true)
:type force_https: bool
:param extra_http_headers: Additional HTTP headers to be sent to the
transport. This can be used in combination with the context manager
approach to add http headers for specific calls.
:type extra_headers: list
:param xsd_ignore_sequence_order: boolean to indicate whether to enforce sequence
order when parsing complex types. This is a workaround for servers that
don't respect sequence order.
:type xsd_ignore_sequence_order: boolean
"""
strict = attr.ib(default=True)
raw_response = attr.ib(default=False)
# transport
force_https = attr.ib(default=True)
extra_http_headers = attr.ib(default=None)
# lxml processing
xml_huge_tree = attr.ib(default=False)
forbid_dtd = attr.ib(default=False)
forbid_entities = attr.ib(default=True)
forbid_external = attr.ib(default=True)
# xsd workarounds
xsd_ignore_sequence_order = attr.ib(default=False)
_tls = attr.ib(default=attr.Factory(threading.local))
@contextmanager
def __call__(self, **options):
current = {}
for key, value in options.items():
current[key] = getattr(self, key)
setattr(self._tls, key, value)
try:
yield
finally:
for key, value in current.items():
default = getattr(self, key)
if value == default:
delattr(self._tls, key)
else:
setattr(self._tls, key, value)
def __getattribute__(self, key):
if key != "_tls" and hasattr(self._tls, key):
return getattr(self._tls, key)
return super().__getattribute__(key)
```
|
```smalltalk
using SimplCommerce.Module.Core.Areas.Core.ViewModels;
namespace SimplCommerce.Module.Catalog.Areas.Catalog.ViewModels
{
public class ProductWidgetForm : WidgetFormBase
{
public ProductWidgetSetting Setting { get; set; }
}
}
```
|
Charles Richard Whittaker FRSE FRCSE FSA (Scot) RSA (Hon) (1879β1967) was a 20th-century British surgeon and anatomist. Remembered as a medical author, he illustrated his own anatomy texts.
Life
He was born in 1879 in Lancashire.
He studied medicine and surgery at the Royal College of Physicians of Edinburgh and Royal College of Surgeons of Edinburgh.
In 1911 he became Senior Demonstrator at Surgeons' Hall in Edinburgh.
In 1911 he was elected a Fellow of the Royal Society of Edinburgh. His proposers were Sir James Alexander Russell, Sir David Berry Hart, Henry Harvey Littlejohn, and John Cameron. He was then living at 27 Hatton Place, a semi-detached Victorian villa in the Grange district of South Edinburgh.
In the First World War he served as a major in the Royal Army Medical Corps.
He began lecturing in anatomy at Surgeons Hall in 1931 and retired in 1951.
He died on 4 December 1967.
Publications
Hughes Nerves of the Human Body (1919)
Operative Surgery (1921)
Anatomy (1932)
A Manual of Surgical Anatomy
Artistic recognition
His portrait by David Foggie is held by the Scottish National Portrait Gallery.
References
1879 births
1967 deaths
Medical doctors from Lancashire
British anatomists
British medical writers
Fellows of the Royal Society of Edinburgh
|
The following railroads operate in the U.S. state of Georgia.
Common freight carriers
Adams-Warnock Railway (AWRY)
Athens Line, LLC (ABR)
Augusta and Summerville Railroad (AUS), operated by CSX and Norfolk Southern
Chattahoochee Bay Railroad (CHAT)
Chattahoochee Industrial Railroad (CIRR)
Chattooga and Chickamauga Railway (CCKY)
Columbus and Chattahoochee Railroad (CHH)
CSX Transportation (CSXT)
First Coast Railroad (FCRD)
Fulton County Railway (FCR)
Georgia and Southern Railway (GASR)
Georgia Central Railway (GC)
Georgia and Florida Railway (GFRR)
Georgia Northeastern Railroad (GNRR)
Georgia Southwestern Railroad (GSWR)
Georgia Woodlands Railroad (GWRC)
Golden Isles Terminal Railroad (GITM)
Golden Isles Terminal Wharf (GITW)
Great Walton Railroad (GRWR)
Hartwell Railroad (HRT)
Heart of Georgia Railroad (HOG)
Louisville and Wadley Railway (LW) (Out of Service)
Norfolk Southern Railway (NS) including subsidiaries Alabama Great Southern Railroad (AGS), Central of Georgia Railroad (CG), and Georgia Southern and Florida Railway (GSF)
Ogeechee Railway (OGEE)
Riceboro Southern Railway (RSOR)
St. Mary's Railroad (SM)
St. Mary's Railway West (SMW)
Sandersville Railroad (SAN)
Savannah Port Terminal Railroad (SAPT)
Valdosta Railway (VR)
Private carriers
GAPS
Georgia Power
Passenger carriers
Amtrak (AMTK)
Metropolitan Atlanta Rapid Transit Authority
River Street Streetcar
Atlanta Streetcar
Defunct railroads
Notes
References
External links
Georgia Railroads
Georgia
Railroads
|
```sqlpl
--
--
--
-- 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.
--
ALTER TABLE "App" ALTER COLUMN DataChange_CreatedBy VARCHAR(255) NULL;
ALTER TABLE "App" ALTER COLUMN DataChange_CreatedTime TIMESTAMP NULL;
ALTER TABLE "App" ALTER COLUMN OrgName VARCHAR(255) NULL;
ALTER TABLE "App" ALTER COLUMN OrgId VARCHAR(255) NULL;
ALTER TABLE "AppNamespace" ALTER COLUMN DataChange_CreatedBy VARCHAR(255) NULL;
ALTER TABLE "AppNamespace" ALTER COLUMN DataChange_CreatedTime TIMESTAMP NULL;
ALTER TABLE "AppNamespace" ALTER COLUMN Format VARCHAR(255) NULL;
ALTER TABLE "AccessKey" ALTER COLUMN DataChange_CreatedBy VARCHAR(255) NULL;
ALTER TABLE "AccessKey" ALTER COLUMN DataChange_CreatedTime TIMESTAMP NULL;
ALTER TABLE "Instance" ALTER COLUMN ClusterName VARCHAR(255) NULL;
ALTER TABLE "Instance" ALTER COLUMN DataCenter VARCHAR(255) NULL;
ALTER TABLE "Instance" ALTER COLUMN Ip VARCHAR(255) NULL;
ALTER TABLE "InstanceConfig" ALTER COLUMN ReleaseDeliveryTime VARCHAR(255) NULL;
ALTER TABLE "InstanceConfig" ALTER COLUMN ReleaseKey VARCHAR(255) NULL;
ALTER TABLE "ServerConfig" ALTER COLUMN DataChange_CreatedBy VARCHAR(255) NULL;
ALTER TABLE "ServerConfig" ALTER COLUMN DataChange_CreatedTime TIMESTAMP NULL;
ALTER TABLE "ServerConfig" ALTER COLUMN Comment VARCHAR(255) NULL;
ALTER TABLE "Audit" ALTER COLUMN DataChange_CreatedBy VARCHAR(255) NULL;
ALTER TABLE "Audit" ALTER COLUMN DataChange_CreatedTime TIMESTAMP NULL;
ALTER TABLE "Cluster" ALTER COLUMN DataChange_CreatedBy VARCHAR(255) NULL;
ALTER TABLE "Cluster" ALTER COLUMN DataChange_CreatedTime TIMESTAMP NULL;
ALTER TABLE "Cluster" ALTER COLUMN ParentClusterId BIGINT DEFAULT 0;
ALTER TABLE "Namespace" ALTER COLUMN DataChange_CreatedBy VARCHAR(255) NULL;
ALTER TABLE "Namespace" ALTER COLUMN DataChange_CreatedTime TIMESTAMP NULL;
ALTER TABLE "Item" ALTER COLUMN DataChange_CreatedBy VARCHAR(255) NULL;
ALTER TABLE "Item" ALTER COLUMN DataChange_CreatedTime TIMESTAMP NULL;
ALTER TABLE "GrayReleaseRule" ALTER COLUMN DataChange_CreatedBy VARCHAR(255) NULL;
ALTER TABLE "GrayReleaseRule" ALTER COLUMN DataChange_CreatedTime TIMESTAMP NULL;
ALTER TABLE "Release" ALTER COLUMN DataChange_CreatedBy VARCHAR(255) NULL;
ALTER TABLE "Release" ALTER COLUMN DataChange_CreatedTime TIMESTAMP NULL;
ALTER TABLE "Release" ALTER COLUMN Comment VARCHAR(255) NULL;
ALTER TABLE "Release" ALTER COLUMN Name VARCHAR(255) NULL;
ALTER TABLE "Release" ALTER COLUMN ReleaseKey VARCHAR(255) NULL;
ALTER TABLE "ReleaseHistory" ALTER COLUMN DataChange_CreatedBy VARCHAR(255) NULL;
ALTER TABLE "ReleaseHistory" ALTER COLUMN DataChange_CreatedTime TIMESTAMP NULL;
ALTER TABLE "Commit" ALTER COLUMN DataChange_CreatedBy VARCHAR(255) NULL;
ALTER TABLE "Commit" ALTER COLUMN DataChange_CreatedTime TIMESTAMP NULL;
ALTER TABLE "NamespaceLock" ALTER COLUMN DataChange_CreatedBy VARCHAR(255) NULL;
ALTER TABLE "NamespaceLock" ALTER COLUMN DataChange_CreatedTime TIMESTAMP NULL;
CREATE ALIAS IF NOT EXISTS UNIX_TIMESTAMP FOR "com.ctrip.framework.apollo.common.jpa.H2Function.unixTimestamp";
```
|
Mompha lacteella is a moth in the family Momphidae found in Asia and Europe.
Description
The wingspan is 11β13Β mm. Adults are on wing from May to July.
The larvae feed on great willowherb (Epilobium hirsutum) and broad-leaved willowherb (Epilobium montanum), mining the leaves of their host plant. The mine consists of a large full depth blotch in the lower leaves. Most frass is deposited in coarse grains. The larva may leave the mine and restart elsewhere. Larvae can be found from March to April. They are yellowish pink to purple brown with a black head.
Pupation takes place inside the mine or in the ground.
Distribution
It is found in most of Europe, except the southern parts of the continent. In the east, the range extends through Asia Minor, the Caucasus, eastern Transcaucasia and southern Siberia to the Russian Far East.
References
External links
Lepiforum e. V.
Momphidae
Leaf miners
Moths described in 1834
Moths of Asia
Moths of Europe
Taxa named by James Francis Stephens
|
The Gregg-Crites house, also known as the M. M. Crites house, is an octagon house located in Circleville, Ohio, on Route 23 just south of town. It was built by George Gregg between 1855 and 1856 and now owned by The Roundtown Conservancy. It was listed on the National Register of Historic Places in 2021.
Relocation
In the early 2000s the farm on which the house stood was acquired by a developer for a new Wal-Mart Supercenter, and the house was scheduled for demolition.
After some concerted and expensive action by the Roundtown Conservancy, the 480 ton house (minus its basement) was moved intact to a new location. In order to move the house, steel beams were inserted into the basement, bolted together on site to make a rigid base, and mounted on a hydraulic mechanism with 96 wheels in sets of four. The site donated for relocation was half a mile away, and the self-adjusting hydraulics were necessary to transport the house over uneven ground. The move took place on February 14β15, 2004, and was successful in avoiding damage to the brickwork and the fragile central staircase.
At its new site, the house was set on a concrete foundation which had been prepared for it. The Roundtown Conservancy plans to restore the building and possibly use it as a museum.
Layout
The house has an impressive circular hall with a central spiral stair. There are five main rooms on the first floor, eight equal bedrooms, and a small room in the lantern.
See also
List of octagon houses
National Register of Historic Places listings in Pickaway County, Ohio
References
External links
Roundtown Conservancy (Official Site), owners of the Octagon House in Circleville, OH
Octagon House Inventory (Ohio page), by Robert Kline, a retired engineer living in Grand Rapids, MI
DID YOU EVER SEE A HOUSE MOVING? WELL, I DID! Roundtown Conservancy Newsletter, September 2004
Forgotten Ohio website, photographs of the interior prior to the move
Timeline, the official magazine of the Ohio Historical Society, January 1989-December 1990 issue with cover story on octagon houses: scanned version on the Forgotten Ohio website
Saving the octagon house, article by Lisa R. Hooker on her website
Former houses in Ohio
Octagon houses in Ohio
Houses in Pickaway County, Ohio
National Register of Historic Places in Pickaway County, Ohio
Houses on the National Register of Historic Places in Ohio
|
Maria Labo is a 2015 Philippine supernatural horror film directed by Roi Vinzon. It is based on a Philippine urban legend about an Overseas Filipino worker believed to be an aswang known as "Maria Labo" who is said to have eaten her own children.
Synopsis
Maria is a loving and dutiful life wife to her husband, Ermin, a police officer with whom she has two children named Pablo and Rosalinda. Facing financial problems after Maria loses her job, and Ermin not being able to support the family on a policemanβs salary alone, Maria is convinced to become an Overseas Filipino Worker after learning that her high school friend Emily applied to become an overseas worker. Ermin is hesitant with his wife's plans initially but eventually relents. Maria then goes to Dubai to work as a domestic worker and caregiver.
In Dubai, Maria befriends Nanay Leng, a fellow OFW. After buying groceries for her employer, Maria is raped on a van and is later found wandering. She is brought to hospital, where the doctor recommends that she be returned to the Philippines. While hospitalized, Nanay Leng passes a curse to Maria. The curse, by opening her mouth and letting an orange entity inside hop out from her stomach and into Mariaβs, would eventually turn her into an aswang. In the process of transferring her power, Nanay Leng loses her immortality, and dies shortly after.
In the Philippines, Maria is transferred to a hospital in her native Capiz, where doctors conclude that she has amnesia and take note of her aggressive behavior. Ermin brings her back to their home, but a hospital employee discourages him due to their findings and says that his spouse might not even recognize him. Ermin eventually convinces the hospital to take her back home saying that it might bring her memories back.
Back at their house, Maria appears normal until she threatens her children with a knife for running around. Ermin learns of the incident with Maria claiming that the action was not within her control. Alone, her aswang curse begins to take control over her and one day she kills her children and cooks them. When Ermin discovers what she has done he repeatedly shoots her but she escapes with Ermin calling her a βmonster.β
Ermin then buries their children. Shortly afterwards, he witnesses a remorseful Maria crying nearby whose aswang curse then takes over once again. Maria receives a wound on her face after her husband hacks her face with a bolo knife and escapes once again.
Then rumors of an aswang causing terror throughout the town spread. Ermin consults an albularyo who says that there is nothing that can be done to return Maria back to normal. The police then pursues the aswang. After some encounters, Maria was killed. The film ends with an embalmer who is working on Maria's body. The embalmer then finds out that Maria's supposed corpse is nowhere to be found, only to find her to be still alive.
Cast
Kate Brios as Maria / Maria Labo
Jestoni Alarcon as Ermin
Sam Pinto as Emily
Dennis Padilla as Espiritista
Mon Confiado as Policeman 1
Baron Geisler as Policeman 2
Rey "PJ" Abellana
Rez Cortez
Miggs Cuaderno as Pablo
Lenlen Frial as Rosalinda
Production
Roi Vinzon decided to come up with a film based on an urban legend of an Overseas Filipino Worker who is believed to have become an aswang who have killed and ate her own children. Vinzon heard of the story while he was in Bacolod and became interested in making an adaptation of the tale into a film. To avoid legal problems, the real name of the woman was not used in the film.
The tale is particularly well known in the Visayas and Mindanao regions. Labo is said to be from the Visayas region with various accounts saying that she came from either Iloilo, Capiz, or Sorsogon. It was rumored that Labo came to Davao in particular in the 1980s or 1990s. "Labo" is an Ilonggo word for "to hack", according to the legend, Maria Labo was given a cut on her face by her husband after the former cooked and ate their children.
The film project later received funding from a group of investors from Starbuilders Production. The film is the first project of Starbuilders Production and also the first for Vinzon since 1998 when he directed Boy Indian. The film also had a comfortable but reasonable budget with Vinzon refusing to brand Maria Labo as an indie film.
The film was primarily shot in Angeles, Pampanga with some scenes shot in Dubai in the United Arab Emirates. Director Vinzon, a resident of Angeles, decided to shoot the film in the city because he found the place compatible to his ideas he has in mind for the film. Shooting in Dubai took a week to be completed.
Vinzon also said that the film did not rely much on special effects since he wanted the film to feel "natural" as possible.
Release
Maria Labo was released in cinemas on November 11, 2015. The film was distributed by VIVA Films.
References
2015 horror thriller films
Philippine horror thriller films
Philippine monster movies
Films shot in Pampanga
Films shot in Dubai
Thriller films based on actual events
|
Cyperus sexangularis is a species of sedge that is native southern Africa, including Zimbabwe, Botswana, Namibia, Eswatini, and the Northern Provinces and Cape Provinces of South Africa.
See also
List of Cyperus species
References
sexangularis
Plants described in 1835
Flora of Botswana
Flora of the Cape Provinces
Flora of Namibia
Flora of the Northern Provinces
Flora of Swaziland
Flora of Zimbabwe
Taxa named by Christian Gottfried Daniel Nees von Esenbeck
|
Jacques Guy (born 23 November 1944) is a French linguist, living in Australia since 1968. He started undergraduate studies at the Γcole des Langues Orientales (School of Oriental Languages, renamed since to the Institut national des langues et civilisations orientales) in Paris, France, focusing on Chinese, Japanese and Tahitian. He wrote his Ph.D. thesis, under the auspices of the Australian National University, on Sakao, a language of Espiritu Santo (located in the island group then called the New Hebrides and now called Vanuatu).
Following this, he turned his attention towards automatic text manipulation and digital taxonomy, working from 1985 at the AI research lab of Telecom Australia (Telstra) in Clayton, a suburb of Melbourne. He remained at Telstra until 1998. His work led him to take an interest in two linguistic enigmas: Rongorongo and the Voynich manuscript.
References
1944 births
Living people
Linguists from Australia
Linguists from France
Rongorongo
|
```c++
// Boost.Bimap
//
//
// (See accompanying file LICENSE_1_0.txt or copy at
// path_to_url
/// \file container_adaptor/list_map_adaptor.hpp
/// \brief Container adaptor.
#ifndef BOOST_BIMAP_CONTAINER_ADAPTOR_LIST_MAP_ADAPTOR_HPP
#define BOOST_BIMAP_CONTAINER_ADAPTOR_LIST_MAP_ADAPTOR_HPP
#if defined(_MSC_VER)
#pragma once
#endif
#include <boost/config.hpp>
#include <boost/mpl/list.hpp>
#include <boost/mpl/push_front.hpp>
#include <boost/bimap/container_adaptor/list_adaptor.hpp>
#include <boost/bimap/container_adaptor/detail/identity_converters.hpp>
#include <boost/bimap/container_adaptor/detail/key_extractor.hpp>
#include <boost/bimap/container_adaptor/detail/comparison_adaptor.hpp>
#include <boost/mpl/vector.hpp>
#include <boost/mpl/aux_/na.hpp>
#include <boost/mpl/if.hpp>
namespace boost {
namespace bimaps {
namespace container_adaptor {
#ifndef BOOST_BIMAP_DOXYGEN_WILL_NOT_PROCESS_THE_FOLLOWING_LINES
template
<
class Base, class Iterator, class ConstIterator,
class ReverseIterator, class ConstReverseIterator,
class IteratorToBaseConverter, class IteratorFromBaseConverter,
class ReverseIteratorFromBaseConverter,
class ValueToBaseConverter, class ValueFromBaseConverter,
class KeyFromBaseValueConverter,
class FunctorsFromDerivedClasses
>
struct list_map_adaptor_base
{
typedef list_adaptor
<
Base,
Iterator, ConstIterator, ReverseIterator, ConstReverseIterator,
IteratorToBaseConverter, IteratorFromBaseConverter,
ReverseIteratorFromBaseConverter,
ValueToBaseConverter, ValueFromBaseConverter,
BOOST_DEDUCED_TYPENAME mpl::push_front<
FunctorsFromDerivedClasses,
BOOST_DEDUCED_TYPENAME mpl::if_< ::boost::mpl::is_na<KeyFromBaseValueConverter>,
// {
detail::key_from_pair_extractor
<
BOOST_DEDUCED_TYPENAME Iterator::value_type
>,
// }
// else
// {
KeyFromBaseValueConverter
// }
>::type
>::type
> type;
};
#endif // BOOST_BIMAP_DOXYGEN_WILL_NOT_PROCESS_THE_FOLLOWING_LINES
/// \brief Container adaptor to easily build a list map container
template
<
class Base,
class Iterator,
class ConstIterator,
class ReverseIterator,
class ConstReverseIterator,
class IteratorToBaseConverter = ::boost::mpl::na,
class IteratorFromBaseConverter = ::boost::mpl::na,
class ReverseIteratorFromBaseConverter = ::boost::mpl::na,
class ValueToBaseConverter = ::boost::mpl::na,
class ValueFromBaseConverter = ::boost::mpl::na,
class KeyFromBaseValueConverter = ::boost::mpl::na,
class FunctorsFromDerivedClasses = mpl::vector<>
>
class list_map_adaptor :
public list_map_adaptor_base
<
Base, Iterator, ConstIterator, ReverseIterator, ConstReverseIterator,
IteratorToBaseConverter, IteratorFromBaseConverter,
ReverseIteratorFromBaseConverter,
ValueToBaseConverter, ValueFromBaseConverter,
KeyFromBaseValueConverter,
FunctorsFromDerivedClasses
>::type
{
typedef BOOST_DEDUCED_TYPENAME list_map_adaptor_base
<
Base, Iterator, ConstIterator, ReverseIterator, ConstReverseIterator,
IteratorToBaseConverter, IteratorFromBaseConverter,
ReverseIteratorFromBaseConverter,
ValueToBaseConverter, ValueFromBaseConverter,
KeyFromBaseValueConverter,
FunctorsFromDerivedClasses
>::type base_;
// MetaData -------------------------------------------------------------
public:
typedef BOOST_DEDUCED_TYPENAME Iterator::value_type::first_type key_type;
typedef BOOST_DEDUCED_TYPENAME Iterator::value_type::second_type data_type;
typedef data_type mapped_type;
protected:
typedef BOOST_DEDUCED_TYPENAME mpl::if_< ::boost::mpl::is_na<KeyFromBaseValueConverter>,
// {
detail::key_from_pair_extractor< BOOST_DEDUCED_TYPENAME Iterator::value_type >,
// }
// else
// {
KeyFromBaseValueConverter
// }
>::type key_from_base_value;
// Access your_sha256_hash-
public:
explicit list_map_adaptor(Base & c) :
base_(c) {}
protected:
typedef list_map_adaptor list_map_adaptor_;
// Functions -------------------------------------------------------------
public:
// The following functions are overwritten in order to work
// with key_type instead of value_type
template< class Predicate >
void remove_if(Predicate pred)
{
this->base().remove_if(
::boost::bimaps::container_adaptor::detail::unary_check_adaptor
<
Predicate,
BOOST_DEDUCED_TYPENAME Base::value_type,
key_from_base_value
>( pred, this->template functor<key_from_base_value>() )
);
}
void unique()
{
this->base().unique(
::boost::bimaps::container_adaptor::detail::comparison_adaptor
<
std::equal_to<key_type>,
BOOST_DEDUCED_TYPENAME Base::value_type,
key_from_base_value
>(
std::equal_to<key_type>(),
this->template functor<key_from_base_value>()
)
);
}
template< class BinaryPredicate >
void unique(BinaryPredicate binary_pred)
{
this->base().unique(
::boost::bimaps::container_adaptor::detail::comparison_adaptor
<
BinaryPredicate,
BOOST_DEDUCED_TYPENAME Base::value_type,
key_from_base_value
>( binary_pred, this->template functor<key_from_base_value>() )
);
}
void merge(list_map_adaptor & x)
{
this->base().merge(x.base(),
::boost::bimaps::container_adaptor::detail::comparison_adaptor
<
std::less<key_type>,
BOOST_DEDUCED_TYPENAME Base::value_type,
key_from_base_value
>(
std::less<key_type>(),
this->template functor<key_from_base_value>()
)
);
}
template< class Compare >
void merge(list_map_adaptor & x, Compare comp)
{
this->base().merge(x.base(),
::boost::bimaps::container_adaptor::detail::comparison_adaptor
<
Compare,
BOOST_DEDUCED_TYPENAME Base::value_type,
key_from_base_value
>( comp, this->template functor<key_from_base_value>() )
);
}
void sort()
{
this->base().sort(
::boost::bimaps::container_adaptor::detail::comparison_adaptor
<
std::less<key_type>,
BOOST_DEDUCED_TYPENAME Base::value_type,
key_from_base_value
>(
std::less<key_type>(),
this->template functor<key_from_base_value>()
)
);
}
template< class Compare >
void sort(Compare comp)
{
this->base().sort(
::boost::bimaps::container_adaptor::detail::comparison_adaptor
<
Compare,
BOOST_DEDUCED_TYPENAME Base::value_type,
key_from_base_value
>( comp, this->template functor<key_from_base_value>() )
);
}
};
} // namespace container_adaptor
} // namespace bimaps
} // namespace boost
#endif // BOOST_BIMAP_CONTAINER_ADAPTOR_LIST_MAP_ADAPTOR_HPP
```
|
```c++
// This file is part of libigl, a simple c++ geometry processing library.
//
//
// v. 2.0. If a copy of the MPL was not distributed with this file, You can
// obtain one at path_to_url
#include "ray_mesh_intersect.h"
extern "C"
{
#include "raytri.c"
}
template <
typename Derivedsource,
typename Deriveddir,
typename DerivedV,
typename DerivedF>
IGL_INLINE bool igl::ray_mesh_intersect(
const Eigen::MatrixBase<Derivedsource> & s,
const Eigen::MatrixBase<Deriveddir> & dir,
const Eigen::MatrixBase<DerivedV> & V,
const Eigen::MatrixBase<DerivedF> & F,
std::vector<igl::Hit> & hits)
{
using namespace Eigen;
using namespace std;
// Should be but can't be const
Vector3d s_d = s.template cast<double>();
Vector3d dir_d = dir.template cast<double>();
hits.clear();
hits.reserve(F.rows());
// loop over all triangles
for(int f = 0;f<F.rows();f++)
{
// Should be but can't be const
RowVector3d v0 = V.row(F(f,0)).template cast<double>();
RowVector3d v1 = V.row(F(f,1)).template cast<double>();
RowVector3d v2 = V.row(F(f,2)).template cast<double>();
// shoot ray, record hit
double t,u,v;
if(intersect_triangle1(
s_d.data(), dir_d.data(), v0.data(), v1.data(), v2.data(), &t, &u, &v) &&
t>0)
{
hits.push_back({(int)f,(int)-1,(float)u,(float)v,(float)t});
}
}
// Sort hits based on distance
std::sort(
hits.begin(),
hits.end(),
[](const Hit & a, const Hit & b)->bool{ return a.t < b.t;});
return hits.size() > 0;
}
template <
typename Derivedsource,
typename Deriveddir,
typename DerivedV,
typename DerivedF>
IGL_INLINE bool igl::ray_mesh_intersect(
const Eigen::MatrixBase<Derivedsource> & source,
const Eigen::MatrixBase<Deriveddir> & dir,
const Eigen::MatrixBase<DerivedV> & V,
const Eigen::MatrixBase<DerivedF> & F,
igl::Hit & hit)
{
std::vector<igl::Hit> hits;
ray_mesh_intersect(source,dir,V,F,hits);
if(hits.size() > 0)
{
hit = hits.front();
return true;
}else
{
return false;
}
}
#ifdef IGL_STATIC_LIBRARY
// Explicit template instantiation
template bool igl::ray_mesh_intersect<Eigen::Matrix<float, 3, 1, 0, 3, 1>, Eigen::Matrix<float, 3, 1, 0, 3, 1>, Eigen::Matrix<double, -1, -1, 0, -1, -1>, Eigen::Matrix<int, -1, -1, 0, -1, -1> >(Eigen::MatrixBase<Eigen::Matrix<float, 3, 1, 0, 3, 1> > const&, Eigen::MatrixBase<Eigen::Matrix<float, 3, 1, 0, 3, 1> > const&, Eigen::MatrixBase<Eigen::Matrix<double, -1, -1, 0, -1, -1> > const&, Eigen::MatrixBase<Eigen::Matrix<int, -1, -1, 0, -1, -1> > const&, std::vector<igl::Hit, std::allocator<igl::Hit> >&);
template bool igl::ray_mesh_intersect<Eigen::Matrix<float, 3, 1, 0, 3, 1>, Eigen::Matrix<float, 3, 1, 0, 3, 1>, Eigen::Matrix<double, -1, -1, 0, -1, -1>, Eigen::Matrix<int, -1, -1, 0, -1, -1> >(Eigen::MatrixBase<Eigen::Matrix<float, 3, 1, 0, 3, 1> > const&, Eigen::MatrixBase<Eigen::Matrix<float, 3, 1, 0, 3, 1> > const&, Eigen::MatrixBase<Eigen::Matrix<double, -1, -1, 0, -1, -1> > const&, Eigen::MatrixBase<Eigen::Matrix<int, -1, -1, 0, -1, -1> > const&, igl::Hit&);
template bool igl::ray_mesh_intersect<Eigen::Matrix<double, 1, 3, 1, 1, 3>, Eigen::Matrix<double, 1, 3, 1, 1, 3>, Eigen::Matrix<double, -1, -1, 0, -1, -1>, Eigen::Block<Eigen::Matrix<int, -1, -1, 0, -1, -1> const, 1, -1, false> >(Eigen::MatrixBase<Eigen::Matrix<double, 1, 3, 1, 1, 3> > const&, Eigen::MatrixBase<Eigen::Matrix<double, 1, 3, 1, 1, 3> > const&, Eigen::MatrixBase<Eigen::Matrix<double, -1, -1, 0, -1, -1> > const&, Eigen::MatrixBase<Eigen::Block<Eigen::Matrix<int, -1, -1, 0, -1, -1> const, 1, -1, false> > const&, igl::Hit&);
#endif
```
|
Zadock Pratt Jr. (October 30, 1790 β April 5, 1871) was a tanner, banker, soldier, and member of the United States House of Representatives. Pratt served in the New York militia from 1819β1826, and was Colonel of the 116th regiment from 1822 until his resignation from the militia on September 4, 1826.
In the Catskill Mountains, Pratt built the largest tannery in the world at its time, and built the town of Prattsville to accommodate the labor force necessary for the tannery, raising the town's population from around 500 to over 2000. Pratt was elected to the United States House of Representatives in 1836 and 1842. During his second term, in 1845 he first proposed the transcontinental railroad. In 1848, Pratt tried but failed to receive the Democratic/Hunker nomination for the 1848 New York state gubernatorial election. He was a delegate to the 1852 Democratic National Convention.
In 1843, Pratt established the Prattsville Bank with, which printed its own bills that were kept on par with the US dollar, but he closed the bank nine years later in 1852. Pratt financed multiple smaller tanneries in the Catskills, and also one in Pennsylvania as a joint venture with Jay Gould. In 1860 he retired from active business pursuits, and died in 1871, having survived four wives and his son.
Early life and family
Zadock Pratt was born on October 30, 1790, in Stephentown, New York, to Hannah Pratt (nΓ©e Pickett) and Zadock Pratt Sr. He was the 5th of 7 children. In 1797, Pratt moved with his father's family to Middleburgh, New York. In 1802, at age 12, Pratt moved with his parents to Windham, New York (which soon became Lexington, and is current day Jewett). As a child, he received limited schooling at the public school, and instead worked on his father's farm and tannery. In his father's yard there were "two limes" and eight vats, and the bark was ground with a circular millstone by horse power.
In 1810, at age 20, Pratt became an apprentice to Luther Hayes, a sadler in Durham. Following his apprenticeship, he became a traveling saddler for a year, during which he saved $100. In 1812, he returned to Lexington where he continued his work as a saddler, working fourteen-hour days. In 1814, Pratt built a general store in Prattsville where he would barter with residents for goods, and would make periodic trips to New York City to trade the goods.
Pratt volunteered for the War of 1812 in 1814. He was a Steward of a company stationed at Brooklyn Heights. He was awarded $11 for his claim of arms and clothing which were destroyed during the war. In 1857, he would receive a warrant of of land for his service. In 1815, after war ended, he returned to Lexington, sold his store. On May 7, 1817, he entered the tanning business with his older brother (Ezra) and his younger brother (Bennett).
On October 18, 1818, Pratt married Beda Dickerman of Hamden, Connecticut, who died of tuberculosis six months later on April 19, 1819. Pratt and his brother Ezra then bought out Bennett's share of the tanning business for $2200.
During the winter of 1819β20, Pratt and three of his neighbors went on a trading expedition to Canada to sell their leather and other goods. They were successful, and traded their leather for gold and furs from Canadian settlers, and from Native Americans at Rice Lake. On his return, he stopped at the bank in Catskill, New York, where he learned that his tannery had burned down in his absence The building was uninsured, and was a loss of $1000; the cause was never determined. However, he resolved to rebuild it. Friends of the Pratt family donated money and it was quickly rebuilt.
In 1821, Pratt was appointed a magistrate of Lexington. In 1823, Pratt married Esther Dickerman, sister of his first wife. Esther died less than a year later on April 22, 1824, also of tuberculosis.
Pratt's tannery
Pratt had been planning a tanning business much larger than what he was currently engaged in, and Esther's death put him into action. He dissolved his partnership with his brother, and, with $14000 in capital, began seeking a location for his new tannery. He spent the summer of 1824 exploring the surrounding counties with his dog for the best place for his planned operations. He decided on a region in the very western part of Windham, in what is current day Prattsville, for its large forests of hemlock, which was necessary for tanning at the time, as well as its proximity to the Schoharie Creek. The Prattsville Commercial Building, built about 1824, listed on the National Register of Historic Places in 1996.
On October 24, he moved all of his belongings to the site and purchased the large meadow for $1300. The following day he broke ground on the tannery, and with the help of laborers, dammed the creek in the following weeks.
The tannery was 550' long, and 43' wide. There were 350 vats, 6 heaters, 12 leaches, two bark mills driven by a great wheel, and three hide mills.
Tannery foreman Osmer B. Wheeler later went on to open his own tannery, in Forestburgh, New York, and became a member of the New York State Senate.
Military and remarriages
On April 25, 1820, Pratt was chosen as Captain of the Fifth regiment of New York State Artillery, which consisted of 130 men. Acquired a cannon that had been used at the Battle of Plattsburgh for the regiment.
On July 12, 1822, he became a Colonel for New York's 116th Infantry. In 1825, he commanded the escort of Lafayette into Catskill.
On October 12, 1827, Pratt married his third wife, Abigail P. Watson, of Rensselaer. Their son was State Senator George W. Pratt (1830β1862).
On November 20, 1832, he applied to the State Legislature to divide Windham, and on March 8, 1833, Prattsville was divided off from Windham. At the time it had a population of around 1500.
On January 26, 1834, Pratt's second daughter, Abigail, was born. Pratt's wife died 10 days later on February 5, aged 26. On March 16, 1835, Pratt married his fourth wife, Mary E. Watson, sister of his third wife. Mary Pratt died in Providence, New York on July 17, 1868.
In 1836, he was elected to New York's 8th District, and in the same election, was voted to be and elector for New York.
In 1839, Westkill Lexington tannery burned down. He lost $10,000 but was only insured for $7,000.
Pratt offered to endow Prattsville Academy with $5,000 if the sum were matched by a Christian church.
In 1842, he was elected to New York's 11th District. That same year, he established the Prattsville Advocate newspaper. J. L. Hackstaff was the editor. In the same year, the Prattsville Academy was built. The land was donated by Pratt, and he provided half of the building costs.
In 1848, he received and honorary Master of the Arts degree from Union College. In 1852, he was elected as a delegate to the 1852 Democratic Convention.
Prattsville and his Tannery
First term as Congressman
In 1836, Pratt earned the Democratic nomination for New York's 8th congressional district. He won general election by just short of 3,000 votes. On September 10, 1837 Pratt was appointed to the Committee of the Militia, and on December 11, was appointed to the committee on public buildings.
On March 19, 1838, Pratt introduced a bill to drastically lower postage rates, and argued that high postage costs disproportionately affected the poor, and that it was effectively a tax on intelligence, as it hindered the free passage of information. The bill was passed. He felt so strongly about the price of postage that on his grave he had inscribed "WHILE MEMBER OF CONGRESS; MOVED THE REDUCTION OF POSTAGE; A.D. 1838".
On February 25, 1839, Pratt suggested that public buildings no longer be built out of sandstone, but instead granite of marble, because they absorb very little water compared to sandstone, and therefore required less maintenance He also noted that marble was cheaper than granite, when including building costs.
On July 4, 1838, he announced that he declined re-election, although his constituents strongly wanted him to serve another term.
March 18, 1839, Dry Dock in Brooklyn vs. Philadelphia.
Mint in New York vs. Philadelphia.
During his first term, Pratt never missed a session.
Second term as Congressman
Pratt did not intend to run for Congress again after declining to run for re-election following his first term as Congressman. However, in 1842 he accepted the nomination.
Legacy as a Congressman
As a congressman, Pratt pushed for legislation.
Reduce the cost of postage from $.25 to $.05 in 1838.
Create the Bureau of Engraving and Printing.
Construct public buildings in Washington, DC, of marble or granite, not sandstone.
Construct the Dry Dock in Brooklyn.
Initiate first survey for the Transcontinental Railroad 1844.
While in Congress he began a movement to complete the Washington Monument, and he also started a practice of hanging the Presidential Portraits in the Rotunda.
The epitaph on Pratt's gravestone reads:
WHILE MEMBER OF CONGRESS
MOVED THE REDUCTION OF POSTAGE
A.D. 1838
AND THE SURVEY FOR A RAILROAD
TO THE PACIFIC A.D. 1844
member of the State Senate in 1830; elected as a Democrat to the Twenty-fifth Congress (March 4, 1837 β March 3, 1839); elected to the twenty-eighth Congress (March 4, 1843 β March 3, 1845); chairman, Committee on Public Buildings and Grounds (twenty-eighth Congress).
Zadock Pratt's wives
Pratt had five wives throughout his life.
His first wife was Beda Dickerman, whom he married in 1818. She died of tuberculosis seven months later. In 1821 Pratt married his first wife's sister, Esther Dickerman. Esther died two and a half years later, also from tuberculosis. Pratt married his third wife, Abigail P. Watson of Rensselaerville, on January 12, 1829. Pratt had his only children with Abigail, a boy and two girls. George Watson Pratt was born on April 18, 1830. Zadock's first daughter, Julia P. Pratt, was born in 1832. Two years later his second daughter, Abigail Watson Pratt, was born on January 26, 1834. On February 5, 1834 Abigail, Pratt's third wife, died at twenty-eight years old due to complications from the birth of her daughter, who also died shortly thereafter at age 3 months. Some time later, Pratt married Abigail's sister Mary. They were married until July 17, 1868 when Mary died of unknown causes. One year later Pratt married his fifth wife, Susie A. Grimms of Brooklyn, October 16, 1869. They were married in Grace Episcopal Church, Prattsville; Zadock had given the land and half the money to build the church. They remained married until Zadock's death.
Later life and death
In 1856, Zadock Pratt, at 66 years old, met a teenage Jay Gould, and hired him to survey a tanning site in Pennsylvania. Gould found large tracts of hemlock forest for sale, which impressed Pratt, who then made Gould a partner and manager of the new tannery. By another account, Gould decided that he wanted to build a tannery, found a site, and then sought out Pratt's assistance.
There was $120,000 capital for the project, all of which came from Pratt. He left the tannery to Gould, which expanded rapidly, and the surrounding settlement was called Gouldsboro (also spelled Gouldsborough). However, Pratt became dissatisfied with the returns on his investment, and was concerned that Gould was embezzling. Gould had become acquainted with Charles M. Leupp, a rich merchant from New York City, and had convinced Leupp to loan him the money to buy out Pratt's share. Gould offered Pratt $60,000 for his share of the tannery, which Pratt accepted, transferring Pratt's stake to Leupp.
In 1861, Pratt donated to Prattsville the where Pratt Rock now is.
Death
Pratt became ill with a fever while he and his wife were visiting relatives in Bergen, New Jersey, which had recently been annexed by Jersey City. While recovering he fell down stairs and broke his thigh. He died due to the injury on April 6, 1871. He is buried in the City Cemetery in Prattsville. Pratt Rock depicts his life through a series of stone carvings. His former home at Prattsville, the Zadock Pratt House, was listed on the National Register of Historic Places in 1986, and has operated as a house museum since 1959.
Notes
References
Books
Newspaper articles
Websites
External links
The Zadock Pratt Museum
Zadock Pratt Biographical Information
1790 births
1871 deaths
People from Stephentown, New York
Democratic Party members of the United States House of Representatives from New York (state)
Prattsville, New York
Tanners
People from Greene County, New York
American city founders
19th-century American politicians
Accidental deaths from falls
Accidental deaths in New Jersey
|
```javascript
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.OPEN_REMOTE_MESSAGE_CHANNELS = exports.MESSAGE_CHANNEL_CACHE_BY_IDENTIFIER = exports.CACHE_ITEM_BY_MESSAGE_CHANNEL = void 0;
exports.closeMessageChannel = closeMessageChannel;
exports.getMessageChannel = getMessageChannel;
var _index = require("../utils/index.js");
var MESSAGE_CHANNEL_CACHE_BY_IDENTIFIER = exports.MESSAGE_CHANNEL_CACHE_BY_IDENTIFIER = new Map();
var CACHE_ITEM_BY_MESSAGE_CHANNEL = exports.CACHE_ITEM_BY_MESSAGE_CHANNEL = new WeakMap();
var OPEN_REMOTE_MESSAGE_CHANNELS = exports.OPEN_REMOTE_MESSAGE_CHANNELS = new Set();
function getMessageChannelCache(identifier) {
return (0, _index.getFromMapOrCreate)(MESSAGE_CHANNEL_CACHE_BY_IDENTIFIER, identifier, () => new Map());
}
function getMessageChannel(settings, cacheKeys, keepAlive = false) {
var cacheKey = getCacheKey(settings, cacheKeys);
var cacheItem = (0, _index.getFromMapOrCreate)(getMessageChannelCache(settings.identifier), cacheKey, () => {
var newCacheItem = {
identifier: settings.identifier,
cacheKey,
keepAlive,
refCount: 1,
messageChannel: settings.messageChannelCreator().then(messageChannel => {
OPEN_REMOTE_MESSAGE_CHANNELS.add(messageChannel);
CACHE_ITEM_BY_MESSAGE_CHANNEL.set(messageChannel, newCacheItem);
return messageChannel;
})
};
return newCacheItem;
}, existingCacheItem => {
existingCacheItem.refCount = existingCacheItem.refCount + 1;
});
return cacheItem.messageChannel;
}
function closeMessageChannel(messageChannel) {
var cacheItem = (0, _index.getFromMapOrThrow)(CACHE_ITEM_BY_MESSAGE_CHANNEL, messageChannel);
cacheItem.refCount = cacheItem.refCount - 1;
if (cacheItem.refCount === 0 && !cacheItem.keepAlive) {
getMessageChannelCache(cacheItem.identifier).delete(cacheItem.cacheKey);
OPEN_REMOTE_MESSAGE_CHANNELS.delete(messageChannel);
return messageChannel.close();
} else {
return _index.PROMISE_RESOLVE_VOID;
}
}
function getCacheKey(settings, cacheKeys) {
cacheKeys = cacheKeys.slice(0);
cacheKeys.unshift(settings.identifier);
return cacheKeys.join('||');
}
//# sourceMappingURL=message-channel-cache.js.map
```
|
Ngriil is a village on the north coast of Babeldaob, in the Ngarchelong state of Palau.
References
Ngarchelong
Populated places in Palau
|
Hikmet Farhad oglu Hajiyev () is an Azerbaijani public figure who serves as the Foreign Policy Advisor to the President of Azerbaijan. He also serves as the Head of Foreign Policy Affairs Department of the Presidential Administration.
Early life and diplomatic career
Hajiyev was born in 1979 in Ganja (then known as Kirovabad) and graduated from Secondary School No. 24. He graduated from the Faculty of International Relations and International Law in Baku State University. He also holds a master's degree from NATO's Defense College, the George C. Marshall European Center for Security Studies, and UniversitΓ© libre de Bruxelles. Hajiyev has worked in the system of the Ministry of Foreign Affairs since 2000. In different years, he worked at Azerbaijani representative offices in NATO, Kuwait, and Egypt. From 2014 to 2018, Hajiyev served as the head of the Press Service of the Ministry of Foreign Affairs. On 9 July 2018, he was awarded the Medal for Distinguished Service in Diplomatic Service, and a year later, he was awarded the Order of Merit for Service to the Fatherland of the 2nd degree.
Foreign policy advisor
On 18 September 2018, he was appointed Deputy Head of the Foreign Policy Department of the Presidential Administration. Later that November, he became the head of this department and on 29 November 2019, he became an official assistant to the President. When describing his role in the administration during the July 2020 ArmenianβAzerbaijani clashes, President Aliyev said that he is "speaking with my assistant Hikmet Hajiyev probably 10 times a day".
References
Living people
Government ministers of Azerbaijan
1979 births
People from Ganja, Azerbaijan
Baku State University alumni
|
```html
<html lang="en">
<head>
<title>In-Process Agent - Debugging with GDB</title>
<meta http-equiv="Content-Type" content="text/html">
<meta name="description" content="Debugging with GDB">
<meta name="generator" content="makeinfo 4.8">
<link title="Top" rel="start" href="index.html#Top">
<link rel="prev" href="JIT-Interface.html#JIT-Interface" title="JIT Interface">
<link rel="next" href="GDB-Bugs.html#GDB-Bugs" title="GDB Bugs">
<link href="path_to_url" rel="generator-home" title="Texinfo Homepage">
<!--
Permission is granted to copy, distribute and/or modify this document
any later version published by the Free Software Foundation; with the
Invariant Sections being ``Free Software'' and ``Free Software Needs
Free Documentation'', with the Front-Cover Texts being ``A GNU Manual,''
and with the Back-Cover Texts as in (a) below.
(a) The FSF's Back-Cover Text is: ``You are free to copy and modify
this GNU Manual. Buying copies from GNU Press supports the FSF in
developing GNU and promoting software freedom.''
-->
<meta http-equiv="Content-Style-Type" content="text/css">
<style type="text/css"><!--
pre.display { font-family:inherit }
pre.format { font-family:inherit }
pre.smalldisplay { font-family:inherit; font-size:smaller }
pre.smallformat { font-family:inherit; font-size:smaller }
pre.smallexample { font-size:smaller }
pre.smalllisp { font-size:smaller }
span.sc { font-variant:small-caps }
span.roman { font-family:serif; font-weight:normal; }
span.sansserif { font-family:sans-serif; font-weight:normal; }
--></style>
</head>
<body>
<div class="node">
<p>
<a name="In-Process-Agent"></a>
<a name="In_002dProcess-Agent"></a>
Next: <a rel="next" accesskey="n" href="GDB-Bugs.html#GDB-Bugs">GDB Bugs</a>,
Previous: <a rel="previous" accesskey="p" href="JIT-Interface.html#JIT-Interface">JIT Interface</a>,
Up: <a rel="up" accesskey="u" href="index.html#Top">Top</a>
<hr>
</div>
<h2 class="chapter">30 In-Process Agent</h2>
<p><a name="index-debugging-agent-3049"></a>The traditional debugging model is conceptually low-speed, but works fine,
because most bugs can be reproduced in debugging-mode execution. However,
as multi-core or many-core processors are becoming mainstream, and
multi-threaded programs become more and more popular, there should be more
and more bugs that only manifest themselves at normal-mode execution, for
example, thread races, because debugger's interference with the program's
timing may conceal the bugs. On the other hand, in some applications,
it is not feasible for the debugger to interrupt the program's execution
long enough for the developer to learn anything helpful about its behavior.
If the program's correctness depends on its real-time behavior, delays
introduced by a debugger might cause the program to fail, even when the
code itself is correct. It is useful to be able to observe the program's
behavior without interrupting it.
<p>Therefore, traditional debugging model is too intrusive to reproduce
some bugs. In order to reduce the interference with the program, we can
reduce the number of operations performed by debugger. The
<dfn>In-Process Agent</dfn>, a shared library, is running within the same
process with inferior, and is able to perform some debugging operations
itself. As a result, debugger is only involved when necessary, and
performance of debugging can be improved accordingly. Note that
interference with program can be reduced but can't be removed completely,
because the in-process agent will still stop or slow down the program.
<p>The in-process agent can interpret and execute Agent Expressions
(see <a href="Agent-Expressions.html#Agent-Expressions">Agent Expressions</a>) during performing debugging operations. The
agent expressions can be used for different purposes, such as collecting
data in tracepoints, and condition evaluation in breakpoints.
<p><a name="Control-Agent"></a>
You can control whether the in-process agent is used as an aid for
debugging with the following commands:
<a name="index-set-agent-on-3050"></a>
<dl><dt><code>set agent on</code><dd>Causes the in-process agent to perform some operations on behalf of the
debugger. Just which operations requested by the user will be done
by the in-process agent depends on the its capabilities. For example,
if you request to evaluate breakpoint conditions in the in-process agent,
and the in-process agent has such capability as well, then breakpoint
conditions will be evaluated in the in-process agent.
<p><a name="index-set-agent-off-3051"></a><br><dt><code>set agent off</code><dd>Disables execution of debugging operations by the in-process agent. All
of the operations will be performed by <span class="sc">gdb</span>.
<p><a name="index-show-agent-3052"></a><br><dt><code>show agent</code><dd>Display the current setting of execution of debugging operations by
the in-process agent.
</dl>
<ul class="menu">
<li><a accesskey="1" href="In_002dProcess-Agent-Protocol.html#In_002dProcess-Agent-Protocol">In-Process Agent Protocol</a>
</ul>
</body></html>
```
|
The John Carner Jr. House is a historic house located at 1310 Best Road in East Greenbush, Rensselaer County, New York.
Description and history
The house was built in about 1800 and is a two-story, five-bay wide, two-bay deep, heavy timber-framed dwelling designed in the Federal style. It is sheathed in clapboards and is topped by a medium pitched gable roof. It has a two-story rear kitchen wing, believed to be an earlier structure incorporated into the newly built house. It was last modified in the 1930s. Also on the property is a contributing three-bay English barn, two smaller barns, a potting shed, a corn crib, and a well house.
It was listed on the National Register of Historic Places on January 16, 2004.
References
Houses on the National Register of Historic Places in New York (state)
Federal architecture in New York (state)
Houses completed in 1800
Houses in Rensselaer County, New York
National Register of Historic Places in Rensselaer County, New York
|
Rosalio D. Martires (born September 9, 1951), also known as Yoyong Martirez, is a Filipino retired basketball player, actor and comedian. He is a former councilor for the City of Pasig.
Basketball career
Martires played for San Miguel in the Manila Industrial and Commercial Athletic Association and the Philippine Basketball Association between 1972 and 1982.
In 1972, he participated at the Olympic Games in Munich, Germany as a member of the Philippine national basketball team. He was a fleet-footed guard specializing in steals/interceptions and assists.
Acting career
Besides from playing Basketball, Yoyong becomes an iconic Filipino comedian mostly in the 80's and also even 90's as well. His debut movie was, Ma'am May We Go Out? with Tito, Vic & Joey, released in 1985 by Viva Entertainment. He also appeared on comedy shows like Iskul Bukol, Mixed N.U.T.S, TODAS, Daddy Di Do Du, Fulhaus, 1 For 3, Vampire Ang Daddy Ko, currently he's still both active in movies and TV from the 70s to present.
Filmography
Films
Television
Bawal Ang Game Show (TV5, 2021)
John En Ellen! (TV5, 2021)
Fill In The Banks (TV5, 2021)
Chika Besh (TV5, 2020)
O My Dad (TV5, 2020)
Mars Pa More (GMA 7, 2020)
Daddys Gurl (GMA 7, 2020)
Tunay Na Buhay (GMA 7, 2019)
Bossing & Ai (GMA 7, 2018)
Dear Uge (GMA 7, 2016)
Vampire Ang Daddy Ko (GMA 7, 2015-2018) guest
No Harm, No Foul (TV5, 2015)
Sabado Badoo (GMA 7, 2015)
Pepito Manaloto (GMA 7, 2015)
Mars (GMA News TV 27 "now GTV 27", 2014-2019) - guest
Celebrity Samurai (TV5, 2013)
Pidols Wonderland (TV5, 2012)
My Darling Aswang (TV5, 2011)
The Jose & Wally Show Starring Vic Sotto (TV5, 2011)
Star Confessions (TV5, 2010)
Show Me The Manny (GMA 7, 2009)
Talentadong Pinoy (TV5, 2009-2014) - guest celebrity judge
S Files (GMA 7, 2008-2015)
Fulhaus (GMA 7, 2007-2013) - guest
Bubble Gang (GMA 7, 2005 β present) - guest
Home Along Da Airport (ABS-CBN 2, 2003-2005)
Daddy Di Do Du (GMA 7, 2002-2007) - guest
Super Klenk (GMA 7, 2000) - guest
The Buzz (ABS-CBN 2, 1999-2015) - guest
1 For 3 (GMA 7, 1997-2002) - guest
Wow Mali! (TV5, 1996-2006)
Okay Ka Fairy Ko The Sitcom (GMA 7, 1995-1997)
Eat Bulaga (ABS-CBN 2, 1994-1995; GMA 7 1995 β present) - guest
Mixed N.U.T.S. (GMA 7, 1994-1997)
Rock & Roll 2000 (TV5, 1993)
Purungtong (RPN 9, 1993) - guest
Home Along Da Riles (ABS-CBN 2, 1992-2003)
TVJ On 5 (TV5, 1992)
Four Da Boys (IBC 13, 1989) - guest
Hapi House (IBC 13, 1988) - guest
TODAS (IBC 13, 1985-1988) - guest
Plaza 1899 (RPN 9, 1987) - guest
Goin Bananas (IBC 13, 1986-1987; ABS-CBN 2 1987-1991)
Family 3 Plus 1 (GMA 7, 1985)
John En Marsha (RPN 9, 1985-1990) - guest
Iskul Bukol (IBC 13, 1977-1989) - guest
References
External links
IMDb Profile - Rosalio "Yoyong" Martirez
1951 births
Living people
People from Catbalogan
Actors from Pasig
Filipino people of Chinese descent
Filipino male comedians
Filipino actor-politicians
Filipino Roman Catholics
Nacionalista Party politicians
Basketball players from Samar (province)
Metro Manila city and municipal councilors
Olympic basketball players for the Philippines
Basketball players at the 1972 Summer Olympics
Philippines men's national basketball team players
Filipino men's basketball players
1974 FIBA World Championship players
Basketball players at the 1974 Asian Games
Asian Games competitors for the Philippines
Filipino sportsperson-politicians
Filipino male film actors
Filipino male television actors
|
SS Murray M. Blum was a Liberty ship built in the United States during World War II. She was named after Murray M. Blum, the radio operator of who drowned, 3 December 1943, attempting to save an overboard crewman.
Construction
Murray M. Blum was laid down on 19 September 1944, under a Maritime Commission (MARCOM) contract, MC hull 2381, by J.A. Jones Construction, Brunswick, Georgia; she was sponsored by Mrs. Sylvia Blum, the mother of the ships namesake, and launched on 25 October 1944.
History
She was allocated to Mississippi Shipping Co., Inc., on 7 November 1944. On 17 December 1947, she was laid up in the National Defense Reserve Fleet, in Beaumont, Texas. On 30 April 1952, she was laid up in the National Defense Reserve Fleet, in Mobile, Alabama. On 12 March 1971, she was sold for $44,100, to Pinto Island Metals Company, for scrapping. She was removed from the fleet on 8 April 1971.
References
Bibliography
Liberty ships
Ships built in Brunswick, Georgia
1944 ships
Beaumont Reserve Fleet
Mobile Reserve Fleet
|
Frijid Pink is the debut album by American rock band Frijid Pink. It was originally released early 1970 by London Records' now-defunct Parrot subsidiary label (cat. no. PAS 71033). "Tell Me Why" reached #70 in Canada in May 1969.
Track listing errors
The album was released on German CD (1991, Repertoire Records) including two bonus tracks ("Heartbreak Hotel" and "Music For The People") that were originally released as singles in 1970 and 1971, respectively. One of the CD later re-releases, being the most widely distributed copies, were missing tracks 5 and 6 of the nine tracks on the original LP.
Track listing
"God Gave Me You" (Gary Ray Thompson, Tom Beaudry) - 3:35
"Crying Shame" (Michael Valvano) - 3:11
"I'm on My Way" (Thompson, Beaudry) - 4:34
"Drivin' Blues" (Thompson, Beaudry) - 3:14
"Tell Me Why" (Thompson, Beaudry) - 2:50
"End of the Line" (Thompson, Beaudry) - 4:07
"House of the Rising Sun" (Traditional, arr. Frijid Pink) - 4:44
"I Want to Be Your Lover" (Thompson, Beaudry, Valvano) - 7:30
"Boozin' Blues" (Thompson, Beaudry) - 6:01
"Heartbreak Hotel" (Mae Boren Axton, Thomas Durden, Elvis Presley) (bonus track) - 2:49
"Music for the People" (Thompson, Beaudry) (bonus track) - 2:54
Charts
Personnel
Kelly Green - lead vocals
Gary Ray Thompson - guitar
Tom Harris - bass
Richard Stevers - drums
Additional:
Larry Zelanka - keyboards
References
1970 debut albums
Frijid Pink albums
Parrot Records albums
|
Star Sports was an East Asian pay television sports channel broadcast to Mainland China and South Korea, operated by Fox Networks Group Asia Pacific, a subsidiary of The Walt Disney Company (Southeast Asia). It was previously part of the Fox Sports operations in East and Southeast Asia, but this version retained Star Sports name; ESPN Mainland China was instead renamed Star Sports 2.
History
Hong Kong-based Star TV launched Prime Sports (later renamed Star Sports) in partnership with American company TCI, which owned Prime-branded regional sports channels. The channel was broadcast across Asia, as with the footprint of AsiaSat 1. Star TV have since regionalised the channel with a number of versions, including a dedicated version for Taiwan. Later, ESPN have joined in the region as a competitor to Star Sports.
In October 1996, ESPN and Star Sports have agreed to combine their operations across Asia. As a result, a joint venture named, ESPN Star Sports was formed, to be headquartered in Singapore.
In June 2012, it was announced that News Corporation would buy ESPN International's share in ESPN Star Sports. Following the News Corporation take over, ESPN all over Asia would be relaunched as Fox Sports but the relaunch of ESPN Star Sports as Fox Sports did not affect much of East Asia, as Star Sports continued to broadcast in Mainland China and South Korea kept the brand, and instead, the version of ESPN for Mainland China was renamed as Star Sports 2 on 10 January 2014.
Alongside 16 other channels owned by Disney, the two Star Sports channels was shut down on October 1, 2021, after which the channel spaces created by Prime Sports Asia in 1991 and ESPN Asia in 1992, both folded and ceased to exist.
Channels
Star Sports 1
Star Sports 2: This channel was not available in South Korea only in Mainland China.
Programming
Sporting events covered by Star Sports include:
Australian Rules Football
Australian Football League
Baseball
Major League Baseball:
Select spring training and regular season games (home games only and select road games)
ESPN Major League Baseball (Sunday Night Baseball and select special games, tie-breaker and Home Run Derby)
MLB All-Star Game (MLB International feed)
Postseason (wild card, Division Series and Championship Series)
World Series (MLB International feed)
World Baseball Classic
Korea Baseball Organization (ESPN feed)
Basketball
US NCAA Men's College Basketball (Fox College Hoops)
BIG3
Boxing
Versus
World Boxing Matches
Bull Riding
Professional Bull Riders events
Cricket
ICC
Cricket World Cup
Under-19 Cricket World Cup (all matches available on Fox+, highlights and live coverage of final on television)
Women's Cricket World Cup
Football
AFC Champions League (from play-offs, for West Zone play-offs until quarter finals)
AFC U-19 Championship
AFC U-16 Championship
AFC Futsal Championship
AFC Futsal Club Championship
Danish Super League (one match per week, 2019β2021 (originally from June 2020 with the remaining matches in 2019β20))
DBU Pokalen (three matches (both semi finals and a final) in 2019β20)
Golf
The Masters Tournament
U.S. Open Championship
The Open Championship
PGA Championship
PGA EuroPro Tour
ANA Inspiration
United States Women's Open Championship (golf)
Women's PGA Championship
Ricoh Women's British Open
The Evian Championship
Ladies European Tour (Highlights only)
LPGA Tour
Kickboxing
Kunlun Fight
Mixed Martial Arts
Ultimate Fighting Championship
Motorsports
Formula One
FIA Formula 2 Championship
FIA Formula 3 Championship
FIM Motocross World Championship
Superbike World Championship
World Touring Car Cup (only for highlights)
MotoGP
WeatherTech SportsCar Championship
FIA World Endurance Championship (only for highlights)
IndyCar Series
Formula E
Supercars Championship
Rugby
Union
Global Rapid Rugby
Tennis
Australian Open
French Open
Wimbledon
US Open
Fed Cup (final only)
ATP Cup
Laver Cup
Hawaii Open
News
SportsCenter
ESPN FC
See also
Fox Sports (Asian TV network)
Star Sports Network India
Fox Sports' (and previously ESPN Star Sports') partnership in South Korea:
JTBC3 Fox Sports
SBS ESPN
MBC ESPN
References
External links
for TV listings
Star Sports
Prime Sports
Defunct television channels
ESPN media outlets
Television channels and stations established in 1991
Television channels and stations disestablished in 2021
|
Ronald Micura is an Austrian chemist. He received his PhD working in the field of phycobilin pigments under the supervision of Karl Grubmayr in 1995. He was awarded the Lieben Prize in 2005.
Micura studied chemistry at the University of Linz, where he also received his Ph.D. in 1995. After a postdoc position at the University of Zurich and the Skaggs Institute for Chemical Biology, he became professor at the University of Innsbruck in 2000.
References
Year of birth missing (living people)
Living people
Austrian chemists
Johannes Kepler University Linz alumni
|
```html
<!DOCTYPE html>
<html lang=en>
<head>
<!-- Global site tag (gtag.js) - Google Analytics -->
<link rel=preload as=script href=../js/jquery.min.js>
<link rel=preload as=script href=../js/bootstrap.min.js>
<link rel=preload as=script href=../js/tracks.min.js>
<link rel=preload as=style href=../css/schedule.css>
<link rel=preload as=style href=../css/font-awesome.min.css>
<link rel=preload as=style href=../css/bootstrap.min.css>
<link rel=preload as=font href="path_to_url" crossorigin>
<meta charset=utf-8>
<meta http-equiv=X-UA-Compatible content="IE=edge">
<meta name=viewport content="width=device-width,initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<meta name=description content="FOSSASIA Summit 2017 Schedule">
<meta name=author content="">
<title>FOSSASIA Summit 2017</title>
<!-- Bootstrap core CSS -->
<!-- Latest compiled and minified CSS -->
<link rel="shortcut icon" href="" type=image/x-icon>
<link href="path_to_url" rel=stylesheet>
<link rel=stylesheet href=../css/font-awesome.min.css>
<link rel=stylesheet href=../css/bootstrap.min.css>
<link rel=stylesheet href=../css/schedule.css>
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="path_to_url"></script>
<script src="path_to_url"></script>
<![endif]-->
</head>
<body>
<a href=#track-list class=skip>Skip to content</a>
<a class=scroll href=# id=down-button data-scroll-direction=0>
<i class="fa fa-chevron-up" aria-hidden=true></i>
</a>
<a id=top></a>
<!-- Fixed navbar -->
<header role=banner class="navbar-fixed-top navbar-default js-navbar">
<div class=container>
<div class="navbar-header navbar-left pull-left">
<a class=navbar-brand style=padding:px href=../ >
<img alt="../FOSSASIA Summit 2017" class="logo logo-dark" src=../images/de0938ef-4786-44f8-9794-08200f9ccc37.png>
</a>
</div>
<div class="navbar-header navbar-right pull-right">
<span class="pull-right dropdown">
<button class=navbar-toggle type=button data-toggle=dropdown><i class="fa fa-lg fa-paper-plane" aria-hidden=true></i> <span class=caret></span> </button>
<ul class="dropdown-menu list-menu">
<li><a href=path_to_url id=social-icons><i class="fa fa-lg fa-twitter" aria-hidden=true title=twitter></i></a></li>
<li><a href=path_to_url id=social-icons><i class="fa fa-lg fa-facebook" aria-hidden=true title=facebook></i></a></li>
<li><a href=path_to_url id=social-icons><i class="fa fa-lg fa-youtube-play" aria-hidden=true title=youtube-play></i></a></li>
<li><a href=path_to_url id=social-icons><i class="fa fa-lg fa-flickr" aria-hidden=true title=flickr></i></a></li>
<li><a href=path_to_url id=social-icons><i class="fa fa-lg fa-github" aria-hidden=true title=github></i></a></li>
<li><a href=path_to_url id=social-icons><i class="fa fa-lg fa-linkedin" aria-hidden=true title=linkedin></i></a></li>
</ul>
</span>
<button class="navbar-toggle pull-right">
<a id=speakerslink href=../speakers.html>Speakers</a>
</button>
<span class="pull-right dropdown">
<button class=navbar-toggle type=button data-toggle=dropdown>Schedule <span class=caret></span> </button>
<ul class="dropdown-menu list-menu">
<li><a id=schedulelink href=../schedule.html><i class="fa fa-lg fa-calendar" aria-hidden=true></i> Schedule</a></li>
<li><a id=trackslink href=../tracks.html><i class="fa fa-lg fa-map-signs" aria-hidden=true></i> Tracks</a></li>
<li><a id=roomslink href=../rooms.html><i class="fa fa-lg fa-building" aria-hidden=true></i> Rooms</a></li>
</ul>
</span>
<a id=homelink href=../index.html><button class="navbar-toggle pull-right homelink"><i class="fa fa-lg fa-home" aria-hidden=true></i></button></a>
</div>
<div class="hidden-lg hidden-md hidden-sm clearfix"></div>
<div class="side-collapse in">
<nav role=navigation class=navbar-collapse>
<div class=search-container>
<input id=search-box type=text class="search-box fossasia-filter">
<label for=search-box><span class=search-icon><i class="fa fa-search" aria-hidden=true></i></span></label>
</div>
<ul class="nav navbar-nav navbar-right">
<li class=navlink><a id=homelink href=../index.html>Home</a></li>
<li class=navlink><a id=schedulelink href=../schedule.html>Schedule</a></li>
<li class=navlink><a id=trackslink href=../tracks.html>Tracks</a></li>
<li class=navlink><a id=roomslink href=../rooms.html>Rooms</a></li>
<li class=navlink><a id=speakerslink href=../speakers.html>Speakers</a></li>
<li class="pull-left social-icons"><a href=path_to_url id=social-icons><i class="fa fa-lg fa-twitter" aria-hidden=true title=twitter></i></a></li>
<li class="pull-left social-icons"><a href=path_to_url id=social-icons><i class="fa fa-lg fa-facebook" aria-hidden=true title=facebook></i></a></li>
<li class="pull-left social-icons"><a href=path_to_url id=social-icons><i class="fa fa-lg fa-youtube-play" aria-hidden=true title=youtube-play></i></a></li>
<li class="pull-left social-icons"><a href=path_to_url id=social-icons><i class="fa fa-lg fa-flickr" aria-hidden=true title=flickr></i></a></li>
<li class="pull-left social-icons"><a href=path_to_url id=social-icons><i class="fa fa-lg fa-github" aria-hidden=true title=github></i></a></li>
<li class="pull-left social-icons"><a href=path_to_url id=social-icons><i class="fa fa-lg fa-linkedin" aria-hidden=true title=linkedin></i></a></li>
</ul>
</nav>
</div>
</div>
</header>
<div class="container session-container">
<div class="row single-session" id=3028>
<a href=javascript:history.back() id=backButton>
<i class="fa fa-3x fa-chevron-left" aria-hidden=true></i>
</a>
<h3> Friday, 17th Mar </h3>
<div class=eventtime><span class=time-track>12:10 - 12:19</span></div>
<div class=session-content>
<div class="sizeevent event event-title" id=title-3028 style=background-color:#ff3737;color:#fff;margin-right:0;cursor:unset>
#CodeHeat Contest Ceremony | Open Tech
<a class="bookmark features">
<i class="fa fa-star" aria-hidden=true>
</i>
</a>
</div>
<div>
<div>
<hr class=clear-both>
</div>
<div id=desc-3028 class=session-speakers-list aria-expanded=false aria-controls=desc-3028>
<a href=../speakers.html#hong-phuc-dang2240>
<div class=session-speakers-less>
<p class=session-speakers>
<img onerror='this.onerror=null,this.src="../images/avatar.png"' src=../images/speakers/thumbnails/c91f2759-50ba-41c2-9fab-8362d2f7a319.jpg class="lazy card-img-top speaker-image-large">
</p>
<span class=desc-speaker-name>Hong Phuc Dang</span>
</div>
</a>
<div class="blacktext session-speaker-social margin-down-10">
<div class=session-speakers-more>
</div>
</div>
<div class="blacktext session-speaker-social">
<div class=session-speakers-more>
<a class="session-lin social speaker-social clickable-link">
<i class="fa fa-share"></i> Share
</a>
<div class="social-buttons row">
<div class="fb-share facebook social-button">
<i class="fa fa-facebook fa s-button" aria-hidden=true></i>
</div>
<div class="tw-share twitter social-button">
<i class="fa fa-twitter fa s-button" aria-hidden=true></i>
</div>
<div class="go-share google social-button">
<i class="fa fa-google-plus fa s-button" aria-hidden=true></i>
</div>
<div class="li-share linkedin social-button">
<i class="fa fa-linkedin fa s-button" aria-hidden=true></i>
</div>
<div class="row social-link">
<input class=speakers-inputbox type=text onclick=this.select() value=base#3028 readonly=readonly>
</div>
</div>
</div>
</div>
<hr class=clear-both>
<div class=blacktext>
<p> <a href=../rooms.html#2017-03-17-Annexe_Hall_(Ground_Floor)>Annexe Hall (Ground Floor)</a></p>
<p>Friday, 17th Mar, <span>12:10 - 12:19</span></p>
<p>
</p><ul class=session-ul>
<li style=background-color:#ff3737;color:#fff class=titlecolor></li>
<li><a href=../tracks.html#2017-03-17-Open_Tech> Open Tech </a> </li>
</ul>
<p></p><br>
</div>
</div>
</div>
</div>
</div>
</div>
<input id=gcalendar-id type=hidden value="">
<input id=gcalendar-key type=hidden value="">
<div class=footer-container>
<footer class=classic>
<div class=container>
<div class="row ui-sortable">
<div id=menuItem class="col-sm-2 col-md-2 col-xs-12">
<ul class=menu>
<li><a target=_self href=../index.html#description>About</a></li>
<li><a target=_self href=../index.html#ticket-button>Tickets</a></li>
<li><a target=_self href=../schedule.html>Schedule</a></li>
<li><a target=_self href=../tracks.html>Tracks</a></li>
<li><a target=_self href=../rooms.html>Rooms</a></li>
<li><a target=_self href=../speakers.html>Speakers</a></li>
<li><a class="inner-link back-to-top" href=#top>Back To Top</a></li>
</ul>
</div>
<div id=copyright class="col-sm-7 col-md-7 col-xs-12">
<p>
<a href=""><img src=path_to_url
© 2017
FOSSASIA and Science Centre Singapore.
The website and its contents are licensed under
<a href=""> Attribution. </a>
The site was generated using the Open Event format on the <a href=path_to_url >eventyay</a> <a href=path_to_url >site generator</a>. Please submit issues <a href=path_to_url
</p>
</div>
<div class="contact-details col-sm-3 col-md-3 col-xs-12">
<ul class=contact-methods>
<li class=address>
<i class="fa fa-map-marker"></i>
<div>, Science Centre Singapore, 15 Science Centre Road Singapore 609081 </div>
</li>
</ul>
</div>
</div>
<div class="row ui-sortable">
<div class="col-sm-12 text-center">
<ul class=social-profiles>
<li class="pull-left social-icons"><a href=path_to_url id=social-icons><i class="fa fa-lg fa-twitter" aria-hidden=true title=twitter></i></a></li>
<li class="pull-left social-icons"><a href=path_to_url id=social-icons><i class="fa fa-lg fa-facebook" aria-hidden=true title=facebook></i></a></li>
<li class="pull-left social-icons"><a href=path_to_url id=social-icons><i class="fa fa-lg fa-youtube-play" aria-hidden=true title=youtube-play></i></a></li>
<li class="pull-left social-icons"><a href=path_to_url id=social-icons><i class="fa fa-lg fa-flickr" aria-hidden=true title=flickr></i></a></li>
<li class="pull-left social-icons"><a href=path_to_url id=social-icons><i class="fa fa-lg fa-github" aria-hidden=true title=github></i></a></li>
<li class="pull-left social-icons"><a href=path_to_url id=social-icons><i class="fa fa-lg fa-linkedin" aria-hidden=true title=linkedin></i></a></li>
</ul>
</div>
</div>
</div>
</footer>
</div>
<script src=../js/jquery.min.js></script>
<script src=../js/bootstrap.min.js></script>
<script src=../js/session.min.js></script>
<script src=../js/tracks.min.js></script>
<script src=../js/sweetalert.min.js></script>
<script src=../js/main.min.js></script>
<script>
var eventInfo = {};
eventInfo.name = "../FOSSASIA Summit 2017";
eventInfo.name = eventInfo.name.substring(eventInfo.name.lastIndexOf('/') + 1);
let videoURL = "";
let id = "3028";
$('#add-to-calendar').click(function() {
main.handleAuthClick('#CodeHeat Contest Ceremony','Annexe Hall (Ground Floor)','2017-03-17T12:10:00+00:00','2017-03-17T12:19:00+00:00','Asia/Singapore','');
});
if($('#video-' + id).length === 0) {
if (videoURL !== null && videoURL !== '') {
if (videoURL.indexOf('v=') !== -1) {
videoURL = videoURL.split('v=')[1].replace(/[&#].*/, '');
$('#desc-' + id).prepend('<iframe id = "video-' + id + '" class = "video-iframe col-xs-12 col-sm-12 col-md-12" src="path_to_url + videoURL + '" frameborder="0" allowfullscreen></iframe>');
}
else if (videoURL.indexOf('path_to_url !== -1) {
videoURL = videoURL.split('path_to_url
console.log(videoURL);
$('#desc-' + id).prepend('<iframe id = "video-' + id + '" class = "video-iframe col-xs-12 col-sm-12 col-md-12" src="path_to_url + videoURL + '" frameborder="0" allowfullscreen></iframe>');
}
}
}
</script>
</body>
</html>
```
|
```xml
import React from 'react';
import { fireEvent, render, screen } from '../../test/test-react-testing-library';
import CopyToClipBoard from './CopyToClipBoard';
Object.assign(navigator, {
clipboard: { writeText: jest.fn().mockImplementation(() => Promise.resolve()) },
});
describe('CopyToClipBoard component', () => {
test('should copy text to clipboard', async () => {
const copyThis = 'copy this';
render(
<CopyToClipBoard dataTestId={'copy-component'} text={copyThis} title={`npm i verdaccio`} />
);
expect(screen.getByTestId('copy-component')).toBeInTheDocument();
const copyComponent = await screen.findByTestId('copy-component');
await fireEvent.click(copyComponent);
expect(navigator.clipboard.writeText).toHaveBeenCalledWith(copyThis);
});
});
```
|
```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 walpb
import "errors"
var (
ErrCRCMismatch = errors.New("walpb: crc mismatch")
)
func (rec *Record) Validate(crc uint32) error {
if rec.Crc == crc {
return nil
}
rec.Reset()
return ErrCRCMismatch
}
// ValidateSnapshotForWrite ensures the Snapshot the newly written snapshot is valid.
//
// There might exist log-entries written by old etcd versions that does not conform
// to the requirements.
func ValidateSnapshotForWrite(e *Snapshot) error {
// Since etcd>=3.5.0
if e.ConfState == nil && e.Index > 0 {
return errors.New("Saved (not-initial) snapshot is missing ConfState: " + e.String())
}
return nil
}
```
|
Yona (Jonathan) Reiss (born 1966 in New York City) is an American rabbi, Torah scholar, attorney, lecturer, and jurist, and the current Av Beth Din of the Chicago Rabbinical Council (CRC).
From 2008 to 2013 Reiss was the Max and Marion Grill Dean of Rabbi Isaac Elchanan Theological Seminary (RIETS). From 1998 to 2008 he was Director of the Beth Din of America .
Education
Reiss attended the Yeshiva University High School for Boys in New York. Later, he learned in Yeshivat Shaalvim in Israel before graduating summa cum laude from Yeshiva University in 1987 with a BA in philosophy. He received his rabbinic ordination from RIETS (Rabbi Issac Elchanan Theological Seminary) in 1991, where he also earned the distinction of Yadin Yadin later in 2002. He received his J.D. from Yale Law School in 1992, and served as a senior editor of the Yale Law Journal.
Career
From 1992 to 1998, Reiss worked as an associate at the international law firm of Cleary Gottlieb Steen & Hamilton in New York City. He maintained an association with the firm until 1999. He is a member of the New York State Bar Association, a certified mediator for the City of New York court system, and a member of the Family and Divorce Mediation Council for New York.
In 1999, Reiss joined the Beth Din of America, and a year later assumed the position of Director, a position he served until 2009, when he was appointed the Dean of Rabbi Isaac Elchonon Theological Seminary (RIETS).
Reiss serves on the editorial board of Tradition magazine. A frequent writer on a variety of topics relating to both Jewish and secular law, he has published widely in Jewish publications, as well as in the Wall Street Journal and New York Law Journal.
In 2013, Reiss stepped down as Dean at Yeshiva University and assumed the position of Rosh Yeshiva. He was succeeded by Rabbi Menachem Penner. Since 2013, Reiss serves as the Av Beth Din of the Chicago Rabbinical Council.
Personal life
Reiss and his wife Mindy have five sons and a daughter and live in Chicago, IL. Reiss is the son of Harry Reiss, a Rockland County town councilman who taught at Yeshiva University and Rockland Community College.
References
Yeshiva University alumni
Yale Law School alumni
Yeshiva University faculty
1965 births
Living people
Orthodox rabbis from New York City
Rabbis from Chicago
People associated with Cleary Gottlieb Steen & Hamilton
21st-century American rabbis
|
Maija Avotins and Lisa McShea defeated Pam Nelson and Julie Steven in the final, 2β6, 6β4, 6β3 to win the girls' doubles tennis title at the 1992 Wimbledon Championships.
Seeds
Laurence Courtois / Nancy Feber (semifinals)
Lindsay Davenport / Chanda Rubin (first round, withdrew)
Zuzana NemΕ‘Γ‘kovΓ‘ / Ludmila RichterovΓ‘ (second round)
Maija Avotins / Lisa McShea (champions)
MarΓa Landa / Ninfa Marra (quarterfinals)
Mami Donoshiro / Ai Sugiyama (second round, withdrew)
Pam Nelson / Julie Steven (final)
Rossana de los RΓos / Larissa Schaerer (second round)
Draw
Finals
Top half
Bottom half
References
External links
Girls' Doubles
Wimbledon Championship by year β Girls' doubles
|
Robert Joseph Fisher (born September 24, 1959) is an American prelate of the Roman Catholic Church who has been serving as an auxiliary bishop for the Archdiocese of Detroit since 2016.
Biography
Early life
Robert Fisher was born in Detroit, Michigan, on September 24, 1959, the oldest of the four children of Robert and Trudy (Torzewski) Fisher. He attended Epiphany and St. Bede Elementary schools, both in Detroit, then went to the University of Detroit Jesuit High School. During his summer breaks, Fisher worked at the Catholic Youth Organization (CYO) at their summer camps near Port Sanilac, Michigan. He graduated from the University of Detroit with a Bachelor of Science degree in management science.
After finishing college, Fisher started working full time for CYO in their camping department. By 1986, he had decided to enter the priesthood and began his studies at Sacred Heart Major Seminary in Detroit, eventually earning a Master of Divinity degree.
Priesthood
Fisher was ordained to the priesthood for the Archdiocese of Detroit by Cardinal Adam Maida on June 27, 1992. After his ordination, Fisher was assigned as associate pastor to Our Lady Star of the Sea Parish in Grosse Pointe Woods, Michigan. In 1995, Fisher was appointed as director of priestly vocations for the archdiocese.
In 2000, Fisher was appointed as pastor of St. Angela Parish in Roseville, Michigan. He was transferred in 2004 to serve as pastor of St. Lawrence Parish in Utica, Michigan, a post he would hold for the next 11 years. In 2014, Fisher was appointed rector of the National Shrine of the Little Flower Basilica in Royal Oak, Michigan, a position he still holds. Fisher also served on the Catholic Schools Council and the CYO board of directors.
Auxiliary Bishop of Detroit
Pope Francis appointed Fisher as an auxiliary bishop for the Archdiocese of Detroit and as titular bishop of Forum Pompilii on November 23, 2016. On January 25, 2017, he was installed and consecrated by Archbishop Allen Vigneron at the Cathedral of the Most Blessed Sacrament in Detroit. Fisher chose as his episcopal motto Per Caritatem Servite Invicem, meaning "Out of love, place yourselves at one anotherβs service", from Galatians 5:13.
Fisher currently serves as episcopal vicar and regional moderator for the Northeast Region of the archdiocese.
See also
Catholic Church hierarchy
Catholic Church in the United States
Historical list of the Catholic bishops of the United States
List of Catholic bishops of the United States
Lists of patriarchs, archbishops, and bishops
References
External links
Roman Catholic Archdiocese of Detroit
1959 births
Living people
Clergy from Detroit
21st-century Roman Catholic bishops in the United States
Bishops appointed by Pope Francis
|
```xml
import type { FC } from 'react';
import { c } from 'ttag';
import { Exporter } from '@proton/pass/components/Export/Exporter';
import { SettingsPanel } from '@proton/pass/components/Settings/SettingsPanel';
import { pageMessage, sendMessage } from '@proton/pass/lib/extension/message';
import { WorkerMessageType } from '@proton/pass/types';
import { throwError } from '@proton/pass/utils/fp/throw';
const checkLock = async () => {
const result = await sendMessage(
pageMessage({
type: WorkerMessageType.AUTH_CHECK,
payload: { immediate: true },
})
);
return result.type === 'success' && result.ok && !result.locked;
};
const confirmPassword = async (password: string) => {
const result = await sendMessage(
pageMessage({
type: WorkerMessageType.AUTH_CONFIRM_PASSWORD,
payload: { password },
})
);
return result.type === 'success' && result.ok;
};
export const Export: FC = () => (
<SettingsPanel title={c('Label').t`Export`}>
<Exporter
onConfirm={async (password) => {
if (!(await confirmPassword(password))) throwError({ message: 'Session not confirmed' });
if (!(await checkLock())) throwError({ message: 'Session is locked' });
}}
/>
</SettingsPanel>
);
```
|
Pope Timothy II of Alexandria (died 477), also known as Timothy Ailuros (from Greek ΞἴλοΟ
ΟΞΏΟ, "cat," because of his small build or in this case probably "weasel"), succeeded twice in supplanting the Chalcedonian patriarch of Alexandria.
Before he became a bishop, Timothy was a monk at the Eikoston. He was elected and consecrated after the death of the exiled Dioscorus of Alexandria in 454 by the Miaphysite opponents of the Council of Chalcedon and became a rival of the pro-Chalcedon bishop Proterius.
According to pro-Chalcedon sources, after Proterius of Alexandria, has been installed as patriarch after the Council of Chalcedon, he was murdered at Timothy's instigation at the baptistery during Easter. In the Anti-Chalcedon Sources, Proterius was murdered on the order of the Byzantine General in Charge of Egypt after a heated exchange
In 460, Emperor Leo I expelled him from Alexandria and installed the Chalcedonian Timothy III Salophakiolos as patriarch.
In 475, Timothy was brought back to Alexandria by Basiliscus, where he ruled as patriarch until his death. According to John of Nikiu, the emperor Zeno sent an officer to summon him, but when the officer arrived, Timothy told him βThe emperor will not see my faceβ and immediately fell ill and died.
References
Sources
Timothy II Aelurus of Alexandria
5th-century Popes and Patriarchs of Alexandria
Year of birth unknown
|
```go
package org
import (
"net/http"
"code.gitea.io/gitea/models/db"
issues_model "code.gitea.io/gitea/models/issues"
"code.gitea.io/gitea/modules/label"
repo_module "code.gitea.io/gitea/modules/repository"
"code.gitea.io/gitea/modules/web"
"code.gitea.io/gitea/services/context"
"code.gitea.io/gitea/services/forms"
)
// RetrieveLabels find all the labels of an organization
func RetrieveLabels(ctx *context.Context) {
labels, err := issues_model.GetLabelsByOrgID(ctx, ctx.Org.Organization.ID, ctx.FormString("sort"), db.ListOptions{})
if err != nil {
ctx.ServerError("RetrieveLabels.GetLabels", err)
return
}
for _, l := range labels {
l.CalOpenIssues()
}
ctx.Data["Labels"] = labels
ctx.Data["NumLabels"] = len(labels)
ctx.Data["SortType"] = ctx.FormString("sort")
}
// NewLabel create new label for organization
func NewLabel(ctx *context.Context) {
form := web.GetForm(ctx).(*forms.CreateLabelForm)
ctx.Data["Title"] = ctx.Tr("repo.labels")
ctx.Data["PageIsLabels"] = true
ctx.Data["PageIsOrgSettings"] = true
if ctx.HasError() {
ctx.Flash.Error(ctx.Data["ErrorMsg"].(string))
ctx.Redirect(ctx.Org.OrgLink + "/settings/labels")
return
}
l := &issues_model.Label{
OrgID: ctx.Org.Organization.ID,
Name: form.Title,
Exclusive: form.Exclusive,
Description: form.Description,
Color: form.Color,
}
if err := issues_model.NewLabel(ctx, l); err != nil {
ctx.ServerError("NewLabel", err)
return
}
ctx.Redirect(ctx.Org.OrgLink + "/settings/labels")
}
// UpdateLabel update a label's name and color
func UpdateLabel(ctx *context.Context) {
form := web.GetForm(ctx).(*forms.CreateLabelForm)
l, err := issues_model.GetLabelInOrgByID(ctx, ctx.Org.Organization.ID, form.ID)
if err != nil {
switch {
case issues_model.IsErrOrgLabelNotExist(err):
ctx.Error(http.StatusNotFound)
default:
ctx.ServerError("UpdateLabel", err)
}
return
}
l.Name = form.Title
l.Exclusive = form.Exclusive
l.Description = form.Description
l.Color = form.Color
l.SetArchived(form.IsArchived)
if err := issues_model.UpdateLabel(ctx, l); err != nil {
ctx.ServerError("UpdateLabel", err)
return
}
ctx.Redirect(ctx.Org.OrgLink + "/settings/labels")
}
// DeleteLabel delete a label
func DeleteLabel(ctx *context.Context) {
if err := issues_model.DeleteLabel(ctx, ctx.Org.Organization.ID, ctx.FormInt64("id")); err != nil {
ctx.Flash.Error("DeleteLabel: " + err.Error())
} else {
ctx.Flash.Success(ctx.Tr("repo.issues.label_deletion_success"))
}
ctx.JSONRedirect(ctx.Org.OrgLink + "/settings/labels")
}
// InitializeLabels init labels for an organization
func InitializeLabels(ctx *context.Context) {
form := web.GetForm(ctx).(*forms.InitializeLabelsForm)
if ctx.HasError() {
ctx.Redirect(ctx.Org.OrgLink + "/labels")
return
}
if err := repo_module.InitializeLabels(ctx, ctx.Org.Organization.ID, form.TemplateName, true); err != nil {
if label.IsErrTemplateLoad(err) {
originalErr := err.(label.ErrTemplateLoad).OriginalError
ctx.Flash.Error(ctx.Tr("repo.issues.label_templates.fail_to_load_file", form.TemplateName, originalErr))
ctx.Redirect(ctx.Org.OrgLink + "/settings/labels")
return
}
ctx.ServerError("InitializeLabels", err)
return
}
ctx.Redirect(ctx.Org.OrgLink + "/settings/labels")
}
```
|
```java
/**
* @author : Paul Taylor
* @author : Eric Farng
*
* Version @version:$Id$
*
*
* This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser
* or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*
* you can get a copy from path_to_url or write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
* Description:
*
*/
package org.jaudiotagger.tag.id3.framebody;
import org.jaudiotagger.tag.InvalidTagException;
import org.jaudiotagger.tag.id3.ID3v24Frames;
import java.nio.ByteBuffer;
public class FrameBodyTDEN extends AbstractFrameBodyTextInfo implements ID3v24FrameBody
{
/**
* Creates a new FrameBodyTDEN datatype.
*/
public FrameBodyTDEN()
{
}
public FrameBodyTDEN(FrameBodyTDEN body)
{
super(body);
}
/**
* Creates a new FrameBodyTDEN datatype.
*
* @param textEncoding
* @param text
*/
public FrameBodyTDEN(byte textEncoding, String text)
{
super(textEncoding, text);
}
/**
* Creates a new FrameBodyTDEN datatype.
*
* @param byteBuffer
* @param frameSize
* @throws InvalidTagException
*/
public FrameBodyTDEN(ByteBuffer byteBuffer, int frameSize) throws InvalidTagException
{
super(byteBuffer, frameSize);
}
/**
* The ID3v2 frame identifier
*
* @return the ID3v2 frame identifier for this frame type
*/
public String getIdentifier()
{
return ID3v24Frames.FRAME_ID_ENCODING_TIME;
}
}
```
|
```c++
// Boost.Geometry Index
// Unit Test
// Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
// path_to_url
#include <rtree/test_rtree.hpp>
int test_main(int, char* [])
{
typedef bg::model::box< bg::model::point<double, 2, bg::cs::cartesian> > Indexable;
testset::additional<Indexable>(bgi::dynamic_rstar(5, 2), std::allocator<int>());
return 0;
}
```
|
Pochinkovsky District () is an administrative district (raion), one of the forty in Nizhny Novgorod Oblast, Russia. Municipally, it is incorporated as Pochinkovsky Municipal District. It is located in the southeast of the oblast. The area of the district is . Its administrative center is the rural locality (a selo) of Pochinki. Population: 30,668 (2010 Census); The population of Pochinki accounts for 38.8% of the district's total population.
History
The district was established in 1929.
References
Notes
Sources
External links
Official website of Pochinkovsky District Administration
Official website of Pochinkovsky District Council
Districts of Nizhny Novgorod Oblast
States and territories established in 1929
|
```java
package com.kalessil.phpStorm.phpInspectionsEA.lang;
import com.kalessil.phpStorm.phpInspectionsEA.PhpCodeInsightFixtureTestCase;
import com.kalessil.phpStorm.phpInspectionsEA.inspectors.languageConstructions.ArgumentUnpackingCanBeUsedInspector;
final public class ArgumentUnpackingCanBeUsedInspectorTest extends PhpCodeInsightFixtureTestCase {
public void testIfFindsAllPatterns() {
myFixture.enableInspections(new ArgumentUnpackingCanBeUsedInspector());
myFixture.configureByFile("testData/fixtures/lang/argument-unpacking.php");
myFixture.testHighlighting(true, false, true);
myFixture.getAllQuickFixes().forEach(fix -> myFixture.launchAction(fix));
myFixture.setTestDataPath(".");
myFixture.checkResultByFile("testData/fixtures/lang/argument-unpacking.fixed.php");
}
}
```
|
Helminen is a Finnish surname. Notable people with the surname include:
Dwight Helminen (born 1983), American ice hockey player
Jouni Helminen, Finnish ten-pin bowler
Lars Helminen (born 1985), American ice hockey player
Markku Helminen (1946β2016), Finnish motorcycle speedway rider
Raimo Helminen (born 1964), Finnish ice hockey player
Finnish-language surnames
|
```objective-c
#pragma once
#include <tilck/boot/common.h>
#include <multiboot.h>
/*
* Static address of a single bios memory area struct: it must be in the lowest
* 64 KB and must be hard-coded (because we don't know the memory map yet!).
*/
#define BIOS_MEM_AREA_BUF (16 * KB)
struct mem_info;
extern const struct bootloader_intf legacy_boot_intf;
extern struct ModeInfoBlock *usable_vbe_mode_info_block;
extern struct VbeInfoBlock *vbe_info_block;
extern video_mode_t selected_mode;
extern struct mem_info g_meminfo;
extern ulong initrd_paddr;
extern u32 initrd_size;
extern ulong bp_paddr;
extern u32 bp_size;
extern ulong kernel_file_pa;
extern u32 kernel_file_sz;
multiboot_info_t *
setup_multiboot_info(ulong ramdisk_paddr, ulong ramdisk_size);
u32
rd_compact_clusters(void *ramdisk, u32 rd_size);
bool
load_fat_ramdisk(const char *load_str,
u32 first_sec,
ulong min_paddr,
ulong *ref_rd_paddr,
u32 *ref_rd_size,
bool alloc_extra_page);
bool
load_kernel_file(const char *filepath);
void
alloc_mbi(void);
char *
legacy_boot_get_cmdline_buf(u32 *buf_sz);
```
|
```python
import logging
import uuid
import kazoo.exceptions
from kazoo.client import KazooClient
from kazoo.retry import KazooRetry
from kazoo.security import ACL, ANYONE_ID_UNSAFE, Permissions
from dcos_internal_utils import utils
log = logging.getLogger(__name__)
ANYONE_READ = [ACL(Permissions.READ, ANYONE_ID_UNSAFE)]
ANYONE_ALL = [ACL(Permissions.ALL, ANYONE_ID_UNSAFE)]
class Bootstrapper(object):
def __init__(self, zk_hosts):
conn_retry_policy = KazooRetry(max_tries=-1, delay=0.1, max_delay=0.1)
cmd_retry_policy = KazooRetry(max_tries=3, delay=0.3, backoff=1, max_delay=1, ignore_expire=False)
self._zk = KazooClient(hosts=zk_hosts, connection_retry=conn_retry_policy, command_retry=cmd_retry_policy)
@property
def zk(self):
"""Lazy initialize zk client"""
if self._zk.connected:
return self._zk
self._zk.start()
return self._zk
def close(self):
if self._zk.connected:
self._zk.stop()
self._zk.close()
def __enter__(self):
return self
def __exit__(self, type, value, tb):
self.close()
def cluster_id(self, path=utils.dcos_lib_path / 'cluster-id', readonly=False):
if readonly:
zkid = None
else:
zkid = str(uuid.uuid4()).encode('ascii')
zkid = self._consensus('/cluster-id', zkid, ANYONE_READ)
zkid = zkid.decode('ascii')
path.parent.mkdir(parents=True, exist_ok=True)
if utils.write_file_on_mismatched_content((zkid + '\n').encode('ascii'), path, utils.write_public_file):
log.info('Wrote cluster ID to {}'.format(path))
else:
log.info('Cluster ID in ZooKeeper and file are the same: {}'.format(zkid))
return zkid
def _consensus(self, path, value, acl=None):
if value is not None:
log.info('Reaching consensus about znode {}'.format(path))
try:
self.zk.create(path, value, acl=acl)
log.info('Consensus znode {} created'.format(path))
except kazoo.exceptions.NodeExistsError:
log.info('Consensus znode {} already exists'.format(path))
pass
self.zk.sync(path)
return self.zk.get(path)[0]
```
|
```go
package querytee
import (
"fmt"
"net"
"net/http"
"github.com/go-kit/log/level"
"github.com/gorilla/mux"
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/promhttp"
util_log "github.com/cortexproject/cortex/pkg/util/log"
)
type InstrumentationServer struct {
port int
registry *prometheus.Registry
srv *http.Server
}
// NewInstrumentationServer returns a server exposing Prometheus metrics.
func NewInstrumentationServer(port int, registry *prometheus.Registry) *InstrumentationServer {
return &InstrumentationServer{
port: port,
registry: registry,
}
}
// Start the instrumentation server.
func (s *InstrumentationServer) Start() error {
// Setup listener first, so we can fail early if the port is in use.
listener, err := net.Listen("tcp", fmt.Sprintf(":%d", s.port))
if err != nil {
return err
}
router := mux.NewRouter()
router.Handle("/metrics", promhttp.HandlerFor(s.registry, promhttp.HandlerOpts{}))
s.srv = &http.Server{
Handler: router,
}
go func() {
if err := s.srv.Serve(listener); err != nil {
level.Error(util_log.Logger).Log("msg", "metrics server terminated", "err", err)
}
}()
return nil
}
// Stop closes the instrumentation server.
func (s *InstrumentationServer) Stop() {
if s.srv != nil {
s.srv.Close()
s.srv = nil
}
}
```
|
Gershon Dua-Bogen (; 1892 β February 12. 1948), alias 'Admoni', was a Polish-Jewish communist leader. He was an active militant of the Communist Party of Poland (KPP) and of the Polish Workers' Party (PPR). He emigrated to the British Mandate of Palestine and became the general secretary of the Socialist Workers Party. He was expelled from the territory by the British for his political activities. During the Spanish Civil War, he served as a political commissar in the base of the International Brigades in Albacete.
Bibliography
Dua-Bogen, Gershon, and Mirski, Michal. ΧΧΧΧ£ ΧΧ Χ©Χ€ΧΧ¨Χ Χ€ΧΧ ΧΧΧΧ¨Χ, Oyf di shpurn fun gvure. Steven Spielberg digital Yiddish library, no. 07087. Amherst: National Yiddish Book Center, 2000. (in Yiddish)
References
1892 births
1948 deaths
Jewish socialists
Communist Party of Poland politicians
Polish Workers' Party politicians
International Brigades personnel
Socialist Workers Party (Mandatory Palestine) politicians
Jewish anti-fascists
Polish emigrants to Mandatory Palestine
|
```java
/*******************************************************************************
* <p>
* <p>
* path_to_url
* <p>
* Unless required by applicable law or agreed to in writing, software
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*******************************************************************************/
package com.intuit.wasabi.experiment;
import com.intuit.wasabi.authenticationobjects.UserInfo;
import com.intuit.wasabi.eventlog.EventLog;
import com.intuit.wasabi.eventlog.events.ExperimentChangeEvent;
import com.intuit.wasabi.exceptions.ApplicationNotFoundException;
import com.intuit.wasabi.exceptions.ExperimentNotFoundException;
import com.intuit.wasabi.experiment.impl.PagesImpl;
import com.intuit.wasabi.experimentobjects.Application;
import com.intuit.wasabi.experimentobjects.Experiment;
import com.intuit.wasabi.experimentobjects.Experiment.ID;
import com.intuit.wasabi.experimentobjects.ExperimentList;
import com.intuit.wasabi.experimentobjects.ExperimentPage;
import com.intuit.wasabi.experimentobjects.ExperimentPageList;
import com.intuit.wasabi.experimentobjects.Page;
import com.intuit.wasabi.experimentobjects.PageExperiment;
import com.intuit.wasabi.experimentobjects.exceptions.InvalidExperimentStateException;
import com.intuit.wasabi.repository.ExperimentRepository;
import com.intuit.wasabi.repository.PagesRepository;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Mock;
import org.mockito.runners.MockitoJUnitRunner;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import static com.googlecode.catchexception.CatchException.verifyException;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import static org.mockito.BDDMockito.any;
import static org.mockito.BDDMockito.anyCollection;
import static org.mockito.BDDMockito.given;
import static org.mockito.BDDMockito.verify;
import static org.mockito.BDDMockito.willDoNothing;
import static org.mockito.Mockito.doNothing;
import static org.mockito.Mockito.when;
@RunWith(MockitoJUnitRunner.class)
public class PagesImplTest {
private final static Application.Name testApp = Application.Name.valueOf("testApp");
private final static Page page = new Page.Builder().withName(Page.Name.valueOf("p1")).build();
@Mock
private ExperimentRepository cassandraRepository;
@Mock
private Experiments experiments;
@Mock
private PagesRepository pagesRepository;
@Mock
private EventLog eventLog;
private Experiment.ID experimentID;
@Before
public void setup() {
experimentID = Experiment.ID.newInstance();
}
@Test
public void testPostPages() {
PagesImpl pagesImpl = new PagesImpl(cassandraRepository, pagesRepository, experiments, eventLog);
//Create Experiment and PageList for App
Experiment experiment = Experiment.withID(experimentID).withApplicationName(testApp).withLabel(Experiment.Label.valueOf("ExperimentLabel")).build();
ExperimentPageList pageList = new ExperimentPageList();
ExperimentPage expPage = ExperimentPage.withAttributes(Page.Name.valueOf("PageName"), true).build();
pageList.addPage(expPage);
when(experiments.getExperiment(experimentID)).thenReturn(null);
try {
pagesImpl.postPages(experimentID, pageList, null);
} catch (ExperimentNotFoundException e) {
// Expecting this so nothing to do
}
experiment.setState(Experiment.State.TERMINATED);
when(experiments.getExperiment(experimentID)).thenReturn(experiment);
try {
pagesImpl.postPages(experimentID, pageList, null);
} catch (InvalidExperimentStateException e) {
// Expecting this so nothing to do
}
experiment.setState(Experiment.State.RUNNING);
experiment.setEndTime(new Timestamp(System.currentTimeMillis() - 1000000));
try {
pagesImpl.postPages(experimentID, pageList, null);
} catch (IllegalArgumentException e) {
// Expecting this so nothing to do
}
experiment.setEndTime(new Timestamp(System.currentTimeMillis() + 1000000));
doNothing().when(pagesRepository).postPages(testApp, experimentID, pageList);
pagesImpl.postPages(experimentID, pageList, null);
}
@Test
public void testDeletePage() {
PagesImpl pagesImpl = new PagesImpl(cassandraRepository, pagesRepository, experiments, eventLog);
//Create Experiment and PageList for App
Experiment experiment = Experiment.withID(experimentID).withApplicationName(testApp).build();
Page page = new Page.Builder().withName(Page.Name.valueOf("somePage")).build();
when(experiments.getExperiment(experimentID)).thenReturn(null);
try {
pagesImpl.deletePage(experimentID, page.getName(), null);
} catch (ExperimentNotFoundException e) {
// Expecting this so nothing to do
}
experiment.setState(Experiment.State.TERMINATED);
when(experiments.getExperiment(experimentID)).thenReturn(experiment);
try {
pagesImpl.deletePage(experimentID, page.getName(), null);
} catch (InvalidExperimentStateException e) {
// Expecting this so nothing to do
}
experiment.setState(Experiment.State.RUNNING);
experiment.setEndTime(new Timestamp(System.currentTimeMillis() - 1000000));
try {
pagesImpl.deletePage(experimentID, page.getName(), null);
} catch (IllegalArgumentException e) {
// Expecting this so nothing to do
}
experiment.setEndTime(new Timestamp(System.currentTimeMillis() + 1000000));
doNothing().when(pagesRepository).deletePage(testApp, experimentID, page.getName());
UserInfo user = UserInfo.from(UserInfo.Username.valueOf("user")).build();
pagesImpl.deletePage(experimentID, page.getName(), user);
}
@Test
public void testGetExperimentPages() {
PagesImpl pagesImpl = new PagesImpl(cassandraRepository, pagesRepository, experiments, eventLog);
//Create Experiment and PageList for App
Experiment experiment = Experiment.withID(experimentID).withApplicationName(testApp).build();
ExperimentPageList pageList = new ExperimentPageList();
pageList.addPage(new ExperimentPage());
when(experiments.getExperiment(experimentID)).thenReturn(null);
try {
pagesImpl.getExperimentPages(experimentID);
} catch (ExperimentNotFoundException e) {
// Expecting this so nothing to do
}
when(experiments.getExperiment(experimentID)).thenReturn(experiment);
when(pagesRepository.getExperimentPages(experimentID)).thenReturn(pageList);
ExperimentPageList result = pagesImpl.getExperimentPages(experimentID);
assert result.equals(pageList);
}
@Test
public void testGetPageExperiments() throws Exception {
PagesImpl pagesImpl = new PagesImpl(cassandraRepository, pagesRepository, experiments, eventLog);
//Create Experiments for App
Experiment experiment = Experiment.withID(experimentID).withApplicationName(testApp).build();
Experiment experiment1 = Experiment.withID(Experiment.ID.newInstance()).withApplicationName(testApp).build();
when(cassandraRepository.getExperiment(experiment.getID())).thenReturn(experiment);
when(cassandraRepository.getExperiment(experiment1.getID())).thenReturn(experiment1);
//Put Pages for first experiment, app
ExperimentList experimentList = new ExperimentList();
experimentList.addExperiment(experiment);
String pageName1 = "testPage";
ExperimentPage expPage1 = ExperimentPage.withAttributes(Page.Name.valueOf(pageName1), false).build();
Page.Name page1 = expPage1.getName();
when(pagesImpl.getPageExperiments(testApp, page1)).thenReturn(experimentList);
assertTrue(experimentList.getExperiments().size() == 1);
//Confirm null pageName and null app, will return no experiments.
experimentList = pagesImpl.getPageExperiments(null, null);
assertTrue(experimentList.getExperiments().size() == 0);
//Confirm null pageName for proper app, will return no experiments.
experimentList = pagesImpl.getPageExperiments(testApp, null);
assertTrue(experimentList.getExperiments().size() == 0);
}
@Test
public void testGetPageExperimentsWithPages() throws Exception {
PagesImpl pagesImpl = new PagesImpl(cassandraRepository, pagesRepository, experiments, eventLog);
//Create Experiments for App
Experiment experiment = Experiment.withID(experimentID).withApplicationName(testApp).build();
//Put Pages for first experiment, app
ExperimentList experimentList = new ExperimentList();
experimentList.addExperiment(experiment);
List<PageExperiment> pageExperiments = new ArrayList<>();
PageExperiment pe = new PageExperiment();
pe.setId(ID.newInstance());
pageExperiments.add(pe);
Collection<Experiment.ID> ids = new ArrayList<>();
ids.add(experiment.getID());
when(pagesRepository.getExperiments(any(Application.Name.class), any(Page.Name.class))).thenReturn(pageExperiments);
when(cassandraRepository.getExperiments(anyCollection())).thenReturn(experimentList);
ExperimentList experimentListResult = pagesImpl.getPageExperiments(testApp, page.getName());
assertEquals(1, experimentListResult.getExperiments().size());
}
@Test
public void testErasePageDataExperimentNull() {
PagesImpl pagesImpl = new PagesImpl(cassandraRepository, pagesRepository, experiments, eventLog);
UserInfo user = UserInfo.from(UserInfo.Username.valueOf("user")).build();
pagesImpl.erasePageData(testApp, experimentID, user);
}
@Test
public void testErasePageDataSuccessful() {
Experiment experiment = Experiment.withID(experimentID).withApplicationName(testApp).build();
PagesImpl pagesImpl = new PagesImpl(cassandraRepository, pagesRepository, experiments, eventLog);
given(experiments.getExperiment(experimentID)).willReturn(experiment);
UserInfo user = UserInfo.from(UserInfo.Username.valueOf("user")).build();
willDoNothing().given(eventLog).postEvent(any(ExperimentChangeEvent.class));
pagesImpl.erasePageData(testApp, experimentID, user);
verify(experiments).getExperiment(experimentID);
verify(eventLog).postEvent(any(ExperimentChangeEvent.class));
}
@Test
public void testGetPageList() {
PagesImpl pagesImpl = new PagesImpl(cassandraRepository, pagesRepository, experiments, eventLog);
Page page = new Page.Builder().withName(Page.Name.valueOf("somePage")).build();
List<Page> pageList = new ArrayList<>(1);
pageList.add(page);
when(pagesRepository.getPageList(testApp)).thenReturn(pageList);
List<Page> result = pagesImpl.getPageList(testApp);
assert result == pageList;
verifyException(pagesImpl, ApplicationNotFoundException.class).getPageList(null);
}
@Test
public void testGetExperiments() {
PagesImpl pagesImpl = new PagesImpl(cassandraRepository, pagesRepository, experiments, eventLog);
Experiment.ID expID = Experiment.ID.newInstance();
Experiment.Label label = Experiment.Label.valueOf("expLabel");
Page.Name pageName = Page.Name.valueOf("somePage");
PageExperiment pageExperiment = PageExperiment.withAttributes(expID, label, true).build();
List<PageExperiment> pageExperimentList = new ArrayList<>();
pageExperimentList.add(pageExperiment);
when(pagesRepository.getExperiments(testApp, pageName)).thenReturn(pageExperimentList);
List<PageExperiment> result = pagesImpl.getExperiments(testApp, pageName);
assert result == pageExperimentList;
verifyException(pagesImpl, ApplicationNotFoundException.class).getExperiments(null, pageName);
}
}
```
|
Plecostachys is a genus of South African flowering plants in the family Asteraceae. They are native to the Cape Provinces, KwaZulu-Natal, and Eswatini.
Species
Plecostachys polifolia (Thunb.) Hilliard & B.L.Burtt
Plecostachys serpyllifolia (P.J.Bergius) Hilliard & B.L.Burtt
References
Gnaphalieae
Asteraceae genera
Flora of the Cape Provinces
Flora of KwaZulu-Natal
Flora of Swaziland
|
Ocenebra helleri is a species of sea snail, a marine gastropod mollusk in the family Muricidae, the murex snails or rock snails.
References
Gastropods described in 1865
Ocenebra
|
```go
package hero
import (
stdContext "context"
"fmt"
"net/http"
"reflect"
"testing"
"time"
"github.com/kataras/golog"
"github.com/kataras/iris/v12/context"
"github.com/kataras/iris/v12/sessions"
)
var (
stdContextTyp = reflect.TypeOf((*stdContext.Context)(nil)).Elem()
sessionTyp = reflect.TypeOf((*sessions.Session)(nil))
timeTyp = reflect.TypeOf((*time.Time)(nil)).Elem()
mapStringsTyp = reflect.TypeOf(map[string][]string{})
)
func contextBinding(index int) *binding {
return &binding{
Dependency: BuiltinDependencies[0],
Input: &Input{Type: BuiltinDependencies[0].DestType, Index: index},
}
}
func TestGetBindingsForFunc(t *testing.T) {
type (
testResponse struct {
Name string `json:"name"`
}
testRequest struct {
Email string `json:"email"`
}
testRequest2 struct {
// normally a body can't have two requests but let's test it.
Age int `json:"age"`
}
)
var testRequestTyp = reflect.TypeOf(testRequest{})
var deps = []*Dependency{
NewDependency(func(ctx *context.Context) testRequest { return testRequest{Email: "should be ignored"} }),
NewDependency(42),
NewDependency(func(ctx *context.Context) (v testRequest, err error) {
err = ctx.ReadJSON(&v)
return
}),
NewDependency("if two strings requested this should be the last one"),
NewDependency("should not be ignored when requested"),
// Dependencies like these should always be registered last.
NewDependency(func(ctx *context.Context, input *Input) (newValue reflect.Value, err error) {
wasPtr := input.Type.Kind() == reflect.Ptr
newValue = reflect.New(indirectType(input.Type))
ptr := newValue.Interface()
err = ctx.ReadJSON(ptr)
if !wasPtr {
newValue = newValue.Elem()
}
return newValue, err
}),
}
var tests = []struct {
Func interface{}
Expected []*binding
}{
{ // 0
Func: func(ctx *context.Context) {
ctx.WriteString("t1")
},
Expected: []*binding{contextBinding(0)},
},
{ // 1
Func: func(ctx *context.Context) error {
return fmt.Errorf("err1")
},
Expected: []*binding{contextBinding(0)},
},
{ // 2
Func: func(ctx *context.Context) testResponse {
return testResponse{Name: "name"}
},
Expected: []*binding{contextBinding(0)},
},
{ // 3
Func: func(in testRequest) (testResponse, error) {
return testResponse{Name: "email of " + in.Email}, nil
},
Expected: []*binding{{Dependency: deps[2], Input: &Input{Index: 0, Type: testRequestTyp}}},
},
{ // 4
Func: func(in testRequest) (testResponse, error) {
return testResponse{Name: "not valid "}, fmt.Errorf("invalid")
},
Expected: []*binding{{Dependency: deps[2], Input: &Input{Index: 0, Type: testRequestTyp}}},
},
{ // 5
Func: func(ctx *context.Context, in testRequest) testResponse {
return testResponse{Name: "(with ctx) email of " + in.Email}
},
Expected: []*binding{contextBinding(0), {Dependency: deps[2], Input: &Input{Index: 1, Type: testRequestTyp}}},
},
{ // 6
Func: func(in testRequest, ctx *context.Context) testResponse { // reversed.
return testResponse{Name: "(with ctx) email of " + in.Email}
},
Expected: []*binding{{Dependency: deps[2], Input: &Input{Index: 0, Type: testRequestTyp}}, contextBinding(1)},
},
{ // 7
Func: func(in testRequest, ctx *context.Context, in2 string) testResponse { // reversed.
return testResponse{Name: "(with ctx) email of " + in.Email + "and in2: " + in2}
},
Expected: []*binding{
{
Dependency: deps[2],
Input: &Input{Index: 0, Type: testRequestTyp},
},
contextBinding(1),
{
Dependency: deps[4],
Input: &Input{Index: 2, Type: reflect.TypeOf("")},
},
},
},
{ // 8
Func: func(in testRequest, ctx *context.Context, in2, in3 string) testResponse { // reversed.
return testResponse{Name: "(with ctx) email of " + in.Email + " | in2: " + in2 + " in3: " + in3}
},
Expected: []*binding{
{
Dependency: deps[2],
Input: &Input{Index: 0, Type: testRequestTyp},
},
contextBinding(1),
{
Dependency: deps[len(deps)-3],
Input: &Input{Index: 2, Type: reflect.TypeOf("")},
},
{
Dependency: deps[len(deps)-2],
Input: &Input{Index: 3, Type: reflect.TypeOf("")},
},
},
},
{ // 9
Func: func(ctx *context.Context, in testRequest, in2 testRequest2) testResponse {
return testResponse{Name: fmt.Sprintf("(with ctx) email of %s and in2.Age %d", in.Email, in2.Age)}
},
Expected: []*binding{
contextBinding(0),
{
Dependency: deps[2],
Input: &Input{Index: 1, Type: testRequestTyp},
},
{
Dependency: deps[len(deps)-1],
Input: &Input{Index: 2, Type: reflect.TypeOf(testRequest2{})},
},
},
},
{ // 10
Func: func() testResponse {
return testResponse{Name: "empty in, one out"}
},
Expected: nil,
},
{ // 1
Func: func(userID string, age int) testResponse {
return testResponse{Name: "in from path parameters"}
},
Expected: []*binding{
paramBinding(0, 0, reflect.TypeOf("")),
paramBinding(1, 1, reflect.TypeOf(0)),
},
},
// test std context, session, time, request, response writer and headers bindings.
{ // 12
Func: func(stdContext.Context, *sessions.Session, *golog.Logger, time.Time, *http.Request, http.ResponseWriter, http.Header) testResponse {
return testResponse{"builtin deps"}
},
Expected: []*binding{
{
Dependency: NewDependency(BuiltinDependencies[1]),
Input: &Input{Index: 0, Type: stdContextTyp},
},
{
Dependency: NewDependency(BuiltinDependencies[2]),
Input: &Input{Index: 1, Type: sessionTyp},
},
{
Dependency: NewDependency(BuiltinDependencies[3]),
Input: &Input{Index: 2, Type: BuiltinDependencies[3].DestType},
},
{
Dependency: NewDependency(BuiltinDependencies[4]),
Input: &Input{Index: 3, Type: timeTyp},
},
{
Dependency: NewDependency(BuiltinDependencies[5]),
Input: &Input{Index: 4, Type: BuiltinDependencies[5].DestType},
},
{
Dependency: NewDependency(BuiltinDependencies[6]),
Input: &Input{Index: 5, Type: BuiltinDependencies[6].DestType},
},
{
Dependency: NewDependency(BuiltinDependencies[7]),
Input: &Input{Index: 6, Type: BuiltinDependencies[7].DestType},
},
},
},
// test explicitly of http.Header and its underline type map[string][]string which
// but shouldn't be binded to request headers because of the (.Explicitly()), instead
// the map should be binded to our last of "deps" which is is a dynamic functions reads from request body's JSON
// (it's a builtin dependency as well but we declared it to test user dynamic dependencies too).
{ // 13
Func: func(http.Header) testResponse {
return testResponse{"builtin http.Header dep"}
},
Expected: []*binding{
{
Dependency: NewDependency(BuiltinDependencies[7]),
Input: &Input{Index: 0, Type: BuiltinDependencies[7].DestType},
},
},
},
{ // 14
Func: func(map[string][]string) testResponse {
return testResponse{"not dep registered except the dynamic one"}
},
Expected: []*binding{
{
Dependency: deps[len(deps)-1],
Input: &Input{Index: 0, Type: mapStringsTyp},
},
},
},
{ // 15
Func: func(http.Header, map[string][]string) testResponse {
return testResponse{}
},
Expected: []*binding{ // only http.Header should be binded, we don't have map[string][]string registered.
{
Dependency: NewDependency(BuiltinDependencies[7]),
Input: &Input{Index: 0, Type: BuiltinDependencies[7].DestType},
},
{
Dependency: deps[len(deps)-1],
Input: &Input{Index: 1, Type: mapStringsTyp},
},
},
},
}
c := New()
for _, dependency := range deps {
c.Register(dependency)
}
for i, tt := range tests {
bindings := getBindingsForFunc(reflect.ValueOf(tt.Func), c.Dependencies, c.DisablePayloadAutoBinding, 0)
if expected, got := len(tt.Expected), len(bindings); expected != got {
t.Fatalf("[%d] expected bindings length to be: %d but got: %d of: %s", i, expected, got, bindings)
}
for j, b := range bindings {
if b == nil {
t.Fatalf("[%d:%d] binding is nil!", i, j)
}
if tt.Expected[j] == nil {
t.Fatalf("[%d:%d] expected dependency was not found!", i, j)
}
// if expected := tt.Expected[j]; !expected.Equal(b) {
// t.Fatalf("[%d:%d] got unexpected binding:\n%s", i, j, spew.Sdump(expected, b))
// }
if expected := tt.Expected[j]; !expected.Equal(b) {
t.Fatalf("[%d:%d] expected binding:\n%s\nbut got:\n%s", i, j, expected, b)
}
}
}
}
type (
service interface {
String() string
}
serviceImpl struct{}
)
var serviceTyp = reflect.TypeOf((*service)(nil)).Elem()
func (s *serviceImpl) String() string {
return "service"
}
func TestBindingsForStruct(t *testing.T) {
type (
controller struct {
Name string
Service service
}
embedded1 struct {
Age int
}
embedded2 struct {
Now time.Time
}
Embedded3 struct {
Age int
}
Embedded4 struct {
Now time.Time
}
controllerEmbeddingExported struct {
Embedded3
Embedded4
}
controllerEmbeddingUnexported struct {
embedded1
embedded2
}
controller2 struct {
Emb1 embedded1
Emb2 embedded2
}
controller3 struct {
Emb1 embedded1
emb2 embedded2 // unused
}
)
var deps = []*Dependency{
NewDependency("name"),
NewDependency(new(serviceImpl)),
}
var depsForAnonymousEmbedded = []*Dependency{
NewDependency(42),
NewDependency(time.Now()),
}
var depsForFieldsOfStruct = []*Dependency{
NewDependency(embedded1{Age: 42}),
NewDependency(embedded2{time.Now()}),
}
var depsInterfaces = []*Dependency{
NewDependency(func(ctx *context.Context) interface{} {
return "name"
}),
}
var autoBindings = []*binding{
payloadBinding(0, reflect.TypeOf(embedded1{})),
payloadBinding(1, reflect.TypeOf(embedded2{})),
}
for _, b := range autoBindings {
b.Input.StructFieldIndex = []int{b.Input.Index}
}
var tests = []struct {
Value interface{}
Registered []*Dependency
Expected []*binding
}{
{ // 0.
Value: &controller{},
Registered: deps,
Expected: []*binding{
{
Dependency: deps[0],
Input: &Input{Index: 0, StructFieldIndex: []int{0}, Type: reflect.TypeOf("")},
},
{
Dependency: deps[1],
Input: &Input{Index: 1, StructFieldIndex: []int{1}, Type: serviceTyp},
},
},
},
// 1. test controller with pre-defined variables.
{
Value: &controller{Name: "name_struct", Service: new(serviceImpl)},
Expected: nil,
},
// 2. test controller with pre-defined variables and other deps with the exact order and value
// (deps from non zero values should be not registerded, if not the Dependency:name_struct will fail for sure).
{
Value: &controller{Name: "name_struct", Service: new(serviceImpl)},
Registered: deps,
Expected: nil,
},
// 3. test embedded structs with anonymous and exported.
{
Value: &controllerEmbeddingExported{},
Registered: depsForAnonymousEmbedded,
Expected: []*binding{
{
Dependency: depsForAnonymousEmbedded[0],
Input: &Input{Index: 0, StructFieldIndex: []int{0, 0}, Type: reflect.TypeOf(0)},
},
{
Dependency: depsForAnonymousEmbedded[1],
Input: &Input{Index: 1, StructFieldIndex: []int{1, 0}, Type: reflect.TypeOf(time.Time{})},
},
},
},
// 4. test for anonymous but not exported (should still be 2, unexported structs are binded).
{
Value: &controllerEmbeddingUnexported{},
Registered: depsForAnonymousEmbedded,
Expected: []*binding{
{
Dependency: depsForAnonymousEmbedded[0],
Input: &Input{Index: 0, StructFieldIndex: []int{0, 0}, Type: reflect.TypeOf(0)},
},
{
Dependency: depsForAnonymousEmbedded[1],
Input: &Input{Index: 1, StructFieldIndex: []int{1, 0}, Type: reflect.TypeOf(time.Time{})},
},
},
},
// 5. test for auto-bindings with zero registered.
{
Value: &controller2{},
Registered: nil,
Expected: autoBindings,
},
// 6. test for embedded with named fields which should NOT contain any registered deps
// except the two auto-bindings for structs,
{
Value: &controller2{},
Registered: depsForAnonymousEmbedded,
Expected: autoBindings,
}, // 7. and only embedded struct's fields are readen, otherwise we expect the struct to be a dependency.
{
Value: &controller2{},
Registered: depsForFieldsOfStruct,
Expected: []*binding{
{
Dependency: depsForFieldsOfStruct[0],
Input: &Input{Index: 0, StructFieldIndex: []int{0}, Type: reflect.TypeOf(embedded1{})},
},
{
Dependency: depsForFieldsOfStruct[1],
Input: &Input{Index: 1, StructFieldIndex: []int{1}, Type: reflect.TypeOf(embedded2{})},
},
},
},
// 8. test one exported and other not exported.
{
Value: &controller3{},
Registered: []*Dependency{depsForFieldsOfStruct[0]},
Expected: []*binding{
{
Dependency: depsForFieldsOfStruct[0],
Input: &Input{Index: 0, StructFieldIndex: []int{0}, Type: reflect.TypeOf(embedded1{})},
},
},
},
// 9. test same as the above but by registering all dependencies.
{
Value: &controller3{},
Registered: depsForFieldsOfStruct,
Expected: []*binding{
{
Dependency: depsForFieldsOfStruct[0],
Input: &Input{Index: 0, StructFieldIndex: []int{0}, Type: reflect.TypeOf(embedded1{})},
},
},
},
// 10. test bind an interface{}.
{
Value: &controller{},
Registered: depsInterfaces,
Expected: []*binding{
{
Dependency: depsInterfaces[0],
Input: &Input{Index: 0, StructFieldIndex: []int{0}, Type: reflect.TypeOf("")},
},
},
},
}
for i, tt := range tests {
bindings := getBindingsForStruct(reflect.ValueOf(tt.Value), tt.Registered, false, false, false, DefaultDependencyMatcher, 0, nil)
if expected, got := len(tt.Expected), len(bindings); expected != got {
t.Logf("[%d] expected bindings length to be: %d but got: %d:\n", i, expected, got)
for _, b := range bindings {
t.Logf("\t%s\n", b)
}
t.FailNow()
}
for j, b := range bindings {
if tt.Expected[j] == nil {
t.Fatalf("[%d:%d] expected dependency was not found!", i, j)
}
if expected := tt.Expected[j]; !expected.Equal(b) {
t.Fatalf("[%d:%d] expected binding:\n%s\nbut got:\n%s", i, j, expected, b)
}
}
}
}
func TestBindingsForStructMarkExportedFieldsAsRequred(t *testing.T) {
type (
Embedded struct {
Val string
}
controller struct {
MyService service
Embedded *Embedded
}
)
dependencies := []*Dependency{
NewDependency(&Embedded{"test"}),
NewDependency(&serviceImpl{}),
}
// should panic if fail.
_ = getBindingsForStruct(reflect.ValueOf(new(controller)), dependencies, true, true, false, DefaultDependencyMatcher, 0, nil)
}
```
|
14th Multi-member Constituency β Pernik is a constituency whose borders are the same as Pernik Province in Bulgaria.
Background
In the 2009 Bulgarian parliamentary election the 14th Multi-member Constituency β Pernik elected 5 members for the Bulgarian National Assembly: 4 of which were through proportionality vote and 1 was through first-past-the-post voting.
Members in the Bulgarian National Assembly
Through first-past-the-post voting
Through proportionality vote
Elections
2009 election
proportionality vote
first-past-the-post voting
See also
2009 Bulgarian parliamentary election
Politics of Bulgaria
List of Bulgarian Constituencies
References
Electoral divisions in Bulgaria
Pernik Province
|
Phineas Miner (November 27, 1777 β September 15, 1839) was a United States representative from Connecticut. He was born in Winchester, Connecticut where he completed preparatory studies. Later, he studied law and was admitted to the bar in 1797. He commenced his practice in Winchester.
Miner was elected justice of the peace in 1809. He was a member of the Connecticut House of Representatives in 1809, 1811, 1813, 1814, and 1816. He moved to Litchfield, Connecticut in 1816 where he was again a member of the House of Representatives in 1823, 1827, and 1829. He also served in the Connecticut Senate in 1830 and 1831. Miner was elected as an Anti-Jacksonian to the Twenty-third Congress to fill the vacancy caused by the resignation of Jabez W. Huntington and served from December 1, 1834, to March 3, 1835. After leaving Congress, he resumed the practice of law and again served in the Connecticut House of Representatives in 1835. He was elected a judge of the probate court for Litchfield district in 1838.
Miner died in Litchfield, Connecticut on September 15, 1839, and was buried in the East Burying Ground.
References
1777 births
1839 deaths
Members of the Connecticut House of Representatives
People from Winchester, Connecticut
Politicians from Litchfield, Connecticut
19th-century American politicians
National Republican Party members of the United States House of Representatives from Connecticut
Connecticut state senators
|
Moreno Roggi (; born 24 March 1954) is an Italian footballer who played as a defender. He played for the Italy national football team seven times, the first being on 28 September 1974, the occasion of a friendly match against Yugoslavia in a 1β0 away loss.
Honours
Player
Fiorentina
Coppa Italia: 1974β75
References
1954 births
Italian men's footballers
Italy men's international footballers
Men's association football defenders
Empoli FC players
ACF Fiorentina players
Living people
People from San Miniato
Footballers from Tuscany
|
```c++
This program is free software; you can redistribute it and/or modify
the Free Software Foundation
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
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */
#include "stdh.h"
#include <Engine/Models/ModelObject.h>
#include <Engine/Base/Translation.h>
#include <Engine/Models/ModelData.h>
#include <Engine/Models/ModelProfile.h>
#include <Engine/Models/RenderModel.h>
#include <Engine/Models/Model_internal.h>
#include <Engine/Templates/StaticArray.cpp>
#include <Engine/Base/Lists.inl>
#include <Engine/Base/Console.h>
#include <Engine/Models/RenderModel_internal.h>
// polygon visibility constants
#define VISIBLE_NOT 0
#define VISIBLE_FRONT (+1)
#define VISIBLE_BACK (-1)
// some rendering variables and so ...
static PIX pixWidth;
// some projection parameters
static FLOAT fCenterI, fCenterJ;
static FLOAT fRatioI, fRatioJ;
static FLOAT fStepI, fStepJ;
static FLOAT fZoomI, fZoomJ;
static FLOAT fFrontClipDistance, f1oFrontClipDistance;
static FLOAT fBackClipDistance, f1oBackClipDistance;
static FLOAT fDepthBufferFactor;
static BOOL bBackFaced, bDoubleSided;
static BOOL bPerspective;
static BOOL b16BitCompression;
static ULONG ulColorMask;
static ULONG ulRenderFlags;
static PIX pixMipWidth, pixMipHeight;
static INDEX iMipLevel;
// vertex array for clipped polygons
#define MAX_CLIPPEDVERTICES 32
// double buffer for clipping
static TransformedVertexData atvdClipped1[MAX_CLIPPEDVERTICES];
static TransformedVertexData atvdClipped2[MAX_CLIPPEDVERTICES];
static TransformedVertexData *ptvdSrc = atvdClipped1;
static TransformedVertexData *ptvdDst = atvdClipped2;
static INDEX ctvxSrc, ctvxDst;
// prepare list of all visible polygons that are to be rendered to current drawport
static void RenderOneSide( CRenderModel &rm, const INDEX iVisibility)
{
// for each surface in finest mip model
ModelMipInfo &mmiMip = rm.rm_pmdModelData->md_MipInfos[0];
FOREACHINSTATICARRAY( mmiMip.mmpi_MappingSurfaces, MappingSurface, itms)
{
MappingSurface &ms = *itms;
ULONG ulFlags = ms.ms_ulRenderingFlags;
// if surface is invisible or empty, skip it
if( (ulFlags&SRF_INVISIBLE) || ms.ms_ctSrfVx==0) continue;
// if rendering back side and surface is not double sided, skip entire surface
if( iVisibility==VISIBLE_BACK && !(ulFlags&SRF_DOUBLESIDED)) continue;
// for each vertex in the surface
BOOL bTransparency = ms.ms_sttTranslucencyType!=STT_OPAQUE;
for( INDEX ivx=0; ivx<ms.ms_aiTextureVertices.Count(); ivx++) {
ModelTextureVertex &mtv = mmiMip.mmpi_TextureVertices[ms.ms_aiTextureVertices[ivx]];
TransformedVertexData &tvd = rm.rm_pmdModelData->md_TransformedVertices[mtv.mtv_iTransformedVertex];
// adjust texture coordinates for texture mapping and clipping
tvd.tvd_fU = (mtv.mtv_UV(1)>>iMipLevel);
tvd.tvd_fV = (mtv.mtv_UV(2)>>iMipLevel);
tvd.tvd_pv2.pv2_fUoK = tvd.tvd_fU * tvd.tvd_pv2.pv2_f1oK;
tvd.tvd_pv2.pv2_fVoK = tvd.tvd_fV * tvd.tvd_pv2.pv2_f1oK;
}
// for each polygon in the surface
for( INDEX iipo=0; iipo<ms.ms_aiPolygons.Count(); iipo++)
{
ModelPolygon &mpPolygon = mmiMip.mmpi_Polygons[ms.ms_aiPolygons[iipo]];
// if the polygon is not visible on this side, skip it
if( mpPolygon.mp_slVisibility != iVisibility) continue;
// if the polygon needs to be clipped to near clip plane
if( mpPolygon.mp_bClipped) {
// create array of vertices for polygon clipped to near clip plane
ctvxDst=0;
INDEX ivx0=mpPolygon.mp_PolygonVertices.Count()-1;
INDEX ivx1=0;
{for( INDEX ivx=0; ivx<mpPolygon.mp_PolygonVertices.Count(); ivx++)
{
TransformedVertexData &tvd0 = *mpPolygon.mp_PolygonVertices[ivx0].mpv_ptvTransformedVertex;
TransformedVertexData &tvd1 = *mpPolygon.mp_PolygonVertices[ivx1].mpv_ptvTransformedVertex;
FLOAT fd0 = fFrontClipDistance-tvd0.tvd_fZ;
FLOAT fd1 = fFrontClipDistance-tvd1.tvd_fZ;
// if first vertex is in
if( fd0>=0) {
// add it to clip array
ptvdDst[ctvxDst] = tvd0;
ctvxDst++;
// if second vertex is out
if( fd1<0) {
// add clipped vertex at exit
TransformedVertexData &tvdClipped = ptvdDst[ctvxDst];
ctvxDst++;
FLOAT fF = fd1/(fd1-fd0);
tvdClipped.tvd_fX = tvd1.tvd_fX - (tvd1.tvd_fX - tvd0.tvd_fX) *fF;
tvdClipped.tvd_fY = tvd1.tvd_fY - (tvd1.tvd_fY - tvd0.tvd_fY) *fF;
tvdClipped.tvd_fZ = fFrontClipDistance;
tvdClipped.tvd_pv2.pv2_f1oK = fDepthBufferFactor * f1oFrontClipDistance;
FLOAT fU = tvd1.tvd_fU - (tvd1.tvd_fU - tvd0.tvd_fU) *fF;
FLOAT fV = tvd1.tvd_fV - (tvd1.tvd_fV - tvd0.tvd_fV) *fF;
tvdClipped.tvd_pv2.pv2_fUoK = fU * tvdClipped.tvd_pv2.pv2_f1oK;
tvdClipped.tvd_pv2.pv2_fVoK = fV * tvdClipped.tvd_pv2.pv2_f1oK;
}
// if first vertex is out (don't add it into clip array)
} else {
// if second vertex is in
if( fd1>=0) {
// add clipped vertex at entry
TransformedVertexData &tvdClipped = ptvdDst[ctvxDst];
ctvxDst++;
FLOAT fF = fd0/(fd0-fd1);
tvdClipped.tvd_fX = tvd0.tvd_fX - (tvd0.tvd_fX - tvd1.tvd_fX) *fF;
tvdClipped.tvd_fY = tvd0.tvd_fY - (tvd0.tvd_fY - tvd1.tvd_fY) *fF;
tvdClipped.tvd_fZ = fFrontClipDistance;
tvdClipped.tvd_pv2.pv2_f1oK = fDepthBufferFactor * f1oFrontClipDistance;
FLOAT fU = tvd0.tvd_fU - (tvd0.tvd_fU - tvd1.tvd_fU) *fF;
FLOAT fV = tvd0.tvd_fV - (tvd0.tvd_fV - tvd1.tvd_fV) *fF;
tvdClipped.tvd_pv2.pv2_fUoK = fU * tvdClipped.tvd_pv2.pv2_f1oK;
tvdClipped.tvd_pv2.pv2_fVoK = fV * tvdClipped.tvd_pv2.pv2_f1oK;
}
}
// proceed to next vertex in list (i.e. new pair of vertices)
ivx0=ivx1;
ivx1++;
}}
// swap buffers
Swap( ptvdSrc, ptvdDst);
Swap( ctvxSrc, ctvxDst);
// if clipping to far clip plane is on
if( fBackClipDistance<0) {
ctvxDst=0;
INDEX ivx0=ctvxSrc-1;
INDEX ivx1=0;
{for( INDEX ivx=0; ivx<ctvxSrc; ivx++)
{
TransformedVertexData &tvd0 = ptvdSrc[ivx0];
TransformedVertexData &tvd1 = ptvdSrc[ivx1];
FLOAT fd0 = tvd0.tvd_fZ-fBackClipDistance;
FLOAT fd1 = tvd1.tvd_fZ-fBackClipDistance;
// if first vertex is in
if( fd0>=0) {
// add it to clip array
ptvdDst[ctvxDst] = tvd0;
ctvxDst++;
// if second vertex is out
if( fd1<0) {
// add clipped vertex at exit
TransformedVertexData &tvdClipped = ptvdDst[ctvxDst];
ctvxDst++;
FLOAT fF = fd1/(fd1-fd0);
tvdClipped.tvd_fX = tvd1.tvd_fX - (tvd1.tvd_fX - tvd0.tvd_fX) *fF;
tvdClipped.tvd_fY = tvd1.tvd_fY - (tvd1.tvd_fY - tvd0.tvd_fY) *fF;
tvdClipped.tvd_fZ = fBackClipDistance;
tvdClipped.tvd_pv2.pv2_f1oK = fDepthBufferFactor * f1oBackClipDistance;
FLOAT fU = tvd1.tvd_fU - (tvd1.tvd_fU - tvd0.tvd_fU) *fF;
FLOAT fV = tvd1.tvd_fV - (tvd1.tvd_fV - tvd0.tvd_fV) *fF;
tvdClipped.tvd_pv2.pv2_fUoK = fU * tvdClipped.tvd_pv2.pv2_f1oK;
tvdClipped.tvd_pv2.pv2_fVoK = fV * tvdClipped.tvd_pv2.pv2_f1oK;
}
// if first vertex is out (don't add it into clip array)
} else {
// if second vertex is in
if( fd1>=0) {
// add clipped vertex at entry
TransformedVertexData &tvdClipped = ptvdDst[ctvxDst];
ctvxDst++;
FLOAT fF = fd0/(fd0-fd1);
tvdClipped.tvd_fX = tvd0.tvd_fX - (tvd0.tvd_fX - tvd1.tvd_fX) *fF;
tvdClipped.tvd_fY = tvd0.tvd_fY - (tvd0.tvd_fY - tvd1.tvd_fY) *fF;
tvdClipped.tvd_fZ = fBackClipDistance;
tvdClipped.tvd_pv2.pv2_f1oK = fDepthBufferFactor * f1oBackClipDistance;
FLOAT fU = tvd0.tvd_fU - (tvd0.tvd_fU - tvd1.tvd_fU) *fF;
FLOAT fV = tvd0.tvd_fV - (tvd0.tvd_fV - tvd1.tvd_fV) *fF;
tvdClipped.tvd_pv2.pv2_fUoK = fU * tvdClipped.tvd_pv2.pv2_f1oK;
tvdClipped.tvd_pv2.pv2_fVoK = fV * tvdClipped.tvd_pv2.pv2_f1oK;
}
}
// proceed to next vertex in list (i.e. new pair of vertices)
ivx0=ivx1;
ivx1++;
}}
// swap buffers
Swap( ptvdSrc, ptvdDst);
Swap( ctvxSrc, ctvxDst);
}
// for each vertex
{for( INDEX ivx=0; ivx<ctvxSrc; ivx++)
{
// calculate projection
TransformedVertexData &tvd = ptvdSrc[ivx];
if( bPerspective) {
const FLOAT f1oZ = 1.0f/tvd.tvd_fZ;
tvd.tvd_pv2.pv2_fI = fCenterI+tvd.tvd_fX*fRatioI*f1oZ;
tvd.tvd_pv2.pv2_fJ = fCenterJ-tvd.tvd_fY*fRatioJ*f1oZ;
} else {
tvd.tvd_pv2.pv2_fI = fCenterI+tvd.tvd_fX*fZoomI+tvd.tvd_fZ*fStepI;
tvd.tvd_pv2.pv2_fJ = fCenterJ-tvd.tvd_fY*fZoomJ-tvd.tvd_fZ*fStepJ;
}
}}
// clip polygon against left edge
ctvxDst=0;
ivx0=ctvxSrc-1;
ivx1=0;
{for( INDEX ivx=0; ivx<ctvxSrc; ivx++)
{
PolyVertex2D &pv20 = ptvdSrc[ivx0].tvd_pv2;
PolyVertex2D &pv21 = ptvdSrc[ivx1].tvd_pv2;
FLOAT fd0 = pv20.pv2_fI-0;
FLOAT fd1 = pv21.pv2_fI-0;
// if first vertex is in
if( fd0>=0) {
// add it to clip array
ptvdDst[ctvxDst].tvd_pv2 = pv20;
ctvxDst++;
// if second vertex is out
if( fd1<0) {
PolyVertex2D &pv2Clipped = ptvdDst[ctvxDst].tvd_pv2;
ctvxDst++;
FLOAT fF = fd1/(fd1-fd0);
pv2Clipped.pv2_fI = 0;
pv2Clipped.pv2_fJ = pv21.pv2_fJ - (pv21.pv2_fJ - pv20.pv2_fJ) *fF;
pv2Clipped.pv2_f1oK = pv21.pv2_f1oK - (pv21.pv2_f1oK - pv20.pv2_f1oK) *fF;
pv2Clipped.pv2_fUoK = pv21.pv2_fUoK - (pv21.pv2_fUoK - pv20.pv2_fUoK) *fF;
pv2Clipped.pv2_fVoK = pv21.pv2_fVoK - (pv21.pv2_fVoK - pv20.pv2_fVoK) *fF;
}
// if first vertex is out (don't add it into clip array)
} else {
// if second vertex is in
if( fd1>=0) {
// add clipped vertex at entry
PolyVertex2D &pv2Clipped = ptvdDst[ctvxDst].tvd_pv2;
ctvxDst++;
FLOAT fF = fd0/(fd0-fd1);
pv2Clipped.pv2_fI = 0;
pv2Clipped.pv2_fJ = pv20.pv2_fJ - (pv20.pv2_fJ - pv21.pv2_fJ)*fF;
pv2Clipped.pv2_f1oK = pv20.pv2_f1oK - (pv20.pv2_f1oK - pv21.pv2_f1oK) *fF;
pv2Clipped.pv2_fUoK = pv20.pv2_fUoK - (pv20.pv2_fUoK - pv21.pv2_fUoK) *fF;
pv2Clipped.pv2_fVoK = pv20.pv2_fVoK - (pv20.pv2_fVoK - pv21.pv2_fVoK) *fF;
}
}
// proceed to next vertex in list (i.e. new pair of vertices)
ivx0=ivx1;
ivx1++;
}}
// swap buffers
Swap( ptvdSrc, ptvdDst);
Swap( ctvxSrc, ctvxDst);
// clip polygon against right edge
ctvxDst=0;
ivx0=ctvxSrc-1;
ivx1=0;
{for( INDEX ivx=0; ivx<ctvxSrc; ivx++)
{
PolyVertex2D &pv20 = ptvdSrc[ivx0].tvd_pv2;
PolyVertex2D &pv21 = ptvdSrc[ivx1].tvd_pv2;
FLOAT fd0 = pixWidth-pv20.pv2_fI;
FLOAT fd1 = pixWidth-pv21.pv2_fI;
// if first vertex is in
if( fd0>=0) {
// add it to clip array
ptvdDst[ctvxDst].tvd_pv2 = pv20;
ctvxDst++;
// if second vertex is out
if( fd1<0) {
PolyVertex2D &pv2Clipped = ptvdDst[ctvxDst].tvd_pv2;
ctvxDst++;
FLOAT fF = fd1/(fd1-fd0);
pv2Clipped.pv2_fI = pixWidth;
pv2Clipped.pv2_fJ = pv21.pv2_fJ - (pv21.pv2_fJ - pv20.pv2_fJ)*fF;
pv2Clipped.pv2_f1oK = pv21.pv2_f1oK - (pv21.pv2_f1oK - pv20.pv2_f1oK) *fF;
pv2Clipped.pv2_fUoK = pv21.pv2_fUoK - (pv21.pv2_fUoK - pv20.pv2_fUoK) *fF;
pv2Clipped.pv2_fVoK = pv21.pv2_fVoK - (pv21.pv2_fVoK - pv20.pv2_fVoK) *fF;
}
// if first vertex is out (don't add it into clip array)
} else {
// if second vertex is in
if( fd1>=0) {
// add clipped vertex at entry
PolyVertex2D &pv2Clipped = ptvdDst[ctvxDst].tvd_pv2;
ctvxDst++;
FLOAT fF = fd0/(fd0-fd1);
pv2Clipped.pv2_fI = pixWidth;
pv2Clipped.pv2_fJ = pv20.pv2_fJ - (pv20.pv2_fJ - pv21.pv2_fJ)*fF;
pv2Clipped.pv2_f1oK = pv20.pv2_f1oK - (pv20.pv2_f1oK - pv21.pv2_f1oK) *fF;
pv2Clipped.pv2_fUoK = pv20.pv2_fUoK - (pv20.pv2_fUoK - pv21.pv2_fUoK) *fF;
pv2Clipped.pv2_fVoK = pv20.pv2_fVoK - (pv20.pv2_fVoK - pv21.pv2_fVoK) *fF;
}
}
// proceed to next vertex in list (i.e. new pair of vertices)
ivx0=ivx1;
ivx1++;
}}
// swap buffers
Swap( ptvdSrc, ptvdDst);
Swap( ctvxSrc, ctvxDst);
// draw all triangles in clipped polygon as a triangle fan, with clipping
PolyVertex2D &pvx0 = ptvdSrc[0].tvd_pv2;
{for( INDEX ivx=1; ivx<ctvxSrc-1; ivx++) {
PolyVertex2D &pvx1 = ptvdSrc[ivx+0].tvd_pv2;
PolyVertex2D &pvx2 = ptvdSrc[ivx+1].tvd_pv2;
DrawTriangle_Mask( _pubMask, _slMaskWidth, _slMaskHeight, &pvx0, &pvx1, &pvx2, bTransparency);
}}
_pfModelProfile.IncrementCounter(CModelProfile::PCI_MASK_TRIANGLES, mpPolygon.mp_PolygonVertices.Count()-2);
_pfModelProfile.IncrementCounter(CModelProfile::PCI_MASK_POLYGONS);
} // if the polygon is not clipped
else
{
// draw all triangles as a triangle fan
PolyVertex2D &pvx0 = mpPolygon.mp_PolygonVertices[0].mpv_ptvTransformedVertex->tvd_pv2;
{for( INDEX ivx=1; ivx<mpPolygon.mp_PolygonVertices.Count()-1; ivx++) {
PolyVertex2D &pvx1 = mpPolygon.mp_PolygonVertices[ivx+0].mpv_ptvTransformedVertex->tvd_pv2;
PolyVertex2D &pvx2 = mpPolygon.mp_PolygonVertices[ivx+1].mpv_ptvTransformedVertex->tvd_pv2;
DrawTriangle_Mask( _pubMask, _slMaskWidth, _slMaskHeight, &pvx0, &pvx1, &pvx2, bTransparency);
}}
_pfModelProfile.IncrementCounter(CModelProfile::PCI_MASK_TRIANGLES, mpPolygon.mp_PolygonVertices.Count()-2);
_pfModelProfile.IncrementCounter(CModelProfile::PCI_MASK_POLYGONS);
}
}
}
}
// prepare model for rendering (i.e. project model vertices)
void CModelObject::RenderModel_Mask( CRenderModel &rm)
{
// skip shadow generation if effect texture has been set
CTextureData *ptd = (CTextureData*)mo_toTexture.GetData();
if( ptd!=NULL && ptd->td_ptegEffect!=NULL) {
// report to console
CPrintF( TRANS("WARNING: model '%s' cast cluster shadows but has an effect texture.\n"), GetData()->GetName());
return;
}
_pfModelProfile.StartTimer( CModelProfile::PTI_MASK_INITMODELRENDERING);
_pfModelProfile.IncrementTimerAveragingCounter( CModelProfile::PTI_MASK_INITMODELRENDERING);
// cache drawport width (for horizontal screen clipping purposes)
pixWidth = _slMaskWidth;
// test if projection is parallel or perspective
bPerspective = TRUE;
if( !_aprProjection.IsPerspective()) bPerspective = FALSE;
b16BitCompression = rm.rm_pmdModelData->md_Flags & MF_COMPRESSED_16BIT;
ulColorMask = mo_ColorMask;
// if texture is invalid, backup to white color mode
if( ptd==NULL) rm.rm_rtRenderType = (rm.rm_rtRenderType&~RT_TEXTURE_MASK)|RT_WHITE_TEXTURE;
// if texture is ok
iMipLevel = 31;
ULONG *pulCurrentMipmap = NULL;
if( rm.rm_rtRenderType & RT_TEXTURE) {
// reload texture
ptd->Force( TEX_STATIC);
// get texture parameters for current frame and needed mip factor
pulCurrentMipmap = ptd->td_pulFrames + (mo_toTexture.GetFrame()*ptd->td_slFrameSize)/BYTES_PER_TEXEL;
iMipLevel = ptd->td_iFirstMipLevel;
pixMipWidth = ptd->GetPixWidth();
pixMipHeight = ptd->GetPixHeight();
}
// initialize texture for usage thru render triangle routine
SetTriangleTexture( pulCurrentMipmap, pixMipWidth, pixMipHeight);
CPerspectiveProjection3D &prPerspective = (CPerspectiveProjection3D &)*_aprProjection;
CParallelProjection3D &prParallel = (CParallelProjection3D &)*_aprProjection;
const FLOATmatrix3D &m = rm.rm_mObjectToView;
const FLOAT3D &v = rm.rm_vObjectToView;
if( bPerspective) {
fCenterI = prPerspective.pr_ScreenCenter(1);
fCenterJ = prPerspective.pr_ScreenCenter(2);
fRatioI = prPerspective.ppr_PerspectiveRatios(1);
fRatioJ = prPerspective.ppr_PerspectiveRatios(2);
fFrontClipDistance = -prPerspective.pr_NearClipDistance;
fBackClipDistance = -prPerspective.pr_FarClipDistance;
f1oFrontClipDistance = -1/prPerspective.pr_NearClipDistance;
f1oBackClipDistance = -1/prPerspective.pr_FarClipDistance;
fDepthBufferFactor = prPerspective.pr_fDepthBufferFactor;
} else {
fCenterI = prParallel.pr_ScreenCenter(1);
fCenterJ = prParallel.pr_ScreenCenter(2);
fStepI = prParallel.pr_vStepFactors(1);
fStepJ = prParallel.pr_vStepFactors(2);
fZoomI = prParallel.pr_vZoomFactors(1);
fZoomJ = prParallel.pr_vZoomFactors(2);
fFrontClipDistance = -prPerspective.pr_NearClipDistance;
fBackClipDistance = -prPerspective.pr_FarClipDistance;
f1oFrontClipDistance = 1;
f1oBackClipDistance = 1;
fDepthBufferFactor = 1;
}
// for each vertex
for( INDEX ivx=0; ivx<rm.rm_pmdModelData->md_VerticesCt; ivx++)
{
TransformedVertexData &tvd = rm.rm_pmdModelData->md_TransformedVertices[ ivx];
tvd.tvd_bClipped = FALSE; // initially, vertex is not clipped
float fxOld, fyOld, fzOld;
if( b16BitCompression) {
ModelFrameVertex16 &mfv = rm.rm_pFrame16_0[ivx];
fxOld = (mfv.mfv_SWPoint(1)-rm.rm_vOffset(1)) *rm.rm_vStretch(1);
fyOld = (mfv.mfv_SWPoint(2)-rm.rm_vOffset(2)) *rm.rm_vStretch(2);
fzOld = (mfv.mfv_SWPoint(3)-rm.rm_vOffset(3)) *rm.rm_vStretch(3);
} else {
ModelFrameVertex8 &mfv = rm.rm_pFrame8_0[ivx];
fxOld = (mfv.mfv_SBPoint(1)-rm.rm_vOffset(1)) *rm.rm_vStretch(1);
fyOld = (mfv.mfv_SBPoint(2)-rm.rm_vOffset(2)) *rm.rm_vStretch(2);
fzOld = (mfv.mfv_SBPoint(3)-rm.rm_vOffset(3)) *rm.rm_vStretch(3);
}
// rotate the vertex and remember transformed coordinates, for eventual clipping
tvd.tvd_fX = fxOld*m(1,1) + fyOld*m(1,2) + fzOld*m(1,3) + v(1);
tvd.tvd_fY = fxOld*m(2,1) + fyOld*m(2,2) + fzOld*m(2,3) + v(2);
tvd.tvd_fZ = fxOld*m(3,1) + fyOld*m(3,2) + fzOld*m(3,3) + v(3);
// prepare screen coordinates for software
if( bPerspective) {
const FLOAT f1oZ = 1.0f/tvd.tvd_fZ;
tvd.tvd_pv2.pv2_fI = fCenterI+tvd.tvd_fX*fRatioI*f1oZ;
tvd.tvd_pv2.pv2_fJ = fCenterJ-tvd.tvd_fY*fRatioJ*f1oZ;
tvd.tvd_pv2.pv2_f1oK = fDepthBufferFactor*f1oZ;
} else {
tvd.tvd_pv2.pv2_fI = fCenterI+tvd.tvd_fX*fZoomI+tvd.tvd_fZ*fStepI;
tvd.tvd_pv2.pv2_fJ = fCenterJ-tvd.tvd_fY*fZoomJ-tvd.tvd_fZ*fStepJ;
tvd.tvd_pv2.pv2_f1oK = 1;
}
// check clipping against horizontal screen boundaries and near clip plane
if( tvd.tvd_pv2.pv2_fI<0 || tvd.tvd_pv2.pv2_fI>=pixWidth ||
tvd.tvd_fZ>fFrontClipDistance || (fBackClipDistance<0 && tvd.tvd_fZ<fBackClipDistance)) {
tvd.tvd_bClipped = TRUE;
}
}
// for all polygons in current mip model
ModelMipInfo &mmiMip = rm.rm_pmdModelData->md_MipInfos[0];
FOREACHINSTATICARRAY( mmiMip.mmpi_Polygons, ModelPolygon, itmp)
{
ModelPolygon &mp = *itmp;
ulRenderFlags = mmiMip.mmpi_MappingSurfaces[mp.mp_Surface].ms_ulRenderingFlags;
// get first three of polygon's transformed vertices
const TransformedVertexData &tvd0 = *mp.mp_PolygonVertices[0].mpv_ptvTransformedVertex;
const TransformedVertexData &tvd1 = *mp.mp_PolygonVertices[1].mpv_ptvTransformedVertex;
const TransformedVertexData &tvd2 = *mp.mp_PolygonVertices[2].mpv_ptvTransformedVertex;
// calculate polygon normal with front plane clipping
FLOAT fD1X = tvd2.tvd_fX - tvd1.tvd_fX;
FLOAT fD1Y = tvd2.tvd_fY - tvd1.tvd_fY;
FLOAT fD1Z = tvd2.tvd_fZ - tvd1.tvd_fZ;
FLOAT fD2X = tvd0.tvd_fX - tvd1.tvd_fX;
FLOAT fD2Y = tvd0.tvd_fY - tvd1.tvd_fY;
FLOAT fD2Z = tvd0.tvd_fZ - tvd1.tvd_fZ;
FLOAT fNX = fD2Y*fD1Z - fD2Z*fD1Y;
FLOAT fNY = fD2Z*fD1X - fD2X*fD1Z;
FLOAT fNZ = fD2X*fD1Y - fD2Y*fD1X;
// calculate polygon normal visibility
FLOAT fVisible;
if( bPerspective) {
fVisible = fNX*tvd0.tvd_fX + fNY*tvd0.tvd_fY + fNZ*tvd0.tvd_fZ;
} else {
fVisible = fNX*prParallel.pr_vViewDirection(1) +
fNY*prParallel.pr_vViewDirection(2) +
fNZ*prParallel.pr_vViewDirection(3);
}
// if the polygon is back-facing
if( fVisible<0) {
// if the polygon is double sided
if( ulRenderFlags & SRF_DOUBLESIDED) {
// mark it as back-facing double sided
mp.mp_slVisibility = VISIBLE_BACK;
// if the polygon is not double sided
} else {
// mark it as invisible
mp.mp_slVisibility = VISIBLE_NOT;
}
// if the polygon is front-facing
} else {
// mark it as visible front-facing
mp.mp_slVisibility = VISIBLE_FRONT;
}
// initally assume that polygon doesn't need clipping
mp.mp_bClipped = FALSE;
// if the polygon plane is not invisible
if( mp.mp_slVisibility != VISIBLE_NOT) {
// for all vertices
{for( INDEX ivx=0; ivx<mp.mp_PolygonVertices.Count(); ivx++) {
const TransformedVertexData &tvd = *mp.mp_PolygonVertices[ivx].mpv_ptvTransformedVertex;
// if vertex is clipped to near plane
if( tvd.tvd_bClipped) {
// mark that the polygon needs clipping
mp.mp_bClipped = TRUE;
break;
}
}}
}
}
_pfModelProfile.StopTimer( CModelProfile::PTI_MASK_INITMODELRENDERING);
_pfModelProfile.StartTimer( CModelProfile::PTI_MASK_RENDERMODEL);
_pfModelProfile.IncrementTimerAveragingCounter( CModelProfile::PTI_MASK_RENDERMODEL);
// render back side first and front side after that
RenderOneSide( rm, VISIBLE_BACK);
RenderOneSide( rm, VISIBLE_FRONT);
_pfModelProfile.StopTimer( CModelProfile::PTI_MASK_RENDERMODEL);
}
```
|
Issoufou Boubacar Garba (born 2 February 1990) is a retired Nigerien footballer. He played national football for his country.
Career
Garba played for Muangthong United F.C. in the Thai Premier League in 2011.
On July 13, 2012, Garba signed a four-year contract with Tunisian side Club Africain.
Honours
'''Champions Niger Premier League: 2010
International goals
References
1990 births
Living people
Sportspeople from Niamey
Men's association football midfielders
Nigerien men's footballers
Niger men's international footballers
2012 Africa Cup of Nations players
2013 Africa Cup of Nations players
AS FAN players
Rail Club du Kadiogo players
Issoufou Boubacar Garba
Issoufou Boubacar Garba
Club Africain players
Olympic FC de Niamey players
CS Hammam-Lif players
Stade Tunisien players
Young Africans S.C. players
Nigerien expatriate men's footballers
Expatriate men's footballers in Burkina Faso
Expatriate men's footballers in Thailand
Expatriate men's footballers in Tunisia
Expatriate men's footballers in Tanzania
Nigerien expatriate sportspeople in Burkina Faso
Nigerien expatriate sportspeople in Thailand
Nigerien expatriate sportspeople in Tunisia
Nigerien expatriate sportspeople in Tanzania
Tunisian Ligue Professionnelle 1 players
Tanzanian Premier League players
|
```java
/*
* Neo4j Sweden AB [path_to_url
*
* This file is part of Neo4j.
*
*
* 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 apoc.generate;
import apoc.generate.config.BarabasiAlbertConfig;
import apoc.generate.config.BasicGeneratorConfig;
import apoc.generate.node.SocialNetworkNodeCreator;
import apoc.generate.relationship.BarabasiAlbertRelationshipGenerator;
import apoc.generate.relationship.SocialNetworkRelationshipCreator;
import java.util.Collections;
import java.util.LinkedList;
import java.util.List;
import org.junit.After;
import org.junit.Ignore;
import org.junit.Rule;
import org.junit.Test;
import org.neo4j.graphdb.Node;
import org.neo4j.graphdb.Transaction;
import org.neo4j.test.rule.DbmsRule;
import org.neo4j.test.rule.ImpermanentDbmsRule;
/**
* Integration test for {@link Neo4jGraphGenerator} with {@link BarabasiAlbertRelationshipGenerator}.
*/
public class BarabasiAlbertGeneratorTest {
@Rule
public DbmsRule db = new ImpermanentDbmsRule();
@After
public void teardown() {
db.shutdown();
}
@Test
public void shouldGeneratePowerLawDistribution() {
new Neo4jGraphGenerator(db)
.generateGraph(new BasicGeneratorConfig(
new BarabasiAlbertRelationshipGenerator(new BarabasiAlbertConfig(100, 2)),
new SocialNetworkNodeCreator(),
new SocialNetworkRelationshipCreator()));
List<Integer> degrees = new LinkedList<>();
try (Transaction tx = db.beginTx()) {
for (Node node : tx.getAllNodes()) {
degrees.add(node.getDegree());
}
tx.commit();
}
Collections.sort(degrees, Collections.reverseOrder());
// TODO make this an automated test
// System.out.println(ArrayUtils.toString(degrees.toArray(new Integer[degrees.size()])));
}
@Test(timeout = 10 * 1000)
@Ignore
public void your_sha256_hashe() {
new BarabasiAlbertRelationshipGenerator(new BarabasiAlbertConfig(1_000_000, 3)).generateEdges();
}
}
```
|
Bart the Bear 2, also called Bart the Bear II, Bart 2, Bart II, or Little Bart (January 20, 2000 β November 14, 2021) was a male interior Alaskan grizzly bear who appeared in several films and television series, including An Unfinished Life, Into the Wild, Evan Almighty, We Bought a Zoo, Game of Thrones, and most recently Into the Grizzly Maze. His trainers were Doug Seus and Lynne Seus of Wasatch Rocky Mountain Wildlife, Inc., in Heber City, Utah. Bart 2 was named after the earlier Seus-trained Bart the Bear, although the two bears are not related.
Early life
Bart 2 and his sister, Honey Bump, were born in January 2000. Within a few months, they were orphaned when their mother was shot and killed outside Paxson, Alaska within the Wrangell Mountains. They were found by an Alaskan State Trooper, Gregory Fisher. Unable to survive on their own, they lived in the Fisher household with Gregβs wife, Mallie, and their two children, Hunter and Wyatt, before being officially adopted by Doug and Lynne Seus on April 26, 2000. Bart 2 was named after the Seus' well-known bear Bart the Bear, who died two weeks later in May, shortly after the Seuses adopted the cubs. Doug Seus decided to name the new male cub after the original Bart after seeing that he "had the same nature as the original Bart, and a lot of the attributes." That same year, Bart 2 made his film debut along with Honey Bump in Dr. Dolittle 2, appearing as the offspring of the bear character "Archie" (who was portrayed by another Seus-trained bear, Tank).
The childhood and young adulthood of Bart 2 and Honey Bump were the focus of two episodes of the Animal Planet channel Growing Up... series. Growing Up Grizzly (2001), hosted by Brad Pitt, focused on the cubs' first year. A second episode, Growing Up Grizzly 2 (2004), hosted by Jennifer Aniston, updated viewers on Bart and Honey Bump's life.
As a cub and young adult bear, Bart 2 was often called "Little Bart". However, since growing to his adult size of tall and , he has been more frequently called "Bart" or "Bart the Bear", with or without the addition of "2" or "II".
Career
Like his predecessor Bart the Bear, Bart 2 has appeared in many Hollywood films and television series, and has also served as an ambassador for the Vital Ground Foundation, which procures threatened wildlife habitat. He has appeared on screen with Kevin James, Emile Hirsch, and Matt Damon. His widely publicized 2013 appearance on the HBO TV series Game of Thrones, in which he was pitted against Jaime Lannister and Brienne of Tarth, received rave reviews. Bart 2's final appearance was in the action horror-thriller Into the Grizzly Maze.
Death
On November 14, 2021, Bart died at home in Heber City, Utah, due to declining health. He was 21 years old.
Filmography
Films
Dr. Dolittle 2 (2001) (with Honey Bump and Tank)
Without a Paddle (2004)
An Unfinished Life (2005)
Evan Almighty (2007) (with Honey Bump)
Into the Wild (2007)
Friends for Life (2008) (direct-to-DVD)
Did You Hear About the Morgans? (2009)
Horse Crazy 2: The Legend of Grizzly Mountain (2010)
Zookeeper (2011) (with Honey Bump)
We Bought a Zoo (2011) (with Tank)
Into the Grizzly Maze (2015)
Television
Growing Up Grizzly (2001, Animal Planet) (with Honey Bump)
Growing Up Grizzly 2 (2004, Animal Planet) (with Honey Bump)
Into the West (TV miniseries) (2005, TNT) (produced by DreamWorks)
CSI: Crime Scene Investigation... Season 5, Episode 14, "Unbearable" (2005)
Scrubs ... Season 5, Episode 5, "My New God" (2006)
Game of Thrones ... Season 3, Episode 7, "The Bear and the Maiden Fair" (2013)
See also
List of individual bears
References
External links
Wasatch Rocky Mountain Wildlife, Inc.
2000 animal births
2021 animal deaths
Individual animals in the United States
Bear actors
|
```go
package ssh
// KeyRing is an abstraction providing access to a managed SSH key pair. Whilst
// the public half is available in byte form, the private half is left on the
// filesystem to avoid memory management issues.
type KeyRing interface {
KeyPair() (publicKey PublicKey, privateKeyPath string)
Regenerate() error
}
type sshKeyRing struct{}
// NewNopSSHKeyRing returns a KeyRing that doesn't do anything.
// It is meant for local development purposes when running fluxd outside a Kubernetes container.
func NewNopSSHKeyRing() KeyRing {
return &sshKeyRing{}
}
func (skr *sshKeyRing) KeyPair() (PublicKey, string) {
return PublicKey{}, ""
}
func (skr *sshKeyRing) Regenerate() error {
return nil
}
```
|
```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 "test/cpp/auto_parallel/spmd_rule_test_util.h"
namespace paddle {
namespace distributed {
namespace auto_parallel {
TEST(CrossEntropyInferSpmd, Ctor) {
std::vector<int64_t> x_shape = {32, 48};
std::vector<int64_t> mesh_shape = {2, 3};
std::vector<int64_t> process_ids = {0, 1, 2, 3, 4, 5};
std::vector<std::string> dim_names = {"x", "y"};
ProcessMesh process_mesh(mesh_shape, process_ids, dim_names);
TensorDistAttr x_dist_attr = TensorDistAttr();
x_dist_attr.set_process_mesh(process_mesh);
x_dist_attr.set_dims_mapping(std::vector<int64_t>({0, -1}));
x_dist_attr.set_dynamic_dims(std::vector<bool>({false, false}));
TensorDistAttr label_dist_attr = TensorDistAttr();
label_dist_attr.set_process_mesh(process_mesh);
label_dist_attr.set_dims_mapping(std::vector<int64_t>({0, -1}));
label_dist_attr.set_dynamic_dims(std::vector<bool>({false, false}));
// forward
{
phi::distributed::DistMetaTensor x(phi::make_ddim(x_shape), x_dist_attr);
phi::distributed::DistMetaTensor label(phi::make_ddim(x_shape),
label_dist_attr);
int axis = 1;
auto spmdinfo =
CrossEntropyWithSoftmaxInferSpmd(x, label, false, true, true, 1, axis);
EXPECT_EQ(spmdinfo.first.size(), 2UL);
EXPECT_EQ(spmdinfo.second.size(), 2UL);
check_dim_mapping(spmdinfo.first[0], {0, -1});
check_dim_mapping(spmdinfo.first[1], {0, -1});
check_dim_mapping(spmdinfo.second[0], {0, -1});
check_dim_mapping(spmdinfo.second[1], {0, -1});
check_partial_dims(spmdinfo.second[0], {});
VLOG(4) << "Test CrossEntropyWithSoftmaxInferSpmd sharding on other axes."
<< std::endl
<< std::endl
<< std::endl;
}
// test sharding along softmax axis.
{
x_dist_attr.set_dims_mapping(std::vector<int64_t>({0, 1}));
label_dist_attr.set_dims_mapping(std::vector<int64_t>({0, -1}));
phi::distributed::DistMetaTensor x(phi::make_ddim(x_shape), x_dist_attr);
phi::distributed::DistMetaTensor label(phi::make_ddim(x_shape),
label_dist_attr);
int axis = 1;
auto spmdinfo =
CrossEntropyWithSoftmaxInferSpmd(x, label, false, true, true, 1, axis);
EXPECT_EQ(spmdinfo.first.size(), 2UL);
EXPECT_EQ(spmdinfo.second.size(), 2UL);
check_dim_mapping(spmdinfo.first[0], {0, -1});
check_dim_mapping(spmdinfo.first[1], {0, -1});
check_dim_mapping(spmdinfo.second[0], {0, -1});
check_dim_mapping(spmdinfo.second[1], {0, -1});
check_partial_dims(spmdinfo.second[0], {});
VLOG(4) << "Test CrossEntropyWithSoftmaxInferSpmd sharding on other axes."
<< std::endl
<< std::endl
<< std::endl;
}
// backward
{
std::vector<int64_t> loss_shape = {32, 1};
// Sharding along softmax axis.
x_dist_attr.set_dims_mapping(std::vector<int64_t>{0, 1});
label_dist_attr.set_dims_mapping(std::vector<int64_t>({0, 1}));
auto label = phi::distributed::DistMetaTensor(phi::make_ddim(x_shape),
label_dist_attr);
auto softmax =
phi::distributed::DistMetaTensor(phi::make_ddim(x_shape), x_dist_attr);
auto loss_dist_attr = x_dist_attr;
loss_dist_attr.set_dims_mapping(std::vector<int64_t>({0, -1}));
auto loss_grad = phi::distributed::DistMetaTensor(
phi::make_ddim(loss_shape), x_dist_attr);
int axis = 1;
auto spmdinfo = CrossEntropyWithSoftmaxGradInferSpmd(
label, softmax, loss_grad, true, true, true, 1, axis);
EXPECT_EQ(spmdinfo.first.size(), 3UL);
EXPECT_EQ(spmdinfo.second.size(), 1UL);
check_dim_mapping(spmdinfo.first[0], {0, -1});
check_dim_mapping(spmdinfo.first[1], {0, -1});
check_dim_mapping(spmdinfo.first[2], {0, -1});
check_dim_mapping(spmdinfo.second[0], {0, -1});
check_partial_dims(spmdinfo.second[0], {});
VLOG(4)
<< "Test CrossEntropyWithSoftmaxGradInferSpmd sharding on softmax axis."
<< std::endl
<< std::endl
<< std::endl;
}
}
} // namespace auto_parallel
} // namespace distributed
} // namespace paddle
```
|
```xml
import rule from './index';
import { getHtmlRuleTester, getInvalidTestFactory, getTsRuleTester } from '../../test-helper.spec';
const tsRuleTester = getTsRuleTester();
const htmlRuleTester = getHtmlRuleTester();
const getInvalidSelectTest = getInvalidTestFactory('clrSelectFailure');
htmlRuleTester.run('no-clr-select', rule, {
invalid: [
getInvalidSelectTest({
code: `<select clrSelect name="options" [(ngModel)]="options">
<option value="one">One</option>
<option value="two">Two</option>
<option value="three">Three</option>
</select>`,
locations: [{ line: 1, column: 1 }],
}),
getInvalidSelectTest({
code: `
<clr-select-container>
<label>Select options</label>
<select clrSelect name="options" [(ngModel)]="options">
<option value="one">One</option>
<option value="two">Two</option>
<option value="three">Three</option>
</select>
</clr-select-container>
`,
locations: [{ line: 2, column: 9 }],
}),
],
valid: [`<select>`, `<input clrSelect>`, `<select clrInput>`],
});
tsRuleTester.run('no-clr-select', rule, {
invalid: [
getInvalidSelectTest({
code: `
@Component({
template: \`
<select clrSelect name="options" [(ngModel)]="options">
<option value="one">One</option>
<option value="two">Two</option>
<option value="three">Three</option>
</select>
\`
})
export class CustomSelectComponent {}
`,
locations: [{ line: 4, column: 11 }],
}),
getInvalidSelectTest({
code: `
@Component({
template: \`
<clr-select-container>
<select clrSelect name="options" [(ngModel)]="options">
<option value="one">One</option>
<option value="two">Two</option>
<option value="three">Three</option>
</select>
</clr-select-container>
\`
})
export class CustomSelectComponent {}
`,
locations: [{ line: 4, column: 11 }],
}),
],
valid: [
`
@Component({
template: \`
<select>
\`
})
export class CustomSelectComponent {}
`,
`
@Component({
template: \`
<div clrSelect></div>
\`
})
export class CustomSelectComponent {}
`,
],
});
```
|
Yakima Brewing & Malting Co, also known as Grant's Brewery Pub, was a brewpub founded by Bert Grant in Yakima, Washington. With its opening in 1982, it was regarded as the first in the United States since Prohibition. The company produced beer independently or under a parent through 2004.
History
In 1982, Scotland-born Bert Grant started a brewpub in Yakima's old opera house and later moved it to the city's train depot. The brewery began with a pale ale and eventually developed an IPA, an amber ale, a Scottish ale, an Imperial Stout, and several seasonal varieties. In 1995, Grant sold the brewpub and Yakima Brewing & Malting Co., to Stimson Lane Vineyards & Estates. A 20,000Β sqΒ ftΒ (1,900Β m2) brewery was built in 1990 to expand production capacity. In 2001, shortly after Grant's death, Yakima Brewing and the brewpub were sold to Atlanta-based Black Bear Brewing, which had plans to build a national network of small regional breweries.
Yakima Brewing ran into financial difficulties. In 2003, it avoided foreclosure by giving its plant, property and equipment to International Wine & Spirits Ltd. and entering into a lease agreement. It was also found to be in violation of multiple state securities laws. Brewing operations and the pub were closed after the BNSF Railway won a judgment for more than $85,000 in unpaid rent on the property and legal costs in late 2004. A pub was opened for a third time at a boutique shopping center in 2005. It was closed two months later after the state revoked its liquor license.
Legacy
Being the first of its kind opened in the United States since prohibition, the pub left a legacy in the brewing industry by re-establishing the business model and the craft model of what a brewpub could be. The chief executive of Redhook said that having such a brewpub was essential to fledgling craft brewers.
Grant's Scottish Ale was nationally acclaimed, while the IPA was considered one of the pioneers in the re-introduction and popularization of the style in America (especially with the demise of the legendary IPA made for many years by Ballantine Brewing Co.) . The Lazy Days seasonal ale won the 2004 English-Style Summer Ale gold World Beer Cup award. Grant's Imperial Stout is thought to be the first imperial stout brewed in the United States Grant also is credited with building the first hop pelletizing machine in the United States.
Patents
Method for processing hops for brewing
Mixed solvent extraction of hops
Process for producing a fermented, carbonated beverage
Hopping of brewer's wort
See also
List of defunct breweries in the United States
References
External links
An archive of the company's website can be found at https://web.archive.org/web/*/http://grants.com/
Beer brewing companies based in Washington (state)
Defunct brewery companies of the United States
American beer brands
1982 establishments in Washington (state)
2004 disestablishments in Washington (state)
|
```c++
// This source code is licensed under the BSD-style license found in the
// LICENSE file in the root directory of this source tree. An additional grant
// of patent rights can be found in the PATENTS file in the same directory.
//
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.
#include "util/arena.h"
#ifdef ROCKSDB_MALLOC_USABLE_SIZE
#ifdef OS_FREEBSD
#include <malloc_np.h>
#else
#include <malloc.h>
#endif
#endif
#ifndef OS_WIN
#include <sys/mman.h>
#endif
#include <algorithm>
#include "port/port.h"
#include "rocksdb/env.h"
#include "util/logging.h"
namespace rocksdb {
// MSVC complains that it is already defined since it is static in the header.
#ifndef _MSC_VER
const size_t Arena::kInlineSize;
#endif
const size_t Arena::kMinBlockSize = 4096;
const size_t Arena::kMaxBlockSize = 2u << 30;
static const int kAlignUnit = sizeof(void*);
size_t OptimizeBlockSize(size_t block_size) {
// Make sure block_size is in optimal range
block_size = std::max(Arena::kMinBlockSize, block_size);
block_size = std::min(Arena::kMaxBlockSize, block_size);
// make sure block_size is the multiple of kAlignUnit
if (block_size % kAlignUnit != 0) {
block_size = (1 + block_size / kAlignUnit) * kAlignUnit;
}
return block_size;
}
Arena::Arena(size_t block_size, size_t huge_page_size)
: kBlockSize(OptimizeBlockSize(block_size)) {
assert(kBlockSize >= kMinBlockSize && kBlockSize <= kMaxBlockSize &&
kBlockSize % kAlignUnit == 0);
alloc_bytes_remaining_ = sizeof(inline_block_);
blocks_memory_ += alloc_bytes_remaining_;
aligned_alloc_ptr_ = inline_block_;
unaligned_alloc_ptr_ = inline_block_ + alloc_bytes_remaining_;
#ifdef MAP_HUGETLB
hugetlb_size_ = huge_page_size;
if (hugetlb_size_ && kBlockSize > hugetlb_size_) {
hugetlb_size_ = ((kBlockSize - 1U) / hugetlb_size_ + 1U) * hugetlb_size_;
}
#endif
}
Arena::~Arena() {
for (const auto& block : blocks_) {
delete[] block;
}
#ifdef MAP_HUGETLB
for (const auto& mmap_info : huge_blocks_) {
auto ret = munmap(mmap_info.addr_, mmap_info.length_);
if (ret != 0) {
// TODO(sdong): Better handling
}
}
#endif
}
char* Arena::AllocateFallback(size_t bytes, bool aligned) {
if (bytes > kBlockSize / 4) {
++irregular_block_num;
// Object is more than a quarter of our block size. Allocate it separately
// to avoid wasting too much space in leftover bytes.
return AllocateNewBlock(bytes);
}
// We waste the remaining space in the current block.
size_t size = 0;
char* block_head = nullptr;
#ifdef MAP_HUGETLB
if (hugetlb_size_) {
size = hugetlb_size_;
block_head = AllocateFromHugePage(size);
}
#endif
if (!block_head) {
size = kBlockSize;
block_head = AllocateNewBlock(size);
}
alloc_bytes_remaining_ = size - bytes;
if (aligned) {
aligned_alloc_ptr_ = block_head + bytes;
unaligned_alloc_ptr_ = block_head + size;
return block_head;
} else {
aligned_alloc_ptr_ = block_head;
unaligned_alloc_ptr_ = block_head + size - bytes;
return unaligned_alloc_ptr_;
}
}
char* Arena::AllocateFromHugePage(size_t bytes) {
#ifdef MAP_HUGETLB
if (hugetlb_size_ == 0) {
return nullptr;
}
// already reserve space in huge_blocks_ before calling mmap().
// this way the insertion into the vector below will not throw and we
// won't leak the mapping in that case. if reserve() throws, we
// won't leak either
huge_blocks_.reserve(huge_blocks_.size() + 1);
void* addr = mmap(nullptr, bytes, (PROT_READ | PROT_WRITE),
(MAP_PRIVATE | MAP_ANONYMOUS | MAP_HUGETLB), -1, 0);
if (addr == MAP_FAILED) {
return nullptr;
}
// the following shouldn't throw because of the above reserve()
huge_blocks_.emplace_back(MmapInfo(addr, bytes));
blocks_memory_ += bytes;
return reinterpret_cast<char*>(addr);
#else
return nullptr;
#endif
}
char* Arena::AllocateAligned(size_t bytes, size_t huge_page_size,
Logger* logger) {
assert((kAlignUnit & (kAlignUnit - 1)) ==
0); // Pointer size should be a power of 2
#ifdef MAP_HUGETLB
if (huge_page_size > 0 && bytes > 0) {
// Allocate from a huge page TBL table.
assert(logger != nullptr); // logger need to be passed in.
size_t reserved_size =
((bytes - 1U) / huge_page_size + 1U) * huge_page_size;
assert(reserved_size >= bytes);
char* addr = AllocateFromHugePage(reserved_size);
if (addr == nullptr) {
ROCKS_LOG_WARN(logger,
"AllocateAligned fail to allocate huge TLB pages: %s",
strerror(errno));
// fail back to malloc
} else {
return addr;
}
}
#endif
size_t current_mod =
reinterpret_cast<uintptr_t>(aligned_alloc_ptr_) & (kAlignUnit - 1);
size_t slop = (current_mod == 0 ? 0 : kAlignUnit - current_mod);
size_t needed = bytes + slop;
char* result;
if (needed <= alloc_bytes_remaining_) {
result = aligned_alloc_ptr_ + slop;
aligned_alloc_ptr_ += needed;
alloc_bytes_remaining_ -= needed;
} else {
// AllocateFallback always returns aligned memory
result = AllocateFallback(bytes, true /* aligned */);
}
assert((reinterpret_cast<uintptr_t>(result) & (kAlignUnit - 1)) == 0);
return result;
}
char* Arena::AllocateNewBlock(size_t block_bytes) {
// already reserve space in blocks_ before allocating memory via new.
// this way the insertion into the vector below will not throw and we
// won't leak the allocated memory in that case. if reserve() throws,
// we won't leak either
blocks_.reserve(blocks_.size() + 1);
char* block = new char[block_bytes];
#ifdef ROCKSDB_MALLOC_USABLE_SIZE
blocks_memory_ += malloc_usable_size(block);
#else
blocks_memory_ += block_bytes;
#endif // ROCKSDB_MALLOC_USABLE_SIZE
// the following shouldn't throw because of the above reserve()
blocks_.push_back(block);
return block;
}
} // namespace rocksdb
```
|
In molecular biology, U105 belongs to the C/D family of snoRNAs. It is encoded in an intron of the Peter pan homolog gene and is predicted to guide 2'O-ribose methylation of residue U799 of the small 18S rRNA subunit.
References
External links
snoRNABase page for Small nucleolar RNA SNORD105
Small nuclear RNA
|
The Old Lower Lighthouse is a disused 19th century lighthouse on the Isle of Portland, Dorset, southern England. It is located along the eastern side of Portland Bill. The lighthouse, including its boundary walls and coastguard house, became Grade II Listed in September 1978.
Working alongside the Old Higher Lighthouse from 1716, the lower lighthouse has subsequently been rebuilt twice, once in 1789 (when it became the first working lighthouse to have its light intensified by lenses and again in 1869. The lighthouse seen today was built in 1869 and has been the home of the Portland Bird Observatory since 1961.
History
Original operation as a lighthouse
The surrounding coast of Portland, namely Portland Bill and Chesil Beach, have been notorious for the many vessels that became shipwrecked in the area over the centuries. After years of local petitions to Trinity House, the organisation agreed for a lighthouse to be built at Portland Bill. George I granted the patent in 1716. That year it was announced that Trinity House had 'caus'd to be erected two round Light-Houses of Stone upon Portland, in the County of Dorset, distant about two Thirds of a Mile from the Bill of Portland'. The Old Higher Lighthouse was built at Branscombe Hill, and the other on lower land. Designed as leading lights to guide ships between Portland Race and the Shambles sandbank, they shone out for the first time on 29 September 1716. Initially, both were fire lights. Although they had been privately built, Trinity House took over responsibility for the lights on finding them poorly maintained, in 1752.
In 1789, Trinity House hired the Weymouth builder William Johns to demolish and rebuild the lower lighthouse. The new lighthouse, 63 feet high and built of Portland stone, was then installed with six Argand lights and spherical reflectors, together with a new lens system created by Thomas Rogers. (Rogers had been experimenting with incorporating lenses into the windows of lighthouse lanterns, and this was the first time that his lenses had been installed in a practical setting. Though they only remained in place for a few years, they represent the beginning of something that would later become standard practice: the application of dioptric technology to a lighthouse.
In 1824 the lights in both towers were renewed and improved by Trinity House; whilst the High Light was made revolving at this time, the Lower Light remained stationary but with 'its power and magnitude [...] considerably increased'. In 1869 Trinity House had both lighthouses rebuilt to allow for further improvements to be made; at the same time they were each provided with a large (first-order) fixed optic, designed and built by James Chance.
At the turn of the 20th century, Trinity House made plans to build a new lighthouse at Bill Point to replace both current lighthouses. The new lighthouse was completed in 1905, and the original two lighthouses were then auctioned.
Establishment of bird observatory
During the Great War the lighthouse was the "Longstone Ope Tea Gardens". The lighthouse then saw several ownership changes, and was used as a family home for some of this time. After World War II, the lighthouse was empty and derelict.
During the 1950s, the studying of bird migration was becoming established on Portland. Many ornithologists were visiting the island and Portland Bill. Through the generosity of Miss Helen Brotherton and her family, the ornithologists were able to make the lighthouse their permanent base. In March 1961 the conversion and repair work had been completed, and the observatory was officially opened by Sir Peter Scott, as Portland's Bird Observatory and Field Centre. The observatory later became a registered charity. It caters for naturalists of all persuasions and offers hostel-style accommodation.
See also
List of lighthouses in England
References
External links
Portland Bird Observatory and Field Centre official website
1716 establishments in England
Lighthouses completed in 1716
Towers completed in 1716
Bird observatories in England
Grade II listed buildings in Dorset
Grade II listed lighthouses
Isle of Portland
Lighthouses in Dorset
Lighthouses of the English Channel
Observation towers in the United Kingdom
19th-century architecture in the United Kingdom
Towers in Dorset
|
```java
package com.yahoo.jdisc.handler;
import com.yahoo.jdisc.Response;
import java.util.concurrent.Callable;
/**
* This is a convenient subclass of {@link ResponseDispatch} that implements the {@link Callable} interface. This
* should be used in place of {@link ResponseDispatch} if you intend to schedule its execution. Because {@link #call()}
* does not return until the entirety of the {@link Response} and its content have been consumed, you can use the
* <code>Future</code> return value of <code>ExecutorService.submit(Callable)</code> to wait for it to complete.
*
* @author Simon Thoresen Hult
*/
public abstract class CallableResponseDispatch extends ResponseDispatch implements Callable<Boolean> {
private final ResponseHandler handler;
/**
* Constructs a new instances of this class over the given {@link ResponseHandler}. Invoking {@link #call()} will
* dispatch to this handler.
*
* @param handler The ResponseHandler to dispatch to.
*/
public CallableResponseDispatch(ResponseHandler handler) {
this.handler = handler;
}
@Override
public final Boolean call() throws Exception {
return dispatch(handler).get();
}
}
```
|
Gays Against Guns (GAG) is a direct action group of LGBTQ people committed to ending gun violence through nonviolent means, civil disobedience, and activism. The group was founded by Kevin Hertzog, Brian Worth and John Grauwiler in 2016, as a result of the Pulse nightclub attack in Orlando, Florida which had killed 49 people and wounded 53 others in a mass shooting. It is the deadliest incident of violence against LGBTQ people in U.S. history and the deadliest terrorist attack in the U.S. since the September 11 attacks in 2001.
Two weeks after the June 2016 attack, a group of activists presented a large banner made by Gilbert Baker, inventor of the rainbow flag, stating βGays Against Gunsβ, and led the New York City LGBT Pride March. Their contingent of 750 marchers, plus 49 veiled in white, staged die-ins along the 5th Avenue route and introduced their βHuman Beingsβ, people dressed in white with white veils representing the gun violence victims. They also had a second massive banner stating "Republican Hate Kills." Within two months the group had over 300 New York City members, and chapters in nine cities across the U.S. They were going to go after gun manufacturers, including Smith & Wesson and Sturm, Ruger & Co. the two largest gun companies, gun lobbyists, their shareholders, and corporate backers. In an October 2017 Teen Vogue op-ed, GAG's social media director posited that gun violence is a disease that can be treated and cured.
Opposition to the National Rifle Association
From the beginning the group included veterans of ACT UP, a famous LGBTQ direct action group, and set an intention to take action in opposition to the National Rifle Association of America (NRA), one of the most influential lobbying groups in Washington, D.C. Part of the strategy was to target where the NRA would get its funds, including from corporations like Wyndham Hotels and Resorts, The Hertz Corporation, and FedEx. In early 2018 they staged protests at FedEx's Manhattan corporate headquarters and local chapters targeted stores across the country. The nationwide protests took place on the 26th of each month to bring attention to the 26% discount FedEx gave to NRA members. In October 2018 FedEx cut ties with the NRA.
The group has staged die-ins at money managers BlackRock, one of the largest funders of gun makers. Starting at a local park, the protesters followed people draped in white veils holding placards honoring victims of gun violence. The protesters had signs with βGun$ sell. People die. $tock soars.β At BlackRock, no one from the company would come out so they staged a die-in, twelve people laid down, representing the twelve people killed in the 2012 Aurora, Colorado shooting. The participants were given white chalk outlines and surrounded with red popcorn to represent the spilled blood. Said a campaigner, βTheyβre smart enough to acknowledge they profit from massacres but canβt find a way to unload those stocks? Thatβs amoral.β Other companies targeted include MetLife and Visa Inc. GAG warns companies to drop the NRA or lose the LGBTQ communitiesβ business, which was estimated at $917 billion in 2017.
Art components
Their campaigns include both a direct action component and an art component that expresses the groups sensibilities. After the February 2018 Stoneman Douglas High School shooting, which killed 17 people, GAG members traveled to Florida to offer support. At Rockefeller Center GAG sang adapted carols to Christmas shoppers. They also advocate for gun control laws. In February 2019, for Valentine's Day, they protested to draw attention to pending gun legislation in the United States Capitol, in addition to their Human Beings, a group dressed in red formed a giant broken heart on the ground. Other LGBTQ groups including Human Rights Campaign and Pride Fund to End Gun Violence, which formed in response to Pulse club massacre, also call for gun control. In March 2018 they staged a protest outside the NRA's headquarters in Fairfax, Virginia, where they sang Broadway showtunes with modified lyrics. March 2018 GAG set up a fashion runway at the March for Our Lives, a student-led demonstration in support of legislation to prevent gun violence, planned by student organizers from Never Again MSD in collaboration with Everytown for Gun Safety. GAG encouraged the estimated 800,000 people to note βThese politicians act so ridiculous, so we're going to show them just how ridiculous they really are,β while βsashaying awayβ, recalling the famous RuPaul line from RuPaul's Drag Race when contestants lose the final lip sync challenge.
Protests and campaigns
In 2016 GAG protested CrossFit Games, where prizes included handguns, and firearms manufacturer SIG Sauer in New Hampshire. In July 2016, to protest Donald Trump on the first night of the Republican National Convention, GAG staged an action at Trump Tower. In August 2016, the newly formed D.C. chapter protested the National Shooting Sports Foundation. The Los Angeles chapter, which started at this time, pulled inspiration from the Flower Power photograph. In February 2017 they held a protest to honor the victims of the Stoneman Douglas High School shooting. In March 2017 GAG's first advertising campaign was launched in opposition to The Concealed Carry Reciprocity Act of 2017. In April 2017 GAG's Orlando, Florida chapter was launched. In June 2017 GAG held a protest and memorial at Stonewall Inn to mark the one year anniversary of the Pulse massacre, and the Emanuel African Methodist Episcopal Church shooting in Charleston, South Carolina. In November 2018 they held a protest rally to honor the twelve Thousand Oaks shooting victims. Gays Against Guns is also the subject of a forthcoming documentary, directed by Paul Rowley of Still Films.
See also
Americans for Responsible Solutions
Brady Campaign
Dickey Amendment
Everytown for Gun Safety
Moms Demand Action for Gun Sense in America
Pink Pistols
References
2016 establishments in the United States
Gun violence in the United States
LGBT organizations in the United States
Organizations established in 2016
|
The Geneva gown, also called a pulpit gown, pulpit robe, or preaching robe, is an ecclesiastical garment customarily worn by ordained ministers and Accredited Lay Preachers in the Christian churches that arose out of the historic Protestant Reformation. It is particularly associated with Protestant churches of the Reformed, Methodist, Unitarian and Free Christian traditions.
Description
The gown, analogous to the Western doctoral robe and similar to American judicial attire, is constructed from heavy material, most appropriately of black color, and usually features double-bell sleeves with a cuff (mimicking the cassock once worn under it) and velvet facings (or panels) running over the neck and down both sides of the front enclosure length-wise, mimicking the ecclesiastical tippet once worn over it.
A minister who has earned an academic doctoral degree in any of the theological disciplines (DD, D.Min., STD, Th.D.) or in the liberal arts and sciences (PhD, DA) may adorn each sleeve with three chevrons or bars of velvet cloth in black or scarlet red, signifying senior scholarly credentials. The velvet panels of the gown's facings match the chevrons. Some doctoral gowns also have black velvet chevrons and panels, and adorned with red piping.
Contemporary choir robes and other expressions of lay vesture are inspired by, but remain distinct from, the Geneva gown.
Purpose
The simple yet dignified gown is meant to convey the authority and solemn duty of the Ordained or Accredited Lay Preacher in his ministry as called by God to proclaim the Gospel of Jesus and preach the biblical Word of God, the bearer being a learned minister of the Word and teaching elder (presbyter) over the church faithful.
Worn over street clothes, traditionally a cassock but today more commonly a business suit with or without clerical collar, the gown eschews ostentation, obscuring individual grooming and concealing fashion preferences, and instead draws attention to the wearer's office and not the person.
History
The Reformed Protestant Reformers of western Europe rejected the traditional dress worn by members of the Roman Catholic Church because they disagreed with what it represented. Instead, they began attending church in their daily clothes, which happened to be long black robes due to the fact that the majority of the Reformation leaders were of the scholarly class. This was eventually defined as liturgical dress, and the traditional garment for those in leadership roles.
Usage
By convention a minister or lay preacher may wear the gown only at expressly Christian services of worship wherein a sermon, that is an exposition of Scripture, is delivered.
With the gown a minister may also wear preaching bands and a liturgical stole. A lay preacher may also wear a preaching scarf. Less typically a minister may choose to put on white gloves when distributing the elements of the Lord's Supper, a practice predating the advent of stainless steel chalices and communion trays.
For historical and theological reasons the gown is most typical of Congregational, Presbyterian and Reformed churches, that is those congregations primarily influenced by Calvinist formulations of Christian doctrine and church order. Though historically also common with Baptist and Methodist clergy, its use waned in the 20th century. During that century, there was a general shift toward a less formal religious service; this movement spread across most denominational lines.
Another liturgical movement which took place was a renewed interest in medieval liturgical practices. This was an outgrowth of the 19th-century Oxford Movement which took place in the Church of England. During the later half of the 20th century, the ongoing effects of this movement began to spark interest for liturgical reforms in non-Anglican denominations in America (particularly the United Methodist Church and the Presbyterian Church). Today, it is not uncommon to find the alb worn by many mainline Protestant clergy during services. This, however, should not be seen as a revival of historical practice, but as part of general liturgical reforms which were occurring in denominations at that time.
The typical clerical dress of an Anglican minister during the 18th century was a cassock, Geneva gown, and neck bands. For this reason, the gown is sometimes (though rarely) found in "low church" parishes of the Anglican Communion, many whom desire a continuity with the stauncher Protestant stances of the church before the influence of the Oxford Movement. In these parishes it is usual for the gown to be worn for preaching, whilst the surplice is worn for the liturgy. It is also widely used in many African-American congregations regardless of denominational affiliation. Use of the gown has also waned in Lutheran churches, though it seemed to be common during the 19th and first half of the 20th centuries. Rarely is this uniquely Protestant attire worn by Eastern Orthodox or Roman Catholics.
In the Presbyterian Church of Scotland, it is normal for the Geneva gown to be vented (opened at the front), sleeveless, and worn over a cassock. The cassock, usually black (like its counterpart in the Church of England), also comes in blue (signifying the Royal Blue in the Flag of Scotland, which bears the Cross of St. Andrew, the patron saint of Scotland), or scarlet red signifying a King"s Chaplain. This practice is sometimes followed by some English Methodists and American Presbyterians, although wearing the more familiar American-style gown, including wearing a black cassock in Roman or Anglican cut.
Trends
United or Uniting churches which contain an episcopalian element have in some countries (notably Australia; generally not in Canada) tended to abandon the Geneva gown in favor of the more symbolically ecumenical alb and cincture, whereas some non-united evangelical congregations have for various reasons done away with distinct ministerial dress altogether.
Some rabbis and spiritual leaders of other non-Christian faiths have fashioned their modern religious garb patterned after the historic Geneva gown.
Among the Paleo-orthodoxy and emerging church movements in Protestant and evangelical churches, particularly Methodist, Lutheran, and Presbyterian, many clergy are reclaiming not only the traditional Eucharist vestments of alb and chasuble, but also cassock and surplice (typically a full-length Old English style) with appropriate liturgical stole, and cassock and Geneva gown for a Liturgy or Service of the Word.
References
The Advent of the Use of the Geneva Gown in Public Worship by D.G. Laird, a United Church of Canada minister.
A Defense of the Use of the Ministerial Robe in Public Worship by Jeff Myers, a teaching elder of the Presbyterian Church in America.
Why does the minister wear a robe?, Redeemer Presbyterian Church, Overland Park, Kan.
Material History of American Religion Project: Ministerial Dress by Nolan B. Harmon β an advice book published in 1950 for young American clergy.
Protestant vestments
History of clothing (Western fashion)
History of fashion
Methodism
Presbyterianism
|
Aepiblemus is a genus of beetles in the family Carabidae, containing the following species:
Aepiblemus caeculus Belousov & Kabak, 1993
Aepiblemus marginalis Belousov & Kabak, 1997
References
Trechinae
|
```css
Drop caps with `::first-letter`
Change the color of the decoration with `text-decoration-color`
Use ```list-style-type``` to change the marker type in lists
A great font resource: Google Font API
Page breaks for printing
```
|
Gideon Adlon (born ) is an American actress. Her films include Blockers (2018), The Mustang (2019), The Craft: Legacy (2020), and Sick (2022). On television, she is known for her roles in the Netflix series The Society (2019) and the NBC series The Thing About Pam (2022).
She is also known for her voice work on the video game The Walking Dead: The Final Season (2018) and the animated series Pacific Rim: The Black (2021β2022), Battle Kitty (2022), and Shape Island (2023).
Early life and education
Adlon was born in Los Angeles and holds both American and German citizenship through her father. She is the oldest daughter of actress Pamela Adlon and director Felix O. Adlon. Her younger sisters are actress Odessa A'zion and Valentine "Rocky" Adlon. Her paternal grandfather is German filmmaker Percy Adlon and her maternal grandfather was American writer-producer Don Segall. Her maternal grandfather was born to a Jewish family, and her English-born maternal grandmother, originally an Anglican, converted to Judaism. Through her father, she descends from the German hotelier Lorenz Adlon.
Adlon studied Photography at Columbia College Chicago for a year before deciding to pursue acting full-time.
Career
Adlon made her professional acting debut in a 2011 episode of the FX comedy-drama series Louie, which also featured her mother Pamela. She went on to make guest appearances in the Disney Channel sitcom Girl Meets World (2016), the FX comedy-drama series Better Things (2016), the ABC miniseries When We Rise (2017), the CBS crime drama series Criminal Minds (2017), and the ABC anthology crime drama series American Crime (2017).
Adlon received further recognition for her first starring role in the sex comedy film Blockers (2018), which received positive reviews and box office success. She went on to star in the critically acclaimed drama film The Mustang (2019). Also in 2019, Adlon had a starring role as Becca Gelb in the Netflix mystery teen drama series The Society. The series was originally renewed for a second season, but was later canceled as a result of the COVID-19 pandemic causing cost increases and difficulty scheduling production.
Adlon starred as Frankie in the horror sequel film The Craft: Legacy, which was released on October 28, 2020. In 2021 she starred as Claire in the horror fantasy film Witch Hunt.
Filmography
Film
Television
Video games
References
External links
1997 births
Living people
21st-century American actresses
Actresses from Los Angeles
Gideon
American child actresses
American film actresses
American television actresses
American people of English descent
American people of German descent
American people of Russian-Jewish descent
American people of Ukrainian-Jewish descent
Citizens of Germany through descent
Jewish American actresses
21st-century American Jews
|
Werauhia burgeri is a plant species in the genus Werauhia. This species is native to Costa Rica.
References
burgeri
Flora of Costa Rica
|
```php
<?php
/**
* Dependencies API: Styles functions
*
* @since 2.6.0
*
* @package WordPress
* @subpackage Dependencies
*/
/**
* Initialize $wp_styles if it has not been set.
*
* @global WP_Styles $wp_styles
*
* @since 4.2.0
*
* @return WP_Styles WP_Styles instance.
*/
function wp_styles() {
global $wp_styles;
if ( ! ( $wp_styles instanceof WP_Styles ) ) {
$wp_styles = new WP_Styles();
}
return $wp_styles;
}
/**
* Display styles that are in the $handles queue.
*
* Passing an empty array to $handles prints the queue,
* passing an array with one string prints that style,
* and passing an array of strings prints those styles.
*
* @global WP_Styles $wp_styles The WP_Styles object for printing styles.
*
* @since 2.6.0
*
* @param string|bool|array $handles Styles to be printed. Default 'false'.
* @return array On success, a processed array of WP_Dependencies items; otherwise, an empty array.
*/
function wp_print_styles( $handles = false ) {
if ( '' === $handles ) { // for wp_head
$handles = false;
}
/**
* Fires before styles in the $handles queue are printed.
*
* @since 2.6.0
*/
if ( ! $handles ) {
do_action( 'wp_print_styles' );
}
_wp_scripts_maybe_doing_it_wrong( __FUNCTION__ );
global $wp_styles;
if ( ! ( $wp_styles instanceof WP_Styles ) ) {
if ( ! $handles ) {
return array(); // No need to instantiate if nothing is there.
}
}
return wp_styles()->do_items( $handles );
}
/**
* Add extra CSS styles to a registered stylesheet.
*
* Styles will only be added if the stylesheet in already in the queue.
* Accepts a string $data containing the CSS. If two or more CSS code blocks
* are added to the same stylesheet $handle, they will be printed in the order
* they were added, i.e. the latter added styles can redeclare the previous.
*
* @see WP_Styles::add_inline_style()
*
* @since 3.3.0
*
* @param string $handle Name of the stylesheet to add the extra styles to.
* @param string $data String containing the CSS styles to be added.
* @return bool True on success, false on failure.
*/
function wp_add_inline_style( $handle, $data ) {
_wp_scripts_maybe_doing_it_wrong( __FUNCTION__ );
if ( false !== stripos( $data, '</style>' ) ) {
_doing_it_wrong( __FUNCTION__, __( 'Do not pass style tags to wp_add_inline_style().' ), '3.7' );
$data = trim( preg_replace( '#<style[^>]*>(.*)</style>#is', '$1', $data ) );
}
return wp_styles()->add_inline_style( $handle, $data );
}
/**
* Register a CSS stylesheet.
*
* @see WP_Dependencies::add()
* @link path_to_url#media-types List of CSS media types.
*
* @since 2.6.0
* @since 4.3.0 A return value was added.
*
* @param string $handle Name of the stylesheet. Should be unique.
* @param string $src Full URL of the stylesheet, or path of the stylesheet relative to the WordPress root directory.
* @param array $deps Optional. An array of registered stylesheet handles this stylesheet depends on. Default empty array.
* @param string|bool|null $ver Optional. String specifying stylesheet version number, if it has one, which is added to the URL
* as a query string for cache busting purposes. If version is set to false, a version
* number is automatically added equal to current installed WordPress version.
* If set to null, no version is added.
* @param string $media Optional. The media for which this stylesheet has been defined.
* Default 'all'. Accepts media types like 'all', 'print' and 'screen', or media queries like
* '(orientation: portrait)' and '(max-width: 640px)'.
* @return bool Whether the style has been registered. True on success, false on failure.
*/
function wp_register_style( $handle, $src, $deps = array(), $ver = false, $media = 'all' ) {
_wp_scripts_maybe_doing_it_wrong( __FUNCTION__ );
return wp_styles()->add( $handle, $src, $deps, $ver, $media );
}
/**
* Remove a registered stylesheet.
*
* @see WP_Dependencies::remove()
*
* @since 2.1.0
*
* @param string $handle Name of the stylesheet to be removed.
*/
function wp_deregister_style( $handle ) {
_wp_scripts_maybe_doing_it_wrong( __FUNCTION__ );
wp_styles()->remove( $handle );
}
/**
* Enqueue a CSS stylesheet.
*
* Registers the style if source provided (does NOT overwrite) and enqueues.
*
* @see WP_Dependencies::add()
* @see WP_Dependencies::enqueue()
* @link path_to_url#media-types List of CSS media types.
*
* @since 2.6.0
*
* @param string $handle Name of the stylesheet. Should be unique.
* @param string $src Full URL of the stylesheet, or path of the stylesheet relative to the WordPress root directory.
* @param array $deps Optional. An array of registered stylesheet handles this stylesheet depends on. Default empty array.
* @param string|bool|null $ver Optional. String specifying stylesheet version number, if it has one, which is added to the URL
* as a query string for cache busting purposes. If version is set to false, a version
* number is automatically added equal to current installed WordPress version.
* If set to null, no version is added.
* @param string $media Optional. The media for which this stylesheet has been defined.
* Default 'all'. Accepts media types like 'all', 'print' and 'screen', or media queries like
* '(orientation: portrait)' and '(max-width: 640px)'.
*/
function wp_enqueue_style( $handle, $src = false, $deps = array(), $ver = false, $media = 'all' ) {
_wp_scripts_maybe_doing_it_wrong( __FUNCTION__ );
$wp_styles = wp_styles();
if ( $src ) {
$_handle = explode('?', $handle);
$wp_styles->add( $_handle[0], $src, $deps, $ver, $media );
}
$wp_styles->enqueue( $handle );
}
/**
* Remove a previously enqueued CSS stylesheet.
*
* @see WP_Dependencies::dequeue()
*
* @since 3.1.0
*
* @param string $handle Name of the stylesheet to be removed.
*/
function wp_dequeue_style( $handle ) {
_wp_scripts_maybe_doing_it_wrong( __FUNCTION__ );
wp_styles()->dequeue( $handle );
}
/**
* Check whether a CSS stylesheet has been added to the queue.
*
* @since 2.8.0
*
* @param string $handle Name of the stylesheet.
* @param string $list Optional. Status of the stylesheet to check. Default 'enqueued'.
* Accepts 'enqueued', 'registered', 'queue', 'to_do', and 'done'.
* @return bool Whether style is queued.
*/
function wp_style_is( $handle, $list = 'enqueued' ) {
_wp_scripts_maybe_doing_it_wrong( __FUNCTION__ );
return (bool) wp_styles()->query( $handle, $list );
}
/**
* Add metadata to a CSS stylesheet.
*
* Works only if the stylesheet has already been added.
*
* Possible values for $key and $value:
* 'conditional' string Comments for IE 6, lte IE 7 etc.
* 'rtl' bool|string To declare an RTL stylesheet.
* 'suffix' string Optional suffix, used in combination with RTL.
* 'alt' bool For rel="alternate stylesheet".
* 'title' string For preferred/alternate stylesheets.
*
* @see WP_Dependency::add_data()
*
* @since 3.6.0
*
* @param string $handle Name of the stylesheet.
* @param string $key Name of data point for which we're storing a value.
* Accepts 'conditional', 'rtl' and 'suffix', 'alt' and 'title'.
* @param mixed $value String containing the CSS data to be added.
* @return bool True on success, false on failure.
*/
function wp_style_add_data( $handle, $key, $value ) {
return wp_styles()->add_data( $handle, $key, $value );
}
```
|
```haskell
{-# LANGUAGE DeriveFunctor #-}
-- | Time series data
--
-- Intended for qualified import
module InputSelection.Evaluation.TimeSeries (
-- * Slot numbers
SlotNr(..)
, OverallSlotNr
, PolicyNr
, PolicySlotNr
-- * Time series
, TimeSeries(..)
, toList
, fromList
, empty
, insert
, range
-- I/O
, writeFile
, readFile
) where
import Universum hiding (empty, readFile, toList, writeFile)
import qualified Data.ByteString.Lazy.Char8 as LBS
import qualified Data.Map.Strict as Map
import qualified Prelude
import Util.Range (Range (..), Ranges (..))
{your_sha256_hash---------------
Slot numbers
your_sha256_hash---------------}
type OverallSlotNr = Int
type PolicyNr = Int
type PolicySlotNr = Int
-- | Slot number
data SlotNr = SlotNr {
-- | Overall slot number (across policies)
overallSlotNr :: OverallSlotNr
-- \ Policy number (only relevant when evaluating multiple policies)
, policyNr :: PolicyNr
-- | Slot number for this policy
, policySlotNr :: PolicySlotNr
}
deriving (Eq, Ord)
{your_sha256_hash---------------
Time series
your_sha256_hash---------------}
-- | Time series of values
--
-- When we render a single frame,
--
-- * for some vars we render the /current/ value;
-- for example, we render the current UTxO histogram
-- * for some vars we render the /summarized/ value;
-- for example, we render the overall histogram of number of inputs / tx
-- * for some vars we render a /time series/, from the start until this frame
-- for example, we show the UTxO growth over time
--
-- The 'TimeSeries' is meant to record the third kind of variable.
--
-- Since we don't same at each slot, we store this as a spare mapping form
-- slot numbers to values.
newtype TimeSeries a = TimeSeries {
timeSeriesToMap :: Map SlotNr a
}
deriving (Functor)
toList :: TimeSeries a -> [(SlotNr, a)]
toList = Map.toList . timeSeriesToMap
fromList :: [(SlotNr, a)] -> TimeSeries a
fromList = TimeSeries . Map.fromList
empty :: TimeSeries a
empty = TimeSeries Map.empty
insert :: SlotNr -> a -> TimeSeries a -> TimeSeries a
insert slotNr a (TimeSeries m) = TimeSeries (Map.insert slotNr a m)
-- | Bounds for a time series
range :: forall a. Ord a => TimeSeries a -> Ranges OverallSlotNr a
range (TimeSeries m) = Ranges {
_x = Range (minimum slots)
(maximum slots)
, _y = Range (minimum (Map.elems m))
(maximum (Map.elems m))
}
where
slots :: [OverallSlotNr]
slots = map overallSlotNr (Map.keys m)
{your_sha256_hash---------------
I/O
your_sha256_hash---------------}
-- | Write out a time series to disk
--
-- Implementation note: go through LBS to take advantage of it's chunking
-- policy, avoiding hPutStr and co's excessive lock taking and releasing.
writeFile :: Show a => FilePath -> TimeSeries a -> IO ()
writeFile fp =
LBS.writeFile fp
. LBS.pack
. Prelude.unlines
. map (\(SlotNr{..}, a) -> concat [
Prelude.show overallSlotNr
, "\t"
, Prelude.show policyNr
, "\t"
, Prelude.show policySlotNr
, "\t"
, Prelude.show a
])
. toList
readFile :: forall a. Read a => FilePath -> IO (TimeSeries a)
readFile fp = parse <$> Prelude.readFile fp
where
parse :: String -> TimeSeries a
parse = fromList . map parseLine . Prelude.lines
parseLine :: String -> (SlotNr, a)
parseLine str =
let [overall, policy, policySlot, a] = splitWhen (== '\t') str
in ( SlotNr {
overallSlotNr = Prelude.read overall
, policyNr = Prelude.read policy
, policySlotNr = Prelude.read policySlot
}
, Prelude.read a
)
{your_sha256_hash---------------
Auxiliary
your_sha256_hash---------------}
splitWhen :: (a -> Bool) -> [a] -> [[a]]
splitWhen p xs =
case break p xs of
(prefix, []) -> [prefix]
(prefix, _match:remainder) -> prefix : splitWhen p remainder
```
|
```objective-c
/**
* \file
*
* \brief Component description for TC
*
*
* \asf_license_start
*
*
*
* You may obtain a copy of the Licence at
*
* path_to_url
*
* Unless required by applicable law or agreed to in writing, software
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*
* \asf_license_stop
*
*/
#ifndef _SAMC21_TC_COMPONENT_
#define _SAMC21_TC_COMPONENT_
/* ========================================================================== */
/** SOFTWARE API DEFINITION FOR TC */
/* ========================================================================== */
/** \addtogroup SAMC21_TC Basic Timer Counter */
/*@{*/
#define TC_U2249
#define REV_TC 0x200
/* -------- TC_CTRLA : (TC Offset: 0x00) (R/W 32) Control A -------- */
#if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
typedef union {
struct {
uint32_t SWRST:1; /*!< bit: 0 Software Reset */
uint32_t ENABLE:1; /*!< bit: 1 Enable */
uint32_t MODE:2; /*!< bit: 2.. 3 Timer Counter Mode */
uint32_t PRESCSYNC:2; /*!< bit: 4.. 5 Prescaler and Counter Synchronization */
uint32_t RUNSTDBY:1; /*!< bit: 6 Run during Standby */
uint32_t ONDEMAND:1; /*!< bit: 7 Clock On Demand */
uint32_t PRESCALER:3; /*!< bit: 8..10 Prescaler */
uint32_t ALOCK:1; /*!< bit: 11 Auto Lock */
uint32_t :4; /*!< bit: 12..15 Reserved */
uint32_t CAPTEN0:1; /*!< bit: 16 Capture Channel 0 Enable */
uint32_t CAPTEN1:1; /*!< bit: 17 Capture Channel 1 Enable */
uint32_t :2; /*!< bit: 18..19 Reserved */
uint32_t COPEN0:1; /*!< bit: 20 Capture On Pin 0 Enable */
uint32_t COPEN1:1; /*!< bit: 21 Capture On Pin 1 Enable */
uint32_t :10; /*!< bit: 22..31 Reserved */
} bit; /*!< Structure used for bit access */
struct {
uint32_t :16; /*!< bit: 0..15 Reserved */
uint32_t CAPTEN:2; /*!< bit: 16..17 Capture Channel x Enable */
uint32_t :2; /*!< bit: 18..19 Reserved */
uint32_t COPEN:2; /*!< bit: 20..21 Capture On Pin x Enable */
uint32_t :10; /*!< bit: 22..31 Reserved */
} vec; /*!< Structure used for vec access */
uint32_t reg; /*!< Type used for register access */
} TC_CTRLA_Type;
#endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
#define TC_CTRLA_OFFSET 0x00 /**< \brief (TC_CTRLA offset) Control A */
#define TC_CTRLA_RESETVALUE _U_(0x00000000) /**< \brief (TC_CTRLA reset_value) Control A */
#define TC_CTRLA_SWRST_Pos 0 /**< \brief (TC_CTRLA) Software Reset */
#define TC_CTRLA_SWRST (_U_(0x1) << TC_CTRLA_SWRST_Pos)
#define TC_CTRLA_ENABLE_Pos 1 /**< \brief (TC_CTRLA) Enable */
#define TC_CTRLA_ENABLE (_U_(0x1) << TC_CTRLA_ENABLE_Pos)
#define TC_CTRLA_MODE_Pos 2 /**< \brief (TC_CTRLA) Timer Counter Mode */
#define TC_CTRLA_MODE_Msk (_U_(0x3) << TC_CTRLA_MODE_Pos)
#define TC_CTRLA_MODE(value) (TC_CTRLA_MODE_Msk & ((value) << TC_CTRLA_MODE_Pos))
#define TC_CTRLA_MODE_COUNT16_Val _U_(0x0) /**< \brief (TC_CTRLA) Counter in 16-bit mode */
#define TC_CTRLA_MODE_COUNT8_Val _U_(0x1) /**< \brief (TC_CTRLA) Counter in 8-bit mode */
#define TC_CTRLA_MODE_COUNT32_Val _U_(0x2) /**< \brief (TC_CTRLA) Counter in 32-bit mode */
#define TC_CTRLA_MODE_COUNT16 (TC_CTRLA_MODE_COUNT16_Val << TC_CTRLA_MODE_Pos)
#define TC_CTRLA_MODE_COUNT8 (TC_CTRLA_MODE_COUNT8_Val << TC_CTRLA_MODE_Pos)
#define TC_CTRLA_MODE_COUNT32 (TC_CTRLA_MODE_COUNT32_Val << TC_CTRLA_MODE_Pos)
#define TC_CTRLA_PRESCSYNC_Pos 4 /**< \brief (TC_CTRLA) Prescaler and Counter Synchronization */
#define TC_CTRLA_PRESCSYNC_Msk (_U_(0x3) << TC_CTRLA_PRESCSYNC_Pos)
#define TC_CTRLA_PRESCSYNC(value) (TC_CTRLA_PRESCSYNC_Msk & ((value) << TC_CTRLA_PRESCSYNC_Pos))
#define TC_CTRLA_PRESCSYNC_GCLK_Val _U_(0x0) /**< \brief (TC_CTRLA) Reload or reset the counter on next generic clock */
#define TC_CTRLA_PRESCSYNC_PRESC_Val _U_(0x1) /**< \brief (TC_CTRLA) Reload or reset the counter on next prescaler clock */
#define TC_CTRLA_PRESCSYNC_RESYNC_Val _U_(0x2) /**< \brief (TC_CTRLA) Reload or reset the counter on next generic clock and reset the prescaler counter */
#define TC_CTRLA_PRESCSYNC_GCLK (TC_CTRLA_PRESCSYNC_GCLK_Val << TC_CTRLA_PRESCSYNC_Pos)
#define TC_CTRLA_PRESCSYNC_PRESC (TC_CTRLA_PRESCSYNC_PRESC_Val << TC_CTRLA_PRESCSYNC_Pos)
#define TC_CTRLA_PRESCSYNC_RESYNC (TC_CTRLA_PRESCSYNC_RESYNC_Val << TC_CTRLA_PRESCSYNC_Pos)
#define TC_CTRLA_RUNSTDBY_Pos 6 /**< \brief (TC_CTRLA) Run during Standby */
#define TC_CTRLA_RUNSTDBY (_U_(0x1) << TC_CTRLA_RUNSTDBY_Pos)
#define TC_CTRLA_ONDEMAND_Pos 7 /**< \brief (TC_CTRLA) Clock On Demand */
#define TC_CTRLA_ONDEMAND (_U_(0x1) << TC_CTRLA_ONDEMAND_Pos)
#define TC_CTRLA_PRESCALER_Pos 8 /**< \brief (TC_CTRLA) Prescaler */
#define TC_CTRLA_PRESCALER_Msk (_U_(0x7) << TC_CTRLA_PRESCALER_Pos)
#define TC_CTRLA_PRESCALER(value) (TC_CTRLA_PRESCALER_Msk & ((value) << TC_CTRLA_PRESCALER_Pos))
#define TC_CTRLA_PRESCALER_DIV1_Val _U_(0x0) /**< \brief (TC_CTRLA) Prescaler: GCLK_TC */
#define TC_CTRLA_PRESCALER_DIV2_Val _U_(0x1) /**< \brief (TC_CTRLA) Prescaler: GCLK_TC/2 */
#define TC_CTRLA_PRESCALER_DIV4_Val _U_(0x2) /**< \brief (TC_CTRLA) Prescaler: GCLK_TC/4 */
#define TC_CTRLA_PRESCALER_DIV8_Val _U_(0x3) /**< \brief (TC_CTRLA) Prescaler: GCLK_TC/8 */
#define TC_CTRLA_PRESCALER_DIV16_Val _U_(0x4) /**< \brief (TC_CTRLA) Prescaler: GCLK_TC/16 */
#define TC_CTRLA_PRESCALER_DIV64_Val _U_(0x5) /**< \brief (TC_CTRLA) Prescaler: GCLK_TC/64 */
#define TC_CTRLA_PRESCALER_DIV256_Val _U_(0x6) /**< \brief (TC_CTRLA) Prescaler: GCLK_TC/256 */
#define TC_CTRLA_PRESCALER_DIV1024_Val _U_(0x7) /**< \brief (TC_CTRLA) Prescaler: GCLK_TC/1024 */
#define TC_CTRLA_PRESCALER_DIV1 (TC_CTRLA_PRESCALER_DIV1_Val << TC_CTRLA_PRESCALER_Pos)
#define TC_CTRLA_PRESCALER_DIV2 (TC_CTRLA_PRESCALER_DIV2_Val << TC_CTRLA_PRESCALER_Pos)
#define TC_CTRLA_PRESCALER_DIV4 (TC_CTRLA_PRESCALER_DIV4_Val << TC_CTRLA_PRESCALER_Pos)
#define TC_CTRLA_PRESCALER_DIV8 (TC_CTRLA_PRESCALER_DIV8_Val << TC_CTRLA_PRESCALER_Pos)
#define TC_CTRLA_PRESCALER_DIV16 (TC_CTRLA_PRESCALER_DIV16_Val << TC_CTRLA_PRESCALER_Pos)
#define TC_CTRLA_PRESCALER_DIV64 (TC_CTRLA_PRESCALER_DIV64_Val << TC_CTRLA_PRESCALER_Pos)
#define TC_CTRLA_PRESCALER_DIV256 (TC_CTRLA_PRESCALER_DIV256_Val << TC_CTRLA_PRESCALER_Pos)
#define TC_CTRLA_PRESCALER_DIV1024 (TC_CTRLA_PRESCALER_DIV1024_Val << TC_CTRLA_PRESCALER_Pos)
#define TC_CTRLA_ALOCK_Pos 11 /**< \brief (TC_CTRLA) Auto Lock */
#define TC_CTRLA_ALOCK (_U_(0x1) << TC_CTRLA_ALOCK_Pos)
#define TC_CTRLA_CAPTEN0_Pos 16 /**< \brief (TC_CTRLA) Capture Channel 0 Enable */
#define TC_CTRLA_CAPTEN0 (_U_(1) << TC_CTRLA_CAPTEN0_Pos)
#define TC_CTRLA_CAPTEN1_Pos 17 /**< \brief (TC_CTRLA) Capture Channel 1 Enable */
#define TC_CTRLA_CAPTEN1 (_U_(1) << TC_CTRLA_CAPTEN1_Pos)
#define TC_CTRLA_CAPTEN_Pos 16 /**< \brief (TC_CTRLA) Capture Channel x Enable */
#define TC_CTRLA_CAPTEN_Msk (_U_(0x3) << TC_CTRLA_CAPTEN_Pos)
#define TC_CTRLA_CAPTEN(value) (TC_CTRLA_CAPTEN_Msk & ((value) << TC_CTRLA_CAPTEN_Pos))
#define TC_CTRLA_COPEN0_Pos 20 /**< \brief (TC_CTRLA) Capture On Pin 0 Enable */
#define TC_CTRLA_COPEN0 (_U_(1) << TC_CTRLA_COPEN0_Pos)
#define TC_CTRLA_COPEN1_Pos 21 /**< \brief (TC_CTRLA) Capture On Pin 1 Enable */
#define TC_CTRLA_COPEN1 (_U_(1) << TC_CTRLA_COPEN1_Pos)
#define TC_CTRLA_COPEN_Pos 20 /**< \brief (TC_CTRLA) Capture On Pin x Enable */
#define TC_CTRLA_COPEN_Msk (_U_(0x3) << TC_CTRLA_COPEN_Pos)
#define TC_CTRLA_COPEN(value) (TC_CTRLA_COPEN_Msk & ((value) << TC_CTRLA_COPEN_Pos))
#define TC_CTRLA_MASK _U_(0x00330FFF) /**< \brief (TC_CTRLA) MASK Register */
/* -------- TC_CTRLBCLR : (TC Offset: 0x04) (R/W 8) Control B Clear -------- */
#if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
typedef union {
struct {
uint8_t DIR:1; /*!< bit: 0 Counter Direction */
uint8_t LUPD:1; /*!< bit: 1 Lock Update */
uint8_t ONESHOT:1; /*!< bit: 2 One-Shot on Counter */
uint8_t :2; /*!< bit: 3.. 4 Reserved */
uint8_t CMD:3; /*!< bit: 5.. 7 Command */
} bit; /*!< Structure used for bit access */
uint8_t reg; /*!< Type used for register access */
} TC_CTRLBCLR_Type;
#endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
#define TC_CTRLBCLR_OFFSET 0x04 /**< \brief (TC_CTRLBCLR offset) Control B Clear */
#define TC_CTRLBCLR_RESETVALUE _U_(0x00) /**< \brief (TC_CTRLBCLR reset_value) Control B Clear */
#define TC_CTRLBCLR_DIR_Pos 0 /**< \brief (TC_CTRLBCLR) Counter Direction */
#define TC_CTRLBCLR_DIR (_U_(0x1) << TC_CTRLBCLR_DIR_Pos)
#define TC_CTRLBCLR_LUPD_Pos 1 /**< \brief (TC_CTRLBCLR) Lock Update */
#define TC_CTRLBCLR_LUPD (_U_(0x1) << TC_CTRLBCLR_LUPD_Pos)
#define TC_CTRLBCLR_ONESHOT_Pos 2 /**< \brief (TC_CTRLBCLR) One-Shot on Counter */
#define TC_CTRLBCLR_ONESHOT (_U_(0x1) << TC_CTRLBCLR_ONESHOT_Pos)
#define TC_CTRLBCLR_CMD_Pos 5 /**< \brief (TC_CTRLBCLR) Command */
#define TC_CTRLBCLR_CMD_Msk (_U_(0x7) << TC_CTRLBCLR_CMD_Pos)
#define TC_CTRLBCLR_CMD(value) (TC_CTRLBCLR_CMD_Msk & ((value) << TC_CTRLBCLR_CMD_Pos))
#define TC_CTRLBCLR_CMD_NONE_Val _U_(0x0) /**< \brief (TC_CTRLBCLR) No action */
#define TC_CTRLBCLR_CMD_RETRIGGER_Val _U_(0x1) /**< \brief (TC_CTRLBCLR) Force a start, restart or retrigger */
#define TC_CTRLBCLR_CMD_STOP_Val _U_(0x2) /**< \brief (TC_CTRLBCLR) Force a stop */
#define TC_CTRLBCLR_CMD_UPDATE_Val _U_(0x3) /**< \brief (TC_CTRLBCLR) Force update of double-buffered register */
#define TC_CTRLBCLR_CMD_READSYNC_Val _U_(0x4) /**< \brief (TC_CTRLBCLR) Force a read synchronization of COUNT */
#define TC_CTRLBCLR_CMD_DMAOS_Val _U_(0x5) /**< \brief (TC_CTRLBCLR) One-shot DMA trigger */
#define TC_CTRLBCLR_CMD_NONE (TC_CTRLBCLR_CMD_NONE_Val << TC_CTRLBCLR_CMD_Pos)
#define TC_CTRLBCLR_CMD_RETRIGGER (TC_CTRLBCLR_CMD_RETRIGGER_Val << TC_CTRLBCLR_CMD_Pos)
#define TC_CTRLBCLR_CMD_STOP (TC_CTRLBCLR_CMD_STOP_Val << TC_CTRLBCLR_CMD_Pos)
#define TC_CTRLBCLR_CMD_UPDATE (TC_CTRLBCLR_CMD_UPDATE_Val << TC_CTRLBCLR_CMD_Pos)
#define TC_CTRLBCLR_CMD_READSYNC (TC_CTRLBCLR_CMD_READSYNC_Val << TC_CTRLBCLR_CMD_Pos)
#define TC_CTRLBCLR_CMD_DMAOS (TC_CTRLBCLR_CMD_DMAOS_Val << TC_CTRLBCLR_CMD_Pos)
#define TC_CTRLBCLR_MASK _U_(0xE7) /**< \brief (TC_CTRLBCLR) MASK Register */
/* -------- TC_CTRLBSET : (TC Offset: 0x05) (R/W 8) Control B Set -------- */
#if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
typedef union {
struct {
uint8_t DIR:1; /*!< bit: 0 Counter Direction */
uint8_t LUPD:1; /*!< bit: 1 Lock Update */
uint8_t ONESHOT:1; /*!< bit: 2 One-Shot on Counter */
uint8_t :2; /*!< bit: 3.. 4 Reserved */
uint8_t CMD:3; /*!< bit: 5.. 7 Command */
} bit; /*!< Structure used for bit access */
uint8_t reg; /*!< Type used for register access */
} TC_CTRLBSET_Type;
#endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
#define TC_CTRLBSET_OFFSET 0x05 /**< \brief (TC_CTRLBSET offset) Control B Set */
#define TC_CTRLBSET_RESETVALUE _U_(0x00) /**< \brief (TC_CTRLBSET reset_value) Control B Set */
#define TC_CTRLBSET_DIR_Pos 0 /**< \brief (TC_CTRLBSET) Counter Direction */
#define TC_CTRLBSET_DIR (_U_(0x1) << TC_CTRLBSET_DIR_Pos)
#define TC_CTRLBSET_LUPD_Pos 1 /**< \brief (TC_CTRLBSET) Lock Update */
#define TC_CTRLBSET_LUPD (_U_(0x1) << TC_CTRLBSET_LUPD_Pos)
#define TC_CTRLBSET_ONESHOT_Pos 2 /**< \brief (TC_CTRLBSET) One-Shot on Counter */
#define TC_CTRLBSET_ONESHOT (_U_(0x1) << TC_CTRLBSET_ONESHOT_Pos)
#define TC_CTRLBSET_CMD_Pos 5 /**< \brief (TC_CTRLBSET) Command */
#define TC_CTRLBSET_CMD_Msk (_U_(0x7) << TC_CTRLBSET_CMD_Pos)
#define TC_CTRLBSET_CMD(value) (TC_CTRLBSET_CMD_Msk & ((value) << TC_CTRLBSET_CMD_Pos))
#define TC_CTRLBSET_CMD_NONE_Val _U_(0x0) /**< \brief (TC_CTRLBSET) No action */
#define TC_CTRLBSET_CMD_RETRIGGER_Val _U_(0x1) /**< \brief (TC_CTRLBSET) Force a start, restart or retrigger */
#define TC_CTRLBSET_CMD_STOP_Val _U_(0x2) /**< \brief (TC_CTRLBSET) Force a stop */
#define TC_CTRLBSET_CMD_UPDATE_Val _U_(0x3) /**< \brief (TC_CTRLBSET) Force update of double-buffered register */
#define TC_CTRLBSET_CMD_READSYNC_Val _U_(0x4) /**< \brief (TC_CTRLBSET) Force a read synchronization of COUNT */
#define TC_CTRLBSET_CMD_DMAOS_Val _U_(0x5) /**< \brief (TC_CTRLBSET) One-shot DMA trigger */
#define TC_CTRLBSET_CMD_NONE (TC_CTRLBSET_CMD_NONE_Val << TC_CTRLBSET_CMD_Pos)
#define TC_CTRLBSET_CMD_RETRIGGER (TC_CTRLBSET_CMD_RETRIGGER_Val << TC_CTRLBSET_CMD_Pos)
#define TC_CTRLBSET_CMD_STOP (TC_CTRLBSET_CMD_STOP_Val << TC_CTRLBSET_CMD_Pos)
#define TC_CTRLBSET_CMD_UPDATE (TC_CTRLBSET_CMD_UPDATE_Val << TC_CTRLBSET_CMD_Pos)
#define TC_CTRLBSET_CMD_READSYNC (TC_CTRLBSET_CMD_READSYNC_Val << TC_CTRLBSET_CMD_Pos)
#define TC_CTRLBSET_CMD_DMAOS (TC_CTRLBSET_CMD_DMAOS_Val << TC_CTRLBSET_CMD_Pos)
#define TC_CTRLBSET_MASK _U_(0xE7) /**< \brief (TC_CTRLBSET) MASK Register */
/* -------- TC_EVCTRL : (TC Offset: 0x06) (R/W 16) Event Control -------- */
#if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
typedef union {
struct {
uint16_t EVACT:3; /*!< bit: 0.. 2 Event Action */
uint16_t :1; /*!< bit: 3 Reserved */
uint16_t TCINV:1; /*!< bit: 4 TC Event Input Polarity */
uint16_t TCEI:1; /*!< bit: 5 TC Event Enable */
uint16_t :2; /*!< bit: 6.. 7 Reserved */
uint16_t OVFEO:1; /*!< bit: 8 Event Output Enable */
uint16_t :3; /*!< bit: 9..11 Reserved */
uint16_t MCEO0:1; /*!< bit: 12 MC Event Output Enable 0 */
uint16_t MCEO1:1; /*!< bit: 13 MC Event Output Enable 1 */
uint16_t :2; /*!< bit: 14..15 Reserved */
} bit; /*!< Structure used for bit access */
struct {
uint16_t :12; /*!< bit: 0..11 Reserved */
uint16_t MCEO:2; /*!< bit: 12..13 MC Event Output Enable x */
uint16_t :2; /*!< bit: 14..15 Reserved */
} vec; /*!< Structure used for vec access */
uint16_t reg; /*!< Type used for register access */
} TC_EVCTRL_Type;
#endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
#define TC_EVCTRL_OFFSET 0x06 /**< \brief (TC_EVCTRL offset) Event Control */
#define TC_EVCTRL_RESETVALUE _U_(0x0000) /**< \brief (TC_EVCTRL reset_value) Event Control */
#define TC_EVCTRL_EVACT_Pos 0 /**< \brief (TC_EVCTRL) Event Action */
#define TC_EVCTRL_EVACT_Msk (_U_(0x7) << TC_EVCTRL_EVACT_Pos)
#define TC_EVCTRL_EVACT(value) (TC_EVCTRL_EVACT_Msk & ((value) << TC_EVCTRL_EVACT_Pos))
#define TC_EVCTRL_EVACT_OFF_Val _U_(0x0) /**< \brief (TC_EVCTRL) Event action disabled */
#define TC_EVCTRL_EVACT_RETRIGGER_Val _U_(0x1) /**< \brief (TC_EVCTRL) Start, restart or retrigger TC on event */
#define TC_EVCTRL_EVACT_COUNT_Val _U_(0x2) /**< \brief (TC_EVCTRL) Count on event */
#define TC_EVCTRL_EVACT_START_Val _U_(0x3) /**< \brief (TC_EVCTRL) Start TC on event */
#define TC_EVCTRL_EVACT_STAMP_Val _U_(0x4) /**< \brief (TC_EVCTRL) Time stamp capture */
#define TC_EVCTRL_EVACT_PPW_Val _U_(0x5) /**< \brief (TC_EVCTRL) Period catured in CC0, pulse width in CC1 */
#define TC_EVCTRL_EVACT_PWP_Val _U_(0x6) /**< \brief (TC_EVCTRL) Period catured in CC1, pulse width in CC0 */
#define TC_EVCTRL_EVACT_PW_Val _U_(0x7) /**< \brief (TC_EVCTRL) Pulse width capture */
#define TC_EVCTRL_EVACT_OFF (TC_EVCTRL_EVACT_OFF_Val << TC_EVCTRL_EVACT_Pos)
#define TC_EVCTRL_EVACT_RETRIGGER (TC_EVCTRL_EVACT_RETRIGGER_Val << TC_EVCTRL_EVACT_Pos)
#define TC_EVCTRL_EVACT_COUNT (TC_EVCTRL_EVACT_COUNT_Val << TC_EVCTRL_EVACT_Pos)
#define TC_EVCTRL_EVACT_START (TC_EVCTRL_EVACT_START_Val << TC_EVCTRL_EVACT_Pos)
#define TC_EVCTRL_EVACT_STAMP (TC_EVCTRL_EVACT_STAMP_Val << TC_EVCTRL_EVACT_Pos)
#define TC_EVCTRL_EVACT_PPW (TC_EVCTRL_EVACT_PPW_Val << TC_EVCTRL_EVACT_Pos)
#define TC_EVCTRL_EVACT_PWP (TC_EVCTRL_EVACT_PWP_Val << TC_EVCTRL_EVACT_Pos)
#define TC_EVCTRL_EVACT_PW (TC_EVCTRL_EVACT_PW_Val << TC_EVCTRL_EVACT_Pos)
#define TC_EVCTRL_TCINV_Pos 4 /**< \brief (TC_EVCTRL) TC Event Input Polarity */
#define TC_EVCTRL_TCINV (_U_(0x1) << TC_EVCTRL_TCINV_Pos)
#define TC_EVCTRL_TCEI_Pos 5 /**< \brief (TC_EVCTRL) TC Event Enable */
#define TC_EVCTRL_TCEI (_U_(0x1) << TC_EVCTRL_TCEI_Pos)
#define TC_EVCTRL_OVFEO_Pos 8 /**< \brief (TC_EVCTRL) Event Output Enable */
#define TC_EVCTRL_OVFEO (_U_(0x1) << TC_EVCTRL_OVFEO_Pos)
#define TC_EVCTRL_MCEO0_Pos 12 /**< \brief (TC_EVCTRL) MC Event Output Enable 0 */
#define TC_EVCTRL_MCEO0 (_U_(1) << TC_EVCTRL_MCEO0_Pos)
#define TC_EVCTRL_MCEO1_Pos 13 /**< \brief (TC_EVCTRL) MC Event Output Enable 1 */
#define TC_EVCTRL_MCEO1 (_U_(1) << TC_EVCTRL_MCEO1_Pos)
#define TC_EVCTRL_MCEO_Pos 12 /**< \brief (TC_EVCTRL) MC Event Output Enable x */
#define TC_EVCTRL_MCEO_Msk (_U_(0x3) << TC_EVCTRL_MCEO_Pos)
#define TC_EVCTRL_MCEO(value) (TC_EVCTRL_MCEO_Msk & ((value) << TC_EVCTRL_MCEO_Pos))
#define TC_EVCTRL_MASK _U_(0x3137) /**< \brief (TC_EVCTRL) MASK Register */
/* -------- TC_INTENCLR : (TC Offset: 0x08) (R/W 8) Interrupt Enable Clear -------- */
#if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
typedef union {
struct {
uint8_t OVF:1; /*!< bit: 0 OVF Interrupt Disable */
uint8_t ERR:1; /*!< bit: 1 ERR Interrupt Disable */
uint8_t :2; /*!< bit: 2.. 3 Reserved */
uint8_t MC0:1; /*!< bit: 4 MC Interrupt Disable 0 */
uint8_t MC1:1; /*!< bit: 5 MC Interrupt Disable 1 */
uint8_t :2; /*!< bit: 6.. 7 Reserved */
} bit; /*!< Structure used for bit access */
struct {
uint8_t :4; /*!< bit: 0.. 3 Reserved */
uint8_t MC:2; /*!< bit: 4.. 5 MC Interrupt Disable x */
uint8_t :2; /*!< bit: 6.. 7 Reserved */
} vec; /*!< Structure used for vec access */
uint8_t reg; /*!< Type used for register access */
} TC_INTENCLR_Type;
#endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
#define TC_INTENCLR_OFFSET 0x08 /**< \brief (TC_INTENCLR offset) Interrupt Enable Clear */
#define TC_INTENCLR_RESETVALUE _U_(0x00) /**< \brief (TC_INTENCLR reset_value) Interrupt Enable Clear */
#define TC_INTENCLR_OVF_Pos 0 /**< \brief (TC_INTENCLR) OVF Interrupt Disable */
#define TC_INTENCLR_OVF (_U_(0x1) << TC_INTENCLR_OVF_Pos)
#define TC_INTENCLR_ERR_Pos 1 /**< \brief (TC_INTENCLR) ERR Interrupt Disable */
#define TC_INTENCLR_ERR (_U_(0x1) << TC_INTENCLR_ERR_Pos)
#define TC_INTENCLR_MC0_Pos 4 /**< \brief (TC_INTENCLR) MC Interrupt Disable 0 */
#define TC_INTENCLR_MC0 (_U_(1) << TC_INTENCLR_MC0_Pos)
#define TC_INTENCLR_MC1_Pos 5 /**< \brief (TC_INTENCLR) MC Interrupt Disable 1 */
#define TC_INTENCLR_MC1 (_U_(1) << TC_INTENCLR_MC1_Pos)
#define TC_INTENCLR_MC_Pos 4 /**< \brief (TC_INTENCLR) MC Interrupt Disable x */
#define TC_INTENCLR_MC_Msk (_U_(0x3) << TC_INTENCLR_MC_Pos)
#define TC_INTENCLR_MC(value) (TC_INTENCLR_MC_Msk & ((value) << TC_INTENCLR_MC_Pos))
#define TC_INTENCLR_MASK _U_(0x33) /**< \brief (TC_INTENCLR) MASK Register */
/* -------- TC_INTENSET : (TC Offset: 0x09) (R/W 8) Interrupt Enable Set -------- */
#if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
typedef union {
struct {
uint8_t OVF:1; /*!< bit: 0 OVF Interrupt Enable */
uint8_t ERR:1; /*!< bit: 1 ERR Interrupt Enable */
uint8_t :2; /*!< bit: 2.. 3 Reserved */
uint8_t MC0:1; /*!< bit: 4 MC Interrupt Enable 0 */
uint8_t MC1:1; /*!< bit: 5 MC Interrupt Enable 1 */
uint8_t :2; /*!< bit: 6.. 7 Reserved */
} bit; /*!< Structure used for bit access */
struct {
uint8_t :4; /*!< bit: 0.. 3 Reserved */
uint8_t MC:2; /*!< bit: 4.. 5 MC Interrupt Enable x */
uint8_t :2; /*!< bit: 6.. 7 Reserved */
} vec; /*!< Structure used for vec access */
uint8_t reg; /*!< Type used for register access */
} TC_INTENSET_Type;
#endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
#define TC_INTENSET_OFFSET 0x09 /**< \brief (TC_INTENSET offset) Interrupt Enable Set */
#define TC_INTENSET_RESETVALUE _U_(0x00) /**< \brief (TC_INTENSET reset_value) Interrupt Enable Set */
#define TC_INTENSET_OVF_Pos 0 /**< \brief (TC_INTENSET) OVF Interrupt Enable */
#define TC_INTENSET_OVF (_U_(0x1) << TC_INTENSET_OVF_Pos)
#define TC_INTENSET_ERR_Pos 1 /**< \brief (TC_INTENSET) ERR Interrupt Enable */
#define TC_INTENSET_ERR (_U_(0x1) << TC_INTENSET_ERR_Pos)
#define TC_INTENSET_MC0_Pos 4 /**< \brief (TC_INTENSET) MC Interrupt Enable 0 */
#define TC_INTENSET_MC0 (_U_(1) << TC_INTENSET_MC0_Pos)
#define TC_INTENSET_MC1_Pos 5 /**< \brief (TC_INTENSET) MC Interrupt Enable 1 */
#define TC_INTENSET_MC1 (_U_(1) << TC_INTENSET_MC1_Pos)
#define TC_INTENSET_MC_Pos 4 /**< \brief (TC_INTENSET) MC Interrupt Enable x */
#define TC_INTENSET_MC_Msk (_U_(0x3) << TC_INTENSET_MC_Pos)
#define TC_INTENSET_MC(value) (TC_INTENSET_MC_Msk & ((value) << TC_INTENSET_MC_Pos))
#define TC_INTENSET_MASK _U_(0x33) /**< \brief (TC_INTENSET) MASK Register */
/* -------- TC_INTFLAG : (TC Offset: 0x0A) (R/W 8) Interrupt Flag Status and Clear -------- */
#if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
typedef union { // __I to avoid read-modify-write on write-to-clear register
struct {
__I uint8_t OVF:1; /*!< bit: 0 OVF Interrupt Flag */
__I uint8_t ERR:1; /*!< bit: 1 ERR Interrupt Flag */
__I uint8_t :2; /*!< bit: 2.. 3 Reserved */
__I uint8_t MC0:1; /*!< bit: 4 MC Interrupt Flag 0 */
__I uint8_t MC1:1; /*!< bit: 5 MC Interrupt Flag 1 */
__I uint8_t :2; /*!< bit: 6.. 7 Reserved */
} bit; /*!< Structure used for bit access */
struct {
__I uint8_t :4; /*!< bit: 0.. 3 Reserved */
__I uint8_t MC:2; /*!< bit: 4.. 5 MC Interrupt Flag x */
__I uint8_t :2; /*!< bit: 6.. 7 Reserved */
} vec; /*!< Structure used for vec access */
uint8_t reg; /*!< Type used for register access */
} TC_INTFLAG_Type;
#endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
#define TC_INTFLAG_OFFSET 0x0A /**< \brief (TC_INTFLAG offset) Interrupt Flag Status and Clear */
#define TC_INTFLAG_RESETVALUE _U_(0x00) /**< \brief (TC_INTFLAG reset_value) Interrupt Flag Status and Clear */
#define TC_INTFLAG_OVF_Pos 0 /**< \brief (TC_INTFLAG) OVF Interrupt Flag */
#define TC_INTFLAG_OVF (_U_(0x1) << TC_INTFLAG_OVF_Pos)
#define TC_INTFLAG_ERR_Pos 1 /**< \brief (TC_INTFLAG) ERR Interrupt Flag */
#define TC_INTFLAG_ERR (_U_(0x1) << TC_INTFLAG_ERR_Pos)
#define TC_INTFLAG_MC0_Pos 4 /**< \brief (TC_INTFLAG) MC Interrupt Flag 0 */
#define TC_INTFLAG_MC0 (_U_(1) << TC_INTFLAG_MC0_Pos)
#define TC_INTFLAG_MC1_Pos 5 /**< \brief (TC_INTFLAG) MC Interrupt Flag 1 */
#define TC_INTFLAG_MC1 (_U_(1) << TC_INTFLAG_MC1_Pos)
#define TC_INTFLAG_MC_Pos 4 /**< \brief (TC_INTFLAG) MC Interrupt Flag x */
#define TC_INTFLAG_MC_Msk (_U_(0x3) << TC_INTFLAG_MC_Pos)
#define TC_INTFLAG_MC(value) (TC_INTFLAG_MC_Msk & ((value) << TC_INTFLAG_MC_Pos))
#define TC_INTFLAG_MASK _U_(0x33) /**< \brief (TC_INTFLAG) MASK Register */
/* -------- TC_STATUS : (TC Offset: 0x0B) (R/W 8) Status -------- */
#if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
typedef union {
struct {
uint8_t STOP:1; /*!< bit: 0 Stop Status Flag */
uint8_t SLAVE:1; /*!< bit: 1 Slave Status Flag */
uint8_t :1; /*!< bit: 2 Reserved */
uint8_t PERBUFV:1; /*!< bit: 3 Synchronization Busy Status */
uint8_t CCBUFV0:1; /*!< bit: 4 Compare channel buffer 0 valid */
uint8_t CCBUFV1:1; /*!< bit: 5 Compare channel buffer 1 valid */
uint8_t :2; /*!< bit: 6.. 7 Reserved */
} bit; /*!< Structure used for bit access */
struct {
uint8_t :4; /*!< bit: 0.. 3 Reserved */
uint8_t CCBUFV:2; /*!< bit: 4.. 5 Compare channel buffer x valid */
uint8_t :2; /*!< bit: 6.. 7 Reserved */
} vec; /*!< Structure used for vec access */
uint8_t reg; /*!< Type used for register access */
} TC_STATUS_Type;
#endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
#define TC_STATUS_OFFSET 0x0B /**< \brief (TC_STATUS offset) Status */
#define TC_STATUS_RESETVALUE _U_(0x01) /**< \brief (TC_STATUS reset_value) Status */
#define TC_STATUS_STOP_Pos 0 /**< \brief (TC_STATUS) Stop Status Flag */
#define TC_STATUS_STOP (_U_(0x1) << TC_STATUS_STOP_Pos)
#define TC_STATUS_SLAVE_Pos 1 /**< \brief (TC_STATUS) Slave Status Flag */
#define TC_STATUS_SLAVE (_U_(0x1) << TC_STATUS_SLAVE_Pos)
#define TC_STATUS_PERBUFV_Pos 3 /**< \brief (TC_STATUS) Synchronization Busy Status */
#define TC_STATUS_PERBUFV (_U_(0x1) << TC_STATUS_PERBUFV_Pos)
#define TC_STATUS_CCBUFV0_Pos 4 /**< \brief (TC_STATUS) Compare channel buffer 0 valid */
#define TC_STATUS_CCBUFV0 (_U_(1) << TC_STATUS_CCBUFV0_Pos)
#define TC_STATUS_CCBUFV1_Pos 5 /**< \brief (TC_STATUS) Compare channel buffer 1 valid */
#define TC_STATUS_CCBUFV1 (_U_(1) << TC_STATUS_CCBUFV1_Pos)
#define TC_STATUS_CCBUFV_Pos 4 /**< \brief (TC_STATUS) Compare channel buffer x valid */
#define TC_STATUS_CCBUFV_Msk (_U_(0x3) << TC_STATUS_CCBUFV_Pos)
#define TC_STATUS_CCBUFV(value) (TC_STATUS_CCBUFV_Msk & ((value) << TC_STATUS_CCBUFV_Pos))
#define TC_STATUS_MASK _U_(0x3B) /**< \brief (TC_STATUS) MASK Register */
/* -------- TC_WAVE : (TC Offset: 0x0C) (R/W 8) Waveform Generation Control -------- */
#if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
typedef union {
struct {
uint8_t WAVEGEN:2; /*!< bit: 0.. 1 Waveform Generation Mode */
uint8_t :6; /*!< bit: 2.. 7 Reserved */
} bit; /*!< Structure used for bit access */
uint8_t reg; /*!< Type used for register access */
} TC_WAVE_Type;
#endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
#define TC_WAVE_OFFSET 0x0C /**< \brief (TC_WAVE offset) Waveform Generation Control */
#define TC_WAVE_RESETVALUE _U_(0x00) /**< \brief (TC_WAVE reset_value) Waveform Generation Control */
#define TC_WAVE_WAVEGEN_Pos 0 /**< \brief (TC_WAVE) Waveform Generation Mode */
#define TC_WAVE_WAVEGEN_Msk (_U_(0x3) << TC_WAVE_WAVEGEN_Pos)
#define TC_WAVE_WAVEGEN(value) (TC_WAVE_WAVEGEN_Msk & ((value) << TC_WAVE_WAVEGEN_Pos))
#define TC_WAVE_WAVEGEN_NFRQ_Val _U_(0x0) /**< \brief (TC_WAVE) Normal frequency */
#define TC_WAVE_WAVEGEN_MFRQ_Val _U_(0x1) /**< \brief (TC_WAVE) Match frequency */
#define TC_WAVE_WAVEGEN_NPWM_Val _U_(0x2) /**< \brief (TC_WAVE) Normal PWM */
#define TC_WAVE_WAVEGEN_MPWM_Val _U_(0x3) /**< \brief (TC_WAVE) Match PWM */
#define TC_WAVE_WAVEGEN_NFRQ (TC_WAVE_WAVEGEN_NFRQ_Val << TC_WAVE_WAVEGEN_Pos)
#define TC_WAVE_WAVEGEN_MFRQ (TC_WAVE_WAVEGEN_MFRQ_Val << TC_WAVE_WAVEGEN_Pos)
#define TC_WAVE_WAVEGEN_NPWM (TC_WAVE_WAVEGEN_NPWM_Val << TC_WAVE_WAVEGEN_Pos)
#define TC_WAVE_WAVEGEN_MPWM (TC_WAVE_WAVEGEN_MPWM_Val << TC_WAVE_WAVEGEN_Pos)
#define TC_WAVE_MASK _U_(0x03) /**< \brief (TC_WAVE) MASK Register */
/* -------- TC_DRVCTRL : (TC Offset: 0x0D) (R/W 8) Control C -------- */
#if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
typedef union {
struct {
uint8_t INVEN0:1; /*!< bit: 0 Output Waveform Invert Enable 0 */
uint8_t INVEN1:1; /*!< bit: 1 Output Waveform Invert Enable 1 */
uint8_t :6; /*!< bit: 2.. 7 Reserved */
} bit; /*!< Structure used for bit access */
struct {
uint8_t INVEN:2; /*!< bit: 0.. 1 Output Waveform Invert Enable x */
uint8_t :6; /*!< bit: 2.. 7 Reserved */
} vec; /*!< Structure used for vec access */
uint8_t reg; /*!< Type used for register access */
} TC_DRVCTRL_Type;
#endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
#define TC_DRVCTRL_OFFSET 0x0D /**< \brief (TC_DRVCTRL offset) Control C */
#define TC_DRVCTRL_RESETVALUE _U_(0x00) /**< \brief (TC_DRVCTRL reset_value) Control C */
#define TC_DRVCTRL_INVEN0_Pos 0 /**< \brief (TC_DRVCTRL) Output Waveform Invert Enable 0 */
#define TC_DRVCTRL_INVEN0 (_U_(1) << TC_DRVCTRL_INVEN0_Pos)
#define TC_DRVCTRL_INVEN1_Pos 1 /**< \brief (TC_DRVCTRL) Output Waveform Invert Enable 1 */
#define TC_DRVCTRL_INVEN1 (_U_(1) << TC_DRVCTRL_INVEN1_Pos)
#define TC_DRVCTRL_INVEN_Pos 0 /**< \brief (TC_DRVCTRL) Output Waveform Invert Enable x */
#define TC_DRVCTRL_INVEN_Msk (_U_(0x3) << TC_DRVCTRL_INVEN_Pos)
#define TC_DRVCTRL_INVEN(value) (TC_DRVCTRL_INVEN_Msk & ((value) << TC_DRVCTRL_INVEN_Pos))
#define TC_DRVCTRL_MASK _U_(0x03) /**< \brief (TC_DRVCTRL) MASK Register */
/* -------- TC_DBGCTRL : (TC Offset: 0x0F) (R/W 8) Debug Control -------- */
#if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
typedef union {
struct {
uint8_t DBGRUN:1; /*!< bit: 0 Run During Debug */
uint8_t :7; /*!< bit: 1.. 7 Reserved */
} bit; /*!< Structure used for bit access */
uint8_t reg; /*!< Type used for register access */
} TC_DBGCTRL_Type;
#endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
#define TC_DBGCTRL_OFFSET 0x0F /**< \brief (TC_DBGCTRL offset) Debug Control */
#define TC_DBGCTRL_RESETVALUE _U_(0x00) /**< \brief (TC_DBGCTRL reset_value) Debug Control */
#define TC_DBGCTRL_DBGRUN_Pos 0 /**< \brief (TC_DBGCTRL) Run During Debug */
#define TC_DBGCTRL_DBGRUN (_U_(0x1) << TC_DBGCTRL_DBGRUN_Pos)
#define TC_DBGCTRL_MASK _U_(0x01) /**< \brief (TC_DBGCTRL) MASK Register */
/* -------- TC_SYNCBUSY : (TC Offset: 0x10) (R/ 32) Synchronization Status -------- */
#if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
typedef union {
struct {
uint32_t SWRST:1; /*!< bit: 0 swrst */
uint32_t ENABLE:1; /*!< bit: 1 enable */
uint32_t CTRLB:1; /*!< bit: 2 CTRLB */
uint32_t STATUS:1; /*!< bit: 3 STATUS */
uint32_t COUNT:1; /*!< bit: 4 Counter */
uint32_t PER:1; /*!< bit: 5 Period */
uint32_t CC0:1; /*!< bit: 6 Compare Channel 0 */
uint32_t CC1:1; /*!< bit: 7 Compare Channel 1 */
uint32_t :24; /*!< bit: 8..31 Reserved */
} bit; /*!< Structure used for bit access */
struct {
uint32_t :6; /*!< bit: 0.. 5 Reserved */
uint32_t CC:2; /*!< bit: 6.. 7 Compare Channel x */
uint32_t :24; /*!< bit: 8..31 Reserved */
} vec; /*!< Structure used for vec access */
uint32_t reg; /*!< Type used for register access */
} TC_SYNCBUSY_Type;
#endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
#define TC_SYNCBUSY_OFFSET 0x10 /**< \brief (TC_SYNCBUSY offset) Synchronization Status */
#define TC_SYNCBUSY_RESETVALUE _U_(0x00000000) /**< \brief (TC_SYNCBUSY reset_value) Synchronization Status */
#define TC_SYNCBUSY_SWRST_Pos 0 /**< \brief (TC_SYNCBUSY) swrst */
#define TC_SYNCBUSY_SWRST (_U_(0x1) << TC_SYNCBUSY_SWRST_Pos)
#define TC_SYNCBUSY_ENABLE_Pos 1 /**< \brief (TC_SYNCBUSY) enable */
#define TC_SYNCBUSY_ENABLE (_U_(0x1) << TC_SYNCBUSY_ENABLE_Pos)
#define TC_SYNCBUSY_CTRLB_Pos 2 /**< \brief (TC_SYNCBUSY) CTRLB */
#define TC_SYNCBUSY_CTRLB (_U_(0x1) << TC_SYNCBUSY_CTRLB_Pos)
#define TC_SYNCBUSY_STATUS_Pos 3 /**< \brief (TC_SYNCBUSY) STATUS */
#define TC_SYNCBUSY_STATUS (_U_(0x1) << TC_SYNCBUSY_STATUS_Pos)
#define TC_SYNCBUSY_COUNT_Pos 4 /**< \brief (TC_SYNCBUSY) Counter */
#define TC_SYNCBUSY_COUNT (_U_(0x1) << TC_SYNCBUSY_COUNT_Pos)
#define TC_SYNCBUSY_PER_Pos 5 /**< \brief (TC_SYNCBUSY) Period */
#define TC_SYNCBUSY_PER (_U_(0x1) << TC_SYNCBUSY_PER_Pos)
#define TC_SYNCBUSY_CC0_Pos 6 /**< \brief (TC_SYNCBUSY) Compare Channel 0 */
#define TC_SYNCBUSY_CC0 (_U_(1) << TC_SYNCBUSY_CC0_Pos)
#define TC_SYNCBUSY_CC1_Pos 7 /**< \brief (TC_SYNCBUSY) Compare Channel 1 */
#define TC_SYNCBUSY_CC1 (_U_(1) << TC_SYNCBUSY_CC1_Pos)
#define TC_SYNCBUSY_CC_Pos 6 /**< \brief (TC_SYNCBUSY) Compare Channel x */
#define TC_SYNCBUSY_CC_Msk (_U_(0x3) << TC_SYNCBUSY_CC_Pos)
#define TC_SYNCBUSY_CC(value) (TC_SYNCBUSY_CC_Msk & ((value) << TC_SYNCBUSY_CC_Pos))
#define TC_SYNCBUSY_MASK _U_(0x000000FF) /**< \brief (TC_SYNCBUSY) MASK Register */
/* -------- TC_COUNT16_COUNT : (TC Offset: 0x14) (R/W 16) COUNT16 COUNT16 Count -------- */
#if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
typedef union {
struct {
uint16_t COUNT:16; /*!< bit: 0..15 Counter Value */
} bit; /*!< Structure used for bit access */
uint16_t reg; /*!< Type used for register access */
} TC_COUNT16_COUNT_Type;
#endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
#define TC_COUNT16_COUNT_OFFSET 0x14 /**< \brief (TC_COUNT16_COUNT offset) COUNT16 Count */
#define TC_COUNT16_COUNT_RESETVALUE _U_(0x0000) /**< \brief (TC_COUNT16_COUNT reset_value) COUNT16 Count */
#define TC_COUNT16_COUNT_COUNT_Pos 0 /**< \brief (TC_COUNT16_COUNT) Counter Value */
#define TC_COUNT16_COUNT_COUNT_Msk (_U_(0xFFFF) << TC_COUNT16_COUNT_COUNT_Pos)
#define TC_COUNT16_COUNT_COUNT(value) (TC_COUNT16_COUNT_COUNT_Msk & ((value) << TC_COUNT16_COUNT_COUNT_Pos))
#define TC_COUNT16_COUNT_MASK _U_(0xFFFF) /**< \brief (TC_COUNT16_COUNT) MASK Register */
/* -------- TC_COUNT32_COUNT : (TC Offset: 0x14) (R/W 32) COUNT32 COUNT32 Count -------- */
#if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
typedef union {
struct {
uint32_t COUNT:32; /*!< bit: 0..31 Counter Value */
} bit; /*!< Structure used for bit access */
uint32_t reg; /*!< Type used for register access */
} TC_COUNT32_COUNT_Type;
#endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
#define TC_COUNT32_COUNT_OFFSET 0x14 /**< \brief (TC_COUNT32_COUNT offset) COUNT32 Count */
#define TC_COUNT32_COUNT_RESETVALUE _U_(0x00000000) /**< \brief (TC_COUNT32_COUNT reset_value) COUNT32 Count */
#define TC_COUNT32_COUNT_COUNT_Pos 0 /**< \brief (TC_COUNT32_COUNT) Counter Value */
#define TC_COUNT32_COUNT_COUNT_Msk (_U_(0xFFFFFFFF) << TC_COUNT32_COUNT_COUNT_Pos)
#define TC_COUNT32_COUNT_COUNT(value) (TC_COUNT32_COUNT_COUNT_Msk & ((value) << TC_COUNT32_COUNT_COUNT_Pos))
#define TC_COUNT32_COUNT_MASK _U_(0xFFFFFFFF) /**< \brief (TC_COUNT32_COUNT) MASK Register */
/* -------- TC_COUNT8_COUNT : (TC Offset: 0x14) (R/W 8) COUNT8 COUNT8 Count -------- */
#if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
typedef union {
struct {
uint8_t COUNT:8; /*!< bit: 0.. 7 Counter Value */
} bit; /*!< Structure used for bit access */
uint8_t reg; /*!< Type used for register access */
} TC_COUNT8_COUNT_Type;
#endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
#define TC_COUNT8_COUNT_OFFSET 0x14 /**< \brief (TC_COUNT8_COUNT offset) COUNT8 Count */
#define TC_COUNT8_COUNT_RESETVALUE _U_(0x00) /**< \brief (TC_COUNT8_COUNT reset_value) COUNT8 Count */
#define TC_COUNT8_COUNT_COUNT_Pos 0 /**< \brief (TC_COUNT8_COUNT) Counter Value */
#define TC_COUNT8_COUNT_COUNT_Msk (_U_(0xFF) << TC_COUNT8_COUNT_COUNT_Pos)
#define TC_COUNT8_COUNT_COUNT(value) (TC_COUNT8_COUNT_COUNT_Msk & ((value) << TC_COUNT8_COUNT_COUNT_Pos))
#define TC_COUNT8_COUNT_MASK _U_(0xFF) /**< \brief (TC_COUNT8_COUNT) MASK Register */
/* -------- TC_COUNT8_PER : (TC Offset: 0x1B) (R/W 8) COUNT8 COUNT8 Period -------- */
#if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
typedef union {
struct {
uint8_t PER:8; /*!< bit: 0.. 7 Period Value */
} bit; /*!< Structure used for bit access */
uint8_t reg; /*!< Type used for register access */
} TC_COUNT8_PER_Type;
#endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
#define TC_COUNT8_PER_OFFSET 0x1B /**< \brief (TC_COUNT8_PER offset) COUNT8 Period */
#define TC_COUNT8_PER_RESETVALUE _U_(0xFF) /**< \brief (TC_COUNT8_PER reset_value) COUNT8 Period */
#define TC_COUNT8_PER_PER_Pos 0 /**< \brief (TC_COUNT8_PER) Period Value */
#define TC_COUNT8_PER_PER_Msk (_U_(0xFF) << TC_COUNT8_PER_PER_Pos)
#define TC_COUNT8_PER_PER(value) (TC_COUNT8_PER_PER_Msk & ((value) << TC_COUNT8_PER_PER_Pos))
#define TC_COUNT8_PER_MASK _U_(0xFF) /**< \brief (TC_COUNT8_PER) MASK Register */
/* -------- TC_COUNT16_CC : (TC Offset: 0x1C) (R/W 16) COUNT16 COUNT16 Compare and Capture -------- */
#if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
typedef union {
struct {
uint16_t CC:16; /*!< bit: 0..15 Counter/Compare Value */
} bit; /*!< Structure used for bit access */
uint16_t reg; /*!< Type used for register access */
} TC_COUNT16_CC_Type;
#endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
#define TC_COUNT16_CC_OFFSET 0x1C /**< \brief (TC_COUNT16_CC offset) COUNT16 Compare and Capture */
#define TC_COUNT16_CC_RESETVALUE _U_(0x0000) /**< \brief (TC_COUNT16_CC reset_value) COUNT16 Compare and Capture */
#define TC_COUNT16_CC_CC_Pos 0 /**< \brief (TC_COUNT16_CC) Counter/Compare Value */
#define TC_COUNT16_CC_CC_Msk (_U_(0xFFFF) << TC_COUNT16_CC_CC_Pos)
#define TC_COUNT16_CC_CC(value) (TC_COUNT16_CC_CC_Msk & ((value) << TC_COUNT16_CC_CC_Pos))
#define TC_COUNT16_CC_MASK _U_(0xFFFF) /**< \brief (TC_COUNT16_CC) MASK Register */
/* -------- TC_COUNT32_CC : (TC Offset: 0x1C) (R/W 32) COUNT32 COUNT32 Compare and Capture -------- */
#if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
typedef union {
struct {
uint32_t CC:32; /*!< bit: 0..31 Counter/Compare Value */
} bit; /*!< Structure used for bit access */
uint32_t reg; /*!< Type used for register access */
} TC_COUNT32_CC_Type;
#endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
#define TC_COUNT32_CC_OFFSET 0x1C /**< \brief (TC_COUNT32_CC offset) COUNT32 Compare and Capture */
#define TC_COUNT32_CC_RESETVALUE _U_(0x00000000) /**< \brief (TC_COUNT32_CC reset_value) COUNT32 Compare and Capture */
#define TC_COUNT32_CC_CC_Pos 0 /**< \brief (TC_COUNT32_CC) Counter/Compare Value */
#define TC_COUNT32_CC_CC_Msk (_U_(0xFFFFFFFF) << TC_COUNT32_CC_CC_Pos)
#define TC_COUNT32_CC_CC(value) (TC_COUNT32_CC_CC_Msk & ((value) << TC_COUNT32_CC_CC_Pos))
#define TC_COUNT32_CC_MASK _U_(0xFFFFFFFF) /**< \brief (TC_COUNT32_CC) MASK Register */
/* -------- TC_COUNT8_CC : (TC Offset: 0x1C) (R/W 8) COUNT8 COUNT8 Compare and Capture -------- */
#if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
typedef union {
struct {
uint8_t CC:8; /*!< bit: 0.. 7 Counter/Compare Value */
} bit; /*!< Structure used for bit access */
uint8_t reg; /*!< Type used for register access */
} TC_COUNT8_CC_Type;
#endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
#define TC_COUNT8_CC_OFFSET 0x1C /**< \brief (TC_COUNT8_CC offset) COUNT8 Compare and Capture */
#define TC_COUNT8_CC_RESETVALUE _U_(0x00) /**< \brief (TC_COUNT8_CC reset_value) COUNT8 Compare and Capture */
#define TC_COUNT8_CC_CC_Pos 0 /**< \brief (TC_COUNT8_CC) Counter/Compare Value */
#define TC_COUNT8_CC_CC_Msk (_U_(0xFF) << TC_COUNT8_CC_CC_Pos)
#define TC_COUNT8_CC_CC(value) (TC_COUNT8_CC_CC_Msk & ((value) << TC_COUNT8_CC_CC_Pos))
#define TC_COUNT8_CC_MASK _U_(0xFF) /**< \brief (TC_COUNT8_CC) MASK Register */
/* -------- TC_COUNT8_PERBUF : (TC Offset: 0x2F) (R/W 8) COUNT8 COUNT8 Period Buffer -------- */
#if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
typedef union {
struct {
uint8_t PERBUF:8; /*!< bit: 0.. 7 Period Buffer Value */
} bit; /*!< Structure used for bit access */
uint8_t reg; /*!< Type used for register access */
} TC_COUNT8_PERBUF_Type;
#endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
#define TC_COUNT8_PERBUF_OFFSET 0x2F /**< \brief (TC_COUNT8_PERBUF offset) COUNT8 Period Buffer */
#define TC_COUNT8_PERBUF_RESETVALUE _U_(0xFF) /**< \brief (TC_COUNT8_PERBUF reset_value) COUNT8 Period Buffer */
#define TC_COUNT8_PERBUF_PERBUF_Pos 0 /**< \brief (TC_COUNT8_PERBUF) Period Buffer Value */
#define TC_COUNT8_PERBUF_PERBUF_Msk (_U_(0xFF) << TC_COUNT8_PERBUF_PERBUF_Pos)
#define TC_COUNT8_PERBUF_PERBUF(value) (TC_COUNT8_PERBUF_PERBUF_Msk & ((value) << TC_COUNT8_PERBUF_PERBUF_Pos))
#define TC_COUNT8_PERBUF_MASK _U_(0xFF) /**< \brief (TC_COUNT8_PERBUF) MASK Register */
/* -------- TC_COUNT16_CCBUF : (TC Offset: 0x30) (R/W 16) COUNT16 COUNT16 Compare and Capture Buffer -------- */
#if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
typedef union {
struct {
uint16_t CCBUF:16; /*!< bit: 0..15 Counter/Compare Buffer Value */
} bit; /*!< Structure used for bit access */
uint16_t reg; /*!< Type used for register access */
} TC_COUNT16_CCBUF_Type;
#endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
#define TC_COUNT16_CCBUF_OFFSET 0x30 /**< \brief (TC_COUNT16_CCBUF offset) COUNT16 Compare and Capture Buffer */
#define TC_COUNT16_CCBUF_RESETVALUE _U_(0x0000) /**< \brief (TC_COUNT16_CCBUF reset_value) COUNT16 Compare and Capture Buffer */
#define TC_COUNT16_CCBUF_CCBUF_Pos 0 /**< \brief (TC_COUNT16_CCBUF) Counter/Compare Buffer Value */
#define TC_COUNT16_CCBUF_CCBUF_Msk (_U_(0xFFFF) << TC_COUNT16_CCBUF_CCBUF_Pos)
#define TC_COUNT16_CCBUF_CCBUF(value) (TC_COUNT16_CCBUF_CCBUF_Msk & ((value) << TC_COUNT16_CCBUF_CCBUF_Pos))
#define TC_COUNT16_CCBUF_MASK _U_(0xFFFF) /**< \brief (TC_COUNT16_CCBUF) MASK Register */
/* -------- TC_COUNT32_CCBUF : (TC Offset: 0x30) (R/W 32) COUNT32 COUNT32 Compare and Capture Buffer -------- */
#if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
typedef union {
struct {
uint32_t CCBUF:32; /*!< bit: 0..31 Counter/Compare Buffer Value */
} bit; /*!< Structure used for bit access */
uint32_t reg; /*!< Type used for register access */
} TC_COUNT32_CCBUF_Type;
#endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
#define TC_COUNT32_CCBUF_OFFSET 0x30 /**< \brief (TC_COUNT32_CCBUF offset) COUNT32 Compare and Capture Buffer */
#define TC_COUNT32_CCBUF_RESETVALUE _U_(0x00000000) /**< \brief (TC_COUNT32_CCBUF reset_value) COUNT32 Compare and Capture Buffer */
#define TC_COUNT32_CCBUF_CCBUF_Pos 0 /**< \brief (TC_COUNT32_CCBUF) Counter/Compare Buffer Value */
#define TC_COUNT32_CCBUF_CCBUF_Msk (_U_(0xFFFFFFFF) << TC_COUNT32_CCBUF_CCBUF_Pos)
#define TC_COUNT32_CCBUF_CCBUF(value) (TC_COUNT32_CCBUF_CCBUF_Msk & ((value) << TC_COUNT32_CCBUF_CCBUF_Pos))
#define TC_COUNT32_CCBUF_MASK _U_(0xFFFFFFFF) /**< \brief (TC_COUNT32_CCBUF) MASK Register */
/* -------- TC_COUNT8_CCBUF : (TC Offset: 0x30) (R/W 8) COUNT8 COUNT8 Compare and Capture Buffer -------- */
#if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
typedef union {
struct {
uint8_t CCBUF:8; /*!< bit: 0.. 7 Counter/Compare Buffer Value */
} bit; /*!< Structure used for bit access */
uint8_t reg; /*!< Type used for register access */
} TC_COUNT8_CCBUF_Type;
#endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
#define TC_COUNT8_CCBUF_OFFSET 0x30 /**< \brief (TC_COUNT8_CCBUF offset) COUNT8 Compare and Capture Buffer */
#define TC_COUNT8_CCBUF_RESETVALUE _U_(0x00) /**< \brief (TC_COUNT8_CCBUF reset_value) COUNT8 Compare and Capture Buffer */
#define TC_COUNT8_CCBUF_CCBUF_Pos 0 /**< \brief (TC_COUNT8_CCBUF) Counter/Compare Buffer Value */
#define TC_COUNT8_CCBUF_CCBUF_Msk (_U_(0xFF) << TC_COUNT8_CCBUF_CCBUF_Pos)
#define TC_COUNT8_CCBUF_CCBUF(value) (TC_COUNT8_CCBUF_CCBUF_Msk & ((value) << TC_COUNT8_CCBUF_CCBUF_Pos))
#define TC_COUNT8_CCBUF_MASK _U_(0xFF) /**< \brief (TC_COUNT8_CCBUF) MASK Register */
/** \brief TC_COUNT8 hardware registers */
#if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
typedef struct { /* 8-bit Counter Mode */
__IO TC_CTRLA_Type CTRLA; /**< \brief Offset: 0x00 (R/W 32) Control A */
__IO TC_CTRLBCLR_Type CTRLBCLR; /**< \brief Offset: 0x04 (R/W 8) Control B Clear */
__IO TC_CTRLBSET_Type CTRLBSET; /**< \brief Offset: 0x05 (R/W 8) Control B Set */
__IO TC_EVCTRL_Type EVCTRL; /**< \brief Offset: 0x06 (R/W 16) Event Control */
__IO TC_INTENCLR_Type INTENCLR; /**< \brief Offset: 0x08 (R/W 8) Interrupt Enable Clear */
__IO TC_INTENSET_Type INTENSET; /**< \brief Offset: 0x09 (R/W 8) Interrupt Enable Set */
__IO TC_INTFLAG_Type INTFLAG; /**< \brief Offset: 0x0A (R/W 8) Interrupt Flag Status and Clear */
__IO TC_STATUS_Type STATUS; /**< \brief Offset: 0x0B (R/W 8) Status */
__IO TC_WAVE_Type WAVE; /**< \brief Offset: 0x0C (R/W 8) Waveform Generation Control */
__IO TC_DRVCTRL_Type DRVCTRL; /**< \brief Offset: 0x0D (R/W 8) Control C */
RoReg8 Reserved1[0x1];
__IO TC_DBGCTRL_Type DBGCTRL; /**< \brief Offset: 0x0F (R/W 8) Debug Control */
__I TC_SYNCBUSY_Type SYNCBUSY; /**< \brief Offset: 0x10 (R/ 32) Synchronization Status */
__IO TC_COUNT8_COUNT_Type COUNT; /**< \brief Offset: 0x14 (R/W 8) COUNT8 Count */
RoReg8 Reserved2[0x6];
__IO TC_COUNT8_PER_Type PER; /**< \brief Offset: 0x1B (R/W 8) COUNT8 Period */
__IO TC_COUNT8_CC_Type CC[2]; /**< \brief Offset: 0x1C (R/W 8) COUNT8 Compare and Capture */
RoReg8 Reserved3[0x11];
__IO TC_COUNT8_PERBUF_Type PERBUF; /**< \brief Offset: 0x2F (R/W 8) COUNT8 Period Buffer */
__IO TC_COUNT8_CCBUF_Type CCBUF[2]; /**< \brief Offset: 0x30 (R/W 8) COUNT8 Compare and Capture Buffer */
} TcCount8;
#endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
/** \brief TC_COUNT16 hardware registers */
#if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
typedef struct { /* 16-bit Counter Mode */
__IO TC_CTRLA_Type CTRLA; /**< \brief Offset: 0x00 (R/W 32) Control A */
__IO TC_CTRLBCLR_Type CTRLBCLR; /**< \brief Offset: 0x04 (R/W 8) Control B Clear */
__IO TC_CTRLBSET_Type CTRLBSET; /**< \brief Offset: 0x05 (R/W 8) Control B Set */
__IO TC_EVCTRL_Type EVCTRL; /**< \brief Offset: 0x06 (R/W 16) Event Control */
__IO TC_INTENCLR_Type INTENCLR; /**< \brief Offset: 0x08 (R/W 8) Interrupt Enable Clear */
__IO TC_INTENSET_Type INTENSET; /**< \brief Offset: 0x09 (R/W 8) Interrupt Enable Set */
__IO TC_INTFLAG_Type INTFLAG; /**< \brief Offset: 0x0A (R/W 8) Interrupt Flag Status and Clear */
__IO TC_STATUS_Type STATUS; /**< \brief Offset: 0x0B (R/W 8) Status */
__IO TC_WAVE_Type WAVE; /**< \brief Offset: 0x0C (R/W 8) Waveform Generation Control */
__IO TC_DRVCTRL_Type DRVCTRL; /**< \brief Offset: 0x0D (R/W 8) Control C */
RoReg8 Reserved1[0x1];
__IO TC_DBGCTRL_Type DBGCTRL; /**< \brief Offset: 0x0F (R/W 8) Debug Control */
__I TC_SYNCBUSY_Type SYNCBUSY; /**< \brief Offset: 0x10 (R/ 32) Synchronization Status */
__IO TC_COUNT16_COUNT_Type COUNT; /**< \brief Offset: 0x14 (R/W 16) COUNT16 Count */
RoReg8 Reserved2[0x6];
__IO TC_COUNT16_CC_Type CC[2]; /**< \brief Offset: 0x1C (R/W 16) COUNT16 Compare and Capture */
RoReg8 Reserved3[0x10];
__IO TC_COUNT16_CCBUF_Type CCBUF[2]; /**< \brief Offset: 0x30 (R/W 16) COUNT16 Compare and Capture Buffer */
} TcCount16;
#endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
/** \brief TC_COUNT32 hardware registers */
#if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
typedef struct { /* 32-bit Counter Mode */
__IO TC_CTRLA_Type CTRLA; /**< \brief Offset: 0x00 (R/W 32) Control A */
__IO TC_CTRLBCLR_Type CTRLBCLR; /**< \brief Offset: 0x04 (R/W 8) Control B Clear */
__IO TC_CTRLBSET_Type CTRLBSET; /**< \brief Offset: 0x05 (R/W 8) Control B Set */
__IO TC_EVCTRL_Type EVCTRL; /**< \brief Offset: 0x06 (R/W 16) Event Control */
__IO TC_INTENCLR_Type INTENCLR; /**< \brief Offset: 0x08 (R/W 8) Interrupt Enable Clear */
__IO TC_INTENSET_Type INTENSET; /**< \brief Offset: 0x09 (R/W 8) Interrupt Enable Set */
__IO TC_INTFLAG_Type INTFLAG; /**< \brief Offset: 0x0A (R/W 8) Interrupt Flag Status and Clear */
__IO TC_STATUS_Type STATUS; /**< \brief Offset: 0x0B (R/W 8) Status */
__IO TC_WAVE_Type WAVE; /**< \brief Offset: 0x0C (R/W 8) Waveform Generation Control */
__IO TC_DRVCTRL_Type DRVCTRL; /**< \brief Offset: 0x0D (R/W 8) Control C */
RoReg8 Reserved1[0x1];
__IO TC_DBGCTRL_Type DBGCTRL; /**< \brief Offset: 0x0F (R/W 8) Debug Control */
__I TC_SYNCBUSY_Type SYNCBUSY; /**< \brief Offset: 0x10 (R/ 32) Synchronization Status */
__IO TC_COUNT32_COUNT_Type COUNT; /**< \brief Offset: 0x14 (R/W 32) COUNT32 Count */
RoReg8 Reserved2[0x4];
__IO TC_COUNT32_CC_Type CC[2]; /**< \brief Offset: 0x1C (R/W 32) COUNT32 Compare and Capture */
RoReg8 Reserved3[0xC];
__IO TC_COUNT32_CCBUF_Type CCBUF[2]; /**< \brief Offset: 0x30 (R/W 32) COUNT32 Compare and Capture Buffer */
} TcCount32;
#endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
#if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
typedef union {
TcCount8 COUNT8; /**< \brief Offset: 0x00 8-bit Counter Mode */
TcCount16 COUNT16; /**< \brief Offset: 0x00 16-bit Counter Mode */
TcCount32 COUNT32; /**< \brief Offset: 0x00 32-bit Counter Mode */
} Tc;
#endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
/*@}*/
#endif /* _SAMC21_TC_COMPONENT_ */
```
|
```c++
#include <vespa/eval/eval/fast_value.h>
#include <vespa/eval/eval/tensor_spec.h>
#include <vespa/eval/eval/value.h>
#include <vespa/eval/eval/value_codec.h>
#include <vespa/searchlib/features/closest_feature.h>
#include <vespa/searchlib/features/setup.h>
#include <vespa/searchlib/fef/test/dummy_dependency_handler.h>
#include <vespa/searchlib/fef/test/labels.h>
#include <vespa/searchlib/test/features/distance_closeness_fixture.h>
#include <vespa/vespalib/stllike/asciistream.h>
#include <vespa/vespalib/gtest/gtest.h>
#include <vespa/vespalib/stllike/asciistream.h>
using search::feature_t;
using search::features::test::BlueprintFactoryFixture;
using search::features::test::DistanceClosenessFixture;
using search::features::test::FeatureDumpFixture;
using search::features::test::IndexEnvironmentFixture;
using search::features::ClosestBlueprint;
using vespalib::eval::FastValueBuilderFactory;
using vespalib::eval::TensorSpec;
using vespalib::eval::Value;
using vespalib::eval::spec_from_value;
using vespalib::eval::value_from_spec;
const std::string field_and_label_feature_name("closest(bar,nns)");
const std::string field_feature_name("closest(bar)");
const std::string dense_tensor_type("tensor(x[2])");
const std::string mixed_tensor_type("tensor(a{},x[2])");
const std::string sparse_tensor_type("tensor(a{})");
TensorSpec no_subspace(sparse_tensor_type);
TensorSpec subspace_a = TensorSpec::from_expr("tensor(a{}):{{a:\"a\"}:1}");
TensorSpec subspace_b = TensorSpec::from_expr("tensor(a{}):{{a:\"b\"}:1}");
TensorSpec doc_tensor = TensorSpec::from_expr("tensor(a{},x[2]):{{a:\"a\",x:0}:3,{a:\"a\",x:1}:10,{a:\"b\",x:0}:5,{a:\"b\",x:1}:10}");
using RankFixture = DistanceClosenessFixture;
TensorSpec get_spec(RankFixture& f, uint32_t docid) {
return spec_from_value(f.getObject(docid).get());
}
struct TestParam
{
std::string _name;
bool _direct_tensor;
TestParam(std::string name, bool direct_tensor)
: _name(std::move(name)),
_direct_tensor(direct_tensor)
{
}
~TestParam();
};
TestParam::~TestParam() = default;
std::ostream& operator<<(std::ostream& os, const TestParam param)
{
os << param._name;
return os;
}
void
assert_setup(std::string field_name,
bool exp_setup_result,
std::optional<std::string> attr_type_spec,
std::optional<std::string> label)
{
vespalib::asciistream feature_name;
std::vector<std::string> setup_args;
ClosestBlueprint f1;
IndexEnvironmentFixture f2;
DummyDependencyHandler deps(f1);
setup_args.emplace_back(field_name);
feature_name << f1.getBaseName() << "(" << field_name;
if (label.has_value()) {
feature_name << "," << label.value();
setup_args.emplace_back(label.value());
}
feature_name << ")";
f1.setName(feature_name.view());
if (attr_type_spec.has_value()) {
search::fef::indexproperties::type::Attribute::set(f2.indexEnv.getProperties(), field_name, attr_type_spec.value());
}
EXPECT_EQ(exp_setup_result, static_cast<Blueprint&>(f1).setup(f2.indexEnv, setup_args));
}
class ClosestTest : public ::testing::TestWithParam<TestParam>
{
protected:
ClosestTest();
~ClosestTest();
bool direct_tensor() const noexcept { return GetParam()._direct_tensor; }
void assert_closest(const Labels& labels, const std::string& feature_name, const std::string& query_tensor, const TensorSpec& exp_spec);
void assert_closest(const Labels& labels, const std::string& feature_name, const std::vector<TensorSpec>& exp_specs);
};
ClosestTest::ClosestTest()
: testing::TestWithParam<TestParam>()
{
}
ClosestTest::~ClosestTest() = default;
void
ClosestTest::assert_closest(const Labels& labels, const std::string& feature_name, const std::string& query_tensor, const TensorSpec& exp_spec)
{
RankFixture f(mixed_tensor_type, direct_tensor(), 0, 1, labels, feature_name,
dense_tensor_type + ":" + query_tensor);
ASSERT_FALSE(f.failed());
SCOPED_TRACE(query_tensor);
f.set_attribute_tensor(9, doc_tensor);
EXPECT_EQ(exp_spec, get_spec(f, 9));
}
void
ClosestTest::assert_closest(const Labels& labels, const std::string& feature_name, const std::vector<TensorSpec>& exp_specs)
{
assert_closest(labels, feature_name, "[9,10]", exp_specs[0]);
assert_closest(labels, feature_name, "[1,10]", exp_specs[1]);
}
INSTANTIATE_TEST_SUITE_P(ClosestMultiTest,
ClosestTest,
testing::Values(TestParam("Serialized", false),
TestParam("Direct", true)),
testing::PrintToStringParamName());
TEST(ClosestTest, require_that_blueprint_can_be_created_from_factory)
{
BlueprintFactoryFixture f;
auto bp = f.factory.createBlueprint("closest");
EXPECT_TRUE(bp);
EXPECT_TRUE(dynamic_cast<ClosestBlueprint*>(bp.get()) != 0);
}
TEST(ClosestTest, require_that_no_features_are_dumped)
{
ClosestBlueprint f1;
IndexEnvironmentFixture f2;
FeatureDumpFixture f3;
f1.visitDumpFeatures(f2.indexEnv, f3);
}
TEST(ClosestTest, require_that_setup_fails_for_unknown_field)
{
assert_setup("random_field", false, mixed_tensor_type, std::nullopt);
}
TEST(ClosestTest, require_that_setup_fails_if_field_type_is_not_attribute)
{
assert_setup("ibar", false, sparse_tensor_type, std::nullopt);
}
TEST(ClosestTest, require_that_setup_fails_if_field_data_type_is_not_tensor)
{
assert_setup("foo", false, sparse_tensor_type, std::nullopt);
}
TEST(ClosestTest, require_that_setup_can_be_done_on_random_label)
{
assert_setup("bar", true, mixed_tensor_type, "random_label");
}
TEST(ClosestTest, require_that_setup_fails_if_tensor_type_is_missing)
{
assert_setup("bar", false, std::nullopt, std::nullopt);
}
TEST(ClosestTest, require_that_setup_fails_if_tensor_type_is_dense)
{
assert_setup("bar", false, dense_tensor_type, std::nullopt);
}
TEST(ClosestTest, require_that_setup_fails_if_tensor_type_is_sparse)
{
assert_setup("bar", false, sparse_tensor_type, std::nullopt);
}
TEST_P(ClosestTest, require_that_no_label_gives_empty_result)
{
NoLabel f;
assert_closest(f, field_and_label_feature_name, {no_subspace, no_subspace});
}
TEST_P(ClosestTest, require_that_unrelated_label_gives_empty_result)
{
SingleLabel f("unrelated", 1);
assert_closest(f, field_and_label_feature_name, {no_subspace, no_subspace});
}
TEST_P(ClosestTest, closest_using_field_setup)
{
NoLabel f;
assert_closest(f, field_feature_name, {subspace_b, subspace_a});
}
TEST_P(ClosestTest, closest_using_field_and_label_setup)
{
SingleLabel f("nns", 1);
assert_closest(f, field_and_label_feature_name, {subspace_b, subspace_a});
}
GTEST_MAIN_RUN_ALL_TESTS()
```
|
```javascript
Weak vs Strict equality operator
Data type comparison in `switch` statements
No block scope
Filtering items out of an array
Avoid using `with`
```
|
The World Professional Darts Championship is one of the most important tournaments in the darts calendar. Originally held as an annual event between 1978 and 1993, players then broke off into two separate organisations after a controversial split in the game. Each organisation, the British Darts Organisation (BDO) and the Professional Darts Corporation (PDC) then arranged their own World Championships, the former in January the latter in December. As a result, there was no longer was an unified world champion in the sport for nearly three decades.
The BDO version dated back to 1978, when it was held at the Heart of the Midlands nightclub, Nottingham. The following year it moved to the Jollees Cabaret Club, Stoke, where it stayed until 1985. From then until 2019 it was held at the Lakeside Leisure Complex at Frimley Green, Surrey. In 2020 the tournament was held at The O2 Arena in London. The BDO went into liquidation in 2020 and the World Darts Federation announced later that they would be creating their own version of a World Championship, returning to the Lakeside Leisure Complex. Due to the COVID-19 pandemic, their version didn't get underway until 2022. Since qualification for the BDO version was always based on WDF rankings, most of the player pool and legacy of this new version of the World Championship is based on the old BDO system.
The PDC version has been running since 1994 after "the split", with a field of players containing all active previous World Champions from the BDO. It was originally staged at Purfleet's Circus Tavern, Essex, before moving to its current home Alexandra Palace, London, for the 2008 World Championship.
Men's winners
British Darts Organisation
World Darts Federation
Professional Darts Corporation
By player
The following sortable table lists all winners of both versions of the World Championship (correct as of 3 January 2023).
By country
The following sortable table lists all winners of both versions of the World Championship (correct as of 3 January 2023).
Highest average progression
Women's winners
British Darts Organisation (current sponsors: Lakeside)
Professional Darts Corporation (sponsors: Unicorn)
World Darts Federation
By player
The following sortable table lists all winners of both versions of the World Championship (correct as of 10 April 2022).
By country
The following sortable table lists all winners of both versions of the World Championship (correct as of 10 April 2022).
Youth winners
British Darts Organisation
World Darts Federation (boys)
World Darts Federation (girls)
Professional Darts Corporation (current sponsors: Winmau)
References
Darts tournaments
Recurring sporting events established in 1978
|
```javascript
// Generated by ReScript, PLEASE EDIT WITH CARE
'use strict';
let Mt = require("./mt.js");
let Caml_option = require("../../lib/js/caml_option.js");
let suites = {
contents: /* [] */0
};
let test_id = {
contents: 0
};
function eq(loc, x, y) {
test_id.contents = test_id.contents + 1 | 0;
suites.contents = {
hd: [
loc + (" id " + String(test_id.contents)),
(function () {
return {
TAG: "Eq",
_0: x,
_1: y
};
})
],
tl: suites.contents
};
}
function f1(x) {
if (x !== null) {
return x + 1 | 0;
} else {
return 3;
}
}
function f2(x) {
if (x !== null) {
return x + 1 | 0;
} else {
return 3;
}
}
function f5(h, x) {
let u = h(32);
if (u !== null) {
return u + 1 | 0;
} else {
return 3;
}
}
function f4(h, x) {
let u = h(32);
let v = 32 + x | 0;
if (u !== null) {
return u + 1 | 0;
} else {
return 1 + v | 0;
}
}
function f6(x, y) {
return x === y;
}
function f7(x) {
return x;
}
function f8(x) {
if (x !== null) {
if (x !== null) {
return 0;
} else {
return 1;
}
} else {
return 2;
}
}
let u = f8(undefined);
function f9(x) {
if (x === null) {
return;
} else {
return Caml_option.some(x);
}
}
function f10(x) {
return x === null;
}
let f11 = false;
let Test_null = {
f1: f1,
f2: f2,
f5: f5,
f4: f4,
f6: f6,
f7: f7,
f8: f8,
u: u,
f9: f9,
f10: f10,
f11: f11
};
function f1$1(x) {
if (x !== undefined) {
return x + 1 | 0;
} else {
return 3;
}
}
function f2$1(x) {
if (x !== undefined) {
return x + 1 | 0;
} else {
return 3;
}
}
function f5$1(h, x) {
let u = h(32);
if (u !== undefined) {
return u + 1 | 0;
} else {
return 3;
}
}
function f4$1(h, x) {
let u = h(32);
let v = 32 + x | 0;
if (u !== undefined) {
return u + 1 | 0;
} else {
return 1 + v | 0;
}
}
function f6$1(x, y) {
return x === y;
}
function f7$1(x) {
return x;
}
function f8$1(x) {
if (x !== undefined) {
if (x !== undefined) {
return 0;
} else {
return 1;
}
} else {
return 2;
}
}
let u$1 = f8$1(undefined);
function f9$1(x) {
if (x === undefined) {
return;
} else {
return Caml_option.some(x);
}
}
function f10$1(x) {
return x === undefined;
}
let f11$1 = false;
let Test_def = {
f1: f1$1,
f2: f2$1,
f5: f5$1,
f4: f4$1,
f6: f6$1,
f7: f7$1,
f8: f8$1,
u: u$1,
f9: f9$1,
f10: f10$1,
f11: f11$1
};
function f1$2(x) {
if (x == null) {
return 3;
} else {
return x + 1 | 0;
}
}
function f2$2(x) {
if (x == null) {
return 3;
} else {
return x + 1 | 0;
}
}
function f5$2(h, x) {
let u = h(32);
if (u == null) {
return 3;
} else {
return u + 1 | 0;
}
}
function f4$2(h, x) {
let u = h(32);
let v = 32 + x | 0;
if (u == null) {
return 1 + v | 0;
} else {
return u + 1 | 0;
}
}
function f6$2(x, y) {
return x === y;
}
function f7$2(x) {
return x;
}
function f8$2(x) {
if (x == null) {
return 2;
} else if (x == null) {
return 1;
} else {
return 0;
}
}
let u$2 = f8$2(undefined);
function f9$2(x) {
if (x == null) {
return;
} else {
return Caml_option.some(x);
}
}
function f10$2(x) {
return x == null;
}
let f11$2 = false;
let Test_null_def = {
f1: f1$2,
f2: f2$2,
f5: f5$2,
f4: f4$2,
f6: f6$2,
f7: f7$2,
f8: f8$2,
u: u$2,
f9: f9$2,
f10: f10$2,
f11: f11$2
};
eq("File \"test_zero_nullable.res\", line 244, characters 5-12", f1$2(0), 1);
eq("File \"test_zero_nullable.res\", line 245, characters 5-12", f1$2(null), 3);
eq("File \"test_zero_nullable.res\", line 246, characters 5-12", f1$2(undefined), 3);
eq("File \"test_zero_nullable.res\", line 248, characters 5-12", f1(0), 1);
eq("File \"test_zero_nullable.res\", line 249, characters 5-12", f1(null), 3);
eq("File \"test_zero_nullable.res\", line 251, characters 5-12", f1$1(0), 1);
eq("File \"test_zero_nullable.res\", line 252, characters 5-12", f1$1(undefined), 3);
Mt.from_pair_suites("Test_zero_nullable", suites.contents);
exports.suites = suites;
exports.test_id = test_id;
exports.eq = eq;
exports.Test_null = Test_null;
exports.Test_def = Test_def;
exports.Test_null_def = Test_null_def;
/* u Not a pure module */
```
|
Arsenurinae is a subfamily of the family Saturniidae.
This subfamily contains the following genera:
Almeidaia Travassos, 1937
Arsenura Duncan [& Westwood], 1841
Caio Travassos & Noronha, 1968
Copiopteryx Duncan [& Westwood], 1841
Dysdaemonia HΓΌbner, 1819
Grammopelta Rothschild, 1907
Loxolomia Maassen, 1869
Paradaemonia Bouvier, 1925
Rhescyntis HΓΌbner, 1819
Titaea HΓΌbner, 1823
References
Saturniidae
|
```c
* All rights reserved.
*
* This package is an SSL implementation written
* by Eric Young (eay@cryptsoft.com).
* The implementation was written so as to conform with Netscapes SSL.
*
* This library is free for commercial and non-commercial use as long as
* the following conditions are aheared to. The following conditions
* apply to all code found in this distribution, be it the RC4, RSA,
* lhash, DES, etc., code; not just the SSL code. The SSL documentation
* included with this distribution is covered by the same copyright terms
* except that the holder is Tim Hudson (tjh@cryptsoft.com).
*
* the code are not to be removed.
* If this package is used in a product, Eric Young should be given attribution
* as the author of the parts of the library used.
* This can be in the form of a textual message at program startup or
* in documentation (online or textual) provided with the package.
*
* 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 copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* 3. All advertising materials mentioning features or use of this software
* must display the following acknowledgement:
* "This product includes cryptographic software written by
* Eric Young (eay@cryptsoft.com)"
* The word 'cryptographic' can be left out if the rouines from the library
* being used are not cryptographic related :-).
* 4. If you include any Windows specific code (or a derivative thereof) from
* the apps directory (application code) you must include an acknowledgement:
* "This product includes software written by Tim Hudson (tjh@cryptsoft.com)"
*
* THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR 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.
*
* The licence and distribution terms for any publically available version or
* derivative of this code cannot be changed. i.e. this code cannot simply be
* copied and put under another distribution licence
* [including the GNU Public Licence.] */
#include <openssl/bio.h>
#include <errno.h>
#include "internal.h"
int bio_errno_should_retry(int return_value) {
if (return_value != -1) {
return 0;
}
return
#ifdef EWOULDBLOCK
errno == EWOULDBLOCK ||
#endif
#ifdef ENOTCONN
errno == ENOTCONN ||
#endif
#ifdef EINTR
errno == EINTR ||
#endif
#ifdef EAGAIN
errno == EAGAIN ||
#endif
#ifdef EPROTO
errno == EPROTO ||
#endif
#ifdef EINPROGRESS
errno == EINPROGRESS ||
#endif
#ifdef EALREADY
errno == EALREADY ||
#endif
0;
}
```
|
```xml
<?xml version="1.0" encoding="UTF-8"?>
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
3. Neither the name of the copyright holder nor the names of its
contributors may be used to endorse or promote products derived
from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
-->
<LWM2M xmlns:xsi="path_to_url"
xsi:noNamespaceSchemaLocation="path_to_url">
<Object ObjectType="MODefinition">
<Name>LwM2M v1.0 Test Object</Name>
<Description1><![CDATA[This object is for use in interoperability tests of the LwM2M v1.0 technical specification. It contains resources for each available datatype.]]></Description1>
<ObjectID>3441</ObjectID>
<ObjectURN>urn:oma:lwm2m:ext:3441</ObjectURN>
<LWM2MVersion>1.0</LWM2MVersion>
<ObjectVersion>1.0</ObjectVersion>
<MultipleInstances>Multiple</MultipleInstances>
<Mandatory>Optional</Mandatory>
<Resources>
<Item ID="0">
<Name>Reset values</Name>
<Operations>E</Operations>
<MultipleInstances>Single</MultipleInstances>
<Mandatory>Optional</Mandatory>
<Type></Type>
<RangeEnumeration />
<Units />
<Description>Reset all resources of this object with their initial value.</Description>
</Item>
<Item ID="1">
<Name>Randomize values</Name>
<Operations>E</Operations>
<MultipleInstances>Single</MultipleInstances>
<Mandatory>Optional</Mandatory>
<Type></Type>
<RangeEnumeration />
<Units />
<Description>
<![CDATA[Set random value to all resources. For multi-instance resources, the number of resource instances is also randomized.
Randomization should avoid to generate too big payload. We advice to limit value to something like :
- 20 characters for String,
- 20 bytes for Opaque,
- 10 instances for multi-instance resources.
]]>
</Description>
</Item>
<Item ID="2">
<Name>Clear values</Name>
<Operations>E</Operations>
<MultipleInstances>Single</MultipleInstances>
<Mandatory>Optional</Mandatory>
<Type></Type>
<RangeEnumeration />
<Units />
<Description>
<![CDATA[Clear all values :
- all multiple resource as empty resource
- all number to 0
- String to empty string
- boolean to false,
- opaque to empty byte array,
- time to an 1st, 1970 in the UTC time zone
- objlink to null link]]>
</Description>
</Item>
<Item ID="3">
<Name>Exec With Arguments</Name>
<Operations>E</Operations>
<MultipleInstances>Single</MultipleInstances>
<Mandatory>Optional</Mandatory>
<Type></Type>
<RangeEnumeration />
<Units />
<Description>
<![CDATA[This resources can be used to test "Execute Operation" with Arguments.
Sent Arguments can be read via "Arguments List"(4) resource.
E.g. If you send an Exec /3441/0/3 with "3='stringValue',4" as arguments value,
then /3441/0/4/3 will be 'stringValue' and /3441/0/4/4 will be an empty string.
]]>
</Description>
</Item>
<Item ID="4">
<Name>Arguments List</Name>
<Operations>R</Operations>
<MultipleInstances>Multiple</MultipleInstances>
<Mandatory>Optional</Mandatory>
<Type>String</Type>
<RangeEnumeration />
<Units />
<Description>List of Arguments from last execute on "Exec With Arguments"(3) resource. This resource is not affected by the "Randomize values"(1) executable resource.
</Description>
</Item>
<Item ID="110">
<Name>String Value</Name>
<Operations>RW</Operations>
<MultipleInstances>Single</MultipleInstances>
<Mandatory>Optional</Mandatory>
<Type>String</Type>
<RangeEnumeration />
<Units />
<Description>Initial value must be "initial value".
</Description>
</Item>
<Item ID="120">
<Name>Integer Value</Name>
<Operations>RW</Operations>
<MultipleInstances>Single</MultipleInstances>
<Mandatory>Optional</Mandatory>
<Type>Integer</Type>
<RangeEnumeration />
<Units />
<Description>Initial value must be "1024".
</Description>
</Item>
<Item ID="130">
<Name>Float Value</Name>
<Operations>RW</Operations>
<MultipleInstances>Single</MultipleInstances>
<Mandatory>Optional</Mandatory>
<Type>Float</Type>
<RangeEnumeration />
<Units />
<Description>Initial value must be "3.14159".
</Description>
</Item>
<Item ID="140">
<Name>Boolean Value</Name>
<Operations>RW</Operations>
<MultipleInstances>Single</MultipleInstances>
<Mandatory>Optional</Mandatory>
<Type>Boolean</Type>
<RangeEnumeration />
<Units />
<Description>Initial value must be "true".</Description>
</Item>
<Item ID="150">
<Name>Opaque Value</Name>
<Operations>RW</Operations>
<MultipleInstances>Single</MultipleInstances>
<Mandatory>Optional</Mandatory>
<Type>Opaque</Type>
<RangeEnumeration />
<Units />
<Description>Initial value must be the bytes sequence "0123456789ABCDEF" (Hexadecimal notation).
</Description>
</Item>
<Item ID="160">
<Name>Time Value</Name>
<Operations>RW</Operations>
<MultipleInstances>Single</MultipleInstances>
<Mandatory>Optional</Mandatory>
<Type>Time</Type>
<RangeEnumeration />
<Units />
<Description>Initial value must be the time to an 1st, 2000 in the UTC time zone. (Timestamp value : 946684800)</Description>
</Item>
<Item ID="170">
<Name>ObjLink Value</Name>
<Operations>RW</Operations>
<MultipleInstances>Single</MultipleInstances>
<Mandatory>Optional</Mandatory>
<Type>Objlnk</Type>
<RangeEnumeration />
<Units />
<Description>Initial value must be a link to instance 0 of Device Object 3 (3:0).</Description>
</Item>
<Item ID="1110">
<Name>Multiple String Value</Name>
<Operations>RW</Operations>
<MultipleInstances>Multiple</MultipleInstances>
<Mandatory>Optional</Mandatory>
<Type>String</Type>
<RangeEnumeration />
<Units />
<Description>Initial value must be 1 instance with ID 0 and value "initial value".</Description>
</Item>
<Item ID="1120">
<Name>Multiple Integer Value</Name>
<Operations>RW</Operations>
<MultipleInstances>Multiple</MultipleInstances>
<Mandatory>Optional</Mandatory>
<Type>Integer</Type>
<RangeEnumeration />
<Units />
<Description>Initial value must be 1 instance with ID 0 and value "1024".</Description>
</Item>
<Item ID="1130">
<Name>Multiple Float Value</Name>
<Operations>RW</Operations>
<MultipleInstances>Multiple</MultipleInstances>
<Mandatory>Optional</Mandatory>
<Type>Float</Type>
<RangeEnumeration />
<Units />
<Description>Initial value must be 1 instance with ID 0 and value "3.14159".</Description>
</Item>
<Item ID="1140">
<Name>Multiple Boolean Value</Name>
<Operations>RW</Operations>
<MultipleInstances>Multiple</MultipleInstances>
<Mandatory>Optional</Mandatory>
<Type>Boolean</Type>
<RangeEnumeration />
<Units />
<Description>Initial value must be 1 instance with ID 0 and value "true".</Description>
</Item>
<Item ID="1150">
<Name>Multiple Opaque Value</Name>
<Operations>RW</Operations>
<MultipleInstances>Multiple</MultipleInstances>
<Mandatory>Optional</Mandatory>
<Type>Opaque</Type>
<RangeEnumeration />
<Units />
<Description>Initial value must be 1 instance with ID 0 and value "0123456789ABCDEF"(Hexadecimal notation of the bytes sequence).</Description>
</Item>
<Item ID="1160">
<Name>Multiple Time Value</Name>
<Operations>RW</Operations>
<MultipleInstances>Multiple</MultipleInstances>
<Mandatory>Optional</Mandatory>
<Type>Time</Type>
<RangeEnumeration />
<Units />
<Description>Initial value must be 1 instance with ID 0 and value 1st, 2000 in the UTC time zone (Timestamp value : 946684800).</Description>
</Item>
<Item ID="1170">
<Name>Multiple ObjLink Value</Name>
<Operations>RW</Operations>
<MultipleInstances>Multiple</MultipleInstances>
<Mandatory>Optional</Mandatory>
<Type>Objlnk</Type>
<RangeEnumeration />
<Units />
<Description>Initial value must be 1 instance with ID 0 and value "3:0".</Description>
</Item>
</Resources>
<Description2></Description2>
</Object>
</LWM2M>
```
|
```c++
#pragma once
#include <stdarg.h>
#include <vector>
#include <common.hpp>
namespace rack {
/** Supplemental `std::string` functions */
namespace string {
/** Converts a `printf()` format string and optional arguments into a std::string.
Remember that "%s" must reference a `char *`, so use `.c_str()` for `std::string`s, otherwise you will get binary garbage.
*/
__attribute__((format(printf, 1, 2)))
std::string f(const char* format, ...);
std::string fV(const char* format, va_list args);
/** Replaces all characters to lowercase letters */
std::string lowercase(const std::string& s);
/** Replaces all characters to uppercase letters */
std::string uppercase(const std::string& s);
/** Removes whitespace from beginning and end of string. */
std::string trim(const std::string& s);
/** Truncates and adds "..." to the end of a string, not exceeding `len` characters. */
std::string ellipsize(const std::string& s, size_t len);
/** Truncates and adds "..." to the beginning of a string, not exceeding `len` characters. */
std::string ellipsizePrefix(const std::string& s, size_t len);
/** Returns whether a string starts with the given substring. */
bool startsWith(const std::string& str, const std::string& prefix);
/** Returns whether a string ends with the given substring. */
bool endsWith(const std::string& str, const std::string& suffix);
/** Converts a byte array to a Base64-encoded string.
path_to_url
*/
std::string toBase64(const uint8_t* data, size_t dataLen);
std::string toBase64(const std::vector<uint8_t>& data);
/** Converts a Base64-encoded string to a byte array.
Throws std::runtime_error if string is invalid.
*/
std::vector<uint8_t> fromBase64(const std::string& str);
struct CaseInsensitiveCompare {
/** Returns whether `a < b` using case-insensitive lexical comparison. */
bool operator()(const std::string& a, const std::string& b) const;
};
/** Joins an container (vector, list, etc) of std::strings with an optional separator string.
*/
template <typename TContainer>
std::string join(const TContainer& container, std::string seperator = "") {
std::string s;
bool first = true;
for (const auto& c : container) {
if (!first)
s += seperator;
first = false;
s += c;
}
return s;
}
/** Splits a string into a vector of tokens.
If `maxTokens > 0`, limits the number of tokens.
Tokens do not include the separator string.
Examples:
split("a+b+c", "+") // {"a", "b", "c"}
split("abc", "+") // {"abc"}
split("a++c", "+") // {"a", "", "c"}
split("", "+") // {}
split("abc", "") // throws rack::Exception
*/
std::vector<std::string> split(const std::string& s, const std::string& seperator, size_t maxTokens = 0);
/** Formats a UNIX timestamp with a strftime() string. */
std::string formatTime(const char* format, double timestamp);
std::string formatTimeISO(double timestamp);
#if defined ARCH_WIN
/** Performs a Unicode string conversion from UTF-16 to UTF-8.
These are only defined on Windows because the implementation uses Windows' API, and conversion is not needed on other OS's (since everything on Mac and Linux is UTF-8).
std::string and char* variables are considered UTF-8, anywhere in the program.
See path_to_url for more information about VCV Rack's philosophy on string encoding, especially section 10 for rules VCV follows for handling text on Windows.
*/
std::string UTF16toUTF8(const std::wstring& w);
std::wstring UTF8toUTF16(const std::string& s);
#endif
/** Structured version string, for comparison.
Strings are split into parts by "." and compared lexicographically.
Parts are compared as the following.
If both parts can be parsed as integers (such as "10" and "2"), their integer value is compared (so "10" is greater).
If one part cannot be parsed as an integer (such as "2" and "beta"), the integer part is greater ("2").
If neither part can be parsed as an integer (such as "alpha" and "beta"), the parts are compared as strings in typical lexicographical order.
For example, the following versions are sorted earliest to latest.
1.a.0
1.b.0
1.0.0
1.0.1
1.2.0
1.10.0
2.0.0
*/
struct Version {
std::vector<std::string> parts;
Version() {}
Version(const std::string& s);
Version(const char* s) : Version(std::string(s)) {}
operator std::string() const;
/** Returns whether this version is earlier than `other`. */
bool operator<(const Version& other);
std::string getMajor() const {
return get(parts, 0, "");
}
std::string getMinor() const {
return get(parts, 1, "");
}
std::string getRevision() const {
return get(parts, 2, "");
}
};
} // namespace string
} // namespace rack
```
|
This page lists all described species of the spider family Oxyopidae accepted by the World Spider Catalog :
Hamadruas
Hamadruas Deeleman-Reinhold, 2009
H. austera (Thorell, 1894) β Singapore
H. heterosticta (Pocock, 1897) β Indonesia (Sulawesi, Moluccas)
H. hieroglyphica (Thorell, 1887) (type) β China, Myanmar
H. insulana (Thorell, 1891) β India (Nicobar Is.)
H. pupulus (Thorell, 1890) β Indonesia (Nias Is.)
H. severa (Thorell, 1895) β Myanmar, Indonesia (Lombok)
H. signifera (Doleschall, 1859) β Indonesia (Java)
H. sikkimensis (Tikader, 1970) β India, Bangladesh, China
H. superba (Thorell, 1887) β Myanmar, Thailand, Indonesia (Borneo)
Hamataliwa
Hamataliwa Keyserling, 1887
H. albibarbis (Mello-LeitΓ£o, 1947) β Brazil
H. argyrescens Mello-LeitΓ£o, 1929 β Brazil
H. aurita Zhang, Zhu & Song, 2005 β China
H. banksi (Mello-LeitΓ£o, 1928) β Mexico to Costa Rica
H. barroana (Chamberlin & Ivie, 1936) β Mexico to Panama
H. bicolor (Mello-LeitΓ£o, 1929) β Brazil
H. bituberculata (Mello-LeitΓ£o, 1929) β Brazil, Guyana
H. brunnea (F. O. Pickard-Cambridge, 1902) β Mexico
H. buelowae Mello-LeitΓ£o, 1945 β Argentina
H. bufo Brady, 1970 β Panama
H. catenula Deeleman-Reinhold, 2009 β Malaysia, Indonesia (Borneo, Sunda Is.)
H. caudata Mello-LeitΓ£o, 1929 β Brazil
H. cavata (Kraus, 1955) β El Salvador
H. cheta Brady, 1970 β Guatemala
H. circularis (Kraus, 1955) β El Salvador
H. communicans (Chamberlin, 1925) β Hispaniola
H. cooki Grimshaw, 1989 β Australia (Northern Territory, Queensland)
H. cordata Zhang, Zhu & Song, 2005 β China
H. cornuta (Thorell, 1895) β Myanmar
H. crocata Brady, 1970 β Panama
H. cucullata Tang, Wang & Peng, 2012 β China
H. difficilis (O. Pickard-Cambridge, 1894) β Mexico
H. dimidiata (Soares & Camargo, 1948) β Brazil
H. dubia (Mello-LeitΓ£o, 1929) β Brazil
H. facilis (O. Pickard-Cambridge, 1894) β Mexico, Guatemala
H. flebilis (O. Pickard-Cambridge, 1894) β Mexico to Panama
H. floreni Deeleman-Reinhold, 2009 β Malaysia, Indonesia (Borneo)
H. foveata Tang & Li, 2012 β China
H. fronticornis (Lessert, 1927) β DR Congo, South Africa
H. fronto (Thorell, 1890) β Indonesia (Sumatra)
H. globosa (F. O. Pickard-Cambridge, 1902) β Mexico to Panama
H. grisea Keyserling, 1887 (type) β USA, Mexico
H. haytiana (Chamberlin, 1925) β Hispaniola
H. helia (Chamberlin, 1929) β USA, Mexico, Guyana, Thailand, Malaysia (Sarawak), Brunei, Indonesia (Sumatra)
H. hellia Dhali, Saha & Raychaudhuri, 2017 β India
H. hista Brady, 1970 β Panama
H. ignifuga Deeleman-Reinhold, 2009 β Borneo
H. incompta (Thorell, 1895) β India, Myanmar, Thailand, Malaysia, Philippines, Indonesia (Borneo)
H. kulczynskii (Lessert, 1915) β Ethiopia, Botswana, Eswatini, South Africa
H. labialis (Song, 1991) β China
H. laeta (O. Pickard-Cambridge, 1894) β Mexico
H. latifrons (Thorell, 1890) β Indonesia (Sumatra)
H. maculipes (Bryant, 1923) β Antigua and Barbuda (Antigua)
H. manca Tang & Li, 2012 β China
H. marmorata Simon, 1898 β Brazil, Paraguay
H. menglunensis Tang & Li, 2012 β China
H. micropunctata (Mello-LeitΓ£o, 1929) β Brazil
H. monroei Grimshaw, 1989 β Australia (Queensland)
H. nigrescens Mello-LeitΓ£o, 1929 β Brazil
H. nigritarsa Bryant, 1948 β Hispaniola
H. nigriventris (Mello-LeitΓ£o, 1929) β Brazil
H. obtusa (Thorell, 1892) β Indonesia (Sumatra)
H. oculata Tang & Li, 2012 β China
H. ovata (Biswas, Kundu, Kundu, Saha & Raychaudhuri, 1996) β India
H. pedicula Tang & Li, 2012 β China
H. penicillata Mello-LeitΓ£o, 1948 β Guyana
H. pentagona Tang & Li, 2012 β India, China
H. perdita Mello-LeitΓ£o, 1929 β Brazil
H. peterjaegeri Deeleman-Reinhold, 2009 β Borneo
H. pilulifera Tang & Li, 2012 β China
H. porcata (Simon, 1898) β Brazil
H. positiva Chamberlin, 1924 β Mexico
H. pricompta Deeleman-Reinhold, 2009 β Borneo, Sumatra
H. puta (O. Pickard-Cambridge, 1894) β Mexico to Panama
H. quadrimaculata (Mello-LeitΓ£o, 1929) β Brazil
H. rana (Simon, 1898) β Caribbean
H. reticulata (Biswas, Kundu, Kundu, Saha & Raychaudhuri, 1996) β India
H. rostrifrons (Lawrence, 1928) β Namibia, South Africa
H. rufocaligata Simon, 1898 β Ethiopia, Djibouti, Somalia, Botswana, South Africa
H. sanmenensis Song & Zheng, 1992 β China
H. schmidti Reimoser, 1939 β Mexico to Costa Rica
H. strandi (Lessert, 1923) β Mozambique, South Africa
H. subfacilis (O. Pickard-Cambridge, 1894) β Mexico
H. subhadrae (Tikader, 1970) β China, India
H. submanca Tang & Li, 2012 β China
H. torsiva Tang, Wang & Peng, 2012 β China
H. triangularis (Kraus, 1955) β El Salvador, Panama
H. tricuspidata (F. O. Pickard-Cambridge, 1902) β Costa Rica to Guyana
H. truncata (Thorell, 1897) β Vietnam
H. tuberculata (Chamberlin, 1925) β Cuba
H. unca Brady, 1964 β USA
H. ursa Brady, 1970 β Panama
H. vanbruggeni Deeleman-Reinhold, 2009 β Borneo
Hostus
Hostus Simon, 1898
H. paroculus Simon, 1898 (type) β Madagascar
Oxyopes
Oxyopes Latreille, 1804
O. acleistus Chamberlin, 1929 β USA, Mexico
O. aculeatus BΓΆsenberg & Lenz, 1895 β East Africa
O. affinis Lessert, 1915 β DR Congo, Tanzania, Mozambique, South Africa
O. aglossus Chamberlin, 1929 β USA
O. albertianus Strand, 1913 β Congo, Uganda
O. algerianus (Walckenaer, 1841) β Morocco, Algeria
O. allectus Simon, 1909 β Gabon, Guinea-Bissau
O. altifrons Mello-LeitΓ£o, 1941 β Brazil
O. amoenus L. Koch, 1878 β Australia (Queensland, New South Wales, South Australia?, Northern Territory?)
O. angulitarsus Lessert, 1915 β Uganda, South Africa
O. annularis Yin, Zhang & Bao, 2003 β China
O. annulipes Thorell, 1890 β Indonesia (Sumatra)
O. apollo Brady, 1964 β USA, Mexico
O. arcuatus Yin, Zhang & Bao, 2003 β China
O. argentosus Simon, 1909 β Guinea-Bissau
O. argyrotrichius Mello-LeitΓ£o, 1929 β Brazil
O. armatipalpis Strand, 1912 β India
O. artemis Brady, 1969 β USA
O. arushae Caporiacco, 1947 β East Africa
O. ashae Gajbe, 1999 β India
O. aspirasi Barrion & Litsinger, 1995 β Philippines
O. assamensis Tikader, 1969 β India
O. asterion Simon, 1909 β Guinea-Bissau
O. attenuatus L. Koch, 1878 β Australia (Queensland)
O. auratus Thorell, 1890 β Singapore, Indonesia (Sumatra)
O. aureolus Thorell, 1899 β Cameroon
O. auriculatus Lawrence, 1927 β Namibia
O. azhari Butt & Beg, 2001 β Pakistan
O. baccatus Simon, 1897 β Ethiopia
O. badhyzicus Mikhailov & Fet, 1986 β Israel, Iran, Turkmenistan
O. balteiformis Yin, Zhang & Bao, 2003 β China
O. bantaengi Merian, 1911 β Indonesia (Sulawesi)
O. bedoti Lessert, 1915 β East Africa, South Africa
O. berlandorum Lessert, 1915 β East Africa
O. bharatae Gajbe, 1999 β India
O. bicorneus Zhang & Zhu, 2005 β China
O. bidentata Mukhtar, 2017 β Pakistan
O. bifidus F. O. Pickard-Cambridge, 1902 β Mexico to Panama
O. bifissus F. O. Pickard-Cambridge, 1902 β Mexico to Costa Rica
O. biharensis Gajbe, 1999 β India
O. birabeni Mello-LeitΓ£o, 1941 β Argentina
O. birmanicus Thorell, 1887 β India, China to Indonesia (Sumatra)
O. bolivianus Tullgren, 1905 β Bolivia
O. bonneti Lessert, 1933 β Angola, South Africa
O. boriensis Bodkhe & Vankhede, 2012 β India
O. bothai Lessert, 1915 β Ethiopia, Tanzania, South Africa
O. bouvieri Berland, 1922 β Ethiopia
O. brachiatus Simon, 1909 β Equatorial Guinea (Bioko), Congo
O. brevis Thorell, 1881 β Indonesia (Aru Is.)
O. caboverdensis Schmidt & Krause, 1994 β Cape Verde Is.
O. calcaratus Schenkel, 1944 β Timor
O. campestratus Simon, 1909 β Guinea-Bissau, Equatorial Guinea (Bioko), SΓ£o TomΓ© and PrΓncipe
O. campii Mushtaq & Qadar, 1999 β Pakistan
O. camponis Strand, 1915 β Cameroon
O. candidoi Garcia-Neto, 1995 β Brazil
O. caporiaccoi Roewer, 1951 β Ethiopia
O. carvalhoi Mello-LeitΓ£o, 1947 β Brazil
O. castaneus Lawrence, 1927 β Namibia, South Africa
O. ceylonicus Karsch, 1892 β Sri Lanka
O. chapini Lessert, 1927 β DR Congo, Namibia, South Africa
O. chenabensis Mukhtar, 2017 β Pakistan
O. chiapas Brady, 1975 β Mexico
O. chittrae Tikader, 1965 β India
O. coccineoventris Lessert, 1946 β Congo
O. cochinchinensis (Walckenaer, 1837) β Vietnam
O. complicatus Tang & Li, 2012 β China
O. concolor Simon, 1877 β Philippines
O. concoloratus Roewer, 1951 β Ethiopia
O. constrictus Keyserling, 1891 β Brazil, Guyana
O. cornifrons (Thorell, 1899) β Cameroon, Guinea-Bissau
O. c. avakubensis Lessert, 1927 β Cameroon, Guinea-Bissau, DR Congo, South Africa
O. cornutus F. O. Pickard-Cambridge, 1902 β Mexico
O. cougar Brady, 1969 β USA
O. crassus Schmidt & Krause, 1995 β Cape Verde Is.
O. crewi Bryant, 1948 β Bahamas, Cuba, Jamaica, Hispaniola, St. Kitts and Nevis
O. daksina Sherriffs, 1955 β Sri Lanka, China
O. decorosus Zhang & Zhu, 2005 β China
O. delesserti Caporiacco, 1947 β Ethiopia, East Africa
O. delmonteensis Barrion & Litsinger, 1995 β Philippines
O. dingo Strand, 1913 β Central Australia
O. dubourgi Simon, 1904 β Sudan, Congo
O. dumonti (Vinson, 1863) β Ethiopia, Zimbabwe, South Africa, Seychelles, Madagascar, RΓ©union, Mauritius
O. elegans L. Koch, 1878 β Australia (New South Wales, Northern Territory?, Queensland?, Victoria?)
O. elifaz Levy, 2007 β Israel, Jordan
O. elongatus Biswas, Kundu, Kundu, Saha & Raychaudhuri, 1996 β India
O. extensipes (Butler, 1876) β Mauritius (Rodriguez)
O. fabae Dhali, Saha & Raychaudhuri, 2015 β India
O. falcatus Zhang, Yang & Zhu, 2005 β China
O. falconeri Lessert, 1915 β Tanzania, Namibia, Botswana, Zimbabwe, South Africa
O. fallax Denis, 1955 β Niger
O. felinus Brady, 1964 β USA, Mexico
O. flavipalpis (Lucas, 1858) β Ethiopia, Somalia, Cameroon, DR Congo, Guinea, Tanzania, Zimbabwe, South Africa, Eswatini
O. flavus Banks, 1898 β Mexico to Costa Rica
O. fluminensis Mello-LeitΓ£o, 1929 β Brazil
O. forcipiformis Xie & Kim, 1996 β China
O. fujianicus Song & Zhu, 1993 β China, Taiwan
O. galla Caporiacco, 1941 β Ethiopia, Namibia, South Africa
O. gaofengensis Zhang, Zhang & Kim, 2005 β China
O. gemellus Thorell, 1891 β India (Nicobar Is.), Malaysia
O. globifer Simon, 1876 β Mediterranean to Central Asia
O. godeffroyi Baehr, Harms, DupΓ©rrΓ© & Raven, 2017 β Australia (Queensland)
O. gorumaraensis Sen, Saha & Raychaudhuri, 2011 β India
O. gossypae Mushtaq & Qadar, 1999 β Pakistan
O. gracilipes (White, 1849) β Australia (New South Wales, Queensland), New Zealand
O. gratus L. Koch, 1878 β Australia (Queensland, ?Victoria, ?Northern Territory,?Western Australia)
O. gujaratensis Gajbe, 1999 β India
O. gurjanti Sadana & Gupta, 1995 β India
O. gyirongensis Hu & Li, 1987 β China
O. haryanaensis Goyal & Malik, 2020 β India
O. hasta Lo, Cheng & Lin, 2021 β Taiwan
O. hastifer Simon, 1909 β Guinea-Bissau
O. hemorrhous Mello-LeitΓ£o, 1929 β Brazil
O. heterophthalmus (Latreille, 1804) (type) β Europe, North Africa to Middle East, Turkey, Caucasus, Kazakhstan, China
O. hilaris Thorell, 1881 β Timor
O. hindostanicus Pocock, 1901 β Pakistan, India, Sri Lanka
O. hoggi Lessert, 1915 β Tanzania, Angola, Zimbabwe, South Africa
O. holmbergi Soares & Camargo, 1948 β Brazil
O. hotingchiehi Schenkel, 1963 β China, India
O. hupingensis Bao & Yin, 2002 β China
O. idoneus Simon, 1909 β Guinea-Bissau
O. imbellis Thorell, 1890 β Malaysia
O. incantatus Santos, 2017 β Ecuador (Galapagos)
O. incertus Mello-LeitΓ£o, 1929 β Peru, Brazil
O. indiculus Thorell, 1897 β Myanmar
O. indicus (Walckenaer, 1805) β India
O. inversus Mello-LeitΓ£o, 1949 β Brazil
O. iranicus Esyunin, Rad & Kamoneh, 2011 β Iran
O. isangipinus Barrion, Barrion-Dupo & Heong, 2013 β China (Hainan)
O. jabalpurensis Gajbe & Gajbe, 1999 β India
O. jacksoni Lessert, 1915 β Tanzania, Malawi, Botswana, Zimbabwe, South Africa
O. javanus Thorell, 1887 β India, Bangladesh, Indonesia (Java), Philippines, China
O. jianfeng Song, 1991 β China
O. jubilans O. Pickard-Cambridge, 1885 β Karakorum, Pakistan, China
O. kamalae Gajbe, 1999 β India
O. ketani Gajbe & Gajbe, 1999 β India
O. keyserlingi Thorell, 1881 β New Guinea
O. kobrooricus Strand, 1911 β Indonesia (Aru Is.)
O. kochi Thorell, 1897 β Myanmar
O. kohaensis Bodkhe & Vankhede, 2012 β India
O. koreanus Paik, 1969 β Korea, Japan
O. kovacsi Caporiacco, 1947 β Ethiopia
O. kraepelinorum BΓΆsenberg, 1895 β Canary Is.
O. kumarae Biswas & Roy, 2005 β India
O. kusumae Gajbe, 1999 β India
O. lagarus Thorell, 1895 β Myanmar
O. lepidus (Blackwall, 1864) β India
O. licenti Schenkel, 1953 β Russia (Middle Siberia to Far East), China, Korea, Japan
O. linearis Sen, Dhali, Saha & Raychaudhuri, 2015 β India
O. lineatipes (C. L. Koch, 1847) β China to Philippines, Indonesia (Sumatra, Java)
O. lineatus Latreille, 1806 β Europe, Turkey, Caucasus, Russia (Europe to Central Asia), Middle East, Central Asia
O. l. occidentalis KulczyΕski, 1907 β Italy
O. longespina Caporiacco, 1940 β Ethiopia
O. longetibiatus Caporiacco, 1941 β Ethiopia
O. longinquus Thorell, 1891 β Myanmar, India (Nicobar Is.)
O. longipalpis Lessert, 1946 β Congo
O. longispinosus Lawrence, 1938 β Tanzania, Botswana, South Africa
O. longispinus Saha & Raychaudhuri, 2003 β India
O. ludhianaensis Sadana & Goel, 1995 β India
O. lynx Brady, 1964 β USA
O. machuensis Mukhtar, 2013 β Pakistan
O. macilentus L. Koch, 1878 β Japan, China to Australia
O. macroscelides Mello-LeitΓ£o, 1929 β Brazil, Paraguay
O. maripae Caporiacco, 1954 β French Guiana
O. masculinus Caporiacco, 1954 β French Guiana
O. mathias Strand, 1913 β Uganda
O. matiensis Barrion & Litsinger, 1995 β Philippines
O. mediterraneus Levy, 1999 β Portugal, Spain, Greece, Cyprus, Israel, Iran
O. megalops Caporiacco, 1947 β East Africa
O. minutus Biswas, Kundu, Kundu, Saha & Raychaudhuri, 1996 β India
O. mirabilis Zhang, Yang & Zhu, 2005 β China
O. modestus Simon, 1876 β Congo
O. molarius L. Koch, 1878 β Australia (Queensland, South Australia?, New South Wales?)
O. mundulus L. Koch, 1878 β Australia (New South Wales, Tasmania?)
O. naliniae Gajbe, 1999 β India
O. nanulineatus Levy, 1999 β Israel
O. nenilini Esyunin & Tuneva, 2009 β Uzbekistan, China
O. nigripalpis KulczyΕski, 1891 β Mediterranean
O. nilgiricus Sherriffs, 1955 β India, Sri Lanka
O. ningxiaensis Tang & Song, 1990 β China
O. niveosigillatus Mello-LeitΓ£o, 1945 β Argentina
O. obscurifrons Simon, 1909 β SΓ£o TomΓ© and PrΓncipe
O. occidens Brady, 1964 β USA, Mexico
O. ocelot Brady, 1975 β Mexico
O. ornatus (Blackwall, 1868) β Tropical Africa
O. oryzae Mushtaq & Qadar, 1999 β Pakistan
O. pallidecoloratus Strand, 1906 β Ethiopia, Congo, Southern Africa, Madagascar
O. p. nigricans Caporiacco, 1947 β East Africa
O. pallidus (C. L. Koch, 1838) β Caribbean
O. palliventer Strand, 1911 β Indonesia (Aru Is.)
O. pandae Tikader, 1969 β India, Bangladesh
O. pankaji Gajbe & Gajbe, 2000 β India
O. panther Brady, 1975 β USA, Mexico
O. papuanus Thorell, 1881 β New Guinea, Solomon Is., Australia (Queensland)
O. pardus Brady, 1964 β USA
O. patalongensis Simon, 1901 β Malaysia
O. pawani Gajbe, 1992 β India
O. pennatus Schenkel, 1936 β China
O. personatus Simon, 1896 β South Africa
O. pigmentatus Simon, 1890 β Israel, Yemen
O. pingasus Barrion & Litsinger, 1995 β Philippines
O. positivus Roewer, 1961 β Senegal
O. praedictus O. Pickard-Cambridge, 1885 β China (Yarkand)
O. providens Thorell, 1890 β Indonesia (Sumatra)
O. pugilator Mello-LeitΓ£o, 1929 β Brazil
O. pulchellus (Lucas, 1858) β Congo
O. punctatus L. Koch, 1878 β Australia (Queensland)
O. purpurissatus Simon, 1909 β Congo
O. quadridentatus Thorell, 1895 β Myanmar
O. quadrifasciatus L. Koch, 1878 β Australia (Queensland)
O. rajai Saha & Raychaudhuri, 2003 β India
O. ramosus (Martini & Goeze, 1778) β Europe, Turkey, Caucasus, Russia (Europe to South Siberia), Kazakhstan, Korea
O. ratnae Tikader, 1970 β Pakistan, India, Bangladesh
O. raviensis Dyal, 1935 β Pakistan
O. reddyi Majumder, 2004 β India
O. reimoseri Caporiacco, 1947 β East Africa
O. rejectus O. Pickard-Cambridge, 1885 β China (Yarkand)
O. rouxi Strand, 1911 β Indonesia (Aru Is.)
O. royi Roewer, 1961 β Senegal
O. rubicundus L. Koch, 1878 β Australia (New South Wales)
O. rubriventer Caporiacco, 1941 β East Africa
O. r. paecilus Caporiacco, 1941 β Ethiopia
O. rubrosignatus Keyserling, 1891 β Brazil
O. rufisternis Pocock, 1901 β Pakistan, India, Sri Lanka
O. rufovittatus Simon, 1886 β Senegal
O. rukminiae Gajbe, 1999 β India
O. russoi Caporiacco, 1940 β Somalia, South Africa, Eswatini
O. russulus Thorell, 1895 β Myanmar
O. rutilius Simon, 1890 β Yemen (mainland, Socotra)
O. ruwenzoricus Strand, 1913 β Uganda
O. ryvesi Pocock, 1901 β India, Pakistan
O. saganus BΓΆsenberg & Strand, 1906 β Japan
O. sakuntalae Tikader, 1970 β India
O. salticus Hentz, 1845 β USA to northern Argentina and Chile
O. saradae Biswas & Roy, 2005 β India
O. sataricus Kulkarni & Deshpande, 2012 β India
O. scalaris Hentz, 1845 β North America
O. schenkeli Lessert, 1927 β DR Congo, Uganda, Botswana, Zimbabwe, South Africa
O. sectus Mello-LeitΓ£o, 1929 β Brazil
O. septumatus Mukhtar, 2013 β Pakistan
O. sertatoides Xie & Kim, 1996 β China
O. sertatus L. Koch, 1878 β India, China, Taiwan, Korea, Japan
O. setipes Thorell, 1890 β Borneo
O. sexmaculatus Mello-LeitΓ£o, 1929 β Peru, Brazil
O. shakilae Mukhtar, 2013 β Pakistan
O. shorkotensis Mukhtar, 2013 β Pakistan
O. shweta Tikader, 1970 β Pakistan, India, China
O. sinaiticus Levy, 1999 β Egypt
O. singularis Lessert, 1927 β DR Congo, Namibia, Zimbabwe, South Africa
O. sitae Tikader, 1970 β India (mainland, Andaman Is.), Bangladesh
O. sjostedti Lessert, 1915 β Ethiopia, Tanzania, South Africa
O. sobrinus O. Pickard-Cambridge, 1872 β Libya, Cyprus, Israel, United Arab Emirates, Iran
O. squamosus Simon, 1886 β Senegal
O. stephanurus Mello-LeitΓ£o, 1929 β Brazil
O. strandi Caporiacco, 1939 β Ethiopia
O. striagatus Song, 1991 β China, Taiwan
O. striatus (Doleschall, 1857) β Myanmar to New Guinea
O. subabebae Caporiacco, 1941 β Ethiopia, South Africa
O. subimali Biswas, Kundu, Kundu, Saha & Raychaudhuri, 1996 β India
O. submirabilis Tang & Li, 2012 β China
O. summus Brady, 1975 β Costa Rica, Panama
O. sunandae Tikader, 1970 β India, Bangladesh
O. sushilae Tikader, 1965 β India, China, Taiwan
O. taeniatulus Roewer, 1955 β Brazil
O. taeniatus Thorell, 1877 β Indonesia (Sumatra, Java, Sulawesi)
O. taiwanensis Lo, Cheng & Lin, 2021 β Taiwan
O. takobius Andreeva & Tystshenko, 1969 β Central Asia to China
O. tapponiformis Strand, 1911 β Indonesia (Moluccas), New Guinea
O. tenellus Song, 1991 β China
O. tibialis F. O. Pickard-Cambridge, 1902 β Mexico, Guatemala, El Salvador, Nicaragua
O. tiengianensis Barrion & Litsinger, 1995 β Vietnam
O. tikaderi Biswas & Majumder, 1995 β India
O. timorensis Schenkel, 1944 β Timor
O. timorianus (Walckenaer, 1837) β Timor
O. toschii Caporiacco, 1949 β Kenya
O. travancoricola Strand, 1912 β India
O. tridens Brady, 1964 β USA, Mexico
O. tuberculatus Lessert, 1915 β Tanzania, South Africa, Eswatini
O. t. mombensis Lessert, 1915 β East Africa
O. ubensis Strand, 1906 β Ethiopia
O. uncinatus Lessert, 1915 β Tanzania, South Africa
O. vanderysti Lessert, 1946 β DR Congo, South Africa
O. variabilis L. Koch, 1878 β Australia (Queensland, Western Australia?, South Australia?, New South Wales?)
O. versicolor Thorell, 1887 β Myanmar
O. vogelsangeri Lessert, 1946 β DR Congo, South Africa
O. wokamanus Strand, 1911 β Indonesia (Aru Is.)
O. wroughtoni Pocock, 1901 β Pakistan, India
O. xinjiangensis Hu & Wu, 1989 β Kazakhstan, China
O. zavattarii Caporiacco, 1939 β Ethiopia
β O. defectus Wunderlich, 1988
β O. succini Petrunkevitch, 1958
Peucetia
Peucetia Thorell, 1869
P. akwadaensis Patel, 1978 β India, China
P. albescens L. Koch, 1878 β Australia (Queensland)
P. ananthakrishnani Murugesan, Mathew, Sudhikumar, Sunish, Biju & Sebastian, 2006 β India
P. arabica Simon, 1882 β Greece, North, East Africa, Middle East
P. ashae Gajbe & Gajbe, 1999 β India
P. betlaensis Saha & Raychaudhuri, 2007 β India
P. biharensis Gajbe, 1999 β India
P. casseli Simon, 1900 β West, Central Africa
P. cayapa Santos & Brescovit, 2003 β Ecuador, Peru
P. choprai Tikader, 1965 β India
P. crucifera Lawrence, 1927 β Namibia, Botswana, Zimbabwe, South Africa
P. elegans (Blackwall, 1864) β India
P. flava Keyserling, 1877 β Venezuela to Argentina
P. formosensis Kishida, 1930 β Taiwan
P. gauntleta Saha & Raychaudhuri, 2004 β India
P. gerhardi van Niekerk & Dippenaar-Schoeman, 1994 β West, Central, East Africa
P. graminea Pocock, 1900 β India
P. harishankarensis Biswas, 1975 β India
P. jabalpurensis Gajbe & Gajbe, 1999 β India
P. ketani Gajbe, 1992 β India
P. latikae Tikader, 1970 β India, China
P. lesserti van Niekerk & Dippenaar-Schoeman, 1994 β Niger, Kenya
P. longipalpis F. O. Pickard-Cambridge, 1902 β USA to Venezuela
P. lucasi (Vinson, 1863) β Botswana, South Africa, Comoros, Mayotte, Madagascar
P. macroglossa Mello-LeitΓ£o, 1929 β Colombia, Brazil, Guyana
P. maculifera Pocock, 1900 β South Africa, Lesotho
P. madagascariensis (Vinson, 1863) β Comoros, Mayotte, Madagascar
P. madalenae van Niekerk & Dippenaar-Schoeman, 1994 β Mozambique, South Africa
P. margaritata Hogg, 1914 β Australia (Montebello Is.)
P. myanmarensis Barrion & Litsinger, 1995 β Myanmar
P. nicolae van Niekerk & Dippenaar-Schoeman, 1994 β South Africa
P. pawani Gajbe, 1999 β India
P. phantasma Ahmed, Satam, Khalap & Mohan, 2015 β India
P. procera Thorell, 1887 β Myanmar
P. pulchra (Blackwall, 1865) β Central, Eastern, Southern Africa, Seychelles
P. punjabensis Gajbe, 1999 β India
P. rajani Gajbe, 1999 β India
P. ranganathani Biswas & Roy, 2005 β India
P. rubrolineata Keyserling, 1877 β Panama to Argentina
P. striata Karsch, 1878 β Yemen to South Africa, Comoros. Introduced to St. Helena
P. transvaalica Simon, 1896 β Central, Southern Africa
P. virescens (O. Pickard-Cambridge, 1872) β Turkey, Middle East
P. viridana (Stoliczka, 1869) β Pakistan, India, Sri Lanka, Bangladesh, Myanmar
P. viridans (Hentz, 1832) β North & Central America, Caribbean, Venezuela
P. viridis (Blackwall, 1858) (type) β Spain, Greece, Africa, Middle East. Introduced to Caribbean Is.
P. viveki Gajbe, 1999 β India
P. yogeshi Gajbe, 1999 β India
β Planoxyopes
β Planoxyopes Petrunkevitch, 1963
β P. eximius Petrunkevitch, 1963
Pseudohostus
Pseudohostus Rainbow, 1915
P. squamosus Rainbow, 1915 (type) β Australia (South Australia)
Schaenicoscelis
Schaenicoscelis Simon, 1898
S. concolor Simon, 1898 β Brazil
S. elegans Simon, 1898 (type) β Brazil
S. exilis Mello-LeitΓ£o, 1930 β Brazil
S. guianensis Caporiacco, 1947 β Guyana
S. leucochlora Mello-LeitΓ£o, 1929 β Brazil
S. luteola Mello-LeitΓ£o, 1929 β Brazil
S. viridis Mello-LeitΓ£o, 1927 β Brazil
Tapinillus
Tapinillus Simon, 1898
T. longipes (Taczanowski, 1872) (type) β Costa Rica, Panama, Colombia, Venezuela, French Guiana, Trinidad & Tobago, Peru, Brazil, Argentina
T. purpuratus Mello-LeitΓ£o, 1940 β Brazil
T. roseisterni Mello-LeitΓ£o, 1930 β Brazil
Tapponia
Tapponia Simon, 1885
T. micans Simon, 1885 (type) β Malaysia, Indonesia (Sumatra, Borneo)
References
Oxyopidae
|
```java
package swati4star.createpdf.util;
import static swati4star.createpdf.util.Constants.RECENT_PREF;
import android.content.SharedPreferences;
import org.json.JSONException;
import org.json.JSONObject;
import java.util.HashMap;
import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.Map;
public class RecentUtil {
public static RecentUtil getInstance() {
return RecentUtil.SingletonHolder.INSTANCE;
}
/**
* Returns the LinkedHashMap of Recently used feature from the shared preference.
*
* @param preferences - preferences object.
* @return LinkedHashMap consisting of string as a key holding the feature view Id when it was
* clicked and map of drawable Id and title string res Id.
*/
public LinkedHashMap<String, Map<String, String>> getList(SharedPreferences preferences)
throws JSONException {
//creating the empty list.
LinkedHashMap<String, Map<String, String>> recentList = new LinkedHashMap<>();
//check if recent exists.
if (preferences.contains(RECENT_PREF)) {
JSONObject jsonObject = new JSONObject(preferences
.getString(RECENT_PREF, ""));
Iterator<String> keys = jsonObject.keys();
while (keys.hasNext()) {
String keyVal = keys.next();
JSONObject item = jsonObject.getJSONObject(keyVal);
//item object
Map<String, String> itemMap = new HashMap<>();
String key = item.keys().next();
itemMap.put(key, item.getString(key));
recentList.put(keyVal, itemMap);
}
}
return recentList;
}
/**
* Adds the feature that was clicked to the recent bucket and updates the shared preference.
*
* @param preferences - shared preference object.
* @param resId - the view Id basically the feature that was clicked.
* @param itemClicked - Map of Drawable Id and title string resId received from HomePageItem.
*/
public void addFeatureInRecentList(SharedPreferences preferences,
int resId, Map<String, String> itemClicked) throws JSONException {
LinkedHashMap<String, Map<String, String>> recentList = getList(preferences);
//remove the first item from the recent list.
if (recentList.size() == 3) {
//now if the list contains the particular key
if (recentList.remove(String.valueOf(resId)) == null) {
//bucket is full.
recentList.remove(recentList.keySet().iterator().next()); //removes the first.
}
}
recentList.put(String.valueOf(resId), itemClicked);
//update the preferences.
preferences.edit().putString(RECENT_PREF, new JSONObject(recentList).toString()).apply();
}
private static class SingletonHolder {
static final RecentUtil INSTANCE = new RecentUtil();
}
}
```
|
```xml
<?xml version="1.0" encoding="utf-8"?>
<vector android:height="144dp" android:viewportHeight="144" android:viewportWidth="114.6" android:width="115dp"
xmlns:android="path_to_url">
<path android:fillColor="#0A323D" android:pathData="M32.7,140.8l-1.4,0.8l-1.4,0.8l-1.4,0.8l-1.4,0.8l-1.7,-1l-1.7,-1l-1.7,-1l-1.7,-1l-1.7,-1l-1.7,-1l-1.7,-1l1.4,-0.8l1.7,1l1.7,1l1.4,-0.8l1.4,-0.8l1.4,-0.8l1.4,-0.8l1.7,1l1.7,1l1.7,1l1.7,1l1.7,1L32.7,140.8zM29.6,140.6l1.4,-0.8l-1.7,-1l-1.7,-1l-1.7,-1l-1.4,0.8l-1.4,0.8l-1.4,0.8l1.7,1l1.7,1l1.7,1l1.4,-0.8L29.6,140.6z"/>
<path android:fillColor="#0A323D" android:pathData="M35.5,139.2l-1.7,-1l-1.7,-1l-1.7,-1l-1.7,-1l-1.7,-1l1.4,-0.8l1.4,-0.8l1.4,-0.8l1.4,-0.8l1.7,1l-1.4,0.8l-1.4,0.8l-1.4,0.8l1.7,1l1.7,1l1.7,1l1.7,1L35.5,139.2z"/>
<path android:fillColor="#0A323D" android:pathData="M47.9,131.9l-1.4,0.8l-1.4,0.8l-1.4,0.8l-1.4,0.8l-1.7,-1l-1.7,-1l-1.7,-1l-1.7,-1l-1.7,-1l1.4,-0.8l1.4,-0.8l1.4,-0.8l1.4,-0.8l1.4,-0.8l1.7,1l1.7,1l1.7,1l1.7,1l1.7,1L47.9,131.9zM44.9,131.7l1.4,-0.8l-1.7,-1l-1.7,-1l-1.7,-1l-1.4,0.8l-1.4,0.8l-1.4,0.8l1.7,1l1.7,1l1.7,1l1.4,-0.8L44.9,131.7z"/>
<path android:fillColor="#0A323D" android:pathData="M56.3,127.1l-1.4,0.8l-1.4,0.8l-1.4,0.8l-1.4,0.8l-1.7,-1l-1.7,-1l-1.7,-1l-1.7,-1l-1.7,-1l1.4,-0.8l1.7,1l1.7,1l1.7,1l1.7,1l1.4,-0.8l-1.7,-1l-1.7,-1l-1.7,-1l1.4,-0.8l1.7,1l1.7,1l1.7,1l1.4,-0.8l-1.7,-1l-1.7,-1l-1.7,-1l-1.7,-1l1.4,-0.8l1.7,1l1.7,1l1.7,1l1.7,1l1.7,1L56.3,127.1z"/>
<path android:fillColor="#0A323D" android:pathData="M64.6,122.3l-1.4,0.8l-1.4,0.8l-1.4,0.8l-1.4,0.8l-1.7,-1l1.4,-0.8l1.4,-0.8l1.4,-0.8l1.4,-0.8l-1.7,-1l-1.4,0.8l-1.4,0.8l-1.4,0.8l-1.4,0.8l-1.7,-1l-1.7,-1l-1.7,-1l1.4,-0.8l1.4,-0.8l1.4,-0.8l1.4,-0.8l1.4,-0.8l1.7,1l-1.4,0.8l-1.4,0.8l-1.4,0.8l-1.4,0.8l1.7,1l1.4,-0.8l1.4,-0.8l1.4,-0.8l1.4,-0.8l1.7,1l1.7,1l1.7,1L64.6,122.3z"/>
<path android:fillColor="#0A323D" android:pathData="M71.3,116.4l1.4,-0.8l1.7,1l-1.4,0.8l-1.4,0.8l-1.4,0.8l-1.4,0.8l-1.4,0.8l-1.7,-1l-1.7,-1l-1.7,-1l-1.7,-1l-1.7,-1l1.4,-0.8l1.4,-0.8l1.4,-0.8l1.4,-0.8l1.4,-0.8l1.7,1l1.7,1l1.7,1l-1.4,0.8l-1.4,0.8l-1.4,0.8l-1.4,0.8l1.7,1l1.4,-0.8l1.4,-0.8L71.3,116.4zM66.5,115.2l1.4,-0.8l-1.7,-1l-1.4,0.8l-1.4,0.8l-1.4,0.8l1.7,1l1.4,-0.8L66.5,115.2z"/>
<path android:fillColor="#0A323D" android:pathData="M75.7,115.8l-1.7,-1l-1.7,-1l-1.7,-1l-1.7,-1l-1.7,-1l1.4,-0.8l1.4,-0.8l1.4,-0.8l1.4,-0.8l1.7,1l-1.4,0.8l-1.4,0.8l-1.4,0.8l1.7,1l1.7,1l1.7,1l1.7,1L75.7,115.8z"/>
<path android:fillColor="#0A323D" android:pathData="M88.2,108.6l-1.4,0.8l-1.4,0.8l-1.4,0.8l-1.4,0.8l-1.7,-1l1.4,-0.8l1.4,-0.8l1.4,-0.8l1.4,-0.8l-1.7,-1l-1.4,0.8l-1.4,0.8l-1.4,0.8l-1.4,0.8l-1.7,-1l-1.7,-1l-1.7,-1l1.4,-0.8l1.4,-0.8l1.4,-0.8l1.4,-0.8l1.4,-0.8l1.7,1l-1.4,0.8l-1.4,0.8l-1.4,0.8l-1.4,0.8l1.7,1l1.4,-0.8l1.4,-0.8l1.4,-0.8l1.4,-0.8l1.7,1l1.7,1l1.7,1L88.2,108.6z"/>
<path android:fillColor="#0A323D" android:pathData="M99.9,105.8l-1.4,0.8l-1.4,0.8l-1.4,0.8l-1.4,0.8l-1.7,-1l1.4,-0.8l1.4,-0.8l1.4,-0.8l1.4,-0.8l-1.7,-1l-1.4,0.8l-1.4,0.8l-1.4,0.8l-1.4,0.8l-1.7,-1l-1.7,-1l-1.7,-1l-1.7,-1l-1.7,-1l1.4,-0.8l1.7,1l1.7,1l1.7,1l1.7,1l1.4,-0.8l1.4,-0.8l1.4,-0.8l-1.7,-1l-1.7,-1l-1.7,-1l-1.7,-1l1.4,-0.8l1.7,1l1.7,1l1.7,1l1.7,1l1.7,1l1.7,1l1.7,1L99.9,105.8z"/>
<path android:fillColor="#0A323D" android:pathData="M104.9,98.9l-1.7,-1l-1.7,-1l-1.7,-1l-1.7,-1l-1.4,0.8l-1.4,0.8l-1.4,0.8l1.7,1l1.7,1l1.7,1l1.7,1l-1.4,0.8l-1.7,-1l-1.7,-1l-1.7,-1l-1.7,-1l-1.7,-1l1.4,-0.8l1.4,-0.8l1.4,-0.8l1.4,-0.8l1.4,-0.8l1.7,1l1.7,1l1.7,1l1.7,1l1.7,1L104.9,98.9z"/>
<path android:fillColor="#0A323D" android:pathData="M108.2,91.1l-1.7,-1l-1.4,0.8l-1.4,0.8l-1.4,0.8l1.7,1l1.7,1l1.7,1l1.4,-0.8l1.4,-0.8l1.4,-0.8l-1.7,-1l1.4,-0.8l1.7,1l1.7,1l-1.4,0.8l-1.4,0.8l-1.4,0.8l-1.4,0.8l-1.4,0.8l-1.7,-1l-1.7,-1l-1.7,-1l-1.7,-1l-1.7,-1l1.4,-0.8l1.4,-0.8l1.4,-0.8l1.4,-0.8l1.4,-0.8l1.7,1l1.7,1L108.2,91.1z"/>
<path android:fillColor="#0A323D" android:pathData="M79.7,38.3l-26.4,-15.3l-0.1,-15.3l26.4,15.3z"/>
<path android:fillColor="#0A323D" android:pathData="M79.9,99.5l-26.5,-15.4l0,-15.3l26.4,15.4z"/>
<path android:fillColor="#0A323D" android:pathData="M66.5,91.9l-26.4,-15.4l-0.1,-15.3l26.5,15.4z"/>
<path android:fillColor="#0A323D" android:pathData="M66.4,61.3l-26.4,-15.4l0,-15.3l26.4,15.4z"/>
<path android:fillColor="#0A323D" android:pathData="M53.2,84.3l-26.5,-15.4l0,-15.3l26.4,15.4z"/>
<path android:fillColor="#0A323D" android:pathData="M39.9,107.2l-26.4,-15.3l-0.1,-15.3l26.5,15.3z"/>
<path android:fillColor="#0A323D" android:pathData="M39.8,76.7l-26.4,-15.4l0,-15.3l26.4,15.4z"/>
<path android:fillColor="#0A323D" android:pathData="M26.5,69.1l-26.5,-15.4l0,-15.3l26.4,15.4z"/>
<path android:fillColor="#0A323D" android:pathData="M26.7,130.2l-26.5,-15.4l0,-15.2l26.4,15.3z"/>
<path android:fillColor="#267D91" android:pathData="M79.6,23l-26.4,-15.3l13.3,-7.7l26.5,15.4z"/>
<path android:fillColor="#267D91" android:pathData="M79.8,84.2l-26.4,-15.4l13.3,-7.7l26.4,15.4z"/>
<path android:fillColor="#267D91" android:pathData="M66.5,76.6l-26.5,-15.4l13.3,-7.7l26.5,15.4z"/>
<path android:fillColor="#267D91" android:pathData="M66.4,46l-26.4,-15.4l13.3,-7.6l26.4,15.3z"/>
<path android:fillColor="#267D91" android:pathData="M53.1,69l-26.4,-15.4l13.3,-7.7l26.4,15.4z"/>
<path android:fillColor="#267D91" android:pathData="M39.9,91.9l-26.5,-15.3l13.3,-7.7l26.5,15.4z"/>
<path android:fillColor="#267D91" android:pathData="M39.8,61.4l-26.4,-15.4l13.3,-7.7l26.4,15.4z"/>
<path android:fillColor="#267D91" android:pathData="M26.4,53.8l-26.4,-15.4l13.3,-7.7l26.4,15.4z"/>
<path android:fillColor="#267D91" android:pathData="M26.6,114.9l-26.4,-15.3l13.3,-7.7l26.4,15.3z"/>
<path android:fillColor="#71D2E2" android:pathData="M93,15.4l0,15.2l-13.3,7.7l-0.1,-15.3z"/>
<path android:fillColor="#71D2E2" android:pathData="M93.1,76.5l0.1,15.3l-13.3,7.7l-0.1,-15.3z"/>
<path android:fillColor="#71D2E2" android:pathData="M79.8,68.9l0,15.3l-13.3,7.7l0,-15.3z"/>
<path android:fillColor="#71D2E2" android:pathData="M79.7,38.3l0,15.3l-13.3,7.7l0,-15.3z"/>
<path android:fillColor="#71D2E2" android:pathData="M66.4,61.3l0.1,15.3l-13.3,7.7l-0.1,-15.3z"/>
<path android:fillColor="#71D2E2" android:pathData="M53.2,84.3l0,15.3l-13.3,7.6l0,-15.3z"/>
<path android:fillColor="#71D2E2" android:pathData="M53.1,53.7l0,15.3l-13.3,7.7l0,-15.3z"/>
<path android:fillColor="#71D2E2" android:pathData="M39.7,46.1l0.1,15.3l-13.3,7.7l-0.1,-15.3z"/>
<path android:fillColor="#71D2E2" android:pathData="M39.9,107.2l0.1,15.3l-13.3,7.7l-0.1,-15.3z"/>
</vector>
```
|
Nester House, also known as the Family Grocerie, Union Hotel, and Riverplace, is a historic hotel located at Troy, Perry County, Indiana. It was built about 1863, and is a -story, sandstone block building, with a late 1870s or mid 1880s rear addition. It features a two tiered, full facade porch. Also on the property is a contributing one story, rectangular brick building that is believed to have been a bathhouse for the hotel. The building housed a hotel that served salesmen and other river travelers of late-19th and early-20th century. It ceased to be used as a hotel in the 1930s.
It was listed on the National Register of Historic Places in 1990.
References
Hotel buildings on the National Register of Historic Places in Indiana
Hotel buildings completed in 1863
Buildings and structures in Perry County, Indiana
National Register of Historic Places in Perry County, Indiana
|
Michael McCue (born March 19, 1993) is a Canadian professional squash player. As of June 2018, he was ranked number 93 in the world. He won his first world tour title at the 2018 Mount Royal University Open PSA5 tournament.
References
1993 births
Living people
Canadian male squash players
Sportspeople from Greater Sudbury
21st-century Canadian people
|
Reginald Stuart Lindsell (18 July 1892, Biggleswade, Bedfordshire β 9 July 1969, London) was a British actor, often seen in upper-class roles. He was sometimes credited as R. Stuart Lindsell.
He also served as an officer in the Middlesex Regiment of the British Army, having been commissioned in September 1911 after attending the Royal Military College, Sandhurst.
Filmography
References
External links
1892 births
1969 deaths
English male stage actors
English male film actors
People from Biggleswade
20th-century English male actors
Middlesex Regiment officers
20th-century British Army personnel
Military personnel from Bedfordshire
Graduates of the Royal Military College, Sandhurst
|
```python
Built-in `list` methods
Special attributes of objects and classes
`bytearray` objects
Prioritize your `queue`
Implementing **weak** references
```
|
Truckfighters is a documentary directed by Joerg Steineck about the Swedish rock band named Truckfighters.
It incorporates various interviews with the band, showing their members working on day-to-day jobs in their home town Γrebro, recording the album "Mania" in their studio and following them on tour through Europe.
The film, which is documentative in style of narration, signifies itself a "fuzzomentary film". It provides various surreal graphical sequences of fictional and non fictional content, which serve as connective and illustrative elements.
A certain graphical style leads as stylistic central theme through the entire film.
Truckfighters additionally features short guest appearances of well known names like Josh Homme (Queens Of The Stone Age, Kyuss),
Alfredo Hernandez (Kyuss, Yawning Man), Nick Oliveri (Queens of the Stone Age, Mondo Generator).
Furthermore it provides guest appearances by singer/songwriter Chris Maher (anchorman)
and first hour Kyuss member Chris Cockrell (annotator/off-voice).
Synopsis
The documentary generally portrays the band by uncommon insight into their double-tracked lifestyle in an ironical and satirical way,
not to discredit them but to reveal the common issues of a rock band and the often-stereotyped musical genre they are attributed to (stoner rock).
Some scenes are visibly based on the artwork of the Truckfighters Mania record,
which was also designed by the filmmakers Joerg Steineck and Christian Macijewski.
The film has a total runtime of 83 minutes and is subdivided into 9 chapters:
Common
How To Get Things Done
Road
Home
Issues
The Body Burden
Family Fights
Big
The Drummer Dilemma
Featured bands
Truckfighters, Queens of the Stone Age, Fu Manchu, Kyuss, Valient Thorr, Witchcraft, Graveyard,
Let Me Out, Red Stoner Sun, The Freeks, Nebula
References
Review at Stonerrock.eu
Interview with Joerg Steineck (Desert Rock Scotland)
Article in German music magazine Visions
External links
Joerg Steineck's website
German documentary films
Documentary films about musical groups
2011 films
2011 documentary films
2010s Swedish-language films
2010s English-language films
2010s German films
2011 multilingual films
German multilingual films
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.