text
stringlengths 1
22.8M
|
|---|
```shell
What is a checksum?
Limiting log output by time
Use `short` status to make output more compact
Ignore files in git
Dates in git
```
|
```c
#include "util.h"
#include "slp.h"
A_stm prog(void) {
return
A_CompoundStm(A_AssignStm("a",
A_OpExp(A_NumExp(5), A_plus, A_NumExp(3))),
A_CompoundStm(A_AssignStm("b",
A_EseqExp(A_PrintStm(A_PairExpList(A_IdExp("a"),
A_LastExpList(A_OpExp(A_IdExp("a"), A_minus,
A_NumExp(1))))),
A_OpExp(A_NumExp(10), A_times, A_IdExp("a")))),
A_PrintStm(A_LastExpList(A_IdExp("b")))));
}
```
|
```javascript
(window.webpackJsonp=window.webpackJsonp||[]).push([[108],{890:function(e,n){e.exports=function(e){var n={keyword:"if then not for in while do return else elseif break continue switch and or unless when class extends super local import export from using",literal:"true false nil",built_in:"_G _VERSION assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall coroutine debug io math os package string table"},s="[A-Za-z$_][0-9A-Za-z$_]*",a={className:"subst",begin:/#\{/,end:/}/,keywords:n},i=[e.inherit(e.C_NUMBER_MODE,{starts:{end:"(\\s*/)?",relevance:0}}),{className:"string",variants:[{begin:/'/,end:/'/,contains:[e.BACKSLASH_ESCAPE]},{begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,a]}]},{className:"built_in",begin:"@__"+e.IDENT_RE},{begin:"@"+e.IDENT_RE},{begin:e.IDENT_RE+"\\\\"+e.IDENT_RE}];a.contains=i;var t=e.inherit(e.TITLE_MODE,{begin:s}),r={className:"params",begin:"\\([^\\(]",returnBegin:!0,contains:[{begin:/\(/,end:/\)/,keywords:n,contains:["self"].concat(i)}]};return{aliases:["moon"],keywords:n,illegal:/\/\*/,contains:i.concat([e.COMMENT("--","$"),{className:"function",begin:"^\\s*"+s+"\\s*=\\s*(\\(.*\\))?\\s*\\B[-=]>",end:"[-=]>",returnBegin:!0,contains:[t,r]},{begin:/[\(,:=]\s*/,relevance:0,contains:[{className:"function",begin:"(\\(.*\\))?\\s*\\B[-=]>",end:"[-=]>",returnBegin:!0,contains:[r]}]},{className:"class",beginKeywords:"class",end:"$",illegal:/[:="\[\]]/,contains:[{beginKeywords:"extends",endsWithParent:!0,illegal:/[:="\[\]]/,contains:[t]},t]},{className:"name",begin:s+":",end:":",returnBegin:!0,returnEnd:!0,relevance:0}])}}}}]);
```
|
```yaml
# Each section from every releasenote are combined when the
# CHANGELOG.rst is rendered. So the text needs to be worded so that
# it does not depend on any information only available in another
# section. This may mean repeating some details, but each section
# must be readable independently of the other.
#
# Each section note must be formatted as reStructuredText.
---
features:
- |
Addition of a gRPC server and a hostname resolution endpoint,
including a grpc-gateway that exposes said endpoint as a REST
service.
```
|
```python
############################################################ README ##############################################################
# This is neuron class which defines the dynamics of a neuron. All the parameters are initialised and methods are included to check
# for spikes and apply lateral inhibition.
###################################################################################################################################
import numpy as np
import random
from matplotlib import pyplot as plt
from parameters import param as par
class neuron:
def __init__(self):
self.t_ref = 30
self.t_rest = -1
self.P = par.Prest
def check(self):
if self.P> self.Pth:
self.P = par.Prest
return 1
elif self.P < par.Pmin:
self.P = par.Prest
return 0
else:
return 0
def inhibit(self):
self.P = par.Pmin
def initial(self, th):
self.Pth = th
self.t_rest = -1
self.P = par.Prest
```
|
Joel Manby is the former CEO of SeaWorld Parks & Entertainment and former President and Chief Executive Officer of Herschend Family Entertainment, the largest family-owned theme park corporation in the United States. HFE creates, develops and operates entertainment, tourism and hospitality properties spanning 26 locations in ten states, including Stone Mountain Park, Dollywood and Silver Dollar City. He and his company were featured in the seventh episode of the first season of CBS's Undercover Boss. Manby also wrote Love Works about HFE's unique business culture, with all proceeds going toward the Share It Forward Foundation, the company's charitable organization which aids employees in need.
Early life
Manby was born and raised in Michigan. He attended Battle Creek Lakeview High School and went to college at Albion College. At Albion, Manby graduated with a bachelor's degree in Economics as the valedictorian of his class and was a Rhodes Scholarship Finalist. He was elected to the Albion College Athletic Hall of Fame in 1991.
Career
Upon graduating from Albion, Manby worked at General Motors and received his M.B.A. from Harvard Business School. He was a part of the start-up team for Saturn Corporation and helped launch Saturn's marketing and distribution strategy. After a few years with Saturn, Manby was promoted to CEO of Saab Automobile USA. During his four-year tenure, Saab's sales increased by 67 percent and their J.D. Power Quality Rating jumped from 30th to 5th in the industry.
While at Saab, Manby was asked to be on the board for Herschend Family Entertainment. He later became chairman and served as the President and CEO from 2003-2013. Manby is a strong proponent of servant leadership. His role with Herschend Family Entertainment was featured in the CBS show Undercover Boss.
Manby replaced Jim Atchison, who resigned in December 2014 as president and CEO amid continuing attendance drops at SeaWorld's theme parks, spurred in part by a controversial documentary related to the company's handling of captive orcas. The documentary, Blackfish, explored the conditions of killer whales at SeaWorld, and the company's repeated attempts to hide the aggressiveness of the animals toward the trainers.
On February 27, 2018, SeaWorld Entertainment announced that Manby had resigned; the company named John Reilly as its interim CEO.
References
External links
Joel's Bio
Businesspeople from Michigan
American chief executives
Living people
Herschend Family Entertainment
Albion College alumni
Harvard Business School alumni
General Motors people
Writers from Michigan
Businesspeople from Atlanta
Writers from Atlanta
American corporate directors
20th-century American businesspeople
21st-century American businesspeople
Year of birth missing (living people)
|
```smalltalk
using System;
namespace Microsoft.MixedReality.Toolkit.UI
{
/// <summary>
/// Describes in which axis to orient the slider
/// </summary>
[Serializable]
public enum SliderAxis
{
XAxis = 0,
YAxis,
ZAxis
}
}
```
|
```ruby
# frozen_string_literal: true
class AddAutofollowToInvites < ActiveRecord::Migration[5.2]
disable_ddl_transaction!
def up
safety_assured do
add_column :invites, :autofollow, :bool, default: false, null: false
end
end
def down
remove_column :invites, :autofollow
end
end
```
|
CV, formerly known as Christian Vision, is a large international Christian ministry established in 1988, based in the United Kingdom. CV was founded by Lord Edmiston, with a vision to "reach one billion people around the globe, introduce them to Jesus, and encourage them to become His true followers."
'Touch-a-Billion' and 'Impact-a-Nation' are CV's two strategies that all charitable activities fall into.
'Touch-a-Billion' focuses on using the most effective media platforms to introduce people to Jesus. Their main forms of communication include a mobile application, broadcast radio, social media, and internet media. One of these projects is yesHEis, a mobile app that provides Christians with videos they can use to share their faith with friends.
‘Impact-a-Nation’ projects contribute to CV's vision through activities such as church pioneering and training local leaders with the intention of making a positive impact on society.
CV is based at Coleshill, Warwickshire, but has offices throughout Europe, CIS, Africa, North America, Latin America, and Asia Pacific.
It is registered charity under English law and, in 2007, had an endowment of £200 million, making it one of the 100 largest charities in the UK.
References
External links
Christian Vision website
yesHEis website
Christian charities based in the United Kingdom
Coleshill, Warwickshire
1993 establishments in the United Kingdom
Organisations based in Warwickshire
Religion in Warwickshire
Christian organizations established in 1993
|
```xml
/**
* Test constants like Math.PI
*/
//% color=#5C2D91 weight=31
//% advanced=true
namespace constant {
//% blockIdentity=constant._constant
export const PI = 3.14;
//% blockIdentity=constant._constant
export const LN2 = 0;
/**
* Constants defined on the namespace
*/
//% blockId=constant_dropdown block="%constant" constantShim
//% shim=TD_ID weight=20 blockGap=8
export function _constant(constant: number): number {
return constant;
}
}
//% emitAsConstant
declare const enum Item {
//% blockIdentity="blocks.item" enumval=256 block="Iron Shovel"
//% jres
IronShovel = 256,
//% blockIdentity="blocks.item" enumval=257 block="Iron Pickaxe"
//% jres
IronPickaxe = 257
}
//% blockIdentity="blocks.item" enumIdentity="Item.IronShovel"
const IRON_SHOVEL = Item.IronShovel;
//% blockIdentity="blocks.item" enumIdentity="Item.IronPickaxe"
const IRON_PICKAXE = Item.IronPickaxe;
//% emitAsConstant
declare const enum SixDirection {
//% block=forward
Forward,
//% block=back
Back
}
//% enumIdentity="SixDirection.Forward"
const FORWARD = SixDirection.Forward;
//% enumIdentity="SixDirection.Back"
const BACK = SixDirection.Back;
declare namespace agent {
/**
* Commands the agent to destroy a block in the given direction
* @param direction the direction in which the agent will destroy a block, eg: SixDirection.Forward
*/
//% help=agent/destroy
//% promise
//% group="Actions" weight=260
//% blockId=minecraftAgentCommandDestroy block="agent destroy|%direction"
//% shim=agent::destroyAsync promise
function destroy(direction: SixDirection): void;
/**
* Commands the agent to Collect a block or item of the specified type
* @param block the type of the block or item to collect
*/
//% help=agent/collect
//% promise
//% group="Actions" weight=220
//% blockId=minecraftAgentCollect block="agent collect %block=minecraftItem"
//% block.shadow=minecraftItem
//% shim=agent::collectAsync promise
function collect(block: number): void;
}
declare namespace blocks {
/**
* Represents an item from the game
* @param item the item
*/
//% help=blocks/item
//% weight=320
//% shim=TD_ID blockId=minecraftItem block="item %item"
//% item.fieldEditor="gridpicker"
//% item.fieldOptions.width=340 item.fieldOptions.columns=8 item.fieldOptions.tooltips=true
//% item.fieldOptions.tooltipsXOffset="20" item.fieldOptions.tooltipsYOffset="-20"
//% item.fieldOptions.maxRows="8"
//% item.fieldOptions.hasSearchBar=true
//% item.fieldOptions.hideRect=true
function item(item: Item): number;
}
```
|
System Crash is a Canadian youth sketch comedy television show, which aired on YTV from 1999 to 2001.
The series centred on a group of students in a junior high school media club, telling the events of their fictional school, Lambton Junior High, in the past week. Each episode usually had a theme, e.g. parents.
Recurring segments
Fly on the Wall - Uses hidden cameras to show what happens when no one is looking (e.g. why girls go to the bathroom in pairs and what do they do once they're in there?)
Burnbaum Helps - Burnbaum helping people. However, it always ends badly for the person that asks for help. It was replaced with Battleford Helps when Burnbaum left the show.
Canadian Council for Concerned Kids - Zoe's informative 'public service announcement' styled segment, providing important messages to adults on the way they should treat and interact with their children.
Garage Band - During the first season (1999), several of the episodes ended with a Garage Band segment. It featured members of the Canadian band Serial Joe playing humorous songs with the principal cast.
Lambton News - Talks about current events. Hosted by Carla Waller in the first season and Emily Pereira afterwards.
Sports Update - An update on sports at the school. Hosted by Wedgie Goldstein in the first season and Noogie Monoham (Zach Pettiford) afterwards.
Lambton Legends - Looking back at various legendary athletes and other famous Lambton alumni.
Lambton Home Shopping - Beau Peterson sells useless products and inventions to the students of Lambton via a Home Shopping Network styled-show.
Movie Spoofs - Movies of all kinds were constantly spoofed - Examples include Gladiator, Cast Away, Star Wars, The Maltese Falcon, The Incredible Hulk, The Matrix, E.T., Jaws, etc.
Kyle's Notes - Kyle Cooper giving unreliable lectures and his notes. This was used during the first season and ended when Ryan Field left the show.
Cast
Season 1
Nathaniel Siegler as Nathan Burnbaum
Haleigh Sheehan as Zoe McLaughlan-Fernandez
Kendra FitzRandolph as Bridget Hendrickson
Tony Del Rio as William 'Tek' Gibson
Ryan Field as Kyle Copper
Alithea Watters as Carla Waller
Shamba Amani as Mr. Cooper
Season 2
Nathaniel Siegler as Nathan Burnbaum
Haleigh Sheehan as Zoe McLaughlan-Fernandez
Kendra FitzRandolph as Bridget Hendrickson
Tony Del Rio as William 'Tek' Gibson
Owen Rotharmel as Beau Peterson
Season 3
Nathaniel Siegler as Nathan Burnbaum
Haleigh Sheehan as Zoe McLaughlan-Fernandez
Kendra FitzRandolph as Bridget Hendrickson
Owen Rotharmel as Beau Peterson
Rajiv Surendra as Chuck Singh
Jordan Dawe
Season 4
Haleigh Sheehan as Zoe McLaughlan-Fernandez
Owen Rotharmel as Beau Peterson
Connor Lynch as Bobby Battleford
Esmeralda Smith-Romero as Samantha Briggs
Nathan Stephenson as James Alexander
References
External links
1999 Canadian television series debuts
2002 Canadian television series endings
1990s Canadian children's television series
2000s Canadian children's television series
1990s Canadian sketch comedy television series
2000s Canadian sketch comedy television series
Canadian children's comedy television series
Children's sketch comedy
English-language television shows
Middle school television series
Television series about teenagers
Television series by Corus Entertainment
Television shows filmed in Toronto
Television shows set in Toronto
YTV (Canadian TV channel) original programming
|
```c++
#ifndef BOOST_MPL_AUX_RANGE_C_O1_SIZE_HPP_INCLUDED
#define BOOST_MPL_AUX_RANGE_C_O1_SIZE_HPP_INCLUDED
//
// (See accompanying file LICENSE_1_0.txt or copy at
// path_to_url
//
// See path_to_url for documentation.
// $Id$
// $Date$
// $Revision$
#include <boost/mpl/O1_size_fwd.hpp>
#include <boost/mpl/aux_/range_c/size.hpp>
#include <boost/mpl/aux_/range_c/tag.hpp>
namespace boost { namespace mpl {
template<>
struct O1_size_impl< aux::half_open_range_tag >
: size_impl< aux::half_open_range_tag >
{
};
}}
#endif // BOOST_MPL_AUX_RANGE_C_O1_SIZE_HPP_INCLUDED
```
|
```scss
@import "./styles/variables.scss";
.dark .mat-header-cell {
background: $accent-dark !important;
font-size: 1em;
font-weight: bold;
color: $ombi-background-primary-accent;
}
.mat-form-field {
float:right;
margin-right:20px;
}
/*::ng-deep .dark .mat-form-field-label{
font-size: 1.2em;
}*/
::ng-deep .mat-form-field-infix {
width: 8em;
margin-top:1em;
}
::ng-deep .dark .mat-tab-label-active{
background: $accent-dark !important;
color: $ombi-background-primary-accent !important;
font-weight:bold;
}
::ng-deep .mat-tab-label{
opacity: 1;
}
::ng-deep .row {
margin-right:0;
margin-left:0;
}
@media (min-width: 500px) {
.justify-content-md-center {
justify-content: normal !important;
}
}
@media (min-width: 1170px){
.justify-content-md-center {
justify-content: center !important;
}
}
```
|
```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.
// This file implements parsers to convert legacy profiles into the
// profile.proto format.
package profile
import (
"bufio"
"bytes"
"fmt"
"io"
"math"
"regexp"
"strconv"
"strings"
)
var (
countStartRE = regexp.MustCompile(`\A(\S+) profile: total \d+\z`)
countRE = regexp.MustCompile(`\A(\d+) @(( 0x[0-9a-f]+)+)\z`)
heapHeaderRE = regexp.MustCompile(`heap profile: *(\d+): *(\d+) *\[ *(\d+): *(\d+) *\] *@ *(heap[_a-z0-9]*)/?(\d*)`)
heapSampleRE = regexp.MustCompile(`(-?\d+): *(-?\d+) *\[ *(\d+): *(\d+) *] @([ x0-9a-f]*)`)
contentionSampleRE = regexp.MustCompile(`(\d+) *(\d+) @([ x0-9a-f]*)`)
hexNumberRE = regexp.MustCompile(`0x[0-9a-f]+`)
growthHeaderRE = regexp.MustCompile(`heap profile: *(\d+): *(\d+) *\[ *(\d+): *(\d+) *\] @ growthz?`)
fragmentationHeaderRE = regexp.MustCompile(`heap profile: *(\d+): *(\d+) *\[ *(\d+): *(\d+) *\] @ fragmentationz?`)
threadzStartRE = regexp.MustCompile(`--- threadz \d+ ---`)
threadStartRE = regexp.MustCompile(`--- Thread ([[:xdigit:]]+) \(name: (.*)/(\d+)\) stack: ---`)
// Regular expressions to parse process mappings. Support the format used by Linux /proc/.../maps and other tools.
// Recommended format:
// Start End object file name offset(optional) linker build id
// 0x40000-0x80000 /path/to/binary (@FF00) abc123456
spaceDigits = `\s+[[:digit:]]+`
hexPair = `\s+[[:xdigit:]]+:[[:xdigit:]]+`
oSpace = `\s*`
// Capturing expressions.
cHex = `(?:0x)?([[:xdigit:]]+)`
cHexRange = `\s*` + cHex + `[\s-]?` + oSpace + cHex + `:?`
cSpaceString = `(?:\s+(\S+))?`
cSpaceHex = `(?:\s+([[:xdigit:]]+))?`
cSpaceAtOffset = `(?:\s+\(@([[:xdigit:]]+)\))?`
cPerm = `(?:\s+([-rwxp]+))?`
procMapsRE = regexp.MustCompile(`^` + cHexRange + cPerm + cSpaceHex + hexPair + spaceDigits + cSpaceString)
briefMapsRE = regexp.MustCompile(`^` + cHexRange + cPerm + cSpaceString + cSpaceAtOffset + cSpaceHex)
// Regular expression to parse log data, of the form:
// ... file:line] msg...
logInfoRE = regexp.MustCompile(`^[^\[\]]+:[0-9]+]\s`)
)
func isSpaceOrComment(line string) bool {
trimmed := strings.TrimSpace(line)
return len(trimmed) == 0 || trimmed[0] == '#'
}
// parseGoCount parses a Go count profile (e.g., threadcreate or
// goroutine) and returns a new Profile.
func parseGoCount(b []byte) (*Profile, error) {
s := bufio.NewScanner(bytes.NewBuffer(b))
// Skip comments at the beginning of the file.
for s.Scan() && isSpaceOrComment(s.Text()) {
}
if err := s.Err(); err != nil {
return nil, err
}
m := countStartRE.FindStringSubmatch(s.Text())
if m == nil {
return nil, errUnrecognized
}
profileType := m[1]
p := &Profile{
PeriodType: &ValueType{Type: profileType, Unit: "count"},
Period: 1,
SampleType: []*ValueType{{Type: profileType, Unit: "count"}},
}
locations := make(map[uint64]*Location)
for s.Scan() {
line := s.Text()
if isSpaceOrComment(line) {
continue
}
if strings.HasPrefix(line, "---") {
break
}
m := countRE.FindStringSubmatch(line)
if m == nil {
return nil, errMalformed
}
n, err := strconv.ParseInt(m[1], 0, 64)
if err != nil {
return nil, errMalformed
}
fields := strings.Fields(m[2])
locs := make([]*Location, 0, len(fields))
for _, stk := range fields {
addr, err := strconv.ParseUint(stk, 0, 64)
if err != nil {
return nil, errMalformed
}
// Adjust all frames by -1 to land on top of the call instruction.
addr--
loc := locations[addr]
if loc == nil {
loc = &Location{
Address: addr,
}
locations[addr] = loc
p.Location = append(p.Location, loc)
}
locs = append(locs, loc)
}
p.Sample = append(p.Sample, &Sample{
Location: locs,
Value: []int64{n},
})
}
if err := s.Err(); err != nil {
return nil, err
}
if err := parseAdditionalSections(s, p); err != nil {
return nil, err
}
return p, nil
}
// remapLocationIDs ensures there is a location for each address
// referenced by a sample, and remaps the samples to point to the new
// location ids.
func (p *Profile) remapLocationIDs() {
seen := make(map[*Location]bool, len(p.Location))
var locs []*Location
for _, s := range p.Sample {
for _, l := range s.Location {
if seen[l] {
continue
}
l.ID = uint64(len(locs) + 1)
locs = append(locs, l)
seen[l] = true
}
}
p.Location = locs
}
func (p *Profile) remapFunctionIDs() {
seen := make(map[*Function]bool, len(p.Function))
var fns []*Function
for _, l := range p.Location {
for _, ln := range l.Line {
fn := ln.Function
if fn == nil || seen[fn] {
continue
}
fn.ID = uint64(len(fns) + 1)
fns = append(fns, fn)
seen[fn] = true
}
}
p.Function = fns
}
// remapMappingIDs matches location addresses with existing mappings
// and updates them appropriately. This is O(N*M), if this ever shows
// up as a bottleneck, evaluate sorting the mappings and doing a
// binary search, which would make it O(N*log(M)).
func (p *Profile) remapMappingIDs() {
// Some profile handlers will incorrectly set regions for the main
// executable if its section is remapped. Fix them through heuristics.
if len(p.Mapping) > 0 {
// Remove the initial mapping if named '/anon_hugepage' and has a
// consecutive adjacent mapping.
if m := p.Mapping[0]; strings.HasPrefix(m.File, "/anon_hugepage") {
if len(p.Mapping) > 1 && m.Limit == p.Mapping[1].Start {
p.Mapping = p.Mapping[1:]
}
}
}
// Subtract the offset from the start of the main mapping if it
// ends up at a recognizable start address.
if len(p.Mapping) > 0 {
const expectedStart = 0x400000
if m := p.Mapping[0]; m.Start-m.Offset == expectedStart {
m.Start = expectedStart
m.Offset = 0
}
}
// Associate each location with an address to the corresponding
// mapping. Create fake mapping if a suitable one isn't found.
var fake *Mapping
nextLocation:
for _, l := range p.Location {
a := l.Address
if l.Mapping != nil || a == 0 {
continue
}
for _, m := range p.Mapping {
if m.Start <= a && a < m.Limit {
l.Mapping = m
continue nextLocation
}
}
// Work around legacy handlers failing to encode the first
// part of mappings split into adjacent ranges.
for _, m := range p.Mapping {
if m.Offset != 0 && m.Start-m.Offset <= a && a < m.Start {
m.Start -= m.Offset
m.Offset = 0
l.Mapping = m
continue nextLocation
}
}
// If there is still no mapping, create a fake one.
// This is important for the Go legacy handler, which produced
// no mappings.
if fake == nil {
fake = &Mapping{
ID: 1,
Limit: ^uint64(0),
}
p.Mapping = append(p.Mapping, fake)
}
l.Mapping = fake
}
// Reset all mapping IDs.
for i, m := range p.Mapping {
m.ID = uint64(i + 1)
}
}
var cpuInts = []func([]byte) (uint64, []byte){
get32l,
get32b,
get64l,
get64b,
}
func get32l(b []byte) (uint64, []byte) {
if len(b) < 4 {
return 0, nil
}
return uint64(b[0]) | uint64(b[1])<<8 | uint64(b[2])<<16 | uint64(b[3])<<24, b[4:]
}
func get32b(b []byte) (uint64, []byte) {
if len(b) < 4 {
return 0, nil
}
return uint64(b[3]) | uint64(b[2])<<8 | uint64(b[1])<<16 | uint64(b[0])<<24, b[4:]
}
func get64l(b []byte) (uint64, []byte) {
if len(b) < 8 {
return 0, nil
}
return uint64(b[0]) | uint64(b[1])<<8 | uint64(b[2])<<16 | uint64(b[3])<<24 | uint64(b[4])<<32 | uint64(b[5])<<40 | uint64(b[6])<<48 | uint64(b[7])<<56, b[8:]
}
func get64b(b []byte) (uint64, []byte) {
if len(b) < 8 {
return 0, nil
}
return uint64(b[7]) | uint64(b[6])<<8 | uint64(b[5])<<16 | uint64(b[4])<<24 | uint64(b[3])<<32 | uint64(b[2])<<40 | uint64(b[1])<<48 | uint64(b[0])<<56, b[8:]
}
// parseCPU parses a profilez legacy profile and returns a newly
// populated Profile.
//
// The general format for profilez samples is a sequence of words in
// binary format. The first words are a header with the following data:
//
// 1st word -- 0
// 2nd word -- 3
// 3rd word -- 0 if a c++ application, 1 if a java application.
// 4th word -- Sampling period (in microseconds).
// 5th word -- Padding.
func parseCPU(b []byte) (*Profile, error) {
var parse func([]byte) (uint64, []byte)
var n1, n2, n3, n4, n5 uint64
for _, parse = range cpuInts {
var tmp []byte
n1, tmp = parse(b)
n2, tmp = parse(tmp)
n3, tmp = parse(tmp)
n4, tmp = parse(tmp)
n5, tmp = parse(tmp)
if tmp != nil && n1 == 0 && n2 == 3 && n3 == 0 && n4 > 0 && n5 == 0 {
b = tmp
return cpuProfile(b, int64(n4), parse)
}
if tmp != nil && n1 == 0 && n2 == 3 && n3 == 1 && n4 > 0 && n5 == 0 {
b = tmp
return javaCPUProfile(b, int64(n4), parse)
}
}
return nil, errUnrecognized
}
// cpuProfile returns a new Profile from C++ profilez data.
// b is the profile bytes after the header, period is the profiling
// period, and parse is a function to parse 8-byte chunks from the
// profile in its native endianness.
func cpuProfile(b []byte, period int64, parse func(b []byte) (uint64, []byte)) (*Profile, error) {
p := &Profile{
Period: period * 1000,
PeriodType: &ValueType{Type: "cpu", Unit: "nanoseconds"},
SampleType: []*ValueType{
{Type: "samples", Unit: "count"},
{Type: "cpu", Unit: "nanoseconds"},
},
}
var err error
if b, _, err = parseCPUSamples(b, parse, true, p); err != nil {
return nil, err
}
// If *most* samples have the same second-to-the-bottom frame, it
// strongly suggests that it is an uninteresting artifact of
// measurement -- a stack frame pushed by the signal handler. The
// bottom frame is always correct as it is picked up from the signal
// structure, not the stack. Check if this is the case and if so,
// remove.
// Remove up to two frames.
maxiter := 2
// Allow one different sample for this many samples with the same
// second-to-last frame.
similarSamples := 32
margin := len(p.Sample) / similarSamples
for iter := 0; iter < maxiter; iter++ {
addr1 := make(map[uint64]int)
for _, s := range p.Sample {
if len(s.Location) > 1 {
a := s.Location[1].Address
addr1[a] = addr1[a] + 1
}
}
for id1, count := range addr1 {
if count >= len(p.Sample)-margin {
// Found uninteresting frame, strip it out from all samples
for _, s := range p.Sample {
if len(s.Location) > 1 && s.Location[1].Address == id1 {
s.Location = append(s.Location[:1], s.Location[2:]...)
}
}
break
}
}
}
if err := p.ParseMemoryMap(bytes.NewBuffer(b)); err != nil {
return nil, err
}
cleanupDuplicateLocations(p)
return p, nil
}
func cleanupDuplicateLocations(p *Profile) {
// The profile handler may duplicate the leaf frame, because it gets
// its address both from stack unwinding and from the signal
// context. Detect this and delete the duplicate, which has been
// adjusted by -1. The leaf address should not be adjusted as it is
// not a call.
for _, s := range p.Sample {
if len(s.Location) > 1 && s.Location[0].Address == s.Location[1].Address+1 {
s.Location = append(s.Location[:1], s.Location[2:]...)
}
}
}
// parseCPUSamples parses a collection of profilez samples from a
// profile.
//
// profilez samples are a repeated sequence of stack frames of the
// form:
//
// 1st word -- The number of times this stack was encountered.
// 2nd word -- The size of the stack (StackSize).
// 3rd word -- The first address on the stack.
// ...
// StackSize + 2 -- The last address on the stack
//
// The last stack trace is of the form:
//
// 1st word -- 0
// 2nd word -- 1
// 3rd word -- 0
//
// Addresses from stack traces may point to the next instruction after
// each call. Optionally adjust by -1 to land somewhere on the actual
// call (except for the leaf, which is not a call).
func parseCPUSamples(b []byte, parse func(b []byte) (uint64, []byte), adjust bool, p *Profile) ([]byte, map[uint64]*Location, error) {
locs := make(map[uint64]*Location)
for len(b) > 0 {
var count, nstk uint64
count, b = parse(b)
nstk, b = parse(b)
if b == nil || nstk > uint64(len(b)/4) {
return nil, nil, errUnrecognized
}
var sloc []*Location
addrs := make([]uint64, nstk)
for i := 0; i < int(nstk); i++ {
addrs[i], b = parse(b)
}
if count == 0 && nstk == 1 && addrs[0] == 0 {
// End of data marker
break
}
for i, addr := range addrs {
if adjust && i > 0 {
addr--
}
loc := locs[addr]
if loc == nil {
loc = &Location{
Address: addr,
}
locs[addr] = loc
p.Location = append(p.Location, loc)
}
sloc = append(sloc, loc)
}
p.Sample = append(p.Sample,
&Sample{
Value: []int64{int64(count), int64(count) * p.Period},
Location: sloc,
})
}
// Reached the end without finding the EOD marker.
return b, locs, nil
}
// parseHeap parses a heapz legacy or a growthz profile and
// returns a newly populated Profile.
func parseHeap(b []byte) (p *Profile, err error) {
s := bufio.NewScanner(bytes.NewBuffer(b))
if !s.Scan() {
if err := s.Err(); err != nil {
return nil, err
}
return nil, errUnrecognized
}
p = &Profile{}
sampling := ""
hasAlloc := false
line := s.Text()
p.PeriodType = &ValueType{Type: "space", Unit: "bytes"}
if header := heapHeaderRE.FindStringSubmatch(line); header != nil {
sampling, p.Period, hasAlloc, err = parseHeapHeader(line)
if err != nil {
return nil, err
}
} else if header = growthHeaderRE.FindStringSubmatch(line); header != nil {
p.Period = 1
} else if header = fragmentationHeaderRE.FindStringSubmatch(line); header != nil {
p.Period = 1
} else {
return nil, errUnrecognized
}
if hasAlloc {
// Put alloc before inuse so that default pprof selection
// will prefer inuse_space.
p.SampleType = []*ValueType{
{Type: "alloc_objects", Unit: "count"},
{Type: "alloc_space", Unit: "bytes"},
{Type: "inuse_objects", Unit: "count"},
{Type: "inuse_space", Unit: "bytes"},
}
} else {
p.SampleType = []*ValueType{
{Type: "objects", Unit: "count"},
{Type: "space", Unit: "bytes"},
}
}
locs := make(map[uint64]*Location)
for s.Scan() {
line := strings.TrimSpace(s.Text())
if isSpaceOrComment(line) {
continue
}
if isMemoryMapSentinel(line) {
break
}
value, blocksize, addrs, err := parseHeapSample(line, p.Period, sampling, hasAlloc)
if err != nil {
return nil, err
}
var sloc []*Location
for _, addr := range addrs {
// Addresses from stack traces point to the next instruction after
// each call. Adjust by -1 to land somewhere on the actual call.
addr--
loc := locs[addr]
if locs[addr] == nil {
loc = &Location{
Address: addr,
}
p.Location = append(p.Location, loc)
locs[addr] = loc
}
sloc = append(sloc, loc)
}
p.Sample = append(p.Sample, &Sample{
Value: value,
Location: sloc,
NumLabel: map[string][]int64{"bytes": {blocksize}},
})
}
if err := s.Err(); err != nil {
return nil, err
}
if err := parseAdditionalSections(s, p); err != nil {
return nil, err
}
return p, nil
}
func parseHeapHeader(line string) (sampling string, period int64, hasAlloc bool, err error) {
header := heapHeaderRE.FindStringSubmatch(line)
if header == nil {
return "", 0, false, errUnrecognized
}
if len(header[6]) > 0 {
if period, err = strconv.ParseInt(header[6], 10, 64); err != nil {
return "", 0, false, errUnrecognized
}
}
if (header[3] != header[1] && header[3] != "0") || (header[4] != header[2] && header[4] != "0") {
hasAlloc = true
}
switch header[5] {
case "heapz_v2", "heap_v2":
return "v2", period, hasAlloc, nil
case "heapprofile":
return "", 1, hasAlloc, nil
case "heap":
return "v2", period / 2, hasAlloc, nil
default:
return "", 0, false, errUnrecognized
}
}
// parseHeapSample parses a single row from a heap profile into a new Sample.
func parseHeapSample(line string, rate int64, sampling string, includeAlloc bool) (value []int64, blocksize int64, addrs []uint64, err error) {
sampleData := heapSampleRE.FindStringSubmatch(line)
if len(sampleData) != 6 {
return nil, 0, nil, fmt.Errorf("unexpected number of sample values: got %d, want 6", len(sampleData))
}
// This is a local-scoped helper function to avoid needing to pass
// around rate, sampling and many return parameters.
addValues := func(countString, sizeString string, label string) error {
count, err := strconv.ParseInt(countString, 10, 64)
if err != nil {
return fmt.Errorf("malformed sample: %s: %v", line, err)
}
size, err := strconv.ParseInt(sizeString, 10, 64)
if err != nil {
return fmt.Errorf("malformed sample: %s: %v", line, err)
}
if count == 0 && size != 0 {
return fmt.Errorf("%s count was 0 but %s bytes was %d", label, label, size)
}
if count != 0 {
blocksize = size / count
if sampling == "v2" {
count, size = scaleHeapSample(count, size, rate)
}
}
value = append(value, count, size)
return nil
}
if includeAlloc {
if err := addValues(sampleData[3], sampleData[4], "allocation"); err != nil {
return nil, 0, nil, err
}
}
if err := addValues(sampleData[1], sampleData[2], "inuse"); err != nil {
return nil, 0, nil, err
}
addrs, err = parseHexAddresses(sampleData[5])
if err != nil {
return nil, 0, nil, fmt.Errorf("malformed sample: %s: %v", line, err)
}
return value, blocksize, addrs, nil
}
// parseHexAddresses extracts hex numbers from a string, attempts to convert
// each to an unsigned 64-bit number and returns the resulting numbers as a
// slice, or an error if the string contains hex numbers which are too large to
// handle (which means a malformed profile).
func parseHexAddresses(s string) ([]uint64, error) {
hexStrings := hexNumberRE.FindAllString(s, -1)
var addrs []uint64
for _, s := range hexStrings {
if addr, err := strconv.ParseUint(s, 0, 64); err == nil {
addrs = append(addrs, addr)
} else {
return nil, fmt.Errorf("failed to parse as hex 64-bit number: %s", s)
}
}
return addrs, nil
}
// scaleHeapSample adjusts the data from a heapz Sample to
// account for its probability of appearing in the collected
// data. heapz profiles are a sampling of the memory allocations
// requests in a program. We estimate the unsampled value by dividing
// each collected sample by its probability of appearing in the
// profile. heapz v2 profiles rely on a poisson process to determine
// which samples to collect, based on the desired average collection
// rate R. The probability of a sample of size S to appear in that
// profile is 1-exp(-S/R).
func scaleHeapSample(count, size, rate int64) (int64, int64) {
if count == 0 || size == 0 {
return 0, 0
}
if rate <= 1 {
// if rate==1 all samples were collected so no adjustment is needed.
// if rate<1 treat as unknown and skip scaling.
return count, size
}
avgSize := float64(size) / float64(count)
scale := 1 / (1 - math.Exp(-avgSize/float64(rate)))
return int64(float64(count) * scale), int64(float64(size) * scale)
}
// parseContention parses a mutex or contention profile. There are 2 cases:
// "--- contentionz " for legacy C++ profiles (and backwards compatibility)
// "--- mutex:" or "--- contention:" for profiles generated by the Go runtime.
func parseContention(b []byte) (*Profile, error) {
s := bufio.NewScanner(bytes.NewBuffer(b))
if !s.Scan() {
if err := s.Err(); err != nil {
return nil, err
}
return nil, errUnrecognized
}
switch l := s.Text(); {
case strings.HasPrefix(l, "--- contentionz "):
case strings.HasPrefix(l, "--- mutex:"):
case strings.HasPrefix(l, "--- contention:"):
default:
return nil, errUnrecognized
}
p := &Profile{
PeriodType: &ValueType{Type: "contentions", Unit: "count"},
Period: 1,
SampleType: []*ValueType{
{Type: "contentions", Unit: "count"},
{Type: "delay", Unit: "nanoseconds"},
},
}
var cpuHz int64
// Parse text of the form "attribute = value" before the samples.
const delimiter = "="
for s.Scan() {
line := s.Text()
if line = strings.TrimSpace(line); isSpaceOrComment(line) {
continue
}
if strings.HasPrefix(line, "---") {
break
}
attr := strings.SplitN(line, delimiter, 2)
if len(attr) != 2 {
break
}
key, val := strings.TrimSpace(attr[0]), strings.TrimSpace(attr[1])
var err error
switch key {
case "cycles/second":
if cpuHz, err = strconv.ParseInt(val, 0, 64); err != nil {
return nil, errUnrecognized
}
case "sampling period":
if p.Period, err = strconv.ParseInt(val, 0, 64); err != nil {
return nil, errUnrecognized
}
case "ms since reset":
ms, err := strconv.ParseInt(val, 0, 64)
if err != nil {
return nil, errUnrecognized
}
p.DurationNanos = ms * 1000 * 1000
case "format":
// CPP contentionz profiles don't have format.
return nil, errUnrecognized
case "resolution":
// CPP contentionz profiles don't have resolution.
return nil, errUnrecognized
case "discarded samples":
default:
return nil, errUnrecognized
}
}
if err := s.Err(); err != nil {
return nil, err
}
locs := make(map[uint64]*Location)
for {
line := strings.TrimSpace(s.Text())
if strings.HasPrefix(line, "---") {
break
}
if !isSpaceOrComment(line) {
value, addrs, err := parseContentionSample(line, p.Period, cpuHz)
if err != nil {
return nil, err
}
var sloc []*Location
for _, addr := range addrs {
// Addresses from stack traces point to the next instruction after
// each call. Adjust by -1 to land somewhere on the actual call.
addr--
loc := locs[addr]
if locs[addr] == nil {
loc = &Location{
Address: addr,
}
p.Location = append(p.Location, loc)
locs[addr] = loc
}
sloc = append(sloc, loc)
}
p.Sample = append(p.Sample, &Sample{
Value: value,
Location: sloc,
})
}
if !s.Scan() {
break
}
}
if err := s.Err(); err != nil {
return nil, err
}
if err := parseAdditionalSections(s, p); err != nil {
return nil, err
}
return p, nil
}
// parseContentionSample parses a single row from a contention profile
// into a new Sample.
func parseContentionSample(line string, period, cpuHz int64) (value []int64, addrs []uint64, err error) {
sampleData := contentionSampleRE.FindStringSubmatch(line)
if sampleData == nil {
return nil, nil, errUnrecognized
}
v1, err := strconv.ParseInt(sampleData[1], 10, 64)
if err != nil {
return nil, nil, fmt.Errorf("malformed sample: %s: %v", line, err)
}
v2, err := strconv.ParseInt(sampleData[2], 10, 64)
if err != nil {
return nil, nil, fmt.Errorf("malformed sample: %s: %v", line, err)
}
// Unsample values if period and cpuHz are available.
// - Delays are scaled to cycles and then to nanoseconds.
// - Contentions are scaled to cycles.
if period > 0 {
if cpuHz > 0 {
cpuGHz := float64(cpuHz) / 1e9
v1 = int64(float64(v1) * float64(period) / cpuGHz)
}
v2 = v2 * period
}
value = []int64{v2, v1}
addrs, err = parseHexAddresses(sampleData[3])
if err != nil {
return nil, nil, fmt.Errorf("malformed sample: %s: %v", line, err)
}
return value, addrs, nil
}
// parseThread parses a Threadz profile and returns a new Profile.
func parseThread(b []byte) (*Profile, error) {
s := bufio.NewScanner(bytes.NewBuffer(b))
// Skip past comments and empty lines seeking a real header.
for s.Scan() && isSpaceOrComment(s.Text()) {
}
line := s.Text()
if m := threadzStartRE.FindStringSubmatch(line); m != nil {
// Advance over initial comments until first stack trace.
for s.Scan() {
if line = s.Text(); isMemoryMapSentinel(line) || strings.HasPrefix(line, "-") {
break
}
}
} else if t := threadStartRE.FindStringSubmatch(line); len(t) != 4 {
return nil, errUnrecognized
}
p := &Profile{
SampleType: []*ValueType{{Type: "thread", Unit: "count"}},
PeriodType: &ValueType{Type: "thread", Unit: "count"},
Period: 1,
}
locs := make(map[uint64]*Location)
// Recognize each thread and populate profile samples.
for !isMemoryMapSentinel(line) {
if strings.HasPrefix(line, "---- no stack trace for") {
break
}
if t := threadStartRE.FindStringSubmatch(line); len(t) != 4 {
return nil, errUnrecognized
}
var addrs []uint64
var err error
line, addrs, err = parseThreadSample(s)
if err != nil {
return nil, err
}
if len(addrs) == 0 {
// We got a --same as previous threads--. Bump counters.
if len(p.Sample) > 0 {
s := p.Sample[len(p.Sample)-1]
s.Value[0]++
}
continue
}
var sloc []*Location
for i, addr := range addrs {
// Addresses from stack traces point to the next instruction after
// each call. Adjust by -1 to land somewhere on the actual call
// (except for the leaf, which is not a call).
if i > 0 {
addr--
}
loc := locs[addr]
if locs[addr] == nil {
loc = &Location{
Address: addr,
}
p.Location = append(p.Location, loc)
locs[addr] = loc
}
sloc = append(sloc, loc)
}
p.Sample = append(p.Sample, &Sample{
Value: []int64{1},
Location: sloc,
})
}
if err := parseAdditionalSections(s, p); err != nil {
return nil, err
}
cleanupDuplicateLocations(p)
return p, nil
}
// parseThreadSample parses a symbolized or unsymbolized stack trace.
// Returns the first line after the traceback, the sample (or nil if
// it hits a 'same-as-previous' marker) and an error.
func parseThreadSample(s *bufio.Scanner) (nextl string, addrs []uint64, err error) {
var line string
sameAsPrevious := false
for s.Scan() {
line = strings.TrimSpace(s.Text())
if line == "" {
continue
}
if strings.HasPrefix(line, "---") {
break
}
if strings.Contains(line, "same as previous thread") {
sameAsPrevious = true
continue
}
curAddrs, err := parseHexAddresses(line)
if err != nil {
return "", nil, fmt.Errorf("malformed sample: %s: %v", line, err)
}
addrs = append(addrs, curAddrs...)
}
if err := s.Err(); err != nil {
return "", nil, err
}
if sameAsPrevious {
return line, nil, nil
}
return line, addrs, nil
}
// parseAdditionalSections parses any additional sections in the
// profile, ignoring any unrecognized sections.
func parseAdditionalSections(s *bufio.Scanner, p *Profile) error {
for !isMemoryMapSentinel(s.Text()) && s.Scan() {
}
if err := s.Err(); err != nil {
return err
}
return p.ParseMemoryMapFromScanner(s)
}
// ParseProcMaps parses a memory map in the format of /proc/self/maps.
// ParseMemoryMap should be called after setting on a profile to
// associate locations to the corresponding mapping based on their
// address.
func ParseProcMaps(rd io.Reader) ([]*Mapping, error) {
s := bufio.NewScanner(rd)
return parseProcMapsFromScanner(s)
}
func parseProcMapsFromScanner(s *bufio.Scanner) ([]*Mapping, error) {
var mapping []*Mapping
var attrs []string
const delimiter = "="
r := strings.NewReplacer()
for s.Scan() {
line := r.Replace(removeLoggingInfo(s.Text()))
m, err := parseMappingEntry(line)
if err != nil {
if err == errUnrecognized {
// Recognize assignments of the form: attr=value, and replace
// $attr with value on subsequent mappings.
if attr := strings.SplitN(line, delimiter, 2); len(attr) == 2 {
attrs = append(attrs, "$"+strings.TrimSpace(attr[0]), strings.TrimSpace(attr[1]))
r = strings.NewReplacer(attrs...)
}
// Ignore any unrecognized entries
continue
}
return nil, err
}
if m == nil {
continue
}
mapping = append(mapping, m)
}
if err := s.Err(); err != nil {
return nil, err
}
return mapping, nil
}
// removeLoggingInfo detects and removes log prefix entries generated
// by the glog package. If no logging prefix is detected, the string
// is returned unmodified.
func removeLoggingInfo(line string) string {
if match := logInfoRE.FindStringIndex(line); match != nil {
return line[match[1]:]
}
return line
}
// ParseMemoryMap parses a memory map in the format of
// /proc/self/maps, and overrides the mappings in the current profile.
// It renumbers the samples and locations in the profile correspondingly.
func (p *Profile) ParseMemoryMap(rd io.Reader) error {
return p.ParseMemoryMapFromScanner(bufio.NewScanner(rd))
}
// ParseMemoryMapFromScanner parses a memory map in the format of
// /proc/self/maps or a variety of legacy format, and overrides the
// mappings in the current profile. It renumbers the samples and
// locations in the profile correspondingly.
func (p *Profile) ParseMemoryMapFromScanner(s *bufio.Scanner) error {
mapping, err := parseProcMapsFromScanner(s)
if err != nil {
return err
}
p.Mapping = append(p.Mapping, mapping...)
p.massageMappings()
p.remapLocationIDs()
p.remapFunctionIDs()
p.remapMappingIDs()
return nil
}
func parseMappingEntry(l string) (*Mapping, error) {
var start, end, perm, file, offset, buildID string
if me := procMapsRE.FindStringSubmatch(l); len(me) == 6 {
start, end, perm, offset, file = me[1], me[2], me[3], me[4], me[5]
} else if me := briefMapsRE.FindStringSubmatch(l); len(me) == 7 {
start, end, perm, file, offset, buildID = me[1], me[2], me[3], me[4], me[5], me[6]
} else {
return nil, errUnrecognized
}
var err error
mapping := &Mapping{
File: file,
BuildID: buildID,
}
if perm != "" && !strings.Contains(perm, "x") {
// Skip non-executable entries.
return nil, nil
}
if mapping.Start, err = strconv.ParseUint(start, 16, 64); err != nil {
return nil, errUnrecognized
}
if mapping.Limit, err = strconv.ParseUint(end, 16, 64); err != nil {
return nil, errUnrecognized
}
if offset != "" {
if mapping.Offset, err = strconv.ParseUint(offset, 16, 64); err != nil {
return nil, errUnrecognized
}
}
return mapping, nil
}
var memoryMapSentinels = []string{
"--- Memory map: ---",
"MAPPED_LIBRARIES:",
}
// isMemoryMapSentinel returns true if the string contains one of the
// known sentinels for memory map information.
func isMemoryMapSentinel(line string) bool {
for _, s := range memoryMapSentinels {
if strings.Contains(line, s) {
return true
}
}
return false
}
func (p *Profile) addLegacyFrameInfo() {
switch {
case isProfileType(p, heapzSampleTypes):
p.DropFrames, p.KeepFrames = allocRxStr, allocSkipRxStr
case isProfileType(p, contentionzSampleTypes):
p.DropFrames, p.KeepFrames = lockRxStr, ""
default:
p.DropFrames, p.KeepFrames = cpuProfilerRxStr, ""
}
}
var heapzSampleTypes = [][]string{
{"allocations", "size"}, // early Go pprof profiles
{"objects", "space"},
{"inuse_objects", "inuse_space"},
{"alloc_objects", "alloc_space"},
{"alloc_objects", "alloc_space", "inuse_objects", "inuse_space"}, // Go pprof legacy profiles
}
var contentionzSampleTypes = [][]string{
{"contentions", "delay"},
}
func isProfileType(p *Profile, types [][]string) bool {
st := p.SampleType
nextType:
for _, t := range types {
if len(st) != len(t) {
continue
}
for i := range st {
if st[i].Type != t[i] {
continue nextType
}
}
return true
}
return false
}
var allocRxStr = strings.Join([]string{
// POSIX entry points.
`calloc`,
`cfree`,
`malloc`,
`free`,
`memalign`,
`do_memalign`,
`(__)?posix_memalign`,
`pvalloc`,
`valloc`,
`realloc`,
// TC malloc.
`tcmalloc::.*`,
`tc_calloc`,
`tc_cfree`,
`tc_malloc`,
`tc_free`,
`tc_memalign`,
`tc_posix_memalign`,
`tc_pvalloc`,
`tc_valloc`,
`tc_realloc`,
`tc_new`,
`tc_delete`,
`tc_newarray`,
`tc_deletearray`,
`tc_new_nothrow`,
`tc_newarray_nothrow`,
// Memory-allocation routines on OS X.
`malloc_zone_malloc`,
`malloc_zone_calloc`,
`malloc_zone_valloc`,
`malloc_zone_realloc`,
`malloc_zone_memalign`,
`malloc_zone_free`,
// Go runtime
`runtime\..*`,
// Other misc. memory allocation routines
`BaseArena::.*`,
`(::)?do_malloc_no_errno`,
`(::)?do_malloc_pages`,
`(::)?do_malloc`,
`DoSampledAllocation`,
`MallocedMemBlock::MallocedMemBlock`,
`_M_allocate`,
`__builtin_(vec_)?delete`,
`__builtin_(vec_)?new`,
`__gnu_cxx::new_allocator::allocate`,
`__libc_malloc`,
`__malloc_alloc_template::allocate`,
`allocate`,
`cpp_alloc`,
`operator new(\[\])?`,
`simple_alloc::allocate`,
}, `|`)
var allocSkipRxStr = strings.Join([]string{
// Preserve Go runtime frames that appear in the middle/bottom of
// the stack.
`runtime\.panic`,
`runtime\.reflectcall`,
`runtime\.call[0-9]*`,
}, `|`)
var cpuProfilerRxStr = strings.Join([]string{
`ProfileData::Add`,
`ProfileData::prof_handler`,
`CpuProfiler::prof_handler`,
`__pthread_sighandler`,
`__restore`,
}, `|`)
var lockRxStr = strings.Join([]string{
`RecordLockProfileData`,
`(base::)?RecordLockProfileData.*`,
`(base::)?SubmitMutexProfileData.*`,
`(base::)?SubmitSpinLockProfileData.*`,
`(base::Mutex::)?AwaitCommon.*`,
`(base::Mutex::)?Unlock.*`,
`(base::Mutex::)?UnlockSlow.*`,
`(base::Mutex::)?ReaderUnlock.*`,
`(base::MutexLock::)?~MutexLock.*`,
`(Mutex::)?AwaitCommon.*`,
`(Mutex::)?Unlock.*`,
`(Mutex::)?UnlockSlow.*`,
`(Mutex::)?ReaderUnlock.*`,
`(MutexLock::)?~MutexLock.*`,
`(SpinLock::)?Unlock.*`,
`(SpinLock::)?SlowUnlock.*`,
`(SpinLockHolder::)?~SpinLockHolder.*`,
}, `|`)
```
|
Panteleimon Kulish Gymnasium is a public gymnasium school in Borzna, Ukraine, founded in 1912.
Sources
Ukrainian publishing center "Galaxy-s"
Gymnasium named Panteleimon Kulish Borzna Borznyansky City District Council of Chernihiv region
Ukrainian legal portal
Gymnasium named Panteleimon Kulish Borzna Borznyansky City District Council of Chernihiv region
About naming Panteleimon Kulish Gymnasium Borzna
Educational institutions established in 1912
1912 establishments in the Russian Empire
Gymnasiums in Ukraine
|
Sokole may refer to the following places:
Sokole, Pomeranian Voivodeship (north Poland)
Sokole, Człuchów County in Pomeranian Voivodeship
Sokole, Podlaskie Voivodeship (north-east Poland)
Sokóle, Podlaskie Voivodeship (north-east Poland)
Sokóle, Masovian Voivodeship (east-central Poland)
|
```java
/*
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
*
* path_to_url
*
* Unless required by applicable law or agreed to in writing, software
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/
package org.apache.shardingsphere.test.it.sql.parser.internal.asserts.statement.rdl.create.impl;
import lombok.AccessLevel;
import lombok.NoArgsConstructor;
import org.apache.shardingsphere.readwritesplitting.distsql.segment.ReadwriteSplittingRuleSegment;
import org.apache.shardingsphere.readwritesplitting.distsql.statement.CreateReadwriteSplittingRuleStatement;
import org.apache.shardingsphere.test.it.sql.parser.internal.asserts.SQLCaseAssertContext;
import org.apache.shardingsphere.test.it.sql.parser.internal.asserts.segment.distsql.rdl.ReadwriteSplittingRuleAssert;
import org.apache.shardingsphere.test.it.sql.parser.internal.asserts.statement.ExistingAssert;
import org.apache.shardingsphere.test.it.sql.parser.internal.cases.parser.jaxb.segment.impl.distsql.rdl.ExceptedReadwriteSplittingRule;
import org.apache.shardingsphere.test.it.sql.parser.internal.cases.parser.jaxb.statement.rdl.rule.readwritesplitting.CreateReadwriteSplittingRuleStatementTestCase;
import java.util.Collection;
import java.util.List;
import static org.hamcrest.CoreMatchers.is;
import static org.junit.jupiter.api.Assertions.assertNotNull;
import static org.junit.jupiter.api.Assertions.assertNull;
import static org.hamcrest.MatcherAssert.assertThat;
/**
* Create readwrite-splitting rule statement assert.
*/
@NoArgsConstructor(access = AccessLevel.PRIVATE)
public final class CreateReadwriteSplittingRuleStatementAssert {
/**
* Assert create readwrite-splitting rule statement is correct with expected parser result.
*
* @param assertContext assert context
* @param actual actual create readwrite-splitting rule statement
* @param expected expected create readwrite-splitting rule statement test case
*/
public static void assertIs(final SQLCaseAssertContext assertContext, final CreateReadwriteSplittingRuleStatement actual, final CreateReadwriteSplittingRuleStatementTestCase expected) {
if (ExistingAssert.assertIs(assertContext, actual, expected)) {
assertThat(assertContext.getText("if not exists segment assertion error: "), actual.isIfNotExists(), is(expected.isIfNotExists()));
assertReadwriteSplittingRule(assertContext, actual.getRules(), expected.getRules());
}
}
private static void assertReadwriteSplittingRule(final SQLCaseAssertContext assertContext, final Collection<ReadwriteSplittingRuleSegment> actual,
final List<ExceptedReadwriteSplittingRule> expected) {
if (null == expected) {
assertNull(actual, assertContext.getText("Actual readwrite-splitting rule should not exist."));
} else {
assertNotNull(actual, assertContext.getText("Actual readwrite-splitting rule should exist."));
assertThat(assertContext.getText(String.format("Actual readwrite-splitting rule size should be %s , but it was %s",
expected.size(), actual.size())), actual.size(), is(expected.size()));
int count = 0;
for (ReadwriteSplittingRuleSegment each : actual) {
ReadwriteSplittingRuleAssert.assertIs(assertContext, each, expected.get(count));
count++;
}
}
}
}
```
|
I-9 was an Imperial Japanese Navy Type A1 submarine commissioned in 1941. She saw service during World War II, including operations related to the attack on Pearl Harbor, a patrol off the United States West Coast, and in Operation K. She also took part in the Aleutians campaign and the Guadalcanal campaign before she was sunk in June 1943.
Design and description
Type A1 submarines were versions of the preceding Type J3 with superior range and an improved aircraft installation, and they were fitted as squadron flagships. They displaced on the surface and submerged. The submarines were long and had a beam of and a draft of . They had a diving depth of .
For surface running, Type A1 submaries were powered by two diesel engines, each driving one propeller shaft. When submerged each propeller was driven by a electric motor. They could reach on the surface and underwater. On the surface, the Type A1s had a range of at ; submerged, they had a range of at .
Type A1 submarines were armed with four internal bow torpedo tubes and carried a total of 18 torpedoes. They were also armed with a single /40 deck gun and two twin Type 96 anti-aircraft guns.
Unlike on the Type J3 submarines, the aircraft hangar was integrated into the conning tower and faced forward, and the aircraft catapult was forward of the hangar, while the deck gun was aft of the conning tower. Reversing the locations of the deck gun and catapult allowed aircraft launching from a Type A1 submarine to use the forward motion of the submarine to supplement the speed imparted by the catapult.
Construction and commissioning
Built by the Kure Naval Arsenal at Kure, Japan, I-9 was laid down on 25 January 1938. She was launched on 20 May 1939 and was completed and commissioned on 13 February 1941.
Service history
Pre-World War II
Upon commissioning, I-9 was attached to the Yokosuka Naval District, with Commander Toyojiro Oyama in command. He was relieved by Commander Akiyoshi Fuji (captain from June 1943) in July 1941, who would command the submarine for the rest of its career. As Japan prepared for the upcoming attack on Pearl Harbor, which would bring Japan and the United States into World War II, I-9 was assigned to the Advance Expeditionary Force in the 6th Fleet in November 1941 to serve as the flagship of Submarine Squadron 1 under the command of Rear Admiral Tsutomu Sato.
As the Imperial Japanese Navy began to deploy for the upcoming conflict in the Pacific, I-9 departed Yokosuka, Japan, with Rear Admiral Sato and a Watanabe E9W1 (Allied reporting name "Slim") reconnaissance seaplane embarked, in company with the submarines , , and , bound for the waters of the Hawaiian Islands to participate in Operation Z, the Pearl Harbor attack. While the submarines were en route, they received the message "Climb Mount Niitaka 1208" () from the Combined Fleet on 2 December 1941, indicating that war with the Allies would commence on 8 December 1941 Japan time, which was on 7 December 1941 on the other side of the International Date Line in Hawaii.
World War II
First war patrol: Pearl Harbor and U.S. West Coast
On 7 December 1941, the day of the Pearl Harbor attack, I-9 was on patrol north of Oahu with orders to reconnoiter Hawaiian waters and attack any American ships that sortied from Pearl Harbor. On 11 December 1941, she battle-surfaced northeast of Oahu on the starboard quarter of the unarmed Matson Line steamer — returning to Hawaii with a cargo of of molasses and of scrap iron after the outbreak of war — and fired a warning shot. Lahaina′s crew transmitted an SOS and abandoned ship, after which I-9 fired 25 rounds, scoring eight hits on Lahaina′s starboard side and four on her port side and setting Lahaina′s superstructure on fire before departing the area. On the morning of 12 December, Lahaina′s crew attempted to reboard her, but found that fires and flooding aboard her were out of control, and after suffering an explosion, Lahaina capsized to port and sank at around 12:30 at . After two crew members died of exposure and two others committed suicide, Lahaina′s 30 survivors reached Kahului, Maui, on 21 December 1941.
On 13 December 1941, Japanese Imperial General Headquarters ordered the submarines of the 6th Fleet to bombard the United States West Coast. The 6th Fleet′s commander, Vice Admiral Mitsumi Shimizu, in turn ordered I-9 and the submarines , I-15, I-17, , , , I-25, and each to fire 30 rounds at targets on the U.S. West Coast on the evening of 25 December 1941, with Rear Admiral Sato aboard I-9 in overall command of the bombardment. I-9 arrived in her patrol area off Cape Blanco, Oregon, on 19 December 1941. On 22 December 1941 the commander-in-chief of the Combined Fleet, Admiral Isoroku Yamamoto, postponed the bombardment until 27 December, and on 22 December I-9 departed her patrol area to make for the Guadalupe Island area off the west coast of Mexico′s Baja California Peninsula. On 27 December 1941, Sato cancelled the bombardment because most of the submarines tasked with carrying it out were low on fuel, and I-9 headed for Kwajalein in the Marshall Islands, which she reached on 1 January 1942.
Second war patrol and Operation K-1
On 1 February 1942, planes from the United States Navy aircraft carrier raided Kwajalein, and two hours later 6th Fleet Headquarters ordered Submarine Squadron 1, including I-9, to put to sea to find and attack Enterprise. I-9 got underway from Kwajalein later the same day to begin her second war patrol, carrying a Watanabe E9W1 (Allied reporting name "Slim") floatplane. During her patrol, she was selected on 5 February 1942 to participate in Operation K-1, an attack on Pearl Harbor in which two Imperial Japanese Navy Kawanishi H8K (Allied reporting name "Emily") flying boats were to fly from Wotje Atoll in the Marshall Islands to the French Frigate Shoals in the Northwestern Hawaiian Islands, refuel from the submarines I-15, I-19, and I-26 there, and then fly on to attack Pearl Harbor to the east-southeast. The submarine I-23 was to patrol south of Hawaii to provide weather reports and an air-sea rescue capability if either or both of the flying boats were forced down, and I-9 was to operate in an area halfway between Wotje Atoll and the French Frigate Shoals to transmit a radio beacon signal to help the flying boats navigate during the first leg of their flight.
I-9 arrived in an operating area south of Hawaii on 7 February 1942, and on 23 February launched her E9W1 floatplane for a reconnaissance flight over Pearl Harbor. Its crew could not identify any ships in the harbor because of poor visibility and returned to I-9; during the recovery of their aircraft, both of its wings suffered damage. On 28 February 1942, I-9 proceeded to her operating area for Operation K-1, which she reached on 1 March, providing a communications relay and radio beacon service at , which the Japanese designated "Point M." The two H8Ks flew to the French Frigate Shoals on 4 March 1942, and after refueling there dropped eight bombs through overcast over Honolulu on 5 March, inflicting little damage and no casualties, before flying back to the Marshall Islands. I-9 subsequently returned to Japan, arriving at Yokosuka on 21 March 1942.
Third war patrol
After embarking a Yokosuka E14Y1 (Allied reporting name "Glen") floatplane, I-9 departed Yokosuka on 15 May 1942, assigned to support Operation AL, the invasion of the western Aleutian Islands that began the Aleutian Islands campaign. She called at Ōminato, Japan, from 17 to 19 May 1942, then got back underway. She was reassigned to the Northern District Force on 20 May 1942, and on 21 May Submarine Squadron 1 ( I-15, I-17, I-19, I-25, and I-26) received orders to conduct a pre-invasion reconnaissance of the Aleutians. At dawn on 24 May, I-9′s floatplane reconnoitered Kiska and Amchitka, and its pilot recommended Reynard Cove on Kiska as the best place for an amphibious landing and reported that previous reports of an airfield on Amchitka were erroneous. In another reconnaissance flight at around 05:00 on 26 May, the floatplane scouted Adak Island and Kanaga Island, its pilot reporting that he saw eight bivouacs and other, similar buildings on Adak.
On 29 May 1942, I-9 provided distant cover for a Japanese force centered around the aircraft carriers and as it approached the Aleutians. After Japanese forces occupied Attu Island against no opposition on 5 June 1942, I-9 joined a submarine patrol line off the Aleutians. On 7 June, the Japanese occupied Kiska without opposition, and on 8 June the Japanese submarine patrol line moved to the Kodiak Island area. On 15 June 1942, I-9′s floatplane flew a reconnaissance flight over Naval Air Station Kodiak, and the same day I-9 herself unsuccessfully attacked two merchant ships near Kodiak Island. On 19 June 1942, she attacked the United States Army Transport USAT General W. C. Gorgas with gunfire in the Gulf of Alaska at , damaging her. Reassigned to the Advance Force on 30 June 1942, she departed her operating area and made for Yokosuka, which she reached on 7 July 1942.
Fourth war patrol
Assigned to take part in the Guadalcanal campaign, which began with United States Marine Corps landings on Guadalcanal in the Solomon Islands on 7 August 1942, I-9 — with the commander of Submarine Squadron 1, Rear Admiral Shigeaki Yamazaki, embarked — got underway from Yokosuka on 15 August 1942 in company with the submarines I-15, I-17, I-19, and I-26. She joined submarine patrol line A off San Cristóbal in the southeastern Solomons on 23 August.
The Battle of the Eastern Solomons began on 24 August 1942. While screening U.S. Navy Task Force 11 as the battle continued on 25 August, the destroyer at 11:43 sighted what she first identified as the superstructure of an aircraft carrier to the west-southwest, but two minutes after detaching from the task force to investigate she correctly identified it as the conning tower of a submerging submarine. It was I-9, which avoided Grayson′s first depth-charge attack at 12:23 by turning inside Grayson′s turning radius. Grayson regained contact and dropped another set of depth charges, but I-9 avoided them with a hard turn at full speed at a depth of . A Douglas SBD Dauntless dive bomber from the aircraft carrier arrived overhead and harassed I-9 with a dummy attack. Grayson made a third depth-charge attack after 13:29, and I-9 headed due west at and broke contact with Grayson. Grayson regained contact at 13:47 and made a fourth attack, but I-9 avoided the depth charges by turning to the west-southwest at . After the destroyer appeared on the scene, Grayson dropped the last of her depth charges in a fifth attack which rocked I-9 with nearby explosions, slowing her to , knocking out her internal lighting and aft bilge pump, causing a leak in one of her forward fuel tanks, and dropping her to a depth of .
Patterson began her first attack run against I-9 at 14:18, but she failed to detect the submarine because of the turbulence created by Grayson′s final depth-charge attack. After the destroyer arrived to assist at 14:38, Patterson established sonar contact on I-9 at 14:40 and a few minutes later her lookouts reported sighting a surfacing submarine, which the Dauntless marked with a smoke float. Patterson and Monssen each made a depth-charge attack, after which a large air bubble and an oil slick appeared on the surface, prompting the destroyers to depart the area and claim a kill.
I-9 had survived, however, and two hours after the final depth-charge attack she surfaced. Her crew inspected her and found additional damage in the form of two inoperable periscopes and a temporarily knocked-out radio transmitter. After Rear Admiral Yamazaki reported I-9′s condition, I-9 received orders to proceed to the Japanese base at Truk Atoll, which she reached on 30 August 1942.
Fifth war patrol
After the completion of repairs by the repair ship , I-9 departed Truk to begin her fifth war patrol on 8 September 1942, headed for a patrol area southeast of Guadalcanal. She was assigned to the 2nd Patrol Unit on 15 September 1942 and that day sighted several Allied transports. On 23 September, she briefly pursued an Allied transport escorted by a destroyer. She departed her patrol area on 1 October 1942 and returned to Truk on 6 October.
Sixth war patrol
After the staff of Submarine Squadron 1 transferred ashore at Truk on 13 October 1942, I-9 began her sixth war patrol on 16 October with a Yokosuka E14Y1 (Allied reporting name "Glen") aboard, assigned a patrol area southeast of the Solomon Islands. She had been reassigned to the B Patrol Unit by 31 October 1942, when she received orders to reconnoiter Nouméa on the coast of Grande Terre in New Caledonia. Her floatplane flew a reconnaissance mission over the airfield and harbor at Nouméa, reporting an aircraft carrier, three cruisers, and a number of smaller ships in the harbor.
On 7 November 1942, I-9 detached from the B Patrol Unit to conduct a reconnaissance flight over Espiritu Santo in the New Hebrides. She received orders on 11 November to proceed to the anchorage at Shortland Island in the Shortland Islands after completing the flight. Her floatplane flew over Espiritu Santo on 12 November, but dense cloud cover prevented its crew from sighting any ships. She then made for the Shortland anchorage, which she reached on 19 November 1942.
Guadalcanal supply runs
While I-9 was still at sea, the commander of the 6th Fleet, Vice Admiral Teruhisa Komatsu, addressed a meeting of the commanding officers of his fleet′s submarines on 16 November 1942 to inform them that the commander-in-chief of the Combined Fleet, Admiral Isoroku Yamamoto, had ordered the 6th Fleet to organize a system of supply runs to the Imperial Japanese Army's 17th Army forces fighting on Guadalcanal. Selected to participate in the supply operation, I-9 loaded cargo after arriving at the Shortland anchorage, and on 24 November 1942 set out for Guadalcanal with a cargo of 32 tons of ammunition and food. She arrived at Kamimbo on the northwest coast of Guadalcanal and unloaded her cargo on 26 November, then departed for Truk, where she arrived on 1 December 1942.
In late December 1942, I-9 got back underway, departing Truk for the Shortland anchorage, where she called from 2 to 4 January 1943 to load 21 tons of food in rubber containers. She then proceeded to Guadalcanal on her second supply run, where she unloaded the containers at Kamimbo on 6 January 1943. She then returned to Shortland, where she arrived on 8 January. She departed on 10 January for her third supply run, but was forced to abandon her plans to unload her cargo when she arrived off Guadalcanal on 12 January 1943 to find the Kamimbo area patrolled by Allied motor torpedo boats.
I-9′s fourth supply run also was unsuccessful: She departed Shortland on 16 January 1943 intending to release her supply drums underwater, but found she could not release them when she arrived off Kamimbo on 18 January. She returned to the Shortland anchorage on 20 January. She got back underway on 22 January 1943 for her fifth supply run carrying 18 tons of cargo in 120 supply drums and unloaded 80 of the drums at Kamimbo on 25 January 1943 before Allied motor torpedo boats drove her off. She returned to Shortland on 27 January 1943. Her sixth supply run began on 28 January 1943 with her departure from Shortland and she succeeded in releasing all of her supply drums off Kamimbo on 30 January, but Allied motor torpedo boats arrived on the scene and sank all of the drums before Japanese forces ashore could recover them. She reached the Shortland anchorage on 1 February 1943. In Operation Ke, the Japanese evacuated their forces from Guadalcanal, completing the operation on 8 February 1943.
February–May 1943
While Operation Ke was underway, I-9 departed the Shortland anchorage on 1 February 1943, called at Truk on 4 and 5 February, and then proceeded to Yokosuka, which she reached on 12 February 1943. On 20 February, she moved to Kobe, Japan, where she entered the Kawasaki shipyard for repairs. While I-9 was at Kobe, the U.S. Navy submarine attacked a Japanese submarine off Truk that she misidentified as I-9; the submarine she attacked probably was .
Aleutian Islands 1943
On 11 May 1943, the Battle of Attu began when the United States Army's 7th Infantry Division landed on Attu in the Aleutian Islands, and on 12 May 1943 I-9 was reassigned to the Northern District Force. With her repairs complete, she called at Kure from 12 to 13 May before arriving at Yokosuka on 16 May 1943. During her stay at Kure, with the situation on Attu deteriorating for the Japanese, Imperial General Headquarters on 21 May decided to evacuate the Japanese garrison on Kiska. I-9 departed Yokosuka on 23 May bound for Paramushiro in the Kurile Islands.
After calling at Paramushiro from 27 to 29 May 1943, I-9 set out for Kiska with a cargo of 17 tons of ammunition and two tons of food. During her voyage, a destroyer chased her for three hours on 1 June in the Bering Sea off Agattu, but she arrived safely at Kiska on 2 June 1943. She unloaded her cargo, embarked 55 Imperial Japanese Navy personnel, 10 Imperial Japanese Army soldiers, and 10 civilian construction workers, and departed the same day for Paramushiro, where she arrived on 8 June 1943.
On 10 June 1943, I-9 got underway from Paramushiro for her second Kiska supply run, with orders to evacuate the personnel of the Kiska midget submarine base. The Japanese never heard from her again.
Loss
At 17:58 on 13 June 1943, the U.S. Navy destroyer was off the coast of Kiska off Sirius Point when she detected I-9 on the surface on radar in dense fog at a range of . She headed toward the contact at , and
gained sonar contact on I-9. One of Frazier′s lookouts sighted a periscope at a range of at 20:09. Frazier opened fire, scoring one hit on the periscope, then made a depth-charge attack, after which air bubbles, oil, and debris came to the surface. Frazier then conducted two more depth-charge attacks to ensure the submarine's destruction. It was the end of I-9, lost with all hands northwest of Kiska at .
On 15 June 1943, the Japanese declared I-9 to be presumed lost off Kiska with all 101 hands. She was stricken from the navy list on 1 August 1943.
After World War II, Samuel Eliot Morison′s History of United States Naval Operations in World War II incorrectly identified the submarine Frazier sank on 13 June 1943 off Kiska as , but Frazier sank I-31 on 12 May 1943 off Attu. The Dictionary of American Naval Fighting Ships, meanwhile, asserts that Frazier attacked two different contacts off Kiska on 10–11 June 1943, not on 13 June 1943, and was unable to determine the results of her attacks.
Notes
References
Type A1 submarines
1939 ships
World War II submarines of Japan
Japanese submarines lost during World War II
Ships of the Aleutian Islands campaign
World War II shipwrecks in the Bering Sea
Maritime incidents in June 1943
Ships built by Kure Naval Arsenal
Shipwrecks of the Alaska coast
Warships lost in combat with all hands
Submarines lost with all hands
Submarines sunk by United States warships
|
Gabriel García-Badell Lapetra (28 May 1936 – 11 March 1994) was a Spanish writer. He received a degree in law and is linked to Aragon, where he worked as a lawyer for the IRYDA (Institute of agricultural reform and development).
His first novel was "Las manos de mi padre", published in 1968, a monologue in which the protagonist returns to his paternal home after a 4 years voyage.
He was a four-time runner-up for the Premio Nadal, a record.
References
Spanish male novelists
1936 births
1994 deaths
20th-century Spanish novelists
20th-century Spanish male writers
|
```php
<?php
/*
*
*
* path_to_url
*
* Unless required by applicable law or agreed to in writing, software
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
*/
namespace Google\Service\DatabaseMigrationService;
class DatabaseType extends \Google\Model
{
/**
* @var string
*/
public $engine;
/**
* @var string
*/
public $provider;
/**
* @param string
*/
public function setEngine($engine)
{
$this->engine = $engine;
}
/**
* @return string
*/
public function getEngine()
{
return $this->engine;
}
/**
* @param string
*/
public function setProvider($provider)
{
$this->provider = $provider;
}
/**
* @return string
*/
public function getProvider()
{
return $this->provider;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DatabaseType::class, 'Google_Service_DatabaseMigrationService_DatabaseType');
```
|
Robin Chesnut-Tangerman is a Vermont politician who served as the Progressive Caucus Leader of the Vermont House of Representatives, representing the Rutland-Bennington district. He is the owner-operator of Talisman Woodwork. He is also an environmental columnist for the Rutland Herald, writing a column called Weekly Planet and participates in community theater.
References
External links
Election website
21st-century American politicians
Living people
Members of the Vermont House of Representatives
People from Middletown Springs, Vermont
Vermont Progressive Party politicians
Year of birth missing (living people)
|
```javascript
/**
* @license Apache-2.0
*
*
*
* path_to_url
*
* Unless required by applicable law or agreed to in writing, software
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/
'use strict';
// MODULES //
var gammainc = require( '@stdlib/math/base/special/gammainc' );
var isnan = require( '@stdlib/math/base/assert/is-nan' );
var floor = require( '@stdlib/math/base/special/floor' );
var PINF = require( '@stdlib/constants/float64/pinf' );
// MAIN //
/**
* Evaluates the cumulative distribution function (CDF) for a Poisson distribution with mean parameter `lambda` at a value `x`.
*
* @param {number} x - input value
* @param {NonNegativeNumber} lambda - mean parameter
* @returns {Probability} evaluated CDF
*
* @example
* var y = cdf( 2.0, 0.5 );
* // returns ~0.986
*
* @example
* var y = cdf( 2.0, 10.0 );
* // returns ~0.003
*
* @example
* var y = cdf( -1.0, 4.0 );
* // returns 0.0
*
* @example
* var y = cdf( NaN, 1.0 );
* // returns NaN
*
* @example
* var y = cdf( 0.0, NaN );
* // returns NaN
*
* @example
* // Negative mean parameter:
* var y = cdf( 2.0, -1.0 );
* // returns NaN
*/
function cdf( x, lambda ) {
if ( isnan( x ) || isnan( lambda ) || lambda < 0.0 ) {
return NaN;
}
if ( x < 0.0 ) {
return 0.0;
}
if ( lambda === 0.0 ) {
return 1.0;
}
if ( x === PINF ) {
return 1.0;
}
return gammainc( lambda, floor( x ) + 1.0, true, true );
}
// EXPORTS //
module.exports = cdf;
```
|
FlyMex, legally FlyMex, Servicios Integrales de Aviacion S.A. de C.V., is a charter airline based in Toluca, Mexico.
Fleet
The airline's fleet included the following aircraft ():
Agusta A109
Embraer 135
Embraer 145
Hawker 800XP
Learjet 45
Learjet 31
M7-420 Amphibian
Gallery
References
External links
Official website
Charter airlines of Mexico
Airlines of Mexico
|
Karanayevo (; , Qaranay) is a rural locality (a village) in Duvan-Mechetlinsky Selsoviet, Mechetlinsky District, Bashkortostan, Russia. The population was 170 as of 2010. There are 4 streets.
Geography
Karanayevo is located 41 km south of Bolsheustyikinskoye (the district's administrative centre) by road. Duvan-Mechetlino is the nearest rural locality.
References
Rural localities in Mechetlinsky District
|
Walter E. Fountain (born November 7, 1961) is a retired United States Army officer who attained the rank of major general. In his final assignment, he served beginning in January 2018 as Director of Domestic Operations and Force Development at the National Guard Bureau. His previous assignments include Assistant to the Chairman of the Joint Chiefs of Staff for National Guard Matters, Deputy Director for Domestic Operations (J-3) at United States Northern Command, Assistant Adjutant General of the Oklahoma National Guard, and acting Deputy Director of the Army National Guard.
Early life
Walter Emery Fountain was born in Prague, Oklahoma, on November 7, 1961. He enlisted in the Oklahoma Army National Guard in 1980, and was trained as a UH-1 helicopter mechanic.
Start of military career
In 1981 he completed Officer Candidate School and received his commission as a second lieutenant of Infantry. Fountain later became qualified in the Aviation branch and advanced through several command and staff assignments. He became a full-time member of the National Guard in 1986. His command positions included: Company C, 1st Battalion 245th Aviation Regiment, Lexington, Oklahoma (1991–1994); Airfield, Headquarters, State Area Command, Oklahoma City, Oklahoma (1994–1996); Army Aviation Support Facility, Headquarters, State Area Command, Oklahoma City, Oklahoma (1996–1997); 1st Battalion, 245th Aviation, Tulsa, Oklahoma (2001–2003); and 90th Troop Command, Oklahoma City, Oklahoma (2003–2005).
Fountain is a veteran of the Iraq War, having served as Chief of National Guard Affairs for Multi-National Corps – Iraq at Camp Victory, Baghdad from 2008 to 2009.
Career as a general officer
In November, 2011 Fountain was promoted to brigadier general and assigned as the Oklahoma National Guard’s Assistant Adjutant General – Army. He served in this position until July, 2012 when he was appointed a Special Assistant to the Director of the Army National Guard.
Fountain served as acting Deputy Director of the Army National Guard in 2013, following the departure of Timothy J. Kadavy for an assignment in Afghanistan and prior to the arrival of Kadavy’s replacement, Judd H. Lyons. He again acted as Deputy Director from January, 2014 to March, 2015, while Deputy Director Judd H. Lyons acted as Director of the Army National Guard. In June, 2015 Lyons was reassigned and Fountain again became acting Deputy Director, pending selection of permanent replacement.
In October, 2015 Fountain was assigned as deputy director for domestic operations (J-3) at United States Northern Command.
Fountain was assigned as Special Assistant to the Chief of the National Guard Bureau and promoted to major general in October, 2016. In December, 2016 he was assigned as Assistant to the Chairman of the Joint Chiefs of Staff for National Guard Matters. In January 2018, he was assigned as Director of Domestic Operations and Force Development at the National Guard Bureau. He retired in 2020.
Education
In 1996 Fountain completed a Bachelor of Science degree in Applied Sciences at Thomas Edison State College in Trenton, New Jersey. He received a Master of Science degree in Natural and Applied Sciences from Oklahoma State University in 1998. In 2002 Fountain graduated from the United States Army War College with a Master’s degree in Strategic Studies.
In addition to the Army War College, Fountain’s military education includes: the Infantry Officer Basic Course; Aviation Officer Advanced Course; Air Assault School; Airborne School; United States Army Command and General Staff College; Joint Air Command and Control Course; Joint and Combined Warfighting Course; and Joint Task Force Commanders Course.
Fountain has also completed executive-level seminars and similar education, to include: Level IV Antiterrorism Executive Seminar; General Officer/Senior Executive Service Force Integration Course; National Security Management Course, Maxwell School of Citizenship and Public Affairs, Syracuse University; and George C. Marshall Center Senior Executive Seminar, Central Asia After ISAF Transition.
Family
Fountain has been married to the former Elizabeth Ann Thompson since 2007. Mrs. Fountain graduated from Oklahoma State University, where she was a sorority sister of Governor Mary Fallin.
Awards
Army Distinguished Service Medal
Defense Superior Service Medal
Bronze Star Medal
Meritorious Service Medal (with 2 Bronze Oak Leaf Clusters)
Army Commendation Medal
Army Achievement Medal
Army Reserve Components Achievement Medal (with 1 Silver and 2 Bronze Oak Leaf Clusters)
National Defense Service Medal (with Bronze Service Star)
Iraq Campaign Medal (with Bronze Service Star)
Global War on Terrorism Service Medal
Humanitarian Service Medal
Armed Forces Reserve Medal (with Silver Hourglass Device and 'M' Device)
Joint Meritorious Unit Award
Army Service Ribbon
Army Reserve Component Overseas Training Ribbon (with Bronze Numeral 2)
Army Master Aviator Badge
Parachutist Badge
Air Assault Badge
Assignments
December 1981 – November 1982, platoon leader, Detachment 1, Company A, 1st Battalion 179th Infantry, Fairfax, Oklahoma
November 1982 – July 1983, Student, Rotary Wing Aviation Course, Fort Rucker, Alabama
July 1983 – March 1986, Pilot, Detachment 2, Headquarters and Headquarters Company, 45th Infantry Brigade, Lexington, Oklahoma
April 1986 – September 1987, Section Commander, Detachment 1, Headquarters and Headquarters Company, 45th Infantry Brigade, Lexington, Oklahoma
September 1987 – February 1989, S-1, Troop Command (Aviation), Lexington, Oklahoma
February 1989 – September 1991, Platoon Leader, Company B, 1st Battalion 245th Aviation, Lexington, Oklahoma
October 1991 – September 1994, Commander, Company C, 1st Battalion 245th Aviation, Lexington, Oklahoma
September 1994 – August 1996, Airfield Commander, Headquarters, State Area Command, Oklahoma City, Oklahoma
September 1996 – August 1997, Commander, Army Aviation Support Facility, Headquarters, State Area Command, Oklahoma City, Oklahoma
September 1997 – August 2001, S-3 (Air), Headquarters, State Area Command, Oklahoma City, Oklahoma
September 2001 – August 2003, Commander, 1st Battalion, 245th Aviation, Tulsa, Oklahoma
September 2003 – June 2005, Commander, 90th Troop Command, Oklahoma City, Oklahoma
July 2005 – November 2008, Director, Office of the Deputy Chief of Staff, Operations, Joint Force Headquarters, Oklahoma City, Oklahoma
November 2008 – June 2009, Chief, National Guard Affairs, Multi-National Corps – Baghdad, Iraq
June 2009 – November 2011, Director, Office of the Deputy Chief of Staff, Operations, Joint Force Headquarters, Oklahoma City, Oklahoma
November 2011 – July 2012, Assistant Adjutant General – Army, Joint Force Headquarters, Oklahoma City, Oklahoma
July 2012 – September 2013, Support Special Assistant to the Director, Army National Guard, National Guard Bureau, Arlington, Virginia
October 2013 – September 2014, Operations Special Assistant to the Director, Army National Guard, National Guard Bureau, Arlington, Virginia
October 2014 – October 2015, Special Assistant to the Director, Army National Guard Liaison for Force Structure and Strategic Policy, National Guard Bureau, Arlington, Virginia
October 2015 – September 2016, Deputy Director, Operations, J-3, United States Northern Command, Peterson Air Force Base, Colorado
October 2016 - December 2016, Special Assistant to the Chief, National Guard Bureau, Arlington, Virginia,
December 2016 – December 2017, Assistant to the Chairman of the Joint Chiefs of Staff for National Guard Matters, Washington, District of Columbia
January 2018 - 2020, Director, Domestic Operations and Force Development NGB J-3/7, National Guard Bureau, Arlington, Virginia
Effective dates of promotions
Major General, October 21, 2016
Brigadier General, November 8, 2011
Colonel, September 11, 2003
Lieutenant Colonel, October 10, 1996
Major, December 4, 1991
Captain, April 2, 1987
First Lieutenant, December 2, 1984
Second Lieutenant, December 3, 1981
References
1961 births
Living people
People from Prague, Oklahoma
People from Norman, Oklahoma
United States Army personnel of the Iraq War
Thomas Edison State University alumni
American Master Army Aviators
Oklahoma State University alumni
United States Army Command and General Staff College alumni
United States Army War College alumni
Recipients of the Distinguished Service Medal (US Army)
United States Army generals
National Guard (United States) generals
Oklahoma National Guard personnel
|
People's Aid (Spanish:Socorro Popular, SOPO) was a Peruvian mass organization formed by the insurgent Communist Party of Peru-Shining Path; purposed to provide legal defense to members and associates accused by the state for crimes such as terrorism. It also provided logistical and medical support.
History
In 1979, SOPO was founded and led by Yovanka Pardavé Trujillo, after the party's Tenth Expanded Plenary Session session established civil organizations to recruit the civilian population into a United Front for subversion.
In 1985, SOPO suffered an internal line struggle over the issue of the militarization of mass organizations.
By the end of 1986, SOPO became integral to the Shining Path's armed "people's war," with militant detachments carved out of the group for conducting various terrorist attacks. Directed by the Pilot Plan of the Revolutionary Movement for the Defense of the People (MRDP), SOPO would displace the Metropolitan Committee (METRO) as an important central apparatus.
SOPO was dismantled in 1992 after both Trujillo and succeeding leader Martha Huatay were captured by DIRCOTE agents.
References
Legal organizations
Legality of wars
Organisations based in Peru
Shining Path
Left-wing terrorism
Military medical organizations
|
National Olympic may refer to
National Olympic Committee, the national constituent of the worldwide Olympic movement.
Phnom Penh Olympic Stadium, a stadium in Cambodia.
Olympic National Park, a national park in the United States.
|
```objective-c
/**
Lightweight profiler library for c++
* MIT license (LICENSE.MIT or path_to_url
at your option.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished
to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
USE OR OTHER DEALINGS IN THE SOFTWARE.
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.
**/
#ifndef EASY_PROFILER_READER_H
#define EASY_PROFILER_READER_H
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
#include <atomic>
#include <functional>
#include <iostream>
#include <unordered_map>
#include <string>
#include <vector>
#include <easy/serialized_block.h>
#include <easy/details/arbitrary_value_public_types.h>
#include <easy/utility.h>
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
namespace profiler {
using processid_t = uint64_t;
using calls_number_t = uint32_t;
using block_index_t = uint32_t;
#pragma pack(push, 1)
struct BlockStatistics EASY_FINAL
{
profiler::timestamp_t total_duration; ///< Total duration of all block calls
profiler::timestamp_t median_duration; ///< Median duration of all block calls
profiler::timestamp_t total_children_duration; ///< Total duration of all children of all block calls
profiler::block_index_t min_duration_block; ///< Will be used in GUI to jump to the block with min duration
profiler::block_index_t max_duration_block; ///< Will be used in GUI to jump to the block with max duration
profiler::block_index_t parent_block; ///< Index of block which is "parent" for "per_parent_stats" or "frame" for "per_frame_stats" or thread-id for "per_thread_stats"
profiler::calls_number_t calls_number; ///< Block calls number
explicit BlockStatistics(profiler::timestamp_t _duration, profiler::block_index_t _block_index, profiler::block_index_t _parent_index)
: total_duration(_duration)
, median_duration(0)
, total_children_duration(0)
, min_duration_block(_block_index)
, max_duration_block(_block_index)
, parent_block(_parent_index)
, calls_number(1)
{
}
//BlockStatistics() = default;
inline profiler::timestamp_t average_duration() const
{
return total_duration / calls_number;
}
}; // END of struct BlockStatistics.
#pragma pack(pop)
extern "C" PROFILER_API void release_stats(BlockStatistics*& _stats);
//////////////////////////////////////////////////////////////////////////
class BlocksTree EASY_FINAL
{
using This = BlocksTree;
public:
using blocks_t = std::vector<This>;
using children_t = std::vector<profiler::block_index_t>;
children_t children; ///< List of children blocks. May be empty.
union {
profiler::SerializedBlock* node; ///< Pointer to serialized data for regular block (id, name, begin, end etc.)
profiler::SerializedCSwitch* cs; ///< Pointer to serialized data for context switch (thread_id, name, begin, end etc.)
profiler::ArbitraryValue* value; ///< Pointer to serialized data for arbitrary value
};
profiler::BlockStatistics* per_parent_stats; ///< Pointer to statistics for this block within the parent (may be nullptr for top-level blocks)
profiler::BlockStatistics* per_frame_stats; ///< Pointer to statistics for this block within the frame (may be nullptr for top-level blocks)
profiler::BlockStatistics* per_thread_stats; ///< Pointer to statistics for this block within the bounds of all frames per current thread
uint8_t depth; ///< Maximum number of sublevels (maximum children depth)
BlocksTree(const This&) = delete;
This& operator = (const This&) = delete;
BlocksTree() EASY_NOEXCEPT
: node(nullptr)
, per_parent_stats(nullptr)
, per_frame_stats(nullptr)
, per_thread_stats(nullptr)
, depth(0)
{
}
BlocksTree(This&& that) EASY_NOEXCEPT
: BlocksTree()
{
make_move(std::forward<This&&>(that));
}
This& operator = (This&& that) EASY_NOEXCEPT
{
make_move(std::forward<This&&>(that));
return *this;
}
~BlocksTree() EASY_NOEXCEPT
{
release_stats(per_thread_stats);
release_stats(per_parent_stats);
release_stats(per_frame_stats);
}
bool operator < (const This& other) const EASY_NOEXCEPT
{
if (node == nullptr || other.node == nullptr)
return false;
return node->begin() < other.node->begin();
}
void shrink_to_fit() EASY_NOEXCEPT
{
//for (auto& child : children)
// child.shrink_to_fit();
// shrink version 1:
//children.shrink_to_fit();
// shrink version 2:
//children_t new_children;
//new_children.reserve(children.size());
//std::move(children.begin(), children.end(), std::back_inserter(new_children));
//new_children.swap(children);
}
private:
void make_move(This&& that) EASY_NOEXCEPT
{
if (per_thread_stats != that.per_thread_stats)
release_stats(per_thread_stats);
if (per_parent_stats != that.per_parent_stats)
release_stats(per_parent_stats);
if (per_frame_stats != that.per_frame_stats)
release_stats(per_frame_stats);
children = std::move(that.children);
node = that.node;
per_parent_stats = that.per_parent_stats;
per_frame_stats = that.per_frame_stats;
per_thread_stats = that.per_thread_stats;
depth = that.depth;
that.node = nullptr;
that.per_parent_stats = nullptr;
that.per_frame_stats = nullptr;
that.per_thread_stats = nullptr;
}
}; // END of class BlocksTree.
//////////////////////////////////////////////////////////////////////////
struct Bookmark EASY_FINAL
{
EASY_STATIC_CONSTEXPR size_t BaseSize = sizeof(profiler::timestamp_t) +
sizeof(profiler::color_t) + 1;
std::string text;
profiler::timestamp_t pos;
profiler::color_t color;
};
using bookmarks_t = std::vector<Bookmark>;
//////////////////////////////////////////////////////////////////////////
class BlocksTreeRoot EASY_FINAL
{
using This = BlocksTreeRoot;
public:
BlocksTree::children_t children; ///< List of children indexes
BlocksTree::children_t sync; ///< List of context-switch events
BlocksTree::children_t events; ///< List of events indexes
std::string thread_name; ///< Name of this thread
profiler::timestamp_t profiled_time; ///< Profiled time of this thread (sum of all children duration)
profiler::timestamp_t wait_time; ///< Wait time of this thread (sum of all context switches)
profiler::thread_id_t thread_id; ///< System Id of this thread
profiler::block_index_t frames_number; ///< Total frames number (top-level blocks)
profiler::block_index_t blocks_number; ///< Total blocks number including their children
uint8_t depth; ///< Maximum stack depth (number of levels)
BlocksTreeRoot(const This&) = delete;
This& operator = (const This&) = delete;
BlocksTreeRoot() EASY_NOEXCEPT
: profiled_time(0), wait_time(0), thread_id(0), frames_number(0), blocks_number(0), depth(0)
{
}
BlocksTreeRoot(This&& that) EASY_NOEXCEPT
: children(std::move(that.children))
, sync(std::move(that.sync))
, events(std::move(that.events))
, thread_name(std::move(that.thread_name))
, profiled_time(that.profiled_time)
, wait_time(that.wait_time)
, thread_id(that.thread_id)
, frames_number(that.frames_number)
, blocks_number(that.blocks_number)
, depth(that.depth)
{
}
This& operator = (This&& that) EASY_NOEXCEPT
{
children = std::move(that.children);
sync = std::move(that.sync);
events = std::move(that.events);
thread_name = std::move(that.thread_name);
profiled_time = that.profiled_time;
wait_time = that.wait_time;
thread_id = that.thread_id;
frames_number = that.frames_number;
blocks_number = that.blocks_number;
depth = that.depth;
return *this;
}
inline bool got_name() const EASY_NOEXCEPT
{
return !thread_name.empty();
}
inline const char* name() const EASY_NOEXCEPT
{
return thread_name.c_str();
}
bool operator < (const This& other) const EASY_NOEXCEPT
{
return thread_id < other.thread_id;
}
}; // END of class BlocksTreeRoot.
struct BeginEndTime
{
profiler::timestamp_t beginTime;
profiler::timestamp_t endTime;
};
using blocks_t = profiler::BlocksTree::blocks_t;
using thread_blocks_tree_t = std::unordered_map<profiler::thread_id_t, profiler::BlocksTreeRoot, ::estd::hash<profiler::thread_id_t> >;
using block_getter_fn = std::function<const profiler::BlocksTree&(profiler::block_index_t)>;
//////////////////////////////////////////////////////////////////////////
class PROFILER_API SerializedData EASY_FINAL
{
uint64_t m_size;
char* m_data;
public:
SerializedData(const SerializedData&) = delete;
SerializedData& operator = (const SerializedData&) = delete;
SerializedData();
SerializedData(SerializedData&& that);
~SerializedData();
void set(uint64_t _size);
void extend(uint64_t _size);
SerializedData& operator = (SerializedData&& that);
char* operator [] (uint64_t i);
const char* operator [] (uint64_t i) const;
bool empty() const;
uint64_t size() const;
char* data();
const char* data() const;
void clear();
void swap(SerializedData& other);
private:
void set(char* _data, uint64_t _size);
}; // END of class SerializedData.
//////////////////////////////////////////////////////////////////////////
using descriptors_list_t = std::vector<SerializedBlockDescriptor*>;
} // END of namespace profiler.
extern "C" {
PROFILER_API profiler::block_index_t fillTreesFromFile(std::atomic<int>& progress, const char* filename,
profiler::BeginEndTime& begin_end_time,
profiler::SerializedData& serialized_blocks,
profiler::SerializedData& serialized_descriptors,
profiler::descriptors_list_t& descriptors,
profiler::blocks_t& _blocks,
profiler::thread_blocks_tree_t& threaded_trees,
profiler::bookmarks_t& bookmarks,
uint32_t& descriptors_count,
uint32_t& version,
profiler::processid_t& pid,
bool gather_statistics,
std::ostream& _log);
PROFILER_API profiler::block_index_t fillTreesFromStream(std::atomic<int>& progress, std::istream& str,
profiler::BeginEndTime& begin_end_time,
profiler::SerializedData& serialized_blocks,
profiler::SerializedData& serialized_descriptors,
profiler::descriptors_list_t& descriptors,
profiler::blocks_t& _blocks,
profiler::thread_blocks_tree_t& threaded_trees,
profiler::bookmarks_t& bookmarks,
uint32_t& descriptors_count,
uint32_t& version,
profiler::processid_t& pid,
bool gather_statistics,
std::ostream& _log);
PROFILER_API bool readDescriptionsFromStream(std::atomic<int>& progress, std::istream& str,
profiler::SerializedData& serialized_descriptors,
profiler::descriptors_list_t& descriptors,
std::ostream& _log);
}
inline profiler::block_index_t fillTreesFromFile(const char* filename, profiler::BeginEndTime& begin_end_time,
profiler::SerializedData& serialized_blocks,
profiler::SerializedData& serialized_descriptors,
profiler::descriptors_list_t& descriptors, profiler::blocks_t& _blocks,
profiler::thread_blocks_tree_t& threaded_trees,
profiler::bookmarks_t& bookmarks,
uint32_t& descriptors_count,
uint32_t& version,
profiler::processid_t& pid,
bool gather_statistics,
std::ostream& _log)
{
std::atomic<int> progress(0);
return fillTreesFromFile(progress, filename, begin_end_time, serialized_blocks, serialized_descriptors,
descriptors, _blocks, threaded_trees, bookmarks, descriptors_count, version, pid,
gather_statistics, _log);
}
inline bool readDescriptionsFromStream(std::istream& str,
profiler::SerializedData& serialized_descriptors,
profiler::descriptors_list_t& descriptors,
std::ostream& _log)
{
std::atomic<int> progress(0);
return readDescriptionsFromStream(progress, str, serialized_descriptors, descriptors, _log);
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
#endif // EASY_PROFILER_READER_H
```
|
Talavali Tarf Rahur is a village in the Thane district of Maharashtra, India. It is located in the Bhiwandi taluka.
Demographics
According to the 2011 census of India, Talavali Tarf Rahur has 135 households. The effective literacy rate (i.e. the literacy rate of population excluding children aged 6 and below) is 84.36%.
References
Villages in Bhiwandi taluka
|
Dennis Wilfred Davies, known professionally as Richard Davies (25 January 1926 – 8 October 2015), was a Welsh actor. He was probably best known for his performance as the exasperated schoolmaster Mr. Price in the popular LWT situation comedy Please Sir!. He used a broad Welsh accent for much of his work, but had used other accents to play a wide range of characters, in addition to several Welsh stereotypes.
Biography
Davies was born in Dowlais, near Merthyr Tydfil, Glamorgan, the son of a railway guard. He played Idris Hopkins in Coronation Street between 1974 and 1975, and appeared in several science-fiction series, among them Robert's Robots, Out of the Unknown, and a well-received performance as Burton in the 1987 Doctor Who story Delta and the Bannermen. He played Mr. White in the Fawlty Towers episode "The Kipper and the Corpse" and also appeared in Yes Minister, Wyatt's Watchdogs, May to December, Whoops Apocalypse, 2point4 Children and One Foot in the Grave. In 1970, he appeared in an episode of Two in Clover as Victor Spinetti's character's brother when Spinetti was unavailable. His other main role was in the comedy series Oh No It's Selwyn Froggitt where he played Clive.
Davies had a recurring role as Jim Sloan in Z-Cars between 1962 and 1965, returning to the series playing different characters in 1968 and in its spin-off Softly, Softly. He also appeared in Dixon of Dock Green, The Sweeney and Van der Valk. He impersonated Clive Jenkins in a spoof edition of Question Time in a sketch on Not the Nine O'Clock News. He appeared in the Please Sir! spin-off series The Fenn Street Gang. In 1951, he made an uncredited appearance in the Ealing Studios comedy The Lavender Hill Mob. He had appeared in films such as Zulu (1964), the film adaptation of Please Sir! (1971), and Under Milk Wood (1972). In 1988, he played the schoolteacher in Queen Sacrifice. He died on 8 October 2015 at the age of 89, survived by his wife and two children, and a son from his first marriage. He had Alzheimer's disease.
Filmography
Film
Television
References
External links
Welsh male stage actors
Welsh male film actors
Welsh male television actors
Welsh male soap opera actors
1926 births
2015 deaths
People from Dowlais
Deaths from dementia in England
Deaths from Alzheimer's disease
Welsh male comedy actors
|
Evelyn Turrentine-Agee (born February 4, 1946, as Ruth Evelyn Tyler), is an American gospel musician and artist. She started her music career, in 1992, with the release of In God's Own Time by A&M Records. She has released eight more albums, since her first release, with an assortment of labels, which are World Wide Gospel, Atlanta International Records, Light Records, WOS Recordings, Ophir Gospel, Shanachie Records. Five albums have charted on the Billboard magazine charts, which have primarily come on the Gospel Albums chart.
Early life
Turrentine-Agee was born Ruth Evelyn Tyler on February 4, 1946, in St. Louis, Missouri, She was born as the third sibling in an eighteen sibling household. Her father, Cleveland Tyler, was a minister in the church, and her mother is Ruthie Mae Tyler. She started singing on stage at the age of three because her father was in a quartet, and later they formed a family gospel girl group, The Tylerettes. She graduated high school by seventeen, and this enabled her to make her first record. Her education would not get forsaken because of her musical acumen and prowess because she graduated with a bachelor's degree in industrial psychology that she earned at the University of Detroit. Many gospel music groups tried to get her to join them, but her stay with them was rather brief because she had a strong desire for a solo music career.
Music career
Her solo musical recording career started in 1992, with A&M Records releasing, In God's Own Time, and this was her Billboard magazine debut charting release on the Gospel Albums chart. She would go on to release eight more albums, and the four others to chart were the following: God Did It in 2000, It's Already Done in 2003, Go Through in 2005, Born to Worship in 2013.
Personal life
While in college, she married Curtis Turrentine, and together they have survived her husband having alcoholism that he was delivered from 1993, while she survived a stroke in 1997. They have 11 children and 40 grandchildren that are living.
Discography
Studio albums
References
External links
Detroit Gospel interview
1946 births
Living people
African-American songwriters
African-American Christians
Musicians from Detroit
Musicians from St. Louis
Songwriters from Michigan
Songwriters from Missouri
21st-century African-American people
20th-century African-American people
|
```xml
import { Fiat, LocalStorage, LSKeys, Network, NetworkId } from '@types';
import { NETWORKS_CONFIG } from './data';
/* Types */
type SeedData = typeof NETWORKS_CONFIG | Fiat[];
type StoreProp = Record<NetworkId, Network> | any;
export type StoreAction = (store: LocalStorage) => LocalStorage;
type FlowReducer = (data?: SeedData, store?: LocalStorage) => StoreProp;
export type FlowTransducer = (key: LSKeys) => (fn: FlowReducer) => (data?: SeedData) => StoreAction;
export type GenObject<T> = Record<keyof T, T> | T;
export interface DBConfig {
version: string;
main: string;
vault?: string;
defaultValues?: LocalStorage;
schema: TObject;
migrate?(prev: LocalStorage, curr: LocalStorage): LocalStorage;
}
```
|
Tony Sperandeo (born 8 May 1953) is an Italian actor of cinema and television. Sperandeo is notable for frequently playing the roles of tough characters from his native region, Sicily. As of 2011, he was working on La Nuova Squadra, a police drama televised by Rai Tre, as the Superintendent Salvatore Sciacca.
Career
He was born Gaetano Sperandeo in Palermo.
In 1983, his acting career began with a small part in the film Kaos, directed by the Taviani brothers. In 1985, he landed a role in a cinematographic film Pizza Connection, by Damiano Damiani. He also acted in four of the sequels of the popular television drama, "La piovra", which is about the Mafia and had a little role in The Sicilian of Michael Cimino. He has appeared in many other Italian films, the most notable being La scorta ("The escort") by Ricky Tognazzi, as well as "Ragazzi fuori" and "Mery per sempre", the latter two set in his home town of Palermo. They are both directed by Marco Risi.
Since 2004, he has appeared regularly on television in the role of Superintendent Salvatore Sciacca, first in the police drama La Squadra (2004–2007), and its sequel, La Nuova Squadra (2008–2009, 2011).
In 2001, Sperandeo won the David di Donatello award for Best Supporting Actor in "I cento passi" ("One Hundred Steps"), directed by Marco Tullio Giordana, about the story of Peppino Impastato in which he played the role of Mafia boss Tano Badalamenti.
Personal life
He was married to actress Rita Barbanera (1968–2001), by whom he has two children, Tony and Priscilla. Sperandeo met her on the set of Mery per sempre, the film in which he was working at the time. They performed together in one film, La discesa di Aclà a Floristella in 1992. Rita was primarily a stage actress.
On April 27, 2001, Rita Barbanera committed suicide by jumping off the balcony at their home in Palermo. She was thirty two years old.
Filmography
Film
Kaos (1984)
Pizza Connection (1985) - Vincenzo
The Repenter (1985) - Lercara's Henchman (uncredited)
The Sicilian (1987) - Barracks Policeman #1
Mery per sempre (1989) - Turris, Guardia Carceraria
Tre colonne in cronaca (1990) - Il commissario Trapani
Il sole anche di notte (1990) - Gesuino
Ragazzi fuori (1990) - Turris (uncredited)
Una storia semplice (1991) - Policeman
Il muro di gomma (1991) - Sottufficiale Areonautica
Piedipiatti (1991) - Agente Buoncostume
Johnny Stecchino (1991) - Picciotto in auto
Caldo soffocante (1991) - Aiutante Giuliano
Briganti (1991)
Acla's Descent into Floristella (1992) - Caramazza
La scorta (1993) - Raffaele Frasca
Uomo di rispetto (1993, TV Movie)
Quattro bravi ragazzi (1993) - Franchini
Nel continente nero (1993) - Don Secondino
The Heroes (1994) - Tonino
Miracolo italiano (1994) - Onorevole Locafò
Briganti: Amore e libertà (1994) - Malacarne
Segreto di stato (1995) - Gangster
The Star Maker (1995) - 1st Baldalamenti
Palermo - Milan One Way (1995) - Marinnà
Vesna va veloce (1996) - Il camionista
Altri uomini (1997) - Salvatore Marinello
The Room of the Scirocco (1998) - Sollima
Volare! (1999) - Don Ciccio
Una sola debole voce (1998, TV Movie)
Excellent Cadavers (1999, TV Movie) - Stefano Bontade
L'uomo della fortuna (2000) - Salvatore
One Hundred Steps (2000) - Gaetano Badalamenti
Un giudice di rispetto (2000) - Giudice Francesco Di Nardo
Arresti domiciliari (2000) - Boss mafia
E adesso sesso (2001) - Don Calogero
Tra due mondi (2001)
Il testimone (2001, TV Movie)
Il latitante (2003) - Ispettore Sarnataro
Miracle in Palermo! (2003) - Sparagna
Eccezziunale... Veramente - Capitolo secondo... me (2006) - Don Pippo Calì
Il 7 e l'8 (2007) - Gino La Monica
L'uomo di vetro (2007) - Zio Titta
A Beautiful Wife (2007) - Don Pierino
Il sangue dei vinti (2008) - Salustri
Volevo gli occhi blu (2008) - Pazzo filosofo
Baaria (2009) - Breeder
Pochi giorni per capire (2009) - Sacerdote
I Picciuli (2009) - Giudice
Un neomelodico presidente (2010) - Il Professore
Backward (2010) - Gaetano il bastardo
Prigionero di un segreto (2010) - Don Alfredo
Dreamland: La terra dei sogni (2011) - Don Nicola
Pagate fratelli (2012)
Il ragioniere della mafia (2013) - Capo dei capi
La moglie del sarto (2014)
La corona spezzata (2014) - Don Vito Romano
La settima onda (2015) - Michele Manni
Il ragazzo della Giudecca (2016) - Procuratore
Quel bravo ragazzo (2016) - Vito Mancuso
Amo la tempesta (2016)
Mò Vi Mento - Lira di Achille (2017)
L'ora legale (2017) - Gaetano Patanè
Il mondo di mezzo (2017) - Gaetano Mariotti
Amare Amaro (2018) - Marcello
A Breath of Fresh Air (2022) - Nunzio
Television
La piovra, (1985, TV Mini-Series) - Ravanusa's Manservant
Felipe ha gli occhi azzurri (1991)
La piovra, (1992, TV Mini-Series) - Santino Rocchi
A che punto è la notte (1995, TV Movie) - Cagliusco
Non parla più (1995, TV Movie)
La piovra, (1997, TV Movie) - Turi Mondello
Mia Padre e Innocente (1997, TV Movie) - Augusto Malinverni
La piovra, (1998, TV Movie) - Turi Mondello
Fine secolo (1999, TV Mini-Series) - Corti
Cronaca di un ricatto (1999, TV Movie)
Don Matteo (first series, episode "Stato di Ebbrezza", 2000)
L'attentatuni (2001, TV Movie) - Antonino No&
Distretto di Polizia (2001) - Vito Tonnara
Il sequestro Soffrantini (2002, TV Movie) - Giovanni Farina, Anonima Sarda
Soldati di pace (2003)
Blindati (2003, TV Movie) - Brando Massari
Ultimo - L'infiltrato (2003, TV Movie) - Nicola De Rosa
La Squadra (2005–2007) - Sovrintendente Salvatore Sciacca
Framed! A Sicilian Murder Mystery (2022-)
Awards and nominations
References
Italian Wikipedia
Viva Cinema, Interview with Tony Sperandeo, 28 October 2008 (retrieved on 10 November 2008)
1953 births
Living people
Male actors from Palermo
Italian male film actors
Italian male television actors
Italian comedy musicians
David di Donatello winners
Ciak d'oro winners
|
```xml
import {
Environment,
EnvironmentId,
} from '@/react/portainer/environments/types';
import { EnvironmentGroup } from '@/react/portainer/environments/environment-groups/types';
import { RbacRole } from '../types';
import { Team, TeamId } from '../../teams/types';
export class AccessViewerPolicyModel {
EndpointId: EnvironmentId;
EndpointName: string;
RoleId: RbacRole['Id'];
RoleName: RbacRole['Name'];
RolePriority: RbacRole['Priority'];
GroupId?: EnvironmentGroup['Id'];
GroupName?: EnvironmentGroup['Name'];
TeamId?: TeamId;
TeamName?: Team['Name'];
AccessLocation: string;
constructor(
policy: { RoleId: RbacRole['Id'] },
endpoint: Environment,
roles: Record<RbacRole['Id'], RbacRole>,
group?: EnvironmentGroup,
team?: Team
) {
this.EndpointId = endpoint.Id;
this.EndpointName = endpoint.Name;
this.RoleId = policy.RoleId;
this.RoleName = roles[policy.RoleId].Name;
this.RolePriority = roles[policy.RoleId].Priority;
if (group) {
this.GroupId = group.Id;
this.GroupName = group.Name;
}
if (team) {
this.TeamId = team.Id;
this.TeamName = team.Name;
}
this.AccessLocation = group ? 'environment group' : 'environment';
}
}
```
|
```go
package integration
import (
"net/http"
"slices"
"testing"
unit_model "code.gitea.io/gitea/models/unit"
"code.gitea.io/gitea/tests"
)
func TestOrgProjectAccess(t *testing.T) {
defer tests.PrepareTestEnv(t)()
disabledRepoUnits := unit_model.DisabledRepoUnitsGet()
unit_model.DisabledRepoUnitsSet(append(slices.Clone(disabledRepoUnits), unit_model.TypeProjects))
defer unit_model.DisabledRepoUnitsSet(disabledRepoUnits)
// repo project, 404
req := NewRequest(t, "GET", "/user2/repo1/projects")
MakeRequest(t, req, http.StatusNotFound)
// user project, 200
req = NewRequest(t, "GET", "/user2/-/projects")
MakeRequest(t, req, http.StatusOK)
// org project, 200
req = NewRequest(t, "GET", "/org3/-/projects")
MakeRequest(t, req, http.StatusOK)
// change the org's visibility to private
session := loginUser(t, "user2")
req = NewRequestWithValues(t, "POST", "/org/org3/settings", map[string]string{
"_csrf": GetCSRF(t, session, "/org3/-/projects"),
"name": "org3",
"visibility": "2",
})
session.MakeRequest(t, req, http.StatusSeeOther)
// user4 can still access the org's project because its team(team1) has the permission
session = loginUser(t, "user4")
req = NewRequest(t, "GET", "/org3/-/projects")
session.MakeRequest(t, req, http.StatusOK)
// disable team1's project unit
session = loginUser(t, "user2")
req = NewRequestWithValues(t, "POST", "/org/org3/teams/team1/edit", map[string]string{
"_csrf": GetCSRF(t, session, "/org3/-/projects"),
"team_name": "team1",
"repo_access": "specific",
"permission": "read",
"unit_8": "0",
})
session.MakeRequest(t, req, http.StatusSeeOther)
// user4 can no longer access the org's project
session = loginUser(t, "user4")
req = NewRequest(t, "GET", "/org3/-/projects")
session.MakeRequest(t, req, http.StatusNotFound)
}
```
|
The Arkankergen mass murder occurred on 28 May 2012 in the Arkankergen military post in the Alakol District of Kazakhstan on the border with China, near the village of Usharal. Fifteen people were killed. A border guard, Vladislav Chelakh, initially confessed to the deed, but later retracted his confession.
Events
Killings
Arqanqergen is a border post between Kazakhstan and China. At 5 a.m. on 28 May 2012, communication with the border post was lost. When police from a nearby post came to investigate, they discovered the charred quarters and 14 corpses, also burned; a body of a local gamekeeper was found later at a nearby house. The bodies were subsequently identified as fourteen soldiers and one huntsman. The military post had been burned down. The bodies were identified with the help from Berlin's Charité Institute.
Investigation
Initially investigators considered a variety of causes, including a fight among the soldiers, an attack by religious extremists, and an assault by smugglers. The main version, however, was bullying. The sole survivor, Vladislav Chelakh, was the only ethnic Russian stationed at the post and investigators eventually surmised that the 19-year-old soldier had been subjected to hazing.
Vladislav Chelakh was arrested on 5 June 2012, wearing civilian clothes and not far from the area where the killings took place a week earlier. He was found in a mountain hut, carrying a pistol, a computer, and the mobile phones of the dead soldiers. He admitted to the crime the next day. He later retracted his confession, claiming it had been obtained under pressure.
Trial
On 20 December 2012, Chelakh was charged with murder; theft; illegally obtaining and distributing of state secrets; embezzlement or extortion of weapons, ammo, explosive devices; illegal acquisition, transfer, sale, storage, transfer or carrying of weapons and explosive devices; intentional destruction or damaging of military equipment; desertion; and violation of the housing's inviolability. He was convicted and sentenced to life in prison at a penal colony, although his appeals are ongoing. He escaped execution as the country had abolished capital punishment for most crimes three years earlier.
Chelakh's mother maintains that lawyers have refused to defend her son and those who agree charge $2,000 a month, so she is planning an appeal to International Court in Belgium. She described her boy as incapable of such a rampage. Chelakh's grandfather Vladimir publicly stated he thought his grandson was being scapegoated. In October 2012, Chelakh attempted suicide by hanging himself.
President Nursultan Abishuly Nazarbayev declared a day of national mourning and has ordered a special investigation of the incident. The head of the regional border patrol, Alexey Fomin, was also arrested a month after the event for failing to report the border post communication failure. Furthermore, local newsmen have resigned, claiming there is a large-scale cover-up.
List of victims
References
2012 crimes in Kazakhstan
2012 in military history
2012 murders in Asia
2010s murders in Kazakhstan
Massacres in 2012
May 2012 crimes
Murder in Kazakhstan
Events that led to courts-martial
|
The Fourteenth Street Theatre was a New York City theatre located at 107 West 14th Street just west of Sixth Avenue.
History
It was designed by Alexander Saeltzer and opened in 1866 as the Theatre Francais, as a home for French language dramas and opera.
The theatre was renamed the Lyceum in 1871. In 1879, it was taken over by producer J.H. Haverly who renamed it Haverly's 14th Street Theatre. By the mid-1880s, it had become simply the Fourteenth Street Theatre.
By the mid-1910s it was being used as a movie theatre, until actress Eva Le Gallienne made it the home of her stage company and renamed it to Civic Repertory Theatre in 1926. She mounted 34 successful productions at the theatre, but the Great Depression ended that venture in 1934.
The building was demolished in 1938.
Selected productions
14th Street Theatre
Evangeline! (1885–1886) (252 perf.)
The Still Alarm (1887)
The Old Homestead (1887, by Denman Thompson) (155 perf.)
A Romance of Athlone (1889, 1890, by Chauncey Olcott)
Blue Jeans (1890)
Mavourneen (1891)
The Errand Boy (1904)
Civic Repertory Theatre
Alice in Wonderland (1932–33, adapted by Eva Le Gallienne) (127 perf.)
Peace on Earth (1933–34, by George Sklar and Albert Maltz) (126 perf.)
Let Freedom Ring (1935–36) (108 perf.)
References
Notes
Bibliography
Brockett, Oscar G. History of the Theatre, Second Edition. Boston, Allyn and Bacon, 1974.
External links
Listing on the Internet Broadway Database
Civic Repertory Theatre Records. Yale Collection of American Literature, Beinecke Rare Book and Manuscript Library.
Former theatres in Manhattan
Demolished theatres in New York City
Demolished buildings and structures in Manhattan
14th Street (Manhattan)
Buildings and structures demolished in 1938
|
The Gawaria are a Hindu caste found in North India. They are also known as Banjara and Kalenra. They live in the Indian state of Rajasthan.
See also
Gadhia community
References
Social groups of Haryana
Indian castes
Social groups of Uttar Pradesh
Social groups of Rajasthan
|
```xml
<vector xmlns:android="path_to_url"
xmlns:tools="path_to_url"
android:width="496dp"
android:height="512dp"
android:viewportWidth="496.0"
android:viewportHeight="512.0"
tools:keep="@drawable/fa_expeditedssl">
<path
android:fillColor="#FFFFFFFF"
android:pathData="M248,43.4C130.6,43.4 35.4,138.6 35.4,256S130.6,468.6 248,468.6 460.6,373.4 460.6,256 365.4,43.4 248,43.4zM150.6,176.3c0,-53.7 43.7,-97.4 97.4,-97.4s97.4,43.7 97.4,97.4v26.6c0,5 -3.9,8.9 -8.9,8.9h-17.7c-5,0 -8.9,-3.9 -8.9,-8.9v-26.6c0,-82.1 -124,-82.1 -124,0v26.6c0,5 -3.9,8.9 -8.9,8.9h-17.7c-5,0 -8.9,-3.9 -8.9,-8.9v-26.6zM389.7,380c0,9.7 -8,17.7 -17.7,17.7L124,397.7c-9.7,0 -17.7,-8 -17.7,-17.7L106.3,238.3c0,-9.7 8,-17.7 17.7,-17.7h248c9.7,0 17.7,8 17.7,17.7L389.7,380zM141.7,242.7v132.9c0,2.5 -1.9,4.4 -4.4,4.4h-8.9c-2.5,0 -4.4,-1.9 -4.4,-4.4L124,242.7c0,-2.5 1.9,-4.4 4.4,-4.4h8.9c2.5,0 4.4,1.9 4.4,4.4zM283.4,291.4c0,13 -7.2,24.4 -17.7,30.4v31.6c0,5 -3.9,8.9 -8.9,8.9h-17.7c-5,0 -8.9,-3.9 -8.9,-8.9v-31.6c-10.5,-6.1 -17.7,-17.4 -17.7,-30.4 0,-19.7 15.8,-35.4 35.4,-35.4s35.5,15.8 35.5,35.4zM248,8C111,8 0,119 0,256s111,248 248,248 248,-111 248,-248S385,8 248,8zM248,486.3C121,486.3 17.7,383 17.7,256S121,25.7 248,25.7 478.3,129 478.3,256 375,486.3 248,486.3z"/>
</vector>
```
|
John Wilkins, (14 February 1614 – 19 November 1672) was an Anglican clergyman, natural philosopher, and author, and was one of the founders of the Royal Society. He was Bishop of Chester from 1668 until his death.
Wilkins is one of the few persons to have headed a college at both the University of Oxford and the University of Cambridge. He was a polymath, although not one of the most important scientific innovators of the period. His personal qualities were brought out, and obvious to his contemporaries, in reducing political tension in Interregnum Oxford, in founding the Royal Society on non-partisan lines, and in efforts to reach out to Protestant Nonconformists. He was one of the founders of the new natural theology compatible with the science of the time. He is particularly known for An Essay towards a Real Character and a Philosophical Language (1668) in which, amongst other things, he proposed a universal language and an integrated system of measurement, similar to the metric system.
Wilkins lived in a period of great political and religious controversy, yet managed to remain on working terms with men of all political stripes; he was key in setting the Church of England on the path toward comprehension for as many sects as possible, "and toleration for the rest". Gilbert Burnet called him "the wisest clergyman I ever knew. He was a lover of mankind, and had a delight in doing good." His stepdaughter married John Tillotson, who became Archbishop of Canterbury in 1691.
Early life
He was probably born at Canons Ashby, Northamptonshire, though some sources say Fawsley; his father Walter Wilkins (died 1623) was a goldsmith and his mother Jane Dod was daughter of John Dod, a well-known conforming Puritan. His mother then remarried to Francis Pope, and their son, Walter Pope was a half-brother.
Wilkins was educated at a school in Oxford run by Edward Sylvester, and matriculated at New Inn Hall. He then moved to Magdalen Hall, Oxford where his tutor was John Tombes, and graduated with a BA degree in 1631, an MA degree in 1634. He studied astronomy with John Bainbridge.
Wilkins went to Fawsley in 1637, a sheep-farming place with little population, dominated by the Knightley family, to whom he and then Dod may have ministered; Richard Knightley had been Dod's patron there. He was ordained a priest of the Church of England in Christ Church Cathedral in February 1638. He then became chaplain successively to Lord Saye and Sele, and by 1641 to Lord Berkeley. In 1644 he became chaplain to Prince Charles Louis, nephew of King Charles I, who was then in England.
In London, Oxford and Cambridge
Wilkins was one of the group of savants, interested in experimental philosophy, who gathered round Charles Scarburgh, the royalist physician who arrived in London in summer 1646 after the fall of Oxford to the parliamentarian forces. The group included George Ent, Samuel Foster, Francis Glisson, Jonathan Goddard, Christopher Merrett, and John Wallis.
Others of Scarburgh's circle were William Harvey and Seth Ward. This London group, the Gresham College group of 1645, was described much later by Wallis, who mentions also Theodore Haak, anchoring it also to the Palatine exiles; there are clear connections to the Wilkins Oxford Philosophical Club, another and less remote precursor to the Royal Society.
From 1648 Charles Louis was able to take up his position as Elector of the Palatinate on the Rhine, as a consequence of the Peace of Westphalia. Wilkins travelled to continental Europe, and according to Anthony Wood visited Heidelberg.
In 1648 Wilkins became Warden of Wadham College in Oxford, and under him the college prospered. He fostered political and religious tolerance and drew talented minds to the college, including Christopher Wren. Although he was a supporter of Oliver Cromwell, Royalists placed their sons in his charge. From those interested in experimental science, he drew together a significant group known as the Oxford Philosophical Club, which by 1650 had been constituted with a set of rules. Besides some of the London group (Goddard, Wallis, Ward, and Wren who was a young protégé of Scarburgh), it included (in the account of Thomas Sprat) Ralph Bathurst, Robert Boyle, William Petty, Lawrence Rooke, Thomas Willis, and Matthew Wren. Robert Hooke was gradually recruited into the Wilkins group: he arrived at Christ Church, Oxford in 1653, working his way to an education, became assistant to Willis, became known to Wilkins (possibly via Richard Busby) as a technician, and by 1658 was working with Boyle.
In 1656, Wilkins married Robina French (née Cromwell), youngest sister of Oliver Cromwell, who had been widowed in 1655 when her husband Peter French, a canon of Christ Church, Oxford, had died. Wilkins thereby joined a high stratum of Parliamentary society, and the couple used rooms in Whitehall Palace. Shortly before his death, Oliver Cromwell arranged for Wilkins a new appointment as Master of Trinity College, Cambridge, an appointment that was confirmed by Richard Cromwell who succeeded his father as Lord Protector. Wilkins was there long enough to befriend and become a patron of Isaac Barrow.
After the Restoration
Upon the Restoration in 1660, the new authorities deprived Wilkins of the position given him by Cromwell; he gained appointment as prebendary of York and rector of Cranford, Middlesex. In 1661, he was reduced to preacher at Gray's Inn, lodging with his friend Seth Ward. In 1662, he became vicar of St Lawrence Jewry, London. He suffered in the Great Fire of London, losing his vicarage, library and scientific instruments.
Possessing strong scientific tastes, Wilkins was a founding member of the Royal Society and was soon elected fellow and one of the Society's two secretaries: he shared the work with Henry Oldenburg, whom he had met in Oxford in 1656.
Bishop
Wilkins became vicar of Polebrook, Northamptonshire, in 1666; prebendary of Exeter in 1667; and in the following year, prebendary of St Paul's and bishop of Chester. He owed his position as bishop to the influence of George Villiers, 2nd Duke of Buckingham. Buckingham's approach to the religious problem of the day was comprehension, something less than religious tolerance but aimed at least at bringing in the Presbyterians among the nonconformists to the Church of England by some peaceful form of negotiation and arrangement. Wilkins too thought along these lines. He had been a sympathetic reader of John Humfrey's 1661 justification of his acceptance of re-ordination by William Piers, having already once been ordained in the Presbyterian style by a classis.
As Wilkins was ordained, he spoke out against the use of penal laws, and immediately tried to gather support from other moderate bishops to see what concessions to the nonconformists could be made.
A serious effort was made in 1668 to secure a scheme of comprehension, with William Bates, Richard Baxter and Thomas Manton for the dissenters meeting Wilkins and Hezekiah Burton. Wilkins felt the Presbyterians could be brought within the Church of England, while the Independent separatists were left outside. It fell through by late summer, with Manton blaming John Owen for independent scheming for general toleration with Buckingham, and Baxter pointing the finger at the House of Lords.
Death
Wilkins died in London, most likely from the medicines used to treat his kidney stones and urinary retention.
Works
His numerous written works include:
The early scientific works were in a popular vein, and have links to the publications of Francis Godwin. The Discovery of a World in the Moone (1638) was followed up by A Discourse Concerning a New Planet (1640). The author highlights the similarities between the Earth and the Moon. Based on these similarities, he proposes the idea that the Moon would house living beings, the Selenites. Godwin's The Man in the Moone was also published in 1638. In 1641 Wilkins published an anonymous treatise entitled Mercury, or The Secret and Swift Messenger. This was a small work on cryptography; it may well have been influenced by Godwin's Nuncius inanimatus (1629). His Mathematical Magic (1648) was divided into two sections, one on traditional mechanical devices such as the lever, and the other, more speculative, on machines. It drew on many authors, both classical writers and moderns such as Guidobaldo del Monte and Marin Mersenne. It alludes to Godwin's The Man in the Moone, for bird-powered flight. These were light if learned works and admitted both blue-sky thinking, such as the possibility of the Moon being inhabitable, and references to figures on the "occult" side: Trithemius, John Dee, the Rosicrucians, Robert Fludd.
Ecclesiastes (1646) is a plea for a plain style in preaching, avoiding rhetoric and scholasticism, for a more direct and emotional appeal. It analysed the whole field of available Biblical commentary, for the use of those preparing sermons, and was reprinted many times. It is noted as a transitional work, both in the move away from Ciceronian style in preaching, and in the changing meaning of elocution to the modern sense of vocal production.
A Discourse Concerning the Beauty of Providence (1649) took an unfashionable line, namely that divine providence was more inscrutable than current interpreters were saying. It added to the reputation of Wilkins, when the Stuarts returned to the throne, to have warned that the short term reading of events as managed by God was risky.
In 1654, Wilkins joined with Seth Ward in writing Vindiciae academiarum, a reply to John Webster's Academiarum Examen, one of many attacks at the time on the universities of Oxford and Cambridge, and their teaching methods. This attack had more clout than most: it was dedicated to John Lambert, a top military figure, and was launched during Barebone's Parliament, when radical change seemed on the cards. Wilkins (as NS) provided an open letter to Ward; and Ward (as HD, also taking the final letters of his name therefore) replied at greater length. Wilkins makes two main points: first, Webster is not addressing the actual state of the universities, which were not as wedded to old scholastic ways, Aristotle, and Galen, as he said; and secondly Webster's mixture of commended authors, without fuller understanding of the topics, really was foolish. In this approach Wilkins had to back away somewhat from his writings of the late 1630s and early 1640s. He made light of this in the way of pointing to Alexander Ross, a very conservative Aristotelian who had attacked his own astronomical works, as a more suitable target for Webster. This exchange was part of the process of the new experimental philosophers throwing off their associations with occultists and radicals.
In 1668 he published his Essay towards a Real Character and a Philosophical Language. In it he attempted to create a universal language to replace Latin as a completely unambiguous tongue with which scholars and philosophers could communicate. One aspect of this work was the suggestion of an integrated system of measurement, similar to the metric system but which was never promoted.
In his lexicographical work he collaborated with William Lloyd. The Ballad of Gresham College (1663), a gently satirical ode to the Society, refers to this project:
See also
The Analytical Language of John Wilkins (essay by Jorge Luis Borges)
References
Bibliography
.
External links
Mercury; or, The Secret and Swift Messenger From the George Fabyan Collection at the Library of Congress
1614 births
1672 deaths
17th-century Anglican theologians
17th-century Church of England bishops
Alumni of Magdalen Hall, Oxford
Bishops of Chester
Constructed language creators
Deans of Ripon
English Anglicans
English scientists
Founder Fellows of the Royal Society
Masters of Trinity College, Cambridge
Natural philosophers
People from West Northamptonshire District
Pre-19th-century cryptographers
Wardens of Wadham College, Oxford
|
"The Last Rung on the Ladder" is a short story by Stephen King, first published in King's 1978 collection Night Shift.
Plot summary
Larry discovers his estranged sister, Kitty, has committed suicide. He recounts a fateful day, when the two were children playing in their family's barn in rural Nebraska.
With their parents not home, they play a forbidden game, taking turns climbing to the top of a ladder in their barn and leaping off into a haystack. The ladder is old and unsafe, but that is part of the thrill. On his last turn, Larry realizes that the ladder is on the point of letting go. By the time he lands in the hay, Kitty is already climbing up again. The ladder breaks, leaving her clinging to the last rung. Larry piles hay below her. When Kitty cannot hang on any longer, he tells her to let go, and she does. The hay breaks Kitty's fall and saves her life, leaving her with only a broken ankle. Larry is astonished when Kitty tells him that she hadn't looked down before letting go, so she didn't know about the hay. She had simply trusted him to save her.
Kitty grows up into a beautiful woman; she is supposed to attend business college but, in the summer after graduation, wins a beauty pageant and marries one of the judges. After the marriage fails, Kitty moves to Los Angeles, landing some roles in B-movies and some modeling shoots, and marries again, only to have this marriage fail as well. Eventually, Kitty ends up working as a call girl. Meanwhile, Larry is too wrapped up in his own burgeoning career as a high-priced lawyer to come to her aid, brushing off her many letters asking him to visit. He is now left with a newspaper article of Kitty's suicide ("Call Girl Swan Dives to her Death"), and her final letter, sent two weeks before she died, which reads, "I've been thinking about it a lot lately... and what I've decided is that it would have been better for me if that last rung had broken before you could put the hay down". Larry says that this would have been enough to make him come running. Unfortunately, he had neglected to tell his sister he'd moved, and the letter was not forwarded in time.
Connections to other books
Larry relates that the farm where he and his sister grew up was in Hemingford Home, Nebraska. This is the town that Mother Abagail lives in during The Stand. It is also the town next door to Gatlin, the location of "Children of the Corn", and appears in It to introduce Ben Hanscom. It is mentioned in Cell. "1922" from Full Dark, No Stars also takes place in Hemingford Home.
See also
Stephen King short fiction bibliography
External links
Stephen King Short Movies
NESCom Adaption Website
Official 2011 Trailer
1978 short stories
Short stories by Stephen King
Fiction about suicide
Short stories set in Nebraska
|
```c
#include "f2c.h"
/* Subroutine */ int slartg_(real *f, real *g, real *cs, real *sn, real *r)
{
/* -- LAPACK auxiliary routine (version 2.0) --
Univ. of Tennessee, Univ. of California Berkeley, NAG Ltd.,
Courant Institute, Argonne National Lab, and Rice University
September 30, 1994
Purpose
=======
SLARTG generate a plane rotation so that
[ CS SN ] . [ F ] = [ R ] where CS**2 + SN**2 = 1.
[ -SN CS ] [ G ] [ 0 ]
This is a slower, more accurate version of the BLAS1 routine SROTG,
with the following other differences:
F and G are unchanged on return.
If G=0, then CS=1 and SN=0.
If F=0 and (G .ne. 0), then CS=0 and SN=1 without doing any
floating point operations (saves work in SBDSQR when
there are zeros on the diagonal).
If F exceeds G in magnitude, CS will be positive.
Arguments
=========
F (input) REAL
The first component of vector to be rotated.
G (input) REAL
The second component of vector to be rotated.
CS (output) REAL
The cosine of the rotation.
SN (output) REAL
The sine of the rotation.
R (output) REAL
The nonzero component of the rotated vector.
=====================================================================
*/
/* Initialized data */
static logical first = TRUE_;
/* System generated locals */
integer i__1;
real r__1, r__2;
/* Builtin functions */
double log(doublereal), pow_ri(real *, integer *), sqrt(doublereal);
/* Local variables */
static integer i;
static real scale;
static integer count;
static real f1, g1, safmn2, safmx2;
extern float slamch_(char *);
static real safmin, eps;
if (first) {
first = FALSE_;
safmin = slamch_("S");
eps = slamch_("E");
r__1 = slamch_("B");
i__1 = (integer) (log(safmin / eps) / log(slamch_("B")) / 2.f);
safmn2 = pow_ri(&r__1, &i__1);
safmx2 = 1.f / safmn2;
}
if (*g == 0.f) {
*cs = 1.f;
*sn = 0.f;
*r = *f;
} else if (*f == 0.f) {
*cs = 0.f;
*sn = 1.f;
*r = *g;
} else {
f1 = *f;
g1 = *g;
/* Computing MAX */
r__1 = dabs(f1), r__2 = dabs(g1);
scale = dmax(r__1,r__2);
if (scale >= safmx2) {
count = 0;
L10:
++count;
f1 *= safmn2;
g1 *= safmn2;
/* Computing MAX */
r__1 = dabs(f1), r__2 = dabs(g1);
scale = dmax(r__1,r__2);
if (scale >= safmx2) {
goto L10;
}
/* Computing 2nd power */
r__1 = f1;
/* Computing 2nd power */
r__2 = g1;
*r = sqrt(r__1 * r__1 + r__2 * r__2);
*cs = f1 / *r;
*sn = g1 / *r;
i__1 = count;
for (i = 1; i <= count; ++i) {
*r *= safmx2;
/* L20: */
}
} else if (scale <= safmn2) {
count = 0;
L30:
++count;
f1 *= safmx2;
g1 *= safmx2;
/* Computing MAX */
r__1 = dabs(f1), r__2 = dabs(g1);
scale = dmax(r__1,r__2);
if (scale <= safmn2) {
goto L30;
}
/* Computing 2nd power */
r__1 = f1;
/* Computing 2nd power */
r__2 = g1;
*r = sqrt(r__1 * r__1 + r__2 * r__2);
*cs = f1 / *r;
*sn = g1 / *r;
i__1 = count;
for (i = 1; i <= count; ++i) {
*r *= safmn2;
/* L40: */
}
} else {
/* Computing 2nd power */
r__1 = f1;
/* Computing 2nd power */
r__2 = g1;
*r = sqrt(r__1 * r__1 + r__2 * r__2);
*cs = f1 / *r;
*sn = g1 / *r;
}
if (dabs(*f) > dabs(*g) && *cs < 0.f) {
*cs = -(doublereal)(*cs);
*sn = -(doublereal)(*sn);
*r = -(doublereal)(*r);
}
}
return 0;
/* End of SLARTG */
} /* slartg_ */
```
|
Presidential elections were held in El Salvador on 26 January 1850. Doroteo Vasconcelos ran unopposed and was elected by the legislature and the constitution was amended to allow his reelection.
Results
References
El Salvador
President
Election and referendum articles with incomplete results
Presidential elections in El Salvador
Single-candidate elections
|
Heier Township is a township in Mahnomen County, Minnesota, United States. The population was 154 at the 2000 census.
Heier Township was named for Frank Heier, a local educator.
Geography
According to the United States Census Bureau, the township has a total area of , of which of it is land and of it (7.24%) is water.
Demographics
As of the census of 2000, there were 154 people, 56 households, and 44 families residing in the township. The population density was . There were 67 housing units at an average density of . The racial makeup of the township was 85.71% White, 5.19% Native American, 0.65% Asian, and 8.44% from two or more races.
There were 56 households, out of which 39.3% had children under the age of 18 living with them, 66.1% were married couples living together, 8.9% had a female householder with no husband present, and 21.4% were non-families. 19.6% of all households were made up of individuals, and 7.1% had someone living alone who was 65 years of age or older. The average household size was 2.75 and the average family size was 3.16.
In the township the population was spread out, with 29.2% under the age of 18, 5.8% from 18 to 24, 29.2% from 25 to 44, 26.6% from 45 to 64, and 9.1% who were 65 years of age or older. The median age was 39 years. For every 100 females, there were 129.9 males. For every 100 females age 18 and over, there were 109.6 males.
The median income for a household in the township was $34,167, and the median income for a family was $42,917. Males had a median income of $17,250 versus $20,417 for females. The per capita income for the township was $15,290. About 5.9% of families and 7.3% of the population were below the poverty line, including 8.8% of those under the age of eighteen and 15.4% of those 65 or over.
References
Townships in Mahnomen County, Minnesota
Townships in Minnesota
|
```go
// Unless explicitly stated otherwise all files in this repository are licensed
// This product includes software developed at Datadog (path_to_url
package client
import (
"fmt"
"strings"
"testing"
"time"
"github.com/DataDog/datadog-agent/test/new-e2e/pkg/utils/e2e/client/agentclient"
"github.com/DataDog/datadog-agent/test/new-e2e/pkg/utils/optional"
"github.com/cenkalti/backoff"
"github.com/stretchr/testify/require"
)
type agentCommandExecutor interface {
execute(arguments []string) (string, error)
}
// agentCommandRunner is an internal type that provides methods to run Agent commands.
// It is used by both [VMClient] and [Docker]
type agentCommandRunner struct {
t *testing.T
executor agentCommandExecutor
isReady bool
}
// Create a new instance of agentCommandRunner
func newAgentCommandRunner(t *testing.T, executor agentCommandExecutor) *agentCommandRunner {
agent := &agentCommandRunner{
t: t,
executor: executor,
isReady: false,
}
return agent
}
func (agent *agentCommandRunner) executeCommand(command string, commandArgs ...agentclient.AgentArgsOption) string {
output, err := agent.executeCommandWithError(command, commandArgs...)
require.NoError(agent.t, err)
return output
}
func (agent *agentCommandRunner) executeCommandWithError(command string, commandArgs ...agentclient.AgentArgsOption) (string, error) {
if !agent.isReady {
err := agent.waitForReadyTimeout(1 * time.Minute)
require.NoErrorf(agent.t, err, "the agent is not ready")
agent.isReady = true
}
args, err := optional.MakeParams(commandArgs...)
require.NoError(agent.t, err)
arguments := []string{command}
arguments = append(arguments, args.Args...)
output, err := agent.executor.execute(arguments)
return output, err
}
// Version runs version command returns the runtime Agent version
func (agent *agentCommandRunner) Version(commandArgs ...agentclient.AgentArgsOption) string {
return agent.executeCommand("version", commandArgs...)
}
// Hostname runs hostname command and returns the runtime Agent hostname
func (agent *agentCommandRunner) Hostname(commandArgs ...agentclient.AgentArgsOption) string {
output := agent.executeCommand("hostname", commandArgs...)
return strings.Trim(output, "\n")
}
// Check runs check command and returns the runtime Agent check
func (agent *agentCommandRunner) Check(commandArgs ...agentclient.AgentArgsOption) string {
return agent.executeCommand("check", commandArgs...)
}
// Check runs check command and returns the runtime Agent check or an error
func (agent *agentCommandRunner) CheckWithError(commandArgs ...agentclient.AgentArgsOption) (string, error) {
args, err := optional.MakeParams(commandArgs...)
require.NoError(agent.t, err)
arguments := append([]string{"check"}, args.Args...)
return agent.executor.execute(arguments)
}
// Config runs config command and returns the runtime agent config
func (agent *agentCommandRunner) Config(commandArgs ...agentclient.AgentArgsOption) string {
return agent.executeCommand("config", commandArgs...)
}
// ConfigWithError runs config command and returns the runtime agent config or an error
func (agent *agentCommandRunner) ConfigWithError(commandArgs ...agentclient.AgentArgsOption) (string, error) {
args, err := optional.MakeParams(commandArgs...)
require.NoError(agent.t, err)
arguments := append([]string{"config"}, args.Args...)
return agent.executor.execute(arguments)
}
// Diagnose runs diagnose command and returns its output
func (agent *agentCommandRunner) Diagnose(commandArgs ...agentclient.AgentArgsOption) string {
return agent.executeCommand("diagnose", commandArgs...)
}
// Flare runs flare command and returns the output. You should use the FakeIntake client to fetch the flare archive
func (agent *agentCommandRunner) Flare(commandArgs ...agentclient.AgentArgsOption) string {
return agent.executeCommand("flare", commandArgs...)
}
// FlareWithError runs flare command and returns the output or an error. You should use the FakeIntake client to fetch the flare archive
func (agent *agentCommandRunner) FlareWithError(commandArgs ...agentclient.AgentArgsOption) (string, error) {
args, err := optional.MakeParams(commandArgs...)
require.NoError(agent.t, err)
arguments := append([]string{"flare"}, args.Args...)
return agent.executor.execute(arguments)
}
// Health runs health command and returns the runtime agent health
func (agent *agentCommandRunner) Health() (string, error) {
arguments := []string{"health"}
output, err := agent.executor.execute(arguments)
return output, err
}
// ConfigCheck runs configcheck command and returns the runtime agent configcheck
func (agent *agentCommandRunner) ConfigCheck(commandArgs ...agentclient.AgentArgsOption) string {
return agent.executeCommand("configcheck", commandArgs...)
}
// Integration run integration command and returns the output
func (agent *agentCommandRunner) Integration(commandArgs ...agentclient.AgentArgsOption) string {
return agent.executeCommand("integration", commandArgs...)
}
// IntegrationWithError run integration command and returns the output
func (agent *agentCommandRunner) IntegrationWithError(commandArgs ...agentclient.AgentArgsOption) (string, error) {
return agent.executeCommandWithError("integration", commandArgs...)
}
// Secret runs the secret command
func (agent *agentCommandRunner) Secret(commandArgs ...agentclient.AgentArgsOption) string {
return agent.executeCommand("secret", commandArgs...)
}
// IsReady runs status command and returns true if the command returns a zero exit code.
// This function should rarely be used.
func (agent *agentCommandRunner) IsReady() bool {
_, err := agent.executor.execute([]string{"status"})
return err == nil
}
// RemoteConfig runs remote-config command and returns the output
func (agent *agentCommandRunner) RemoteConfig(commandArgs ...agentclient.AgentArgsOption) string {
return agent.executeCommand("remote-config", commandArgs...)
}
// Status runs status command and returns a Status struct
func (agent *agentCommandRunner) Status(commandArgs ...agentclient.AgentArgsOption) *agentclient.Status {
return &agentclient.Status{
Content: agent.executeCommand("status", commandArgs...),
}
}
// StatusWithError runs status command and returns a Status struct and error
func (agent *agentCommandRunner) StatusWithError(commandArgs ...agentclient.AgentArgsOption) (*agentclient.Status, error) {
status, err := agent.executeCommandWithError("status", commandArgs...)
return &agentclient.Status{
Content: status,
}, err
}
// waitForReadyTimeout blocks up to timeout waiting for agent to be ready.
// Retries every 100 ms up to timeout.
// Returns error on failure.
func (agent *agentCommandRunner) waitForReadyTimeout(timeout time.Duration) error {
interval := 100 * time.Millisecond
maxRetries := timeout.Milliseconds() / interval.Milliseconds()
agent.t.Log("Waiting for the agent to be ready")
err := backoff.Retry(func() error {
_, err := agent.executor.execute([]string{"status"})
if err != nil {
return fmt.Errorf("agent not ready: %w", err)
}
return nil
}, backoff.WithMaxRetries(backoff.NewConstantBackOff(interval), uint64(maxRetries)))
return err
}
```
|
```objective-c
//
// LLBaseChatViewCell.m
// LLWeChat
//
// Created by GYJZH on 8/9/16.
//
#import "LLMessageBaseCell.h"
#import "LLUtils.h"
#import "UIKit+LLExt.h"
#import "LLColors.h"
#import "LLChatTextView.h"
#define MENU_FRAME_HEIGHT 50
#define TOUCH_DELAYED_TIME 0.2
UIImage *ReceiverTextNodeBkg;
UIImage *ReceiverTextNodeBkgHL;
UIImage *SenderTextNodeBkg;
UIImage *SenderTextNodeBkgHL;
UIImage *ReceiverImageNodeBorder;
UIImage *ReceiverImageNodeMask;
UIImage *SenderImageNodeBorder;
UIImage *SenderImageNodeMask;
BOOL LLMessageCell_isEditing = NO;
@interface LLMessageBaseCell () <UIGestureRecognizerDelegate>
@property (nonatomic) NSMutableArray <UIMenuItem *> *menuItems;
@end
@implementation LLMessageBaseCell {
UIView *tapView;
UIView *longPressedView;
}
@synthesize statusButton = _statusButton;
@synthesize indicatorView = _indicatorView;
@synthesize messageModel = _messageModel;
@synthesize selectControl = _selectControl;
+ (void)initialize {
if (!ReceiverTextNodeBkg) {
ReceiverTextNodeBkg = [[UIImage imageNamed:@"ReceiverTextNodeBkg"] resizableImage];
ReceiverTextNodeBkgHL = [[UIImage imageNamed:@"ReceiverTextNodeBkgHL"] resizableImage];
SenderTextNodeBkg = [[UIImage imageNamed:@"SenderTextNodeBkg"] resizableImage];
SenderTextNodeBkgHL = [[UIImage imageNamed:@"SenderTextNodeBkgHL"] resizableImage];
ReceiverImageNodeBorder = [[UIImage imageNamed:@"ReceiverImageNodeBorder"] resizableImage];
ReceiverImageNodeMask = [[UIImage imageNamed:@"ReceiverImageNodeMask"] resizableImage];
SenderImageNodeBorder = [[UIImage imageNamed:@"SenderImageNodeBorder"] resizableImage];
SenderImageNodeMask = [[UIImage imageNamed:@"SenderImageNodeMask"] resizableImage];
}
}
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
if (self) {
self.contentView.backgroundColor = kLLBackgroundColor_lightGray;
self.avatarImage = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, AVATAR_WIDTH, AVATAR_HEIGHT)];
self.avatarImage.contentMode = UIViewContentModeScaleAspectFill;
[self.contentView addSubview:self.avatarImage];
self.bubbleImage = [[UIImageView alloc] init];
self.bubbleImage.contentMode = UIViewContentModeScaleToFill;
[self.contentView addSubview:self.bubbleImage];
[self setupGestureRecognizer];
}
return self;
}
- (UIActivityIndicatorView *)indicatorView {
if (!_indicatorView) {
_indicatorView = [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleGray];
[self.contentView addSubview:_indicatorView];
_indicatorView.hidden = YES;
[self layoutMessageStatusViews:self.messageModel.isFromMe];
}
return _indicatorView;
}
- (UIButton *)statusButton {
if (!_statusButton) {
_statusButton = [UIButton buttonWithType:UIButtonTypeCustom];
[_statusButton setImage:[UIImage imageNamed:@"MessageSendFail"] forState:UIControlStateNormal];
_statusButton.contentMode = UIViewContentModeScaleAspectFit;
_statusButton.frame = CGRectMake(0, 0, 24, 24);
[self.contentView addSubview:_statusButton];
_statusButton.hidden = YES;
[self layoutMessageStatusViews:self.messageModel.isFromMe];
}
return _statusButton;
}
- (void)prepareForUse:(BOOL)isFromMe {
NSString *iconName = isFromMe ? @"icon_avatar" : @"user";
self.avatarImage.image = [UIImage imageNamed:iconName];
self.bubbleImage.image = isFromMe ? SenderTextNodeBkg : ReceiverTextNodeBkg;
self.bubbleImage.highlightedImage = isFromMe ? SenderTextNodeBkgHL : ReceiverTextNodeBkgHL;
_isCellEditing = LLMessageCell_isEditing;
if (_isCellEditing) {
self.selectControl.frame = CGRectMake(3, (AVATAR_HEIGHT - EDIT_CONTROL_SIZE)/2, EDIT_CONTROL_SIZE, EDIT_CONTROL_SIZE);
}
if (isFromMe) {
self.avatarImage.frame = CGRectMake(SCREEN_WIDTH - CGRectGetWidth(self.avatarImage.frame) - AVATAR_SUPER_LEFT,
AVATAR_SUPER_TOP,
AVATAR_WIDTH, AVATAR_HEIGHT);
}else {
CGFloat _x = _isCellEditing ? CGRectGetMaxX(self.selectControl.frame) + 3 : AVATAR_SUPER_LEFT;
self.avatarImage.frame = CGRectMake(_x, AVATAR_SUPER_TOP, AVATAR_WIDTH, AVATAR_HEIGHT);
}
}
- (void)setIsCellSelected:(BOOL)isCellSelected {
_isCellSelected = isCellSelected;
self.messageModel.isSelected = isCellSelected;
self.selectControl.image = [UIImage imageNamed:isCellSelected ? @"CellBlueSelected": @"CellNotSelected"];
}
- (UIImageView *)selectControl {
if (!_selectControl) {
_selectControl = [[UIImageView alloc] initWithFrame:CGRectMake(-EDIT_CONTROL_SIZE, (AVATAR_HEIGHT - EDIT_CONTROL_SIZE)/2, EDIT_CONTROL_SIZE, EDIT_CONTROL_SIZE)];
_selectControl.contentMode = UIViewContentModeCenter;
self.isCellSelected = self.isCellSelected;
[self.contentView addSubview:_selectControl];
}
return _selectControl;
}
- (void)setCellEditingAnimated:(BOOL)animated {
if (_isCellEditing == LLMessageCell_isEditing)
return;
_isCellEditing = LLMessageCell_isEditing;
[UIView animateWithDuration:animated ? DEFAULT_DURATION : 0
animations:^{
if (_isCellEditing) {
self.selectControl.frame = CGRectMake(3, (AVATAR_HEIGHT - EDIT_CONTROL_SIZE)/2, EDIT_CONTROL_SIZE, EDIT_CONTROL_SIZE);
if (!self.messageModel.isFromMe) {
self.avatarImage.frame = CGRectMake(CGRectGetMaxX(self.selectControl.frame) + 3,AVATAR_SUPER_TOP, AVATAR_WIDTH, AVATAR_HEIGHT);
[self layoutMessageContentViews:NO];
[self layoutMessageStatusViews:NO];
}
}else {
_selectControl.frame = CGRectMake(-EDIT_CONTROL_SIZE, (AVATAR_HEIGHT - EDIT_CONTROL_SIZE)/2, EDIT_CONTROL_SIZE, EDIT_CONTROL_SIZE);
if (!self.messageModel.isFromMe) {
self.avatarImage.frame = CGRectMake(AVATAR_SUPER_LEFT,AVATAR_SUPER_TOP, AVATAR_WIDTH, AVATAR_HEIGHT);
[self layoutMessageContentViews:NO];
[self layoutMessageStatusViews:NO];
}
}
}];
}
- (void)willDisplayCell {
}
- (void)didEndDisplayingCell {
}
- (void)willBeginScrolling {
[self contentTouchCancelled];
}
- (void)didEndScrolling {
}
- (void)setMessageModel:(LLMessageModel *)messageModel {
_messageModel = messageModel;
self.isCellSelected = messageModel.isSelected;
if ([messageModel checkNeedsUpdateForReuse]) {
[self layoutMessageContentViews:messageModel.isFromMe];
[self layoutMessageStatusViews:messageModel.isFromMe];
}
if ([messageModel checkNeedsUpdateThumbnail]) {
[self updateMessageThumbnail];
}
if (self.messageModel.isFromMe) {
if ([messageModel checkNeedsUpdateUploadStatus]){
[self updateMessageUploadStatus];
}
}else {
if ([messageModel checkNeedsUpdateDownloadStatus]) {
[self updateMessageDownloadStatus];
}
}
[messageModel clearNeedsUpdateForReuse];
}
#pragma mark - -
+ (void)setCellEditing:(BOOL)_isCellEditing {
LLMessageCell_isEditing = _isCellEditing;
}
- (void)updateMessageUploadStatus {
switch (self.messageModel.messageStatus) {
case kLLMessageStatusDelivering:
case kLLMessageStatusWaiting:
HIDE_STATUS_BUTTON;
SHOW_INDICATOR_VIEW;
break;
case kLLMessageStatusSuccessed:
HIDE_STATUS_BUTTON;
HIDE_INDICATOR_VIEW;
break;
case kLLMessageStatusFailed:
case kLLMessageStatusPending:
SHOW_STATUS_BUTTON;
HIDE_INDICATOR_VIEW;
break;
default:
break;
}
[_messageModel clearNeedsUpdateUploadStatus];
}
- (void)updateMessageDownloadStatus {
[_messageModel clearNeedsUpdateDownloadStatus];
}
- (void)updateMessageThumbnail {
[_messageModel clearNeedsUpdateThumbnail];
}
- (void)layoutMessageContentViews:(BOOL)isFromMe {
}
- (void)layoutMessageStatusViews:(BOOL)isFromMe {
if (isFromMe) {
_indicatorView.center = CGPointMake(CGRectGetMinX(self.bubbleImage.frame) - CGRectGetWidth(_indicatorView.frame)/2 - ACTIVITY_VIEW_X_OFFSET + BUBBLE_LEFT_BLANK, CGRectGetMidY(self.bubbleImage.frame) + ACTIVITY_VIEW_Y_OFFSET);
_statusButton.center = CGPointMake(CGRectGetMinX(self.bubbleImage.frame) - CGRectGetWidth(_statusButton.frame)/2 - ACTIVITY_VIEW_X_OFFSET + BUBBLE_LEFT_BLANK, CGRectGetMidY(self.bubbleImage.frame) + ACTIVITY_VIEW_Y_OFFSET);
}
}
+ (UIImage *)bubbleImageForModel:(LLMessageModel *)model {
return model.isFromMe ? SenderTextNodeBkg : ReceiverTextNodeBkg;
}
+ (CGFloat)heightForModel:(LLMessageModel *)model {
return 68;
}
- (CGRect)contentFrameInWindow {
return CGRectZero;
}
#pragma mark -
- (void)setupGestureRecognizer {
tap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(contentTapped:)];
tap.delegate = self;
tap.numberOfTapsRequired = 1;
tap.numberOfTouchesRequired = 1;
[self.contentView addGestureRecognizer:tap];
longPressGR = [[UILongPressGestureRecognizer alloc] initWithTarget:self action:@selector(contentLongPressed:)];
longPressGR.delegate = self;
longPressGR.minimumPressDuration = 0.6;
longPressGR.allowableMovement = 1000;
[self.contentView addGestureRecognizer:longPressGR];
}
- (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldReceiveTouch:(UITouch *)touch {
if (self.hidden || !self.userInteractionEnabled || self.alpha <= 0.01)
return NO;
BOOL isTapGestureRecognizer = [gestureRecognizer isKindOfClass:[UITapGestureRecognizer class]];
//CellSelect Controll
if (LLMessageCell_isEditing) {
tapView = _selectControl;
longPressedView = nil;
return isTapGestureRecognizer ? YES : NO;
}
if (_statusButton && !_statusButton.hidden) {
CGPoint point = [touch locationInView:_statusButton];
if ([_statusButton pointInside:point withEvent:nil]) {
tapView = _statusButton;
return isTapGestureRecognizer ? YES : NO;
}
}
BOOL isMenuVisible = [UIMenuController sharedMenuController].menuVisible;
if (isMenuVisible && isTapGestureRecognizer) {
[self performSelectorOnMainThread:@selector(hideMenuController) withObject:nil waitUntilDone:NO];
// [[UIMenuController sharedMenuController] setMenuVisible:NO animated:YES];
}
CGPoint point = [touch locationInView:self.avatarImage];
if ([self.avatarImage pointInside:point withEvent:nil]) {
tapView = self.avatarImage;
return isTapGestureRecognizer ? YES : NO;
}
UIView *hitTestView;
point = [touch locationInView:self.contentView];
if (isTapGestureRecognizer) {
tapView = [self hitTestForTapGestureRecognizer:point];
hitTestView = tapView;
}else {
longPressedView = [self hitTestForlongPressedGestureRecognizer:point];
hitTestView = longPressedView;
}
if (isTapGestureRecognizer) {
if (hitTestView) {
WEAK_SELF;
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(TOUCH_DELAYED_TIME * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
[weakSelf delayedCallback:touch];
});
return YES;
}else {
return isMenuVisible;
}
}else {
return hitTestView != nil;
}
}
- (UIView *)hitTestForTapGestureRecognizer:(CGPoint)point {
return self.contentView;
}
- (UIView *)hitTestForlongPressedGestureRecognizer:(CGPoint)point {
return self.contentView;
}
- (void)delayedCallback:(UITouch *)touch {
if (!touch || touch.phase == UITouchPhaseEnded || touch.phase == UITouchPhaseCancelled || ![touch.gestureRecognizers containsObject:tap]) {
return;
}
[self contentTouchBeganInView:tapView];
}
- (void)contentTapped:(UITapGestureRecognizer *)tap {
if (!self.messageModel || !tapView)
return;
if (tapView == self.avatarImage) {
[self avatarImageDidTapped];
}else if (tapView == _statusButton) {
[self statusButtonDidTapped];
}else if (tapView == _selectControl) {
[self selectControlDidTapped];
}else {
[self contentEventTappedInView:tapView];
}
tapView = nil;
}
- (void)statusButtonDidTapped {
if (self.messageModel.fromMe) {
SAFE_SEND_MESSAGE(self.delegate, resendMessage:) {
[LLUtils showConfirmAlertWithTitle:nil
message:@""
yesTitle:@""
yesAction:^{
[self.delegate resendMessage:self.messageModel];
}
cancelTitle:@""
cancelAction:nil];
}
}else {
SAFE_SEND_MESSAGE(self.delegate, redownloadMessage:) {
[self.delegate redownloadMessage:self.messageModel];
}
}
}
- (void)avatarImageDidTapped {
SAFE_SEND_MESSAGE(self.delegate, avatarImageDidTapped:) {
[self.delegate avatarImageDidTapped:self];
}
}
- (void)selectControlDidTapped {
if (LLMessageCell_isEditing) {
self.isCellSelected = !self.isCellSelected;
SAFE_SEND_MESSAGE(self.delegate, selectControllDidTapped:selected:) {
[self.delegate selectControllDidTapped:self.messageModel selected:_isCellSelected];
}
}
}
- (void)contentEventTappedInView:(UIView *)view {
[self.delegate cellDidTapped:self];
}
- (void)contentLongPressed:(UILongPressGestureRecognizer *)longPress {
switch (longPress.state) {
case UIGestureRecognizerStateBegan:
[self contentLongPressedBeganInView:longPressedView];
break;
case UIGestureRecognizerStateChanged:
break;
case UIGestureRecognizerStateEnded:
case UIGestureRecognizerStateCancelled:
[self contentLongPressedEndedInView:longPressedView];
longPressedView = nil;
break;
default:
break;
}
}
- (void)cancelContentTouch {
[self contentTouchCancelled];
}
- (void)contentTouchBeganInView:(UIView *)view {
}
- (void)contentTouchCancelled {
}
- (void)contentLongPressedBeganInView:(UIView *)view {
}
- (void)contentLongPressedEndedInView:(UIView *)view {
}
- (UIView *)hitTest:(CGPoint)point withEvent:(UIEvent *)event {
if (self.hidden || !self.userInteractionEnabled || self.alpha <= 0.01)
return nil;
if ([self.contentView pointInside:[self convertPoint:point toView:self.contentView] withEvent:event]) {
return self.contentView;
}
return nil;
}
#pragma mark -
- (BOOL)canBecomeFirstResponder{
return YES;
}
-(BOOL)canPerformAction:(SEL)action withSender:(id)sender{
for (NSInteger i = 0; i < self.menuItemActionNames.count; i++) {
if (action == NSSelectorFromString(self.menuItemActionNames[i])) {
return YES;
}
}
return NO;//
}
- (void)hideMenuController {
[[UIMenuController sharedMenuController] setMenuVisible:NO animated:YES];
}
- (void)showMenuControllerInRect:(CGRect)rect inView:(UIView *)view {
UIResponder *firstResponder;
SAFE_SEND_MESSAGE(self.delegate, currentFirstResponderIfNeedRetain) {
firstResponder = [self.delegate currentFirstResponderIfNeedRetain];
}
LLChatTextView *textView;
if ([firstResponder isKindOfClass:[LLChatTextView class]]) {
textView = (LLChatTextView *)firstResponder;
}
UIMenuController *menu = [UIMenuController sharedMenuController];
if (!self.menuItems) {
self.menuItems = [NSMutableArray arrayWithCapacity:self.menuItemNames.count];
for (NSInteger i =0; i < self.menuItemNames.count; i++) {
UIMenuItem *item = [[UIMenuItem alloc] initWithTitle:self.menuItemNames[i] action:NSSelectorFromString(self.menuItemActionNames[i])];
[self.menuItems addObject:item];
}
}
[menu setMenuItems:self.menuItems];
[menu setTargetRect:rect inView:view];
menu.arrowDirection = UIMenuControllerArrowDefault;
//CellFirstResponder
if (!textView) {
[self becomeFirstResponder];
//TextViewFirstResponderMenu
}else {
textView.targetCell = self;
}
[menu setMenuVisible:YES animated:YES];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(menuDidHideCallback:) name:UIMenuControllerDidHideMenuNotification object:menu];
// [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(menuWillHideCallback:) name:UIMenuControllerWillHideMenuNotification object:menu];
//
// [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(menuDidShowCallback:) name:UIMenuControllerDidShowMenuNotification object:menu];
}
- (void)menuWillHideCallback:(NSNotification *)notify {
[[NSNotificationCenter defaultCenter] removeObserver:self name:UIMenuControllerWillHideMenuNotification object:nil];
SAFE_SEND_MESSAGE(self.delegate, willHideMenuForCell:) {
[self.delegate willHideMenuForCell:self];
}
}
- (void)menuDidHideCallback:(NSNotification *)notify {
[[NSNotificationCenter defaultCenter] removeObserver:self name:UIMenuControllerDidHideMenuNotification object:nil];
[self cancelContentTouch];
((UIMenuController *)notify.object).menuItems = nil;
SAFE_SEND_MESSAGE(self.delegate, didHideMenuForCell:) {
[self.delegate didHideMenuForCell:self];
}
}
- (void)menuDidShowCallback:(NSNotification *)notify {
[[NSNotificationCenter defaultCenter] removeObserver:self name:UIMenuControllerDidShowMenuNotification object:nil];
SAFE_SEND_MESSAGE(self.delegate, didShowMenuForCell:) {
[self.delegate didShowMenuForCell:self];
}
}
- (void)deleteAction:(id)sender {
[self.delegate deleteMenuItemDidTapped:self];
}
- (void)moreAction:(id)sender {
[self.delegate moreMenuItemDidTapped:self];
}
- (void)copyAction:(id)sender {
}
- (void)transforAction:(id)sender {
}
- (void)favoriteAction:(id)sender {
}
- (void)translateAction:(id)sender {
}
- (void)addToEmojiAction:(id)sender {
}
- (void)forwardAction:(id)sender {
}
- (void)showAlbumAction:(id)sender {
}
- (void)playAction:(id)sender {
}
- (void)translateToWordsAction:(id)sender {
}
@end
```
|
Michael Gomez (born Michael Armstrong; 21 June 1977) is a former professional boxer who competed from 1995 to 2009. He was born to an Irish Traveller family in Longford, Ireland, spending his early years in Dublin before moving to London and later Manchester, England, with his family at the age of nine. In boxing he was affectionately known as "The Predator", "The Irish Mexican" and "The Mancunian Mexican".
Despite finishing his career fighting in the lightweight division, Gomez is more notable for his fights at featherweight and super-featherweight. During his career he amassed a number of regional championships, most significantly the British super-featherweight title twice, from 1999 to 2004. He also held the WBU super featherweight title from 2004 to 2005.
Gomez, who has been compared to Johnny Tapia, has lived a turbulent life and was often involved in controversial fights. In Gomez's initial matches he suffered a number of losses to journeyman opposition but then went on a run of victories which stretched for almost four years. Of his 17 fights between February 2001 and March 2008, 16 ended in knockouts. Concerns arose about his drinking and failure to adhere to his diet and training regimes after a loss to László Bognár in 2001. Gomez appeared to be "back on track" in 2003, with his high-profile fight against Edinburgh-based fighter Alex Arthur for the British and WBA Inter-Continental super-featherweight titles, which Gomez won by knocking out Arthur in the fifth round.
In 2006, Gomez suffered a controversial loss to Peter McDonagh when, in the middle of a round, he dropped his guard and walked out of the ring, later saying he had retired from boxing. He returned to the ring after a 15-month interval. On 21 June 2008, Gomez lost what was seen as possibly his last bout: a last chance saloon opportunity to resurrect his career against rising star and Olympic silver medallist Amir Khan. Although scoring a surprise knockdown against Khan early on, the fight ended with Gomez being stopped in five rounds.
Gomez took the surname Gomez after his childhood hero Wilfredo Gómez.
Background
Michael Armstrong was born into an Irish traveller family in Longford, Ireland. His mother went into labour with him while driving, so his partially sighted father took over the wheel but crashed the car into a lamp post on the way to the hospital; Michael was delivered in the back seat. The Armstrong family moved to Ballymun, Dublin, and, when Michael was age nine, to Manchester, England.
Following the family's move to England, Armstrong's father's eyesight failed further due to retinitis pigmentosa. By that time, there were ten children in the Armstrong family. After his younger sister, Louise, died from sudden infant death syndrome, his mother left the family to live with another woman. Armstrong subsequently spent much of his youth in various children's homes, and was a serial truant from school. His mother had taught him to shoplift as a child, and he was involved in petty crime throughout his youth in Manchester. At nine years old, he began training at Brian Hughes' Collyhurst and Moston Boys' Club. He also played football for a local North Manchester team until the club received so many fines for Armstrong's fighting on the pitch that they were unable to pay them. At this point, he stopped playing football to concentrate on his training in the ring. During his time in the children's home Armstrong met Alison, who has remained his companion (and later his wife) throughout his professional career; they were parents by the time Armstrong was 17.
Professional career
Early years
Armstrong boxed as an amateur before turning professional in June 1995. He chose the professional surname "Gomez" when the British Boxing Board of Control (BBBoC) required him to select another name at the time of his registration as a professional; there was another boxer in the same weight division using the name "Michael Armstrong". He chose his ring name in honour of Puerto Rican boxer Wilfredo Gómez, whose videotaped fights Armstrong had studied intently as a youth. The name, combined with Gomez's "brawling style", earned him the nickname of "the Irish Mexican". He developed a ring persona based on this nickname, which has remained popular with fans throughout his career. His ring entrance music is that of a Mexican Mariachi band, a reference to his Hispanic-sounding chosen name, and many of his supporters wear sombreros to his fights and wave Irish flags. Gomez also wears long Mexican-style boxing shorts in the colours of the flag of Ireland and often has the shape of a shamrock shaved into the hair on the back of his head.
In his debut fight at the G-Mex Leisure Centre, Manchester, England, Gomez beat previously undefeated Danny Ruegg on the undercard of a bill that included Robin Reid and Michael Brodie. Despite this initial win, Gomez's early career was littered with losses to journeyman fighters such as Greg Upton and Chris Williams.
In 1996, Gomez was charged with murder after a gang fight outside a nightclub in Manchester. Gomez had hit one of his attackers, Sam Parle, who died after his head hit the pavement as a result of the blow. The charge was later reduced to manslaughter and Gomez was cleared after it was ruled that he had acted in self-defence.
After this shaky beginning in the professional ranks, Gomez had a run of victories from September 1997 to February 1999. During this period Gomez won seven straight fights before challenging for his first title belt, the vacant British Central Area featherweight title against Chris Jickells on 27 February 1999 in Oldham. Gomez won the title with a fifth-round knockout. He followed his first title win by adding another championship, the IBF Inter-Continental featherweight title, with a second-round knockout over Nigel Leake.
Move to super-featherweight
Later that year, Gomez relinquished his championship belts in a bid to move up to the super featherweight division. His first fight in the division, in September 1999, was for the vacant British super featherweight title, against the experienced and much heralded Liverpudlian fighter Gary Thornhill. Gomez defeated Thornhill with a second-round knockout. In November 1999, Gomez faced off against Mexican Jose Manjarrez for the WBO Inter-Continental super featherweight title, walking away with the title based on the judges' scores after the full twelve rounds. In 1999, Gomez won four title belts, was undefeated during the year and was also named "Young Boxer of the Year" by the British Boxing Writers' Club. He continued his winning form into 2000 with another run of six wins, and successfully defended his British super featherweight title against Dean Pithie, Carl Greaves and Ian McLeod.
Bognar and Lear fights
Gomez's first fight in 2001 was on 10 February against Hungarian boxer Laszlo Bognar for the WBO Inter-Continental super featherweight title, in Widnes, Cheshire. Gomez had Bognar on the canvas in the fifth round, but Bognar recovered from this knockdown and used his southpaw jab to keep Gomez from closing in. In the ninth round referee Dave Paris stopped the fight following a double left from Bognar, which had Gomez stricken against the ropes. Gomez felt the fight had been stopped prematurely and that he should have been allowed to continue. Gomez later stated that he was suffering from flu and should not have taken the fight. The Daily Telegraph reported after the match that the pre-fight weigh-in and medical examination were not carried out in accordance with BBBC regulations: the volunteer inspector left before Bognar and Gomez had weighed in, and the medical examiner had not detected that Gomez was ill.
Gomez sought a rematch against Bognar, and five months later in July 2001 the pair met again, this time in Manchester, resulting in a victory for Gomez. The fight started badly for Gomez when he suffered a flash knockdown in the first round and was down again in the second. Gomez came back to knock Bognar down near the end of the second round. Gomez came out firing at the start of the third round and finished the fight with a fourth and final knockdown to avenge his earlier defeat. He followed up his victory over Bognar with a second-round knockout of Scottish fighter Craig Docherty for another British super featherweight title win.
His next opponent was unbeaten West Ham-based fighter Kevin Lear on 1 June 2002, again in Manchester, on the undercard of the Ricky Hatton vs. Eamonn Magee fight. Lear, a former Amateur Boxing Association of England (ABA) champion, kept a one-dimensional Gomez at bay with his sharp jab from the outset of the fight. Gomez took several punches to the face, and his nose began to bleed heavily starting in the sixth round. By the eighth round Gomez was slowing, suffering the effects of Lear's continuing barrage of combinations. At the end of the eighth round Gomez's trainer Brian Hughes retired his fighter, giving Lear a surprise victory.
The defeat to Lear, and the manner in which the fight ended, prompted Hughes, Gomez's longtime mentor and trainer, to ask Gomez to retire from boxing. This event signalled the end of the relationship between Gomez and Hughes; soon after, Gomez crossed Manchester to join Ricky Hatton and former Collyhurst gym stablemate Anthony Farnell at the rival Phoenix Gym run by Billy Graham. Gomez followed the defeat to Lear with a string of three wins, all by knockout.
During the period between the first Bognar fight and the loss to Lear, Gomez's life spun out of control. He was "boozing, brawling and womanising", and was convicted of four drink-drive offenses. During a street fight, Gomez was stabbed and badly injured—his heart stopped beating for 148 seconds while on the operating table.
Alex Arthur fight
Following his change in trainer, Gomez was contracted for the highest profile fight of his career against Edinburgh-based fighter "Amazing" Alex Arthur for the British and WBA Inter-Continental super featherweight titles. The fight took place in a sold-out Meadowbank Stadium in October 2003, in what was the first professional boxing card in Edinburgh in almost 20 years.
Prior to the fight, Arthur had opined during interviews that "looking deep into Gomez's eyes at the press conference, I'm not sure even he believes he can win. He'll be so fired up I expect it'll take me eight or nine rounds but, if his resistance has gone as people are saying, it could be a lot sooner." With respect to his approach to the fight, Arthur added "I see about 20 ways to beat him. I'm just looking forward to shutting him up."
Arthur, who was looking to retain the BBBofC Lonsdale Belt, was seen as a rising star in British boxing. He was a strong favourite to win the bout against Gomez, who was perceived to have been through too many battles and abused his body too much, and the fight was seen as a stepping stone on Arthur's way to a future world championship. However, Freddie Roach, Arthur's trainer, was criticised when he remained in the United States to coach another boxer instead of continuing to work with Arthur to prepare for his championship match.
Gomez proved his critics wrong when he arrived at the fight in prime condition and with aggression, determination and desire. The first two rounds started at a furious pace, with Arthur keeping Gomez at bay with stiff jabs and Gomez working inside with hooks and body punches. The match was turning into a clash of opposing styles, Arthur displaying control and boxing technique and Gomez storming forward with wild ferocity. From the third round the fight began to turn Gomez's way. Gomez cut Arthur in the third and silenced the home crowd, who were not used to seeing the home-town hero being battered in this manner. Gomez dominated the fourth round and was in full control of the fight—he exposed Arthur's weak defence and at one stage landed 28 punches without reply.
Gomez knocked down his opponent twice before delivering a jarring left hook to Arthur, knocking Arthur to the canvas for the third time. Referee John Coyle stopped the fight, and Gomez won with the resulting TKO in the fifth round. The match was hailed as one of the best fights in Britain for a decade. Boxing promoter Frank Warren called the fight "the greatest contest seen on these shores since Nigel Benn beat Gerald McClellan in 1995". Retired Scottish boxer Ken Buchanan said it was one of the best fights he had ever seen.
Gomez attended Arthur's next fight against Ugandan Michael Kizza in Meadowbank, Scotland, but Arthur did not appear when Gomez fought Ben Odamattey for the WBU super featherweight title in Manchester a few weeks later. Gomez pointed this out when being interviewed shortly afterward, adding "Sky Television want a return. Frank Warren, Arthur's manager, wants a re-match. And most of all so do I." Arthur responded by saying "the fight (with Gomez) is definitely going to happen. Hopefully I'll get another warm-up fight in June and then take on Gomez in September." Despite the rhetoric, the two fighters did not meet each other in the ring again.
WBU world title
In March 2004, Gomez fought Ghanaian Ben Odamattey for the WBU super featherweight title at the MEN Arena in Manchester, winning the championship by stopping Odamattey in the third round. He retained his WBU title in his next two fights against Justin Juuko and Leva Kirakosyan with knockout wins. Gomez then faced Argentinian boxer "El Vikingo" Javier Osvaldo Alvarez in February 2005, once again fighting at the MEN Arena in Manchester. WBO super middleweight title holder Joe Calzaghe had been scheduled to top the bill but pulled out of his arranged fight, and Gomez and Alvarez were slotted as the main attraction.
The pair clashed at the weigh in, and this antagonism carried into the ring; from the outset of the fight Gomez tried to draw Alvarez into a brawl. Gomez appeared to win the first two rounds behind stinging jabs, but Alvarez seemed unruffled. In the third round, Alvarez started to take control of the fight and landed several blows to Gomez's face. Gomez began quickly in the fourth round, attacking Alvarez from behind his jab and working his way through his opponent's defense. Alvarez appeared content to catch Gomez as he moved forward. Despite Gomez's strong start, Alvarez dazed Gomez with a stiff right hand shot in the fourth round, after which the Argentinian launched into a furious onslaught. Gomez steadied in the fifth but was visibly tired. Two minutes into the sixth round, Alvarez floored Gomez with a right hook. Gomez beat the count and Alvarez then moved in to continue his attack. Referee Mickey Vann stopped the fight after 2 minutes 25 seconds of the round with Gomez pinned to the ropes and taking significant punishment.
Peter McDonagh controversy
Gomez was out of the ring for almost a year following the Alvarez fight and was next due to fight Willie Limond for the WBU lightweight title, but turned down the opportunity for a chance to fight for an Irish title. Gomez then signed up to fight fellow English-based Irishman, Peter McDonagh, for the Irish lightweight title on the undercard of a Bernard Dunne fight on 28 January 2006 at the National Stadium, Dublin. After the fight was signed Gomez stated "I just can't wait to get my hands on that Irish title because I've been desperate to fight in Ireland for years."
Leading up to the fight McDonagh was making visits to see paranormalist Uri Geller as "mind coach" to help him prepare mentally for the fight, and Geller also travelled with him to Dublin for the fight. Gomez commented that "I'm not sure Uri Geller will be of much use to him though because there won't be any spoons in that ring for him to bend. The only thing I plan on bending is some of McDonagh's ribs with my body punches."
The first four rounds were relatively close, with Gomez leading according to pundits, but the fight ended in the fifth round under bizarre circumstances when for no apparent reason Gomez stopped fighting and failed to defend himself. He then received a number of unanswered punches from McDonagh before being floored. Gomez rose from the canvas immediately but appeared to ignore the referee and walk towards his corner while the referee continued with his count. Gomez then left the ring as the referee was waving the fight off. RTÉ commentator Steve Collins said "I smell a rat, something's not right here."
The Boxing Union of Ireland (BUI) initially suspended both fighters' purses, and investigated reports of unusual betting patterns, with large sums of money being placed on McDonagh to win inside the distance and more specifically in the fifth round. Odds on McDonagh to win the fight in the fifth round had been cut from 125–1 to 18–1 by the afternoon of the bout. Following their investigation, the BUI released the purses to each of the fighters, stating "Michael Gomez and Peter McDonagh confirmed that neither they, their families, nor any person in their camp, as far as they were aware, betted on the fight." The BUI did express disappointment that the bookmaker, Boylesports, who had suspended wagering on the bout due to the unusual betting patterns, had chosen not to reply to the investigators' queries.
Gomez later explained the loss by saying that "it was all very simple, I just came to a decision in there that I need to retire from boxing full stop". Gomez further indicated that he planned to pursue a career in bodybuilding. McDonagh, meanwhile, claimed that he had won because of Gellar's assistance leading up to the bout.
Gomez sought a second opportunity to fight McDonagh; in April 2007, he offered to fight for only his training costs. Finally, their rematch for the Irish lightweight title, to be billed as "Redemption", was set for 23 May 2008, but McDonagh pulled out of the scheduled bout.
Return to the ring
Gomez found himself once again drawn to boxing after watching a fight between Alex Arthur and Carl Johanneson, and resumed training. In May 2007, fifteen months after his fight with McDonagh, he returned to the ring to face Daniel Thorpe at the Altrincham Leisure Centre, Manchester.
Gomez had left the Phoenix Gym and was now training at Bobby Rimmers' Boxing Academy in Stalybridge, Manchester, and had returned to fight in the super featherweight division. The fight was billed as "The Last Stand", and the venue was sold out with fellow fighters Ricky Hatton and his brother Matthew Hatton cheering him on from ringside. Gomez won the fight with a stoppage in the third round. The following month Gomez also beat Youssef Al Hamidi, again with a third round stoppage. Following two comeback fights against journeyman opposition Gomez was rumoured to be in line for fights against many of Britain and Ireland's top level super featherweights and lightweights including Kevin Mitchell, Amir Khan, and Carl Johanneson; Gomez himself was seeking a rematch against Peter McDonagh.
He then signed up to face Leeds's Johanneson on 19 October 2007 at the Doncaster Dome, Doncaster, England for the British super featherweight title. Johanneson had just come off his second defeat to Armenian Leva Kirakosyan, whom Gomez had knocked out in October 2004. Before the fight, Gomez was confident, stating "You can't outbox me. I'll jab your head off. If he comes to have a fight with me it is going to be early Christmas for everyone because I don't know who's going to go but someone's going to go and it's not going to be me." At the pre-fight press conference in Doncaster both fighters squared up to each other and promised to knock each other out; during the highly charged face off both fighters had to be kept apart by their promoter and trainers.
As many expected, the highly anticipated domestic clash was a savage brawl from round one. Gomez won the opening rounds and threatened to overpower Johanneson from the opening seconds. The Leeds fighter then gained the upper hand as the fight went on, flooring Gomez in the sixth round only for the "Irish Mexican" to rise from the canvas. Soon after, with Gomez appearing unsteady on his feet, referee Mickey Vann stopped the fight. Gomez said that Vann had stopped the fight early, adding, "When the stoppage came, I wasn't wobbling or staggering, and I only dropped my hands in the fight to show Johanneson that he couldn't hurt me. But the referee simply got the wrong message. It was bad refereeing. I told him straight away I was fine, but he insisted on showing me to my corner." The former champion was clear that he wanted another opportunity to fight for the British title.
Amir Khan fight
Gomez fought Amir Khan for the Commonwealth lightweight title at the National Indoor Arena, Birmingham, on 21 June 2008, Gomez's thirty-first birthday. Khan said that "there is no way he will be as fit as me, so I expect a spectacular stoppage". Gomez did not attend the scheduled pre-fight press conference, prompting Khan to deride him, and promoter Frank Warren accused Gomez of failing to show respect to Khan and the media.
During the fight Khan knocked Gomez to the canvas in the first round with a barrage of hooks and uppercuts. In the second round, Gomez caught Khan with a left hook, knocking down the younger fighter and exposing his defensive weakness; however, Khan steadied himself after the mandatory eight-count, and cut Gomez above the left eye before the round ended. Gomez caught Khan in the ribs with a left hook in the fourth round which left Khan unstable for a moment, but Khan responded with a flurry of hooks and jabs. Khan landed a "cracking left hook" in the fifth, but Gomez beat the count. At 2:32 of the fifth round, referee John Keane stopped the fight when Gomez was knocked into the ropes by a Khan left uppercut. After the fight, Khan said he felt he had moved up a level by "fighting world class fighters like Gomez."
Before the fight, sports writers considered Gomez a tough opponent for Khan, with his "knockout punch" and his success against Alex Arthur in similar circumstances, despite having lost three of his last six fights. Gomez saw the fight as an opportunity to reignite his career; in an interview shortly before the fight he spoke of how "[t]his fight really is my last chance to set myself up for life and become known in every household in Britain". At the same time, he reflected on the positive effects of his career in the ring, saying "Boxing kept my feet on the ground and gave me a focus. It's got me through the bad times and calmed me down. If it wasn't for boxing, I wouldn't have my beautiful wife and family". Gomez lives with his wife Alison and their three children in Manchester.
Professional boxing record
References
External links
1977 births
Living people
British Boxing Board of Control champions
Featherweight boxers
Irish expatriate sportspeople in the United Kingdom
Irish male boxers
Irish Traveller sportspeople
Lightweight boxers
Boxers from County Longford
Boxers from Dublin (city)
Boxers from Manchester
Super-featherweight boxers
20th-century Irish people
21st-century Irish people
|
The 2016 U.S. Virgin Islands Democratic presidential caucuses were held on June 4 in the U.S. territory of the United States Virgin Islands as one of the Democratic Party's primaries ahead of the 2016 presidential election.
Neither the Democratic Party nor the Republican Party held any other primaries on that day, with the Republican Party's own Virgin Islands caucus having taken place on March 10.
Seven of Virgin Islands' 12 Democratic delegates are pledged to presidential contenders based on the results of the voting in the Virgin Islands Territorial Convention. A mandatory 15 percent threshold is required in order for a presidential contender to be pledged National Convention delegates.
The At-Large delegates are to be pledged proportionally to presidential contenders based on the Caucus results on each of the three islands: four from St Thomas and St. John jointly, and three from St. Croix. Hillary Clinton won the Virgin Islands Democratic Caucuses.
This is the only primary where Bernie Sanders receives zero delegates. In 2008, the primary of the same place was where Hillary Clinton received zero delegates.
Results
References
Virgin Islands
Democratic caucuses
2016
|
Jan Petter Lindvall (born March 18, 1950 in Kåfjord) is a Norwegian retired cross-country skier who competed from 1982 to 1984. He finished fifth in the 50 km event at the 1984 Winter Olympics in Sarajevo.
Lindvall finished 11th in the 50 km event at the 1982 FIS Nordic World Ski Championships in Oslo. His only World Cup victory was in a 50 km event in the Soviet Union in 1983.
Cross-country skiing results
All results are sourced from the International Ski Federation (FIS).
Olympic Games
World Championships
World Cup
Season standings
Individual podiums
1 victory
4 podiums
References
External links
Profile at Sports-Reference.com
1950 births
Living people
Cross-country skiers at the 1984 Winter Olympics
Norwegian male cross-country skiers
Olympic cross-country skiers for Norway
People from Gáivuotna–Kåfjord
Sportspeople from Troms og Finnmark
|
Ronald, Ronnie, or Ron White may refer to:
Entertainers
Ron White (born 1956), American comedian
Ron White (actor) (1953–2018), Canadian actor
Ronnie White (1939–1995), American singer/songwriter/producer
Judges
Ronald A. White (born 1961), United States district judge for the Eastern District of Oklahoma
Ronnie L. White (born 1953), United States district judge for the Eastern District of Missouri
Sports
Ron White (footballer) (1920–1992), former Australian rules footballer
Ronnie White (golfer) (1921–2005), English amateur golfer
Others
Ron White (lawyer), appointed to the Office of Military Commissions, Guantanamo, see Michael Chapman (lawyer)
Ronald C. White (born 1939), American historian
See also
Ron Whyte (1941–1989), U.S. playwright
Ronald Whyte (1942-2023), United States district judge for the Northern District of California
|
```go
package clair
import (
"bytes"
"encoding/json"
"fmt"
"net/http"
)
// GetLayer displays a Layer and optionally all of its features and vulnerabilities.
func (c *Clair) GetLayer(name string, features, vulnerabilities bool) (*Layer, error) {
url := c.url("/v1/layers/%s?features=%t&vulnerabilities=%t", name, features, vulnerabilities)
c.Logf("clair.layers.get url=%s name=%s", url, name)
var respLayer layerEnvelope
if _, err := c.getJSON(url, &respLayer); err != nil {
return nil, err
}
if respLayer.Error != nil {
return nil, fmt.Errorf("clair error: %s", respLayer.Error.Message)
}
return respLayer.Layer, nil
}
// PostLayer performs the analysis of a Layer from the provided path.
func (c *Clair) PostLayer(layer *Layer) (*Layer, error) {
url := c.url("/v1/layers")
c.Logf("clair.layers.post url=%s name=%s", url, layer.Name)
b, err := json.Marshal(layerEnvelope{Layer: layer})
if err != nil {
return nil, err
}
c.Logf("clair.layers.post req.Body=%s", string(b))
resp, err := c.Client.Post(url, "application/json", bytes.NewReader(b))
if err != nil {
return nil, err
}
defer resp.Body.Close()
c.Logf("clair.layers.post resp.Status=%s", resp.Status)
var respLayer layerEnvelope
if err := json.NewDecoder(resp.Body).Decode(&respLayer); err != nil {
return nil, err
}
if respLayer.Error != nil {
return nil, fmt.Errorf("clair error: %s", respLayer.Error.Message)
}
return respLayer.Layer, err
}
// DeleteLayer removes a layer reference from clair.
func (c *Clair) DeleteLayer(name string) error {
url := c.url("/v1/layers/%s", name)
c.Logf("clair.layers.delete url=%s name=%s", url, name)
req, err := http.NewRequest("DELETE", url, nil)
if err != nil {
return err
}
resp, err := c.Client.Do(req)
if err != nil {
return err
}
defer resp.Body.Close()
c.Logf("clair.clair resp.Status=%s", resp.Status)
if resp.StatusCode == http.StatusOK || resp.StatusCode == http.StatusAccepted || resp.StatusCode == http.StatusNotFound {
return nil
}
return fmt.Errorf("Got status code: %d", resp.StatusCode)
}
```
|
```sqlpl
SET search_path TO sequences_schema;
-- see the renamed sequence object
select count(*) from pg_sequence where seqrelid = 'renamed_seq'::regclass;
TRUNCATE seq_test_0;
INSERT INTO seq_test_0 VALUES (1);
-- verify that sequence works properly
select max(z) into maxval_z from seq_test_0;
select max(y) into maxval_y from seq_test_0;
select max+1=nextval('renamed_seq') as check_sanity from maxval_z;
select max+1=nextval('seq_1') as check_sanity from maxval_y;
TRUNCATE seq_test_0;
INSERT INTO seq_test_0 VALUES (199999, DEFAULT, DEFAULT);
drop table maxval_z;
select max(z) into maxval_z from seq_test_0;
SELECT pg_sequence_last_value('renamed_seq'::regclass) = max FROM maxval_z;
TRUNCATE seq_test_0;
BEGIN;
INSERT INTO seq_test_0 VALUES (2);
-- verify that sequence works properly
select max(z)+1=nextval('renamed_seq') as check_sanity from seq_test_0 ;
select max(y)+1=nextval('seq_1') as check_sanity from seq_test_0 ;
COMMIT;
```
|
Iich'aa (, pronounced “eech aaw”, no inflexion) is a culture-bound syndrome found in the Navajo Native American culture. The non-exclusive list of symptoms are: epileptic behaviour (nervousness, convulsions), loss of self-control, self-destructive behaviour and fits of violence and rage.
It can, together with other culture-bound syndromes: notably amok (Indonesian), gila mengamok (Malay), cafard (Polynesian) or mal de pelea (Puerto-Rican), be grouped in the “taxon”: SMAS syndrome (Sudden Mass Assault Syndrome).
Mothway
The Mothway myth
Iich’aa translates to “moth craziness” or “taboo-breaking”, which refers to the ancestral Navajo beliefs about this disorder. The literal translation of iich’aa is “one who falls into the fire” which is one of the characteristics of the moth, generally attracted to light and fire. The moth's behaviour, in Navajo storytelling, is said to be a consequence of butterfly people (a mythical population) having “gone wild” after committing incest.
The symptoms of iich’aa are said to be caused by the violation of the taboo of brother-sister incest. This may or may not be scientifically correct (as inbreeding, in general, can lead to a higher possibility of congenital birth defects especially in small populations, however, it hasn't been proved in the specific case of iich’aa). However, the myth serves the prohibition of incest among the Navajo.
The Mothway healing ceremony
Mothway is also the name of the healing ceremony used to heal iich’aa between 1940 and 1957. Mothway is part of the subgroup Mountain Chant, itself part of the subgroup Holyway of Chantways.
Navajo ceremonies are divided between chantways and rites. Chantways are characterized by a rattle accompanying the singing of a ceremony. The three types of Chantways are Holyway, Lifeway and Evilway. Holyways focus on the restoration of good.
Mothway was controversial amongst Navajo, associated with witchcraft, and thus soon became extinct. Descriptions report the patients wearing coyote skins (animals associated with incest in Navajo culture) and the performance of sexual intercourse.
Native American views on mental illness and diagnostic
The DSM-IV-TR Glossary of Culture-Bound Syndromes includes the following disorders specific to Native Americans (ordered here by decreasing frequency of diagnostic]): susto, “fright” or “soul loss”; dissociative trance disorder; spirit possession; mental illness due to witchcraft; ghost sickness; iich’aa and piblotoq.
According to the Thomason survey on assessment and diagnosis of American Indian and Alaska Native (AIAN) clients, most clinicians (60%) believe that counsellors should assess their Native clients’ acculturation type to be able to make an accurate diagnostic using the ”patient explanatory model” of disease (framing of the disorder in concordance with the patient's values and beliefs) and prescribe the right treatment. The acculturation type can range from “traditional”, “marginal”, “bicultural”, “assimilated”, and “pantraditional”. Selecting the right one is important because:
the syndromes are linked to AIAN culture and not specifically to AIAN genes,
but mainly, the willingness of the patient to accept the diagnostic and success rate of the treatment process depends on the framing of the diagnosis, making an appropriate treatment possible.
Historically, before Native Americans were exposed to European colonialism, the concept of “mental illness” per se was unknown. Thus, still today, there is little to no stigma around it in most tribal groups, as limited or no distinction is made between mental and physical symptoms. The view of the American Indian physician and clinical psychologist Mehl-Madrona resumes the discourse “All illness is an illness of the spirit that manifests itself in the body, mind, and emotions” and “We all carry within our souls the capacity to heal ourselves”.
Traditionally, amongst AIAN people, deviant behaviour is treated in one of two ways. Either, if seen as voluntary, scolding and exclusion from the community, as a punishment. Or, if seen as involuntary (such as all the listed syndromes above), a “healing process” begins. The healer listens attentively to the patient, they then create a metaphor to represent the issues(s), which is in turn used in a ceremony, where the patient takes an active role in “fighting the illness”. Those metaphors are often already set out in storytelling and culturally transmitted through generations, such as in the case of iich’aa being represented by a moth, a symbol of love, temptation, and foolishness in Navajo culture.
Hence, the moth itself isn't related to the syndrome (despite some ancestral stories linking it to contact with a moth, fictional or real), but the moth's erratic behavior is a metaphor for that of the patient, serving a descriptive and sense-making function.
Controversial DSM-IV-TR classification of AIAN culture-bound syndromes
The DSM-IV-TR definition might be well-meaning, as a culture-bound syndrome is a “recurrent, locality-specific patterns of aberrant behavior and troubling experience;” and a “localized, folk diagnostic” category. However, two main points of critic arise. They might have been addressed by the renaming into “cultural concepts of distress” in the DSM-5, not listing “some of the best-studied culture-bound syndromes and idioms of distress that may be encountered in clinical practice” as in the DSM-IV-TR.
The existence of some of these symptoms hasn't been supported by any contemporary data. For example, pibloktoq or “Artic hysteria” has only been reported in 40 cases throughout history and has recently been called out as a culture shock reported by European explorers, rather than a disorder rooted in Inuit culture. The Thomason survey indeed reported that 71% of the respondents (specialising in Native American patients) have never diagnosed a client as having a culture-bound syndrome. Comments indicate that professionals are not convinced of the “accuracy or thoroughness” of this classification.
The separation between general forms of psychopathology and culture-bound syndromes stigmatises and discriminates minorities. These conditions are not reimbursed by third-party payers, which can affect diagnosis and access to treatment. This is especially problematic because it only seems to apply to non-western syndromes. Western culture-bound syndromes, as for instance “anorexia nervosa”, don't get the same stigma.
Thus, it is debated whether this separate category is even needed. Culture can affect the experience and expression of mental disorders, hence, a consensus could be that general forms of psychopathology might be universal, but the ways that these syndromes are expressed are determined by cultural values, norms, and traditions. Then, iich’aa, might be a local name, for a shared cross-cultural syndrome.
Lack of research
There is still a lot of research to be done to explore the neurological aspect, genetical predispositions, and environmental effects regarding iich’aa. The demand for AIAN related issues hasn't yet been met with necessary funding and interest of the general public.
References
Navajo culture
Culture-bound syndromes
Rampages
|
David Cornelisz. de Heem (1663, Antwerp – 1701, The Hague), was a Dutch Golden Age painter.
Biography
According to the RKD he is also known as David Cornelisz de Heem III. He was the son of Cornelis de Heem and moved with his parents to Utrecht in 1667. He painted in the family tradition started by Jan Davidsz de Heem and lived in the Hague 1676–1701. He became a member of the Antwerp Guild of St. Luke in 1693 though he was probably still living in the Hague.
References
David Cornelisz de Heem on Artnet
1663 births
1701 deaths
Dutch Golden Age painters
Dutch male painters
Painters from Antwerp
|
```scss
/**
* Menus
* --------------------------------------------------
* Side panel structure
*/
.menu {
position: absolute;
top: 0;
bottom: 0;
z-index: $z-index-menu;
overflow: hidden;
min-height: 100%;
max-height: 100%;
width: $menu-width;
background-color: $menu-bg;
.scroll-content {
z-index: $z-index-menu-scroll-content;
}
.bar-header {
z-index: $z-index-menu-bar-header;
}
}
.menu-content {
@include transform(none);
box-shadow: $menu-side-shadow;
}
.menu-open .menu-content .pane,
.menu-open .menu-content .scroll-content {
pointer-events: none;
}
.grade-b .menu-content,
.grade-c .menu-content {
@include box-sizing(content-box);
right: -1px;
left: -1px;
border-right: 1px solid #ccc;
border-left: 1px solid #ccc;
box-shadow: none;
}
.menu-left {
left: 0;
}
.menu-right {
right: 0;
}
.aside-open.aside-resizing .menu-right {
display: none;
}
.menu-animated {
@include transition-transform($menu-animation-speed ease);
}
```
|
```go
package daemon
import (
// Importing packages here only to make sure their init gets called and
// therefore they register themselves to the logdriver factory.
_ "github.com/docker/docker/daemon/logger/awslogs"
_ "github.com/docker/docker/daemon/logger/fluentd"
_ "github.com/docker/docker/daemon/logger/gcplogs"
_ "github.com/docker/docker/daemon/logger/gelf"
_ "github.com/docker/docker/daemon/logger/journald"
_ "github.com/docker/docker/daemon/logger/jsonfilelog"
_ "github.com/docker/docker/daemon/logger/logentries"
_ "github.com/docker/docker/daemon/logger/splunk"
_ "github.com/docker/docker/daemon/logger/syslog"
)
```
|
```c++
///////////////////////////////////////////////////////////////////////////////
// state.hpp
//
// LICENSE_1_0.txt or copy at path_to_url
#ifndef BOOST_XPRESSIVE_DETAIL_CORE_STATE_HPP_EAN_10_04_2005
#define BOOST_XPRESSIVE_DETAIL_CORE_STATE_HPP_EAN_10_04_2005
// MS compatible compilers support #pragma once
#if defined(_MSC_VER)
# pragma once
#endif
#include <boost/noncopyable.hpp>
#include <boost/xpressive/detail/detail_fwd.hpp>
#include <boost/xpressive/detail/core/access.hpp>
#include <boost/xpressive/detail/core/action.hpp>
#include <boost/xpressive/detail/core/sub_match_vector.hpp>
#include <boost/xpressive/detail/utility/sequence_stack.hpp>
#include <boost/xpressive/detail/core/regex_impl.hpp>
#include <boost/xpressive/regex_constants.hpp>
namespace boost { namespace xpressive { namespace detail
{
///////////////////////////////////////////////////////////////////////////////
// match_context
//
template<typename BidiIter>
struct match_context
{
typedef typename iterator_value<BidiIter>::type char_type;
match_context()
: results_ptr_(0)
, prev_context_(0)
, next_ptr_(0)
, traits_(0)
{
}
// pointer to the current match results, passed to actions as a parameter.
match_results<BidiIter> *results_ptr_;
// The previous match context, if this match_context corresponds to a nested regex invocation
match_context<BidiIter> *prev_context_;
// If this is a nested match, the "next" sub-expression to execute after the nested match
matchable<BidiIter> const *next_ptr_;
// A pointer to the current traits object
detail::traits<char_type> const *traits_;
};
///////////////////////////////////////////////////////////////////////////////
// attr_context
//
struct attr_context
{
// Slots for holding type-erased pointers to attributes
void const **attr_slots_;
// The previous attr context, if one exists
attr_context *prev_attr_context_;
};
///////////////////////////////////////////////////////////////////////////////
// match_flags
//
struct match_flags
{
bool match_all_;
bool match_prev_avail_;
bool match_bol_;
bool match_eol_;
bool match_not_bow_;
bool match_not_eow_;
bool match_not_null_;
bool match_continuous_;
bool match_partial_;
explicit match_flags(regex_constants::match_flag_type flags)
: match_all_(false)
, match_prev_avail_(0 != (flags & regex_constants::match_prev_avail))
, match_bol_(match_prev_avail_ || 0 == (flags & regex_constants::match_not_bol))
, match_eol_(0 == (flags & regex_constants::match_not_eol))
, match_not_bow_(!match_prev_avail_ && 0 != (flags & regex_constants::match_not_bow))
, match_not_eow_(0 != (flags & regex_constants::match_not_eow))
, match_not_null_(0 != (flags & regex_constants::match_not_null))
, match_continuous_(0 != (flags & regex_constants::match_continuous))
, match_partial_(0 != (flags & regex_constants::match_partial))
{
}
};
///////////////////////////////////////////////////////////////////////////////
// match_state
//
template<typename BidiIter>
struct match_state
: noncopyable
{
typedef BidiIter iterator;
typedef core_access<BidiIter> access;
typedef detail::match_context<BidiIter> match_context;
typedef detail::results_extras<BidiIter> results_extras;
typedef detail::regex_impl<BidiIter> regex_impl;
typedef detail::matchable<BidiIter> matchable;
typedef xpressive::match_results<BidiIter> match_results;
typedef detail::sub_match_impl<BidiIter> sub_match_impl;
typedef detail::actionable actionable;
BidiIter cur_;
sub_match_impl *sub_matches_;
std::size_t mark_count_;
BidiIter begin_;
BidiIter end_;
match_flags flags_;
bool found_partial_match_;
match_context context_;
results_extras *extras_;
actionable action_list_;
actionable const **action_list_tail_;
action_args_type *action_args_;
attr_context attr_context_;
BidiIter next_search_;
///////////////////////////////////////////////////////////////////////////////
//
match_state
(
BidiIter begin
, BidiIter end
, match_results &what
, regex_impl const &impl
, regex_constants::match_flag_type flags
)
: cur_(begin)
, sub_matches_(0)
, mark_count_(0)
, begin_(begin)
, end_(end)
, flags_(flags)
, found_partial_match_(false)
, context_() // zero-initializes the fields of context_
, extras_(&core_access<BidiIter>::get_extras(what))
, action_list_()
, action_list_tail_(&action_list_.next)
, action_args_(&core_access<BidiIter>::get_action_args(what))
, attr_context_() // zero-initializes the fields of attr_context_
, next_search_(begin)
{
// reclaim any cached memory in the match_results struct
this->extras_->sub_match_stack_.unwind();
// initialize the context_ struct
this->init_(impl, what);
// move all the nested match_results structs into the match_results cache
this->extras_->results_cache_.reclaim_all(access::get_nested_results(what));
}
///////////////////////////////////////////////////////////////////////////////
// reset
void reset(match_results &what, regex_impl const &impl)
{
this->extras_ = &core_access<BidiIter>::get_extras(what);
this->action_list_.next = 0;
this->action_list_tail_ = &action_list_.next;
this->action_args_ = &core_access<BidiIter>::get_action_args(what);
this->attr_context_ = attr_context();
this->context_.prev_context_ = 0;
this->found_partial_match_ = false;
this->extras_->sub_match_stack_.unwind();
this->init_(impl, what);
this->extras_->results_cache_.reclaim_all(access::get_nested_results(what));
}
///////////////////////////////////////////////////////////////////////////////
// push_context
// called to prepare the state object for a regex match
match_context push_context(regex_impl const &impl, matchable const &next, match_context &prev)
{
// save state
match_context context = this->context_;
// create a new nested match_results for this regex
nested_results<BidiIter> &nested = access::get_nested_results(*context.results_ptr_);
match_results &what = this->extras_->results_cache_.append_new(nested);
// (re)initialize the match context
this->init_(impl, what);
// create a linked list of match_context structs
this->context_.prev_context_ = &prev;
this->context_.next_ptr_ = &next;
// record the start of the zero-th sub-match
this->sub_matches_[0].begin_ = this->cur_;
return context;
}
///////////////////////////////////////////////////////////////////////////////
// pop_context
// called after a nested match failed to restore the context
bool pop_context(regex_impl const &impl, bool success)
{
match_context &context = *this->context_.prev_context_;
if(!success)
{
match_results &what = *context.results_ptr_;
this->uninit_(impl, what);
// send the match_results struct back to the cache
nested_results<BidiIter> &nested = access::get_nested_results(what);
this->extras_->results_cache_.reclaim_last(nested);
}
// restore the state
this->context_ = context;
match_results &results = *this->context_.results_ptr_;
this->sub_matches_ = access::get_sub_matches(access::get_sub_match_vector(results));
this->mark_count_ = results.size();
return success;
}
///////////////////////////////////////////////////////////////////////////////
// swap_context
void swap_context(match_context &context)
{
std::swap(this->context_, context);
match_results &results = *this->context_.results_ptr_;
this->sub_matches_ = access::get_sub_matches(access::get_sub_match_vector(results));
this->mark_count_ = results.size();
}
// beginning of buffer
bool bos() const
{
return this->cur_ == this->begin_;
}
// end of buffer
bool eos()
{
return this->cur_ == this->end_ && this->found_partial_match();
}
// is this the regex that is currently executing?
bool is_active_regex(regex_impl const &impl) const
{
return impl.xpr_.get() == this->context_.results_ptr_->regex_id();
}
// fetch the n-th sub_match
sub_match_impl &sub_match(int n)
{
return this->sub_matches_[n];
}
// called when a partial match has succeeded
void set_partial_match()
{
sub_match_impl &sub0 = this->sub_match(0);
sub0.first = sub0.begin_;
sub0.second = this->end_;
sub0.matched = false;
}
template<typename Traits>
Traits const &get_traits() const
{
return static_cast<traits_holder<Traits> const *>(this->context_.traits_)->traits();
}
private:
void init_(regex_impl const &impl, match_results &what)
{
regex_id_type const id = impl.xpr_.get();
std::size_t const total_mark_count = impl.mark_count_ + impl.hidden_mark_count_ + 1;
// initialize the context and the sub_match vector
this->context_.results_ptr_ = &what;
this->context_.traits_ = impl.traits_.get();
this->mark_count_ = impl.mark_count_ + 1;
this->sub_matches_ = this->extras_->sub_match_stack_.push_sequence(total_mark_count, sub_match_impl(begin_), detail::fill);
this->sub_matches_ += impl.hidden_mark_count_;
// initialize the match_results struct
access::init_match_results(what, id, impl.traits_, this->sub_matches_, this->mark_count_, impl.named_marks_);
}
void uninit_(regex_impl const &impl, match_results &)
{
extras_->sub_match_stack_.unwind_to(this->sub_matches_ - impl.hidden_mark_count_);
}
bool found_partial_match()
{
this->found_partial_match_ = true;
return true;
}
};
///////////////////////////////////////////////////////////////////////////////
// memento
//
template<typename BidiIter>
struct memento
{
sub_match_impl<BidiIter> *old_sub_matches_;
std::size_t nested_results_count_;
actionable const *action_list_head_;
actionable const **action_list_tail_;
attr_context attr_context_;
};
///////////////////////////////////////////////////////////////////////////////
// save_sub_matches
//
template<typename BidiIter>
inline memento<BidiIter> save_sub_matches(match_state<BidiIter> &state)
{
memento<BidiIter> mem =
{
state.extras_->sub_match_stack_.push_sequence(state.mark_count_, sub_match_impl<BidiIter>(state.begin_))
, state.context_.results_ptr_->nested_results().size()
, state.action_list_.next
, state.action_list_tail_
, state.attr_context_
};
state.action_list_.next = 0;
state.action_list_tail_ = &state.action_list_.next;
std::copy(state.sub_matches_, state.sub_matches_ + state.mark_count_, mem.old_sub_matches_);
return mem;
}
///////////////////////////////////////////////////////////////////////////////
// restore_action_queue
//
template<typename BidiIter>
inline void restore_action_queue(memento<BidiIter> const &mem, match_state<BidiIter> &state)
{
state.action_list_.next = mem.action_list_head_;
state.action_list_tail_ = mem.action_list_tail_;
*state.action_list_tail_ = 0;
}
///////////////////////////////////////////////////////////////////////////////
// restore_sub_matches
//
template<typename BidiIter>
inline void restore_sub_matches(memento<BidiIter> const &mem, match_state<BidiIter> &state)
{
typedef core_access<BidiIter> access;
nested_results<BidiIter> &nested = access::get_nested_results(*state.context_.results_ptr_);
std::size_t count = nested.size() - mem.nested_results_count_;
state.extras_->results_cache_.reclaim_last_n(nested, count);
std::copy(mem.old_sub_matches_, mem.old_sub_matches_ + state.mark_count_, state.sub_matches_);
state.extras_->sub_match_stack_.unwind_to(mem.old_sub_matches_);
state.attr_context_ = mem.attr_context_;
}
///////////////////////////////////////////////////////////////////////////////
// reclaim_sub_matches
//
template<typename BidiIter>
inline void reclaim_sub_matches(memento<BidiIter> const &mem, match_state<BidiIter> &state, bool success)
{
std::size_t count = state.context_.results_ptr_->nested_results().size() - mem.nested_results_count_;
if(count == 0)
{
state.extras_->sub_match_stack_.unwind_to(mem.old_sub_matches_);
}
// else we have we must orphan this block of backrefs because we are using the stack
// space above it.
if(!success)
{
state.attr_context_ = mem.attr_context_;
}
}
///////////////////////////////////////////////////////////////////////////////
// traits_cast
//
template<typename Traits, typename BidiIter>
inline Traits const &traits_cast(match_state<BidiIter> const &state)
{
return state.template get_traits<Traits>();
}
}}} // namespace boost::xpressive::detail
#endif
```
|
Czesław Strumiłło (17 February 1930 – 30 September 2018) was a Polish chemical engineer, a founder of a scientific theory in the field of drying processes and a former rector of the Lodz University of Technology.
In 1952 he graduated from the Faculty of Chemistry, Lodz University of Technology. In 1960 he obtained the Doctor of Science degree, in 1966 his postdoctoral scientific qualifications and associate professor and professor degrees in 1974, and 1981, respectively.
He is an honoris causa doctor of the Strathclyde University in Great Britain, Lodz University of Technology and University of West Hungary.
He is an ordinary member of the Polish Academy of Sciences.
He was twice selected a member of the State Committee for Scientific Research, in 1993–96 he was the Vice Chairperson of this Committee.
He is the Vice President of the Lodz Institute of the Polish Academy of Sciences, a vice chairperson of the Committee on Chemical and Process Engineering of the Polish Academy of Sciences, a Polish representative in Drying Working Party and Science Advisory Committee European Federation of Chemical Engineering. In 1995 he received the title of the Honorary Professor of the Tianjin University in China.
From 1984 to 1987 he was a Vice Rector, and from 1987 to 1990 the Rector of the Lodz University of Technology. From 1993 to 1999 he was the Dean of the Faculty of Process and Environmental Engineering.
Scientific activity
His scientific activity is connected with heat and mass transfer in the processes of distillation, evaporation, drying and fluidization. He is an author of the first Polish monograph in the field of drying. His scientific achievements include 250 publications, 7 handbooks and monographs related to chemical engineering and process engineering. He has promoted 15 doctors of science.
References
External links
The Lodz Branch of the Polish Academy of Sciences
Czesław Strumiłło in the Polish Science Database (OPI)
1930 births
2018 deaths
Engineers from Vilnius
Polish chemists
Polish inventors
Łódź University of Technology alumni
Recipients of the Order of Polonia Restituta
Academic staff of Łódź University of Technology
|
```php
<?php
namespace App\Http\Controllers;
use App\Http\Requests\StoreEventQuestionRequest;
use App\Models\Attendee;
use App\Models\Event;
use App\Models\Question;
use App\Models\QuestionAnswer;
use App\Models\QuestionType;
use Excel;
use Illuminate\Http\Request;
use JavaScript;
/*
Attendize.com - Event Management & Ticketing
*/
class EventSurveyController extends MyBaseController
{
/**
* Show the event survey page
*
* @param Request $request
* @param $event_id
* @return mixed
*/
public function showEventSurveys(Request $request, $event_id)
{
$event = Event::scope()->findOrFail($event_id);
JavaScript::put([
'postUpdateQuestionsOrderRoute' => route('postUpdateQuestionsOrder', ['event_id' => $event_id]),
]);
$data = [
'event' => $event,
'questions' => $event->questions->sortBy('sort_order'),
'sort_order' => 'asc',
'sort_by' => 'title',
'q' => '',
];
return view('ManageEvent.Surveys', $data);
}
/**
* Show the form for creating a new resource.
*
* @return \Illuminate\Http\Response
*/
public function showCreateEventQuestion(Request $request, $event_id)
{
$event = Event::scope()->findOrFail($event_id);
return view('ManageEvent.Modals.CreateQuestion', [
'event' => $event,
'question_types' => QuestionType::all(),
]);
}
/**
* Store a newly created resource in storage.
*
* @access public
* @param StoreEventQuestionRequest $request
* @return \Illuminate\Http\JsonResponse
*/
public function postCreateEventQuestion(StoreEventQuestionRequest $request, $event_id)
{
// Get the event or display a 'not found' warning.
$event = Event::findOrFail($event_id);
// Create question.
$question = Question::createNew(false, false, true);
$question->title = $request->get('title');
$question->is_required = (bool) $request->get('is_required', false);
$question->question_type_id = $request->get('question_type_id');
$question->save();
// Get options.
$options = $request->get('option');
// Add options.
if ($options && is_array($options)) {
foreach ($options as $option_name) {
if (trim($option_name) !== '') {
$question->options()->create([
'name' => $option_name,
]);
}
}
}
// Get tickets.
$ticket_ids = $request->get('tickets');
$question->tickets()->attach($ticket_ids);
$event->questions()->attach($question->id);
session()->flash('message', trans("Controllers.successfully_created_question"));
return response()->json([
'status' => 'success',
'message' => trans("Controllers.refreshing"),
'redirectUrl' => '',
]);
}
/**
* Show the Edit Question Modal
*
* @param Request $request
* @param $event_id
* @param $question_id
* @return mixed
*/
public function showEditEventQuestion(Request $request, $event_id, $question_id)
{
$question = Question::scope()->findOrFail($question_id);
$event = Event::scope()->findOrFail($event_id);
$data = [
'question' => $question,
'event' => $event,
'question_types' => QuestionType::all(),
];
return view('ManageEvent.Modals.EditQuestion', $data);
}
/**
* Edit a question
*
* @param Request $request
* @param $event_id
* @param $question_id
* @return \Illuminate\Http\JsonResponse
*/
public function postEditEventQuestion(Request $request, $event_id, $question_id)
{
// Get the event or display a 'not found' warning.
$event = Event::scope()->findOrFail($event_id);
// Create question.
$question = Question::scope()->findOrFail($question_id);
$question->title = $request->get('title');
$question->is_required = (bool) $request->get('is_required', false);
$question->question_type_id = $request->get('question_type_id');
$question->save();
$question_type = QuestionType::find($question->question_type_id);
if ($question_type->has_options) {
// Get options.
$options = $request->get('option');
$question->options()->delete();
// Add options.
if ($options && is_array($options)) {
foreach ($options as $option_name) {
if (trim($option_name) !== '') {
$question->options()->create([
'name' => $option_name,
]);
}
}
}
}
// Get tickets.
$ticket_ids = (array)$request->get('tickets');
$question->tickets()->sync($ticket_ids);
session()->flash('message', trans("Controllers.successfully_edited_question"));
return response()->json([
'status' => 'success',
'message' => trans("Controllers.refreshing"),
'redirectUrl' => '',
]);
}
/**
* Delete a question
*
* @param Request $request
* @param $event_id
* @return \Illuminate\Http\JsonResponse
*/
public function postDeleteEventQuestion(Request $request, $event_id)
{
$question_id = $request->get('question_id');
$question = Question::scope()->find($question_id);
$question->answers()->delete();
if ($question->delete()) {
session()->flash('message', trans("Controllers.successfully_deleted_question"));
return response()->json([
'status' => 'success',
'message' => trans("Controllers.refreshing"),
'redirectUrl' => '',
]);
}
return response()->json([
'status' => 'error',
'id' => $question->id,
'message' => trans("Controllers.this_question_cant_be_deleted"),
]);
}
/**
* Show all attendees answers to questions
*
* @param Request $request
* @param $event_id
* @param $question_id
* @return mixed
*/
public function showEventQuestionAnswers(Request $request, $event_id, $question_id)
{
$answers = QuestionAnswer::scope()->where('question_id', $question_id)->get();
$question = Question::scope()->withTrashed()->find($question_id);
$attendees = Attendee::scope()
->has('answers')
->where('event_id', $event_id)
->get();
$data = [
'answers' => $answers,
'question' => $question,
];
return view('ManageEvent.Modals.ViewAnswers', $data);
}
/**
* Export answers to xls, csv etc.
*
* @param Request $request
* @param $event_id
* @param string $export_as
*/
public function showExportAnswers(Request $request, $event_id, $export_as = 'xlsx')
{
Excel::create('answers-as-of-' . date('d-m-Y-g.i.a'), function ($excel) use ($event_id) {
$excel->setTitle(trans("Controllers.survey_answers"));
// Chain the setters
$excel->setCreator(config('attendize.app_name'))
->setCompany(config('attendize.app_name'));
$excel->sheet('survey_answers_sheet_', function ($sheet) use ($event_id) {
$event = Event::scope()->findOrFail($event_id);
$sheet->fromArray($event->survey_answers, null, 'A1', false, false);
// Set gray background on first row
$sheet->row(1, function ($row) {
$row->setBackground('#f5f5f5');
});
});
})->export($export_as);
}
/**
* Toggle the enabled status of question
*
* @param Request $request
* @param $event_id
* @param $question_id
* @return \Illuminate\Http\JsonResponse
*/
public function postEnableQuestion(Request $request, $event_id, $question_id)
{
$question = Question::scope()->find($question_id);
$question->is_enabled = ($question->is_enabled == 1) ? 0 : 1;
if ($question->save()) {
return response()->json([
'status' => 'success',
'message' => trans("Controllers.successfully_updated_question"),
'id' => $question->id,
]);
}
return response()->json([
'status' => 'error',
'id' => $question->id,
'message' => trans("basic.whoops"),
]);
}
/**
* Updates the sort order of event questions
*
* @param Request $request
* @return \Illuminate\Http\JsonResponse
*/
public function postUpdateQuestionsOrder(Request $request)
{
$question_ids = $request->get('question_ids');
$sort = 1;
foreach ($question_ids as $question_id) {
$question = Question::scope()->find($question_id);
$question->sort_order = $sort;
$question->save();
$sort++;
}
return response()->json([
'status' => 'success',
'message' => trans("Controllers.successfully_updated_question_order"),
]);
}
}
```
|
Pyrops watanabei is a species of planthopper endemic to Taiwan. Pyrops atroalbus was formerly considered a subspecies; its status as a species was reinstated in 2017. P. watanabei was first described by Shōnen Matsumura in 1913 as Fulgora watanabei.
It has a yellow cephalic process with an inflated apex. The abdomen is red ventrally, and the tegmina are mainly white, with three black spots on the leading edge (costal area). The posterior wings may be completely white or have a black apical third. It is about long.
It has been recorded on the plants Triadica sebifera and Sapium discolor.
References
watanabei
Insects of Taiwan
Endemic fauna of Taiwan
Insects described in 1913
Taxa named by Shōnen Matsumura
|
Shriniwas Joshi (born 11 May 1936) is a columnist, theatre artist, and retired civil servant from Himachal Pradesh, India. As a columnist, Joshi is especially known for his column 'Vignettes' in the Indian English daily The Tribune, through which he has documented people, history, places, and idiosyncratic things all across Himachal Pradesh. As a theatre figure, he has been associated for decades with Shimla's historic Gaiety Theatre, for which he has written, acted in, and directed a number of plays. As a retired civil servant, Joshi has been active in various civic causes in Shimla, including heritage conservation, environmental protection, and the promotion of arts.
Personal life and career
Joshi was born in 1936 in Simla, British India. He did an M.A. in political science from the Panjab University in Chandigarh, and then an MA in economics from the Punjabi University in Patiala. Afterwards, he joined government service as a statistician, and retired as an officer of the Indian Administrative Service in 1994. In his administrative capacity, among other tasks, Joshi served as special secretary to Himachal Pradesh's Chief Minister Virbhadra Singh, as Director of Primary Education, and as Director of the Department of Art, Culture, and Language in the Government of Himachal Pradesh. He served as the Deputy Commissioner of Kangra district, Himachal Pradesh, from 29 June 1992 till 4 August 1993. Post-retirement, he served as the administrator of Indus Hospital, Shimla, and as a member of the Board of Management, Himachal Pradesh Agriculture University (Palampur, H.P.). Over 2009-12, Joshi was a member of the Inter Agency Core Group in Shimla, for the Government of India - UNDP Urban Risk Reduction Project. He is a member of the Himachal Pradesh University Court.
He lives at Panchwati house, at village Kanena-Pagog (post office Bharari), near Shimla, with his wife Yamini.
Cultural contributions
Joshi writes in English and Hindi. Joshi has written numerous columns and articles for a number of Indian national daily newspapers in English, including The Tribune, The Times of India, and The Indian Express. He is particularly known for his column 'Vignettes' in The Tribune. His articles are generally essays about places, events, facets of culture, and contemporary and historical personalities of Himachal Pradesh. Joshi published a compilation of several of his column pieces in English as a book called Babudom Bosh + squibs of sweet and sour shots. He has also written several short stories and plays.
Joshi has directed and acted in numerous plays at Shimla's historic Gaiety Theatre. He has had his own theatre group called 'Amateur Evening'. Along with his wife Yamini, he played key roles in Amit Dutta's movie Nainsukh (2010), an artistic biographical look at the 18th century painter Nainsukh from Kangra. The movie won international critical acclaim.
Joshi is a member of the Amateur Dramatics Club, Shimla, the Shimla Amateur Garden and Environment Society (SAGES), and the Himachal Pradesh chapter of INTACH.
Recognition
For 2018-2022, Joshi was nominated and appointed to the General Council of the Sahitya Akademi, India's national academy of letters, as an Advisory Member for Hindi.
In 2018, Joshi was one of the two persons appointed to the General Council of the Himachal Pradesh Academy on account of their fame as performing artists, the other being Bharti Kuthiala.
Joshi was among the 20 prominent personalities of Shimla who were invited to contribute to the volume The Deputy Commissioner, Shimla: two centuries of an institution (1815-2015), which was published in 2015 by the Deputy Commissioner's Office, Shimla. Joshi contributed two essays, one titled 'Hindustani Theatre in Shimla' and the other titled 'Shimla in Folksongs'.
Joshi is a recipient of several awards, including the Shimla Amateur Dramatics Award, the Himachal Shri Award, the Akashvani Award, and the Humanitarianism & Service Award by Indus Medical Foundation, U.S.A. In 2015, Joshi was awarded the Lifetime Achievement Honour by the Himalaya Sahitya, Sanskriti evam Paryavaran Manch, for his 'contributions to Himalayan art, history, culture, literature, and social participation'.
Select bibliography
Ghughutiya (in Hindi). (Delhi: Atmaram and Sons, 1997)
Babudom Bosh + squibs of sweet and sour shots. (Delhi: Sanbun Publishers, 2004).
Sunni bhunku: Himachal Pradesh ke Chamba zile ki prem lok katha (in Hindi). (Delhi: National Book Trust, 2005).
Hum nahi sudhrenge: Shriniwas Joshi ke laghu natak (in Hindi). (Delhi: Atmaram and Sons, 2016).
Begmu ki su (in Hindi). (Ghaziabad: K.L. Pachauri Prakashan, 2021)
References
People from Shimla
People from Shimla district
Writers from Himachal Pradesh
20th-century Indian writers
21st-century Indian writers
Indian Administrative Service officers
Indian theatre people
Indian dramatists and playwrights
Punjabi University alumni
Panjab University alumni
Himalayan studies
|
Allan Karl is an American author, adventurer and speaker. He is most known for travelling around the world on his motorcycle and subsequently writing the book, Forks: A Quest for Culture, Cuisine and Connection.
After a divorce and finding himself unemployed, in 2005, Karl decided to go on a trip around the world. He spent the next three years travelling on five continents and visited 35 countries. He returned to the United States in 2008 and became a public speaker talking about his travel experience.
Early life and education
Karl was born in Darien, Connecticut and graduated from Darien High School in 1978. He is a graduate of S.I. Newhouse School, Syracuse University.
Career
Karl was a marketer by profession before he left for his trip. In 2000, he co-founded the company Wirestone, a creative and interactive services company and served there as a vice president. However, he felt that his job was not fulfilling and he started another company, but he still felt unhappy. Following a divorce, Karl left his job and decided to travel.
After returning from his trip Karl became a tech entrepreneur and motivational speaker. In his presentations, he shares his travel experience. Since July 2009, he has visited several BMW dealerships in the U.S. as a speaker. He was a speaker at the general session the Global Business Travel Association's Leadership Summit in 2013. and Roadrunner magazine's annual touring weekend in 2014. At the touring weekend he shared a presentation entitled The Beginning at the End of the Road, which draws from his riding experience.
Three-year trip
In 2003, after Karl's marriage ended in divorce, he left his company. He had always wanted to travel around the world and was passionate about bikes and photography, so he started planning a trip. He spent the next two years planning the routes for his trip. He wanted to visit as many UNESCO sites as many he could. In 2005, he sold everything he owned and started his journey on a BMW F650GS Dakar. Karl started from his home in Newport Beach, California, travelled up to Alaska, across Canada, down to Mexico, and around Central and South America before heading to Africa, Europe, and Asia. Initially, he had just planned to travel to Panama, but he kept extending his trip.
After crossing the Panama Canal, Karl entered Colombia where several families let him stay at their homes. When he reached the southern border, he was stopped by police who advised him of the dangers of the jungle and urged him to go straight through without stopping for anything. However, he continued. Exploring the jungle, at one point, he stopped to take a picture of a waterfall where two men holding machine guns came to him and asked him to come with them. Karl was terrified at first, but he ended up befriending them and they took him deep into the jungle to see a better waterfall.
Six months into his travel, when Karl was going to Salar de Uyuni in Bolivia, he had an accident while riding on a muddy dirt road 15,000 feet high in the Bolivian Andes. It had been raining from several days and his bike slipped out from under him and his panniers fell on top of his left leg and broke it in three places. He sat alone in the sun for several hours. Two Bolivian boys came and sheltered Karl with umbrellas. Twelve hours after the accident, a makeshift ambulance arrived and took Karl to a hospital in Potosí. He had to come back to California for treatment of broken leg. He underwent surgery followed by rehab of six months. However, after recovery, he went to Bolivia to continue his journey. He reached Salar de Uyuni and continued south, eventually reaching Tierra del Fuego. A family took him in for a short time until arrangements were made to fly to Cape Town in South Africa. From there, he began riding his motorcycle again, heading north. Using the Nile River as a guide, Karl reached Cairo, Egypt. After negotiating with border guards for days, Karl was allowed to tour Syria, but could not enter most Middle Eastern countries due to the wars.
After three years, Karl was in Turkey and tried once more to get a visa for entrance into Iran. The Iran government turned him down for the third time. At that time, he decided to go home. He shipped his motorcycle to Baltimore, Maryland and then continued his journey from Washington, D.C. across the United States, riding only on the backroads, not on interstate highways, and returned to Newport Beach, California.
On his trip, Karl learned to speak Spanish, Portuguese, as well as a little Arabic. At the end of his three-year trip, he had covered 62,000 miles on five different continents and in 35 different countries. While he travelled, he also posted an online blog at WorldRider.com.
Forks
In his book, Forks: A Quest for Culture, Cuisine, and Connection, Karl documents his travels through the many stories, images and recipes he collected. In the book, each of his destinations is arranged into a short chapter in the order in which he visited, illustrated with photos and chronicled with a travelogue anchored with a recipe that represents the national dish. Karl has also discussed his packing list, his motorcycle specifications, and the statistics and maintenance of his journey in the book.
He published the book independently and released it in June 2014. The book includes 40 recipes and 700 photos of places he visited. Initially, he did not plan to add recipes in the book, however one day he made moqueca, a Brazilian fish stew, for friends. His friends enjoyed the dish a lot and he decided to add recipes of dishes he liked on his travel to his book.
Forks has been compared to Anthony Bourdain's work. City Book Review wrote that, "this book is a delight for the eyes, the imagination, for the heart, and to bask in what it must have felt like to share these experiences with people all over the world" and Midwest Book Review wrote that Forks is "sure to be the crown jewel of many an armchair traveler's collection."
Kickstarter campaign
When Karl returned to United States, he pitched the idea of his book to publishers, but they refused to work on his book. The publishers asked him to simplify the premise of the book by removing the recipes and making the book a traditional travelogue. However, he did not want to do that. Karl then started a Kickstarter campaign to self-publish his book. He set a goal of raising $22,000, which he raised in nine days and ended up raising $40,994. With the funds he raised, he printed 2,000 copies of first-run books, hired a publicist, printed more books and planned a national book launch tour.
See also
List of long-distance motorcycle riders
References
External links
Official Website
Living people
American motivational speakers
American travel writers
21st-century travel writers
Long-distance motorcycle riders
American male writers
Year of birth missing (living people)
|
Salem First United Methodist Church is a Methodist congregation and historic church in Salem, Oregon, United States. The church was listed on the National Register of Historic Places under its original name, First Methodist Episcopal Church of Salem, in 1983. First United is the oldest Methodist church west of the Rocky Mountains, and is a designated United Methodist Heritage Landmark. It is one of Oregon's few high-style Gothic Revival churches outside of Portland, and has one of the rare tall spires left standing in the state.
History
The Methodist Episcopal Church of Salem was established in 1841 when the Methodist Mission moved its headquarters to Salem. Jason Lee was one of the 13 charter members of the church, and David Leslie was the first pastor. Initially the church met in a room at the Oregon Institute. After about 10 years, the congregation grew, and in 1853 they were able to build a small wooden frame building at the southeast corner of Church and State streets. By 1870, the congregation had outgrown this building and they began construction of the current sanctuary building at the same location. The brick Gothic Revival-style church was completed in 1878, despite a national depression and other difficulties. Cass Chapman, a Chicago architect who designed a number of buildings at Cornell College, supplied the plans, which were reduced in scale by one-eighth in order to lower building costs. Local architect Wilbur F. Boothby supervised the construction.
Additions to the building in 1935 and 1967 were designed to harmonize with the original building's Gothic style. The original 185-foot wooden spire, which makes the church the tallest building in Salem, was replaced in 1984. The sanctuary was remodeled in 1953 to add an Aeolian-Skinner pipe organ, a chancel rose window, new altar, pulpit, and pews. Additional renovations to the interior occurred in 1981 and 1988. In 2000, the organ acquired its full rank of pipes.
First United purchased the historic Salem Elks building adjacent to the church in 1992 and renamed it MICAH (Methodist Inner-city Community Activities House). The building houses a youth center, the United Methodist Archives for the Oregon-Idaho Conference, an area for informal worship services, and several community outreach organizations.
See also
Methodist Episcopal Church
References
External links
Historic images of Salem First United Methodist Church from Salem Public Library
Historic images of the MICAH Building from Salem Public Library
1878 establishments in Oregon
19th-century Methodist church buildings in the United States
Churches completed in 1878
Churches in Marion County, Oregon
Buildings and structures in Salem, Oregon
Churches on the National Register of Historic Places in Oregon
Gothic Revival church buildings in Oregon
National Register of Historic Places in Salem, Oregon
United Methodist churches in Oregon
Methodist Episcopal churches in the United States
|
```javascript
/*!
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* 3. Neither the name of Salesforce.com 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.
*/
'use strict';
var net = require('net');
var urlParse = require('url').parse;
var pubsuffix = require('./pubsuffix');
var Store = require('./store').Store;
var MemoryCookieStore = require('./memstore').MemoryCookieStore;
var pathMatch = require('./pathMatch').pathMatch;
var VERSION = require('../package.json').version;
var punycode;
try {
punycode = require('punycode');
} catch(e) {
console.warn("cookie: can't load punycode; won't use punycode for domain normalization");
}
var DATE_DELIM = /[\x09\x20-\x2F\x3B-\x40\x5B-\x60\x7B-\x7E]/;
// From RFC6265 S4.1.1
// note that it excludes \x3B ";"
var COOKIE_OCTET = /[\x21\x23-\x2B\x2D-\x3A\x3C-\x5B\x5D-\x7E]/;
var COOKIE_OCTETS = new RegExp('^'+COOKIE_OCTET.source+'+$');
var CONTROL_CHARS = /[\x00-\x1F]/;
// Double quotes are part of the value (see: S4.1.1).
// '\r', '\n' and '\0' should be treated as a terminator in the "relaxed" mode
// (see: path_to_url#L60)
// '=' and ';' are attribute/values separators
// (see: path_to_url#L64)
var COOKIE_PAIR = /^(([^=;]+))\s*=\s*([^\n\r\0]*)/;
// Used to parse non-RFC-compliant cookies like '=abc' when given the `loose`
// option in Cookie.parse:
var LOOSE_COOKIE_PAIR = /^((?:=)?([^=;]*)\s*=\s*)?([^\n\r\0]*)/;
// RFC6265 S4.1.1 defines path value as 'any CHAR except CTLs or ";"'
// Note ';' is \x3B
var PATH_VALUE = /[\x20-\x3A\x3C-\x7E]+/;
// Used for checking whether or not there is a trailing semi-colon
var TRAILING_SEMICOLON = /;+$/;
var DAY_OF_MONTH = /^(\d{1,2})[^\d]*$/;
var TIME = /^(\d{1,2})[^\d]*:(\d{1,2})[^\d]*:(\d{1,2})[^\d]*$/;
var MONTH = /^(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)/i;
var MONTH_TO_NUM = {
jan:0, feb:1, mar:2, apr:3, may:4, jun:5,
jul:6, aug:7, sep:8, oct:9, nov:10, dec:11
};
var NUM_TO_MONTH = [
'Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'
];
var NUM_TO_DAY = [
'Sun','Mon','Tue','Wed','Thu','Fri','Sat'
];
var YEAR = /^(\d{2}|\d{4})$/; // 2 to 4 digits
var MAX_TIME = 2147483647000; // 31-bit max
var MIN_TIME = 0; // 31-bit min
// RFC6265 S5.1.1 date parser:
function parseDate(str) {
if (!str) {
return;
}
/* RFC6265 S5.1.1:
* 2. Process each date-token sequentially in the order the date-tokens
* appear in the cookie-date
*/
var tokens = str.split(DATE_DELIM);
if (!tokens) {
return;
}
var hour = null;
var minutes = null;
var seconds = null;
var day = null;
var month = null;
var year = null;
for (var i=0; i<tokens.length; i++) {
var token = tokens[i].trim();
if (!token.length) {
continue;
}
var result;
/* 2.1. If the found-time flag is not set and the token matches the time
* production, set the found-time flag and set the hour- value,
* minute-value, and second-value to the numbers denoted by the digits in
* the date-token, respectively. Skip the remaining sub-steps and continue
* to the next date-token.
*/
if (seconds === null) {
result = TIME.exec(token);
if (result) {
hour = parseInt(result[1], 10);
minutes = parseInt(result[2], 10);
seconds = parseInt(result[3], 10);
/* RFC6265 S5.1.1.5:
* [fail if]
* * the hour-value is greater than 23,
* * the minute-value is greater than 59, or
* * the second-value is greater than 59.
*/
if(hour > 23 || minutes > 59 || seconds > 59) {
return;
}
continue;
}
}
/* 2.2. If the found-day-of-month flag is not set and the date-token matches
* the day-of-month production, set the found-day-of- month flag and set
* the day-of-month-value to the number denoted by the date-token. Skip
* the remaining sub-steps and continue to the next date-token.
*/
if (day === null) {
result = DAY_OF_MONTH.exec(token);
if (result) {
day = parseInt(result, 10);
/* RFC6265 S5.1.1.5:
* [fail if] the day-of-month-value is less than 1 or greater than 31
*/
if(day < 1 || day > 31) {
return;
}
continue;
}
}
/* 2.3. If the found-month flag is not set and the date-token matches the
* month production, set the found-month flag and set the month-value to
* the month denoted by the date-token. Skip the remaining sub-steps and
* continue to the next date-token.
*/
if (month === null) {
result = MONTH.exec(token);
if (result) {
month = MONTH_TO_NUM[result[1].toLowerCase()];
continue;
}
}
/* 2.4. If the found-year flag is not set and the date-token matches the year
* production, set the found-year flag and set the year-value to the number
* denoted by the date-token. Skip the remaining sub-steps and continue to
* the next date-token.
*/
if (year === null) {
result = YEAR.exec(token);
if (result) {
year = parseInt(result[0], 10);
/* From S5.1.1:
* 3. If the year-value is greater than or equal to 70 and less
* than or equal to 99, increment the year-value by 1900.
* 4. If the year-value is greater than or equal to 0 and less
* than or equal to 69, increment the year-value by 2000.
*/
if (70 <= year && year <= 99) {
year += 1900;
} else if (0 <= year && year <= 69) {
year += 2000;
}
if (year < 1601) {
return; // 5. ... the year-value is less than 1601
}
}
}
}
if (seconds === null || day === null || month === null || year === null) {
return; // 5. ... at least one of the found-day-of-month, found-month, found-
// year, or found-time flags is not set,
}
return new Date(Date.UTC(year, month, day, hour, minutes, seconds));
}
function formatDate(date) {
var d = date.getUTCDate(); d = d >= 10 ? d : '0'+d;
var h = date.getUTCHours(); h = h >= 10 ? h : '0'+h;
var m = date.getUTCMinutes(); m = m >= 10 ? m : '0'+m;
var s = date.getUTCSeconds(); s = s >= 10 ? s : '0'+s;
return NUM_TO_DAY[date.getUTCDay()] + ', ' +
d+' '+ NUM_TO_MONTH[date.getUTCMonth()] +' '+ date.getUTCFullYear() +' '+
h+':'+m+':'+s+' GMT';
}
// S5.1.2 Canonicalized Host Names
function canonicalDomain(str) {
if (str == null) {
return null;
}
str = str.trim().replace(/^\./,''); // S4.1.2.3 & S5.2.3: ignore leading .
// convert to IDN if any non-ASCII characters
if (punycode && /[^\u0001-\u007f]/.test(str)) {
str = punycode.toASCII(str);
}
return str.toLowerCase();
}
// S5.1.3 Domain Matching
function domainMatch(str, domStr, canonicalize) {
if (str == null || domStr == null) {
return null;
}
if (canonicalize !== false) {
str = canonicalDomain(str);
domStr = canonicalDomain(domStr);
}
/*
* "The domain string and the string are identical. (Note that both the
* domain string and the string will have been canonicalized to lower case at
* this point)"
*/
if (str == domStr) {
return true;
}
/* "All of the following [three] conditions hold:" (order adjusted from the RFC) */
/* "* The string is a host name (i.e., not an IP address)." */
if (net.isIP(str)) {
return false;
}
/* "* The domain string is a suffix of the string" */
var idx = str.indexOf(domStr);
if (idx <= 0) {
return false; // it's a non-match (-1) or prefix (0)
}
// e.g "a.b.c".indexOf("b.c") === 2
// 5 === 3+2
if (str.length !== domStr.length + idx) { // it's not a suffix
return false;
}
/* "* The last character of the string that is not included in the domain
* string is a %x2E (".") character." */
if (str.substr(idx-1,1) !== '.') {
return false;
}
return true;
}
// RFC6265 S5.1.4 Paths and Path-Match
/*
* "The user agent MUST use an algorithm equivalent to the following algorithm
* to compute the default-path of a cookie:"
*
* Assumption: the path (and not query part or absolute uri) is passed in.
*/
function defaultPath(path) {
// "2. If the uri-path is empty or if the first character of the uri-path is not
// a %x2F ("/") character, output %x2F ("/") and skip the remaining steps.
if (!path || path.substr(0,1) !== "/") {
return "/";
}
// "3. If the uri-path contains no more than one %x2F ("/") character, output
// %x2F ("/") and skip the remaining step."
if (path === "/") {
return path;
}
var rightSlash = path.lastIndexOf("/");
if (rightSlash === 0) {
return "/";
}
// "4. Output the characters of the uri-path from the first character up to,
// but not including, the right-most %x2F ("/")."
return path.slice(0, rightSlash);
}
function parse(str, options) {
if (!options || typeof options !== 'object') {
options = {};
}
str = str.trim();
// S4.1.1 Trailing semi-colons are not part of the specification.
var semiColonCheck = TRAILING_SEMICOLON.exec(str);
if (semiColonCheck) {
str = str.slice(0, semiColonCheck.index);
}
// We use a regex to parse the "name-value-pair" part of S5.2
var firstSemi = str.indexOf(';'); // S5.2 step 1
var pairRe = options.loose ? LOOSE_COOKIE_PAIR : COOKIE_PAIR;
var result = pairRe.exec(firstSemi === -1 ? str : str.substr(0,firstSemi));
// Rx satisfies the "the name string is empty" and "lacks a %x3D ("=")"
// constraints as well as trimming any whitespace.
if (!result) {
return;
}
var c = new Cookie();
if (result[1]) {
c.key = result[2].trim();
} else {
c.key = '';
}
c.value = result[3].trim();
if (CONTROL_CHARS.test(c.key) || CONTROL_CHARS.test(c.value)) {
return;
}
if (firstSemi === -1) {
return c;
}
// S5.2.3 "unparsed-attributes consist of the remainder of the set-cookie-string
// (including the %x3B (";") in question)." plus later on in the same section
// "discard the first ";" and trim".
var unparsed = str.slice(firstSemi).replace(/^\s*;\s*/,'').trim();
// "If the unparsed-attributes string is empty, skip the rest of these
// steps."
if (unparsed.length === 0) {
return c;
}
/*
* S5.2 says that when looping over the items "[p]rocess the attribute-name
* and attribute-value according to the requirements in the following
* subsections" for every item. Plus, for many of the individual attributes
* in S5.3 it says to use the "attribute-value of the last attribute in the
* cookie-attribute-list". Therefore, in this implementation, we overwrite
* the previous value.
*/
var cookie_avs = unparsed.split(/\s*;\s*/);
while (cookie_avs.length) {
var av = cookie_avs.shift();
var av_sep = av.indexOf('=');
var av_key, av_value;
if (av_sep === -1) {
av_key = av;
av_value = null;
} else {
av_key = av.substr(0,av_sep);
av_value = av.substr(av_sep+1);
}
av_key = av_key.trim().toLowerCase();
if (av_value) {
av_value = av_value.trim();
}
switch(av_key) {
case 'expires': // S5.2.1
if (av_value) {
var exp = parseDate(av_value);
// "If the attribute-value failed to parse as a cookie date, ignore the
// cookie-av."
if (exp) {
// over and underflow not realistically a concern: V8's getTime() seems to
// store something larger than a 32-bit time_t (even with 32-bit node)
c.expires = exp;
}
}
break;
case 'max-age': // S5.2.2
if (av_value) {
// "If the first character of the attribute-value is not a DIGIT or a "-"
// character ...[or]... If the remainder of attribute-value contains a
// non-DIGIT character, ignore the cookie-av."
if (/^-?[0-9]+$/.test(av_value)) {
var delta = parseInt(av_value, 10);
// "If delta-seconds is less than or equal to zero (0), let expiry-time
// be the earliest representable date and time."
c.setMaxAge(delta);
}
}
break;
case 'domain': // S5.2.3
// "If the attribute-value is empty, the behavior is undefined. However,
// the user agent SHOULD ignore the cookie-av entirely."
if (av_value) {
// S5.2.3 "Let cookie-domain be the attribute-value without the leading %x2E
// (".") character."
var domain = av_value.trim().replace(/^\./, '');
if (domain) {
// "Convert the cookie-domain to lower case."
c.domain = domain.toLowerCase();
}
}
break;
case 'path': // S5.2.4
/*
* "If the attribute-value is empty or if the first character of the
* attribute-value is not %x2F ("/"):
* Let cookie-path be the default-path.
* Otherwise:
* Let cookie-path be the attribute-value."
*
* We'll represent the default-path as null since it depends on the
* context of the parsing.
*/
c.path = av_value && av_value[0] === "/" ? av_value : null;
break;
case 'secure': // S5.2.5
/*
* "If the attribute-name case-insensitively matches the string "Secure",
* the user agent MUST append an attribute to the cookie-attribute-list
* with an attribute-name of Secure and an empty attribute-value."
*/
c.secure = true;
break;
case 'httponly': // S5.2.6 -- effectively the same as 'secure'
c.httpOnly = true;
break;
default:
c.extensions = c.extensions || [];
c.extensions.push(av);
break;
}
}
return c;
}
// avoid the V8 deoptimization monster!
function jsonParse(str) {
var obj;
try {
obj = JSON.parse(str);
} catch (e) {
return e;
}
return obj;
}
function fromJSON(str) {
if (!str) {
return null;
}
var obj;
if (typeof str === 'string') {
obj = jsonParse(str);
if (obj instanceof Error) {
return null;
}
} else {
// assume it's an Object
obj = str;
}
var c = new Cookie();
for (var i=0; i<Cookie.serializableProperties.length; i++) {
var prop = Cookie.serializableProperties[i];
if (obj[prop] === undefined ||
obj[prop] === Cookie.prototype[prop])
{
continue; // leave as prototype default
}
if (prop === 'expires' ||
prop === 'creation' ||
prop === 'lastAccessed')
{
if (obj[prop] === null) {
c[prop] = null;
} else {
c[prop] = obj[prop] == "Infinity" ?
"Infinity" : new Date(obj[prop]);
}
} else {
c[prop] = obj[prop];
}
}
return c;
}
/* Section 5.4 part 2:
* "* Cookies with longer paths are listed before cookies with
* shorter paths.
*
* * Among cookies that have equal-length path fields, cookies with
* earlier creation-times are listed before cookies with later
* creation-times."
*/
function cookieCompare(a,b) {
var cmp = 0;
// descending for length: b CMP a
var aPathLen = a.path ? a.path.length : 0;
var bPathLen = b.path ? b.path.length : 0;
cmp = bPathLen - aPathLen;
if (cmp !== 0) {
return cmp;
}
// ascending for time: a CMP b
var aTime = a.creation ? a.creation.getTime() : MAX_TIME;
var bTime = b.creation ? b.creation.getTime() : MAX_TIME;
cmp = aTime - bTime;
if (cmp !== 0) {
return cmp;
}
// break ties for the same millisecond (precision of JavaScript's clock)
cmp = a.creationIndex - b.creationIndex;
return cmp;
}
// Gives the permutation of all possible pathMatch()es of a given path. The
// array is in longest-to-shortest order. Handy for indexing.
function permutePath(path) {
if (path === '/') {
return ['/'];
}
if (path.lastIndexOf('/') === path.length-1) {
path = path.substr(0,path.length-1);
}
var permutations = [path];
while (path.length > 1) {
var lindex = path.lastIndexOf('/');
if (lindex === 0) {
break;
}
path = path.substr(0,lindex);
permutations.push(path);
}
permutations.push('/');
return permutations;
}
function getCookieContext(url) {
if (url instanceof Object) {
return url;
}
// NOTE: decodeURI will throw on malformed URIs (see GH-32).
// Therefore, we will just skip decoding for such URIs.
try {
url = decodeURI(url);
}
catch(err) {
// Silently swallow error
}
return urlParse(url);
}
function Cookie(options) {
options = options || {};
Object.keys(options).forEach(function(prop) {
if (Cookie.prototype.hasOwnProperty(prop) &&
Cookie.prototype[prop] !== options[prop] &&
prop.substr(0,1) !== '_')
{
this[prop] = options[prop];
}
}, this);
this.creation = this.creation || new Date();
// used to break creation ties in cookieCompare():
Object.defineProperty(this, 'creationIndex', {
configurable: false,
enumerable: false, // important for assert.deepEqual checks
writable: true,
value: ++Cookie.cookiesCreated
});
}
Cookie.cookiesCreated = 0; // incremented each time a cookie is created
Cookie.parse = parse;
Cookie.fromJSON = fromJSON;
Cookie.prototype.key = "";
Cookie.prototype.value = "";
// the order in which the RFC has them:
Cookie.prototype.expires = "Infinity"; // coerces to literal Infinity
Cookie.prototype.maxAge = null; // takes precedence over expires for TTL
Cookie.prototype.domain = null;
Cookie.prototype.path = null;
Cookie.prototype.secure = false;
Cookie.prototype.httpOnly = false;
Cookie.prototype.extensions = null;
// set by the CookieJar:
Cookie.prototype.hostOnly = null; // boolean when set
Cookie.prototype.pathIsDefault = null; // boolean when set
Cookie.prototype.creation = null; // Date when set; defaulted by Cookie.parse
Cookie.prototype.lastAccessed = null; // Date when set
Object.defineProperty(Cookie.prototype, 'creationIndex', {
configurable: true,
enumerable: false,
writable: true,
value: 0
});
Cookie.serializableProperties = Object.keys(Cookie.prototype)
.filter(function(prop) {
return !(
Cookie.prototype[prop] instanceof Function ||
prop === 'creationIndex' ||
prop.substr(0,1) === '_'
);
});
Cookie.prototype.inspect = function inspect() {
var now = Date.now();
return 'Cookie="'+this.toString() +
'; hostOnly='+(this.hostOnly != null ? this.hostOnly : '?') +
'; aAge='+(this.lastAccessed ? (now-this.lastAccessed.getTime())+'ms' : '?') +
'; cAge='+(this.creation ? (now-this.creation.getTime())+'ms' : '?') +
'"';
};
Cookie.prototype.toJSON = function() {
var obj = {};
var props = Cookie.serializableProperties;
for (var i=0; i<props.length; i++) {
var prop = props[i];
if (this[prop] === Cookie.prototype[prop]) {
continue; // leave as prototype default
}
if (prop === 'expires' ||
prop === 'creation' ||
prop === 'lastAccessed')
{
if (this[prop] === null) {
obj[prop] = null;
} else {
obj[prop] = this[prop] == "Infinity" ? // intentionally not ===
"Infinity" : this[prop].toISOString();
}
} else if (prop === 'maxAge') {
if (this[prop] !== null) {
// again, intentionally not ===
obj[prop] = (this[prop] == Infinity || this[prop] == -Infinity) ?
this[prop].toString() : this[prop];
}
} else {
if (this[prop] !== Cookie.prototype[prop]) {
obj[prop] = this[prop];
}
}
}
return obj;
};
Cookie.prototype.clone = function() {
return fromJSON(this.toJSON());
};
Cookie.prototype.validate = function validate() {
if (!COOKIE_OCTETS.test(this.value)) {
return false;
}
if (this.expires != Infinity && !(this.expires instanceof Date) && !parseDate(this.expires)) {
return false;
}
if (this.maxAge != null && this.maxAge <= 0) {
return false; // "Max-Age=" non-zero-digit *DIGIT
}
if (this.path != null && !PATH_VALUE.test(this.path)) {
return false;
}
var cdomain = this.cdomain();
if (cdomain) {
if (cdomain.match(/\.$/)) {
return false; // S4.1.2.3 suggests that this is bad. domainMatch() tests confirm this
}
var suffix = pubsuffix.getPublicSuffix(cdomain);
if (suffix == null) { // it's a public suffix
return false;
}
}
return true;
};
Cookie.prototype.setExpires = function setExpires(exp) {
if (exp instanceof Date) {
this.expires = exp;
} else {
this.expires = parseDate(exp) || "Infinity";
}
};
Cookie.prototype.setMaxAge = function setMaxAge(age) {
if (age === Infinity || age === -Infinity) {
this.maxAge = age.toString(); // so JSON.stringify() works
} else {
this.maxAge = age;
}
};
// gives Cookie header format
Cookie.prototype.cookieString = function cookieString() {
var val = this.value;
if (val == null) {
val = '';
}
if (this.key === '') {
return val;
}
return this.key+'='+val;
};
// gives Set-Cookie header format
Cookie.prototype.toString = function toString() {
var str = this.cookieString();
if (this.expires != Infinity) {
if (this.expires instanceof Date) {
str += '; Expires='+formatDate(this.expires);
} else {
str += '; Expires='+this.expires;
}
}
if (this.maxAge != null && this.maxAge != Infinity) {
str += '; Max-Age='+this.maxAge;
}
if (this.domain && !this.hostOnly) {
str += '; Domain='+this.domain;
}
if (this.path) {
str += '; Path='+this.path;
}
if (this.secure) {
str += '; Secure';
}
if (this.httpOnly) {
str += '; HttpOnly';
}
if (this.extensions) {
this.extensions.forEach(function(ext) {
str += '; '+ext;
});
}
return str;
};
// TTL() partially replaces the "expiry-time" parts of S5.3 step 3 (setCookie()
// elsewhere)
// S5.3 says to give the "latest representable date" for which we use Infinity
// For "expired" we use 0
Cookie.prototype.TTL = function TTL(now) {
/* RFC6265 S4.1.2.2 If a cookie has both the Max-Age and the Expires
* attribute, the Max-Age attribute has precedence and controls the
* expiration date of the cookie.
* (Concurs with S5.3 step 3)
*/
if (this.maxAge != null) {
return this.maxAge<=0 ? 0 : this.maxAge*1000;
}
var expires = this.expires;
if (expires != Infinity) {
if (!(expires instanceof Date)) {
expires = parseDate(expires) || Infinity;
}
if (expires == Infinity) {
return Infinity;
}
return expires.getTime() - (now || Date.now());
}
return Infinity;
};
// expiryTime() replaces the "expiry-time" parts of S5.3 step 3 (setCookie()
// elsewhere)
Cookie.prototype.expiryTime = function expiryTime(now) {
if (this.maxAge != null) {
var relativeTo = now || this.creation || new Date();
var age = (this.maxAge <= 0) ? -Infinity : this.maxAge*1000;
return relativeTo.getTime() + age;
}
if (this.expires == Infinity) {
return Infinity;
}
return this.expires.getTime();
};
// expiryDate() replaces the "expiry-time" parts of S5.3 step 3 (setCookie()
// elsewhere), except it returns a Date
Cookie.prototype.expiryDate = function expiryDate(now) {
var millisec = this.expiryTime(now);
if (millisec == Infinity) {
return new Date(MAX_TIME);
} else if (millisec == -Infinity) {
return new Date(MIN_TIME);
} else {
return new Date(millisec);
}
};
// This replaces the "persistent-flag" parts of S5.3 step 3
Cookie.prototype.isPersistent = function isPersistent() {
return (this.maxAge != null || this.expires != Infinity);
};
// Mostly S5.1.2 and S5.2.3:
Cookie.prototype.cdomain =
Cookie.prototype.canonicalizedDomain = function canonicalizedDomain() {
if (this.domain == null) {
return null;
}
return canonicalDomain(this.domain);
};
function CookieJar(store, options) {
if (typeof options === "boolean") {
options = {rejectPublicSuffixes: options};
} else if (options == null) {
options = {};
}
if (options.rejectPublicSuffixes != null) {
this.rejectPublicSuffixes = options.rejectPublicSuffixes;
}
if (options.looseMode != null) {
this.enableLooseMode = options.looseMode;
}
if (!store) {
store = new MemoryCookieStore();
}
this.store = store;
}
CookieJar.prototype.store = null;
CookieJar.prototype.rejectPublicSuffixes = true;
CookieJar.prototype.enableLooseMode = false;
var CAN_BE_SYNC = [];
CAN_BE_SYNC.push('setCookie');
CookieJar.prototype.setCookie = function(cookie, url, options, cb) {
var err;
var context = getCookieContext(url);
if (options instanceof Function) {
cb = options;
options = {};
}
var host = canonicalDomain(context.hostname);
var loose = this.enableLooseMode;
if (options.loose != null) {
loose = options.loose;
}
// S5.3 step 1
if (!(cookie instanceof Cookie)) {
cookie = Cookie.parse(cookie, { loose: loose });
}
if (!cookie) {
err = new Error("Cookie failed to parse");
return cb(options.ignoreError ? null : err);
}
// S5.3 step 2
var now = options.now || new Date(); // will assign later to save effort in the face of errors
// S5.3 step 3: NOOP; persistent-flag and expiry-time is handled by getCookie()
// S5.3 step 4: NOOP; domain is null by default
// S5.3 step 5: public suffixes
if (this.rejectPublicSuffixes && cookie.domain) {
var suffix = pubsuffix.getPublicSuffix(cookie.cdomain());
if (suffix == null) { // e.g. "com"
err = new Error("Cookie has domain set to a public suffix");
return cb(options.ignoreError ? null : err);
}
}
// S5.3 step 6:
if (cookie.domain) {
if (!domainMatch(host, cookie.cdomain(), false)) {
err = new Error("Cookie not in this host's domain. Cookie:"+cookie.cdomain()+" Request:"+host);
return cb(options.ignoreError ? null : err);
}
if (cookie.hostOnly == null) { // don't reset if already set
cookie.hostOnly = false;
}
} else {
cookie.hostOnly = true;
cookie.domain = host;
}
//S5.2.4 If the attribute-value is empty or if the first character of the
//attribute-value is not %x2F ("/"):
//Let cookie-path be the default-path.
if (!cookie.path || cookie.path[0] !== '/') {
cookie.path = defaultPath(context.pathname);
cookie.pathIsDefault = true;
}
// S5.3 step 8: NOOP; secure attribute
// S5.3 step 9: NOOP; httpOnly attribute
// S5.3 step 10
if (options.http === false && cookie.httpOnly) {
err = new Error("Cookie is HttpOnly and this isn't an HTTP API");
return cb(options.ignoreError ? null : err);
}
var store = this.store;
if (!store.updateCookie) {
store.updateCookie = function(oldCookie, newCookie, cb) {
this.putCookie(newCookie, cb);
};
}
function withCookie(err, oldCookie) {
if (err) {
return cb(err);
}
var next = function(err) {
if (err) {
return cb(err);
} else {
cb(null, cookie);
}
};
if (oldCookie) {
// S5.3 step 11 - "If the cookie store contains a cookie with the same name,
// domain, and path as the newly created cookie:"
if (options.http === false && oldCookie.httpOnly) { // step 11.2
err = new Error("old Cookie is HttpOnly and this isn't an HTTP API");
return cb(options.ignoreError ? null : err);
}
cookie.creation = oldCookie.creation; // step 11.3
cookie.creationIndex = oldCookie.creationIndex; // preserve tie-breaker
cookie.lastAccessed = now;
// Step 11.4 (delete cookie) is implied by just setting the new one:
store.updateCookie(oldCookie, cookie, next); // step 12
} else {
cookie.creation = cookie.lastAccessed = now;
store.putCookie(cookie, next); // step 12
}
}
store.findCookie(cookie.domain, cookie.path, cookie.key, withCookie);
};
// RFC6365 S5.4
CAN_BE_SYNC.push('getCookies');
CookieJar.prototype.getCookies = function(url, options, cb) {
var context = getCookieContext(url);
if (options instanceof Function) {
cb = options;
options = {};
}
var host = canonicalDomain(context.hostname);
var path = context.pathname || '/';
var secure = options.secure;
if (secure == null && context.protocol &&
(context.protocol == 'https:' || context.protocol == 'wss:'))
{
secure = true;
}
var http = options.http;
if (http == null) {
http = true;
}
var now = options.now || Date.now();
var expireCheck = options.expire !== false;
var allPaths = !!options.allPaths;
var store = this.store;
function matchingCookie(c) {
// "Either:
// The cookie's host-only-flag is true and the canonicalized
// request-host is identical to the cookie's domain.
// Or:
// The cookie's host-only-flag is false and the canonicalized
// request-host domain-matches the cookie's domain."
if (c.hostOnly) {
if (c.domain != host) {
return false;
}
} else {
if (!domainMatch(host, c.domain, false)) {
return false;
}
}
// "The request-uri's path path-matches the cookie's path."
if (!allPaths && !pathMatch(path, c.path)) {
return false;
}
// "If the cookie's secure-only-flag is true, then the request-uri's
// scheme must denote a "secure" protocol"
if (c.secure && !secure) {
return false;
}
// "If the cookie's http-only-flag is true, then exclude the cookie if the
// cookie-string is being generated for a "non-HTTP" API"
if (c.httpOnly && !http) {
return false;
}
// deferred from S5.3
// non-RFC: allow retention of expired cookies by choice
if (expireCheck && c.expiryTime() <= now) {
store.removeCookie(c.domain, c.path, c.key, function(){}); // result ignored
return false;
}
return true;
}
store.findCookies(host, allPaths ? null : path, function(err,cookies) {
if (err) {
return cb(err);
}
cookies = cookies.filter(matchingCookie);
// sorting of S5.4 part 2
if (options.sort !== false) {
cookies = cookies.sort(cookieCompare);
}
// S5.4 part 3
var now = new Date();
cookies.forEach(function(c) {
c.lastAccessed = now;
});
// TODO persist lastAccessed
cb(null,cookies);
});
};
CAN_BE_SYNC.push('getCookieString');
CookieJar.prototype.getCookieString = function(/*..., cb*/) {
var args = Array.prototype.slice.call(arguments,0);
var cb = args.pop();
var next = function(err,cookies) {
if (err) {
cb(err);
} else {
cb(null, cookies
.sort(cookieCompare)
.map(function(c){
return c.cookieString();
})
.join('; '));
}
};
args.push(next);
this.getCookies.apply(this,args);
};
CAN_BE_SYNC.push('getSetCookieStrings');
CookieJar.prototype.getSetCookieStrings = function(/*..., cb*/) {
var args = Array.prototype.slice.call(arguments,0);
var cb = args.pop();
var next = function(err,cookies) {
if (err) {
cb(err);
} else {
cb(null, cookies.map(function(c){
return c.toString();
}));
}
};
args.push(next);
this.getCookies.apply(this,args);
};
CAN_BE_SYNC.push('serialize');
CookieJar.prototype.serialize = function(cb) {
var type = this.store.constructor.name;
if (type === 'Object') {
type = null;
}
// update README.md "Serialization Format" if you change this, please!
var serialized = {
// The version of tough-cookie that serialized this jar. Generally a good
// practice since future versions can make data import decisions based on
// known past behavior. When/if this matters, use `semver`.
version: 'tough-cookie@'+VERSION,
// add the store type, to make humans happy:
storeType: type,
// CookieJar configuration:
rejectPublicSuffixes: !!this.rejectPublicSuffixes,
// this gets filled from getAllCookies:
cookies: []
};
if (!(this.store.getAllCookies &&
typeof this.store.getAllCookies === 'function'))
{
return cb(new Error('store does not support getAllCookies and cannot be serialized'));
}
this.store.getAllCookies(function(err,cookies) {
if (err) {
return cb(err);
}
serialized.cookies = cookies.map(function(cookie) {
// convert to serialized 'raw' cookies
cookie = (cookie instanceof Cookie) ? cookie.toJSON() : cookie;
// Remove the index so new ones get assigned during deserialization
delete cookie.creationIndex;
return cookie;
});
return cb(null, serialized);
});
};
// well-known name that JSON.stringify calls
CookieJar.prototype.toJSON = function() {
return this.serializeSync();
};
// use the class method CookieJar.deserialize instead of calling this directly
CAN_BE_SYNC.push('_importCookies');
CookieJar.prototype._importCookies = function(serialized, cb) {
var jar = this;
var cookies = serialized.cookies;
if (!cookies || !Array.isArray(cookies)) {
return cb(new Error('serialized jar has no cookies array'));
}
function putNext(err) {
if (err) {
return cb(err);
}
if (!cookies.length) {
return cb(err, jar);
}
var cookie;
try {
cookie = fromJSON(cookies.shift());
} catch (e) {
return cb(e);
}
if (cookie === null) {
return putNext(null); // skip this cookie
}
jar.store.putCookie(cookie, putNext);
}
putNext();
};
CookieJar.deserialize = function(strOrObj, store, cb) {
if (arguments.length !== 3) {
// store is optional
cb = store;
store = null;
}
var serialized;
if (typeof strOrObj === 'string') {
serialized = jsonParse(strOrObj);
if (serialized instanceof Error) {
return cb(serialized);
}
} else {
serialized = strOrObj;
}
var jar = new CookieJar(store, serialized.rejectPublicSuffixes);
jar._importCookies(serialized, function(err) {
if (err) {
return cb(err);
}
cb(null, jar);
});
};
CookieJar.deserializeSync = function(strOrObj, store) {
var serialized = typeof strOrObj === 'string' ?
JSON.parse(strOrObj) : strOrObj;
var jar = new CookieJar(store, serialized.rejectPublicSuffixes);
// catch this mistake early:
if (!jar.store.synchronous) {
throw new Error('CookieJar store is not synchronous; use async API instead.');
}
jar._importCookiesSync(serialized);
return jar;
};
CookieJar.fromJSON = CookieJar.deserializeSync;
CAN_BE_SYNC.push('clone');
CookieJar.prototype.clone = function(newStore, cb) {
if (arguments.length === 1) {
cb = newStore;
newStore = null;
}
this.serialize(function(err,serialized) {
if (err) {
return cb(err);
}
CookieJar.deserialize(newStore, serialized, cb);
});
};
// Use a closure to provide a true imperative API for synchronous stores.
function syncWrap(method) {
return function() {
if (!this.store.synchronous) {
throw new Error('CookieJar store is not synchronous; use async API instead.');
}
var args = Array.prototype.slice.call(arguments);
var syncErr, syncResult;
args.push(function syncCb(err, result) {
syncErr = err;
syncResult = result;
});
this[method].apply(this, args);
if (syncErr) {
throw syncErr;
}
return syncResult;
};
}
// wrap all declared CAN_BE_SYNC methods in the sync wrapper
CAN_BE_SYNC.forEach(function(method) {
CookieJar.prototype[method+'Sync'] = syncWrap(method);
});
module.exports = {
CookieJar: CookieJar,
Cookie: Cookie,
Store: Store,
MemoryCookieStore: MemoryCookieStore,
parseDate: parseDate,
formatDate: formatDate,
parse: parse,
fromJSON: fromJSON,
domainMatch: domainMatch,
defaultPath: defaultPath,
pathMatch: pathMatch,
getPublicSuffix: pubsuffix.getPublicSuffix,
cookieCompare: cookieCompare,
permuteDomain: require('./permuteDomain').permuteDomain,
permutePath: permutePath,
canonicalDomain: canonicalDomain
};
```
|
The East Kimberley Regional Airport , locally known as the Kununurra Airport, is an airport in Kununurra, Western Australia. The airport is west of the town. Heavy wet seasons often result in this area being cut off from essential outside services and deliveries. The airport is a crucial piece of infrastructure which enables people and goods to enter or leave from the region and especially supports tourism and economic development.
In 2012, a major expansion of the airport was completed and opened to the public. Costing about AUD$8.68 million, it effectively doubled the size of the facility. This now includes a dedicated arrivals hall with baggage carousel, enlarged check-in area and improved security for the enlarged departure lounge.
Airlines and destinations
Charter airlines
Aviair
Helispirit
Kimberley Air Tours
Shoal Air
Due to the long distances involved in traveling across the Kimberley region, several air-tours are offered by various charter airlines not based in Kununurra, hopping across the north-west of Australia. Occasionally connecting some major eastern Australian cities directly with Kununurra and with some bus tour companies too, to avoid lengthy transfers in Darwin or Perth.
Statistics
Kununurra Airport was ranked 47th in Australia for the number of revenue passengers served in financial year 2010–2011.
New terminal
Old terminal
See also
List of airports in Western Australia
Aviation transport in Australia
References
External links
Airservices Aerodromes & Procedure Charts
Kimberley airports
Kununurra, Western Australia
|
The Pluto Files: The Rise and Fall of America's Favorite Planet is a book written by the astrophysicist and Hayden Planetarium director Neil deGrasse Tyson. The book is about Pluto, which was demoted to the status of dwarf planet in August 2006 by the International Astronomical Union, thereby depriving it of its planet-hood. The book also focuses on the fact that many Americans rallied their support for this icy dwarf on the edge of the Solar System because it was discovered by an American.
The book was given a good review by Jon Stewart in a guest segment with Tyson on The Daily Show. During the interview, Stewart humorously lauded the book as "the most exciting book about Pluto you will ever read in your life," as well as "the compelling story of how [Tyson] destroyed Pluto's life."
The book explains in full detail the journey of Pluto's life from its days as Planet X, to its discovery in the early 20th century and all the way to its current title as a Trans-Neptunian object.
The book appeared on the extended hardcover nonfiction bestseller list in The New York Times in February 2009.
References
External links
The Pluto Files at the publisher's site
Astronomy books
2009 non-fiction books
Books by Neil deGrasse Tyson
Pluto's planethood
W. W. Norton & Company books
|
Hypena is a genus of moths in the family Erebidae. It was first described by Franz von Paula Schrank in 1802. These non-migratory moths overwinter as pupae and almost never estivate as adults.
Taxonomy
The genus includes the former Bomolocha species.
Description
Antennae minutely ciliated in male. An acute frontal tuft present. Thorax smoothly scaled. Abdomen with dorsal tufts. Mid and hind tibia slightly hairy. Forewings with acute and depressed apex.
Selected species
The following species are included in the genus. The lists may be incomplete.
Extant
Hypena abalienalis Walker, 1859 – white-lined hypena moth, white-lined bomolocha moth
Hypena abyssinalis Guénée, 1854
Hypena abyssinialis Guenée, 1854
Hypena albopunctalis (Leech, 1889)
Hypena amica (Bulter, 1878)
Hypena angustalis (Warren, 1913)
Hypena annulalis Grote, 1876
Hypena appalachiensis (Butler, 1987)
Hypena assimilis Hampson, 1891
Hypena atomaria (Smith, 1903)
Hypena baltimoralis Guénée, 1854 – Baltimore bomolocha moth or Baltimore hypena moth
Hypena bijugalis Walker, 1859 – dimorphic bomolocha moth, dimorphic hypena moth, or toothed snout moth
Hypena californica Behr, 1870
Hypena colombana Moore, [1885]
Hypena conscitalis Walker, 1866
Hypena cowani Viette, 1968
Hypena crassalis (Fabricius, 1787) – beautiful snout moth
Hypena cruca (Strand, 1920)
Hypena cyanea (Hampson, 1893)
Hypena deceptalis Walker, 1859 – deceptive hypena moth
Hypena decorata J. B. Smith, 1884
Hypena degesalis Walker, 1859
Hypena denticulata (Moore, 1882)
Hypena depalpis Strand, 1920
Hypena desquamata (Strand, 1920)
Hypena dichromialis Strand, 1920
Hypena ducalis Schaus & Clemens, 1893
Hypena edictalis Walker, 1859 – large bomolocha moth
Hypena eductalis Walker, 1859
Hypena erikae Lödl, 1994
Hypena euryzostra Turner, 1932
Hypena extensa Walker, [1866]
Hypena furva Wileman, 1911
Hypena fuscomaculalis Saalmüller, 1880
Hypena gonospilalis Walker, 1866
Hypena griseapex Hampson, 1891
Hypena griveaudi Viette, 1968
Hypena gypsospila Turner, 1903
Hypena hemiphaea de Joannis, 1915
Hypena heuloa (Smith, 1905)
Hypena hoareae Holloway, 1977
Hypena humuli Harris, 1841 – hop looper moth or hop vine moth
Hypena iconicalis Walker, 1859
Hypena incognata Bethune-Baker, 1908
Hypena indicatalis Walker, 1859
Hypena indistincta Wileman, 1915
Hypena isogona Meyrick, 1889
Hypena jocosalis Walker, [1859]
Hypena jusssalis (Walker, 1859)
Hypena kanshireiensis Wileman, 1916
Hypena kingdoni Viette, 1968
Hypena labatalis Walker, 1859
Hypena laceratalis Walker, [1859] – lantana defoliator moth
Hypena lignealis Walker, 1866
Hypena lividalis (Hübner, 1796)
Hypena longipennis Walker, 1866
Hypena madefactalis Guénée, 1854 – gray-edged hypena moth or gray-eyed bomolocha moth
Hypena malagasy (Viette, 1968)
Hypena manalis Walker, 1859 – flowing-line hypena moth
Hypena mandatalis Walker, 1859
Hypena minualis Guénée, 1854 – sooty bomolocha moth
Hypena modestoides Poole, 1989 (=Hypena modesta J. B. Smith, 1895)
Hypena molpusalis Walker, 1859
Hypena munitalis Mann, 1861
Hypena namaqualis Guenée, 1854
Hypena napa Strand, 1920
Hypena napana Strand, 1920
Hypena nasutalis Guenée, 1854
Hypena neoeductalis Lafontaine & Schmidt, 2010 (=Hypena (Bomolocha) eductalis Hampson, 1895)
Hypena neoplyta Prout, 1925
Hypena obacerralis Walker, 1859
Hypena obesalis Treitschke, 1828 – Paignton snout moth
Hypena obfuscalis Hampson, 1893
Hypena obsitalis (Hübner, 1813) – Bloxworth snout moth
Hypena obsoleta Butler, 1877
Hypena occata Hampson, 1882
Hypena ophiusinalis Mabille, 1879
Hypena ophiusoides Moore, 1882
Hypena opulenta (Christoph, 1877)
Hypena orthographa Turner, 1932
Hypena palpalis (Hübner, 1796)
Hypena palparia Walker, 1861 – variegated snout moth or mottled bomolocha moth
Hypena parva (Wileman, 1916)
Hypena pelodes Turner, 1932
Hypena perspicua (Leech, 1900)
Hypena peterseni Strand, 1920
Hypena poa Strand, 1920
Hypena polycyma Hampson, 1902
Hypena porrectalis Fabricius, 1794
Hypena proboscidalis (Linnaeus, 1758) – snout moth
Hypena quaesitalis Walker, 1859
Hypena ramstadtii (Wyatt, 1967)
Hypena rostralis (Linnaeus, 1758) – buttoned snout moth
Hypena sabinis Lödl, 1994
Hypena saltalis Schaus & Clemens, 1893
Hypena satsumalis Leech, 1889
Hypena scabra (Fabricius, 1798) – green cloverworm moth or black snout moth
Hypena simplex (Lucas, 1895)
Hypena sinuosa Wileman, 1911
Hypena sordidula Grote, 1872 – sordid hypena moth
Hypena strigata (Fabricius)
Hypena strigatus (Fabricius, 1798)
Hypena striolalis Aurivillius, 1910
Hypena subcyanea Butler, 1881
Hypena subidalis Guenée, 1854
Hypena subvittalis Walker, 1866
Hypena sylpha Butler, 1887
Hypena taiwana (Wileman, 1915)
Hypena tenebralis (Strand, 1920)
Hypena toyi (Viette, 1968)
Hypena trigonalis (Guenee, 1854)
Hypena tristalis Lederer, 1853
Hypena umbralis (Smith, 1884)
Hypena variabilis Druce, 1890
Hypena varialis Walker, 1866
Hypena vega (Smith, 1900)
Hypena veronikae Lödl, 1994
Hypena verticalis Hampson, 1910
Hypena vestita (Moore, [1885])
Hypena vetustalis Guénée, 1854
Hypena zillana Strand, 1920
Species brought into synonymy
Hypena masurialis: synonym of Rhynchina obliqualis (Kollar, 1844)
Hypena obliqualis: synonym of Rhynchina obliqualis (Kollar, 1844)
Hypena sagitta: synonym of Dichromia sagitta (Fabricius, 1775)
Extinct
Laysan dropseed noctuid moth (Hypena laysanensis)
Hilo noctuid moth (Hypena newelli)
Lovegrass noctuid moth (Hypena plagiota)
Kaholuamano noctuid moth (Hypena senicula)
References
External links
Hypeninae
Noctuoidea genera
Taxonomy articles created by Polbot
|
Ellie Victoria Cole, (born 12 December 1991) is an Australian retired Paralympic swimmer and wheelchair basketball player. After having her leg amputated due to cancer, she trained in swimming as part of her rehabilitation program and progressed more rapidly than instructors had predicted. She began competitive swimming in 2003 and first competed internationally at the 2006 IPC Swimming World Championships, where she won a silver medal. Since then, she has won medals in the Pan Pacific Swimming Championships, the Commonwealth Games, the Paralympic Games, the IPC Swimming World Championships, and various national championships. Following the 2012 London Paralympics, where she won four gold and two bronze medals, Cole underwent two shoulder reconstructions and made a successful return to swimming at the 2015 IPC Swimming World Championships, winning five medals, including three golds. She subsequently represented Australia at the 2016 Rio de Janeiro Paralympics, the 2018 Commonwealth Games, and the 2020 Tokyo Paralympics. In claiming her seventeenth Paralympic medal in Tokyo, Cole became Australia's most decorated female Paralympian with six gold, five silver and six bronze medals from four Paralympic Games.
Personal life
Ellie Victoria Cole was born in Lilydale, Victoria, on 12 December 1991. Her mother and grandfather were both swimmers, and her father was athletic. At two years of age, she was diagnosed with a rare tumour, a neurosarcoma that was wrapped around the nerves of her right leg. After unsuccessful attempts to treat her cancer with chemotherapy, her right leg was amputated above the knee on 14 February 1994. Eight weeks after the surgery, as part of her rehabilitation, Cole's mother Jenny enrolled her in swimming lessons. Cole's instructors expected her to take up to a year to learn how to swim in a straight line, but it took her two weeks.
Cole attended Mount Eliza North Primary school and Frankston High School, both in the outer Melbourne suburb of Frankston. As of 2021 she lives in Sydney and trains at the Knox Pymble Swim Club. She has completed a Bachelor in Health and Exercise Science at the Australian Catholic University.
Cole was featured in the 2020 documentary film Rising Phoenix on Netflix , which focused on the Paralympic Games. She also campaigns for #WeThe15, a global human rights movement for disabled people.
Cole announced her retirement from swimming at the August 2022 Duel in the Pool.
Swimming
Cole is classified in the S9 category in swimming due to her amputation, a classification that also includes swimmers who have joint restrictions in one leg and those with double below-knee amputations. She began competitive swimming in 2003 and, at the 2006 IPC Swimming World Championships in Durban, she won a silver medal in the women's 100m backstroke S9 event. Also in 2006 Cole won the 100m backstroke at the Telstra Australian Swimming Championships. Cole qualified for the Australian Paralympic Swim Team in 2008 and, in the same year, attended the Beijing Paralympics where she won a silver medal in the Women's 100m Butterfly S9 event and bronze medals in the 400m Freestyle and 100m Backstroke events.
On 12 August 2009 Cole participated in the 100m freestyle multi-disability event in the 2009 Australian Short Course Swimming Championships in Hobart, where she broke the world record with a time of 1:04:06. This championship is the qualifying event for the IPC Swimming World Championships, run by FINA, the international organization for swimming. The same year Cole participated in the 2009 IPC Swimming World Championships 25 m in Rio de Janeiro, where she won bronze medals in the 100m backstroke, 400m freestyle, 4 × 100m freestyle relay and the 200m individual medley.
In 2010 at the IPC Swimming World Championships in Eindhoven, Netherlands she won bronze medals in the women's 200m individual medley and 400m freestyle S9 events. In that same year she won bronze medals in the 100m Freestyle S9 and 100m Butterfly S9 events at the 2010 Commonwealth Games in New Delhi. At the 2011 Pan Pacific Swimming Championships in Edmonton, Alberta, Canada she won a total of six gold medals, emerging victorious in the women's 50m freestyle, 100m freestyle, 400m freestyle, 100m butterfly, 100m backstroke and 200m individual medley S9 events. Cole has also participated in national championships such as the Australian Age Multi Class Swimming Championships and the New South Wales State Open championships. The former competition is held in Canberra at the Australian Institute of Sport and is designed to prepare elite swimmers for international competition. She then participated in the 2012 New South Wales State Open Championships in multi-class events.
Cole was an Australian Institute of Sport Scholarship holder. Her coach, Graeme Carroll, trained her in Canberra in preparation for the 2012 London Paralympics with an approach that combined swim training with aerobics and gym work. She trained with Teigan Van Roosmalen, a blind and deaf S13 swimmer. Cole also mentors young athletes. When not in high school Cole was undertaking ten or more swimming sessions a week but, while at school, she reduced her load. As of 2021, her coach is Nick Dobson.
At the 2012 London Paralympics, Cole participated in eight events and won six medals. In her first event, the 100 m Butterfly S9, she finished fourth, while South Africa's Natalie du Toit finished first. However, the following night, Cole won the 100 m Backstroke S9, winning her first gold medal of the games in Australian record time. She told the press that it had "been a goal of mine ever since I was 12 years old to beat Natalie du Toit" who was "kind of like the Michael Phelps of swimming for me, she has been a great mentor and relaxes me in the marshalling room. She is my biggest hero." Cole won a second gold medal in the 4 x 100 m freestyle relay 34 pts, this time in World Record time. In the 400 m Freestyle S9, she was again beaten by du Toit, who finished first, while Cole took bronze. Cole won a second bronze in the 50 m Freestyle S9, in which du Toit finished seventh, and then gold in the 100 m Freestyle S9, in which du Toit finished third. Cole capped off the games, surprising even herself with a fourth gold medal, in the 4 x 100 m freestyle relay 34 pts, again in Australian record time.
After the London Paralympics, she underwent two shoulder reconstructions that threatened her swimming career. At the 2015 IPC Swimming World Championships, she won gold medals in the Women's 100 m Backstroke S9 breaking the world record in the heats and final, Women's 100 m Freestyle S9 and Women's 4 x 100 m Freestyle Relay 34 points, a silver medal in the Women's 4 × 100 m Medley Relay and a bronze medal in the Women's 50 m Freestyle S9 .
Cole became the first S9 swimmer to break 29 seconds in the 50m freestyle in winning the gold medal at the 2016 Australian Swimming Championships in Adelaide in the 50m Freestyle Multiclass event. Her time of 28.75 broke Natalie du Toit's world record of 29.04.
At the 2016 Rio Paralymmpics, Cole won two gold medals in the Women's 100 m backstroke S9 and Women's 4 x 100 Freestyle Relay 34 points, three silver medals in the Women's 50 m and 400m Freestyle S9, Women's 4 x 100 Medley Relay 34 points and the bronze medal in the Women's 100m Freestyle S9. Cole alongside Maddison Elliott, Lakeisha Patterson and Ashleigh McConnell broke the world record for the Women's 4 × 100 m Freestyle Relay 34 Points with a time of 4.16.65.
Cole faced a challenging time in the lead-up to Rio Paralympics. She reflects "I was still questioning if I was worthy to be there heading in – and I knew that I was, but it's amazing that even after the amount of psychological sports training that I've had, those thoughts still come in and take you down... Usually the athletes who win are the ones who can put those thoughts aside, and tell themselves that they've got a good crack at winning." Meanwhile, Cole put those thoughts aside and went on to win 6 medals at Rio.
At the 2019 World Para Swimming Championships, London, she won the silver medal in the Women's 100m Backstroke S9 and bronze medal in the Women's 400m Freestyle S9.
At the 2020 Tokyo Paralympics, Cole, together with her team of Emily Beecroft, Isabella Vincent, and Ashleigh McConnell won a silver medal in the Women's 4x100m Freestyle 34 pts with a time of 4:26.82, two seconds behind the winners, Italy. She also won a bronze medal in the 34pts Women's 4x100m Medley 34 pts. Her team of Emily Beecroft, Keira Stephens and Isabella Vincent clocked 4:55.70. In claiming the medley bronze, Cole's seventeenth Paralympic medal, she became Australia's most decorated female Paralympian, surpassing the previous record held by swimmer Priya Cooper. Cole also competed in the 100 m freestyle S9, the 400 m freestyle S9, and the 100 m backstroke S9. She qualified for the finals in each but failed to win a medal.
At the 2022 Commonwealth Games, Birmingham, England, she finished 5th in the Women's 100 m freestyle S9.
Wheelchair basketball
Cole played wheelchair basketball for Victoria in the Women's National Wheelchair Basketball League in 2013 and 2014 as a 4.0 point player, taking out the league's award for Best New Talent in 2013.
"I loved working in a team because swimming isn't considered a team sport," Cole told an interviewer in 2013. "I definitely wanted a new challenge, when you've been competing for a decade the increments of improvements are quite small. However, in wheelchair basketball I knew that I could make big improvements. I've been chosen for the women's national league team, which is great, so I'm actually getting somewhere, which is a surprise. But my heart is definitely in swimming and I think it always will be."
Recognition
During her time at Frankston High School, Cole received a Debbie Flintoff-King award for the most outstanding sporting achievement from the institution three years in a row; she was also nominated for the Junior Paralympian of the Year award. The award was received for winning silver and two bronze medals in the Beijing Paralympic Games, silver in 100m butterfly and bronze in 100m backstroke and 400m freestyle. In 2009, she received an Outstanding Sporting Achievement Award from the Department of Education and Early Childhood Development. In 2011, she was nominated for The Age Sport Performer Award in the Performer with a Disability category. In August of the same year she was voted International Paralympic Committee Athlete of the Month after winning six gold medals in Edmonton. She was awarded the Medal of the Order of Australia in the 2014 Australia Day Honours "for service to sport as a Gold Medallist at the London 2012 Paralympic Games." In November 2015, she was awarded Cosmopolitan Magazine's 2015 Sportswoman of the Year.
Cole was the flag bearer for Australia at the 2020 Tokyo Paralympic Games Closing Ceremony. In 2022, she was awarded Most Outstanding Woman in Sport at the Australian Women in Sport Awards.
References
External links
(2017-04-04)
Female Paralympic swimmers for Australia
Child amputees
Commonwealth Games bronze medallists for Australia
Commonwealth Games silver medallists for Australia
Sportswomen from Victoria (state)
Swimmers from Melbourne
Swimmers at the 2008 Summer Paralympics
Swimmers at the 2010 Commonwealth Games
Swimmers at the 2012 Summer Paralympics
Swimmers at the 2016 Summer Paralympics
Swimmers at the 2020 Summer Paralympics
Swimmers at the 2018 Commonwealth Games
Medalists at the 2008 Summer Paralympics
Medalists at the 2012 Summer Paralympics
Medalists at the 2016 Summer Paralympics
Medalists at the 2020 Summer Paralympics
Swimmers at the 2022 Commonwealth Games
Paralympic gold medalists for Australia
Paralympic silver medalists for Australia
Paralympic bronze medalists for Australia
Amputee category Paralympic competitors
Australian amputees
Australian twins
Australian Institute of Sport Paralympic swimmers
Australian female freestyle swimmers
Australian female butterfly swimmers
Australian female backstroke swimmers
Recipients of the Medal of the Order of Australia
1991 births
Living people
S9-classified para swimmers
Commonwealth Games medallists in swimming
Medalists at the World Para Swimming Championships
Paralympic medalists in swimming
21st-century Australian women
21st-century Australian people
Medallists at the 2010 Commonwealth Games
Medallists at the 2018 Commonwealth Games
|
```c
/* GIO - GLib Input, Output and Streaming Library
*
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
*
* You should have received a copy of the GNU Lesser General
*
* Author: Alexander Larsson <alexl@redhat.com>
*/
#include "config.h"
#include <glib.h>
#include "glibintl.h"
#include "ginputstream.h"
#include "gioprivate.h"
#include "gseekable.h"
#include "gcancellable.h"
#include "gasyncresult.h"
#include "gioerror.h"
#include "gpollableinputstream.h"
/**
* SECTION:ginputstream
* @short_description: Base class for implementing streaming input
* @include: gio/gio.h
*
* #GInputStream has functions to read from a stream (g_input_stream_read()),
* to close a stream (g_input_stream_close()) and to skip some content
* (g_input_stream_skip()).
*
* To copy the content of an input stream to an output stream without
* manually handling the reads and writes, use g_output_stream_splice().
*
* See the documentation for #GIOStream for details of thread safety of
* streaming APIs.
*
* All of these functions have async variants too.
**/
struct _GInputStreamPrivate {
guint closed : 1;
guint pending : 1;
GAsyncReadyCallback outstanding_callback;
};
G_DEFINE_ABSTRACT_TYPE_WITH_PRIVATE (GInputStream, g_input_stream, G_TYPE_OBJECT)
static gssize g_input_stream_real_skip (GInputStream *stream,
gsize count,
GCancellable *cancellable,
GError **error);
static void g_input_stream_real_read_async (GInputStream *stream,
void *buffer,
gsize count,
int io_priority,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data);
static gssize g_input_stream_real_read_finish (GInputStream *stream,
GAsyncResult *result,
GError **error);
static void g_input_stream_real_skip_async (GInputStream *stream,
gsize count,
int io_priority,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer data);
static gssize g_input_stream_real_skip_finish (GInputStream *stream,
GAsyncResult *result,
GError **error);
static void g_input_stream_real_close_async (GInputStream *stream,
int io_priority,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer data);
static gboolean g_input_stream_real_close_finish (GInputStream *stream,
GAsyncResult *result,
GError **error);
static void
g_input_stream_dispose (GObject *object)
{
GInputStream *stream;
stream = G_INPUT_STREAM (object);
if (!stream->priv->closed)
g_input_stream_close (stream, NULL, NULL);
G_OBJECT_CLASS (g_input_stream_parent_class)->dispose (object);
}
static void
g_input_stream_class_init (GInputStreamClass *klass)
{
GObjectClass *gobject_class = G_OBJECT_CLASS (klass);
gobject_class->dispose = g_input_stream_dispose;
klass->skip = g_input_stream_real_skip;
klass->read_async = g_input_stream_real_read_async;
klass->read_finish = g_input_stream_real_read_finish;
klass->skip_async = g_input_stream_real_skip_async;
klass->skip_finish = g_input_stream_real_skip_finish;
klass->close_async = g_input_stream_real_close_async;
klass->close_finish = g_input_stream_real_close_finish;
}
static void
g_input_stream_init (GInputStream *stream)
{
stream->priv = g_input_stream_get_instance_private (stream);
}
/**
* g_input_stream_read:
* @stream: a #GInputStream.
* @buffer: (array length=count) (element-type guint8): a buffer to
* read data into (which should be at least count bytes long).
* @count: the number of bytes that will be read from the stream
* @cancellable: (allow-none): optional #GCancellable object, %NULL to ignore.
* @error: location to store the error occurring, or %NULL to ignore
*
* Tries to read @count bytes from the stream into the buffer starting at
* @buffer. Will block during this read.
*
* If count is zero returns zero and does nothing. A value of @count
* larger than %G_MAXSSIZE will cause a %G_IO_ERROR_INVALID_ARGUMENT error.
*
* On success, the number of bytes read into the buffer is returned.
* It is not an error if this is not the same as the requested size, as it
* can happen e.g. near the end of a file. Zero is returned on end of file
* (or if @count is zero), but never otherwise.
*
* The returned @buffer is not a nul-terminated string, it can contain nul bytes
* at any position, and this function doesn't nul-terminate the @buffer.
*
* If @cancellable is not %NULL, then the operation can be cancelled by
* triggering the cancellable object from another thread. If the operation
* was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. If an
* operation was partially finished when the operation was cancelled the
* partial result will be returned, without an error.
*
* On error -1 is returned and @error is set accordingly.
*
* Returns: Number of bytes read, or -1 on error, or 0 on end of file.
**/
gssize
g_input_stream_read (GInputStream *stream,
void *buffer,
gsize count,
GCancellable *cancellable,
GError **error)
{
GInputStreamClass *class;
gssize res;
g_return_val_if_fail (G_IS_INPUT_STREAM (stream), -1);
g_return_val_if_fail (buffer != NULL, 0);
if (count == 0)
return 0;
if (((gssize) count) < 0)
{
g_set_error (error, G_IO_ERROR, G_IO_ERROR_INVALID_ARGUMENT,
_("Too large count value passed to %s"), G_STRFUNC);
return -1;
}
class = G_INPUT_STREAM_GET_CLASS (stream);
if (class->read_fn == NULL)
{
g_set_error_literal (error, G_IO_ERROR, G_IO_ERROR_NOT_SUPPORTED,
_("Input stream doesn't implement read"));
return -1;
}
if (!g_input_stream_set_pending (stream, error))
return -1;
if (cancellable)
g_cancellable_push_current (cancellable);
res = class->read_fn (stream, buffer, count, cancellable, error);
if (cancellable)
g_cancellable_pop_current (cancellable);
g_input_stream_clear_pending (stream);
return res;
}
/**
* g_input_stream_read_all:
* @stream: a #GInputStream.
* @buffer: (array length=count) (element-type guint8): a buffer to
* read data into (which should be at least count bytes long).
* @count: the number of bytes that will be read from the stream
* @bytes_read: (out): location to store the number of bytes that was read from the stream
* @cancellable: (allow-none): optional #GCancellable object, %NULL to ignore.
* @error: location to store the error occurring, or %NULL to ignore
*
* Tries to read @count bytes from the stream into the buffer starting at
* @buffer. Will block during this read.
*
* This function is similar to g_input_stream_read(), except it tries to
* read as many bytes as requested, only stopping on an error or end of stream.
*
* On a successful read of @count bytes, or if we reached the end of the
* stream, %TRUE is returned, and @bytes_read is set to the number of bytes
* read into @buffer.
*
* If there is an error during the operation %FALSE is returned and @error
* is set to indicate the error status.
*
* As a special exception to the normal conventions for functions that
* use #GError, if this function returns %FALSE (and sets @error) then
* @bytes_read will be set to the number of bytes that were successfully
* read before the error was encountered. This functionality is only
* available from C. If you need it from another language then you must
* write your own loop around g_input_stream_read().
*
* Returns: %TRUE on success, %FALSE if there was an error
**/
gboolean
g_input_stream_read_all (GInputStream *stream,
void *buffer,
gsize count,
gsize *bytes_read,
GCancellable *cancellable,
GError **error)
{
gsize _bytes_read;
gssize res;
g_return_val_if_fail (G_IS_INPUT_STREAM (stream), FALSE);
g_return_val_if_fail (buffer != NULL, FALSE);
_bytes_read = 0;
while (_bytes_read < count)
{
res = g_input_stream_read (stream, (char *)buffer + _bytes_read, count - _bytes_read,
cancellable, error);
if (res == -1)
{
if (bytes_read)
*bytes_read = _bytes_read;
return FALSE;
}
if (res == 0)
break;
_bytes_read += res;
}
if (bytes_read)
*bytes_read = _bytes_read;
return TRUE;
}
/**
* g_input_stream_read_bytes:
* @stream: a #GInputStream.
* @count: maximum number of bytes that will be read from the stream. Common
* values include 4096 and 8192.
* @cancellable: (allow-none): optional #GCancellable object, %NULL to ignore.
* @error: location to store the error occurring, or %NULL to ignore
*
* Like g_input_stream_read(), this tries to read @count bytes from
* the stream in a blocking fashion. However, rather than reading into
* a user-supplied buffer, this will create a new #GBytes containing
* the data that was read. This may be easier to use from language
* bindings.
*
* If count is zero, returns a zero-length #GBytes and does nothing. A
* value of @count larger than %G_MAXSSIZE will cause a
* %G_IO_ERROR_INVALID_ARGUMENT error.
*
* On success, a new #GBytes is returned. It is not an error if the
* size of this object is not the same as the requested size, as it
* can happen e.g. near the end of a file. A zero-length #GBytes is
* returned on end of file (or if @count is zero), but never
* otherwise.
*
* If @cancellable is not %NULL, then the operation can be cancelled by
* triggering the cancellable object from another thread. If the operation
* was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. If an
* operation was partially finished when the operation was cancelled the
* partial result will be returned, without an error.
*
* On error %NULL is returned and @error is set accordingly.
*
* Returns: a new #GBytes, or %NULL on error
*
* Since: 2.34
**/
GBytes *
g_input_stream_read_bytes (GInputStream *stream,
gsize count,
GCancellable *cancellable,
GError **error)
{
guchar *buf;
gssize nread;
buf = g_malloc (count);
nread = g_input_stream_read (stream, buf, count, cancellable, error);
if (nread == -1)
{
g_free (buf);
return NULL;
}
else if (nread == 0)
{
g_free (buf);
return g_bytes_new_static ("", 0);
}
else
return g_bytes_new_take (buf, nread);
}
/**
* g_input_stream_skip:
* @stream: a #GInputStream.
* @count: the number of bytes that will be skipped from the stream
* @cancellable: (allow-none): optional #GCancellable object, %NULL to ignore.
* @error: location to store the error occurring, or %NULL to ignore
*
* Tries to skip @count bytes from the stream. Will block during the operation.
*
* This is identical to g_input_stream_read(), from a behaviour standpoint,
* but the bytes that are skipped are not returned to the user. Some
* streams have an implementation that is more efficient than reading the data.
*
* This function is optional for inherited classes, as the default implementation
* emulates it using read.
*
* If @cancellable is not %NULL, then the operation can be cancelled by
* triggering the cancellable object from another thread. If the operation
* was cancelled, the error %G_IO_ERROR_CANCELLED will be returned. If an
* operation was partially finished when the operation was cancelled the
* partial result will be returned, without an error.
*
* Returns: Number of bytes skipped, or -1 on error
**/
gssize
g_input_stream_skip (GInputStream *stream,
gsize count,
GCancellable *cancellable,
GError **error)
{
GInputStreamClass *class;
gssize res;
g_return_val_if_fail (G_IS_INPUT_STREAM (stream), -1);
if (count == 0)
return 0;
if (((gssize) count) < 0)
{
g_set_error (error, G_IO_ERROR, G_IO_ERROR_INVALID_ARGUMENT,
_("Too large count value passed to %s"), G_STRFUNC);
return -1;
}
class = G_INPUT_STREAM_GET_CLASS (stream);
if (!g_input_stream_set_pending (stream, error))
return -1;
if (cancellable)
g_cancellable_push_current (cancellable);
res = class->skip (stream, count, cancellable, error);
if (cancellable)
g_cancellable_pop_current (cancellable);
g_input_stream_clear_pending (stream);
return res;
}
static gssize
g_input_stream_real_skip (GInputStream *stream,
gsize count,
GCancellable *cancellable,
GError **error)
{
GInputStreamClass *class;
gssize ret, read_bytes;
char buffer[8192];
GError *my_error;
if (G_IS_SEEKABLE (stream) && g_seekable_can_seek (G_SEEKABLE (stream)))
{
if (g_seekable_seek (G_SEEKABLE (stream),
count,
G_SEEK_CUR,
cancellable,
NULL))
return count;
}
/* If not seekable, or seek failed, fall back to reading data: */
class = G_INPUT_STREAM_GET_CLASS (stream);
read_bytes = 0;
while (1)
{
my_error = NULL;
ret = class->read_fn (stream, buffer, MIN (sizeof (buffer), count),
cancellable, &my_error);
if (ret == -1)
{
if (read_bytes > 0 &&
my_error->domain == G_IO_ERROR &&
my_error->code == G_IO_ERROR_CANCELLED)
{
g_error_free (my_error);
return read_bytes;
}
g_propagate_error (error, my_error);
return -1;
}
count -= ret;
read_bytes += ret;
if (ret == 0 || count == 0)
return read_bytes;
}
}
/**
* g_input_stream_close:
* @stream: A #GInputStream.
* @cancellable: (allow-none): optional #GCancellable object, %NULL to ignore.
* @error: location to store the error occurring, or %NULL to ignore
*
* Closes the stream, releasing resources related to it.
*
* Once the stream is closed, all other operations will return %G_IO_ERROR_CLOSED.
* Closing a stream multiple times will not return an error.
*
* Streams will be automatically closed when the last reference
* is dropped, but you might want to call this function to make sure
* resources are released as early as possible.
*
* Some streams might keep the backing store of the stream (e.g. a file descriptor)
* open after the stream is closed. See the documentation for the individual
* stream for details.
*
* On failure the first error that happened will be reported, but the close
* operation will finish as much as possible. A stream that failed to
* close will still return %G_IO_ERROR_CLOSED for all operations. Still, it
* is important to check and report the error to the user.
*
* If @cancellable is not %NULL, then the operation can be cancelled by
* triggering the cancellable object from another thread. If the operation
* was cancelled, the error %G_IO_ERROR_CANCELLED will be returned.
* Cancelling a close will still leave the stream closed, but some streams
* can use a faster close that doesn't block to e.g. check errors.
*
* Returns: %TRUE on success, %FALSE on failure
**/
gboolean
g_input_stream_close (GInputStream *stream,
GCancellable *cancellable,
GError **error)
{
GInputStreamClass *class;
gboolean res;
g_return_val_if_fail (G_IS_INPUT_STREAM (stream), FALSE);
class = G_INPUT_STREAM_GET_CLASS (stream);
if (stream->priv->closed)
return TRUE;
res = TRUE;
if (!g_input_stream_set_pending (stream, error))
return FALSE;
if (cancellable)
g_cancellable_push_current (cancellable);
if (class->close_fn)
res = class->close_fn (stream, cancellable, error);
if (cancellable)
g_cancellable_pop_current (cancellable);
g_input_stream_clear_pending (stream);
stream->priv->closed = TRUE;
return res;
}
static void
async_ready_callback_wrapper (GObject *source_object,
GAsyncResult *res,
gpointer user_data)
{
GInputStream *stream = G_INPUT_STREAM (source_object);
g_input_stream_clear_pending (stream);
if (stream->priv->outstanding_callback)
(*stream->priv->outstanding_callback) (source_object, res, user_data);
g_object_unref (stream);
}
static void
async_ready_close_callback_wrapper (GObject *source_object,
GAsyncResult *res,
gpointer user_data)
{
GInputStream *stream = G_INPUT_STREAM (source_object);
g_input_stream_clear_pending (stream);
stream->priv->closed = TRUE;
if (stream->priv->outstanding_callback)
(*stream->priv->outstanding_callback) (source_object, res, user_data);
g_object_unref (stream);
}
/**
* g_input_stream_read_async:
* @stream: A #GInputStream.
* @buffer: (array length=count) (element-type guint8): a buffer to
* read data into (which should be at least count bytes long).
* @count: the number of bytes that will be read from the stream
* @io_priority: the [I/O priority][io-priority]
* of the request.
* @cancellable: (allow-none): optional #GCancellable object, %NULL to ignore.
* @callback: (scope async): callback to call when the request is satisfied
* @user_data: (closure): the data to pass to callback function
*
* Request an asynchronous read of @count bytes from the stream into the buffer
* starting at @buffer. When the operation is finished @callback will be called.
* You can then call g_input_stream_read_finish() to get the result of the
* operation.
*
* During an async request no other sync and async calls are allowed on @stream, and will
* result in %G_IO_ERROR_PENDING errors.
*
* A value of @count larger than %G_MAXSSIZE will cause a %G_IO_ERROR_INVALID_ARGUMENT error.
*
* On success, the number of bytes read into the buffer will be passed to the
* callback. It is not an error if this is not the same as the requested size, as it
* can happen e.g. near the end of a file, but generally we try to read
* as many bytes as requested. Zero is returned on end of file
* (or if @count is zero), but never otherwise.
*
* Any outstanding i/o request with higher priority (lower numerical value) will
* be executed before an outstanding request with lower priority. Default
* priority is %G_PRIORITY_DEFAULT.
*
* The asyncronous methods have a default fallback that uses threads to implement
* asynchronicity, so they are optional for inheriting classes. However, if you
* override one you must override all.
**/
void
g_input_stream_read_async (GInputStream *stream,
void *buffer,
gsize count,
int io_priority,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data)
{
GInputStreamClass *class;
GError *error = NULL;
g_return_if_fail (G_IS_INPUT_STREAM (stream));
g_return_if_fail (buffer != NULL);
if (count == 0)
{
GTask *task;
task = g_task_new (stream, cancellable, callback, user_data);
g_task_set_source_tag (task, g_input_stream_read_async);
g_task_return_int (task, 0);
g_object_unref (task);
return;
}
if (((gssize) count) < 0)
{
g_task_report_new_error (stream, callback, user_data,
g_input_stream_read_async,
G_IO_ERROR, G_IO_ERROR_INVALID_ARGUMENT,
_("Too large count value passed to %s"),
G_STRFUNC);
return;
}
if (!g_input_stream_set_pending (stream, &error))
{
g_task_report_error (stream, callback, user_data,
g_input_stream_read_async,
error);
return;
}
class = G_INPUT_STREAM_GET_CLASS (stream);
stream->priv->outstanding_callback = callback;
g_object_ref (stream);
class->read_async (stream, buffer, count, io_priority, cancellable,
async_ready_callback_wrapper, user_data);
}
/**
* g_input_stream_read_finish:
* @stream: a #GInputStream.
* @result: a #GAsyncResult.
* @error: a #GError location to store the error occurring, or %NULL to
* ignore.
*
* Finishes an asynchronous stream read operation.
*
* Returns: number of bytes read in, or -1 on error, or 0 on end of file.
**/
gssize
g_input_stream_read_finish (GInputStream *stream,
GAsyncResult *result,
GError **error)
{
GInputStreamClass *class;
g_return_val_if_fail (G_IS_INPUT_STREAM (stream), -1);
g_return_val_if_fail (G_IS_ASYNC_RESULT (result), -1);
if (g_async_result_legacy_propagate_error (result, error))
return -1;
else if (g_async_result_is_tagged (result, g_input_stream_read_async))
return g_task_propagate_int (G_TASK (result), error);
class = G_INPUT_STREAM_GET_CLASS (stream);
return class->read_finish (stream, result, error);
}
typedef struct
{
gchar *buffer;
gsize to_read;
gsize bytes_read;
} AsyncReadAll;
static void
free_async_read_all (gpointer data)
{
g_slice_free (AsyncReadAll, data);
}
static void
read_all_callback (GObject *stream,
GAsyncResult *result,
gpointer user_data)
{
GTask *task = user_data;
AsyncReadAll *data = g_task_get_task_data (task);
gboolean got_eof = FALSE;
if (result)
{
GError *error = NULL;
gssize nread;
nread = g_input_stream_read_finish (G_INPUT_STREAM (stream), result, &error);
if (nread == -1)
{
g_task_return_error (task, error);
g_object_unref (task);
return;
}
g_assert_cmpint (nread, <=, data->to_read);
data->to_read -= nread;
data->bytes_read += nread;
got_eof = (nread == 0);
}
if (got_eof || data->to_read == 0)
{
g_task_return_boolean (task, TRUE);
g_object_unref (task);
}
else
g_input_stream_read_async (G_INPUT_STREAM (stream),
data->buffer + data->bytes_read,
data->to_read,
g_task_get_priority (task),
g_task_get_cancellable (task),
read_all_callback, task);
}
static void
read_all_async_thread (GTask *task,
gpointer source_object,
gpointer task_data,
GCancellable *cancellable)
{
GInputStream *stream = source_object;
AsyncReadAll *data = task_data;
GError *error = NULL;
if (g_input_stream_read_all (stream, data->buffer, data->to_read, &data->bytes_read,
g_task_get_cancellable (task), &error))
g_task_return_boolean (task, TRUE);
else
g_task_return_error (task, error);
}
/**
* g_input_stream_read_all_async:
* @stream: A #GInputStream
* @buffer: (array length=count) (element-type guint8): a buffer to
* read data into (which should be at least count bytes long)
* @count: the number of bytes that will be read from the stream
* @io_priority: the [I/O priority][io-priority] of the request
* @cancellable: (allow-none): optional #GCancellable object, %NULL to ignore
* @callback: (scope async): callback to call when the request is satisfied
* @user_data: (closure): the data to pass to callback function
*
* Request an asynchronous read of @count bytes from the stream into the
* buffer starting at @buffer.
*
* This is the asynchronous equivalent of g_input_stream_read_all().
*
* Call g_input_stream_read_all_finish() to collect the result.
*
* Any outstanding I/O request with higher priority (lower numerical
* value) will be executed before an outstanding request with lower
* priority. Default priority is %G_PRIORITY_DEFAULT.
*
* Since: 2.44
**/
void
g_input_stream_read_all_async (GInputStream *stream,
void *buffer,
gsize count,
int io_priority,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data)
{
AsyncReadAll *data;
GTask *task;
g_return_if_fail (G_IS_INPUT_STREAM (stream));
g_return_if_fail (buffer != NULL || count == 0);
task = g_task_new (stream, cancellable, callback, user_data);
data = g_slice_new0 (AsyncReadAll);
data->buffer = buffer;
data->to_read = count;
g_task_set_task_data (task, data, free_async_read_all);
g_task_set_priority (task, io_priority);
/* If async reads are going to be handled via the threadpool anyway
* then we may as well do it with a single dispatch instead of
* bouncing in and out.
*/
if (g_input_stream_async_read_is_via_threads (stream))
{
g_task_run_in_thread (task, read_all_async_thread);
g_object_unref (task);
}
else
read_all_callback (G_OBJECT (stream), NULL, task);
}
/**
* g_input_stream_read_all_finish:
* @stream: a #GInputStream
* @result: a #GAsyncResult
* @bytes_read: (out): location to store the number of bytes that was read from the stream
* @error: a #GError location to store the error occurring, or %NULL to ignore
*
* Finishes an asynchronous stream read operation started with
* g_input_stream_read_all_async().
*
* As a special exception to the normal conventions for functions that
* use #GError, if this function returns %FALSE (and sets @error) then
* @bytes_read will be set to the number of bytes that were successfully
* read before the error was encountered. This functionality is only
* available from C. If you need it from another language then you must
* write your own loop around g_input_stream_read_async().
*
* Returns: %TRUE on success, %FALSE if there was an error
*
* Since: 2.44
**/
gboolean
g_input_stream_read_all_finish (GInputStream *stream,
GAsyncResult *result,
gsize *bytes_read,
GError **error)
{
GTask *task;
g_return_val_if_fail (G_IS_INPUT_STREAM (stream), FALSE);
g_return_val_if_fail (g_task_is_valid (result, stream), FALSE);
task = G_TASK (result);
if (bytes_read)
{
AsyncReadAll *data = g_task_get_task_data (task);
*bytes_read = data->bytes_read;
}
return g_task_propagate_boolean (task, error);
}
static void
read_bytes_callback (GObject *stream,
GAsyncResult *result,
gpointer user_data)
{
GTask *task = user_data;
guchar *buf = g_task_get_task_data (task);
GError *error = NULL;
gssize nread;
GBytes *bytes = NULL;
nread = g_input_stream_read_finish (G_INPUT_STREAM (stream),
result, &error);
if (nread == -1)
{
g_free (buf);
g_task_return_error (task, error);
}
else if (nread == 0)
{
g_free (buf);
bytes = g_bytes_new_static ("", 0);
}
else
bytes = g_bytes_new_take (buf, nread);
if (bytes)
g_task_return_pointer (task, bytes, (GDestroyNotify)g_bytes_unref);
g_object_unref (task);
}
/**
* g_input_stream_read_bytes_async:
* @stream: A #GInputStream.
* @count: the number of bytes that will be read from the stream
* @io_priority: the [I/O priority][io-priority] of the request
* @cancellable: (allow-none): optional #GCancellable object, %NULL to ignore.
* @callback: (scope async): callback to call when the request is satisfied
* @user_data: (closure): the data to pass to callback function
*
* Request an asynchronous read of @count bytes from the stream into a
* new #GBytes. When the operation is finished @callback will be
* called. You can then call g_input_stream_read_bytes_finish() to get the
* result of the operation.
*
* During an async request no other sync and async calls are allowed
* on @stream, and will result in %G_IO_ERROR_PENDING errors.
*
* A value of @count larger than %G_MAXSSIZE will cause a
* %G_IO_ERROR_INVALID_ARGUMENT error.
*
* On success, the new #GBytes will be passed to the callback. It is
* not an error if this is smaller than the requested size, as it can
* happen e.g. near the end of a file, but generally we try to read as
* many bytes as requested. Zero is returned on end of file (or if
* @count is zero), but never otherwise.
*
* Any outstanding I/O request with higher priority (lower numerical
* value) will be executed before an outstanding request with lower
* priority. Default priority is %G_PRIORITY_DEFAULT.
*
* Since: 2.34
**/
void
g_input_stream_read_bytes_async (GInputStream *stream,
gsize count,
int io_priority,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data)
{
GTask *task;
guchar *buf;
task = g_task_new (stream, cancellable, callback, user_data);
buf = g_malloc (count);
g_task_set_task_data (task, buf, NULL);
g_input_stream_read_async (stream, buf, count,
io_priority, cancellable,
read_bytes_callback, task);
}
/**
* g_input_stream_read_bytes_finish:
* @stream: a #GInputStream.
* @result: a #GAsyncResult.
* @error: a #GError location to store the error occurring, or %NULL to
* ignore.
*
* Finishes an asynchronous stream read-into-#GBytes operation.
*
* Returns: the newly-allocated #GBytes, or %NULL on error
*
* Since: 2.34
**/
GBytes *
g_input_stream_read_bytes_finish (GInputStream *stream,
GAsyncResult *result,
GError **error)
{
g_return_val_if_fail (G_IS_INPUT_STREAM (stream), NULL);
g_return_val_if_fail (g_task_is_valid (result, stream), NULL);
return g_task_propagate_pointer (G_TASK (result), error);
}
/**
* g_input_stream_skip_async:
* @stream: A #GInputStream.
* @count: the number of bytes that will be skipped from the stream
* @io_priority: the [I/O priority][io-priority] of the request
* @cancellable: (allow-none): optional #GCancellable object, %NULL to ignore.
* @callback: (scope async): callback to call when the request is satisfied
* @user_data: (closure): the data to pass to callback function
*
* Request an asynchronous skip of @count bytes from the stream.
* When the operation is finished @callback will be called.
* You can then call g_input_stream_skip_finish() to get the result
* of the operation.
*
* During an async request no other sync and async calls are allowed,
* and will result in %G_IO_ERROR_PENDING errors.
*
* A value of @count larger than %G_MAXSSIZE will cause a %G_IO_ERROR_INVALID_ARGUMENT error.
*
* On success, the number of bytes skipped will be passed to the callback.
* It is not an error if this is not the same as the requested size, as it
* can happen e.g. near the end of a file, but generally we try to skip
* as many bytes as requested. Zero is returned on end of file
* (or if @count is zero), but never otherwise.
*
* Any outstanding i/o request with higher priority (lower numerical value)
* will be executed before an outstanding request with lower priority.
* Default priority is %G_PRIORITY_DEFAULT.
*
* The asynchronous methods have a default fallback that uses threads to
* implement asynchronicity, so they are optional for inheriting classes.
* However, if you override one, you must override all.
**/
void
g_input_stream_skip_async (GInputStream *stream,
gsize count,
int io_priority,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data)
{
GInputStreamClass *class;
GError *error = NULL;
g_return_if_fail (G_IS_INPUT_STREAM (stream));
if (count == 0)
{
GTask *task;
task = g_task_new (stream, cancellable, callback, user_data);
g_task_set_source_tag (task, g_input_stream_skip_async);
g_task_return_int (task, 0);
g_object_unref (task);
return;
}
if (((gssize) count) < 0)
{
g_task_report_new_error (stream, callback, user_data,
g_input_stream_skip_async,
G_IO_ERROR, G_IO_ERROR_INVALID_ARGUMENT,
_("Too large count value passed to %s"),
G_STRFUNC);
return;
}
if (!g_input_stream_set_pending (stream, &error))
{
g_task_report_error (stream, callback, user_data,
g_input_stream_skip_async,
error);
return;
}
class = G_INPUT_STREAM_GET_CLASS (stream);
stream->priv->outstanding_callback = callback;
g_object_ref (stream);
class->skip_async (stream, count, io_priority, cancellable,
async_ready_callback_wrapper, user_data);
}
/**
* g_input_stream_skip_finish:
* @stream: a #GInputStream.
* @result: a #GAsyncResult.
* @error: a #GError location to store the error occurring, or %NULL to
* ignore.
*
* Finishes a stream skip operation.
*
* Returns: the size of the bytes skipped, or %-1 on error.
**/
gssize
g_input_stream_skip_finish (GInputStream *stream,
GAsyncResult *result,
GError **error)
{
GInputStreamClass *class;
g_return_val_if_fail (G_IS_INPUT_STREAM (stream), -1);
g_return_val_if_fail (G_IS_ASYNC_RESULT (result), -1);
if (g_async_result_legacy_propagate_error (result, error))
return -1;
else if (g_async_result_is_tagged (result, g_input_stream_skip_async))
return g_task_propagate_int (G_TASK (result), error);
class = G_INPUT_STREAM_GET_CLASS (stream);
return class->skip_finish (stream, result, error);
}
/**
* g_input_stream_close_async:
* @stream: A #GInputStream.
* @io_priority: the [I/O priority][io-priority] of the request
* @cancellable: (allow-none): optional cancellable object
* @callback: (scope async): callback to call when the request is satisfied
* @user_data: (closure): the data to pass to callback function
*
* Requests an asynchronous closes of the stream, releasing resources related to it.
* When the operation is finished @callback will be called.
* You can then call g_input_stream_close_finish() to get the result of the
* operation.
*
* For behaviour details see g_input_stream_close().
*
* The asyncronous methods have a default fallback that uses threads to implement
* asynchronicity, so they are optional for inheriting classes. However, if you
* override one you must override all.
**/
void
g_input_stream_close_async (GInputStream *stream,
int io_priority,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data)
{
GInputStreamClass *class;
GError *error = NULL;
g_return_if_fail (G_IS_INPUT_STREAM (stream));
if (stream->priv->closed)
{
GTask *task;
task = g_task_new (stream, cancellable, callback, user_data);
g_task_set_source_tag (task, g_input_stream_close_async);
g_task_return_boolean (task, TRUE);
g_object_unref (task);
return;
}
if (!g_input_stream_set_pending (stream, &error))
{
g_task_report_error (stream, callback, user_data,
g_input_stream_close_async,
error);
return;
}
class = G_INPUT_STREAM_GET_CLASS (stream);
stream->priv->outstanding_callback = callback;
g_object_ref (stream);
class->close_async (stream, io_priority, cancellable,
async_ready_close_callback_wrapper, user_data);
}
/**
* g_input_stream_close_finish:
* @stream: a #GInputStream.
* @result: a #GAsyncResult.
* @error: a #GError location to store the error occurring, or %NULL to
* ignore.
*
* Finishes closing a stream asynchronously, started from g_input_stream_close_async().
*
* Returns: %TRUE if the stream was closed successfully.
**/
gboolean
g_input_stream_close_finish (GInputStream *stream,
GAsyncResult *result,
GError **error)
{
GInputStreamClass *class;
g_return_val_if_fail (G_IS_INPUT_STREAM (stream), FALSE);
g_return_val_if_fail (G_IS_ASYNC_RESULT (result), FALSE);
if (g_async_result_legacy_propagate_error (result, error))
return FALSE;
else if (g_async_result_is_tagged (result, g_input_stream_close_async))
return g_task_propagate_boolean (G_TASK (result), error);
class = G_INPUT_STREAM_GET_CLASS (stream);
return class->close_finish (stream, result, error);
}
/**
* g_input_stream_is_closed:
* @stream: input stream.
*
* Checks if an input stream is closed.
*
* Returns: %TRUE if the stream is closed.
**/
gboolean
g_input_stream_is_closed (GInputStream *stream)
{
g_return_val_if_fail (G_IS_INPUT_STREAM (stream), TRUE);
return stream->priv->closed;
}
/**
* g_input_stream_has_pending:
* @stream: input stream.
*
* Checks if an input stream has pending actions.
*
* Returns: %TRUE if @stream has pending actions.
**/
gboolean
g_input_stream_has_pending (GInputStream *stream)
{
g_return_val_if_fail (G_IS_INPUT_STREAM (stream), TRUE);
return stream->priv->pending;
}
/**
* g_input_stream_set_pending:
* @stream: input stream
* @error: a #GError location to store the error occurring, or %NULL to
* ignore.
*
* Sets @stream to have actions pending. If the pending flag is
* already set or @stream is closed, it will return %FALSE and set
* @error.
*
* Returns: %TRUE if pending was previously unset and is now set.
**/
gboolean
g_input_stream_set_pending (GInputStream *stream, GError **error)
{
g_return_val_if_fail (G_IS_INPUT_STREAM (stream), FALSE);
if (stream->priv->closed)
{
g_set_error_literal (error, G_IO_ERROR, G_IO_ERROR_CLOSED,
_("Stream is already closed"));
return FALSE;
}
if (stream->priv->pending)
{
g_set_error_literal (error, G_IO_ERROR, G_IO_ERROR_PENDING,
/* Translators: This is an error you get if there is already an
* operation running against this stream when you try to start
* one */
_("Stream has outstanding operation"));
return FALSE;
}
stream->priv->pending = TRUE;
return TRUE;
}
/**
* g_input_stream_clear_pending:
* @stream: input stream
*
* Clears the pending flag on @stream.
**/
void
g_input_stream_clear_pending (GInputStream *stream)
{
g_return_if_fail (G_IS_INPUT_STREAM (stream));
stream->priv->pending = FALSE;
}
/*< internal >
* g_input_stream_async_read_is_via_threads:
* @stream: input stream
*
* Checks if an input stream's read_async function uses threads.
*
* Returns: %TRUE if @stream's read_async function uses threads.
**/
gboolean
g_input_stream_async_read_is_via_threads (GInputStream *stream)
{
GInputStreamClass *class;
g_return_val_if_fail (G_IS_INPUT_STREAM (stream), FALSE);
class = G_INPUT_STREAM_GET_CLASS (stream);
return (class->read_async == g_input_stream_real_read_async &&
!(G_IS_POLLABLE_INPUT_STREAM (stream) &&
g_pollable_input_stream_can_poll (G_POLLABLE_INPUT_STREAM (stream))));
}
/*< internal >
* g_input_stream_async_close_is_via_threads:
* @stream: input stream
*
* Checks if an input stream's close_async function uses threads.
*
* Returns: %TRUE if @stream's close_async function uses threads.
**/
gboolean
g_input_stream_async_close_is_via_threads (GInputStream *stream)
{
GInputStreamClass *class;
g_return_val_if_fail (G_IS_INPUT_STREAM (stream), FALSE);
class = G_INPUT_STREAM_GET_CLASS (stream);
return class->close_async == g_input_stream_real_close_async;
}
/********************************************
* Default implementation of async ops *
********************************************/
typedef struct {
void *buffer;
gsize count;
} ReadData;
static void
free_read_data (ReadData *op)
{
g_slice_free (ReadData, op);
}
static void
read_async_thread (GTask *task,
gpointer source_object,
gpointer task_data,
GCancellable *cancellable)
{
GInputStream *stream = source_object;
ReadData *op = task_data;
GInputStreamClass *class;
GError *error = NULL;
gssize nread;
class = G_INPUT_STREAM_GET_CLASS (stream);
nread = class->read_fn (stream,
op->buffer, op->count,
g_task_get_cancellable (task),
&error);
if (nread == -1)
g_task_return_error (task, error);
else
g_task_return_int (task, nread);
}
static void read_async_pollable (GPollableInputStream *stream,
GTask *task);
static gboolean
read_async_pollable_ready (GPollableInputStream *stream,
gpointer user_data)
{
GTask *task = user_data;
read_async_pollable (stream, task);
return FALSE;
}
static void
read_async_pollable (GPollableInputStream *stream,
GTask *task)
{
ReadData *op = g_task_get_task_data (task);
GError *error = NULL;
gssize nread;
if (g_task_return_error_if_cancelled (task))
return;
nread = G_POLLABLE_INPUT_STREAM_GET_INTERFACE (stream)->
read_nonblocking (stream, op->buffer, op->count, &error);
if (g_error_matches (error, G_IO_ERROR, G_IO_ERROR_WOULD_BLOCK))
{
GSource *source;
g_error_free (error);
source = g_pollable_input_stream_create_source (stream,
g_task_get_cancellable (task));
g_task_attach_source (task, source,
(GSourceFunc) read_async_pollable_ready);
g_source_unref (source);
return;
}
if (nread == -1)
g_task_return_error (task, error);
else
g_task_return_int (task, nread);
/* g_input_stream_real_read_async() unrefs task */
}
static void
g_input_stream_real_read_async (GInputStream *stream,
void *buffer,
gsize count,
int io_priority,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data)
{
GTask *task;
ReadData *op;
op = g_slice_new0 (ReadData);
task = g_task_new (stream, cancellable, callback, user_data);
g_task_set_task_data (task, op, (GDestroyNotify) free_read_data);
g_task_set_priority (task, io_priority);
op->buffer = buffer;
op->count = count;
if (!g_input_stream_async_read_is_via_threads (stream))
read_async_pollable (G_POLLABLE_INPUT_STREAM (stream), task);
else
g_task_run_in_thread (task, read_async_thread);
g_object_unref (task);
}
static gssize
g_input_stream_real_read_finish (GInputStream *stream,
GAsyncResult *result,
GError **error)
{
g_return_val_if_fail (g_task_is_valid (result, stream), -1);
return g_task_propagate_int (G_TASK (result), error);
}
static void
skip_async_thread (GTask *task,
gpointer source_object,
gpointer task_data,
GCancellable *cancellable)
{
GInputStream *stream = source_object;
gsize count = GPOINTER_TO_SIZE (task_data);
GInputStreamClass *class;
GError *error = NULL;
gssize ret;
class = G_INPUT_STREAM_GET_CLASS (stream);
ret = class->skip (stream, count,
g_task_get_cancellable (task),
&error);
if (ret == -1)
g_task_return_error (task, error);
else
g_task_return_int (task, ret);
}
typedef struct {
char buffer[8192];
gsize count;
gsize count_skipped;
} SkipFallbackAsyncData;
static void
skip_callback_wrapper (GObject *source_object,
GAsyncResult *res,
gpointer user_data)
{
GInputStreamClass *class;
GTask *task = user_data;
SkipFallbackAsyncData *data = g_task_get_task_data (task);
GError *error = NULL;
gssize ret;
ret = g_input_stream_read_finish (G_INPUT_STREAM (source_object), res, &error);
if (ret > 0)
{
data->count -= ret;
data->count_skipped += ret;
if (data->count > 0)
{
class = G_INPUT_STREAM_GET_CLASS (source_object);
class->read_async (G_INPUT_STREAM (source_object),
data->buffer, MIN (8192, data->count),
g_task_get_priority (task),
g_task_get_cancellable (task),
skip_callback_wrapper, task);
return;
}
}
if (ret == -1 &&
g_error_matches (error, G_IO_ERROR, G_IO_ERROR_CANCELLED) &&
data->count_skipped)
{
/* No error, return partial read */
g_clear_error (&error);
}
if (error)
g_task_return_error (task, error);
else
g_task_return_int (task, data->count_skipped);
g_object_unref (task);
}
static void
g_input_stream_real_skip_async (GInputStream *stream,
gsize count,
int io_priority,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data)
{
GInputStreamClass *class;
SkipFallbackAsyncData *data;
GTask *task;
class = G_INPUT_STREAM_GET_CLASS (stream);
task = g_task_new (stream, cancellable, callback, user_data);
g_task_set_priority (task, io_priority);
if (g_input_stream_async_read_is_via_threads (stream))
{
/* Read is thread-using async fallback.
* Make skip use threads too, so that we can use a possible sync skip
* implementation. */
g_task_set_task_data (task, GSIZE_TO_POINTER (count), NULL);
g_task_run_in_thread (task, skip_async_thread);
g_object_unref (task);
}
else
{
/* TODO: Skip fallback uses too much memory, should do multiple read calls */
/* There is a custom async read function, lets use that. */
data = g_new (SkipFallbackAsyncData, 1);
data->count = count;
data->count_skipped = 0;
g_task_set_task_data (task, data, g_free);
g_task_set_check_cancellable (task, FALSE);
class->read_async (stream, data->buffer, MIN (8192, count), io_priority, cancellable,
skip_callback_wrapper, task);
}
}
static gssize
g_input_stream_real_skip_finish (GInputStream *stream,
GAsyncResult *result,
GError **error)
{
g_return_val_if_fail (g_task_is_valid (result, stream), -1);
return g_task_propagate_int (G_TASK (result), error);
}
static void
close_async_thread (GTask *task,
gpointer source_object,
gpointer task_data,
GCancellable *cancellable)
{
GInputStream *stream = source_object;
GInputStreamClass *class;
GError *error = NULL;
gboolean result;
class = G_INPUT_STREAM_GET_CLASS (stream);
if (class->close_fn)
{
result = class->close_fn (stream,
g_task_get_cancellable (task),
&error);
if (!result)
{
g_task_return_error (task, error);
return;
}
}
g_task_return_boolean (task, TRUE);
}
static void
g_input_stream_real_close_async (GInputStream *stream,
int io_priority,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data)
{
GTask *task;
task = g_task_new (stream, cancellable, callback, user_data);
g_task_set_check_cancellable (task, FALSE);
g_task_set_priority (task, io_priority);
g_task_run_in_thread (task, close_async_thread);
g_object_unref (task);
}
static gboolean
g_input_stream_real_close_finish (GInputStream *stream,
GAsyncResult *result,
GError **error)
{
g_return_val_if_fail (g_task_is_valid (result, stream), FALSE);
return g_task_propagate_boolean (G_TASK (result), error);
}
```
|
```python
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
#
# path_to_url
#
# Unless required by applicable law or agreed to in writing,
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# specific language governing permissions and limitations
""" Testing infrastructure for Hexagon """
```
|
```objective-c
#ifdef __OBJC__
#import <UIKit/UIKit.h>
#else
#ifndef FOUNDATION_EXPORT
#if defined(__cplusplus)
#define FOUNDATION_EXPORT extern "C"
#else
#define FOUNDATION_EXPORT extern
#endif
#endif
#endif
#import "MBProgressHUD.h"
FOUNDATION_EXPORT double MBProgressHUDVersionNumber;
FOUNDATION_EXPORT const unsigned char MBProgressHUDVersionString[];
```
|
```java
package com.victorydemo;
import com.facebook.react.ReactActivity;
public class MainActivity extends ReactActivity {
/**
* Returns the name of the main component registered from JavaScript.
* This is used to schedule rendering of the component.
*/
@Override
protected String getMainComponentName() {
return "VictoryDemo";
}
}
```
|
Dehgah (, also Romanized as Dehgāh) is a village in Khara Rud Rural District, in the Central District of Siahkal County, Gilan Province, Iran. At the 2006 census, its population was 77, in 22 families.
References
Populated places in Siahkal County
|
Goodnight, Ladies and Gentlemen (, ) is a 1976 French-Italian satirical comedy anthology film. It comprises twelve episodes on themes of corruption in various Italian institutions, each by a different writer and director collectively credited as "Cooperativa 15 Maggio". The episodes are a satire of a typical programming day of an Italian public broadcaster, with a fictional TG3 journalist (Marcello Mastroianni) interviewing a number of the other characters. The film stars Vittorio Gassman, Ugo Tognazzi, Nino Manfredi, Paolo Villaggio, Marcello Mastroianni, Senta Berger, Adolfo Celi, and Felice Andreasi.
Cast
Marcello Mastroianni as Paolo T. Fiume, a fictional television journalist for TG3 news
Vittorio Gassman as CIA agent / Inspector Tuttunpezzo (dual role)
Nino Manfredi as Cardinal Felicetto de li Caprettari
Ugo Tognazzi as the general / the retiree (dual role)
Paolo Villaggio as Professor Schmidt / quiz presenter (dual role)
Senta Berger as Signora Palese
Adolfo Celi as Vladimiro Palese
Felice Andreasi as valet speaker in Vatican City
Andréa Ferréol as Edvige
Sergio Graziani as Cardinal Canareggio
Monica Guerritore as Paolo's assistant
Carlo Croccolo as Questore
Eros Pagni as Commissioner Pertinace
Mario Scaccia as Cardinal Piazza-Colonna
Franco Scandurra as Cardinal Decano
Gianfranco Barra as policeman Nocella
Renzo Marignano as interviewer in Milan
Plot
The film focuses on various depictions of low corrupt society within Italy in the 1970s. The journalist Paolo T. Fiume (Marcello Mastroianni) is a recurring character between various episodes within the film, in which he interviews a number of different characters.
Episodes
The anthology film comprises twelve episodes:
Gianni Agnelli kidnapped – A Milanese businessman (a fictionalized Gianni Agnelli) is kidnapped; while interviewed on the news, he declares that his ransom will be deducted from his workers' salaries, citing their "familial bond" as justification.
One Language for All – The English Lesson – A televised children's English lesson on the names of body parts is aided by an attractive female nude model. A CIA agent approaches her to aid in the assassination of a peace conference delegate, but she kills the agent as she is a spy for a rival agency.
The Bomb – In a docudrama, a police superintendent and a fire chief evacuate a police station due to a bomb threat, only to find that it was a ticking alarm clock. Not wishing to appear foolish, they set a real bomb to destroy the building but mistakenly kill themselves in the process.
A City in the Mirror – Naples triptych:
Let the Little Children – A documentary shows the Archbishop of Naples publicly rewarding the pregnant mother of a large family for her fertility. Her oldest son has been working to support her and his eight siblings, but the burden becomes too much and he kills himself by jumping from the balcony.
We Eat the Children – Following the suicide, a sociologist is interviewed regarding child poverty. The sociologist proposes to solve the overpopulation problem by eating babies of the poor, suggesting various cooking methods.
The Four Politicians – A panel discussion with Naples' last four administrators is unable to focus on the city's problems. The four men are revealed to be related and had appointed each other to powerful offices. They attempt to divert the discussion with gibberish and evasion, then lose control and begin tearing apart and eating a model of the city.
The Retreating General – While waiting to lead his soldiers at a celebratory parade, a general drops one of his medals in a toilet and becomes soiled while retrieving it. He becomes increasingly filthy while trying to remedy this and ultimately shoots himself in the head to avoid humiliation.
Inspector Tuttumpezzo – A children's show, narrated in rhyme, shows the incorruptible police inspector Tuttumpezzo go to arrest a corrupt politician, who is hosting a party. However, due to deception and bizarre circumstances, Tuttumpezzo fails in his duty and serves as a waiter at the party.
The Character of the Day – A journalist interviews a homeless retired man who begs and deceives to supplement his tiny pension. He claims that he wants for nothing, but breaks down at the mention of meat because he has not tasted meat in years.
The Disgrace-o-meter (original: Il Disgraziometro) – A quiz show which rewards the competitor with the greatest misfortunes.
The Holy Throne – A docudrama examines a historical struggle for the papal throne. Two opposing bishops have most of the college of cardinals killed, then compromise on a seriously ill priest to act as their shared puppet. However, the new pope suddenly recovers, and the bishops regain their faith at this miracle – only to be executed by the pope, who had feigned illness for years in a plot to gain power.
The Ceremony of the Caryatids – At the Italian Chamber of Deputies, a celebration marks the fourteenth term of President Giovanni Leone, attended by the highest representatives of state and church, many of whom are very elderly and infirm, with a speech given by a man unable to articulate complete sentences. Following an ovation, those assembled suddenly unleash themselves in a lively tarantella folk dance. The broadcast returns to the studio where the host and his assistant share a passionate kiss and end the broadcast with "Ladies and gentlemen, goodnight".
Production
The filmmakers initially credited their work to "Cooperative 15 Maggio" to protect the individual writers, directors and producers from retaliation.
References
External links
1976 films
1976 comedy films
1970s Italian-language films
Italian anthology films
Films directed by Luigi Comencini
Films directed by Nanni Loy
Films directed by Luigi Magni
Films directed by Mario Monicelli
Films directed by Ettore Scola
Films set in Rome
Films set in Naples
Films set in Milan
Films about journalism
Films critical of the Catholic Church
Films about terrorism
Films about television
Films with screenplays by Ugo Pirro
Films with screenplays by Age & Scarpelli
Films with screenplays by Ruggero Maccari
Films with screenplays by Ettore Scola
French anthology films
French satirical films
Italian satirical films
1970s Italian films
1970s French films
Italian-language French films
|
Misty is a fictional comic book character who has appeared in a series published by Marvel Comics via their Star Comics imprint for younger readers. Created by Trina Robbins, Misty was the star of her own 1985-1986 limited series, Misty (sometimes referred to as Meet Misty), a humour title aimed at young female readers. Following the end of the series, Robbins would make a similar title for Eclipse Comics, California Girls. The character exists in Marvel's main shared universe, known as the Marvel Universe.
Creation
Trina Robbins had spent much of the seventies working in underground comix with a distinct feminist bent, including co-founding the seminal Wimmin's Comix. However she had fond memories of the girl comics she had bought growing up, particularly Timely Comics' titles Millie the Model and Patsy and Hedy, and realised the lack of similar titles meant there was nothing to inspire future female creators. When she heard that Marvel Comics (the present-day incarnation of Timely) were planning Star Comics to reach younger readers, Robbins approached the company with a pitch for a girls' comic. Inspired by Robbins' love of Bill Woggon's Katy Keene, the series also included paper dolls (a recurring feature of Robbins' comics) and audience interaction via reader-submitted outfit designs. Robbins would credit Marvel editor-in-chief Jim Shooter's early career work on Millie the Model as a factor in the series getting the green light.
She brainstormed the concept with Marvel executive editor Tom DeFalco, who suggested the character be something other than an objectified model. Robbins heartily agreed, devising a storyline that would see the lead, then under the working name of 'Kristy' become a soap actress. She hoped the characters would be an "upgrade" on Archie Comics characters such as Betty Cooper and Veronica Lodge, noting "All Betty and Veronica do is fight over Archie... the girls [in Misty] all have ambitions in life" and noted she purposefully avoided the leading character being part of a nuclear family "because this is 1984". Robbins also said she was "blatantly" aiming for female readers "because girls don't have anything to read". A further link to the Timely books was created by reviving Millie herself as Misty's aunt. Misty would be Robbins' first work for a major comic publisher and she would later describe it as "her calling".
The first issue ended with a letter from 'Misty', accompanied by a drawing of the character wearing a barrel, appealing for readers to send in their own designs. In the meantime, Robbins encouraged other comics figures she knew to submit designs while she awaited reader submissions, leading to contributions from Barb Rausch, Mike Madrid, Dori Seda, Michael Goldberg, Steve Leialoha, Sharon Rudahl, Gilbert Hernandez, Lori Walls, Jackie Estrada, Terry Beatty, Martha Thomases - and Robbins' daughter Casey, while Mike Mignola contributed raccoons to the third issue.
Publication history
The first issue of Misty was published in August 1985 (cover dated December). The series was a six-issue mini-series, with plans to continue if sales were strong. Misty soon started generating considerable quantities of fan mail, including numerous reader submissions for character outfits. However, despite enthusiastic readers Robbins noted that the series "failed miserably" from a commercial point of view due to comic shops being uninterested in stocking female-orientated comics. Despite receiving many letters from readers (many noting how hard it was to find the comic), sales were not strong enough to justify any further Misty comics after the initial limited series.
Shortly after Misty ended, Robbins would make another attempt to connect with young female readers with California Girls, a similar title published by independent publisher Eclipse Comics.
Plot
Two hours' drive from New York City, in the small town of Shady Hollow teenager Misty Collins dreams of being an Oscar-winning actress. She lives with her father, her aunt Millie and a cat called Cuddles. Misty hopes to use a beauty contest by Heaventeen Magazine to launch her onto the popular local soap As the Cookie Crumbles. Her best friends are fellow Shady Hollow High School students Spike and Shirelle, where they frequently clash with spoilt rich girl Darlene. Wearing a 1955 dress her aunt had kept from her modelling career, and wins the contest with a touching recital of scenes from Romeo and Juliet, meeting leading man Ricky Martin and wins the chance for audition for the role of his fiancée Loretta in As the Cookie Crumbles As Darlene's father is the sponsor of the soap he pulls strings to get her the part instead, with a crushed Misty instead cast in a bit part. However, during filming Misty's talent soon impresses the director, and the producers rapidly decide to expand her role.,
This means she has to balance her schoolwork and friends with her acting career, and grows closer to Ricky. Through Misty's growing fame, Millie is able to restart her own modelling career. After accidentally switching shorts with Darlene, Misty is briefly concerned that she is anorexic. Later, after buying a dress from a mysterious shop she briefly gains superpowers and embarks on a career as the superhero Mall Girl, foiling a mugging (getting mistaken for Kitty Pryde and Illyana), but loses them when she washes the dress. When she returns to the mall with Shirelle, the shop is gone.
Characters
Misty Collins: a friendly, fashionable teenager and talented actress (though somewhat accident-prone). She is a fan of William Shakespeare, rock singer Billy Active (singer of "Rebel Yell"), comic books, playing basketball Despite her rapid ascension to local celebrity she remains grounded and kind and continues to help those in the community. The only person she doesn't have time for is spoilt rival Darlene.
Shirelle Brown: a level-headed classmate and good friend of Misty who is a fan of Michael Jackson (performing a dance to "Ease on Down the Road" from The Wiz in the Heaventeen Talent contest), Prince, collecting stickers, and aerobics.
Spike: also a classmate and good friend of Misty, Spike is a punk girl, usually with a dyed Mohawk; a running joke is that her hair changes colour frequently. She is initially the lead singer, guitarist and songwriter for band Spike and the Spikettes, the only other members being a drummer and a pair of back-up singers but later starts a new band called The Rad Warriors. She can be quick to anger.
Darlene Dunderbeck: redheaded only child of the richest man in town, which causes her to look down on Misty and her friends. Darlene has a cruel streak, and her act for the talent contest is her impression of a flower - which involves her simply holding a ballet pose. She is a malicious gossip who generally buys the friendship of others with gifts but her attempts to prank Misty and her friends usually backfire. Darlene's acting skills are poor, largely due to her inability to acknowledge any criticism or learn her lines but she is good at video games. She does attempt to work with Misty to avoid them both being upstaged by starlet Lake Lovelock, but Misty's innate goodness undermines the pair's schemes. Darlene has a wider posterior than her rival and is two weeks older. She owns a poodle called Fifi.
Millie Collins: Misty's aunt, a former model, who keeps many souvenirs from her former career. Her celebrity leads to her accidentally upstaging Misty at a Heaventeen fashion shoot - and work as a mature model.
Ricky Martin: teen heartthrob and male lead of As the Cookie Crumbles. He encourages Misty's acting career and swiftly becomes close to her
R.J. Rittenhouse: producer of As the Cookie Crumbles.
Anton DeCarlo: director of As the Cookie Crumbles
Mr. Collins: Misty's father, and a teacher at the local college. Misty credits him for her love of Shakespeare.
The Horseless Horseman: the ghost of patriot Ebeneezer van der Wood, who has haunted Shady Hollow since Redcoats shot his horse out from under him as he tried to warn townsfolk during the American Revolutionary War
Lake Lovelock: an established Los Angeles-based actress who guest-stars on As the Cookie Crumbles and is in a relationship with rock-star Billy Active.
Power and abilities
Misty Collins has no superpowers, though she briefly gains increased strength and the ability to fly after buying a magic superhero costume from a mysterious boutique
Reception
Reviewing Misty #5 for Amazing Heroes, Chris Meier expressed reservations about some of the simplistic tropes used by the series but whole-heartedly supported it for successfully connecting with a young female audience, something he felt was vital for the future of the medium. Slings and Arrows considered the series "lightweight" fun, and praised Robbins' art.
Analysing Misty along with similar genre 1980s comics Angel Love and Amethyst in The Other 1980s, Aaron Kashtan considered the title a "path not taken", contrasting the humorous titles with the darker turn the wider industry was taking at the time with the likes of Watchmen. Conversely Topless Robot named Misty as the 5th worst Star Comics title in 2012, negatively comparing it with cartoon Jem.
References
External links
1985 comics debuts
1986 comics endings
American comics
American comics characters
Comics about women
Comics characters introduced in 1985
Comics publications
Defunct American comics
Marvel Comics female characters
Marvel Comics limited series
Fictional actors
Fictional models
Humor comics
Marvel Comics titles
Marvel Comics characters
Star Comics titles
Romance comics
|
Georg Oddner (17 October 1923 – 7 October 2007) was one of Sweden's greatest photographers from the 20th century.
Oddner was a jazz musician and studying advertising in the 1940s when he first came into contact with photography through John Melin, art director at Svenska Telegrambyrån in Malmö, the largest advertising agency in Scandinavia. From there, Oddner began working a variety of advertising jobs, including industry, architecture, and clothing, as well as for SAS. In the mid-1950s Oddner traveled to California, South America, the Soviet Union, and the far east. During these travels he was able to pursue photography for his own purposes. With Sten Didrik Bellander (1921–2001), Harry Dittmar, Sven Gillsäter (1921–2001), Rune Hassner(1928–2003), Hans Malmberg and Lennart Olson (1925–2010), Hans Hammarskiöld (1925–2012), Tore Johnson, and Pål Nils Nilsson, he was a member of the professional collective Tio Fotografer ('Ten photographers') formed in 1958, and their subsequent photo agency Tiofoto. The group was influential in Swedish photography. They regularly exhibited at significant venues and the whole group was presented at the Hasselblad Centre in 1998,
He predominantly used Hasselblad and Leica equipment. His favorite photographers included Henri Cartier-Bresson and Richard Avedon.
Sources
Georg Oddner ville förstå och förklara, Sydsvenskan 7 October 2007.
1923 births
2007 deaths
Swedish photographers
|
The 1892 Amateur Hockey Association of Canada season lasted until March 7. The championship changed hands twice during the season. Ottawa defeated the Montreal Hockey Club in January and held the championship until March, defending it six times before Montreal won it in the final challenge of the season, defeating Ottawa 1–0.
Season
The Britannia Hockey Club of Montreal mounted their first challenge. Ontario champion Ottawa Hockey Club took over the championship by defeating the Montreal Hockey Club, and held it until the final game of the season, when the Montreal HC defeated them at their home Rideau Rink. It was the Montreal HC's only win of the season. The result is said to have displeased Governor-General Stanley, and after the season, he announced his donation of the Stanley Cup at the Ottawa HC end-of-season banquet, and asked for changes in the determination of the championship.
Overall record
† League Champion by winning final challenge
Schedule and results
Games consisted of a mixture of Challenge games and Exhibition (friendlies)
Player statistics
Goaltending averages
Note: GP = Games played, GA = Goals against, SO = Shutouts, GAA = Goals against average
Source: Ultimate Hockey
Scoring leaders
Source: Ultimate Hockey
References
Amateur Hockey Association of Canada seasons
AHAC
|
```objective-c
/**
*
*/
#pragma once
#include <stdint.h>
#ifdef __cplusplus
extern "C" {
#endif
/** Group: Configuration register */
/** Type of clk_cfg register
* PWM clock prescaler register.
*/
typedef union {
struct {
/** clk_prescale : R/W; bitpos: [7:0]; default: 0;
* Configures the prescaler value of clock, so that the period of PWM_clk = 6.25ns *
* (PWM_CLK_PRESCALE + 1).
*/
uint32_t clk_prescale:8;
uint32_t reserved_8:24;
};
uint32_t val;
} mcpwm_clk_cfg_reg_t;
/** Type of timern_cfg0 register
* PWM timern period and update method configuration register.
*/
typedef union {
struct {
/** timern_prescale : R/W; bitpos: [7:0]; default: 0;
* Configures the prescaler value of timern, so that the period of PT0_clk = Period of
* PWM_clk * (PWM_TIMERn_PRESCALE + 1)
*/
uint32_t timern_prescale:8;
/** timern_period : R/W; bitpos: [23:8]; default: 255;
* Configures the period shadow of PWM timern
*/
uint32_t timern_period:16;
/** timern_period_upmethod : R/W; bitpos: [25:24]; default: 0;
* Configures the update method for active register of PWM timern period.\\0:
* Immediate\\1: TEZ\\2: Sync\\3: TEZ or sync\\TEZ here and below means timer equal
* zero event
*/
uint32_t timern_period_upmethod:2;
uint32_t reserved_26:6;
};
uint32_t val;
} mcpwm_timern_cfg0_reg_t;
/** Type of timern_cfg1 register
* PWM timern working mode and start/stop control register.
*/
typedef union {
struct {
/** timern_start : R/W/SC; bitpos: [2:0]; default: 0;
* Configures whether or not to start/stop PWM timern.\\0: If PWM timern starts, then
* stops at TEZ\\1: If timern starts, then stops at TEP\\2: PWM timern starts and runs
* on\\3: Timern starts and stops at the next TEZ\\4: Timer0 starts and stops at the
* next TEP.\\TEP here and below means the event that happens when the timer equals to
* period
*/
uint32_t timern_start:3;
/** timern_mod : R/W; bitpos: [4:3]; default: 0;
* Configures the working mode of PWM timern.\\0: Freeze\\1: Increase mode\\2:
* Decrease mode\\3: Up-down mode
*/
uint32_t timern_mod:2;
uint32_t reserved_5:27;
};
uint32_t val;
} mcpwm_timern_cfg1_reg_t;
/** Type of timern_sync register
* PWM timern sync function configuration register.
*/
typedef union {
struct {
/** timern_synci_en : R/W; bitpos: [0]; default: 0;
* Configures whether or not to enable timern reloading with phase on sync input event
* is enabled.\\0: Disable\\1: Enable
*/
uint32_t timern_synci_en:1;
/** timern_sync_sw : R/W; bitpos: [1]; default: 0;
* Configures the generation of software sync. Toggling this bit will trigger a
* software sync.
*/
uint32_t timern_sync_sw:1;
/** timern_synco_sel : R/W; bitpos: [3:2]; default: 0;
* Configures the selection of PWM timern sync_out.\\0: Sync_in\\1: TEZ\\2: TEP\\3:
* Invalid, sync_out selects noting
*/
uint32_t timern_synco_sel:2;
/** timern_phase : R/W; bitpos: [19:4]; default: 0;
* Configures the phase for timern reload on sync event.
*/
uint32_t timern_phase:16;
/** timern_phase_direction : R/W; bitpos: [20]; default: 0;
* Configures the PWM timern's direction when timern mode is up-down mode.\\0:
* Increase\\1: Decrease
*/
uint32_t timern_phase_direction:1;
uint32_t reserved_21:11;
};
uint32_t val;
} mcpwm_timern_sync_reg_t;
/** Type of timer_synci_cfg register
* Synchronization input selection register for PWM timers.
*/
typedef union {
struct {
/** timer0_syncisel : R/W; bitpos: [2:0]; default: 0;
* Configures the selection of sync input for PWM timer0.\\1: PWM timer0 sync_out\\2:
* PWM timer1 sync_out\\3: PWM timer2 sync_out\\4: SYNC0 from GPIO matrix\\5: SYNC1
* from GPIO matrix\\6: SYNC2 from GPIO matrix\\Other values: No sync input selected
*/
uint32_t timer0_syncisel:3;
/** timer1_syncisel : R/W; bitpos: [5:3]; default: 0;
* Configures the selection of sync input for PWM timer1.\\1: PWM timer0 sync_out\\2:
* PWM timer1 sync_out\\3: PWM timer2 sync_out\\4: SYNC0 from GPIO matrix\\5: SYNC1
* from GPIO matrix\\6: SYNC2 from GPIO matrix\\Other values: No sync input selected
*/
uint32_t timer1_syncisel:3;
/** timer2_syncisel : R/W; bitpos: [8:6]; default: 0;
* Configures the selection of sync input for PWM timer2.\\1: PWM timer0 sync_out\\2:
* PWM timer1 sync_out\\3: PWM timer2 sync_out\\4: SYNC0 from GPIO matrix\\5: SYNC1
* from GPIO matrix\\6: SYNC2 from GPIO matrix\\Other values: No sync input selected
*/
uint32_t timer2_syncisel:3;
/** external_synci0_invert : R/W; bitpos: [9]; default: 0;
* Configures whether or not to invert SYNC0 from GPIO matrix.\\0: Not invert\\1:
* Invert
*/
uint32_t external_synci0_invert:1;
/** external_synci1_invert : R/W; bitpos: [10]; default: 0;
* Configures whether or not to invert SYNC1 from GPIO matrix.\\0: Not invert\\1:
* Invert
*/
uint32_t external_synci1_invert:1;
/** external_synci2_invert : R/W; bitpos: [11]; default: 0;
* Configures whether or not to invert SYNC2 from GPIO matrix.\\0: Not invert\\1:
* Invert
*/
uint32_t external_synci2_invert:1;
uint32_t reserved_12:20;
};
uint32_t val;
} mcpwm_timer_synci_cfg_reg_t;
/** Type of operator_timersel register
* PWM operator's timer select register
*/
typedef union {
struct {
/** operator0_timersel : R/W; bitpos: [1:0]; default: 0;
* Configures which PWM timer will be the timing reference for PWM operator0.\\0:
* Timer0\\1: Timer1\\2: Timer2\\3: Invalid, will select timer2
*/
uint32_t operator0_timersel:2;
/** operator1_timersel : R/W; bitpos: [3:2]; default: 0;
* Configures which PWM timer will be the timing reference for PWM operator1.\\0:
* Timer0\\1: Timer1\\2: Timer2\\3: Invalid, will select timer2
*/
uint32_t operator1_timersel:2;
/** operator2_timersel : R/W; bitpos: [5:4]; default: 0;
* Configures which PWM timer will be the timing reference for PWM operator2.\\0:
* Timer0\\1: Timer1\\2: Timer2\\3: Invalid, will select timer2
*/
uint32_t operator2_timersel:2;
uint32_t reserved_6:26;
};
uint32_t val;
} mcpwm_operator_timersel_reg_t;
/** Type of genn_stmp_cfg register
* Generatorn time stamp registers A and B transfer status and update method register
*/
typedef union {
struct {
/** cmprn_a_upmethod : R/W; bitpos: [3:0]; default: 0;
* Configures the update method for PWM generator n time stamp A's active
* register.\\0: Immediately\\Bit0 is set to 1: TEZ\\Bit1 is set to 1: TEP\\Bit2 is
* set to 1: Sync\\Bit3 is set to 1: Disable the update
*/
uint32_t cmprn_a_upmethod:4;
/** cmprn_b_upmethod : R/W; bitpos: [7:4]; default: 0;
* Configures the update method for PWM generator n time stamp B's active
* register.\\0: Immediately\\Bit0 is set to 1: TEZ\\Bit1 is set to 1: TEP\\Bit2 is
* set to 1: Sync\\Bit3 is set to 1: Disable the update
*/
uint32_t cmprn_b_upmethod:4;
/** cmprn_a_shdw_full : R/W/WTC/SC; bitpos: [8]; default: 0;
* Represents whether or not generatorn time stamp A's shadow reg is transferred.\\0:
* A's active reg has been updated with shadow register latest value.\\1: A's shadow
* reg is filled and waiting to be transferred to A's active reg
*/
uint32_t cmprn_a_shdw_full:1;
/** cmprn_b_shdw_full : R/W/WTC/SC; bitpos: [9]; default: 0;
* Represents whether or not generatorn time stamp B's shadow reg is transferred.\\0:
* B's active reg has been updated with shadow register latest value.\\1: B's shadow
* reg is filled and waiting to be transferred to B's active reg
*/
uint32_t cmprn_b_shdw_full:1;
uint32_t reserved_10:22;
};
uint32_t val;
} mcpwm_genn_stmp_cfg_reg_t;
/** Type of genn_tstmp register
* Generatorn time stamp shadow register
*/
typedef union {
struct {
/** cmprn : R/W; bitpos: [15:0]; default: 0;
* Configures the value of PWM generator n time stamp shadow register.
*/
uint32_t cmprn:16;
uint32_t reserved_16:16;
};
uint32_t val;
} mcpwm_genn_tstmp_reg_t;
/** Type of genn_cfg0 register
* Generatorn fault event T0 and T1 configuration register
*/
typedef union {
struct {
/** genn_cfg_upmethod : R/W; bitpos: [3:0]; default: 0;
* Configures update method for PWM generator n's active register.\\0:
* Immediately\\Bit0 is set to 1: TEZ\\Bit1 is set to 1: TEP\\Bit2 is set to 1:
* Sync\\Bit3 is set to 1: Disable the update
*/
uint32_t genn_cfg_upmethod:4;
/** genn_t0_sel : R/W; bitpos: [6:4]; default: 0;
* Configures source selection for PWM generator n event_t0, take effect
* immediately.\\0: fault_event0\\1: fault_event1\\2: fault_event2\\3: sync_taken\\4:
* Invalid, Select nothing
*/
uint32_t genn_t0_sel:3;
/** genn_t1_sel : R/W; bitpos: [9:7]; default: 0;
* Configures source selection for PWM generator n event_t1, take effect
* immediately.\\0: fault_event0\\1: fault_event1\\2: fault_event2\\3: sync_taken\\4:
* Invalid, Select nothing
*/
uint32_t genn_t1_sel:3;
uint32_t reserved_10:22;
};
uint32_t val;
} mcpwm_genn_cfg0_reg_t;
/** Type of genn_force register
* Generatorn output signal force mode register.
*/
typedef union {
struct {
/** genn_cntuforce_upmethod : R/W; bitpos: [5:0]; default: 32;
* Configures update method for continuous software force of PWM generatorn.\\0:
* Immediately\\Bit0 is set to 1: TEZ\\Bit1 is set to 1: TEP\\Bit2 is set to 1:
* TEA\\Bit3 is set to 1: TEB\\Bit4 is set to 1: Sync\\Bit5 is set to 1: Disable
* update. TEA/B here and below means an event generated when the timer's value equals
* to that of register A/B.
*/
uint32_t genn_cntuforce_upmethod:6;
/** genn_a_cntuforce_mode : R/W; bitpos: [7:6]; default: 0;
* Configures continuous software force mode for PWMn A.\\0: Disabled\\1: Low\\2:
* High\\3: Disabled
*/
uint32_t genn_a_cntuforce_mode:2;
/** genn_b_cntuforce_mode : R/W; bitpos: [9:8]; default: 0;
* Configures continuous software force mode for PWMn B.\\0: Disabled\\1: Low\\2:
* High\\3: Disabled
*/
uint32_t genn_b_cntuforce_mode:2;
/** genn_a_nciforce : R/W; bitpos: [10]; default: 0;
* Configures the generation of non-continuous immediate software-force event for PWMn
* A, a toggle will trigger a force event.
*/
uint32_t genn_a_nciforce:1;
/** genn_a_nciforce_mode : R/W; bitpos: [12:11]; default: 0;
* Configures non-continuous immediate software force mode for PWMn A.\\0:
* Disabled\\1: Low\\2: High\\3: Disabled
*/
uint32_t genn_a_nciforce_mode:2;
/** genn_b_nciforce : R/W; bitpos: [13]; default: 0;
* Configures the generation of non-continuous immediate software-force event for PWMn
* B, a toggle will trigger a force event.
*/
uint32_t genn_b_nciforce:1;
/** genn_b_nciforce_mode : R/W; bitpos: [15:14]; default: 0;
* Configures non-continuous immediate software force mode for PWMn B.\\0:
* Disabled\\1: Low\\2: High\\3: Disabled
*/
uint32_t genn_b_nciforce_mode:2;
uint32_t reserved_16:16;
};
uint32_t val;
} mcpwm_genn_force_reg_t;
/** Type of genn register
* PWMn output signal A actions configuration register
*/
typedef union {
struct {
/** genn_utez : R/W; bitpos: [1:0]; default: 0;
* Configures action on PWMn A triggered by event TEZ when timer increasing.\\0: No
* change\\1: Low\\2: High\\3: Toggle
*/
uint32_t genn_utez:2;
/** genn_utep : R/W; bitpos: [3:2]; default: 0;
* Configures action on PWMn A triggered by event TEP when timer increasing.\\0: No
* change\\1: Low\\2: High\\3: Toggle
*/
uint32_t genn_utep:2;
/** genn_utea : R/W; bitpos: [5:4]; default: 0;
* Configures action on PWMn A triggered by event TEA when timer increasing.\\0: No
* change\\1: Low\\2: High\\3: Toggle
*/
uint32_t genn_utea:2;
/** genn_uteb : R/W; bitpos: [7:6]; default: 0;
* Configures action on PWMn A triggered by event TEB when timer increasing.\\0: No
* change\\1: Low\\2: High\\3: Toggle
*/
uint32_t genn_uteb:2;
/** genn_ut0 : R/W; bitpos: [9:8]; default: 0;
* Configures action on PWMn A triggered by event_t0 when timer increasing.\\0: No
* change\\1: Low\\2: High\\3: Toggle
*/
uint32_t genn_ut0:2;
/** genn_ut1 : R/W; bitpos: [11:10]; default: 0;
* Configures action on PWMn A triggered by event_t1 when timer increasing.\\0: No
* change\\1: Low\\2: High\\3: Toggle
*/
uint32_t genn_ut1:2;
/** genn_dtez : R/W; bitpos: [13:12]; default: 0;
* Configures action on PWMn A triggered by event TEZ when timer decreasing.\\0: No
* change\\1: Low\\2: High\\3: Toggle
*/
uint32_t genn_dtez:2;
/** genn_dtep : R/W; bitpos: [15:14]; default: 0;
* Configures action on PWMn A triggered by event TEP when timer decreasing.\\0: No
* change\\1: Low\\2: High\\3: Toggle
*/
uint32_t genn_dtep:2;
/** genn_dtea : R/W; bitpos: [17:16]; default: 0;
* Configures action on PWMn A triggered by event TEA when timer decreasing.\\0: No
* change\\1: Low\\2: High\\3: Toggle
*/
uint32_t genn_dtea:2;
/** genn_dteb : R/W; bitpos: [19:18]; default: 0;
* Configures action on PWMn A triggered by event TEB when timer decreasing.\\0: No
* change\\1: Low\\2: High\\3: Toggle
*/
uint32_t genn_dteb:2;
/** genn_dt0 : R/W; bitpos: [21:20]; default: 0;
* Configures action on PWMn A triggered by event_t0 when timer decreasing.\\0: No
* change\\1: Low\\2: High\\3: Toggle
*/
uint32_t genn_dt0:2;
/** genn_dt1 : R/W; bitpos: [23:22]; default: 0;
* Configures action on PWMn A triggered by event_t1 when timer decreasing.\\0: No
* change\\1: Low\\2: High\\3: Toggle
*/
uint32_t genn_dt1:2;
uint32_t reserved_24:8;
};
uint32_t val;
} mcpwm_genn_reg_t;
/** Type of dtn_cfg register
* Dead time configuration register
*/
typedef union {
struct {
/** dbn_fed_upmethod : R/W; bitpos: [3:0]; default: 0;
* Configures update method for FED (Falling edge delay) active register.\\0:
* Immediate\\Bit0 is set to 1: TEZ\\Bit1 is set to 1: TEP\\Bit2 is set to 1:
* Sync\\Bit3 is set to 1: Disable the update
*/
uint32_t dbn_fed_upmethod:4;
/** dbn_red_upmethod : R/W; bitpos: [7:4]; default: 0;
* Configures update method for RED (rising edge delay) active register.\\0:
* Immediate\\Bit0 is set to 1: TEZ\\Bit1 is set to 1: TEP\\Bit2 is set to 1:
* Sync\\Bit3 is set to 1: Disable the update
*/
uint32_t dbn_red_upmethod:4;
/** dbn_deb_mode : R/W; bitpos: [8]; default: 0;
* Configures S8 in table, dual-edge B mode.\\0: fed/red take effect on different path
* separately\\1: fed/red take effect on B path, A out is in bypass or dulpB mode
*/
uint32_t dbn_deb_mode:1;
/** dbn_a_outswap : R/W; bitpos: [9]; default: 0;
* Configures S6 in table.
*/
uint32_t dbn_a_outswap:1;
/** dbn_b_outswap : R/W; bitpos: [10]; default: 0;
* Configures S7 in table.
*/
uint32_t dbn_b_outswap:1;
/** dbn_red_insel : R/W; bitpos: [11]; default: 0;
* Configures S4 in table.
*/
uint32_t dbn_red_insel:1;
/** dbn_fed_insel : R/W; bitpos: [12]; default: 0;
* Configures S5 in table.
*/
uint32_t dbn_fed_insel:1;
/** dbn_red_outinvert : R/W; bitpos: [13]; default: 0;
* Configures S2 in table.
*/
uint32_t dbn_red_outinvert:1;
/** dbn_fed_outinvert : R/W; bitpos: [14]; default: 0;
* Configures S3 in table.
*/
uint32_t dbn_fed_outinvert:1;
/** dbn_a_outbypass : R/W; bitpos: [15]; default: 1;
* Configures S1 in table.
*/
uint32_t dbn_a_outbypass:1;
/** dbn_b_outbypass : R/W; bitpos: [16]; default: 1;
* Configures S0 in table.
*/
uint32_t dbn_b_outbypass:1;
/** dbn_clk_sel : R/W; bitpos: [17]; default: 0;
* Configures dead time generator n clock selection.\\0: PWM_clk\\1: PT_clk
*/
uint32_t dbn_clk_sel:1;
uint32_t reserved_18:14;
};
uint32_t val;
} mcpwm_dtn_cfg_reg_t;
/** Type of dtn_fed_cfg register
* Falling edge delay (FED) shadow register
*/
typedef union {
struct {
/** dbn_fed : R/W; bitpos: [15:0]; default: 0;
* Configures shadow register for FED.
*/
uint32_t dbn_fed:16;
uint32_t reserved_16:16;
};
uint32_t val;
} mcpwm_dtn_fed_cfg_reg_t;
/** Type of dtn_red_cfg register
* Rising edge delay (RED) shadow register
*/
typedef union {
struct {
/** dbn_red : R/W; bitpos: [15:0]; default: 0;
* Configures shadow register for RED.
*/
uint32_t dbn_red:16;
uint32_t reserved_16:16;
};
uint32_t val;
} mcpwm_dtn_red_cfg_reg_t;
/** Type of carriern_cfg register
* Carriern configuration register
*/
typedef union {
struct {
/** choppern_en : R/W; bitpos: [0]; default: 0;
* Configures whether or not to enable carriern.\\0: Bypassed\\1: Enabled
*/
uint32_t choppern_en:1;
/** choppern_prescale : R/W; bitpos: [4:1]; default: 0;
* Configures the prescale value of PWM carriern clock (PC_clk), so that period of
* PC_clk = period of PWM_clk * (PWM_CARRIERn_PRESCALE + 1)
*/
uint32_t choppern_prescale:4;
/** choppern_duty : R/W; bitpos: [7:5]; default: 0;
* Configures carrier duty. Duty = PWM_CARRIERn_DUTY / 8
*/
uint32_t choppern_duty:3;
/** choppern_oshtwth : R/W; bitpos: [11:8]; default: 0;
* Configures width of the first pulse. Measurement unit: Periods of the carrier.
*/
uint32_t choppern_oshtwth:4;
/** choppern_out_invert : R/W; bitpos: [12]; default: 0;
* Configures whether or not to invert the output of PWMn A and PWMn B for this
* submodule.\\0: Normal\\1: Invert
*/
uint32_t choppern_out_invert:1;
/** choppern_in_invert : R/W; bitpos: [13]; default: 0;
* Configures whether or not to invert the input of PWMn A and PWMn B for this
* submodule.\\0: Normal\\1: Invert
*/
uint32_t choppern_in_invert:1;
uint32_t reserved_14:18;
};
uint32_t val;
} mcpwm_carriern_cfg_reg_t;
/** Type of fhn_cfg0 register
* PWMn A and PWMn B trip events actions configuration register
*/
typedef union {
struct {
/** tzn_sw_cbc : R/W; bitpos: [0]; default: 0;
* Configures whether or not to enable software force cycle-by-cycle mode action.\\0:
* Disable\\1: Enable
*/
uint32_t tzn_sw_cbc:1;
/** tzn_f2_cbc : R/W; bitpos: [1]; default: 0;
* Configures whether or not event_f2 will trigger cycle-by-cycle mode action.\\0:
* Disable\\1: Enable
*/
uint32_t tzn_f2_cbc:1;
/** tzn_f1_cbc : R/W; bitpos: [2]; default: 0;
* Configures whether or not event_f1 will trigger cycle-by-cycle mode action.\\0:
* Disable\\1: Enable
*/
uint32_t tzn_f1_cbc:1;
/** tzn_f0_cbc : R/W; bitpos: [3]; default: 0;
* Configures whether or not event_f0 will trigger cycle-by-cycle mode action.\\0:
* Disable\\1: Enable
*/
uint32_t tzn_f0_cbc:1;
/** tzn_sw_ost : R/W; bitpos: [4]; default: 0;
* Configures whether or not to enable software force one-shot mode action.\\0:
* Disable\\1: Enable
*/
uint32_t tzn_sw_ost:1;
/** tzn_f2_ost : R/W; bitpos: [5]; default: 0;
* Configures whether or not event_f2 will trigger one-shot mode action.\\0:
* Disable\\1: Enable
*/
uint32_t tzn_f2_ost:1;
/** tzn_f1_ost : R/W; bitpos: [6]; default: 0;
* Configures whether or not event_f1 will trigger one-shot mode action.\\0:
* Disable\\1: Enable
*/
uint32_t tzn_f1_ost:1;
/** tzn_f0_ost : R/W; bitpos: [7]; default: 0;
* Configures whether or not event_f0 will trigger one-shot mode action.\\0:
* Disable\\1: Enable
*/
uint32_t tzn_f0_ost:1;
/** tzn_a_cbc_d : R/W; bitpos: [9:8]; default: 0;
* Configures cycle-by-cycle mode action on PWMn A when fault event occurs and timer
* is decreasing.\\0: Do nothing\\1: Force low\\2: Force high\\3: Toggle
*/
uint32_t tzn_a_cbc_d:2;
/** tzn_a_cbc_u : R/W; bitpos: [11:10]; default: 0;
* Configures cycle-by-cycle mode action on PWMn A when fault event occurs and timer
* is increasing.\\0: Do nothing\\1: Force low\\2: Force high\\3: Toggle
*/
uint32_t tzn_a_cbc_u:2;
/** tzn_a_ost_d : R/W; bitpos: [13:12]; default: 0;
* Configures one-shot mode action on PWMn A when fault event occurs and timer is
* decreasing.\\0: Do nothing\\1: Force low\\2: Force high\\3: Toggle
*/
uint32_t tzn_a_ost_d:2;
/** tzn_a_ost_u : R/W; bitpos: [15:14]; default: 0;
* Configures one-shot mode action on PWMn A when fault event occurs and timer is
* increasing.\\0: Do nothing\\1: Force low\\2: Force high\\3: Toggle
*/
uint32_t tzn_a_ost_u:2;
/** tzn_b_cbc_d : R/W; bitpos: [17:16]; default: 0;
* Configures cycle-by-cycle mode action on PWMn B when fault event occurs and timer
* is decreasing.\\0: Do nothing\\1: Force low\\2: Force high\\3: Toggle
*/
uint32_t tzn_b_cbc_d:2;
/** tzn_b_cbc_u : R/W; bitpos: [19:18]; default: 0;
* Configures cycle-by-cycle mode action on PWMn B when fault event occurs and timer
* is increasing.\\0: Do nothing\\1: Force low\\2: Force high\\3: Toggle
*/
uint32_t tzn_b_cbc_u:2;
/** tzn_b_ost_d : R/W; bitpos: [21:20]; default: 0;
* Configures one-shot mode action on PWMn B when fault event occurs and timer is
* decreasing.\\0: Do nothing\\1: Force low\\2: Force high\\3: Toggle
*/
uint32_t tzn_b_ost_d:2;
/** tzn_b_ost_u : R/W; bitpos: [23:22]; default: 0;
* Configures one-shot mode action on PWMn B when fault event occurs and timer is
* increasing.\\0: Do nothing\\1: Force low\\2: Force high\\3: Toggle
*/
uint32_t tzn_b_ost_u:2;
uint32_t reserved_24:8;
};
uint32_t val;
} mcpwm_fhn_cfg0_reg_t;
/** Type of fhn_cfg1 register
* Software triggers for fault handler actions configuration register
*/
typedef union {
struct {
/** tzn_clr_ost : R/W; bitpos: [0]; default: 0;
* Configures the generation of software one-shot mode action clear. A toggle
* (software negate its value) triggers a clear for on going one-shot mode action.
*/
uint32_t tzn_clr_ost:1;
/** tzn_cbcpulse : R/W; bitpos: [2:1]; default: 0;
* Configures the refresh moment selection of cycle-by-cycle mode action.\\0: Select
* nothing, will not refresh\\Bit0 is set to 1: TEZ\\Bit1 is set to 1: TEP
*/
uint32_t tzn_cbcpulse:2;
/** tzn_force_cbc : R/W; bitpos: [3]; default: 0;
* Configures the generation of software cycle-by-cycle mode action. A toggle
* (software negate its value) triggers a cycle-by-cycle mode action.
*/
uint32_t tzn_force_cbc:1;
/** tzn_force_ost : R/W; bitpos: [4]; default: 0;
* Configures the generation of software one-shot mode action. A toggle (software
* negate its value) triggers a one-shot mode action.
*/
uint32_t tzn_force_ost:1;
uint32_t reserved_5:27;
};
uint32_t val;
} mcpwm_fhn_cfg1_reg_t;
/** Type of fault_detect register
* Fault detection configuration and status register
*/
typedef union {
struct {
/** f0_en : R/W; bitpos: [0]; default: 0;
* Configures whether or not to enable event_f0 generation.\\0: Disable\\1: Enable
*/
uint32_t f0_en:1;
/** f1_en : R/W; bitpos: [1]; default: 0;
* Configures whether or not to enable event_f1 generation.\\0: Disable\\1: Enable
*/
uint32_t f1_en:1;
/** f2_en : R/W; bitpos: [2]; default: 0;
* Configures whether or not to enable event_f2 generation.\\0: Disable\\1: Enable
*/
uint32_t f2_en:1;
/** f0_pole : R/W; bitpos: [3]; default: 0;
* Configures event_f0 trigger polarity on FAULT0 source from GPIO matrix.\\0: Level
* low\\1: Level high
*/
uint32_t f0_pole:1;
/** f1_pole : R/W; bitpos: [4]; default: 0;
* Configures event_f1 trigger polarity on FAULT1 source from GPIO matrix.\\0: Level
* low\\1: Level high
*/
uint32_t f1_pole:1;
/** f2_pole : R/W; bitpos: [5]; default: 0;
* Configures event_f2 trigger polarity on FAULT2 source from GPIO matrix.\\0: Level
* low\\1: Level high
*/
uint32_t f2_pole:1;
/** event_f0 : RO; bitpos: [6]; default: 0;
* Represents whether or not an event_f0 is on going.\\0: No action\\1: On going
*/
uint32_t event_f0:1;
/** event_f1 : RO; bitpos: [7]; default: 0;
* Represents whether or not an event_f1 is on going.\\0: No action\\1: On going
*/
uint32_t event_f1:1;
/** event_f2 : RO; bitpos: [8]; default: 0;
* Represents whether or not an event_f2 is on going.\\0: No action\\1: On going
*/
uint32_t event_f2:1;
uint32_t reserved_9:23;
};
uint32_t val;
} mcpwm_fault_detect_reg_t;
/** Type of cap_timer_cfg register
* Capture timer configuration register
*/
typedef union {
struct {
/** cap_timer_en : R/W; bitpos: [0]; default: 0;
* Configures whether or not to enable capture timer increment.\\0: Disable\\1: Enable
*/
uint32_t cap_timer_en:1;
/** cap_synci_en : R/W; bitpos: [1]; default: 0;
* Configures whether or not to enable capture timer sync.\\0: Disable\\1: Enable
*/
uint32_t cap_synci_en:1;
/** cap_synci_sel : R/W; bitpos: [4:2]; default: 0;
* Configures the selection of capture module sync input.\\0: None\\1: Timer0
* sync_out\\2: Timer1 sync_out\\3: Timer2 sync_out\\4: SYNC0 from GPIO matrix\\5:
* SYNC1 from GPIO matrix\\6: SYNC2 from GPIO matrix\\7: None
*/
uint32_t cap_synci_sel:3;
/** cap_sync_sw : WT; bitpos: [5]; default: 0;
* Configures the generation of a capture timer sync when reg_cap_synci_en is 1.\\0:
* Invalid, No effect\\1: Trigger a capture timer sync, capture timer is loaded with
* value in phase register
*/
uint32_t cap_sync_sw:1;
uint32_t reserved_6:26;
};
uint32_t val;
} mcpwm_cap_timer_cfg_reg_t;
/** Type of cap_timer_phase register
* Capture timer sync phase register
*/
typedef union {
struct {
/** cap_phase : R/W; bitpos: [31:0]; default: 0;
* Configures phase value for capture timer sync operation.
*/
uint32_t cap_phase:32;
};
uint32_t val;
} mcpwm_cap_timer_phase_reg_t;
/** Type of cap_chn_cfg register
* Capture channel n configuration register
*/
typedef union {
struct {
/** capn_en : R/W; bitpos: [0]; default: 0;
* Configures whether or not to enable capture on channel n.\\0: Disable\\1: Enable
*/
uint32_t capn_en:1;
/** capn_mode : R/W; bitpos: [2:1]; default: 0;
* Configures which edge of capture on channel n after prescaling is used.\\0:
* None\\Bit0 is set to 1: Rnable capture on the negative edge\\Bit1 is set to 1:
* Enable capture on the positive edge
*/
uint32_t capn_mode:2;
/** capn_prescale : R/W; bitpos: [10:3]; default: 0;
* Configures prescale value on positive edge of CAPn. Prescale value =
* PWM_CAPn_PRESCALE + 1
*/
uint32_t capn_prescale:8;
/** capn_in_invert : R/W; bitpos: [11]; default: 0;
* Configures whether or not to invert CAPn from GPIO matrix before prescale.\\0:
* Normal\\1: Invert
*/
uint32_t capn_in_invert:1;
/** capn_sw : WT; bitpos: [12]; default: 0;
* Configures the generation of software capture.\\0: Invalid, No effect\\1: Trigger a
* software forced capture on channel n
*/
uint32_t capn_sw:1;
uint32_t reserved_13:19;
};
uint32_t val;
} mcpwm_cap_chn_cfg_reg_t;
/** Type of update_cfg register
* Generator Update configuration register
*/
typedef union {
struct {
/** global_up_en : R/W; bitpos: [0]; default: 1;
* Configures whether or not to enable global update for all active registers in MCPWM
* module.\\0: Disable\\1: Enable
*/
uint32_t global_up_en:1;
/** global_force_up : R/W; bitpos: [1]; default: 0;
* Configures the generation of global forced update for all active registers in MCPWM
* module. A toggle (software invert its value) will trigger a global forced update.
* Valid only when MCPWM_GLOBAL_UP_EN and MCPWM_OP0/1/2_UP_EN are both set to 1.
*/
uint32_t global_force_up:1;
/** op0_up_en : R/W; bitpos: [2]; default: 1;
* Configures whether or not to enable update of active registers in PWM operator0.
* Valid only when PWM_GLOBAL_UP_EN is set to 1.\\0: Disable\\1: Enable
*/
uint32_t op0_up_en:1;
/** op0_force_up : R/W; bitpos: [3]; default: 0;
* Configures the generation of forced update for active registers in PWM operator0. A
* toggle (software invert its value) will trigger a forced update. Valid only when
* MCPWM_GLOBAL_UP_EN and MCPWM_OP0_UP_EN are both set to 1.
*/
uint32_t op0_force_up:1;
/** op1_up_en : R/W; bitpos: [4]; default: 1;
* Configures whether or not to enable update of active registers in PWM operator1.
* Valid only when PWM_GLOBAL_UP_EN is set to 1.\\0: Disable\\1: Enable
*/
uint32_t op1_up_en:1;
/** op1_force_up : R/W; bitpos: [5]; default: 0;
* Configures the generation of forced update for active registers in PWM operator1. A
* toggle (software invert its value) will trigger a forced update. Valid only when
* MCPWM_GLOBAL_UP_EN and MCPWM_OP1_UP_EN are both set to 1.
*/
uint32_t op1_force_up:1;
/** op2_up_en : R/W; bitpos: [6]; default: 1;
* Configures whether or not to enable update of active registers in PWM operator2.
* Valid only when PWM_GLOBAL_UP_EN is set to 1.\\0: Disable\\1: Enable
*/
uint32_t op2_up_en:1;
/** op2_force_up : R/W; bitpos: [7]; default: 0;
* Configures the generation of forced update for active registers in PWM operator2. A
* toggle (software invert its value) will trigger a forced update. Valid only when
* MCPWM_GLOBAL_UP_EN and MCPWM_OP2_UP_EN are both set to 1.
*/
uint32_t op2_force_up:1;
uint32_t reserved_8:24;
};
uint32_t val;
} mcpwm_update_cfg_reg_t;
/** Type of evt_en register
* Event enable register
*/
typedef union {
struct {
/** evt_timer0_stop_en : R/W; bitpos: [0]; default: 0;
* Configures whether or not to enable timer0 stop event generate.\\0: Disable\\1:
* Enable
*/
uint32_t evt_timer0_stop_en:1;
/** evt_timer1_stop_en : R/W; bitpos: [1]; default: 0;
* Configures whether or not to enable timer1 stop event generate.\\0: Disable\\1:
* Enable
*/
uint32_t evt_timer1_stop_en:1;
/** evt_timer2_stop_en : R/W; bitpos: [2]; default: 0;
* Configures whether or not to enable timer2 stop event generate.\\0: Disable\\1:
* Enable
*/
uint32_t evt_timer2_stop_en:1;
/** evt_timer0_tez_en : R/W; bitpos: [3]; default: 0;
* Configures whether or not to enable timer0 equal zero event generate.\\0:
* Disable\\1: Enable
*/
uint32_t evt_timer0_tez_en:1;
/** evt_timer1_tez_en : R/W; bitpos: [4]; default: 0;
* Configures whether or not to enable timer1 equal zero event generate.\\0:
* Disable\\1: Enable
*/
uint32_t evt_timer1_tez_en:1;
/** evt_timer2_tez_en : R/W; bitpos: [5]; default: 0;
* Configures whether or not to enable timer2 equal zero event generate.\\0:
* Disable\\1: Enable
*/
uint32_t evt_timer2_tez_en:1;
/** evt_timer0_tep_en : R/W; bitpos: [6]; default: 0;
* Configures whether or not to enable timer0 equal period event generate.\\0:
* Disable\\1: Enable
*/
uint32_t evt_timer0_tep_en:1;
/** evt_timer1_tep_en : R/W; bitpos: [7]; default: 0;
* Configures whether or not to enable timer1 equal period event generate.\\0:
* Disable\\1: Enable
*/
uint32_t evt_timer1_tep_en:1;
/** evt_timer2_tep_en : R/W; bitpos: [8]; default: 0;
* Configures whether or not to enable timer2 equal period event generate.\\0:
* Disable\\1: Enable
*/
uint32_t evt_timer2_tep_en:1;
/** evt_op0_tea_en : R/W; bitpos: [9]; default: 0;
* Configures whether or not to enable PWM generator0 timer equal a event
* generate.\\0: Disable\\1: Enable
*/
uint32_t evt_op0_tea_en:1;
/** evt_op1_tea_en : R/W; bitpos: [10]; default: 0;
* Configures whether or not to enable PWM generator1 timer equal a event
* generate.\\0: Disable\\1: Enable
*/
uint32_t evt_op1_tea_en:1;
/** evt_op2_tea_en : R/W; bitpos: [11]; default: 0;
* Configures whether or not to enable PWM generator2 timer equal a event
* generate.\\0: Disable\\1: Enable
*/
uint32_t evt_op2_tea_en:1;
/** evt_op0_teb_en : R/W; bitpos: [12]; default: 0;
* Configures whether or not to enable PWM generator0 timer equal b event
* generate.\\0: Disable\\1: Enable
*/
uint32_t evt_op0_teb_en:1;
/** evt_op1_teb_en : R/W; bitpos: [13]; default: 0;
* Configures whether or not to enable PWM generator1 timer equal b event
* generate.\\0: Disable\\1: Enable
*/
uint32_t evt_op1_teb_en:1;
/** evt_op2_teb_en : R/W; bitpos: [14]; default: 0;
* Configures whether or not to enable PWM generator2 timer equal b event
* generate.\\0: Disable\\1: Enable
*/
uint32_t evt_op2_teb_en:1;
/** evt_f0_en : R/W; bitpos: [15]; default: 0;
* Configures whether or not to enable fault0 event generate.\\0: Disable\\1: Enable
*/
uint32_t evt_f0_en:1;
/** evt_f1_en : R/W; bitpos: [16]; default: 0;
* Configures whether or not to enable fault1 event generate.\\0: Disable\\1: Enable
*/
uint32_t evt_f1_en:1;
/** evt_f2_en : R/W; bitpos: [17]; default: 0;
* Configures whether or not to enable fault2 event generate.\\0: Disable\\1: Enable
*/
uint32_t evt_f2_en:1;
/** evt_f0_clr_en : R/W; bitpos: [18]; default: 0;
* Configures whether or not to enable fault0 clear event generate.\\0: Disable\\1:
* Enable
*/
uint32_t evt_f0_clr_en:1;
/** evt_f1_clr_en : R/W; bitpos: [19]; default: 0;
* Configures whether or not to enable fault1 clear event generate.\\0: Disable\\1:
* Enable
*/
uint32_t evt_f1_clr_en:1;
/** evt_f2_clr_en : R/W; bitpos: [20]; default: 0;
* Configures whether or not to enable fault2 clear event generate.\\0: Disable\\1:
* Enable
*/
uint32_t evt_f2_clr_en:1;
/** evt_tz0_cbc_en : R/W; bitpos: [21]; default: 0;
* Configures whether or not to enable cycle-by-cycle trip0 event generate.\\0:
* Disable\\1: Enable
*/
uint32_t evt_tz0_cbc_en:1;
/** evt_tz1_cbc_en : R/W; bitpos: [22]; default: 0;
* Configures whether or not to enable cycle-by-cycle trip1 event generate.\\0:
* Disable\\1: Enable
*/
uint32_t evt_tz1_cbc_en:1;
/** evt_tz2_cbc_en : R/W; bitpos: [23]; default: 0;
* Configures whether or not to enable cycle-by-cycle trip2 event generate.\\0:
* Disable\\1: Enable
*/
uint32_t evt_tz2_cbc_en:1;
/** evt_tz0_ost_en : R/W; bitpos: [24]; default: 0;
* Configures whether or not to enable one-shot trip0 event generate.\\0: Disable\\1:
* Enable
*/
uint32_t evt_tz0_ost_en:1;
/** evt_tz1_ost_en : R/W; bitpos: [25]; default: 0;
* Configures whether or not to enable one-shot trip1 event generate.\\0: Disable\\1:
* Enable
*/
uint32_t evt_tz1_ost_en:1;
/** evt_tz2_ost_en : R/W; bitpos: [26]; default: 0;
* Configures whether or not to enable one-shot trip2 event generate.\\0: Disable\\1:
* Enable
*/
uint32_t evt_tz2_ost_en:1;
/** evt_cap0_en : R/W; bitpos: [27]; default: 0;
* Configures whether or not to enable capture0 event generate.\\0: Disable\\1: Enable
*/
uint32_t evt_cap0_en:1;
/** evt_cap1_en : R/W; bitpos: [28]; default: 0;
* Configures whether or not to enable capture1 event generate.\\0: Disable\\1: Enable
*/
uint32_t evt_cap1_en:1;
/** evt_cap2_en : R/W; bitpos: [29]; default: 0;
* Configures whether or not to enable capture2 event generate.\\0: Disable\\1: Enable
*/
uint32_t evt_cap2_en:1;
uint32_t reserved_30:2;
};
uint32_t val;
} mcpwm_evt_en_reg_t;
/** Type of task_en register
* Task enable register
*/
typedef union {
struct {
/** task_cmpr0_a_up_en : R/W; bitpos: [0]; default: 0;
* Configures whether or not to enable PWM generator0 timer stamp A's shadow register
* update task receive.\\0: Disable\\1: Enable
*/
uint32_t task_cmpr0_a_up_en:1;
/** task_cmpr1_a_up_en : R/W; bitpos: [1]; default: 0;
* Configures whether or not to enable PWM generator1 timer stamp A's shadow register
* update task receive.\\0: Disable\\1: Enable
*/
uint32_t task_cmpr1_a_up_en:1;
/** task_cmpr2_a_up_en : R/W; bitpos: [2]; default: 0;
* Configures whether or not to enable PWM generator2 timer stamp A's shadow register
* update task receive.\\0: Disable\\1: Enable
*/
uint32_t task_cmpr2_a_up_en:1;
/** task_cmpr0_b_up_en : R/W; bitpos: [3]; default: 0;
* Configures whether or not to enable PWM generator0 timer stamp B's shadow register
* update task receive.\\0: Disable\\1: Enable
*/
uint32_t task_cmpr0_b_up_en:1;
/** task_cmpr1_b_up_en : R/W; bitpos: [4]; default: 0;
* Configures whether or not to enable PWM generator1 timer stamp B's shadow register
* update task receive.\\0: Disable\\1: Enable
*/
uint32_t task_cmpr1_b_up_en:1;
/** task_cmpr2_b_up_en : R/W; bitpos: [5]; default: 0;
* Configures whether or not to enable PWM generator2 timer stamp B's shadow register
* update task receive.\\0: Disable\\1: Enable
*/
uint32_t task_cmpr2_b_up_en:1;
/** task_gen_stop_en : R/W; bitpos: [6]; default: 0;
* Configures whether or not to enable all PWM generate stop task receive.\\0:
* Disable\\1: Enable
*/
uint32_t task_gen_stop_en:1;
/** task_timer0_sync_en : R/W; bitpos: [7]; default: 0;
* Configures whether or not to enable timer0 sync task receive.\\0: Disable\\1: Enable
*/
uint32_t task_timer0_sync_en:1;
/** task_timer1_sync_en : R/W; bitpos: [8]; default: 0;
* Configures whether or not to enable timer1 sync task receive.\\0: Disable\\1: Enable
*/
uint32_t task_timer1_sync_en:1;
/** task_timer2_sync_en : R/W; bitpos: [9]; default: 0;
* Configures whether or not to enable timer2 sync task receive.\\0: Disable\\1: Enable
*/
uint32_t task_timer2_sync_en:1;
/** task_timer0_period_up_en : R/W; bitpos: [10]; default: 0;
* Configures whether or not to enable timer0 period update task receive.\\0:
* Disable\\1: Enable
*/
uint32_t task_timer0_period_up_en:1;
/** task_timer1_period_up_en : R/W; bitpos: [11]; default: 0;
* Configures whether or not to enable timer1 period update task receive.\\0:
* Disable\\1: Enable
*/
uint32_t task_timer1_period_up_en:1;
/** task_timer2_period_up_en : R/W; bitpos: [12]; default: 0;
* Configures whether or not to enable timer2 period update task receive.\\0:
* Disable\\1: Enable
*/
uint32_t task_timer2_period_up_en:1;
/** task_tz0_ost_en : R/W; bitpos: [13]; default: 0;
* Configures whether or not to enable one shot trip0 task receive.\\0: Disable\\1:
* Enable
*/
uint32_t task_tz0_ost_en:1;
/** task_tz1_ost_en : R/W; bitpos: [14]; default: 0;
* Configures whether or not to enable one shot trip1 task receive.\\0: Disable\\1:
* Enable
*/
uint32_t task_tz1_ost_en:1;
/** task_tz2_ost_en : R/W; bitpos: [15]; default: 0;
* Configures whether or not to enable one shot trip2 task receive.\\0: Disable\\1:
* Enable
*/
uint32_t task_tz2_ost_en:1;
/** task_clr0_ost_en : R/W; bitpos: [16]; default: 0;
* Configures whether or not to enable one shot trip0 clear task receive.\\0:
* Disable\\1: Enable
*/
uint32_t task_clr0_ost_en:1;
/** task_clr1_ost_en : R/W; bitpos: [17]; default: 0;
* Configures whether or not to enable one shot trip1 clear task receive.\\0:
* Disable\\1: Enable
*/
uint32_t task_clr1_ost_en:1;
/** task_clr2_ost_en : R/W; bitpos: [18]; default: 0;
* Configures whether or not to enable one shot trip2 clear task receive.\\0:
* Disable\\1: Enable
*/
uint32_t task_clr2_ost_en:1;
/** task_cap0_en : R/W; bitpos: [19]; default: 0;
* Configures whether or not to enable capture0 task receive.\\0: Disable\\1: Enable
*/
uint32_t task_cap0_en:1;
/** task_cap1_en : R/W; bitpos: [20]; default: 0;
* Configures whether or not to enable capture1 task receive.\\0: Disable\\1: Enable
*/
uint32_t task_cap1_en:1;
/** task_cap2_en : R/W; bitpos: [21]; default: 0;
* Configures whether or not to enable capture2 task receive.\\0: Disable\\1: Enable
*/
uint32_t task_cap2_en:1;
uint32_t reserved_22:10;
};
uint32_t val;
} mcpwm_task_en_reg_t;
/** Type of evt_en2 register
* Event enable register2
*/
typedef union {
struct {
/** evt_op0_tee1_en : R/W; bitpos: [0]; default: 0;
* Configures whether or not to enable PWM generator0 timer equal OP0_TSTMP_E1_REG
* event generate.\\0: Disable\\1: Enable
*/
uint32_t evt_op0_tee1_en:1;
/** evt_op1_tee1_en : R/W; bitpos: [1]; default: 0;
* Configures whether or not to enable PWM generator1 timer equal OP1_TSTMP_E1_REG
* event generate.\\0: Disable\\1: Enable
*/
uint32_t evt_op1_tee1_en:1;
/** evt_op2_tee1_en : R/W; bitpos: [2]; default: 0;
* Configures whether or not to enable PWM generator2 timer equal OP2_TSTMP_E1_REG
* event generate.\\0: Disable\\1: Enable
*/
uint32_t evt_op2_tee1_en:1;
/** evt_op0_tee2_en : R/W; bitpos: [3]; default: 0;
* Configures whether or not to enable PWM generator0 timer equal OP0_TSTMP_E2_REG
* event generate.\\0: Disable\\1: Enable
*/
uint32_t evt_op0_tee2_en:1;
/** evt_op1_tee2_en : R/W; bitpos: [4]; default: 0;
* Configures whether or not to enable PWM generator1 timer equal OP1_TSTMP_E2_REG
* event generate.\\0: Disable\\1: Enable
*/
uint32_t evt_op1_tee2_en:1;
/** evt_op2_tee2_en : R/W; bitpos: [5]; default: 0;
* Configures whether or not to enable PWM generator2 timer equal OP2_TSTMP_E2_REG
* event generate.\\0: Disable\\1: Enable
*/
uint32_t evt_op2_tee2_en:1;
uint32_t reserved_6:26;
};
uint32_t val;
} mcpwm_evt_en2_reg_t;
/** Type of opn_tstmp register
* Generatorn timer stamp value register
*/
typedef union {
struct {
/** opn_tstmp_e : R/W; bitpos: [15:0]; default: 0;
* Configures generatorn timer stamp E1 value register
*/
uint32_t opn_tstmp_e:16;
uint32_t reserved_16:16;
};
uint32_t val;
} mcpwm_opn_tstmp_reg_t;
/** Type of clk register
* Global configuration register
*/
typedef union {
struct {
/** clk_en : R/W; bitpos: [0]; default: 0;
* Configures whether or not to open register clock gate.\\0: Open the clock gate only
* when application writes registers\\1: Force open the clock gate for register
*/
uint32_t clk_en:1;
uint32_t reserved_1:31;
};
uint32_t val;
} mcpwm_clk_reg_t;
/** Group: Status register */
/** Type of timern_status register
* PWM timern status register.
*/
typedef union {
struct {
/** timern_value : RO; bitpos: [15:0]; default: 0;
* Represents current PWM timern counter value.
*/
uint32_t timern_value:16;
/** timern_direction : RO; bitpos: [16]; default: 0;
* Represents current PWM timern counter direction.\\0: Increment\\1: Decrement
*/
uint32_t timern_direction:1;
uint32_t reserved_17:15;
};
uint32_t val;
} mcpwm_timern_status_reg_t;
/** Type of fhn_status register
* Fault events status register
*/
typedef union {
struct {
/** tzn_cbc_on : RO; bitpos: [0]; default: 0;
* Represents whether or not an cycle-by-cycle mode action is on going.\\0:No
* action\\1: On going
*/
uint32_t tzn_cbc_on:1;
/** tzn_ost_on : RO; bitpos: [1]; default: 0;
* Represents whether or not an one-shot mode action is on going.\\0:No action\\1: On
* going
*/
uint32_t tzn_ost_on:1;
uint32_t reserved_2:30;
};
uint32_t val;
} mcpwm_fhn_status_reg_t;
/** Type of cap_chn register
* CAPn capture value register
*/
typedef union {
struct {
/** capn_value : RO; bitpos: [31:0]; default: 0;
* Represents value of last capture on CAPn
*/
uint32_t capn_value:32;
};
uint32_t val;
} mcpwm_cap_chn_reg_t;
/** Type of cap_status register
* Last capture trigger edge information register
*/
typedef union {
struct {
/** cap0_edge : RO; bitpos: [0]; default: 0;
* Represents edge of last capture trigger on channel0.\\0: Posedge\\1: Negedge
*/
uint32_t cap0_edge:1;
/** cap1_edge : RO; bitpos: [1]; default: 0;
* Represents edge of last capture trigger on channel1.\\0: Posedge\\1: Negedge
*/
uint32_t cap1_edge:1;
/** cap2_edge : RO; bitpos: [2]; default: 0;
* Represents edge of last capture trigger on channel2.\\0: Posedge\\1: Negedge
*/
uint32_t cap2_edge:1;
uint32_t reserved_3:29;
};
uint32_t val;
} mcpwm_cap_status_reg_t;
/** Group: Interrupt register */
/** Type of int_ena register
* Interrupt enable register
*/
typedef union {
struct {
/** timer0_stop_int_ena : R/W; bitpos: [0]; default: 0;
* Enable bit: Write 1 to enable the interrupt triggered when the timer 0 stops.
*/
uint32_t timer0_stop_int_ena:1;
/** timer1_stop_int_ena : R/W; bitpos: [1]; default: 0;
* Enable bit: Write 1 to enable the interrupt triggered when the timer 1 stops.
*/
uint32_t timer1_stop_int_ena:1;
/** timer2_stop_int_ena : R/W; bitpos: [2]; default: 0;
* Enable bit: Write 1 to enable the interrupt triggered when the timer 2 stops.
*/
uint32_t timer2_stop_int_ena:1;
/** timer0_tez_int_ena : R/W; bitpos: [3]; default: 0;
* Enable bit: Write 1 to enable the interrupt triggered by a PWM timer 0 TEZ event.
*/
uint32_t timer0_tez_int_ena:1;
/** timer1_tez_int_ena : R/W; bitpos: [4]; default: 0;
* Enable bit: Write 1 to enable the interrupt triggered by a PWM timer 1 TEZ event.
*/
uint32_t timer1_tez_int_ena:1;
/** timer2_tez_int_ena : R/W; bitpos: [5]; default: 0;
* Enable bit: Write 1 to enable the interrupt triggered by a PWM timer 2 TEZ event.
*/
uint32_t timer2_tez_int_ena:1;
/** timer0_tep_int_ena : R/W; bitpos: [6]; default: 0;
* Enable bit: Write 1 to enable the interrupt triggered by a PWM timer 0 TEP event.
*/
uint32_t timer0_tep_int_ena:1;
/** timer1_tep_int_ena : R/W; bitpos: [7]; default: 0;
* Enable bit: Write 1 to enable the interrupt triggered by a PWM timer 1 TEP event.
*/
uint32_t timer1_tep_int_ena:1;
/** timer2_tep_int_ena : R/W; bitpos: [8]; default: 0;
* Enable bit: Write 1 to enable the interrupt triggered by a PWM timer 2 TEP event.
*/
uint32_t timer2_tep_int_ena:1;
/** fault0_int_ena : R/W; bitpos: [9]; default: 0;
* Enable bit: Write 1 to enable the interrupt triggered when event_f0 starts.
*/
uint32_t fault0_int_ena:1;
/** fault1_int_ena : R/W; bitpos: [10]; default: 0;
* Enable bit: Write 1 to enable the interrupt triggered when event_f1 starts.
*/
uint32_t fault1_int_ena:1;
/** fault2_int_ena : R/W; bitpos: [11]; default: 0;
* Enable bit: Write 1 to enable the interrupt triggered when event_f2 starts.
*/
uint32_t fault2_int_ena:1;
/** fault0_clr_int_ena : R/W; bitpos: [12]; default: 0;
* Enable bit: Write 1 to enable the interrupt triggered when event_f0 clears.
*/
uint32_t fault0_clr_int_ena:1;
/** fault1_clr_int_ena : R/W; bitpos: [13]; default: 0;
* Enable bit: Write 1 to enable the interrupt triggered when event_f1 clears.
*/
uint32_t fault1_clr_int_ena:1;
/** fault2_clr_int_ena : R/W; bitpos: [14]; default: 0;
* Enable bit: Write 1 to enable the interrupt triggered when event_f2 clears.
*/
uint32_t fault2_clr_int_ena:1;
/** cmpr0_tea_int_ena : R/W; bitpos: [15]; default: 0;
* Enable bit: Write 1 to enable the interrupt triggered by a PWM operator 0 TEA event.
*/
uint32_t cmpr0_tea_int_ena:1;
/** cmpr1_tea_int_ena : R/W; bitpos: [16]; default: 0;
* Enable bit: Write 1 to enable the interrupt triggered by a PWM operator 1 TEA event.
*/
uint32_t cmpr1_tea_int_ena:1;
/** cmpr2_tea_int_ena : R/W; bitpos: [17]; default: 0;
* Enable bit: Write 1 to enable the interrupt triggered by a PWM operator 2 TEA event.
*/
uint32_t cmpr2_tea_int_ena:1;
/** cmpr0_teb_int_ena : R/W; bitpos: [18]; default: 0;
* Enable bit: Write 1 to enable the interrupt triggered by a PWM operator 0 TEB event.
*/
uint32_t cmpr0_teb_int_ena:1;
/** cmpr1_teb_int_ena : R/W; bitpos: [19]; default: 0;
* Enable bit: Write 1 to enable the interrupt triggered by a PWM operator 1 TEB event.
*/
uint32_t cmpr1_teb_int_ena:1;
/** cmpr2_teb_int_ena : R/W; bitpos: [20]; default: 0;
* Enable bit: Write 1 to enable the interrupt triggered by a PWM operator 2 TEB event.
*/
uint32_t cmpr2_teb_int_ena:1;
/** tz0_cbc_int_ena : R/W; bitpos: [21]; default: 0;
* Enable bit: Write 1 to enable the interrupt triggered by a cycle-by-cycle mode
* action on PWM0.
*/
uint32_t tz0_cbc_int_ena:1;
/** tz1_cbc_int_ena : R/W; bitpos: [22]; default: 0;
* Enable bit: Write 1 to enable the interrupt triggered by a cycle-by-cycle mode
* action on PWM1.
*/
uint32_t tz1_cbc_int_ena:1;
/** tz2_cbc_int_ena : R/W; bitpos: [23]; default: 0;
* Enable bit: Write 1 to enable the interrupt triggered by a cycle-by-cycle mode
* action on PWM2.
*/
uint32_t tz2_cbc_int_ena:1;
/** tz0_ost_int_ena : R/W; bitpos: [24]; default: 0;
* Enable bit: Write 1 to enable the interrupt triggered by a one-shot mode action on
* PWM0.
*/
uint32_t tz0_ost_int_ena:1;
/** tz1_ost_int_ena : R/W; bitpos: [25]; default: 0;
* Enable bit: Write 1 to enable the interrupt triggered by a one-shot mode action on
* PWM1.
*/
uint32_t tz1_ost_int_ena:1;
/** tz2_ost_int_ena : R/W; bitpos: [26]; default: 0;
* Enable bit: Write 1 to enable the interrupt triggered by a one-shot mode action on
* PWM2.
*/
uint32_t tz2_ost_int_ena:1;
/** cap0_int_ena : R/W; bitpos: [27]; default: 0;
* Enable bit: Write 1 to enable the interrupt triggered by capture on CAP0.
*/
uint32_t cap0_int_ena:1;
/** cap1_int_ena : R/W; bitpos: [28]; default: 0;
* Enable bit: Write 1 to enable the interrupt triggered by capture on CAP1.
*/
uint32_t cap1_int_ena:1;
/** cap2_int_ena : R/W; bitpos: [29]; default: 0;
* Enable bit: Write 1 to enable the interrupt triggered by capture on CAP2.
*/
uint32_t cap2_int_ena:1;
uint32_t reserved_30:2;
};
uint32_t val;
} mcpwm_int_ena_reg_t;
/** Type of int_raw register
* Interrupt raw status register
*/
typedef union {
struct {
/** timer0_stop_int_raw : R/WTC/SS; bitpos: [0]; default: 0;
* Raw status bit: The raw interrupt status of the interrupt triggered when the timer
* 0 stops.
*/
uint32_t timer0_stop_int_raw:1;
/** timer1_stop_int_raw : R/WTC/SS; bitpos: [1]; default: 0;
* Raw status bit: The raw interrupt status of the interrupt triggered when the timer
* 1 stops.
*/
uint32_t timer1_stop_int_raw:1;
/** timer2_stop_int_raw : R/WTC/SS; bitpos: [2]; default: 0;
* Raw status bit: The raw interrupt status of the interrupt triggered when the timer
* 2 stops.
*/
uint32_t timer2_stop_int_raw:1;
/** timer0_tez_int_raw : R/WTC/SS; bitpos: [3]; default: 0;
* Raw status bit: The raw interrupt status of the interrupt triggered by a PWM timer
* 0 TEZ event.
*/
uint32_t timer0_tez_int_raw:1;
/** timer1_tez_int_raw : R/WTC/SS; bitpos: [4]; default: 0;
* Raw status bit: The raw interrupt status of the interrupt triggered by a PWM timer
* 1 TEZ event.
*/
uint32_t timer1_tez_int_raw:1;
/** timer2_tez_int_raw : R/WTC/SS; bitpos: [5]; default: 0;
* Raw status bit: The raw interrupt status of the interrupt triggered by a PWM timer
* 2 TEZ event.
*/
uint32_t timer2_tez_int_raw:1;
/** timer0_tep_int_raw : R/WTC/SS; bitpos: [6]; default: 0;
* Raw status bit: The raw interrupt status of the interrupt triggered by a PWM timer
* 0 TEP event.
*/
uint32_t timer0_tep_int_raw:1;
/** timer1_tep_int_raw : R/WTC/SS; bitpos: [7]; default: 0;
* Raw status bit: The raw interrupt status of the interrupt triggered by a PWM timer
* 1 TEP event.
*/
uint32_t timer1_tep_int_raw:1;
/** timer2_tep_int_raw : R/WTC/SS; bitpos: [8]; default: 0;
* Raw status bit: The raw interrupt status of the interrupt triggered by a PWM timer
* 2 TEP event.
*/
uint32_t timer2_tep_int_raw:1;
/** fault0_int_raw : R/WTC/SS; bitpos: [9]; default: 0;
* Raw status bit: The raw interrupt status of the interrupt triggered when event_f0
* starts.
*/
uint32_t fault0_int_raw:1;
/** fault1_int_raw : R/WTC/SS; bitpos: [10]; default: 0;
* Raw status bit: The raw interrupt status of the interrupt triggered when event_f1
* starts.
*/
uint32_t fault1_int_raw:1;
/** fault2_int_raw : R/WTC/SS; bitpos: [11]; default: 0;
* Raw status bit: The raw interrupt status of the interrupt triggered when event_f2
* starts.
*/
uint32_t fault2_int_raw:1;
/** fault0_clr_int_raw : R/WTC/SS; bitpos: [12]; default: 0;
* Raw status bit: The raw interrupt status of the interrupt triggered when event_f0
* clears.
*/
uint32_t fault0_clr_int_raw:1;
/** fault1_clr_int_raw : R/WTC/SS; bitpos: [13]; default: 0;
* Raw status bit: The raw interrupt status of the interrupt triggered when event_f1
* clears.
*/
uint32_t fault1_clr_int_raw:1;
/** fault2_clr_int_raw : R/WTC/SS; bitpos: [14]; default: 0;
* Raw status bit: The raw interrupt status of the interrupt triggered when event_f2
* clears.
*/
uint32_t fault2_clr_int_raw:1;
/** cmpr0_tea_int_raw : R/WTC/SS; bitpos: [15]; default: 0;
* Raw status bit: The raw interrupt status of the interrupt triggered by a PWM
* operator 0 TEA event
*/
uint32_t cmpr0_tea_int_raw:1;
/** cmpr1_tea_int_raw : R/WTC/SS; bitpos: [16]; default: 0;
* Raw status bit: The raw interrupt status of the interrupt triggered by a PWM
* operator 1 TEA event
*/
uint32_t cmpr1_tea_int_raw:1;
/** cmpr2_tea_int_raw : R/WTC/SS; bitpos: [17]; default: 0;
* Raw status bit: The raw interrupt status of the interrupt triggered by a PWM
* operator 2 TEA event
*/
uint32_t cmpr2_tea_int_raw:1;
/** cmpr0_teb_int_raw : R/WTC/SS; bitpos: [18]; default: 0;
* Raw status bit: The raw interrupt status of the interrupt triggered by a PWM
* operator 0 TEB event
*/
uint32_t cmpr0_teb_int_raw:1;
/** cmpr1_teb_int_raw : R/WTC/SS; bitpos: [19]; default: 0;
* Raw status bit: The raw interrupt status of the interrupt triggered by a PWM
* operator 1 TEB event
*/
uint32_t cmpr1_teb_int_raw:1;
/** cmpr2_teb_int_raw : R/WTC/SS; bitpos: [20]; default: 0;
* Raw status bit: The raw interrupt status of the interrupt triggered by a PWM
* operator 2 TEB event
*/
uint32_t cmpr2_teb_int_raw:1;
/** tz0_cbc_int_raw : R/WTC/SS; bitpos: [21]; default: 0;
* Raw status bit: The raw interrupt status of the interrupt triggered by a
* cycle-by-cycle mode action on PWM0.
*/
uint32_t tz0_cbc_int_raw:1;
/** tz1_cbc_int_raw : R/WTC/SS; bitpos: [22]; default: 0;
* Raw status bit: The raw interrupt status of the interrupt triggered by a
* cycle-by-cycle mode action on PWM1.
*/
uint32_t tz1_cbc_int_raw:1;
/** tz2_cbc_int_raw : R/WTC/SS; bitpos: [23]; default: 0;
* Raw status bit: The raw interrupt status of the interrupt triggered by a
* cycle-by-cycle mode action on PWM2.
*/
uint32_t tz2_cbc_int_raw:1;
/** tz0_ost_int_raw : R/WTC/SS; bitpos: [24]; default: 0;
* Raw status bit: The raw interrupt status of the interrupt triggered by a one-shot
* mode action on PWM0.
*/
uint32_t tz0_ost_int_raw:1;
/** tz1_ost_int_raw : R/WTC/SS; bitpos: [25]; default: 0;
* Raw status bit: The raw interrupt status of the interrupt triggered by a one-shot
* mode action on PWM1.
*/
uint32_t tz1_ost_int_raw:1;
/** tz2_ost_int_raw : R/WTC/SS; bitpos: [26]; default: 0;
* Raw status bit: The raw interrupt status of the interrupt triggered by a one-shot
* mode action on PWM2.
*/
uint32_t tz2_ost_int_raw:1;
/** cap0_int_raw : R/WTC/SS; bitpos: [27]; default: 0;
* Raw status bit: The raw interrupt status of the interrupt triggered by capture on
* CAP0.
*/
uint32_t cap0_int_raw:1;
/** cap1_int_raw : R/WTC/SS; bitpos: [28]; default: 0;
* Raw status bit: The raw interrupt status of the interrupt triggered by capture on
* CAP1.
*/
uint32_t cap1_int_raw:1;
/** cap2_int_raw : R/WTC/SS; bitpos: [29]; default: 0;
* Raw status bit: The raw interrupt status of the interrupt triggered by capture on
* CAP2.
*/
uint32_t cap2_int_raw:1;
uint32_t reserved_30:2;
};
uint32_t val;
} mcpwm_int_raw_reg_t;
/** Type of int_st register
* Interrupt masked status register
*/
typedef union {
struct {
/** timer0_stop_int_st : RO; bitpos: [0]; default: 0;
* Masked status bit: The masked interrupt status of the interrupt triggered when the
* timer 0 stops.
*/
uint32_t timer0_stop_int_st:1;
/** timer1_stop_int_st : RO; bitpos: [1]; default: 0;
* Masked status bit: The masked interrupt status of the interrupt triggered when the
* timer 1 stops.
*/
uint32_t timer1_stop_int_st:1;
/** timer2_stop_int_st : RO; bitpos: [2]; default: 0;
* Masked status bit: The masked interrupt status of the interrupt triggered when the
* timer 2 stops.
*/
uint32_t timer2_stop_int_st:1;
/** timer0_tez_int_st : RO; bitpos: [3]; default: 0;
* Masked status bit: The masked interrupt status of the interrupt triggered by a PWM
* timer 0 TEZ event.
*/
uint32_t timer0_tez_int_st:1;
/** timer1_tez_int_st : RO; bitpos: [4]; default: 0;
* Masked status bit: The masked interrupt status of the interrupt triggered by a PWM
* timer 1 TEZ event.
*/
uint32_t timer1_tez_int_st:1;
/** timer2_tez_int_st : RO; bitpos: [5]; default: 0;
* Masked status bit: The masked interrupt status of the interrupt triggered by a PWM
* timer 2 TEZ event.
*/
uint32_t timer2_tez_int_st:1;
/** timer0_tep_int_st : RO; bitpos: [6]; default: 0;
* Masked status bit: The masked interrupt status of the interrupt triggered by a PWM
* timer 0 TEP event.
*/
uint32_t timer0_tep_int_st:1;
/** timer1_tep_int_st : RO; bitpos: [7]; default: 0;
* Masked status bit: The masked interrupt status of the interrupt triggered by a PWM
* timer 1 TEP event.
*/
uint32_t timer1_tep_int_st:1;
/** timer2_tep_int_st : RO; bitpos: [8]; default: 0;
* Masked status bit: The masked interrupt status of the interrupt triggered by a PWM
* timer 2 TEP event.
*/
uint32_t timer2_tep_int_st:1;
/** fault0_int_st : RO; bitpos: [9]; default: 0;
* Masked status bit: The masked interrupt status of the interrupt triggered when
* event_f0 starts.
*/
uint32_t fault0_int_st:1;
/** fault1_int_st : RO; bitpos: [10]; default: 0;
* Masked status bit: The masked interrupt status of the interrupt triggered when
* event_f1 starts.
*/
uint32_t fault1_int_st:1;
/** fault2_int_st : RO; bitpos: [11]; default: 0;
* Masked status bit: The masked interrupt status of the interrupt triggered when
* event_f2 starts.
*/
uint32_t fault2_int_st:1;
/** fault0_clr_int_st : RO; bitpos: [12]; default: 0;
* Masked status bit: The masked interrupt status of the interrupt triggered when
* event_f0 clears.
*/
uint32_t fault0_clr_int_st:1;
/** fault1_clr_int_st : RO; bitpos: [13]; default: 0;
* Masked status bit: The masked interrupt status of the interrupt triggered when
* event_f1 clears.
*/
uint32_t fault1_clr_int_st:1;
/** fault2_clr_int_st : RO; bitpos: [14]; default: 0;
* Masked status bit: The masked interrupt status of the interrupt triggered when
* event_f2 clears.
*/
uint32_t fault2_clr_int_st:1;
/** cmpr0_tea_int_st : RO; bitpos: [15]; default: 0;
* Masked status bit: The masked interrupt status of the interrupt triggered by a PWM
* operator 0 TEA event
*/
uint32_t cmpr0_tea_int_st:1;
/** cmpr1_tea_int_st : RO; bitpos: [16]; default: 0;
* Masked status bit: The masked interrupt status of the interrupt triggered by a PWM
* operator 1 TEA event
*/
uint32_t cmpr1_tea_int_st:1;
/** cmpr2_tea_int_st : RO; bitpos: [17]; default: 0;
* Masked status bit: The masked interrupt status of the interrupt triggered by a PWM
* operator 2 TEA event
*/
uint32_t cmpr2_tea_int_st:1;
/** cmpr0_teb_int_st : RO; bitpos: [18]; default: 0;
* Masked status bit: The masked interrupt status of the interrupt triggered by a PWM
* operator 0 TEB event
*/
uint32_t cmpr0_teb_int_st:1;
/** cmpr1_teb_int_st : RO; bitpos: [19]; default: 0;
* Masked status bit: The masked interrupt status of the interrupt triggered by a PWM
* operator 1 TEB event
*/
uint32_t cmpr1_teb_int_st:1;
/** cmpr2_teb_int_st : RO; bitpos: [20]; default: 0;
* Masked status bit: The masked interrupt status of the interrupt triggered by a PWM
* operator 2 TEB event
*/
uint32_t cmpr2_teb_int_st:1;
/** tz0_cbc_int_st : RO; bitpos: [21]; default: 0;
* Masked status bit: The masked interrupt status of the interrupt triggered by a
* cycle-by-cycle mode action on PWM0.
*/
uint32_t tz0_cbc_int_st:1;
/** tz1_cbc_int_st : RO; bitpos: [22]; default: 0;
* Masked status bit: The masked interrupt status of the interrupt triggered by a
* cycle-by-cycle mode action on PWM1.
*/
uint32_t tz1_cbc_int_st:1;
/** tz2_cbc_int_st : RO; bitpos: [23]; default: 0;
* Masked status bit: The masked interrupt status of the interrupt triggered by a
* cycle-by-cycle mode action on PWM2.
*/
uint32_t tz2_cbc_int_st:1;
/** tz0_ost_int_st : RO; bitpos: [24]; default: 0;
* Masked status bit: The masked interrupt status of the interrupt triggered by a
* one-shot mode action on PWM0.
*/
uint32_t tz0_ost_int_st:1;
/** tz1_ost_int_st : RO; bitpos: [25]; default: 0;
* Masked status bit: The masked interrupt status of the interrupt triggered by a
* one-shot mode action on PWM1.
*/
uint32_t tz1_ost_int_st:1;
/** tz2_ost_int_st : RO; bitpos: [26]; default: 0;
* Masked status bit: The masked interrupt status of the interrupt triggered by a
* one-shot mode action on PWM2.
*/
uint32_t tz2_ost_int_st:1;
/** cap0_int_st : RO; bitpos: [27]; default: 0;
* Masked status bit: The masked interrupt status of the interrupt triggered by
* capture on CAP0.
*/
uint32_t cap0_int_st:1;
/** cap1_int_st : RO; bitpos: [28]; default: 0;
* Masked status bit: The masked interrupt status of the interrupt triggered by
* capture on CAP1.
*/
uint32_t cap1_int_st:1;
/** cap2_int_st : RO; bitpos: [29]; default: 0;
* Masked status bit: The masked interrupt status of the interrupt triggered by
* capture on CAP2.
*/
uint32_t cap2_int_st:1;
uint32_t reserved_30:2;
};
uint32_t val;
} mcpwm_int_st_reg_t;
/** Type of int_clr register
* Interrupt clear register
*/
typedef union {
struct {
/** timer0_stop_int_clr : WT; bitpos: [0]; default: 0;
* Clear bit: Write 1 to clear the interrupt triggered when the timer 0 stops.
*/
uint32_t timer0_stop_int_clr:1;
/** timer1_stop_int_clr : WT; bitpos: [1]; default: 0;
* Clear bit: Write 1 to clear the interrupt triggered when the timer 1 stops.
*/
uint32_t timer1_stop_int_clr:1;
/** timer2_stop_int_clr : WT; bitpos: [2]; default: 0;
* Clear bit: Write 1 to clear the interrupt triggered when the timer 2 stops.
*/
uint32_t timer2_stop_int_clr:1;
/** timer0_tez_int_clr : WT; bitpos: [3]; default: 0;
* Clear bit: Write 1 to clear the interrupt triggered by a PWM timer 0 TEZ event.
*/
uint32_t timer0_tez_int_clr:1;
/** timer1_tez_int_clr : WT; bitpos: [4]; default: 0;
* Clear bit: Write 1 to clear the interrupt triggered by a PWM timer 1 TEZ event.
*/
uint32_t timer1_tez_int_clr:1;
/** timer2_tez_int_clr : WT; bitpos: [5]; default: 0;
* Clear bit: Write 1 to clear the interrupt triggered by a PWM timer 2 TEZ event.
*/
uint32_t timer2_tez_int_clr:1;
/** timer0_tep_int_clr : WT; bitpos: [6]; default: 0;
* Clear bit: Write 1 to clear the interrupt triggered by a PWM timer 0 TEP event.
*/
uint32_t timer0_tep_int_clr:1;
/** timer1_tep_int_clr : WT; bitpos: [7]; default: 0;
* Clear bit: Write 1 to clear the interrupt triggered by a PWM timer 1 TEP event.
*/
uint32_t timer1_tep_int_clr:1;
/** timer2_tep_int_clr : WT; bitpos: [8]; default: 0;
* Clear bit: Write 1 to clear the interrupt triggered by a PWM timer 2 TEP event.
*/
uint32_t timer2_tep_int_clr:1;
/** fault0_int_clr : WT; bitpos: [9]; default: 0;
* Clear bit: Write 1 to clear the interrupt triggered when event_f0 starts.
*/
uint32_t fault0_int_clr:1;
/** fault1_int_clr : WT; bitpos: [10]; default: 0;
* Clear bit: Write 1 to clear the interrupt triggered when event_f1 starts.
*/
uint32_t fault1_int_clr:1;
/** fault2_int_clr : WT; bitpos: [11]; default: 0;
* Clear bit: Write 1 to clear the interrupt triggered when event_f2 starts.
*/
uint32_t fault2_int_clr:1;
/** fault0_clr_int_clr : WT; bitpos: [12]; default: 0;
* Clear bit: Write 1 to clear the interrupt triggered when event_f0 clears.
*/
uint32_t fault0_clr_int_clr:1;
/** fault1_clr_int_clr : WT; bitpos: [13]; default: 0;
* Clear bit: Write 1 to clear the interrupt triggered when event_f1 clears.
*/
uint32_t fault1_clr_int_clr:1;
/** fault2_clr_int_clr : WT; bitpos: [14]; default: 0;
* Clear bit: Write 1 to clear the interrupt triggered when event_f2 clears.
*/
uint32_t fault2_clr_int_clr:1;
/** cmpr0_tea_int_clr : WT; bitpos: [15]; default: 0;
* Clear bit: Write 1 to clear the interrupt triggered by a PWM operator 0 TEA event
*/
uint32_t cmpr0_tea_int_clr:1;
/** cmpr1_tea_int_clr : WT; bitpos: [16]; default: 0;
* Clear bit: Write 1 to clear the interrupt triggered by a PWM operator 1 TEA event
*/
uint32_t cmpr1_tea_int_clr:1;
/** cmpr2_tea_int_clr : WT; bitpos: [17]; default: 0;
* Clear bit: Write 1 to clear the interrupt triggered by a PWM operator 2 TEA event
*/
uint32_t cmpr2_tea_int_clr:1;
/** cmpr0_teb_int_clr : WT; bitpos: [18]; default: 0;
* Clear bit: Write 1 to clear the interrupt triggered by a PWM operator 0 TEB event
*/
uint32_t cmpr0_teb_int_clr:1;
/** cmpr1_teb_int_clr : WT; bitpos: [19]; default: 0;
* Clear bit: Write 1 to clear the interrupt triggered by a PWM operator 1 TEB event
*/
uint32_t cmpr1_teb_int_clr:1;
/** cmpr2_teb_int_clr : WT; bitpos: [20]; default: 0;
* Clear bit: Write 1 to clear the interrupt triggered by a PWM operator 2 TEB event
*/
uint32_t cmpr2_teb_int_clr:1;
/** tz0_cbc_int_clr : WT; bitpos: [21]; default: 0;
* Clear bit: Write 1 to clear the interrupt triggered by a cycle-by-cycle mode action
* on PWM0.
*/
uint32_t tz0_cbc_int_clr:1;
/** tz1_cbc_int_clr : WT; bitpos: [22]; default: 0;
* Clear bit: Write 1 to clear the interrupt triggered by a cycle-by-cycle mode action
* on PWM1.
*/
uint32_t tz1_cbc_int_clr:1;
/** tz2_cbc_int_clr : WT; bitpos: [23]; default: 0;
* Clear bit: Write 1 to clear the interrupt triggered by a cycle-by-cycle mode action
* on PWM2.
*/
uint32_t tz2_cbc_int_clr:1;
/** tz0_ost_int_clr : WT; bitpos: [24]; default: 0;
* Clear bit: Write 1 to clear the interrupt triggered by a one-shot mode action on
* PWM0.
*/
uint32_t tz0_ost_int_clr:1;
/** tz1_ost_int_clr : WT; bitpos: [25]; default: 0;
* Clear bit: Write 1 to clear the interrupt triggered by a one-shot mode action on
* PWM1.
*/
uint32_t tz1_ost_int_clr:1;
/** tz2_ost_int_clr : WT; bitpos: [26]; default: 0;
* Clear bit: Write 1 to clear the interrupt triggered by a one-shot mode action on
* PWM2.
*/
uint32_t tz2_ost_int_clr:1;
/** cap0_int_clr : WT; bitpos: [27]; default: 0;
* Clear bit: Write 1 to clear the interrupt triggered by capture on CAP0.
*/
uint32_t cap0_int_clr:1;
/** cap1_int_clr : WT; bitpos: [28]; default: 0;
* Clear bit: Write 1 to clear the interrupt triggered by capture on CAP1.
*/
uint32_t cap1_int_clr:1;
/** cap2_int_clr : WT; bitpos: [29]; default: 0;
* Clear bit: Write 1 to clear the interrupt triggered by capture on CAP2.
*/
uint32_t cap2_int_clr:1;
uint32_t reserved_30:2;
};
uint32_t val;
} mcpwm_int_clr_reg_t;
/** Group: Version register */
/** Type of version register
* Version register.
*/
typedef union {
struct {
/** date : R/W; bitpos: [27:0]; default: 35725968;
* Configures the version.
*/
uint32_t date:28;
uint32_t reserved_28:4;
};
uint32_t val;
} mcpwm_version_reg_t;
typedef struct {
volatile mcpwm_timern_cfg0_reg_t timer_cfg0;
volatile mcpwm_timern_cfg1_reg_t timer_cfg1;
volatile mcpwm_timern_sync_reg_t timer_sync;
volatile mcpwm_timern_status_reg_t timer_status;
} mcpwm_timer_regs_t;
typedef struct {
volatile mcpwm_genn_stmp_cfg_reg_t gen_stmp_cfg;
volatile mcpwm_genn_tstmp_reg_t timestamp[2];
volatile mcpwm_genn_cfg0_reg_t gen_cfg0;
volatile mcpwm_genn_force_reg_t gen_force;
volatile mcpwm_genn_reg_t generator[2];
volatile mcpwm_dtn_cfg_reg_t dt_cfg;
volatile mcpwm_dtn_fed_cfg_reg_t dt_fed_cfg;
volatile mcpwm_dtn_red_cfg_reg_t dt_red_cfg;
volatile mcpwm_carriern_cfg_reg_t carrier_cfg;
volatile mcpwm_fhn_cfg0_reg_t fh_cfg0;
volatile mcpwm_fhn_cfg1_reg_t fh_cfg1;
volatile mcpwm_fhn_status_reg_t fh_status;
} mcpwm_operator_reg_t;
typedef struct {
volatile mcpwm_opn_tstmp_reg_t timestamp[2];
} mcpwm_operator_tstmp_reg_t;
typedef struct mcpwm_dev_t {
volatile mcpwm_clk_cfg_reg_t clk_cfg;
volatile mcpwm_timer_regs_t timer[3];
volatile mcpwm_timer_synci_cfg_reg_t timer_synci_cfg;
volatile mcpwm_operator_timersel_reg_t operator_timersel;
volatile mcpwm_operator_reg_t operators[3];
volatile mcpwm_fault_detect_reg_t fault_detect;
volatile mcpwm_cap_timer_cfg_reg_t cap_timer_cfg;
volatile mcpwm_cap_timer_phase_reg_t cap_timer_phase;
volatile mcpwm_cap_chn_cfg_reg_t cap_chn_cfg[3];
volatile mcpwm_cap_chn_reg_t cap_chn[3];
volatile mcpwm_cap_status_reg_t cap_status;
volatile mcpwm_update_cfg_reg_t update_cfg;
volatile mcpwm_int_ena_reg_t int_ena;
volatile mcpwm_int_raw_reg_t int_raw;
volatile mcpwm_int_st_reg_t int_st;
volatile mcpwm_int_clr_reg_t int_clr;
volatile mcpwm_evt_en_reg_t evt_en;
volatile mcpwm_task_en_reg_t task_en;
volatile mcpwm_evt_en2_reg_t evt_en2;
volatile mcpwm_operator_tstmp_reg_t operators_timestamp[3];
volatile mcpwm_clk_reg_t clk;
volatile mcpwm_version_reg_t version;
} mcpwm_dev_t;
extern mcpwm_dev_t MCPWM0;
#ifndef __cplusplus
_Static_assert(sizeof(mcpwm_dev_t) == 0x14c, "Invalid size of mcpwm_dev_t structure");
#endif
#ifdef __cplusplus
}
#endif
```
|
```javascript
Get a random item from an Array
Setting default values with `short circuiting`
Performing a function at timed intervals
Check if a function exists
How to merge two arrays
```
|
is the Internet country code top-level domain (ccTLD) reserved for the designation Svalbard and Jan Mayen. The domain name registry is Norid, but is not open for registration. The issuing of the domain was based on the ISO 3166 designation of Svalbard and Jan Mayen, which consists of two separately administrated integrated territories of Norway: the Arctic archipelago Svalbard and the nearly uninhabited volcanic island Jan Mayen. was designated on 21 August 1997, at the same time as Bouvet Island was allocated . Both were placed under the registry Norid, which is also the sponsor. Norwegian policy states that is sufficient for those institutions connected to both Svalbard and Jan Mayen, and therefore the domain is not open to registration. It is Norwegian policy not to commercialize domain resources, so there are no plans to sell . Should the domain later come into use, it will be under regulation of the Norwegian Communications Authority and follow the same policy as . There are two second-level domains reserved for the two areas: and , but other web addresses are also used.
History
Svalbard and Jan Mayen are two integrated territories of Norway with special status (unincorporated area). The Svalbard Treaty grants Norway full sovereignty of Svalbard, but the archipelago holds special status as among other things a free economic zone and is not part of the European Economic Area and the Schengen Area. Jan Mayen is a nearly unpopulated volcanic island in the Atlantic Ocean and is a fully integrated part of Norway. During the establishment of the ISO 3166 codes, it was proposed that Svalbard have its own code, but the Norwegian authorities chose to also include Jan Mayen in the area, partly because Jan Mayen was administered by the Governor of Svalbard until 1994. Following the ISO codes, was allocated on 21 August 1997, at the same time was allocated.
In June 2015, Norwegian computer scientist Håkon Wium Lie and the Socialist Left Party proposed using the domain, along with , as online free havens. The proposal aims at protecting both the Norwegian authorities and foreign dissidents from surveillance.
Policy
Management of lies with the Trondheim-based Norid, which is also the domain name registry for and the unused . Norid is a limited company owned by Uninett, which is again owned by the Norwegian Ministry of Education and Research. The legal right to manage the domains is two-fold, based both on an agreement with the Internet Assigned Numbers Authority (IANA) and regulations under the Telecommunication Act which is supervised by the Lillesand-based Norwegian Post and Telecommunications Authority.
The policy for use of is regulated by the Regulation Concerning Domain Names Under Norwegian Country Code Top-level Domains, also known as the Domain Regulation. This regulation also regulates Norway's other two ccTLDs, and . Should later come unto use, the same rules and procedures currently regarding would be used for . The domain remains reserved for potential future use. Sale of the two unused ccTLDs has not been an item to consider for policymakers, as commercialization of the domain resources is in direct contradiction to Norwegian policy.
References
Bibliography
Country code top-level domains
Council of European National Top Level Domain Registries members
Communications in Svalbard
Jan Mayen
1997 establishments in Norway
|
```objective-c
/* Sort.h -- Sort functions
2014-04-05 : Igor Pavlov : Public domain */
#ifndef __7Z_SORT_H
#define __7Z_SORT_H
#include "7zTypes.h"
EXTERN_C_BEGIN
void HeapSort(UInt32 *p, size_t size);
void HeapSort64(UInt64 *p, size_t size);
/* void HeapSortRef(UInt32 *p, UInt32 *vals, size_t size); */
EXTERN_C_END
#endif
```
|
Tamarind Farm Correctional Centre has accommodated over 275 male inmates on occasions.
It is operated by the Department of Correctional Services for the Ministry of National Security.
See also
List of prisons in Jamaica
External links
Aerial view.
Photos:
References
Prisons in Jamaica
Buildings and structures in Saint Catherine Parish
Spanish Town
|
The (lit. San Juan Senators) was a professional baseball team based in San Juan, Puerto Rico.
The Senadores club was founded in 1938 and played intermittently in the Liga de Béisbol Profesional de Puerto Rico, the predecessor to the current Liga de Béisbol Profesional Roberto Clemente.
For the 1984–1985 season, they were rechristened as the Metros de San Juan, a name that they conserved until the 1993–1994 tournament. The team was sold in 2004 and subsequently relocated to Arecibo. In 2010 they returned to San Juan.
The franchise won eight league titles in its storied history, and also claimed the 1995 Caribbean Series championship, with an undefeated record of 6–0, under manager Luis Meléndez.
The Senadores de San Juan were expelled for the 2011-12 season, but have since continued to play.
1995 Dream Team
In 1995, the Senadores de San Juan assembled one of the strongest teams in the history of the Caribbean Series. The group, which was dubbed Dream Team, featured Major League Baseball players in most positions, counting with a lineup that included:
Roberto Alomar
Carlos Baerga
Ricky Bones
Carlos Delgado
Juan González
Roberto Hernández
Carmelo Martínez
Edgar Martínez
Rey Sánchez
Rubén Sierra
Bernie Williams
See also
Lobos de Arecibo
Senadores de San Juan players
Sources
External links
1938 establishments in Puerto Rico
Baseball teams established in 1938
Defunct baseball teams in Puerto Rico
Liga de Béisbol Profesional Roberto Clemente
Professional baseball teams in Puerto Rico
Sports in San Juan, Puerto Rico
|
```javascript
Http Server in **Node**
Global Objects and Environment Variables in **Node**
First-error callbacks in **Node**
Node Inspector
Automatic compilation for Node with **Nodemon**
```
|
```html
<html>
<head>
<title>Tremor - Build</title>
<link rel=stylesheet href="style.css" type="text/css">
</head>
<body bgcolor=white text=black link="#5555ff" alink="#5555ff" vlink="#5555ff">
<table border=0 width=100%>
<tr>
<td><p class=tiny>Tremor documentation</p></td>
<td align=right><p class=tiny>Tremor version 1.0 - 20020403</p></td>
</tr>
</table>
<h1>Tremor: Building libvorbisidec</h1>
<p>
The C source in the Tremor package will build on any ANSI C compiler
and function completely and properly on any platform. The included
build system assumes GNU build system and make tools (m4, automake,
autoconf, libtool and gmake). GCC is not required, although GCC is
the most tested compiler. To build using GNU tools, type in the
source directory:
<p>
<pre><tt>
./autogen.sh
gmake
</tt></pre>
<p>
or if GNU make is the standard make on the build system:
<pre><tt>
./autogen.sh
make
</tt></pre>
<p>
Currently, the source implements playback in pure C on all platforms
except ARM, where a [currently] small amount of assembly (see the file
asm_arm.h) is used to implement 64 bit math operations and
fast LSP computation. If building on ARM without the benefit of GNU
build system tools, be sure that <tt>_ARM_ASSEM_</tt> is #defined by
the build system if this assembly is desired, else the resulting
library will use whatever 64 bit math builtins the compiler
implements.
<p>
No math library is required by this source. No floating point
operations are used at any point in either setup or decode. This
decoder library will properly decode any past, current or future
Vorbis I file or stream.
<p>
The GNU build system produces static and, when supported by the OS,
dynamic libraries named 'libvorbisidec'. This library exposes an API
nearly identical to the BSD reference library's 'libvorbisfile',
including all the features familiar to users of vorbisfile. This API
is similar enough that the proper header file to include is named
'ivorbisfile.h', included in the source build directory.
Lower level libvorbis-style headers and structures are
in 'ivorbiscodec.h', also included in the source build directory. A
simple example program, ivorbisfile_example.c, can be built with 'make
ivorbisfile_example'.
<p>
(We've summarized <a href="diff.html">differences between the free,
reference vorbisfile library and Tremor's libvorbisidec in a separate
document</a>.)
<h3>Notes</h3>
<p>Tremor requires a native 64 bit integer type to compile and
function; The GNU build system will locate and typedef
<tt>ogg_int64_t</tt> to the appropriate native type. If not using the
GNU build tools, you will need to define <tt>ogg_int64_t</tt> as a
64-bit type inside your system's project file/Makefile, etc. On win32,
for example, this should be defined as <tt>__int64</tt>.
<p>
<br><br>
<hr noshade>
<table border=0 width=100%>
<tr valign=top>
<td><p class=tiny>copyright © 2002 Xiph.org</p></td>
<td align=right><p class=tiny><a href="path_to_url">Ogg Vorbis</a></p></td>
</tr><tr>
<td><p class=tiny>Tremor documentation</p></td>
<td align=right><p class=tiny>Tremor version 1.0 - 20020403</p></td>
</tr>
</table>
</body>
</html>
```
|
Matilda Vanderpoel (1862-1950) was an American painter. She was known for her landscapes and portraits.
Biography
Vanderpoel was born on April 20, 1862, in Haarlemmermeer, The Netherlands. She attended the School of the Art Institute of Chicago where she was taught by her brother John Vanderpoel. She graduated in 1891.
Vanderpoel exhibited her work at the Illinois Building at the 1893 World's Columbian Exposition in Chicago, Illinois.
In 1898 Vanderpoel accepted a position teaching art at the Colorado Chautauqua in Boulder, Colorado. She spent her summers in the town of Gold Hill, Colorado, for several decades.
In 1909 she began teaching at the School of the Art Institute of Chicago, where her brother John was serving as director. One of her student at the Art Institute was Georgia O'Keeffe Also in 1909 she established, with her friend, the artist Jean Sherwood, the "Holiday House Association" in Boulder, to "conserve the health of tired working women". First they built a dwelling called the Blue Bird Cottage near the site of the Colorado Chautauqua. In 1921 they expanded into the town of Gold Hill where they converted an hotel into the Blue Bird Lodge. The Blue Bird Lodge served as a vacation spot for Chicago's working-class women, providing a respite from the city. The lodge was sold in 1962 by the Holiday House Association, but the building continues to function as an hotel.
In 1923 Vanderpoel and other members of her family bought their own cabin in Gold Hill named "Sunset View". The same year her painting "Morning in the Rockies" was exhibited at the Art Institute of Chicago.
She died on October 21, 1950, in Chicago.
References
19th-century American painters
19th-century American women artists
20th-century American painters
20th-century American women artists
1862 births
1950 deaths
American women painters
American art educators
Painters from Chicago
Dutch emigrants to the United States
People from Haarlemmermeer
School of the Art Institute of Chicago alumni
Matilda
|
```javascript
/**
* @license Apache-2.0
*
*
*
* path_to_url
*
* Unless required by applicable law or agreed to in writing, software
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/
'use strict';
// MODULES //
var tape = require( 'tape' );
var floor = require( '@stdlib/math/base/special/floor' );
var isnan = require( '@stdlib/math/base/assert/is-nan' );
var Float32Array = require( '@stdlib/array/float32' );
var dsmeanwd = require( './../lib/ndarray.js' );
// TESTS //
tape( 'main export is a function', function test( t ) {
t.ok( true, __filename );
t.strictEqual( typeof dsmeanwd, 'function', 'main export is a function' );
t.end();
});
tape( 'the function has an arity of 4', function test( t ) {
t.strictEqual( dsmeanwd.length, 4, 'has expected arity' );
t.end();
});
tape( 'the function calculates the arithmetic mean of a strided array', function test( t ) {
var x;
var v;
x = new Float32Array( [ 1.0, -2.0, -4.0, 5.0, 0.0, 3.0 ] );
v = dsmeanwd( x.length, x, 1, 0 );
t.strictEqual( v, 0.5, 'returns expected value' );
x = new Float32Array( [ -4.0, -4.0 ] );
v = dsmeanwd( x.length, x, 1, 0 );
t.strictEqual( v, -4.0, 'returns expected value' );
x = new Float32Array( [ -4.0, NaN ] );
v = dsmeanwd( x.length, x, 1, 0 );
t.strictEqual( isnan( v ), true, 'returns expected value' );
t.end();
});
tape( 'if provided an `N` parameter less than or equal to `0`, the function returns `NaN`', function test( t ) {
var x;
var v;
x = new Float32Array( [ 1.0, -2.0, -4.0, 5.0, 3.0 ] );
v = dsmeanwd( 0, x, 1, 0 );
t.strictEqual( isnan( v ), true, 'returns expected value' );
v = dsmeanwd( -1, x, 1, 0 );
t.strictEqual( isnan( v ), true, 'returns expected value' );
t.end();
});
tape( 'if provided an `N` parameter equal to `1`, the function returns the first indexed element', function test( t ) {
var x;
var v;
x = new Float32Array( [ 1.0, -2.0, -4.0, 5.0, 3.0 ] );
v = dsmeanwd( 1, x, 1, 0 );
t.strictEqual( v, 1.0, 'returns expected value' );
t.end();
});
tape( 'the function supports a `stride` parameter', function test( t ) {
var N;
var x;
var v;
x = new Float32Array([
1.0, // 0
2.0,
2.0, // 1
-7.0,
-2.0, // 2
3.0,
4.0, // 3
2.0
]);
N = floor( x.length / 2 );
v = dsmeanwd( N, x, 2, 0 );
t.strictEqual( v, 1.25, 'returns expected value' );
t.end();
});
tape( 'the function supports a negative `stride` parameter', function test( t ) {
var N;
var x;
var v;
x = new Float32Array([
1.0, // 3
2.0,
2.0, // 2
-7.0,
-2.0, // 1
3.0,
4.0, // 0
2.0
]);
N = floor( x.length / 2 );
v = dsmeanwd( N, x, -2, 6 );
t.strictEqual( v, 1.25, 'returns expected value' );
t.end();
});
tape( 'if provided a `stride` parameter equal to `0`, the function returns the first indexed element', function test( t ) {
var x;
var v;
x = new Float32Array( [ 1.0, -2.0, -4.0, 5.0, 3.0 ] );
v = dsmeanwd( x.length, x, 0, 0 );
t.strictEqual( v, 1.0, 'returns expected value' );
t.end();
});
tape( 'the function supports an `offset` parameter', function test( t ) {
var N;
var x;
var v;
x = new Float32Array([
2.0,
1.0, // 0
2.0,
-2.0, // 1
-2.0,
2.0, // 2
3.0,
4.0 // 3
]);
N = floor( x.length / 2 );
v = dsmeanwd( N, x, 2, 1 );
t.strictEqual( v, 1.25, 'returns expected value' );
t.end();
});
```
|
```java
/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
*
* Subject to the condition set forth below, permission is hereby granted to any
* person obtaining a copy of this software, associated documentation and/or
* data (collectively the "Software"), free of charge and under any and all
* copyright rights in the Software, and any and all patent rights owned or
* freely licensable by each licensor hereunder covering either (i) the
* unmodified Software as contributed to or provided by such licensor, or (ii)
* the Larger Works (as defined below), to deal in both
*
* (a) the Software, and
*
* (b) any piece of software and/or hardware listed in the lrgrwrks.txt file if
* one is included with the Software each a "Larger Work" to which the Software
* is contributed by such licensors),
*
* without restriction, including without limitation the rights to copy, create
* derivative works of, display, perform, and distribute the Software and make,
* use, sell, offer for sale, import, export, have made, and have sold the
* Software and the Larger Work(s), and to sublicense the foregoing rights on
* either these or other terms.
*
* This license is subject to the following condition:
*
* The above copyright notice and either this complete permission notice or at a
* minimum a reference to the UPL must be included in all copies or substantial
* portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
package com.oracle.truffle.api.test.host;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.Future;
import java.util.concurrent.atomic.AtomicInteger;
import org.graalvm.polyglot.Context;
import org.graalvm.polyglot.Engine;
import org.graalvm.polyglot.HostAccess;
import org.graalvm.polyglot.Source;
import org.graalvm.polyglot.Value;
import org.junit.Assert;
import org.junit.BeforeClass;
import org.junit.Test;
import com.oracle.truffle.api.CallTarget;
import com.oracle.truffle.api.CompilerDirectives;
import com.oracle.truffle.api.interop.ArityException;
import com.oracle.truffle.api.interop.InteropLibrary;
import com.oracle.truffle.api.interop.TruffleObject;
import com.oracle.truffle.api.interop.UnknownIdentifierException;
import com.oracle.truffle.api.interop.UnsupportedMessageException;
import com.oracle.truffle.api.interop.UnsupportedTypeException;
import com.oracle.truffle.api.library.ExportLibrary;
import com.oracle.truffle.api.library.ExportMessage;
import com.oracle.truffle.api.nodes.RootNode;
import com.oracle.truffle.api.test.polyglot.ProxyLanguage;
import com.oracle.truffle.tck.tests.TruffleTestAssumptions;
public class GR36225 {
@BeforeClass
public static void runWithWeakEncapsulationOnly() {
TruffleTestAssumptions.assumeWeakEncapsulation();
}
public static class Counter {
final AtomicInteger counter;
public Counter() {
this.counter = new AtomicInteger(0);
}
@HostAccess.Export
public void increment() {
counter.incrementAndGet();
}
}
@Test
public void testSharedGuestToHostCodeCache() throws Exception {
Counter counter = new Counter();
ExecutorService executorService = Executors.newFixedThreadPool(10);
try (Engine engine = Engine.newBuilder().build()) {
ProxyLanguage.setDelegate(new ProxyLanguage() {
@Override
protected CallTarget parse(ParsingRequest request) throws Exception {
return RootNode.createConstantNode(new InvokeMember()).getCallTarget();
}
});
List<Future<String>> futures = new ArrayList<>();
for (int i = 0; i < 10; i++) {
futures.add(executorService.submit(() -> {
try (Context context = Context.newBuilder().engine(engine).build()) {
Source source = Source.create(ProxyLanguage.ID, "");
Value fn = context.eval(source);
fn.execute(counter, "increment");
}
return "x";
}));
}
for (Future<String> future : futures) {
future.get();
}
} finally {
ProxyLanguage.setDelegate(new ProxyLanguage());
}
Assert.assertEquals(10, counter.counter.get());
}
@ExportLibrary(InteropLibrary.class)
static final class InvokeMember implements TruffleObject {
InvokeMember() {
}
@SuppressWarnings("static-method")
@ExportMessage
boolean isExecutable() {
return true;
}
@SuppressWarnings("static-method")
@ExportMessage
Object execute(Object[] args) {
try {
return InteropLibrary.getUncached().invokeMember(args[0], InteropLibrary.getUncached().asString(args[1]));
} catch (UnsupportedMessageException | ArityException | UnknownIdentifierException | UnsupportedTypeException e) {
throw CompilerDirectives.shouldNotReachHere(e);
}
}
}
}
```
|
Galactic Zoo Dossier is the debut studio album by British rock band Kingdom Come, known as Arthur Brown's Kingdom Come in North America. The album is a departure from the sound of lead singer Arthur Brown's previous band, The Crazy World of Arthur Brown, encompassing acid rock, progressive rock and jazz rock.
The majority of the album was recorded at Rockfield Studios and released in 1971 by Polydor Records. Despite being a commercial flop upon release, it has been regarded in recent years as an overlooked masterpiece. Marco Rossi of Record Collector said that "1971's Galactic Zoo Dossier is splenetic and heroically unravelled acid-rock, which occasionally snaps into focus to startling effect."
Background and recording
Following the collapse of The Crazy World of Arthur Brown, band leader Arthur Brown joined a handful of projects, namely Strangelands, Rustic Hinge, and the Puddletown Express. After the demise of the latter of these projects, Brown founded Kingdom Come in September 1970, after meeting bassist Dennis Taylor in Glastonbury. After asking Brown if he had any plans for future projects, Brown mentioned his idea of forming a band called Kingdom, in reference to King Arthur. Taylor suggested the name Kingdom Come, and the two decided then to form the band, with Taylor becoming the band's tour manager.
After recruiting lawyer Mark Radcliffe as their manager, they put out an advert in the music press. Michael "Goodge" Harris replied, who became the band's organist. Around the same time, the band also recruited Bob Ellwood on guitar and Dave Ambrose on bass. After jamming with drummer Rob Tait and percussionist Pete Bailey (the recordings of which being later released on 1995's aptly-titled Jam), Ellwood was fired. Tait then joined the band as their drummer, while Bailey was dropped. Around this time, the band approached Polydor England about a record deal, who turned them down. They then approached Polydor Germany, who signed them and gave them an advance of £10,000. Tait was fired thereafter due to him wanting the band to follow a looser, jazzier sound, with Andrew McCulloch of King Crimson replacing him. Shortly after, Andy Dalby was recruited on guitar, who brought along Julian Paul Brown on synths. This lineup of the band used the advance from the record label to rent a basement studio in Covent Garden, where they rehearsed for three months, sorting out material that would later be recorded for the album. Brown said of writing material that "the guitarist would, for instance, start with a riff. And we'd go round the room until everyone had added a little something to it. Then we'd begin again with a keyboard idea, and once more go round the room with everyone contributing. So, that's how we built up the music for the album." During these sessions, McCulloch and Ambrose wound up being replaced with drummer Martin "Slim" Steer and bassist Desmond Fisher, this lineup being the one that would go on to record the album.
While some of the recording took place in Regent Sound Studios in London, where popular bands such as The Rolling Stones and Black Sabbath had previously recorded, most of the sessions took place in Rockfield Studios, with the album being finalized in Olympic Studios. Brown said of recording at Rockfield that "The owners Charles and Kingsley Ward were real characters and made us feel very welcome." Co-producing the album with the band were Mike Finesilver and Peter Ker.
Music and production
The album is a concept album of sorts. On the 2010 CD rerelease, the liner notes describe it as "being about the state of humankind at that time." Brown had been living in the U.S. just before the end of his previous band, and was inspired by some of the things he'd seen on American television, namely footage of the Vietnam War and reports on the death of senator Robert F. Kennedy. In an interview for It's Psychedelic Baby! Magazine, Brown elaborated on the concept, stating that "The concept behind the album – and stage act – was the confrontation of all the hippie ideals with the actualities of political and police power. It was looking at a spiritual quest in the context of earning money, assassination, wrongful arrests, and it was posed in terms of us all being prisoners in a Galactic Zoo."
Songs
The album opens up with "Internal Messenger", which begins with a tongue-in-cheek religious message. According to Roger Smyth, in a review of the album for Salient Magazine, "Galactic Zoo Dossier starts with deceptive timidity with a religious message (tongue held firmly in cheek) audible from amid a confused pile up of voices, but then proceeds to range (or perhaps ramble) over a large number of modern musical forms." The majority of the album segues seamlessly together, similar to later releases by other bands, such as Pink Floyd's The Dark Side of the Moon or XTC's Skylarking. For the title track "Galactic Zoo", Brown "told the guys to imagine they were creatures stuck in one area and running around trying [sic] escape, in a constant state of motion forever attempting to find a way out."
Both "Space Plucks" and “Creation” were originally written for Brown's earlier project, Strangelands, where they were originally titled "Planets Of The Universe" and “All Forms And Distinctions” respectively.
Similarly, tracks that were released on the 1995 album Jam, being recorded in 1970, were reworked for this album. “Inconstant Wisdom” contains a section that would later become “Creep”, while “Water” (unrelated to their 1972 song of the same name) has elements that would be reshaped into “No Time” lyrically and “Metal Monster” musically, and “The Finger” was an early version of “Sunrise”. Additionally, “Water” from the self-titled 1972 album comes from the track “Waterfall”.
The fourth track on the album, "Metal Monster", is notable for having an effect that sounds similar to that of a CD skipping. It is unknown how they got this sound. Marco Rossi of Record Collector singles out this track; "Top fried moment? The fucked stereo effect in Metal Monster, where it sounds as though your CD is being chewed into submission (it isn't)."
"Sunrise" was released on the 1996 CD box set Supernatural Fairy Tales: The Progressive Rock Era. A live medley of "Internal Messenger", "Creation", and "Gypsy Escape", performed at the 1971 Glastonbury Festival, was released in the 1972 film about the event and its soundtrack.
Release
The album was released in October 1971 by Polydor Records. It was the first of a three record deal with the German wing of the Polydor label. It was commercially unsuccessful, and as a result, the band was marketed in the United States as Arthur Brown's Kingdom Come, in hopes that including his name would boost sales. Contrary to rumour, the name change had nothing to do with the 80's band of the same name. In support of the album, both before and after its release, the band toured around Europe, most notably playing at the Rainbow Theatre with Alice Cooper (who described the band as "true psychodrama!") and playing the pyramid stage at the 1971 Glastonbury Festival. In a review of the Rainbow Theatre gig, Michael Wale for The Times wrote that what was "good to record about this particular piece of pop theatre is that the music was much stronger than Arthur Brown's previous groups have been in the past." The band also recorded four different sessions with the BBC, three of which were later released.
The album has been rereleased on CD multiple times, initially in 2003 on the Castle Music label, featuring three bonus tracks; "Sunrise (Alternate Version)", "Metal Monster (Alternate Version)", and "Space Plucks Dem Bones". These bonus tracks also appear on the 2010 remaster on Esoteric Recordings, and on the first disc of the 2021 CD box set Eternal Messenger (An Anthology 1970-1973); the box set also features three of the four aforementioned BBC sessions of the fifth disc, At The BBC 1971 - 1972.
Reception and legacy
Galactic Zoo Dossier was a commercial flop upon release, however it has garnered some praise in recent years. In the AllMusic review for the album, it notes the drastic difference between Kingdom Come and the Crazy World of Arthur Brown, stating that "While there was still a carnivalesque classical-jazz-rock organ base to the arrangements, guitar also took a prominent role, and the melodies were far gloomier and more obtuse." They also mention the response fans of Brown's previous band may have had, mentioning that "its lack of melodic bluesy riffs and unrelentingly demanding themes (and sometimes downright dissonant tunes) must have alienated a good chunk of Crazy World of Arthur Brown fans." In a more positive review, Ben Miler from Hip Planet declares "Galactic Zoo Dossier is simply one of the most twisted albums you'll ever hear", while also stating "The only reject cut on Galactic Zoo is "Trouble". That song was apparently sung by guitarist Andy Dalby, and was definitely [sic] written by him. Pretty cheesy number with some really badly written lyrics ("I would like to write a song/To tell the world what is wrong with it today/I would like to write a book/If that were all it took, To make its troubles go away"), you can tell right away that Arthur Brown wouldn't dare write anything that bad." Record Collector notes that you'll "witness the super-tight interplay of Internal Messenger, the deft jazz-rock dexterity of No Time, and the prog-lite prestidigitation of the instrumental Gypsy Escape."
The track "Creep" was sampled in the track "Burgundy Whip" by MED, Blu, and Madlib, off of their 2015 collaborative studio album Bad Neighbor.
Track listing
Personnel
Kingdom Come
Arthur Brown – lead vocals
Andy Dalby – guitar; lead vocals on "Trouble"
Desmond "Des" Fisher – bass guitar
Julian Brown – VCS 3 synthesizer, backing vocals
Michael "Goodge" Harris* – organ
Martin "Slim" Steer – drums
Production
Mastered by Tony Arnold
Produced by Kingdom Come, Mike Finesilver, and Peter Ker
References
External links
1971 debut albums
Polydor Records albums
Kingdom Come (British band) albums
Albums recorded at Rockfield Studios
Jazz fusion albums by English artists
Progressive rock albums by English artists
Acid rock albums
Jazz-rock albums
|
Terkos Dam is a lake-dam near the village of Durusu in the Çatalca district of Istanbul, Turkey. The development of the project on Lake Durusu (ancient name Terkos) was realised by the Turkish State Hydraulic Works, and entered into service in 1971. It is the traditional water supply of the European part of Istanbul.
See also
List of dams and reservoirs in Turkey
References
DSI directory , State Hydraulic Works (Turkey), Retrieved December 16, 2009
Dams in Istanbul Province
|
```javascript
/*
ABOUT THIS NODE.JS EXAMPLE: This example works with the AWS SDK for JavaScript version 3 (v3),
which is available at path_to_url This example is in the 'AWS SDK for JavaScript v3 Developer Guide' at
path_to_url
Purpose:
ses_deletereceiptfilter.js demonstrates how to delete an Amazon SES IP address filter.
Running the code:
node ses_deletereceiptfilter.js
*/
// snippet-start:[ses.JavaScript.filters.deleteReceiptFilterV3]
import { DeleteReceiptFilterCommand } from "@aws-sdk/client-ses";
import { sesClient } from "./libs/sesClient.js";
import { getUniqueName } from "@aws-doc-sdk-examples/lib/utils/util-string.js";
const RECEIPT_FILTER_NAME = getUniqueName("ReceiptFilterName");
const createDeleteReceiptFilterCommand = (filterName) => {
return new DeleteReceiptFilterCommand({ FilterName: filterName });
};
const run = async () => {
const deleteReceiptFilterCommand =
createDeleteReceiptFilterCommand(RECEIPT_FILTER_NAME);
try {
return await sesClient.send(deleteReceiptFilterCommand);
} catch (err) {
console.log("Error deleting receipt filter.", err);
return err;
}
};
// snippet-end:[ses.JavaScript.filters.deleteReceiptFilterV3]
export { run, RECEIPT_FILTER_NAME };
```
|
```shell
Using tags for version control
The three states in git
How to set your username and email
Use `short` status to make output more compact
How to write a git commit message
```
|
Intelsat 8 (formerly PAS-8) is a communications satellite owned by Intelsat located at 166° East of longitude, serving the Pacific Ocean market.
Mission
INTELSAT 8 (PAS-8) was launched on 4 November 1998 by a Proton Block DM vehicle from Baikonur Cosmodrome. The satellite was designed with 24 Ku-band channels at 100 Watts and 24 C-band channels at 50 Watts. The spacecraft is based on the Space Systems Loral SSL=1300 bus and was part of a series of three satellites ordered from Loral. The satellite was designed for the Pacific market serving Australia, Hawaii, the northwest coast of the U.S., and portions of the Far East.
On 13 August 2012, it was replaced with Intelsat 19. During September 2012, it was co-located to the same position as Intelsat 5 at 169° East from 166° East to continue its service life as Intelsat 5's replacement later in the year.
On 19 October 2012 at around 23:00 UTC, Intelsat 8 took over broadcasting Intelsat 5's television channels which include Australia Network and regular feeds of Entertainment Tonight and The Wall Street Journal Report available via a two-meter dish at 4.1 GHz horizontal.
Decommissioning
The satellite was moved to a graveyard orbit by 26 December 2016.
References
Communications satellites in geostationary orbit
Satellite television
Spacecraft launched in 1998
Intelsat satellites
Satellites using the SSL 1300 bus
|
Lauren Elizabeth Barnette (born April 10, 1985) is an American model and beauty pageant contestant from Wise, Virginia who has competed in the Miss Teen USA pageant and competed for the Miss USA title in 2007.
Barnette won her first pageant title in 2001 when she was crowned Miss Virginia Teen USA 2002. She had competed in the previous year, placing 2nd runner-up. Barnette competed in the nationally televised Miss Teen USA 2002 pageant held in South Padre Island, Texas in August 2001.
In 2005 Barnette returned to the pageant stage when she placed 1st runner-up in the Miss Virginia USA 2006 pageant. The winner of the pageant was another former Miss Virginia Teen USA, Amber Copley, who Barnette had crowned as the 2003 titleholder. In 2006, on Saturday, September 23, 2006, in Norfolk, Virginia she won the Miss Virginia USA 2007 title, becoming the sixth former Teen titleholder to win the Miss crown. Virginia now becomes the first state to have six former Teen titleholders win Miss titles in the same state.
Barnette represented Virginia in the Miss USA 2007 pageant which was held in Los Angeles, California on March 23, 2007 at the Kodak Theatre. She placed in the top 10 and became the first woman from Virginia to place in the Miss USA pageant since Kellie Lightbourn in 1999. Barnette made the top 10 when she placed 10th in the swimsuit competition, and came back strong when she placed 6th in the evening gown competition. This made her place 7th overall, thus eliminating her from the top 5. Barnette is the second former Miss Teen USA delegate to be chosen as a 2007 Miss state titleholder, following Magen Ellis of Texas who competed at Miss Teen USA in 2004.
Barnette was a "briefcase model" on season 4 of NBC's Deal or No Deal. Lauren was also the feature model in the country music video Anything Goes by Randy Houser.
References
External links
https://web.archive.org/web/20140723204754/http://missvirginiausa.com/lauren-barnette - Miss Virginia USA website
http://missvirginiausa.com/lauren-barnette-teen - Miss Virginia Teen USA official website
1985 births
Living people
People from Wise, Virginia
2002 beauty pageant contestants
21st-century Miss Teen USA delegates
Miss USA 2007 delegates
|
```javascript
//<feature legacyBrowser>
Ext.define('Ext.overrides.event.publisher.Gesture', {
override: 'Ext.event.publisher.Gesture'
}, function() {
if (Ext.isIE9m) {
this.override({
updateTouches: function(e, isEnd) {
var browserEvent = e.browserEvent,
xy = e.getXY();
// I don't always set pageX and pageY on the event object, but when I do
// it's because the Gesture publisher expects an event object that has them.
browserEvent.pageX = xy[0];
browserEvent.pageY = xy[1];
this.callParent([e, isEnd]);
},
doDelegatedEvent: function(e) {
// Workaround IE's "Member not found" errors when accessing an event
// object asynchronously. Needed for all gesture handlers because
// they use requestAnimationFrame (see enableIEAsync for more details)
this.callParent([Ext.event.Event.enableIEAsync(e)]);
}
});
}
});
//</feature>
```
|
```java
// This source code is licensed under both the GPLv2 (found in the
// (found in the LICENSE.Apache file in the root directory).
package org.rocksdb;
/**
* Just a Java wrapper around EmptyValueCompactionFilter implemented in C++
*/
public class RemoveEmptyValueCompactionFilter
extends AbstractCompactionFilter<Slice> {
public RemoveEmptyValueCompactionFilter() {
super(createNewRemoveEmptyValueCompactionFilter0());
}
private native static long createNewRemoveEmptyValueCompactionFilter0();
}
```
|
North Eagle Butte is a census-designated place (CDP) in Dewey County, South Dakota, United States, along the 45th parallel. The population was 1,879 at the 2020 census.
Geography
North Eagle Butte is located in western Dewey County. It is bordered to the south by the city of Eagle Butte and by Ziebach County. U.S. Route 212 passes through North Eagle Butte, leading east to Gettysburg and west to Belle Fourche. Pierre, the state capital, is to the southeast.
According to the United States Census Bureau, the CDP has a total area of , of which , or 0.11%, is water.
Demographics
At the 2000 census there were 2,163 people, 638 households, and 459 families in the CDP. The population density was . There were 697 housing units at an average density of . The racial makeup of the CDP was 6.43% White, 0.09% African American, 92.28% Native American, 0.09% Asian, 0.09% Pacific Islander, 0.18% from other races, and 0.83% from two or more races. Hispanic or Latino of any race were 1.39%.
Of the 638 households 45.8% had children under the age of 18 living with them, 27.9% were married couples living together, 31.5% had a female householder with no husband present, and 27.9% were non-families. 23.5% of households were one person and 6.6% were one person aged 65 or older. The average household size was 3.24 and the average family size was 3.81.
The age distribution was 41.7% under the age of 18, 10.1% from 18 to 24, 28.7% from 25 to 44, 14.1% from 45 to 64, and 5.4% 65 or older. The median age was 24 years. For every 100 females, there were 97.4 males. For every 100 females age 18 and over, there were 95.5 males.
The median household income was $21,701 and the median family income was $21,458. Males had a median income of $19,886 versus $20,156 for females. The per capita income for the CDP was $8,175. About 37.5% of families and 39.1% of the population were below the poverty line, including 44.7% of those under age 18 and 51.7% of those age 65 or over.
Education
It is in Eagle Butte School District 20-1, which jointly operates Cheyenne-Eagle Butte School with the Bureau of Indian Education (BIE).
References
Census-designated places in Dewey County, South Dakota
Census-designated places in South Dakota
|
Wayne Adams, CM ONS (born 1943) is a Canadian former provincial politician who was the first Black Canadian member of the Nova Scotia House of Assembly and cabinet minister.
Early life
Adams was born in Halifax, Nova Scotia in 1943.
Political career
Adams was first elected to the Halifax Municipal Council in 1979 and was re-elected five times. He was deputy mayor from 1982 to 1983.
A Nova Scotia Liberal, he was elected in the 1993 Nova Scotia general election in the riding of Preston. He was the Minister of the Environment, Minister responsible for the Emergency Measures Act, and the Minister responsible for the Nova Scotia Boxing Authority in the governments of first John Savage (1993–1997) and then Russell MacLellan (1997–1998). He was defeated in 1998 by the NDP candidate, Yvonne Atwell.
Electoral record
Awards and recognition
In 2003, he was made a Member of the Order of Canada, Canada's highest civilian honour.
In 2011, he was invested as a member of the Order of Nova Scotia.
References
External links
CBC Radio archives: Nova Scotia elects its first black MLA
1943 births
Living people
Black Canadian politicians
Black Nova Scotians
Canadian Baptists
Members of the Executive Council of Nova Scotia
Members of the Order of Canada
Members of the Order of Nova Scotia
Nova Scotia Liberal Party MLAs
Politicians from Halifax, Nova Scotia
Nova Scotia municipal councillors
|
```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.newlandframework.rpc.exception;
/**
* @author tangjie<path_to_url
* @filename:InvokeModuleException.java
* @description:InvokeModuleException
* @blogs path_to_url
* @since 2017/9/26
*/
public class InvokeModuleException extends RuntimeException {
public InvokeModuleException() {
super();
}
public InvokeModuleException(String message, Throwable cause) {
super(message, cause);
}
public InvokeModuleException(String message) {
super(message);
}
public InvokeModuleException(Throwable cause) {
super(cause);
}
}
```
|
Mark Jeffrey is an American author and entrepreneur. He is known for authoring The New York Times bestselling books, Max Quick Series.
Most recently, Jeffrey founded Guardian Circle, an app-based personal safety network for friends, family and neighbors.
Jeffrey's previous companies include The Palace (backed by Time Warner, Intel and SoftBank; sold to Communities.com in 1998 with 10 million users), ZeroDegrees (sold to InterActiveCorp / IAC in 2004 with 1 million users), ThisWeekIn (co-founded with Kevin Pollak and Jason Calacanis), and Mahalo.com/ Inside.com (backed by Elon Musk, Sequoia, Mark Cuban and others). Mark also consulted for several years directly for Travis Kalanick, the founder of Uber, on his first company, Red Swoosh.
Jeffrey's first novel, Max Quick: The Pocket and the Pendant, was published in hardcover and ebook by HarperCollins in May, 2011. The book was initially podcast as a series of episodic mp3's and received over 2.5 million downloads.
Jeffrey holds a B.S. degree in Computer Science from the University of New Hampshire and is a TEDx speaker. On Twitter, he is @markjeffrey.
Bibliography
Timewarden (2016)
The Case for Bitcoin (2015)
Bitcoin Explained Simply (2014)
Prisoner of Glass (2014)
Max Quick: The Bane of the Bondsman (2013) (HarperCollins)
Max Quick: The Two Travelers (2012) (HarperCollins)
Armand Ptolemy and the Golden Aleph (2012)
Max Quick: The Pocket and the Pendant (2011) (HarperCollins)
Age of Aether (2011)
References
External links
Year of birth missing (living people)
Living people
American businesspeople
American writers
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.