text
stringlengths 1
22.8M
|
|---|
Hikmat Oktay oghlu Muradov () (23 January 1969, Baku, Azerbaijan SSR - 29 October 1991, Xanabad, Khojaly, Azerbaijan) was the National Hero of Azerbaijan and warrior during the First Nagorno-Karabakh War.
Early life and education
Muradov was born on 23 January 1969 in Baku, Azerbaijan SSR. From 1976 to 1986 he studied at the secondary school No. 190. That year he entered the Krasnokustk Civil Aviation School. After graduating in 1991 he was appointed a II pilot in An-2 plane in Yevlakh Aviation Company.
Family
Muradov was single.
Nagorno Karabakh war
When the First Nagorno-Karabakh War started, Muradov was assigned to the front line. Muradov carried out many flights to Nagorno-Karakabh with his AN-2 plane. He transported equipment, food and ammunition to Azerbaijani soldiers in Khojaly. On October 29, 1991, an AN-2 aircraft operated by Muradov was shot down by Armenian soldiers in Khanabad village of Khojali region returning from Khojali. As a result, the entire crew and all passengers on the plane were tragically killed.
Honors
Hikmat Oktay oghlu Muradov was posthumously awarded the title of the "National Hero of Azerbaijan" by Presidential Decree No. 337 dated 25 November 1992.
He was buried at a Martyrs' Lane cemetery in Baku.
See also
First Nagorno-Karabakh War
List of National Heroes of Azerbaijan
Azerbaijani Air and Air Defence Force
1992 Azerbaijani Mil Mi-8 shootdown
References
Sources
Vüqar Əsgərov. "Azərbaycanın Milli Qəhrəmanları" (Yenidən işlənmiş II nəşr). Bakı: "Dərələyəz-M", 2010, səh. 214.
1969 births
1991 deaths
Military personnel from Baku
Azerbaijani military personnel of the Nagorno-Karabakh War
Azerbaijani military personnel killed in action
National Heroes of Azerbaijan
|
```shell
Bash history reverse search
Adding directories to your `$PATH`
Get to know your commands with `type`
Keep useful commands in your shell history with tags
The Basics of Environment Variables
```
|
Ross James Jennings (13 November 1944 – 25 March 2016) was a New Zealand actor, becoming one of New Zealand's most experienced television producers and directors, whose credits included The Mad Dog Gang, Close to Home, Moynihan, Inside Straight, feature film I Live with Me Dad, Australian TV series Special Squad and Acropolis Now, NZ's soap Homeward Bound, New Zealand's first reality series, Police Ten 7, Middlemore, Strip Search, and Melody Rules.
Early life
Born in Hāwera in 1944, Jennings was raised by his mother in Taihape and Hāwera, his father having died during World War II.
Acting career
As a member of the NZ Players and Children's Art Theatre, Ross Jennings toured NZ as an actor before being granted a QE2 Arts Council Grant to study acting in England where he worked at Salisbury Theatre and took on minor television and film roles, before returning to New Zealand in 1971.
He joined the NZBC in 1973, and the Drama Department within 18 months, mentored by producer Tony Issac.
He was appointed Head of Drama for TVNZ in the late 70's and left for Australia to work with Grundy Productions and finally to head Crawford Production's Development Department in 1982. During this period he produced his first feature film, I Live with Me Dad.
His return to New Zealand in 1987 saw him create and produce some of New Zealand's most successful television amongst which is NZ's longest running reality series, Police Ten 7, and the hugely successful Strip Search.
He devised, created and produced TVNZ's highly successful 36 hr live to air Millenium Show as well as devising, creating and producing Māori Television's ANZAC Day show - a 17-hour, annual, live to air programme which played a large part in the resurgence of the ANZAC Day revitalisation in NZ, as well as becoming Māori Television's flagship programme.
In his final year, he wrote, co-directed, and produced the live, outdoor performance of The Passion Play staged at the Villa Maria winery in Māngere in 2015.
His final series, which he devised to demystify the running of NZ Parliament, Inside Parliament, was in production when he died.
Death and funeral
Jennings died on 25 March 2016, aged 71. His death was preceded by that of his mother-in-law, Edna Peters, 96, who died the same day. He left behind his wife, Carmel Jennings, whom he ran his production company, Just The Ticket Productions with, also a television and film producer, and six children.
The family held funerals on consecutive days the following week at St Patrick's Roman Catholic Church in Pukekohe.
Filmography
Film
Television
The numbers in writing credits refer to the number of episodes.
References
1944 births
2016 deaths
People from Hāwera
New Zealand television producers
New Zealand television directors
New Zealand Roman Catholics
Deaths from cancer in New Zealand
|
Langney Wanderers Football Club were a football club based in the Langney district of Eastbourne, East Sussex, England. They groundshared at Eastbourne Borough's Priory Lane.
History
The club was established in 2010 and joined the Lewes Sunday League. In 2012 they applied for membership of the East Sussex League, gaining entry to the Premier Division for the 2012–13 season. The club were Premier Division champions at the first attempt, winning 17 of their 18 league matches, and were promoted to Division Three of the Sussex County League.
Langney were Division Three champions the following season, but were unable to be promoted to Division Two as their ground did not have floodlights. However, after finishing third in Division Three in 2014–15 the club were promoted after planning permission was secured for floodlights.
In 2015 the Sussex County League was renamed the Southern Combination, with Division Two becoming Division One. The 2016–17 season saw Langney win the Division One Cup, beating Southwick 3–0 in the final. In the following season the club achieved promotion to the Premier Division with five games to spare.
In March 2021 the club announced they would fold due to financial issues.
Ground
The club initially played at Shinewater Lane, the former ground of Shinewater Association. Due to problems with the pitch, they played at Eastbourne United Association's Oval ground during the 2016–17 season, before moving to Eastbourne Borough's Priory Lane ground for the 2017–18 season.
Management history
Honours
Southern Combination
Division Three champions 2013–14
Division One Cup winners 2016–17
East Sussex League
Premier Division champions 2012–13
Records
Best FA Cup performance: Extra preliminary round, 2018–19
Best FA Vase performance: Second qualifying round, 2017–18
References
External links
Defunct football clubs in England
Defunct football clubs in East Sussex
Sport in Eastbourne
2010 establishments in England
Association football clubs established in 2010
2021 disestablishments in England
Association football clubs disestablished in 2021
East Sussex Football League
Southern Combination Football League
|
Gran Hermano 2015 is the eighth season of the Argentinian version of the reality show Gran Hermano. This season was confirmed in December 2014 by the main executive of the network Liliana Parodi. It was the first season to be broadcast on América TV after being previously in Telefe. The premiere was set for Wednesday 29 April 2015, being delayed one week from its original debut date. This season will come three years after the end of the most recent one. This season finished on 30 September 2015, after 155 days, becoming the second longest season ever produced in the country after the seventh season.
Jorge Rial announced that he would return to the show's main hosting duties, after leaving the position halfway during the previous season due to personal issues. Pamela David, one of America's main personalities, took over on hosting the show's Debates and Daily Highlights.
Production
The House
With the network change, Endemol now has a major role in the show's production, and now the house will be at Endemol's Estudios Mayor, which are located in the Buenos Aires neighborhood of Palermo, in a specific area known as "Palermo Hollywood". The architectural design of the house is work of Alberto Negrin. The studio where the house is located was used previously by El Trece for a show called La Casa de los Artistas which was broadcast in 2013.
Casting
Reportedly, over 30,000 people auditioned on the open casting calls made by producers between January and February 2015. By March 2015, host Jorge Rial mentioned during his show Intrusos about some of those who showed up in these audition calls, those named include: Gran Hermano Spain 10 finalist Almudena Martinez; former "Los Wachiturros" member Emanuel Ghidone; former gang leader Tamara Blanco, known as "The Cheta"; Tomas Loyola aka "Tomasito Suller" who previously participated in GH 2012; former cumbia group "Volcano" lead singer Roberto Edgar; Cristian, who is son of former Gran Hermano 2007 and Gran Hermano Famosos contestant Diego Leonardi.
Housemates
Summary
On 17 April 2015, Melanie Defederico was announced as a "housemate" by Jorge Rial in his show Intrusos, however, due to the exposure she got the days after the news were made official, she was dropped from the official shortlist and will be replaced by an auditionee.
On the premiere, the 14 official housemates for this season were revealed, plus, an "enigmatic" 15th housemate (Francisco, who is in the middle of a paternity controversy between him, model Gisela Bernal and her husband Ariel Diwan, baby he says is not his. However, by early August 2015, it was confirmed that Francisco is the actual father of that baby, since a DNA test was done on Diwan and came back negative) and they are the ones listed below.
On Day 36, during the 3rd round of nominations, after constant rule breaking, a Double Eviction was announced on that Gala (June 3, 2015). Now, on Day 43 (June 10, 2015), it was announced that the replacement revealed to go in during that night's show will be decided by the audience, three of the evicted housemates up to that point (Camila, Matias & Solano) plus two candidates from the open calls (Angela & Belen B.) will face off in a public vote to determine who will go in. That public vote will open on Day 44 (June 11, 2015), as during the 3rd Eviction gala was not possible due time constrains. The voting took place for about 24 hours, and on Day 45 (June 12, 2015), Matías Schrank, two days after being evicted with the most votes in the Double Eviction, was brought back in the game by the public with 36% of all votes cast.
The remaining candidates in the "Comeback" vote (Angela, Belén B., Camila & Solano) were exposed to public vote after Matías' re-entrance. On Day 50 (June 17, 2015), Ángela was voted into the house by viewers, and also, it was announced that another double eviction (this time a definitive one) will take place on Day 57 (June 24, 2015).
On Day 80 (July 17, 2015), Francisco left the house for a few hours to see the birth of his daughter Elena. Almost three weeks later, on Day 99 (August 5, 2015) he left the house temporarily again, as for not being married to the baby's mother, he had to attend a judicial precinct to formalize the registry of the child.
After Angie's eviction on Day 85, it was announced that another "Comeback" vote will happen. This time it was divided by gender and two housemates were going to enter, for the men the candidates were Eloy & Mariano (who voluntarily left the house that same gala) while for the women were Angie, Maria Paz, Valeria & new candidate Florencia. On Day 93 (July 30, 2015), during a special scheduled live show due to the network's decision to avoid broadcasting the show against a big soccer match happening the day before, Mariano & Florencia entered the house as the respective winners of the vote and the rest of the housemates were automatically nominated for eviction due constant rule breaking and nomination plotting.
Two days later, on Day 95 (August 1, 2015), Brian was ejected from the house after attacking love-interest Marian the night before inside the house's sauna during their weekly Friday night party. A special live show aired that same day, to let Brian know about the producers' decision, and social media went on blast regarding this situation.
This series has faced during its run thus far, many incidents where people go to the precincts of the house's location and start shouting to the contestants remaining inside the house, because of these repeated situations, Nicolás decided to quit on Day 108 (August 14, 2015) as he overheard people from outside yelling "María Paz was with Mariano when he was outside" (or a phrase pretty much close to that), he also revealed during that night's Debate that the couldn't handle the pressure of living in the House and dealing with the game.
On Day 113 (August 19, 2015), 2 brand new housemates entered the house, and they had connections to the other housemates. They were Yazmín Farjat (Marian's sister) & Eloy Lancelotta (Brian's brother), Rial explained in the liveshow, that both Yazmín and Eloy will stay in the house for a full week, however the public will then decide if either one of them stays or if both will stay in the game. The public was given three choice in that special voting round: A-Save Eloy; B-Save Yazmín; C-Save both. On Day 120 (August 26, 2015) It was revealed that Eloy had the most votes and entered the game while Yazmín was evicted.
Nominations table
The first name means two points and the second one, one point.
Notes
: Nicolás, Brian & Matías were under suspicion of forming a plot against Francisco. So, as Brian & Matías did vote for him, their votes were nulled.
: Camila had the fulminated nomination and automatically nominated Francisco.
: Mariano was automatically nominated as he entered the red room first.
: Eloy quit the weekly task "The Servants" and because of that, those who were the servants with him (Mariano & Valeria) were all automatically nominated for eviction.
: Matías used the fulminated nomination and automatically nominated Brian.
: In Week 7 there was a repeschage round, also including potential housemates. For the running to (re-)enter the house were: Camila, Matías, Solano (as evicted housemates), Ángela and Belén B. (as potential housemates). On Day 45, Matías received the most votes with 36.8% and returned to the house on that same night. Lines were re-opened for the restant housemates. On Day 50, Ángela received the most votes and is officially a new housemate. Camila, Solano and Belén B. were then officially out of the game. Matías and Angie won immunity from the nominations for being new housemates.
: Romina used the fulminated nomination and automatically nominated María Paz.
: Angie was nominated for revealing too much information from the outside world on Day 55.
: María Paz used the fulminated nomination and automatically nominated Matías.
: Brian & Marian was automatically nominated by Gran Hermano (Big Brother) after bad behavior and verbal violence between each other.
: Francisco used the fulminated nomination and automatically nominated Romina.
: In Week 13, Big Brother decided to enter two participants to the house, a man and a woman. Among men were Mariano and Eloy R., and among women were Ángela, Maria Paz, Valeria and a new candidate called Florencia Zaccanti. In the 7th gala nomination results who were entering they occurred. On the women's side, I entered the house for the first time Florencia Zaccanti with 25.3% of the vote. And on the side of men, with 35.2% of the votes, he reentered the house Mariano.
: Matías used the fulminated nomination and automatically nominated Belén.
: Francisco was automatically nominated as he entered the red room first.
: All contestants were nominated by penalty.
: Mariano used the fulminated nomination and automatically nominated Belén.
: Francisco, Marian, & Mariano was automatically nominated by Gran Hermano (Big Brother) after receiving a punishment due to their actions during the week.
: Nicolás was nominated but decided to leave the house in the middle of the nominations.
: On Day 113, 2 brand new housemates entered the house, and they had connections to the other housemates. They were Yazmín Farjat (Marian's sister) & Eloy Lancelotta (Brian's brother), Rial explained in the liveshow, that both Yazmín and Eloy will stay in the house for a full week, however the public will then decide if either one of them stays or if both will stay in the game. The public was given three choice in that special voting round: A-Save Eloy; B-Save Yazmín; C-Save both. On Day 120 it was revealed that Eloy had the most votes and entered the game while Yazmín was evicted.
: In Week 13, Big Brother decided to enter two participants to the house, between Ángela, Camila, Eloy R., Francisco and Romina. Francisco returned with 47.6% of the vote, and Camila returned with 42% of the vote.
: Belén used the fulminated nomination and automatically nominated Mariano.
: Marian remained on board after receiving punishment for talking about the production.
: Belén, Francisco & Matías received the fewest votes to evict and therefore saved from eviction. Marian and Mariano remained nominated and one of them will leave next week.
Trivia
On Day 155 (September 30, 2015), the final took place, with Francisco Delgado becoming the winner with 52.7% of all votes against Matías Schrank in the final duel, the 19-year-old student finished as this season's runner-up. The only housemate that never quit or was evicted this season and survived all the way until the end, Belén Etchart, finished in third place while Mariano Berón, who quit and was brought back to the game a week after his exit through public voting, came in fourth place. Francisco Delgado, is the second winner in this franchise to quit the game at some point (he walked out of the game on Day 113), came back and won the season (Francisco returned to the game on Day 120 by a special public vote), the first one to achieve such a feat was Cristian Urrizaga from Gran Hermano Argentina 6.
Also, out of the 4 finalists, three (Francisco, Mariano and Matías) at some point of the game have either been evicted or walked out of the house voluntarily (Matías was evicted on Day 43, Mariano walked on Day 85 and Francisco quit on Day 113) and returned to the game about a week later (Matías re-entered through a public vote on Day 45, Mariano did the same on Day 93 and Francisco did so on Day 120), this has never been seen in a final of this franchise.
References
2015 Argentine television seasons
08
|
```yaml
spring:
data:
elasticsearch:
cluster-nodes: 127.0.0.1:9300
```
|
```dart
/*
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
*
* path_to_url
*
* Unless required by applicable law or agreed to in writing, software
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/
import 'dart:async';
import 'package:flutter/material.dart';
import 'package:playground_components/playground_components.dart';
import 'package:shared_preferences/shared_preferences.dart';
import 'constants/params.dart';
import 'constants/storage_keys.dart';
class AppNotifier extends ChangeNotifier {
Sdk? _sdk;
AppNotifier() {
unawaited(_readSdk());
}
Sdk get sdk => _sdk ?? defaultSdk;
set sdk(Sdk newValue) {
_sdk = newValue;
unawaited(_writeSdk(newValue));
notifyListeners();
}
Future<void> _writeSdk(Sdk value) async {
final preferences = await SharedPreferences.getInstance();
await preferences.setString(StorageKeys.sdkId, value.id);
}
Future<void> _readSdk() async {
final preferences = await SharedPreferences.getInstance();
_sdk = Sdk.tryParse(preferences.getString(StorageKeys.sdkId));
notifyListeners();
}
}
```
|
```html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"path_to_url">
<html xmlns="path_to_url">
<head>
<meta name="generator" content=
"HTML Tidy for Linux/x86 (vers 1st March 2004), see www.w3.org" />
<meta http-equiv="Content-Type" content=
"text/html; charset=us-ascii" />
<link rel="stylesheet" href="../../../../boost.css" type="text/css"/>
<link rel="stylesheet" href="ublas.css" type="text/css" />
<script type="text/javascript" src="js/jquery-1.3.2.min.js" async="async" ></script>
<script type="text/javascript" src="js/jquery.toc-gw.js" async="async" ></script>
<title>Sparse Storage</title>
</head>
<body>
<h1><img src="../../../../boost.png" align="middle" />Sparse Storage</h1>
<div class="toc" id="toc"></div>
<h2><a name="map_std"></a>Default Standard Map</h2>
<h4>Description</h4>
<p>The templated class <code>map_std<I, T, ALLOC></code> provides a
wrapper for the standard library associative container
<code>std::map</code>. The wrapper has one simple purpose. It
allows the definition of a default template parameter (for the
adapted array) when declaring the sparse container types.</p>
<h4>Example</h4>
<pre>
#include <boost/numeric/ublas/storage_sparse.hpp>
int main () {
using namespace boost::numeric::ublas;
map_std<int, double> a (3);
for (unsigned i = 0; i < a.size (); ++ i) {
a [i] = i;
std::cout << a [i] << std::endl;
}
}
</pre>
<h4>Definition</h4>
<p>Defined in the header storage_sparse.hpp.</p>
<h4>Template parameters</h4>
<table border="1" summary="parameters">
<tbody>
<tr>
<th>Parameter</th>
<th>Description</th>
<th>Default</th>
</tr>
<tr>
<td><code>I</code></td>
<td>The type of index stored in the array.</td>
<td></td>
</tr>
<tr>
<td><code>T</code></td>
<td>The type of object stored in the array.</td>
<td></td>
</tr>
<tr>
<td><code>ALLOC</code></td>
<td>An STL Allocator</td>
<td>std::allocator</td>
</tr>
</tbody>
</table>
<h4>Model of</h4>
<p>Reversible Container.</p>
<h4>Type requirements</h4>
<p>None, except for those imposed by the requirements of Reversible
Container.</p>
<h4>Public base classes</h4>
<p>std::map</p>
<h2><a name="map_array"></a>Map Array</h2>
<h4>Description</h4>
<p>The templated class <code>map_array<I, T, ALLOC></code> implements a <code>std::map</code> like associative container as a sorted array. It therefore some of the Associative Container interface without having the same semantics as an std::map.
<p>At any time the <code>map_array</code> has a capacity up to which new element can be inserted.
If <code>insert</code> would cause the size of the <code>map_array</code> to exceeds its capactity then it is <strong>reallocated</strong>. Iterators and reference are invalidated.
The capacity can be directly control using the <code>reserve</code> member function.
</p>
<h4>Example</h4>
<pre>
#include <boost/numeric/ublas/storage_sparse.hpp>
int main () {
using namespace boost::numeric::ublas;
map_array<int, double> a (3);
for (unsigned i = 0; i < a.size (); ++ i) {
a [i] = i;
std::cout << a [i] << std::endl;
}
}
</pre>
<h4>Definition</h4>
<p>Defined in the header storage_sparse.hpp.</p>
<h4>Template parameters</h4>
<table border="1" summary="parameters">
<tbody>
<tr>
<th>Parameter</th>
<th>Description</th>
<th>Default</th>
</tr>
<tr>
<td><code>I</code></td>
<td>The type of index stored in the array.</td>
<td></td>
</tr>
<tr>
<td><code>T</code></td>
<td>The type of object stored in the array.</td>
<td></td>
</tr>
<tr>
<td><code>ALLOC</code></td>
<td>An STL Allocator</td>
<td>std::allocator</td>
</tr>
</tbody>
</table>
<h4>Model of</h4>
<p>Reversible Container.</p>
<h4>Type requirements</h4>
<p>None, except for those imposed by the requirements of Reversible
Container.</p>
<h4>Public base classes</h4>
<p>None.</p>
<h4>Members</h4>
<table border="1" summary="members">
<tbody>
<tr>
<th>Member</th>
<th>Description</th>
</tr>
<tr>
<td><code>map_array (ALLOC &a = ALLOC())</code></td>
<td>Allocates a <code>map_array</code> that holds at most zero
elements.</td>
</tr>
<tr>
<td><code>map_array (const map_array &c)</code></td>
<td>The copy constructor.</td>
</tr>
<tr>
<td><code>~map_array ()</code></td>
<td>Deallocates the <code>map_array</code> itself.</td>
</tr>
<tr>
<td><code>void reserve (size_type capacity)</code></td>
<td>
Changes the<code>map_array</code> capacity. It can hold at most<code>capacity</code> elements without reallocation. The capacity can be reduced such that <code>capacity >= size()</code>. The content of the<code>map_array</code> is preserved.</td>
</tr>
<tr>
<td><code>size_type size () const</code></td>
<td>Returns the size of the <code>map_array</code>.</td>
</tr>
<tr>
<td><code>size_type size () const</code></td>
<td>Returns the capacity of the <code>map_array</code>.</td>
</tr>
<tr>
<td><code>data_reference operator [] (index_type i)</code></td>
<td>Returns a reference of the element that is associated with a
particular index. If the <code>map_array</code> does not already
contain such an element, <code>operator[]</code> inserts the
default <code>T ()</code>.</td>
</tr>
<tr>
<td><code>map_array &operator = (const map_array
&a)</code></td>
<td>The assignment operator.</td>
</tr>
<tr>
<td><code>map_array &assign_temporary (map_array
&a)</code></td>
<td>Assigns a temporary. May change the array <code>a</code>.</td>
</tr>
<tr>
<td><code>void swap (map_array &a)</code></td>
<td>Swaps the contents of the arrays.</td>
</tr>
<tr>
<td><code>std::pair<iterator, bool> insert (const value_type
&p)</code></td>
<td>Inserts <code>p</code> into the array. The second part of the return value is <code>true</code>
if <code>p</code> was inserted and <code>false</code> if was not inserted because it was aleady
present.</td>
</tr>
<tr>
<td><code>iterator insert (iterator it, const value_type
&p)</code></td>
<td>Inserts <code>p</code> into the array, using <code>it</code> as
a hint to where it will be inserted.</td>
</tr>
<tr>
<td><code>void erase (iterator it)</code></td>
<td>Erases the value at <code>it</code>.</td>
</tr>
<tr>
<td><code>void clear ()</code></td>
<td>Clears the array.</td>
</tr>
<tr>
<td><code>const_iterator find (index_type i) const</code></td>
<td>Finds an element whose index is <code>i</code>.</td>
</tr>
<tr>
<td><code>iterator find (index_type i)</code></td>
<td>Finds an element whose index is <code>i</code>.</td>
</tr>
<tr>
<td><code>const_iterator lower_bound (index_type i)
const</code></td>
<td>Finds the first element whose index is not less than
<code>i</code> .</td>
</tr>
<tr>
<td><code>iterator lower_bound (index_type i)</code></td>
<td>Finds the first element whose index is not less than
<code>i</code> .</td>
</tr>
<tr>
<td><code>const_iterator upper_bound (index_type i)
const</code></td>
<td>Finds the first element whose index is greater than
<code>i</code> .</td>
</tr>
<tr>
<td><code>iterator upper_bound (index_type i)</code></td>
<td>Finds the first element whose index is greater than
<code>i</code> .</td>
</tr>
<tr>
<td><code>const_iterator begin () const</code></td>
<td>Returns a <code>const_iterator</code> pointing to the beginning
of the <code>map_array</code>.</td>
</tr>
<tr>
<td><code>const_iterator end () const</code></td>
<td>Returns a <code>const_iterator</code> pointing to the end of
the <code>map_array</code>.</td>
</tr>
<tr>
<td><code>iterator begin ()</code></td>
<td>Returns a <code>iterator</code> pointing to the beginning of
the <code>map_array</code>.</td>
</tr>
<tr>
<td><code>iterator end ()</code></td>
<td>Returns a <code>iterator</code> pointing to the end of the
<code>map_array</code>.</td>
</tr>
<tr>
<td><code>const_reverse_iterator rbegin () const</code></td>
<td>Returns a <code>const_reverse_iterator</code> pointing to the
beginning of the reversed <code>map_array</code>.</td>
</tr>
<tr>
<td><code>const_reverse_iterator rend () const</code></td>
<td>Returns a <code>const_reverse_iterator</code> pointing to the
end of the reversed <code>map_array</code>.</td>
</tr>
<tr>
<td><code>reverse_iterator rbegin ()</code></td>
<td>Returns a <code>reverse_iterator</code> pointing to the
beginning of the reversed <code>map_array</code>.</td>
</tr>
<tr>
<td><code>reverse_iterator rend ()</code></td>
<td>Returns a <code>reverse_iterator</code> pointing to the end of
the reversed <code>map_array</code>.</td>
</tr>
</tbody>
</table>
<hr />
Use, modification and distribution are subject to the
(See accompanying file LICENSE_1_0.txt
or copy at <a href="path_to_url">
path_to_url
</a>).
</p>
<script type="text/javascript">
(function($) {
$('#toc').toc();
})(jQuery);
</script>
</body>
</html>
```
|
```php
<?php
/**
*/
namespace OCP\Activity;
/**
* Interface EventMerger
*
* @since 11.0
*/
interface IEventMerger {
/**
* Combines two events when possible to have grouping:
*
* Example1: Two events with subject '{user} created {file}' and
* $mergeParameter file with different file and same user will be merged
* to '{user} created {file1} and {file2}' and the childEvent on the return
* will be set, if the events have been merged.
*
* Example2: Two events with subject '{user} created {file}' and
* $mergeParameter file with same file and same user will be merged to
* '{user} created {file1}' and the childEvent on the return will be set, if
* the events have been merged.
*
* The following requirements have to be met, in order to be merged:
* - Both events need to have the same `getApp()`
* - Both events must not have a message `getMessage()`
* - Both events need to have the same subject `getSubject()`
* - Both events need to have the same object type `getObjectType()`
* - The time difference between both events must not be bigger then 3 hours
* - Only up to 5 events can be merged.
* - All parameters apart from such starting with $mergeParameter must be
* the same for both events.
*
* @param string $mergeParameter
* @param IEvent $event
* @param IEvent|null $previousEvent
* @return IEvent
* @since 11.0
*/
public function mergeEvents($mergeParameter, IEvent $event, ?IEvent $previousEvent = null);
}
```
|
```css
Use `box-sizing` to define an element's `width` and `height` properties
`calc()` for simpler maths
Writing comments in CSS
At-Rules (`@`)
Hexadecimal color system
```
|
The Waverly-Shell Rock Community School District is a rural public school district located in the communities of Waverly and Shell Rock in the northeastern region of the U.S. state of Iowa. The district spans Bremer, Butler and Black Hawk counties. There are seven schools in the district—including four elementary schools, a middle school, a senior high school, and a residential alternative high school.
History
Schools
Elementary schools:
Margaretta Carey Elementary School (K–4), Waverly
Shell Rock Elementary School (K–4), Shell Rock
Southeast Elementary School (K-4), Waverly
West Cedar Elementary School (K–4), Waverly
Middle schools:
Waverly-Shell Rock Middle School (5–8), Waverly
High schools:
Waverly-Shell Rock Senior High School (9-12), Waverly
Waverly-Shell Rock Lied Center (residential 10–12), Waverly
Enrollment
See also
List of school districts in Iowa
References
External links
Waverly-Shell Rock Community School District
School districts in Iowa
Education in Bremer County, Iowa
Education in Butler County, Iowa
Waverly, Iowa
|
```c++
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// * 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.
// * Neither the name of NVIDIA CORPORATION 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 ``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 OWNER 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.
//
#ifdef RENDER_SNIPPET
#include <vector>
#include "PxPhysicsAPI.h"
#include "../SnippetRender/SnippetRender.h"
#include "../SnippetRender/SnippetCamera.h"
using namespace physx;
extern void initPhysics();
extern void stepPhysics();
extern void cleanupPhysics();
extern void keyPress(unsigned char key, const PxTransform& camera);
extern PxScene* gScene;
extern PxF32 gLengthScale;
namespace
{
Snippets::Camera* sCamera;
void motionCallback(int x, int y)
{
sCamera->handleMotion(x, y);
}
void keyboardCallback(unsigned char key, int x, int y)
{
if(key==27)
exit(0);
if(!sCamera->handleKey(key, x, y, gLengthScale))
keyPress(key, sCamera->getTransform());
}
void mouseCallback(int button, int state, int x, int y)
{
sCamera->handleMouse(button, state, x, y);
}
void idleCallback()
{
glutPostRedisplay();
}
void renderCallback()
{
stepPhysics();
Snippets::startRender(sCamera->getEye(), sCamera->getDir());
PxU32 nbActors = gScene->getNbActors(PxActorTypeFlag::eRIGID_DYNAMIC | PxActorTypeFlag::eRIGID_STATIC);
if(nbActors)
{
std::vector<PxRigidActor*> actors(nbActors);
gScene->getActors(PxActorTypeFlag::eRIGID_DYNAMIC | PxActorTypeFlag::eRIGID_STATIC, reinterpret_cast<PxActor**>(&actors[0]), nbActors);
Snippets::renderActors(&actors[0], static_cast<PxU32>(actors.size()), true);
}
Snippets::finishRender();
}
void exitCallback(void)
{
delete sCamera;
cleanupPhysics();
}
}
void renderLoop()
{
sCamera = new Snippets::Camera(PxVec3(10.0f*gLengthScale, 10.0f*gLengthScale, 10.0f*gLengthScale), PxVec3(-0.6f,-0.2f,-0.7f));
Snippets::setupDefaultWindow("PhysX Snippet VehicleScale");
Snippets::setupDefaultRenderState();
glutIdleFunc(idleCallback);
glutDisplayFunc(renderCallback);
glutKeyboardFunc(keyboardCallback);
glutMouseFunc(mouseCallback);
glutMotionFunc(motionCallback);
motionCallback(0,0);
atexit(exitCallback);
initPhysics();
glutMainLoop();
}
#endif
```
|
```xml
import { PrefKey, Platform } from '@standardnotes/snjs'
import { Subtitle, Text, Title } from '@/Components/Preferences/PreferencesComponents/Content'
import { WebApplication } from '@/Application/WebApplication'
import { FunctionComponent, useState } from 'react'
import HorizontalSeparator from '@/Components/Shared/HorizontalSeparator'
import Switch from '@/Components/Switch/Switch'
import PreferencesGroup from '../../PreferencesComponents/PreferencesGroup'
import PreferencesSegment from '../../PreferencesComponents/PreferencesSegment'
import usePreference from '@/Hooks/usePreference'
import { MutuallyExclusiveMediaQueryBreakpoints, useMediaQuery } from '@/Hooks/useMediaQuery'
type Props = {
application: WebApplication
}
export const AndroidConfirmBeforeExitKey = 'ConfirmBeforeExit'
const Defaults: FunctionComponent<Props> = ({ application }) => {
const [androidConfirmBeforeExit, setAndroidConfirmBeforeExit] = useState(
() => (application.getValue(AndroidConfirmBeforeExitKey) as boolean) ?? true,
)
const isMobile = useMediaQuery(MutuallyExclusiveMediaQueryBreakpoints.sm)
const spellcheck = usePreference(PrefKey.EditorSpellcheck)
const addNoteToParentFolders = usePreference(PrefKey.NoteAddToParentFolders)
const alwaysShowSuperToolbar = usePreference(PrefKey.AlwaysShowSuperToolbar)
const toggleSpellcheck = () => {
application.toggleGlobalSpellcheck().catch(console.error)
}
const toggleAndroidConfirmBeforeExit = () => {
const newValue = !androidConfirmBeforeExit
setAndroidConfirmBeforeExit(newValue)
application.setValue(AndroidConfirmBeforeExitKey, newValue)
}
return (
<PreferencesGroup>
<PreferencesSegment>
<Title>Defaults</Title>
{application.platform === Platform.Android && (
<>
<div className="flex justify-between gap-2 md:items-center">
<div className="flex flex-col">
<Subtitle>Always ask before closing app (Android)</Subtitle>
<Text>Whether a confirmation dialog should be shown before closing the app.</Text>
</div>
<Switch onChange={toggleAndroidConfirmBeforeExit} checked={androidConfirmBeforeExit} />
</div>
<HorizontalSeparator classes="my-4" />
</>
)}
<div className="flex justify-between gap-2 md:items-center">
<div className="flex flex-col">
<Subtitle>Spellcheck</Subtitle>
<Text>
The default spellcheck value for new notes. Spellcheck can be configured per note from the note context
menu. Spellcheck may degrade overall typing performance with long notes.
</Text>
</div>
<Switch onChange={toggleSpellcheck} checked={spellcheck} />
</div>
<HorizontalSeparator classes="my-4" />
<div className="flex justify-between gap-2 md:items-center">
<div className="flex flex-col">
<Subtitle>Add all parent tags when adding a nested tag to a note</Subtitle>
<Text>When enabled, adding a nested tag to a note will automatically add all associated parent tags.</Text>
</div>
<Switch
onChange={() => {
application.setPreference(PrefKey.NoteAddToParentFolders, !addNoteToParentFolders).catch(console.error)
}}
checked={addNoteToParentFolders}
/>
</div>
<HorizontalSeparator classes="my-4" />
{!isMobile && (
<div className="flex justify-between gap-2 md:items-center">
<div className="flex flex-col">
<Subtitle>Use always-visible toolbar in Super notes</Subtitle>
<Text>
When enabled, the Super toolbar will always be shown at the top of the note. It can be temporarily
toggled using Cmd/Ctrl+Shift+K. When disabled, the Super toolbar will only be shown as a floating
toolbar when text is selected.
</Text>
</div>
<Switch
onChange={() => {
application.setPreference(PrefKey.AlwaysShowSuperToolbar, !alwaysShowSuperToolbar).catch(console.error)
}}
checked={alwaysShowSuperToolbar}
/>
</div>
)}
</PreferencesSegment>
</PreferencesGroup>
)
}
export default Defaults
```
|
ΔΣΠ (Delta Sigma Pi) is an American professional business fraternity for men and women. It was founded on November 7, 1907, at the School of Commerce, Accounts and Finance of New York University in New York, New York and is currently headquartered in Oxford, Ohio. The Fraternity has 298 established chapters, with 224 active today.
Collegiate chapter list
Following is a list of Delta Sigma Pi collegiate chapters. Active chapters are indicated in bold; inactive chapters are indicated in italic. Many of the universities and colleges have undergone name changes since charters were granted. The most current university name is used.
Alumni chapters
Following are the alumni chapters of Delta Sigma Pi.
See also
Professional fraternities and sororities
References
Lists of chapters of Professional Fraternity Association members by society
chapters
|
Adampan is a small town in Sri Lanka. It is located within Northern Province.
See also
List of towns in Northern Province, Sri Lanka
External links
Villages in Mannar District
Manthai West DS Division
|
Club Deportivo Universidad de Concepción, also known as UdeC, is a Chilean basketball club based in the city of Concepción, Biobio Region. The sports club was officially founded August 8, 1994, but the professional basketball team begun in 1979, with the start of the Dimayor, the former Chilean professional League.
Their home games are played at the Casa del Deporte gym, located inside the Universidad de Concepción campus.
Trophies
Liga Nacional: 2
2021, 2022
Dimayor: 4
1995, 1997, 1998, 2012
Copa Chile: 2
2014, 2022-23
Supercopa: 2
2021, 2022
Dimayor Centro-Sur: 3
2007, 2008, 2014
Dimayor Apertura: 1
2009
Current roster
See also
University of Concepción
C.D. Universidad de Concepción (football team)
External links
Official Site
Universidad de Concepcion
Concepción, Chile
Basketball teams established in 1979
Sport in Biobío Region
|
2009 Regional League Division 2 North Eastern Region () is the 3rd Level League in Thailand. In 2009, contains 12 clubs from North Eastern region.
The league winners qualify for the end of season Regional Championships with the other four league winners in the Regional setup.
Ubon United FC withdrew from the league after playing 16 games, due to a dispute with the Thailand Football Association (FAT). All results were declared null and void. Ubon were also given a 2-year ban from competing. The league table was re-adjusted accordingly, after FAT previously thought about awarding 2-0 victories for the remaining games.
Member clubs & locations
Ubon United FC withdrew on the 16th matchday
Final league table
Results
See also
2009 Regional League Division 2 Northern Region
2009 Regional League Division 2 Central & Eastern Region
2009 Regional League Division 2 Bangkok Metropolitan Region
2009 Regional League Division 2 Southern Region
References
External links
Football Association of Thailand
Regional League North-East Division seasons
North
|
```javascript
// Convenient way for opening links in external browser, not in the app.
// Useful especially if you have a lot of links to deal with.
//
// Usage:
//
// Every link with class ".js-external-link" will be opened in external browser.
// <a class="js-external-link" href="path_to_url">google</a>
//
// The same behaviour for many links can be achieved by adding
// this class to any parent tag of an anchor tag.
// <p class="js-external-link">
// <a href="path_to_url">google</a>
// <a href="path_to_url">bing</a>
// </p>
const supportExternalLinks = event => {
let href
let isExternal = false
const checkDomElement = element => {
if (element.nodeName === 'A') {
href = element.getAttribute('href')
}
if (element.classList.contains('js-external-link')) {
isExternal = true
}
if (href && isExternal) {
window.electron.openExternal(href)
event.preventDefault()
} else if (element.parentElement) {
checkDomElement(element.parentElement)
}
}
checkDomElement(event.target)
}
document.addEventListener('click', supportExternalLinks, false)
```
|
```smalltalk
//
//
// Microsoft Cognitive Services: path_to_url
//
// Microsoft Cognitive Services Github:
// path_to_url
//
// All rights reserved.
//
// 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.
//
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.IO;
using System.Threading.Tasks;
using Windows.Storage;
namespace IntelligentKioskSample.Views.FormRecognizer
{
public class FormRecognizerDataLoader
{
private static readonly string BuiltInFormRecognizerModelsFileName = "Views\\FormRecognizer\\BuiltInModels.json";
private static readonly string CustomFormRecognizerModelsFileName = "FormRecognizer\\FormRecognizerModels.json";
public static List<FormRecognizerViewModel> GetBuiltInModels()
{
try
{
var tmp = ApplicationData.Current.LocalFolder;
string content = File.ReadAllText(BuiltInFormRecognizerModelsFileName);
return JsonConvert.DeserializeObject<List<FormRecognizerViewModel>>(content);
}
catch (Exception)
{
return new List<FormRecognizerViewModel>();
}
}
public static async Task<List<FormRecognizerViewModel>> GetCustomModelsAsync()
{
try
{
using (Stream stream = await ApplicationData.Current.LocalFolder.OpenStreamForReadAsync(CustomFormRecognizerModelsFileName))
{
using (StreamReader reader = new StreamReader(stream))
{
string content = await reader.ReadToEndAsync();
return JsonConvert.DeserializeObject<List<FormRecognizerViewModel>>(content);
}
}
}
catch (Exception)
{
return new List<FormRecognizerViewModel>();
}
}
public static async Task SaveCustomModelsToFileAsync(IEnumerable<FormRecognizerViewModel> customModels)
{
string data = JsonConvert.SerializeObject(customModels, Formatting.Indented);
StorageFile file = await ApplicationData.Current.LocalFolder.CreateFileAsync(CustomFormRecognizerModelsFileName, CreationCollisionOption.ReplaceExisting);
using (Stream stream = await file.OpenStreamForWriteAsync())
{
using (StreamWriter writer = new StreamWriter(stream))
{
await writer.WriteAsync(data);
}
}
}
public static async Task DeleteModelStorageFolderAsync(Guid modelId)
{
StorageFolder storageFolder = await ApplicationData.Current.LocalFolder.GetFolderAsync($"FormRecognizer\\{modelId}");
if (storageFolder != null)
{
await storageFolder.DeleteAsync();
}
}
public static async Task<StorageFile> CopyFileToLocalModelFolderAsync(StorageFile file, Guid modelId)
{
StorageFolder storageFolder = await ApplicationData.Current.LocalFolder.CreateFolderAsync($"FormRecognizer\\{modelId}", CreationCollisionOption.OpenIfExists);
return await file?.CopyAsync(storageFolder, file.Name, NameCollisionOption.GenerateUniqueName);
}
}
public class FormRecognizerViewModel
{
public Guid Id { get; set; }
public string Name { get; set; }
public List<Tuple<string, Uri>> SuggestionSamples { get; set; }
public bool IsPrebuiltModel { get; set; }
public bool IsReceiptModel { get; set; }
}
}
```
|
```java
/*
*
*/
package io.debezium.connector.mariadb;
import io.debezium.connector.binlog.BinlogIncrementalSnapshotIT;
import io.debezium.connector.mariadb.jdbc.MariaDbFieldReader;
/**
* @author Chris Cranford
*/
public class IncrementalSnapshotIT extends BinlogIncrementalSnapshotIT<MariaDbConnector> implements MariaDbCommon {
@Override
protected Class<?> getFieldReader() {
return MariaDbFieldReader.class;
}
}
```
|
```c++
/*
* PROGRAM: JRD Rebuild scrambled database
* MODULE: rebuild.cpp
* DESCRIPTION: Main routine for analyzing and rebuilding database
*
* The contents of this file are subject to the Interbase Public
*
* "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express
*
* The Original Code was created by Inprise Corporation
* and its predecessors. Portions created by Inprise Corporation are
*
* All Rights Reserved.
* Contributor(s): ______________________________________.
*/
#include "firebird.h"
#include <stdio.h>
#include <errno.h>
#include <string.h>
#include "ibase.h"
#include "../jrd/jrd.h"
#include "../jrd/jrd_time.h"
#include "../jrd/pag.h"
#include "../jrd/tra.h"
#include "../utilities/rebuild/rebuild.h"
#include "../utilities/rebuild/rebui_proto.h"
#include "../utilities/rebuild/rmet_proto.h"
#include "../utilities/rebuild/rstor_proto.h"
#include "../jrd/dmp_proto.h"
#include "../yvalve/gds_proto.h"
#include "../common/utils_proto.h
#ifndef O_RDWR
#include <fcntl.h>
#endif
Database dbb_struct;
thread_db tdbb_struct, *gdbb;
PageControl dim;
jrd_tra dull;
const ULONG* tips;
FILE* dbg_file;
static void checksum(rbdb*, ULONG, ULONG, bool);
static USHORT compute_checksum(const rbdb*, PAG);
static void db_error(int);
static void dump(FILE*, rbdb*, ULONG, ULONG, UCHAR);
static void dump_tips(FILE*, rbdb*);
static void format_header(const rbdb*, header_page*, int, TraNumber, TraNumber, TraNumber, ULONG);
static void format_index_root(index_root_page*, int, SSHORT, SSHORT);
static void format_pointer(pointer_page*, int, SSHORT, SSHORT, bool, SSHORT, const SLONG*);
static void format_pip(page_inv_page*, int, int);
static void format_tip(tx_inv_page*, int, SLONG);
static void get_next_file(rbdb*, header_page*);
static void get_range(TEXT***, const TEXT* const* const, ULONG*, ULONG*);
static void get_switch(TEXT**, swc*);
static header_page* open_database(rbdb*, ULONG);
static void print_db_header(FILE*, const header_page*);
static void rebuild(rbdb*);
static void write_headers(FILE*, rbdb*, ULONG, ULONG);
static bool sw_rebuild;
static bool sw_print;
static bool sw_store;
static bool sw_dump_pages;
static bool sw_checksum;
//static bool sw_fudge;
static bool sw_fix;
static bool sw_dump_tips;
static const ULONG PPG_NUMBERS[] =
{
5897, 6058, 5409, 6199, 6200, 6220, 6221,
4739, 4868, 6332, 6333, 6329, 6359, 6751,
6331, 6392, 6806, 6819, 6820, 6866, 6875,
6876, 7019, 7284, 7430, 7431, 7757, 6893,
6894, 7408, 8308, 8309, 1036, 9120, 4528,
4563, 4572, 0, 0
};
int main( int argc, char *argv[])
{
/**************************************
*
* m a i n
*
**************************************
*
* Functional description
* Parse and interpret command line, then do a variety
* of things.
*
**************************************/
TEXT out_file[128];
dbg_file = stdout;
sw_rebuild = sw_print = sw_store = sw_dump_pages = sw_checksum = false;
sw_dump_tips = /*sw_fudge = */ sw_fix = false;
ULONG c_lower_bound, c_upper_bound, d_lower_bound, d_upper_bound,
p_lower_bound, p_upper_bound, pg_size;
pg_size = p_lower_bound = c_lower_bound = d_lower_bound = 0;
p_upper_bound = c_upper_bound = d_upper_bound = BIG_NUMBER;
USHORT pg_type = 0;
const TEXT* const* const end = argv + argc;
++argv;
swc switch_space;
swc* token = &switch_space;
rbdb* rbdb = NULL;
header_page* header = NULL;
TEXT* ascii_out = NULL;
TEXT* db_in = NULL;
while (argv < end)
{
get_switch(argv, token);
argv++;
if (!token->swc_switch)
db_in = token->swc_string;
else
{
switch (*token->swc_string)
{
case 'b':
pg_size = atoi(*argv++);
break;
case 'c':
sw_checksum = true;
get_range(&argv, end, &c_lower_bound, &c_upper_bound);
break;
case 'd':
if ((argv < end) && (!strcmp(*argv, "tips")))
{
argv++;
sw_dump_tips = true;
}
else
sw_dump_pages = true;
get_range(&argv, end, &d_lower_bound, &d_upper_bound);
break;
case 'f':
sw_fix = true;
break;
case 'o':
if (argv < end)
{
get_switch(argv, token);
if (token->swc_switch)
break;
fb_utils::copy_terminate(out_file, token->swc_string, sizeof(out_file));
ascii_out = out_file;
argv++;
}
case 'p':
sw_print = true;
get_range(&argv, end, &p_lower_bound, &p_upper_bound);
break;
case 'r':
sw_rebuild = true;
break;
case 's':
sw_store = true;
break;
case 't':
pg_type = atoi(*argv++);
break;
}
}
}
if (db_in)
{
rbdb = (rbdb*) RBDB_alloc((SLONG) (sizeof(struct rbdb) + strlen(db_in)));
strcpy(rbdb->rbdb_file.fil_name, db_in);
rbdb->rbdb_file.fil_length = strlen(db_in);
if (header = open_database(rbdb, pg_size))
get_next_file(rbdb, header);
// some systems don't care for this write sharing stuff...
if (rbdb && (sw_dump_tips || sw_dump_pages))
{
RBDB_close(rbdb);
if (rbdb->rbdb_valid)
tips = RMET_tips(db_in);
RBDB_open(rbdb);
}
}
gdbb = &tdbb_struct;
gdbb->tdbb_database = &dbb_struct;
gdbb->tdbb_transaction = &dull;
dull.tra_number = header->hdr_next_transaction;
gdbb->tdbb_database->dbb_max_records = (rbdb->rbdb_page_size - sizeof(struct data_page)) /
(sizeof(data_page::dpg_repeat) + offsetof(rhd, rhd_data));
gdbb->tdbb_database->dbb_pcontrol = &dim;
gdbb->tdbb_database->dbb_dp_per_pp =
(rbdb->rbdb_page_size - offsetof(pointer_page, ppg_page[0])) * 8 / 34;
gdbb->tdbb_database->dbb_pcontrol->pgc_bytes =
rbdb->rbdb_page_size - offsetof(page_inv_page, pip_bits[0]);
gdbb->tdbb_database->dbb_pcontrol->pgc_ppp = gdbb->tdbb_database->dbb_pcontrol->pgc_bytes * 8;
gdbb->tdbb_database->dbb_pcontrol->pgc_tpt =
(rbdb->rbdb_page_size - offsetof(tx_inv_page, tip_transactions[0])) * 4;
gdbb->tdbb_database->dbb_pcontrol->pgc_pip = 1;
if (ascii_out)
dbg_file = os_utils::fopen(ascii_out, "w");
if (sw_print && rbdb && header)
write_headers(dbg_file, rbdb, p_lower_bound, p_upper_bound);
if (sw_store && rbdb && header)
RSTORE(rbdb);
if (sw_checksum && rbdb && header)
checksum(rbdb, c_lower_bound, c_upper_bound, sw_fix);
if (sw_dump_tips && rbdb && header)
dump_tips(dbg_file, rbdb);
if (sw_dump_pages && rbdb && header)
dump(dbg_file, rbdb, d_lower_bound, d_upper_bound, pg_type);
if (sw_rebuild && rbdb && header)
rebuild(rbdb);
if (ascii_out)
fclose(dbg_file);
if (rbdb)
RBDB_close(rbdb);
while (rbdb)
{
rbdb* const next_db = rbdb->rbdb_next;
if (rbdb->rbdb_buffer1)
gds__free(rbdb->rbdb_buffer1);
if (rbdb->rbdb_buffer2)
gds__free(rbdb->rbdb_buffer2);
gds__free(rbdb);
rbdb = next_db;
}
return 0;
}
#ifdef HPUX
PAG CCH_fetch(WIN* x, USHORT y, int z)
{
/**************************************
*
* C C H _ f e t c h
*
**************************************
*
* Functional description
* This routine lets me link in
* DMP.C from JRD without having the
* linker piss all over it.
*
**************************************/
}
PAG CCH_release(WIN* x)
{
/**************************************
*
* C C H _ f e t c h
*
**************************************
*
* Functional description
* This routine lets me link in
* DMP.C from JRD without having the
* linker piss all over it.
*
**************************************/
}
#endif
void* RBDB_alloc(SLONG size)
{
/**************************************
*
* R B D B _ a l l o c
*
**************************************
*
* Functional description
* Allocate and zero a piece of memory.
*
**************************************/
return memset(gds__alloc(size), 0, size);
}
void RBDB_close( rbdb* rbdb)
{
/**************************************
*
* R B D B _ c l o s e
*
**************************************
*
* Functional description
*
**************************************/
for (; rbdb; rbdb = rbdb->rbdb_next)
close(rbdb->rbdb_file.fil_file);
}
void RBDB_open( rbdb* rbdb)
{
/**************************************
*
* R B D B _ o p e n
*
**************************************
*
* Functional description
* Open a database file.
*
**************************************/
if ((rbdb->rbdb_file.fil_file = os_utils::open(rbdb->rbdb_file.fil_name, O_RDWR, 0)) == -1)
{
db_error(errno);
}
}
PAG RBDB_read(rbdb* rbdb, SLONG page_number)
{
/**************************************
*
* R B D B _ r e a d
*
**************************************
*
* Functional description
* Read a database page.
*
**************************************/
int file = rbdb->rbdb_file.fil_file;
const FB_UINT64 offset = ((FB_UINT64) page_number) * ((FB_UINT64) rbdb->rbdb_page_size);
if (os_utils::lseek (file, offset, 0) == -1)
db_error(errno);
SSHORT length = rbdb->rbdb_page_size;
for (char* p = (SCHAR *) rbdb->rbdb_buffer1; length > 0;)
{
const SSHORT l = read(file, p, length);
if (l < 0)
db_error(errno);
else if (l == 0)
return NULL;
p += l;
length -= l;
}
rbdb->rbdb_file.fil_file = file;
return rbdb->rbdb_buffer1;
}
void RBDB_write( rbdb* rbdb, PAG page, SLONG page_number)
{
/**************************************
*
* R B D B _ w r i t e ( u n i x )
*
**************************************
*
* Functional description
* Write a database page.
*
**************************************/
page->pag_checksum = compute_checksum(rbdb, page);
const ULONG page_size = rbdb->rbdb_page_size;
int fd = rbdb->rbdb_file.fil_file;
const FB_UINT64 offset = ((FB_UINT64) page_number) * ((FB_UINT64) page_size);
if (os_utils::lseek (fd, offset, 0) == -1)
db_error(errno);
if (write(fd, page, page_size) == -1)
db_error(errno);
}
static void checksum( rbdb* rbdb, ULONG lower, ULONG upper, bool sw_fix)
{
/**************************************
*
* c h e c k s u m
*
**************************************
*
* Functional description
* read, compute, check, and correct
* checksums in this database.
*
**************************************/
TEXT s[128];
for (ULONG page_number = lower; page_number <= upper; page_number++)
{
pag* page = RBDB_read(rbdb, page_number);
if (!page)
return;
const USHORT old_checksum = page->pag_checksum;
const USHORT new_checksum = compute_checksum(rbdb, page);
if (sw_fix)
page->pag_checksum = new_checksum;
if (new_checksum == old_checksum)
sprintf(s, "checksum %5d is OK", old_checksum);
else
sprintf(s, "stored checksum %5d\tcomputed checksum %5d\t%s",
old_checksum, new_checksum, sw_fix ? "fixed" : "");
printf("page %9d\t%s\n", page_number, s);
}
}
static USHORT compute_checksum( const rbdb* rbdb, PAG page)
{
/**************************************
*
* c o m p u t e _ c h e c k s u m
*
**************************************
*
* Functional description
* compute checksum for a V3 page.
*
**************************************/
const ULONG* const end = (ULONG *) ((SCHAR *) page + rbdb->rbdb_page_size);
const USHORT old_checksum = page->pag_checksum;
page->pag_checksum = 0;
const ULONG* p = (ULONG *) page;
ULONG checksum = 0;
do {
checksum += *p++;
checksum += *p++;
checksum += *p++;
checksum += *p++;
checksum += *p++;
checksum += *p++;
checksum += *p++;
checksum += *p++;
} while (p < end);
page->pag_checksum = old_checksum;
if (checksum)
return checksum;
// If the page is all zeros, return an artificial checksum
for (p = (ULONG *) page; p < end;)
{
if (*p++)
return checksum;
}
// Page is all zeros -- invent a checksum
return 12345;
}
static void db_error( int status)
{
/**************************************
*
* d b _ e r r o r
*
**************************************
*
* Functional description
*
**************************************/
printf(strerror(status));
exit(FINI_ERROR);
}
static void dump(FILE* file, rbdb* rbdb, ULONG lower, ULONG upper, UCHAR pg_type)
{
/**************************************
*
* d u m p
*
**************************************
*
* Functional description
* dump the contents of some page
* or pages in the database.
*
**************************************/
ULONG sequence = 0;
if (rbdb->rbdb_last_page && upper == BIG_NUMBER)
upper = rbdb->rbdb_last_page;
PAG page;
while (page = RBDB_read(rbdb, lower))
{
if (page->pag_type == pag_transactions && tips)
{
for (const ULONG* tip = tips; tip[sequence]; sequence++)
{
if (tip[sequence] == lower)
break;
else if (!tip[sequence])
{
sequence = 0;
break;
}
}
}
else
sequence = 0;
if (pg_type && (page->pag_type != pg_type))
{
fprintf(file, "\nChanging page %d type from %d to %d\n", lower, page->pag_type, pg_type);
page->pag_type = pg_type;
}
DMP_fetched_page(page, lower, sequence, rbdb->rbdb_page_size);
const ULONG* p = (ULONG *) page;
const ULONG* const end = p + (rbdb->rbdb_page_size / sizeof(ULONG)) - 1;
while (!*p && p < end)
++p;
if (!*p)
fprintf(file, " Page is all zeroes.\n");
// This cannot be true because sw_fudge is never activated
//if (sw_fudge)
// RBDB_write(rbdb, page, lower);
if (++lower > upper)
break;
}
}
static void dump_tips( FILE* file, rbdb* rbdb)
{
/**************************************
*
* d u m p _ t i p s
*
**************************************
*
* Functional description
* dump the contents of tip pages
* in the database.
*
**************************************/
if (!tips)
fprintf(file, "not enough database. Store headers and look there\n");
PAG page;
ULONG sequence = 1;
for (const ULONG* tip = tips; *tip && (page = RBDB_read(rbdb, *tip)); sequence++)
{
DMP_fetched_page(page, *tip++, sequence, rbdb->rbdb_page_size);
}
}
static void format_header(const rbdb* rbdb, header_page* page, int page_size,
TraNumber oldest, TraNumber active, TraNumber next, ULONG imp)
{
/**************************************
*
* f o r m a t _ h e a d e r
*
**************************************
*
* Functional description
* Format a header page from inputs
*
**************************************/
memset(page, 0, page_size);
page->hdr_page_size = page_size;
page->pag_type = pag_header;
page->hdr_ods_version = ODS_VERSION | ODS_TYPE_CURRENT;
page->hdr_PAGES = 2;
page->hdr_oldest_transaction = oldest;
page->hdr_oldest_active = active;
page->hdr_next_transaction = next;
page->hdr_implementation = imp;
page->pag_checksum = compute_checksum(rbdb, page);
}
static void format_index_root(index_root_page* page,
int page_size, SSHORT relation_id, SSHORT count)
{
/**************************************
*
* f o r m a t _ i n d e x _ r o o t
*
**************************************
*
* Functional description
* Format an index root page, without any indexes for a start
*
**************************************/
memset(page, 0, page_size);
page->pag_type = pag_root;
page->irt_relation = relation_id;
page->irt_count = count;
}
// Unused function.
static void format_pointer(pointer_page* page,
int page_size,
SSHORT relation_id,
SSHORT sequence,
bool eof, SSHORT count,
const SLONG* page_vector)
{
/**************************************
*
* f o r m a t _ p o i n t e r
*
**************************************
*
* Functional description
* Format a pointer page. In addition of the buffer and page size,
* we need a relation id, a pointer page sequence (within relation),
* a flag indicated whether this is the last pointer page for the
* relation, and a count and vector of pages to point to.
*
**************************************/
memset(page, 0, page_size);
page->pag_type = pag_pointer;
page->ppg_sequence = sequence;
page->ppg_relation = relation_id;
page->ppg_count = count;
page->ppg_min_space = 0;
page->ppg_max_space = count;
if (eof)
page->pag_flags |= ppg_eof;
memcpy(page->ppg_page, page_vector, count * sizeof(SLONG));
}
static void format_pip( page_inv_page* page, int page_size, int last_flag)
{
/**************************************
*
* f o r m a t _ p i p
*
**************************************
*
* Functional description
* Fake a fully RBDB_allocated (all pages RBDB_allocated) page inventory
* page.
*
**************************************/
page->pag_type = pag_pages;
page->pag_flags = 0;
// Set all page bits to zero, indicating RBDB_allocated
const SSHORT bytes = page_size - offsetof(page_inv_page, pip_bits[0]);
memset(page->pip_bits, 0, bytes);
// If this is the last pip, make sure the last page (which
// will become the next pip) is marked free. When the
// time comes to RBDB_allocate the next page, that page will
// be formatted as the next pip.
if (last_flag)
page->pip_bits[bytes - 1] |= 1 << 7;
}
static void format_tip( tx_inv_page* page, int page_size, SLONG next_page)
{
/**************************************
*
* f o r m a t _ t i p
*
**************************************
*
* Functional description
* Fake a fully commit transaction inventory page.
*
**************************************/
page->pag_type = pag_transactions;
page->pag_flags = 0;
// The "next" tip page number is included for redundancy, but is not actually
// read by the engine, so can be safely left zero. If known, it would nice
// to supply it.
page->tip_next = next_page;
// Code for committed transaction is 3, so just fill all bytes with -1
const SSHORT bytes = page_size - offsetof(tx_inv_page, tip_transactions[0]);
memset(page->tip_transactions, -1, bytes);
}
static void get_next_file( rbdb* rbdb, header_page* header)
{
/**************************************
*
* g e t _ n e x t _ f i l e
*
**************************************
*
* Functional description
* If there's another file as part of
* this database, get it now.
*
**************************************/
rbdb** next = &rbdb->rbdb_next;
const UCHAR* p = header->hdr_data;
for (const UCHAR* const end = p + header->hdr_page_size; p < end && *p != HDR_end; p += 2 + p[1])
{
if (*p == HDR_file)
{
rbdb* next_rbdb = (rbdb*) RBDB_alloc(sizeof(struct rbdb) + (SSHORT) p[1]);
next_rbdb->rbdb_file.fil_length = (SSHORT) p[1];
strncpy(next_rbdb->rbdb_file.fil_name, p + 2, (SSHORT) p[1]);
*next = next_rbdb;
next = &next_rbdb->rbdb_next;
break;
}
}
}
static void get_range(TEXT*** argv, const TEXT* const* const end, ULONG* lower, ULONG* upper)
{
/**************************************
*
* g e t _ r a n g e
*
**************************************
*
* Functional description
* get a range out of the argument
* vector;
*
**************************************/
struct swc token_space;
swc* token = &token_space;
if (*argv < end)
{
get_switch(*argv, token);
if (token->swc_switch)
return;
++*argv;
TEXT c = 0;
const TEXT* p;
for (p = token->swc_string; *p; p++)
if (*p < '0' || *p > '9')
{
c = *p;
*p++ = 0;
break;
}
*upper = *lower = (ULONG) atoi(token->swc_string);
if (*p && (c == ':' || c == ','))
{
if (*p == '*')
*upper = BIG_NUMBER;
else
*upper = (ULONG) atoi(p);
return;
}
}
if (*argv < end)
{
get_switch(*argv, token);
if (token->swc_switch)
return;
if ((*token->swc_string == ':') || (*token->swc_string == ','))
{
const TEXT* p = token->swc_string;
if (*++p)
{
if (*p == '*')
*upper = BIG_NUMBER;
else
*upper = (ULONG) atoi(p);
}
else if (*argv++ < end)
{
get_switch(*argv, token);
if (token->swc_switch)
return;
}
}
if (*token->swc_string == '*')
*upper = BIG_NUMBER;
else
*upper = (ULONG) atoi(token->swc_string);
*argv++;
}
}
static void get_switch( TEXT** argv, swc* token)
{
/**************************************
*
* g e t _ s w i t c h
*
**************************************
*
* Functional description
* get the next argument in the argument
* vector;
*
**************************************/
token->swc_string = *argv;
if (*token->swc_string == '-')
{
token->swc_switch = true;
token->swc_string++;
}
else
token->swc_switch = false;
const int temp = strlen(token->swc_string) - 1;
if (token->swc_string[temp] == ',')
{
token->swc_string[temp] = '\0';
//token->swc_comma = true;
}
//else
// token->swc_comma = false;
}
static header_page* open_database( rbdb* rbdb, ULONG pg_size)
{
/**************************************
*
* o p e n _ d a t a b a s e
*
**************************************
*
* Functional description
* Open a database and setup the
* rbdb. Return a pointer to the
* header page page header;
*
**************************************/
UCHAR temp[1024];
RBDB_open(rbdb);
rbdb->rbdb_page_size = sizeof(temp);
rbdb->rbdb_buffer1 = (PAG) temp;
rbdb->rbdb_valid = true;
header_page* header = (header_page*) RBDB_read(rbdb, (SLONG) 0);
if (header->pag_type != pag_header)
{
printf("header page has wrong type, expected %d found %d!\n", pag_header, header->pag_type);
rbdb->rbdb_valid = false;
}
if (header->hdr_ods_version != ODS_VERSION | ODS_TYPE_CURRENT)
{
printf("Wrong ODS version, expected %d type %04x, encountered %d type %04x.\n",
ODS_VERSION, ODS_TYPE_CURRENT,
header->hdr_ods_version & ~ODS_TYPE_MASK,
header->hdr_ods_version & ODS_TYPE_MASK
);
rbdb->rbdb_valid = false;
}
if (pg_size && (pg_size != header->hdr_page_size))
{
printf("Using page size %d\n", pg_size);
header->hdr_page_size = pg_size;
rbdb->rbdb_valid = false;
}
else if (!header->hdr_page_size)
{
printf("Using page size 1024\n");
header->hdr_page_size = 1024;
rbdb->rbdb_valid = false;
}
printf("\nDatabase \"%s\"\n\n", rbdb->rbdb_file.fil_name);
rbdb->rbdb_page_size = header->hdr_page_size;
rbdb->rbdb_map_count = rbdb->rbdb_map_length / rbdb->rbdb_page_size;
rbdb->rbdb_buffer1 = (PAG) RBDB_alloc(rbdb->rbdb_page_size);
rbdb->rbdb_buffer2 = (PAG) RBDB_alloc(rbdb->rbdb_page_size);
return header;
}
static void print_db_header( FILE* file, const header_page* header)
{
/**************************************
*
* p r i n t _ d b _ h e a d e r
*
**************************************
*
* Functional description
* Print database header page.
*
**************************************/
fprintf(file, "Database header page information:\n");
fprintf(file, " Page size\t\t\t%d\n", header->hdr_page_size);
fprintf(file, " ODS version\t\t\t%d type %04x\n",
header->hdr_ods_version & ~ODS_TYPE_MASK,
header->hdr_ods_version & ODS_TYPE_MASK);
fprintf(file, " PAGES\t\t\t%d\n", header->hdr_PAGES);
fprintf(file, " Oldest transaction\t\t%lu\n", header->hdr_oldest_transaction);
fprintf(file, " Oldest active\t\t%lu\n", header->hdr_oldest_active);
fprintf(file, " Oldest snapshot\t\t%lu\n", header->hdr_oldest_snapshot);
fprintf(file, " Next transaction\t\t%lu\n", header->hdr_next_transaction);
fprintf(file, " Data pages per pointer page\t%ld\n", gdbb->tdbb_database->dbb_dp_per_pp);
fprintf(file, " Max records per page\t%ld\n", gdbb->tdbb_database->dbb_max_records);
//fprintf (" Sequence number %d\n", header->hdr_sequence);
//fprintf (" Creation date \n", header->hdr_creation_date);
fprintf(file, " Next attachment ID\t\t%ld\n", header->hdr_attachment_id);
fprintf(file, " Implementation ID\t\t%ld\n", header->hdr_implementation);
fprintf(file, " Shadow count\t\t%ld\n", header->hdr_shadow_count);
tm time;
isc_decode_timestamp(header->hdr_creation_date, &time);
fprintf(file, " Creation date:\t\t%s %d, %d %d:%02d:%02d\n",
FB_SHORT_MONTHS[time.tm_mon], time.tm_mday, time.tm_year + 1900,
time.tm_hour, time.tm_min, time.tm_sec);
fprintf(file, " Cache buffers\t\t%ld\n", header->hdr_cache_buffers);
fprintf(file, "\n Variable header data:\n");
SLONG number;
const UCHAR* p = header->hdr_data;
for (const UCHAR* const end = p + header->hdr_page_size;
p < end && *p != HDR_end;
p += 2 + p[1])
{
switch (*p)
{
case HDR_root_file_name:
fprintf(file, "\tRoot file name: %*s\n", p[1], p + 2);
break;
/*
case HDR_journal_server:
fprintf(file, "\tJournal server: %*s\n", p[1], p + 2);
break;
*/
case HDR_file:
fprintf(file, "\tContinuation file: %*s\n", p[1], p + 2);
break;
case HDR_last_page:
memcpy(&number, p + 2, sizeof(number));
fprintf(file, "\tLast logical page: %ld\n", number);
break;
/*
case HDR_unlicensed:
memcpy(&number, p + 2, sizeof(number));
fprintf(file, "\tUnlicensed accesses: %ld\n", number);
break;
*/
case HDR_sweep_interval:
memcpy(&number, p + 2, sizeof(number));
fprintf(file, "\tSweep interval: %ld\n", number);
break;
/*
case HDR_log_name:
fprintf(file, "\tReplay logging file: %*s\n", p[1], p + 2);
break;
case HDR_journal_file:
fprintf(file, "\tJournal file: %*s\n", p[1], p + 2);
break;
*/
case HDR_password_file_key:
fprintf(file, "\tPassword file key: (can't print)\n");
break;
/*
case HDR_backup_info:
fprintf(file, "\tBackup info: (can't print)\n");
break;
case HDR_cache_file:
fprintf(file, "\tShared cache file: %*s\n", p[1], p + 2);
break;
*/
default:
fprintf(file, "\tUnrecognized option %d, length %d\n", p[0], p[1]);
}
}
fprintf(file, "\n\n");
}
static void rebuild( rbdb* rbdb)
{
/**************************************
*
* r e b u i l d
*
**************************************
*
* Functional description
* Write out an improved database.
*
**************************************/
const ULONG page_size = rbdb->rbdb_page_size;
pag* page = rbdb->rbdb_buffer1;
const ULONG* page_numbers = PPG_NUMBERS;
for (ULONG number = 5898; (number < 5899) && (page = RBDB_read(rbdb, number)); number++)
{
pointer_page* pointer = (pointer_page*) page;
// format_pointer (page, page_size, 25, 3, true, 37, page_numbers);
RBDB_write(rbdb, page, number);
}
}
static void write_headers(FILE* file, rbdb* rbdb, ULONG lower, ULONG upper)
{
/**************************************
*
* w r i t e _ h e a d e r s
*
**************************************
*
* Functional description
* Print out the page headers.
*
**************************************/
const pag* page;
for (ULONG page_number = lower;
(page_number <= upper) && (page = RBDB_read(rbdb, page_number));
page_number++)
{
fprintf(file, "page %d, ", page_number);
switch (page->pag_type)
{
case pag_header:
fprintf(file, "header page, checksum %d\n", page->pag_checksum);
print_db_header(file, (header_page*) page);
break;
case pag_pages:
{
fprintf(file, "page inventory page, checksum %d\n", page->pag_checksum);
const page_inv_page* pip = (page_inv_page*) page;
fprintf(file, "\tlowest free page %d\n\n", pip->pip_min);
}
break;
case pag_transactions:
fprintf(file, "TIP page, checksum %d\n", page->pag_checksum);
fprintf(file, "\tnext tip for database %ld\n\n", ((tx_inv_page*) page)->tip_next);
break;
case pag_pointer:
{
fprintf(file, "pointer page, checksum %d\n", page->pag_checksum);
const pointer_page* pointer = (pointer_page*) page;
fprintf(file, "\trelation %d, sequence %ld, next pip %ld, active slots %d\n",
pointer->ppg_relation, pointer->ppg_sequence,
pointer->ppg_next, pointer->ppg_count);
fprintf(file, "\tfirst slot with space %d, last slot with space %d\n",
pointer->ppg_min_space, pointer->ppg_max_space);
fprintf(file, "\t%s\n",
(pointer->pag_flags & ppg_eof) ? "last pointer for relation\n" : "");
}
break;
case pag_data:
{
fprintf(file, "data page, checksum %d\n", page->pag_checksum);
const data_page* data = (data_page*) page;
fprintf(file, "\trelation %d, sequence %ld, records on page %d\n",
data->dpg_relation, data->dpg_sequence, data->dpg_count);
fprintf(file, "\t%s%s%s%s\n",
(data->pag_flags & dpg_orphan) ? "orphan " : "",
(data->pag_flags & dpg_full) ? "full " : "",
(data->pag_flags & dpg_large) ? "contains a large object" : "",
(data->pag_flags) ? "\n" : "");
}
break;
case pag_root:
{
fprintf(file, "index root page, checksum %d\n", page->pag_checksum);
const index_root_page* index_root = (index_root_page*) page;
fprintf(file, "\trelation %d, number of indexes %d\n\n",
index_root->irt_relation, index_root->irt_count);
}
break;
case pag_index:
{
fprintf(file, "btree page (bucket), checksum %d\n", page->pag_checksum);
const btree_page* bucket = (btree_page*) page;
fprintf(file, "\trelation %d, right sibling bucket: %ld,\n",
bucket->btr_relation, bucket->btr_sibling);
fprintf(file, "\tdata length %d, index id %d, level %d\n",
bucket->btr_length, bucket->btr_id, bucket->btr_level);
fprintf(file, "\t%s%s%s\n",
(bucket->pag_flags & btr_leftmost) ? "leftmost " : "",
(bucket->pag_flags & btr_not_prop) ? "all duplicates " : "",
(bucket->Pag_flags & btr_marked) ? "marked for delete" : "");
}
break;
case pag_blob:
{
fprintf(file, "blob page, checksum %d\n", page->pag_checksum);
const blob_page* blob = (blob_page*) page;
fprintf(file, "\tlead page: %ld, sequence: %ld, length: %d\n",
blob->blp_lead_page, blob->blp_sequence, blob->blp_length);
fprintf(file, "\tcontains %s\n",
(blob->pag_flags & blp_pointers) ? "pointers" : "data");
}
break;
case pag_ids:
fprintf(file, "generator page, checksum %d\n\n", page->pag_checksum);
break;
case pag_log:
fprintf(dbg_file, "write-ahead log info page, checksum %d\n\n", page->pag_checksum);
break;
default:
fprintf(file, "unknown page type\n\n");
break;
}
}
}
```
|
```python
from __future__ import print_function
from deco import *
import time
@concurrent
def work(i):
time.sleep(0.1)
return i
@synchronized
def run():
output = []
for i in range(100):
output.append(work(i))
return output
if __name__ == "__main__":
start = time.time()
print(run())
print("Executing in serial should take 10 seconds")
print("Executing in parallel took:", time.time() - start, "seconds")
```
|
A Day in the Hayfields is a 1904 British silent documentary film directed by Cecil M. Hepworth filmed on location in the United Kingdom.
Synopsis
This is a documentary film showing the process of making hay as it was in the early 20th century United Kingdom. The cutting, gathering and stacking processes are all documented. At the end there is a shot of children playing in the newly mown hay. This film is significant in its depiction of pre-mechanized agriculture using horses instead of powered farm equipment.
References
External links
1904 films
1904 short films
British black-and-white films
British documentary films
Agriculture in the United Kingdom
History of agriculture in England
History of agriculture in the United Kingdom
|
```c++
# /* **************************************************************************
# * *
# * accompanying file LICENSE_1_0.txt or copy at
# * path_to_url
# * *
# ************************************************************************** */
#
# /* See path_to_url for most recent version. */
#
# ifndef BOOST_PREPROCESSOR_SEQ_DETAIL_IS_EMPTY_HPP
# define BOOST_PREPROCESSOR_SEQ_DETAIL_IS_EMPTY_HPP
#
# include <boost/preprocessor/config/config.hpp>
# include <boost/preprocessor/arithmetic/dec.hpp>
# include <boost/preprocessor/logical/bool.hpp>
# include <boost/preprocessor/logical/compl.hpp>
# include <boost/preprocessor/seq/size.hpp>
#
/* An empty seq is one that is just BOOST_PP_SEQ_NIL */
#
# define BOOST_PP_SEQ_DETAIL_IS_EMPTY(seq) \
BOOST_PP_COMPL \
( \
BOOST_PP_SEQ_DETAIL_IS_NOT_EMPTY(seq) \
) \
/**/
#
# define BOOST_PP_SEQ_DETAIL_IS_EMPTY_SIZE(size) \
BOOST_PP_COMPL \
( \
BOOST_PP_SEQ_DETAIL_IS_NOT_EMPTY_SIZE(size) \
) \
/**/
#
# define BOOST_PP_SEQ_DETAIL_IS_NOT_EMPTY(seq) \
BOOST_PP_SEQ_DETAIL_IS_NOT_EMPTY_SIZE(BOOST_PP_SEQ_DETAIL_EMPTY_SIZE(seq)) \
/**/
#
# define BOOST_PP_SEQ_DETAIL_IS_NOT_EMPTY_SIZE(size) \
BOOST_PP_BOOL(size) \
/**/
#
# define BOOST_PP_SEQ_DETAIL_EMPTY_SIZE(seq) \
BOOST_PP_DEC(BOOST_PP_SEQ_SIZE(seq (nil))) \
/**/
#
# endif
```
|
The Barrington Area Library, located at 505 N. Northwest Highway in Barrington, Illinois, serves the approximately 42,157 residents of the Barrington Public Library District. The largest geographic public library district in Illinois, the Barrington Public Library District covers a area in Cook, Lake, Kane, and McHenry counties, and encompasses all or part of the communities of Barrington, Barrington Hills, Deer Park, Lake Barrington, North Barrington, South Barrington, Tower Lakes, Algonquin, Fox River Grove, Hoffman Estates, Inverness, Kildeer, Lake Zurich, Palatine, Port Barrington, and some unincorporated areas.
Located in the center of the library district, the library building houses a collection of 330,000 books, audiobooks, CDs, DVDs, audio and video downloads, and other items. The library's park-like campus includes a sculpture garden, and a series of gardens designed to spotlight native plants. Wi-fi service is available throughout the building and grounds. Advanced self-check out and return systems are used, along with 3D printing services.
The library presents cultural events, an art gallery, book discussions for all ages, computer and technology classes, business workshops, and a wide variety of children's programming in the library's meeting rooms, which are also used for meetings by over 300 nonprofit community organizations. Annual circulation is approximately 1,186,681, and more than 415,242 people visit the library each year.
History
The Barrington Area Library started in 1914 with a $1,000 bequest from Caroline Ela. When voters declined to create a tax-supported library, the Barrington Woman’s Club established a library in a local drug store with donated books and a volunteer staff. After its 1915 opening, the library made several moves to larger quarters until 1924, when the Barrington Village Board offered space in Village Hall. In 1925, Barrington residents approved a library tax and the Woman’s Club turned the library over to the village.
The library remained in the Village Hall until 1957 when a new library designed by architect Ralph Stoetzel was constructed at Monument and Hough Streets. This colonial-style building now serves as the offices for Barrington Township. Jennie Lines was hired as the first full-time librarian in 1926. In the coming years, interest grew in forming a library district to serve the surrounding communities. In 1969 and 1970, referendums were passed which made the village library a district library serving the communities the district includes today.
The library's current site was donated by the Jewel and Kendall Companies in 1972. A 1975 bond issue funded a new building designed by Coder Taylor Associates, which opened in 1978. In 1989, the architectural firm of Ross Barney + Jankowski was hired to design an addition to the library, which was completed in 1993. 20 years after the first addition, the architectural firm Engberg Anderson, Inc was hired to completely renovate the building and design a small addition, which was completed in 2014. The new Youth Services department opened in January 2014, and features an interactive children's play area with a stage, play costumes, puppet theater, and slide, a giant Light Bright Wall, interactive video Word Wall and Digital Pond, a Pretend Marketplace, Imagination Playground and much more. The library's renovation features enhanced meeting rooms, a Smart Room meeting room, a large Business and Technology Center with computer lab, MakerLab, Digital Studio, conference room, media:scapes, business pods and more.
Awards
American Library Association John Cotton Dana Library Public Relations Award, 2004
North Suburban Library System Library of the Year Award, 1994–1995
References
External links
Public libraries in Illinois
Buildings and structures in Barrington, Illinois
Libraries in Cook County, Illinois
Library buildings completed in 1978
|
Subtraction (which is signified by the minus sign ) is one of the four arithmetic operations along with addition, multiplication and division. Subtraction is an operation that represents removal of objects from a collection. For example, in the adjacent picture, there are peaches—meaning 5 peaches with 2 taken away, resulting in a total of 3 peaches. Therefore, the difference of 5 and 2 is 3; that is, . While primarily associated with natural numbers in arithmetic, subtraction can also represent removing or decreasing physical and abstract quantities using different kinds of objects including negative numbers, fractions, irrational numbers, vectors, decimals, functions, and matrices.
In a sense, subtraction is the inverse of addition. That is, if and only if . In words: the difference of two numbers is the number that gives the first one when added to the second one.
Subtraction follows several important patterns. It is anticommutative, meaning that changing the order changes the sign of the answer. It is also not associative, meaning that when one subtracts more than two numbers, the order in which subtraction is performed matters. Because is the additive identity, subtraction of it does not change a number. Subtraction also obeys predictable rules concerning related operations, such as addition and multiplication. All of these rules can be proven, starting with the subtraction of integers and generalizing up through the real numbers and beyond. General binary operations that follow these patterns are studied in abstract algebra.
Notation and terminology
Subtraction is usually written using the minus sign "−" between the terms; that is, in infix notation. The result is expressed with an equals sign. For example,
(pronounced as "two minus one equals one")
(pronounced as "four minus two equals two")
(pronounced as "six minus three equals three")
(pronounced as "four minus six equals negative two")
There are also situations where subtraction is "understood", even though no symbol appears:
A column of two numbers, with the lower number in red, usually indicates that the lower number in the column is to be subtracted, with the difference written below, under a line. This is most common in accounting.
Formally, the number being subtracted is known as the subtrahend, while the number it is subtracted from is the minuend. The result is the difference. That is,
.
All of this terminology derives from Latin. "Subtraction" is an English word derived from the Latin verb subtrahere, which in turn is a compound of sub "from under" and trahere "to pull". Thus, to subtract is to draw from below, or to take away. Using the gerundive suffix -nd results in "subtrahend", "thing to be subtracted". Likewise, from minuere "to reduce or diminish", one gets "minuend", which means "thing to be diminished".
Of integers and real numbers
Integers
Imagine a line segment of length b with the left end labeled a and the right end labeled c.
Starting from a, it takes b steps to the right to reach c. This movement to the right is modeled mathematically by addition:
a + b = c.
From c, it takes b steps to the left to get back to a. This movement to the left is modeled by subtraction:
c − b = a.
Now, a line segment labeled with the numbers , , and . From position 3, it takes no steps to the left to stay at 3, so . It takes 2 steps to the left to get to position 1, so . This picture is inadequate to describe what would happen after going 3 steps to the left of position 3. To represent such an operation, the line must be extended.
To subtract arbitrary natural numbers, one begins with a line containing every natural number (0, 1, 2, 3, 4, 5, 6, ...). From 3, it takes 3 steps to the left to get to 0, so . But is still invalid, since it again leaves the line. The natural numbers are not a useful context for subtraction.
The solution is to consider the integer number line (..., −3, −2, −1, 0, 1, 2, 3, ...). This way, it takes 4 steps to the left from 3 to get to −1:
.
Natural numbers
Subtraction of natural numbers is not closed: the difference is not a natural number unless the minuend is greater than or equal to the subtrahend. For example, 26 cannot be subtracted from 11 to give a natural number. Such a case uses one of two approaches:
Conclude that 26 cannot be subtracted from 11; subtraction becomes a partial function.
Give the answer as an integer representing a negative number, so the result of subtracting 26 from 11 is −15.
Real numbers
The field of real numbers can be defined specifying only two binary operations, addition and multiplication, together with unary operations yielding additive and multiplicative inverses. The subtraction of a real number (the subtrahend) from another (the minuend) can then be defined as the addition of the minuend and the additive inverse of the subtrahend. For example, . Alternatively, instead of requiring these unary operations, the binary operations of subtraction and division can be taken as basic.
Properties
Anti-commutativity
Subtraction is anti-commutative, meaning that if one reverses the terms in a difference left-to-right, the result is the negative of the original result. Symbolically, if a and b are any two numbers, then
a − b = −(b − a).
Non-associativity
Subtraction is non-associative, which comes up when one tries to define repeated subtraction. In general, the expression
"a − b − c"
can be defined to mean either (a − b) − c or a − (b − c), but these two possibilities lead to different answers. To resolve this issue, one must establish an order of operations, with different orders yielding different results.
Predecessor
In the context of integers, subtraction of one also plays a special role: for any integer a, the integer is the largest integer less than a, also known as the predecessor of a.
Units of measurement
When subtracting two numbers with units of measurement such as kilograms or pounds, they must have the same unit. In most cases, the difference will have the same unit as the original numbers.
Percentages
Changes in percentages can be reported in at least two forms, percentage change and percentage point change. Percentage change represents the relative change between the two quantities as a percentage, while percentage point change is simply the number obtained by subtracting the two percentages.
As an example, suppose that 30% of widgets made in a factory are defective. Six months later, 20% of widgets are defective. The percentage change is = − = %, while the percentage point change is −10 percentage points.
In computing
The method of complements is a technique used to subtract one number from another using only the addition of positive numbers. This method was commonly used in mechanical calculators, and is still used in modern computers.
To subtract a binary number y (the subtrahend) from another number x (the minuend), the ones' complement of y is added to x and one is added to the sum. The leading digit "1" of the result is then discarded.
The method of complements is especially useful in binary (radix 2) since the ones' complement is very easily obtained by inverting each bit (changing "0" to "1" and vice versa). And adding 1 to get the two's complement can be done by simulating a carry into the least significant bit. For example:
01100100 (x, equals decimal 100)
- 00010110 (y, equals decimal 22)
becomes the sum:
01100100 (x)
+ 11101001 (ones' complement of y)
+ 1 (to get the two's complement)
——————————
101001110
Dropping the initial "1" gives the answer: 01001110 (equals decimal 78)
The teaching of subtraction in schools
Methods used to teach subtraction to elementary school vary from country to country, and within a country, different methods are adopted at different times. In what is known in the United States as traditional mathematics, a specific process is taught to students at the end of the 1st year (or during the 2nd year) for use with multi-digit whole numbers, and is extended in either the fourth or fifth grade to include decimal representations of fractional numbers.
In America
Almost all American schools currently teach a method of subtraction using borrowing or regrouping (the decomposition algorithm) and a system of markings called crutches. Although a method of borrowing had been known and published in textbooks previously, the use of crutches in American schools spread after William A. Brownell published a study—claiming that crutches were beneficial to students using this method. This system caught on rapidly, displacing the other methods of subtraction in use in America at that time.
In Europe
Some European schools employ a method of subtraction called the Austrian method, also known as the additions method. There is no borrowing in this method. There are also crutches (markings to aid memory), which vary by country.
Comparing the two main methods
Both these methods break up the subtraction as a process of one digit subtractions by place value. Starting with a least significant digit, a subtraction of the subtrahend:
sj sj−1 ... s1
from the minuend
mk mk−1 ... m1,
where each si and mi is a digit, proceeds by writing down , , and so forth, as long as si does not exceed mi. Otherwise, mi is increased by 10 and some other digit is modified to correct for this increase. The American method corrects by attempting to decrease the minuend digit mi+1 by one (or continuing the borrow leftwards until there is a non-zero digit from which to borrow). The European method corrects by increasing the subtrahend digit si+1 by one.
Example: 704 − 512.
The minuend is 704, the subtrahend is 512. The minuend digits are , and . The subtrahend digits are , and . Beginning at the one's place, 4 is not less than 2 so the difference 2 is written down in the result's one's place. In the ten's place, 0 is less than 1, so the 0 is increased by 10, and the difference with 1, which is 9, is written down in the ten's place. The American method corrects for the increase of ten by reducing the digit in the minuend's hundreds place by one. That is, the 7 is struck through and replaced by a 6. The subtraction then proceeds in the hundreds place, where 6 is not less than 5, so the difference is written down in the result's hundred's place. We are now done, the result is 192.
The Austrian method does not reduce the 7 to 6. Rather it increases the subtrahend hundreds digit by one. A small mark is made near or below this digit (depending on the school). Then the subtraction proceeds by asking what number when increased by 1, and 5 is added to it, makes 7. The answer is 1, and is written down in the result's hundreds place.
There is an additional subtlety in that the student always employs a mental subtraction table in the American method. The Austrian method often encourages the student to mentally use the addition table in reverse. In the example above, rather than adding 1 to 5, getting 6, and subtracting that from 7, the student is asked to consider what number, when increased by 1, and 5 is added to it, makes 7.
Subtraction by hand
Austrian method
Example:
Subtraction from left to right
Example:
American method
In this method, each digit of the subtrahend is subtracted from the digit above it starting from right to left. If the top number is too small to subtract the bottom number from it, we add 10 to it; this 10 is "borrowed" from the top digit to the left, which we subtract 1 from. Then we move on to subtracting the next digit and borrowing as needed, until every digit has been subtracted. Example:
Trade first
A variant of the American method where all borrowing is done before all subtraction.
Example:
Partial differences
The partial differences method is different from other vertical subtraction methods because no borrowing or carrying takes place. In their place, one places plus or minus signs depending on whether the minuend is greater or smaller than the subtrahend. The sum of the partial differences is the total difference.
Example:
Nonvertical methods
Counting up
Instead of finding the difference digit by digit, one can count up the numbers between the subtrahend and the minuend.
Example:
1234 − 567 = can be found by the following steps:
Add up the value from each step to get the total difference: .
Breaking up the subtraction
Another method that is useful for mental arithmetic is to split up the subtraction into small steps.
Example:
1234 − 567 = can be solved in the following way:
1234 − 500 = 734
734 − 60 = 674
674 − 7 = 667
Same change
The same change method uses the fact that adding or subtracting the same number from the minuend and subtrahend does not change the answer. One simply adds the amount needed to get zeros in the subtrahend.
Example:
"1234 − 567 =" can be solved as follows:
See also
Absolute difference
Decrement
Elementary arithmetic
Method of complements
Negative number
Plus and minus signs
Notes
References
Bibliography
Brownell, W.A. (1939). Learning as reorganization: An experimental study in third-grade arithmetic, Duke University Press.
Subtraction in the United States: An Historical Perspective, Susan Ross, Mary Pratt-Cotter, The Mathematics Educator, Vol. 8, No. 1 (original publication) and Vol. 10, No. 1 (reprint.) PDF
External links
Printable Worksheets: Subtraction Worksheets, One Digit Subtraction, Two Digit Subtraction, Four Digit Subtraction, and More Subtraction Worksheets
Subtraction Game at cut-the-knot
Subtraction on a Japanese abacus selected from Abacus: Mystery of the Bead
Elementary arithmetic
|
```kotlin
package github.nisrulz.example.customview
import android.content.Context
import android.graphics.Color
import android.util.AttributeSet
import android.widget.LinearLayout
import android.widget.TextView
import androidx.core.content.withStyledAttributes
class CustomView2XmlLayoutInflation @JvmOverloads constructor(
context: Context,
attrs: AttributeSet? = null,
defStyleAttr: Int = 0
) : LinearLayout(context, attrs, defStyleAttr) {
private val view by lazy { inflate(context, R.layout.custom_view_2, this) }
private lateinit var title: TextView
private lateinit var subtitle: TextView
init {
// Init Views
view?.apply {
title = findViewById(R.id.title)
subtitle = findViewById(R.id.subtitle)
}
// Apply data to views
context.withStyledAttributes(attrs, R.styleable.custom_view_2) {
val titleStr = getString(R.styleable.custom_view_2_title) ?: ""
setTitle(titleStr)
val subtitleStr = getString(R.styleable.custom_view_2_subtitle) ?: ""
setSubTitle(subtitleStr)
val bgColor = getColor(R.styleable.custom_view_2_bgColor, Color.BLACK)
setBackgroundColor(bgColor)
val txtColor = getColor(R.styleable.custom_view_2_txtColor, Color.WHITE)
val txtSize = getDimension(R.styleable.custom_view_2_txtSize, 8f)
title.apply {
setTextColor(txtColor)
textSize = txtSize
}
subtitle.apply {
setTextColor(txtColor)
textSize = txtSize
}
}
}
fun setTitle(str: String) {
title.text = str
}
fun setSubTitle(str: String) {
subtitle.text = str
}
}
```
|
Saint Andrew's chapel is a chapel located in the village of Kos, Slovakia. The building is believed to have been finished in 1409.
History
The village of Kos was mentioned for the first time in 1367. The new settlement was called Andreasdorf (Andrew's village) probably because of the chapel being consecrated to St. Andrew. In the later epoch, the name of the village was changed to Kos. According to the date inscribed into the central arch, St. Andrew's church was finished in 1409.
A Gothic chapel was part of the church. The interior of the chapel was painted with unique wall paintings which are now mostly destroyed.
Modern era
In the region of Prievidza, there is a mining industry of lignite and brown coal which influences the environment in the area. The chapel was situated in one of the affected parts of the village and was endangered. That is why the representatives of the regional restoration atelier of the Monumental institute in Banská Bystrica decided to save this historical building. A unique transportation in Slovak history was planned and the 400 tonne chapel was transported using a wheeled transporter borrowed from Germany on December 6, 2000. It is now situated in another part of Kos which is not affected by the pollution.
St. Andrew's church panorama
Chapels in Slovakia
|
```html
<h1>2-way binding to state</h1>
<p>You can control the tree state using 2-way binding.</p>
<p>The state includes the following:</p>
<table>
<tr>
<td>expandedNodeIds</td>
<td>dictionary of node IDs to booleans</td>
</tr>
<tr>
<td>selectedLeafNodeIds</td>
<td>dictionary of node IDs to booleans</td>
</tr>
<tr>
<td>activeNodeIds</td>
<td>dictionary of node IDs to booleans</td>
</tr>
<tr>
<td>hiddenNodeIds</td>
<td>dictionary of node IDs to booleans</td>
</tr>
<tr>
<td>focusedNodeId</td>
<td>node ID</td>
</tr>
</table>
<p>You can change the state reference and the tree will respond automatically, and also access the tree state at any time, as it is always updated via the 2-way binding.</p>
<p>Example:</p>
<code-example>{{ example }}</code-example>
<h2>!important note</h2>
<p>You must have an 'id' property on the nodes in order for this to work. Otherwise - the tree will automatically generate internal IDs which change every time you change the nodes array.</p>
<h2>Persist state to localstorage</h2>
<p>This example is using the 2 way binding to tree state to auto save & restore from localstorage:</p>
<code-example>{{ localStorage }}</code-example>
<h3>Demo</h3>
<p><a href="path_to_url" target="_blank">Source Code</a></p>
<div class="demo-container">
<app-state-binding-demo></app-state-binding-demo>
</div>
<h2>Using API</h2>
<p>Alternatively, you can use <code>getState</code>, <code>setState</code> and <code>subscribe</code> on treeModel API. <code>subscribe</code> will callback a function every time state changes.</p>
<code-example>{{ api }}</code-example>
```
|
```c++
/*
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "SkAAClip.h"
#include "SkCanvas.h"
#include "SkMask.h"
#include "SkPath.h"
#include "SkRandom.h"
#include "Test.h"
static bool operator==(const SkMask& a, const SkMask& b) {
if (a.fFormat != b.fFormat || a.fBounds != b.fBounds) {
return false;
}
if (!a.fImage && !b.fImage) {
return true;
}
if (!a.fImage || !b.fImage) {
return false;
}
size_t wbytes = a.fBounds.width();
switch (a.fFormat) {
case SkMask::kBW_Format:
wbytes = (wbytes + 7) >> 3;
break;
case SkMask::kA8_Format:
case SkMask::k3D_Format:
break;
case SkMask::kLCD16_Format:
wbytes <<= 1;
break;
case SkMask::kARGB32_Format:
wbytes <<= 2;
break;
default:
SkDEBUGFAIL("unknown mask format");
return false;
}
const int h = a.fBounds.height();
const char* aptr = (const char*)a.fImage;
const char* bptr = (const char*)b.fImage;
for (int y = 0; y < h; ++y) {
if (memcmp(aptr, bptr, wbytes)) {
return false;
}
aptr += wbytes;
bptr += wbytes;
}
return true;
}
static void copyToMask(const SkRegion& rgn, SkMask* mask) {
mask->fFormat = SkMask::kA8_Format;
if (rgn.isEmpty()) {
mask->fBounds.setEmpty();
mask->fRowBytes = 0;
mask->fImage = NULL;
return;
}
mask->fBounds = rgn.getBounds();
mask->fRowBytes = mask->fBounds.width();
mask->fImage = SkMask::AllocImage(mask->computeImageSize());
sk_bzero(mask->fImage, mask->computeImageSize());
SkImageInfo info = SkImageInfo::Make(mask->fBounds.width(),
mask->fBounds.height(),
kAlpha_8_SkColorType,
kPremul_SkAlphaType);
SkBitmap bitmap;
bitmap.installPixels(info, mask->fImage, mask->fRowBytes);
// canvas expects its coordinate system to always be 0,0 in the top/left
// so we translate the rgn to match that before drawing into the mask.
//
SkRegion tmpRgn(rgn);
tmpRgn.translate(-rgn.getBounds().fLeft, -rgn.getBounds().fTop);
SkCanvas canvas(bitmap);
canvas.clipRegion(tmpRgn);
canvas.drawColor(SK_ColorBLACK);
}
static SkIRect rand_rect(SkRandom& rand, int n) {
int x = rand.nextS() % n;
int y = rand.nextS() % n;
int w = rand.nextU() % n;
int h = rand.nextU() % n;
return SkIRect::MakeXYWH(x, y, w, h);
}
static void make_rand_rgn(SkRegion* rgn, SkRandom& rand) {
int count = rand.nextU() % 20;
for (int i = 0; i < count; ++i) {
rgn->op(rand_rect(rand, 100), SkRegion::kXOR_Op);
}
}
static bool operator==(const SkRegion& rgn, const SkAAClip& aaclip) {
SkMask mask0, mask1;
copyToMask(rgn, &mask0);
aaclip.copyToMask(&mask1);
bool eq = (mask0 == mask1);
SkMask::FreeImage(mask0.fImage);
SkMask::FreeImage(mask1.fImage);
return eq;
}
static bool equalsAAClip(const SkRegion& rgn) {
SkAAClip aaclip;
aaclip.setRegion(rgn);
return rgn == aaclip;
}
static void setRgnToPath(SkRegion* rgn, const SkPath& path) {
SkIRect ir;
path.getBounds().round(&ir);
rgn->setPath(path, SkRegion(ir));
}
// aaclip.setRegion should create idential masks to the region
static void test_rgn(skiatest::Reporter* reporter) {
SkRandom rand;
for (int i = 0; i < 1000; i++) {
SkRegion rgn;
make_rand_rgn(&rgn, rand);
REPORTER_ASSERT(reporter, equalsAAClip(rgn));
}
{
SkRegion rgn;
SkPath path;
path.addCircle(0, 0, SkIntToScalar(30));
setRgnToPath(&rgn, path);
REPORTER_ASSERT(reporter, equalsAAClip(rgn));
path.reset();
path.moveTo(0, 0);
path.lineTo(SkIntToScalar(100), 0);
path.lineTo(SkIntToScalar(100 - 20), SkIntToScalar(20));
path.lineTo(SkIntToScalar(20), SkIntToScalar(20));
setRgnToPath(&rgn, path);
REPORTER_ASSERT(reporter, equalsAAClip(rgn));
}
}
static const SkRegion::Op gRgnOps[] = {
SkRegion::kDifference_Op,
SkRegion::kIntersect_Op,
SkRegion::kUnion_Op,
SkRegion::kXOR_Op,
SkRegion::kReverseDifference_Op,
SkRegion::kReplace_Op
};
static const char* gRgnOpNames[] = {
"DIFF", "INTERSECT", "UNION", "XOR", "REVERSE_DIFF", "REPLACE"
};
static void imoveTo(SkPath& path, int x, int y) {
path.moveTo(SkIntToScalar(x), SkIntToScalar(y));
}
static void icubicTo(SkPath& path, int x0, int y0, int x1, int y1, int x2, int y2) {
path.cubicTo(SkIntToScalar(x0), SkIntToScalar(y0),
SkIntToScalar(x1), SkIntToScalar(y1),
SkIntToScalar(x2), SkIntToScalar(y2));
}
static void test_path_bounds(skiatest::Reporter* reporter) {
SkPath path;
SkAAClip clip;
const int height = 40;
const SkScalar sheight = SkIntToScalar(height);
path.addOval(SkRect::MakeWH(sheight, sheight));
REPORTER_ASSERT(reporter, sheight == path.getBounds().height());
clip.setPath(path, NULL, true);
REPORTER_ASSERT(reporter, height == clip.getBounds().height());
// this is the trimmed height of this cubic (with aa). The critical thing
// for this test is that it is less than height, which represents just
// the bounds of the path's control-points.
//
// This used to fail until we tracked the MinY in the BuilderBlitter.
//
const int teardrop_height = 12;
path.reset();
imoveTo(path, 0, 20);
icubicTo(path, 40, 40, 40, 0, 0, 20);
REPORTER_ASSERT(reporter, sheight == path.getBounds().height());
clip.setPath(path, NULL, true);
REPORTER_ASSERT(reporter, teardrop_height == clip.getBounds().height());
}
static void test_empty(skiatest::Reporter* reporter) {
SkAAClip clip0, clip1;
REPORTER_ASSERT(reporter, clip0.isEmpty());
REPORTER_ASSERT(reporter, clip0.getBounds().isEmpty());
REPORTER_ASSERT(reporter, clip1 == clip0);
clip0.translate(10, 10); // should have no effect on empty
REPORTER_ASSERT(reporter, clip0.isEmpty());
REPORTER_ASSERT(reporter, clip0.getBounds().isEmpty());
REPORTER_ASSERT(reporter, clip1 == clip0);
SkIRect r = { 10, 10, 40, 50 };
clip0.setRect(r);
REPORTER_ASSERT(reporter, !clip0.isEmpty());
REPORTER_ASSERT(reporter, !clip0.getBounds().isEmpty());
REPORTER_ASSERT(reporter, clip0 != clip1);
REPORTER_ASSERT(reporter, clip0.getBounds() == r);
clip0.setEmpty();
REPORTER_ASSERT(reporter, clip0.isEmpty());
REPORTER_ASSERT(reporter, clip0.getBounds().isEmpty());
REPORTER_ASSERT(reporter, clip1 == clip0);
SkMask mask;
mask.fImage = NULL;
clip0.copyToMask(&mask);
REPORTER_ASSERT(reporter, NULL == mask.fImage);
REPORTER_ASSERT(reporter, mask.fBounds.isEmpty());
}
static void rand_irect(SkIRect* r, int N, SkRandom& rand) {
r->setXYWH(0, 0, rand.nextU() % N, rand.nextU() % N);
int dx = rand.nextU() % (2*N);
int dy = rand.nextU() % (2*N);
// use int dx,dy to make the subtract be signed
r->offset(N - dx, N - dy);
}
static void test_irect(skiatest::Reporter* reporter) {
SkRandom rand;
for (int i = 0; i < 10000; i++) {
SkAAClip clip0, clip1;
SkRegion rgn0, rgn1;
SkIRect r0, r1;
rand_irect(&r0, 10, rand);
rand_irect(&r1, 10, rand);
clip0.setRect(r0);
clip1.setRect(r1);
rgn0.setRect(r0);
rgn1.setRect(r1);
for (size_t j = 0; j < SK_ARRAY_COUNT(gRgnOps); ++j) {
SkRegion::Op op = gRgnOps[j];
SkAAClip clip2;
SkRegion rgn2;
bool nonEmptyAA = clip2.op(clip0, clip1, op);
bool nonEmptyBW = rgn2.op(rgn0, rgn1, op);
if (nonEmptyAA != nonEmptyBW || clip2.getBounds() != rgn2.getBounds()) {
SkDebugf("[%d %d %d %d] %s [%d %d %d %d] = BW:[%d %d %d %d] AA:[%d %d %d %d]\n",
r0.fLeft, r0.fTop, r0.right(), r0.bottom(),
gRgnOpNames[j],
r1.fLeft, r1.fTop, r1.right(), r1.bottom(),
rgn2.getBounds().fLeft, rgn2.getBounds().fTop,
rgn2.getBounds().right(), rgn2.getBounds().bottom(),
clip2.getBounds().fLeft, clip2.getBounds().fTop,
clip2.getBounds().right(), clip2.getBounds().bottom());
}
REPORTER_ASSERT(reporter, nonEmptyAA == nonEmptyBW);
REPORTER_ASSERT(reporter, clip2.getBounds() == rgn2.getBounds());
SkMask maskBW, maskAA;
copyToMask(rgn2, &maskBW);
clip2.copyToMask(&maskAA);
SkAutoMaskFreeImage freeBW(maskBW.fImage);
SkAutoMaskFreeImage freeAA(maskAA.fImage);
REPORTER_ASSERT(reporter, maskBW == maskAA);
}
}
}
static void test_path_with_hole(skiatest::Reporter* reporter) {
static const uint8_t gExpectedImage[] = {
0xFF, 0xFF, 0xFF, 0xFF,
0xFF, 0xFF, 0xFF, 0xFF,
0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00,
0xFF, 0xFF, 0xFF, 0xFF,
0xFF, 0xFF, 0xFF, 0xFF,
};
SkMask expected;
expected.fBounds.set(0, 0, 4, 6);
expected.fRowBytes = 4;
expected.fFormat = SkMask::kA8_Format;
expected.fImage = (uint8_t*)gExpectedImage;
SkPath path;
path.addRect(SkRect::MakeXYWH(0, 0,
SkIntToScalar(4), SkIntToScalar(2)));
path.addRect(SkRect::MakeXYWH(0, SkIntToScalar(4),
SkIntToScalar(4), SkIntToScalar(2)));
for (int i = 0; i < 2; ++i) {
SkAAClip clip;
clip.setPath(path, NULL, 1 == i);
SkMask mask;
clip.copyToMask(&mask);
SkAutoMaskFreeImage freeM(mask.fImage);
REPORTER_ASSERT(reporter, expected == mask);
}
}
static void test_really_a_rect(skiatest::Reporter* reporter) {
SkRRect rrect;
rrect.setRectXY(SkRect::MakeWH(100, 100), 5, 5);
SkPath path;
path.addRRect(rrect);
SkAAClip clip;
clip.setPath(path);
REPORTER_ASSERT(reporter, clip.getBounds() == SkIRect::MakeWH(100, 100));
REPORTER_ASSERT(reporter, !clip.isRect());
// This rect should intersect the clip, but slice-out all of the "soft" parts,
// leaving just a rect.
const SkIRect ir = SkIRect::MakeLTRB(10, -10, 50, 90);
clip.op(ir, SkRegion::kIntersect_Op);
REPORTER_ASSERT(reporter, clip.getBounds() == SkIRect::MakeLTRB(10, 0, 50, 90));
// the clip recognized that that it is just a rect!
REPORTER_ASSERT(reporter, clip.isRect());
}
#include "SkRasterClip.h"
static void copyToMask(const SkRasterClip& rc, SkMask* mask) {
if (rc.isAA()) {
rc.aaRgn().copyToMask(mask);
} else {
copyToMask(rc.bwRgn(), mask);
}
}
static bool operator==(const SkRasterClip& a, const SkRasterClip& b) {
if (a.isEmpty()) {
return b.isEmpty();
}
if (b.isEmpty()) {
return false;
}
SkMask ma, mb;
copyToMask(a, &ma);
copyToMask(b, &mb);
SkAutoMaskFreeImage aCleanUp(ma.fImage);
SkAutoMaskFreeImage bCleanUp(mb.fImage);
return ma == mb;
}
static void did_dx_affect(skiatest::Reporter* reporter, const SkScalar dx[],
size_t count, bool changed) {
const SkISize baseSize = SkISize::Make(10, 10);
SkIRect ir = { 0, 0, 10, 10 };
for (size_t i = 0; i < count; ++i) {
SkRect r;
r.set(ir);
SkRasterClip rc0(ir);
SkRasterClip rc1(ir);
SkRasterClip rc2(ir);
rc0.op(r, baseSize, SkRegion::kIntersect_Op, false);
r.offset(dx[i], 0);
rc1.op(r, baseSize, SkRegion::kIntersect_Op, true);
r.offset(-2*dx[i], 0);
rc2.op(r, baseSize, SkRegion::kIntersect_Op, true);
REPORTER_ASSERT(reporter, changed != (rc0 == rc1));
REPORTER_ASSERT(reporter, changed != (rc0 == rc2));
}
}
static void test_nearly_integral(skiatest::Reporter* reporter) {
// All of these should generate equivalent rasterclips
static const SkScalar gSafeX[] = {
0, SK_Scalar1/1000, SK_Scalar1/100, SK_Scalar1/10,
};
did_dx_affect(reporter, gSafeX, SK_ARRAY_COUNT(gSafeX), false);
static const SkScalar gUnsafeX[] = {
SK_Scalar1/4, SK_Scalar1/3,
};
did_dx_affect(reporter, gUnsafeX, SK_ARRAY_COUNT(gUnsafeX), true);
}
static void test_regressions() {
// these should not assert in the debug build
// bug was introduced in rev. 3209
{
SkAAClip clip;
SkRect r;
r.fLeft = 129.892181f;
r.fTop = 10.3999996f;
r.fRight = 130.892181f;
r.fBottom = 20.3999996f;
clip.setRect(r, true);
}
}
// Building aaclip meant aa-scan-convert a path into a huge clip.
// the old algorithm sized the supersampler to the size of the clip, which overflowed
// its internal 16bit coordinates. The fix was to intersect the clip+path_bounds before
// sizing the supersampler.
//
// Before the fix, the following code would assert in debug builds.
//
static void test_crbug_422693(skiatest::Reporter* reporter) {
SkRasterClip rc(SkIRect::MakeLTRB(-25000, -25000, 25000, 25000));
SkPath path;
path.addCircle(50, 50, 50);
rc.op(path, rc.getBounds().size(), SkRegion::kIntersect_Op, true);
}
DEF_TEST(AAClip, reporter) {
test_empty(reporter);
test_path_bounds(reporter);
test_irect(reporter);
test_rgn(reporter);
test_path_with_hole(reporter);
test_regressions();
test_nearly_integral(reporter);
test_really_a_rect(reporter);
test_crbug_422693(reporter);
}
```
|
Bogdan Śliwa (4 February 1922 in Kraków – 16 May 2003) was a Polish chess master.
Śliwa won the championship of Poland six times. In 1946, he won the first Polish Chess Championship after World War II in Sopot (5th POL-ch). In 1948, he took 3rd in Kraków (6th POL-ch; Kazimierz Makarczyk won). He won the Polish championship four consecutive times in 1951–1954. He won his last title at Wrocław 1960 (17th POL-ch).
In tournaments, Śliwa tied for 9-10th at Sopot 1951 (Ernő Gereben won). In 1952, he took 17th in Budapest (Paul Keres won). In 1954, he tied for 12-14th in Bucharest (Viktor Korchnoi won). His best achievement was 3rd, behind Luděk Pachman and László Szabó, at Mariánské Lázně (Marienbad) 1954 (zt). In 1955, he tied for 19th-21st in the Göteborg (interzonal), which David Bronstein won. In 1957, Śliwa tied for 2nd-4th with Oleg Neikirch and Alexander Matanović, behind Miroslav Filip in Sofia (zt). In 1959, he tied for 5-7th in Riga (Boris Spassky won). In 1962, he tied for 4-7th in Mariánské Lázně (Mark Taimanov won). In 1965, he tied for 12-14th in Belgrade (Milan Matulović won). In 1966, he took 9th in Polanica Zdrój (Vasily Smyslov won). In 1966, he tied for 9-10th in Tel Aviv (Svetozar Gligorić won).
One of Śliwa's most famous games is his win over Bronstein in the Immortal losing game.
He played for Poland in seven Chess Olympiads:
In 1952, at fourth board in the 10th Chess Olympiad in Helsinki (+7 –1 =4);
In 1956, at first board in the 12th Chess Olympiad in Moscow (+6 –4 =6);
In 1958, at first board in the 13th Chess Olympiad in Munich (+6 –6 =5);
In 1960, at first board in the 14th Chess Olympiad in Leipzig (+5 –5 =6);
In 1962, at first board in the 15th Chess Olympiad in Varna (+7 –4 =5);
In 1964, at third board in the 16th Chess Olympiad in Tel Aviv (+6 –2 =6);
In 1966, at fourth board in the 17th Chess Olympiad in Havana (+7 –3 =5).
He won the individual silver medal at Helsinki 1952.
FIDE awarded Śliwa the International Master title in 1953, and the Honorary Grandmaster title in 1987.
References
External links
1922 births
2003 deaths
Chess grandmasters
Correspondence chess grandmasters
Chess double grandmasters
Chess Olympiad competitors
Polish chess players
Place of death missing
Sportspeople from Kraków
20th-century chess players
|
The 1977 Virginia Tech Gobblers football team was an American football team that represented Virginia Tech as an independent during the 1977 NCAA Division I football season. In their fourth year under head coach Jimmy Sharpe, the Gobblers compiled an overall record of 3–7–1.
Schedule
Roster
The following players were members of the 1977 football team.
References
Virginia Tech
Virginia Tech Hokies football seasons
Virginia Tech Gobblers football
|
```smalltalk
/* ====================================================================
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.
==================================================================== */
namespace NPOI.SS.Formula
{
using System;
using System.Text;
using NPOI.SS.Formula.PTG;
/**
* @author Josh Micich
*/
public class FormulaShifter
{
public enum ShiftMode
{
Row,
Sheet
}
/**
* Extern sheet index of sheet where moving is occurring
*/
private int _externSheetIndex;
/**
* Sheet name of the sheet where moving is occurring,
* used for updating XSSF style 3D references on row shifts.
*/
private String _sheetName;
private int _firstMovedIndex;
private int _lastMovedIndex;
private int _amountToMove;
private int _srcSheetIndex;
private int _dstSheetIndex;
private ShiftMode _mode;
/**
* Create an instance for Shifting row.
*
* For example, this will be called on {@link NPOI.HSSF.UserModel.HSSFSheet#ShiftRows(int, int, int)} }
*/
private FormulaShifter(int externSheetIndex, String sheetName, int firstMovedIndex, int lastMovedIndex, int amountToMove)
{
if (amountToMove == 0)
{
throw new ArgumentException("amountToMove must not be zero");
}
if (firstMovedIndex > lastMovedIndex)
{
throw new ArgumentException("firstMovedIndex, lastMovedIndex out of order");
}
_externSheetIndex = externSheetIndex;
_sheetName = sheetName;
_firstMovedIndex = firstMovedIndex;
_lastMovedIndex = lastMovedIndex;
_amountToMove = amountToMove;
_mode = ShiftMode.Row;
_srcSheetIndex = _dstSheetIndex = -1;
}
/**
* Create an instance for shifting sheets.
*
* For example, this will be called on {@link org.apache.poi.hssf.usermodel.HSSFWorkbook#setSheetOrder(String, int)}
*/
private FormulaShifter(int srcSheetIndex, int dstSheetIndex)
{
_externSheetIndex = _firstMovedIndex = _lastMovedIndex = _amountToMove = -1;
_sheetName = null;
_srcSheetIndex = srcSheetIndex;
_dstSheetIndex = dstSheetIndex;
_mode = ShiftMode.Sheet;
}
public static FormulaShifter CreateForRowShift(int externSheetIndex, String sheetName, int firstMovedRowIndex, int lastMovedRowIndex, int numberOfRowsToMove)
{
return new FormulaShifter(externSheetIndex, sheetName, firstMovedRowIndex, lastMovedRowIndex, numberOfRowsToMove);
}
public static FormulaShifter CreateForSheetShift(int srcSheetIndex, int dstSheetIndex)
{
return new FormulaShifter(srcSheetIndex, dstSheetIndex);
}
public override String ToString()
{
StringBuilder sb = new StringBuilder();
sb.Append(GetType().Name);
sb.Append(" [");
sb.Append(_firstMovedIndex);
sb.Append(_lastMovedIndex);
sb.Append(_amountToMove);
return sb.ToString();
}
/**
* @param ptgs - if necessary, will get modified by this method
* @param currentExternSheetIx - the extern sheet index of the sheet that contains the formula being adjusted
* @return <c>true</c> if a change was made to the formula tokens
*/
public bool AdjustFormula(Ptg[] ptgs, int currentExternSheetIx)
{
bool refsWereChanged = false;
for (int i = 0; i < ptgs.Length; i++)
{
Ptg newPtg = AdjustPtg(ptgs[i], currentExternSheetIx);
if (newPtg != null)
{
refsWereChanged = true;
ptgs[i] = newPtg;
}
}
return refsWereChanged;
}
private Ptg AdjustPtg(Ptg ptg, int currentExternSheetIx)
{
//return AdjustPtgDueToRowMove(ptg, currentExternSheetIx);
switch (_mode)
{
case ShiftMode.Row:
return AdjustPtgDueToRowMove(ptg, currentExternSheetIx);
case ShiftMode.Sheet:
return AdjustPtgDueToShiftMove(ptg);
default:
throw new InvalidOperationException("Unsupported shift mode: " + _mode);
}
}
/**
* @return <c>true</c> if this Ptg needed to be changed
*/
private Ptg AdjustPtgDueToRowMove(Ptg ptg, int currentExternSheetIx)
{
if (ptg is RefPtg)
{
if (currentExternSheetIx != _externSheetIndex)
{
// local refs on other sheets are unaffected
return null;
}
RefPtg rptg = (RefPtg)ptg;
return RowMoveRefPtg(rptg);
}
if (ptg is Ref3DPtg)
{
Ref3DPtg rptg = (Ref3DPtg)ptg;
if (_externSheetIndex != rptg.ExternSheetIndex)
{
// only move 3D refs that refer to the sheet with cells being moved
// (currentExternSheetIx is irrelevant)
return null;
}
return RowMoveRefPtg(rptg);
}
if (ptg is Ref3DPxg)
{
Ref3DPxg rpxg = (Ref3DPxg)ptg;
if (rpxg.ExternalWorkbookNumber > 0 ||
!_sheetName.Equals(rpxg.SheetName))
{
// only move 3D refs that refer to the sheet with cells being moved
return null;
}
return RowMoveRefPtg(rpxg);
}
if (ptg is Area2DPtgBase)
{
if (currentExternSheetIx != _externSheetIndex)
{
// local refs on other sheets are unaffected
return ptg;
}
return RowMoveAreaPtg((Area2DPtgBase)ptg);
}
if (ptg is Area3DPtg)
{
Area3DPtg aptg = (Area3DPtg)ptg;
if (_externSheetIndex != aptg.ExternSheetIndex)
{
// only move 3D refs that refer to the sheet with cells being moved
// (currentExternSheetIx is irrelevant)
return null;
}
return RowMoveAreaPtg(aptg);
}
if (ptg is Area3DPxg)
{
Area3DPxg apxg = (Area3DPxg)ptg;
if (apxg.ExternalWorkbookNumber > 0 ||
!_sheetName.Equals(apxg.SheetName))
{
// only move 3D refs that refer to the sheet with cells being moved
return null;
}
return RowMoveAreaPtg(apxg);
}
return null;
}
private Ptg AdjustPtgDueToShiftMove(Ptg ptg)
{
Ptg updatedPtg = null;
if (ptg is Ref3DPtg)
{
Ref3DPtg ref1 = (Ref3DPtg)ptg;
if (ref1.ExternSheetIndex == _srcSheetIndex)
{
ref1.ExternSheetIndex = (_dstSheetIndex);
updatedPtg = ref1;
}
else if (ref1.ExternSheetIndex == _dstSheetIndex)
{
ref1.ExternSheetIndex = (_srcSheetIndex);
updatedPtg = ref1;
}
}
return updatedPtg;
}
private Ptg RowMoveRefPtg(RefPtgBase rptg)
{
int refRow = rptg.Row;
if (_firstMovedIndex <= refRow && refRow <= _lastMovedIndex)
{
// Rows being moved completely enclose the ref.
// - move the area ref along with the rows regardless of destination
rptg.Row = (refRow + _amountToMove);
return rptg;
}
// else rules for adjusting area may also depend on the destination of the moved rows
int destFirstRowIndex = _firstMovedIndex + _amountToMove;
int destLastRowIndex = _lastMovedIndex + _amountToMove;
// ref is outside source rows
// check for clashes with destination
if (destLastRowIndex < refRow || refRow < destFirstRowIndex)
{
// destination rows are completely outside ref
return null;
}
if (destFirstRowIndex <= refRow && refRow <= destLastRowIndex)
{
// destination rows enclose the area (possibly exactly)
return CreateDeletedRef(rptg);
}
throw new InvalidOperationException("Situation not covered: (" + _firstMovedIndex + ", " +
_lastMovedIndex + ", " + _amountToMove + ", " + refRow + ", " + refRow + ")");
}
private Ptg RowMoveAreaPtg(AreaPtgBase aptg)
{
int aFirstRow = aptg.FirstRow;
int aLastRow = aptg.LastRow;
if (_firstMovedIndex <= aFirstRow && aLastRow <= _lastMovedIndex)
{
// Rows being moved completely enclose the area ref.
// - move the area ref along with the rows regardless of destination
aptg.FirstRow = (aFirstRow + _amountToMove);
aptg.LastRow = (aLastRow + _amountToMove);
return aptg;
}
// else rules for adjusting area may also depend on the destination of the moved rows
int destFirstRowIndex = _firstMovedIndex + _amountToMove;
int destLastRowIndex = _lastMovedIndex + _amountToMove;
if (aFirstRow < _firstMovedIndex && _lastMovedIndex < aLastRow)
{
// Rows moved were originally *completely* within the area ref
// If the destination of the rows overlaps either the top
// or bottom of the area ref there will be a change
if (destFirstRowIndex < aFirstRow && aFirstRow <= destLastRowIndex)
{
// truncate the top of the area by the moved rows
aptg.FirstRow = (destLastRowIndex + 1);
return aptg;
}
else if (destFirstRowIndex <= aLastRow && aLastRow < destLastRowIndex)
{
// truncate the bottom of the area by the moved rows
aptg.LastRow = (destFirstRowIndex - 1);
return aptg;
}
// else - rows have moved completely outside the area ref,
// or still remain completely within the area ref
return null; // - no change to the area
}
if (_firstMovedIndex <= aFirstRow && aFirstRow <= _lastMovedIndex)
{
// Rows moved include the first row of the area ref, but not the last row
// btw: (aLastRow > _lastMovedIndex)
if (_amountToMove < 0)
{
// simple case - expand area by shifting top upward
aptg.FirstRow = (aFirstRow + _amountToMove);
return aptg;
}
if (destFirstRowIndex > aLastRow)
{
// in this case, excel ignores the row move
return null;
}
int newFirstRowIx = aFirstRow + _amountToMove;
if (destLastRowIndex < aLastRow)
{
// end of area is preserved (will remain exact same row)
// the top area row is moved simply
aptg.FirstRow = (newFirstRowIx);
return aptg;
}
// else - bottom area row has been replaced - both area top and bottom may move now
int areaRemainingTopRowIx = _lastMovedIndex + 1;
if (destFirstRowIndex > areaRemainingTopRowIx)
{
// old top row of area has moved deep within the area, and exposed a new top row
newFirstRowIx = areaRemainingTopRowIx;
}
aptg.FirstRow = (newFirstRowIx);
aptg.LastRow = (Math.Max(aLastRow, destLastRowIndex));
return aptg;
}
if (_firstMovedIndex <= aLastRow && aLastRow <= _lastMovedIndex)
{
// Rows moved include the last row of the area ref, but not the first
// btw: (aFirstRow < _firstMovedIndex)
if (_amountToMove > 0)
{
// simple case - expand area by shifting bottom downward
aptg.LastRow = (aLastRow + _amountToMove);
return aptg;
}
if (destLastRowIndex < aFirstRow)
{
// in this case, excel ignores the row move
return null;
}
int newLastRowIx = aLastRow + _amountToMove;
if (destFirstRowIndex > aFirstRow)
{
// top of area is preserved (will remain exact same row)
// the bottom area row is moved simply
aptg.LastRow = (newLastRowIx);
return aptg;
}
// else - top area row has been replaced - both area top and bottom may move now
int areaRemainingBottomRowIx = _firstMovedIndex - 1;
if (destLastRowIndex < areaRemainingBottomRowIx)
{
// old bottom row of area has moved up deep within the area, and exposed a new bottom row
newLastRowIx = areaRemainingBottomRowIx;
}
aptg.FirstRow = (Math.Min(aFirstRow, destFirstRowIndex));
aptg.LastRow = (newLastRowIx);
return aptg;
}
// else source rows include none of the rows of the area ref
// check for clashes with destination
if (destLastRowIndex < aFirstRow || aLastRow < destFirstRowIndex)
{
// destination rows are completely outside area ref
return null;
}
if (destFirstRowIndex <= aFirstRow && aLastRow <= destLastRowIndex)
{
// destination rows enclose the area (possibly exactly)
return CreateDeletedRef(aptg);
}
if (aFirstRow <= destFirstRowIndex && destLastRowIndex <= aLastRow)
{
// destination rows are within area ref (possibly exact on top or bottom, but not both)
return null; // - no change to area
}
if (destFirstRowIndex < aFirstRow && aFirstRow <= destLastRowIndex)
{
// dest rows overlap top of area
// - truncate the top
aptg.FirstRow = (destLastRowIndex + 1);
return aptg;
}
if (destFirstRowIndex <= aLastRow && aLastRow < destLastRowIndex)
{
// dest rows overlap bottom of area
// - truncate the bottom
aptg.LastRow = (destFirstRowIndex - 1);
return aptg;
}
throw new InvalidOperationException("Situation not covered: (" + _firstMovedIndex + ", " +
_lastMovedIndex + ", " + _amountToMove + ", " + aFirstRow + ", " + aLastRow + ")");
}
private static Ptg CreateDeletedRef(Ptg ptg)
{
if (ptg is RefPtg)
{
return new RefErrorPtg();
}
if (ptg is Ref3DPtg)
{
Ref3DPtg rptg = (Ref3DPtg)ptg;
return new DeletedRef3DPtg(rptg.ExternSheetIndex);
}
if (ptg is AreaPtg)
{
return new AreaErrPtg();
}
if (ptg is Area3DPtg)
{
Area3DPtg area3DPtg = (Area3DPtg)ptg;
return new DeletedArea3DPtg(area3DPtg.ExternSheetIndex);
}
if (ptg is Ref3DPxg)
{
Ref3DPxg pxg = (Ref3DPxg)ptg;
return new Deleted3DPxg(pxg.ExternalWorkbookNumber, pxg.SheetName);
}
if (ptg is Area3DPxg)
{
Area3DPxg pxg = (Area3DPxg)ptg;
return new Deleted3DPxg(pxg.ExternalWorkbookNumber, pxg.SheetName);
}
throw new ArgumentException("Unexpected ref ptg class (" + ptg.GetType().Name + ")");
}
}
}
```
|
The 15th Lancers (Baloch) is an armoured regiment of the Pakistan Army. It was formed in 1922 by the amalgamation of the 17th Cavalry and the 37th Lancers (Baluch Horse).
Predecessor regiments
17th Cavalry
The 17th Cavalry was raised in 1857 at Muttra by Colonel CJ Robarts and was composed entirely of Afghans. Throughout its existence, the regiment remained an exclusively Muslim unit. In 1861, after several changes in nomenclature, it was designated the 17th Regiment of Bengal Cavalry. In 1865, it saw action as part of the Bhutan Field Force, while in 1879–80, the regiment operated on lines of communication during the Second Afghan War as part of the Kabul Field Force. During the First World War, it dispatched a squadron to Africa where it took part in the East African Campaign. In 1919, the regiment fought in the Third Afghan War. The regiment maintained a mounted pipe band from 1895 to 1902. The uniform of the 17th Cavalry was blue with white facings. The regimental badge consisted of a silver star and crescent over "XVII" with a title scroll below.
1857 Muttra Horse
1857 Muttra Police Corps
1858 Rohilkhand Auxiliary Police Levy
1859 Robarts’ Horse
1861 17th Regiment of Bengal Cavalry
1882 Disbanded
1885 Re-raised
1900 17th Regiment of Bengal Lancers
1901 17th Bengal Lancers
1903 17th Cavalry
37th Lancers (Baluch Horse)
The 37th Lancers (Baluch Horse) was raised in 1885 as the 7th Bombay Cavalry (Jacob-ka-Risallah) from the manpower of the 3rd Scinde Horse (Belooch Horse), which had been disbanded in 1882. This regiment was also an all-Muslim unit made up of Pathans and Baluchis. Their first chance of active service came in 1919, when they served in the Third Afghan War, although one of their squadrons operated in Persia during the First World War. Prior to 1914 the regiment's dress uniform was dark blue (khaki drill for hot-weather parade and field dress), with buff facings. The badge consisted of crossed lances and pennons with "37" over crossed lances.
1885 7th Bombay Cavalry (Jacob-ka-Risallah)
1886 7th Bombay Cavalry (Belooch Horse)
1890 7th Bombay Lancers (Belooch Horse)
1903 37th Lancers (Baluch Horse)
15th Lancers
After the First World War, the number of Indian cavalry regiments was reduced from thirty-nine to twenty-one. However, instead of disbanding the surplus units, it was decided to amalgamate them in pairs. This resulted in renumbering and renaming of the entire cavalry line. The 17th Cavalry and 37th Lancers (Baluch Horse) were amalgamated at Lucknow in 1922 to form the 15th Lancers. Meanwhile, an existing 15th Lancers (Cureton's Multanis) joined the 14th Murray's Jat Lancers to form the 20th Lancers.
The uniform of the new 15th Lancers was dark blue with buff facings, while the badge consisted of crossed silver lances bearing pennons with "XV" at the crossing and a scroll below. The same uniform and badges are still in use by the regiment.
In 1937, the 15th Lancers became the training regiment of the 1st Indian Cavalry Group. It was converted into a training centre in 1940 by amalgamating it with the 12th Cavalry (Frontier Force). However, the next year, the centre was disbanded. In 1955, the 15th Lancers was re-raised by the Pakistani Army as a Reconnaissance Regiment of the Pakistan Armoured Corps and equipped with M24 Chaffee light tanks. During the Indo-Pakistani War of 1965, the regiment served with distinction in the Kasur Sector and was awarded the Battle Honour 'Khem Karan 1965.' In 1969, the 15th Lancers was affiliated with the Baluch Regiment (now called the Baloch Regiment) due to the old link with the 37th Lancers (Baluch Horse). It added the title of 'Baluch' to its designation in 1989.
1922 17th/37th Cavalry (amalgamation of 17th Cavalry and 37th Lancers)
1922 15th Lancers
1940 1st Indian Armoured Corps Centre (amalgamation of 15th Lancers and 12th Cavalry)
1941 Disbanded
1955 15th Lancers (re-raised)
1989 15th Lancers (Baluch)
1991 15th Lancers (Baloch)
Affiliations and alliances
The Baloch Regiment
The Royal Dragoon Guards
References
Further reading
15th Lancers (Baloch): Through the Ages 1858-1998. (1998). Lahore: 15th Lancers.
Yeats-Brown, Major FCC. (1927). The Star and Crescent: Being the Story of the 17th Cavalry from 1858 To 1922. Allahabad: The Pioneer Press.
Ahmad, Lieutenant Colonel Rifat Nadeem. (2010). Battle Honours of the Baloch Regiment. Abbottabad: The Baloch Regimental Centre.
Ahmed, Major General Rafiuddin. (2000). History of the Baloch Regiment 1939-1956. Abbottabad: The Baloch Regimental Centre.
Gaylor, J. (1992). Sons of John Company: The Indian and Pakistan Armies 1903- 1991. Stroud: Spellmount Publishers Ltd.
Cadell, Sir Patrick. (1938). History of the Bombay Army. London: Longmans & Green.
Cardew, FG. (1903). A Sketch of the Services of the Bengal Native Army to the Year 1895. Calcutta: Military Department.
Harris, RG, and Warner, C. (1979). Bengal Cavalry Regiments 1857–1914. London: Osprey Publishing. .
Sandhu, Maj Gen GS. (1981). The Indian Cavalry: History of the Indian Armoured Corps till 1940. New Delhi: Vision Books.
Kempton, C. (1996). A Register of Titles of the Units of the H.E.I.C. & Indian Armies 1666-1947. Bristol: British Empire & Commonwealth Museum.
External links
Uniforms of the late 19th Century
Armoured regiments of Pakistan
British Indian Army cavalry regiments
Honourable East India Company regiments
1922 establishments in India
Military units and formations established in 1922
Military units and formations disestablished in 1937
Military units and formations established in 1955
|
Agachahalli is a village in the southern state of Karnataka, India. It is located in the Nagamangala taluk of Mandya district in Karnataka.
See also
Mandya
Districts of Karnataka
References
External links
http://Mandya.nic.in/
Villages in Mandya district
|
Alfred David McWaters was mayor of Toowoomba, Queensland in 1916. He was also an alderman on the Toowoomba City Council in 1914–1915 and 1918–1921. He was born in Ballarat, Victoria and worked as a grazier before moving to Toowoomba.
References
Mayors of Toowoomba
Politicians from Ballarat
Queensland local councillors
Year of birth missing
Year of death missing
|
```smalltalk
using Chloe.Query.Internals;
using Chloe.QueryExpressions;
using System.Linq.Expressions;
using System.Reflection;
namespace Chloe.Query
{
partial class Query<T> : IQuery<T>, IQuery
{
static readonly List<Expression> EmptyArgumentList = new List<Expression>(0);
FeatureEnumerable<T> GenerateIterator()
{
InternalQuery<T> internalQuery = new InternalQuery<T>(this);
return internalQuery;
}
TResult ExecuteAggregateQuery<TResult>(MethodInfo method, Expression argument, bool checkArgument = true)
{
var q = this.CreateAggregateQuery<TResult>(method, argument, checkArgument);
IEnumerable<TResult> iterator = q.GenerateIterator();
return iterator.Single();
}
async Task<TResult> ExecuteAggregateQueryAsync<TResult>(MethodInfo method, Expression argument, bool checkArgument = true)
{
var q = this.CreateAggregateQuery<TResult>(method, argument, checkArgument);
var iterator = q.GenerateIterator();
return await iterator.SingleAsync();
}
Query<TResult> CreateAggregateQuery<TResult>(MethodInfo method, Expression argument, bool checkArgument)
{
if (checkArgument)
PublicHelper.CheckNull(argument);
List<Expression> arguments = argument == null ? EmptyArgumentList : new List<Expression>(1) { argument };
var q = this.CreateAggregateQueryCore<TResult>(method, arguments);
return q;
}
internal Query<TResult> CreateAggregateQueryCore<TResult>(MethodInfo method, List<Expression> arguments)
{
AggregateQueryExpression e = new AggregateQueryExpression(this._expression, method, arguments);
var q = new Query<TResult>(this._dbContextProvider, e);
return q;
}
MethodInfo GetCalledMethod<TResult>(Expression<Func<TResult>> exp)
{
var body = (MethodCallExpression)exp.Body;
return body.Method;
}
public override string ToString()
{
IEnumerable<T> internalQuery = this.GenerateIterator();
return internalQuery.ToString();
}
}
}
```
|
```objective-c
/**
*
*/
#ifndef __DRIVERS_NET_NSOS_SOCKET_H__
#define __DRIVERS_NET_NSOS_SOCKET_H__
#include <stdint.h>
/**
* @name Socket level options (NSOS_MID_SOL_SOCKET)
* @{
*/
/** Socket-level option */
#define NSOS_MID_SOL_SOCKET 1
/* Socket options for NSOS_MID_SOL_SOCKET level */
/** Recording debugging information (ignored, for compatibility) */
#define NSOS_MID_SO_DEBUG 1
/** address reuse */
#define NSOS_MID_SO_REUSEADDR 2
/** Type of the socket */
#define NSOS_MID_SO_TYPE 3
/** Async error */
#define NSOS_MID_SO_ERROR 4
/** Bypass normal routing and send directly to host (ignored, for compatibility) */
#define NSOS_MID_SO_DONTROUTE 5
/** Transmission of broadcast messages is supported (ignored, for compatibility) */
#define NSOS_MID_SO_BROADCAST 6
/** Size of socket send buffer */
#define NSOS_MID_SO_SNDBUF 7
/** Size of socket recv buffer */
#define NSOS_MID_SO_RCVBUF 8
/** Enable sending keep-alive messages on connections */
#define NSOS_MID_SO_KEEPALIVE 9
/** Place out-of-band data into receive stream (ignored, for compatibility) */
#define NSOS_MID_SO_OOBINLINE 10
/** Socket priority */
#define NSOS_MID_SO_PRIORITY 12
/** Socket lingers on close (ignored, for compatibility) */
#define NSOS_MID_SO_LINGER 13
/** Allow multiple sockets to reuse a single port */
#define NSOS_MID_SO_REUSEPORT 15
/** Receive low watermark (ignored, for compatibility) */
#define NSOS_MID_SO_RCVLOWAT 18
/** Send low watermark (ignored, for compatibility) */
#define NSOS_MID_SO_SNDLOWAT 19
/**
* Receive timeout
* Applies to receive functions like recv(), but not to connect()
*/
#define NSOS_MID_SO_RCVTIMEO 20
/** Send timeout */
#define NSOS_MID_SO_SNDTIMEO 21
/** Bind a socket to an interface */
#define NSOS_MID_SO_BINDTODEVICE 25
/** Socket accepts incoming connections (ignored, for compatibility) */
#define NSOS_MID_SO_ACCEPTCONN 30
/** Timestamp TX packets */
#define NSOS_MID_SO_TIMESTAMPING 37
/** Protocol used with the socket */
#define NSOS_MID_SO_PROTOCOL 38
/** Domain used with SOCKET */
#define NSOS_MID_SO_DOMAIN 39
/** Enable SOCKS5 for Socket */
#define NSOS_MID_SO_SOCKS5 60
/** Socket TX time (when the data should be sent) */
#define NSOS_MID_SO_TXTIME 61
struct nsos_mid_timeval {
int64_t tv_sec;
int64_t tv_usec;
};
/** @} */
/**
* @name TCP level options (NSOS_MID_IPPROTO_TCP)
* @{
*/
/* Socket options for NSOS_MID_IPPROTO_TCP level */
/** Disable TCP buffering (ignored, for compatibility) */
#define NSOS_MID_TCP_NODELAY 1
/** Start keepalives after this period (seconds) */
#define NSOS_MID_TCP_KEEPIDLE 2
/** Interval between keepalives (seconds) */
#define NSOS_MID_TCP_KEEPINTVL 3
/** Number of keepalives before dropping connection */
#define NSOS_MID_TCP_KEEPCNT 4
/** @} */
/**
* @name IPv6 level options (NSOS_MID_IPPROTO_IPV6)
* @{
*/
/* Socket options for NSOS_MID_IPPROTO_IPV6 level */
/** Set the unicast hop limit for the socket. */
#define NSOS_MID_IPV6_UNICAST_HOPS 16
/** Set the multicast hop limit for the socket. */
#define NSOS_MID_IPV6_MULTICAST_HOPS 18
/** Join IPv6 multicast group. */
#define NSOS_MID_IPV6_ADD_MEMBERSHIP 20
/** Leave IPv6 multicast group. */
#define NSOS_MID_IPV6_DROP_MEMBERSHIP 21
/** Don't support IPv4 access */
#define NSOS_MID_IPV6_V6ONLY 26
/** Pass an IPV6_RECVPKTINFO ancillary message that contains a
* in6_pktinfo structure that supplies some information about the
* incoming packet. See RFC 3542.
*/
#define NSOS_MID_IPV6_RECVPKTINFO 49
/** @} */
#endif /* __DRIVERS_NET_NSOS_SOCKET_H__ */
```
|
```java
package com.kalessil.phpStorm.phpInspectionsEA.pitfalls;
import com.jetbrains.php.config.PhpLanguageLevel;
import com.jetbrains.php.config.PhpProjectConfigurationFacade;
import com.kalessil.phpStorm.phpInspectionsEA.PhpCodeInsightFixtureTestCase;
import com.kalessil.phpStorm.phpInspectionsEA.inspectors.apiUsage.dateTime.DateTimeSetTimeUsageInspector;
final public class DateTimeSetTimeUsageInspectorTest extends PhpCodeInsightFixtureTestCase {
public void testIfFindsAllPatterns() {
PhpProjectConfigurationFacade.getInstance(myFixture.getProject()).setLanguageLevel(PhpLanguageLevel.PHP700);
myFixture.enableInspections(new DateTimeSetTimeUsageInspector());
myFixture.configureByFile("testData/fixtures/pitfalls/date-time-set-time-milliseconds.php");
myFixture.testHighlighting(true, false, true);
}
}
```
|
```go
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
// Package iot provides the client and types for making API
// requests to AWS IoT.
//
// AWS IoT provides secure, bi-directional communication between Internet-connected
// things (such as sensors, actuators, embedded devices, or smart appliances)
// and the AWS cloud. You can discover your custom IoT-Data endpoint to communicate
// with, configure rules for data processing and integration with other services,
// organize resources associated with each thing (Thing Registry), configure
// logging, and create and manage policies and credentials to authenticate things.
//
// For more information about how AWS IoT works, see the Developer Guide (path_to_url
//
// See iot package documentation for more information.
// path_to_url
//
// Using the Client
//
// To contact AWS IoT with the SDK use the New function to create
// a new service client. With that client you can make API requests to the service.
// These clients are safe to use concurrently.
//
// See the SDK's documentation for more information on how to use the SDK.
// path_to_url
//
// See aws.Config documentation for more information on configuring SDK clients.
// path_to_url#Config
//
// See the AWS IoT client IoT for more
// information on creating client for this service.
// path_to_url#New
package iot
```
|
Obrąb (German: Bramstädt) is a settlement in the administrative district of Gmina Borne Sulinowo, within Szczecinek County, West Pomeranian Voivodeship, in north-western Poland. It lies approximately north of Borne Sulinowo, west of Szczecinek, and east of the regional capital Szczecin.
For the history of the region, see History of Pomerania.
References
Villages in Szczecinek County
|
Rickie Calvin Harris (born May 15, 1943) is a former American football defensive back in the National Football League (NFL) for the Washington Redskins and the New England Patriots. He played college football at the University of Arizona.
In December 1966, Harris returned a punt for an NFL-record loss of 28 yards.
See also
List of NCAA major college yearly punt and kickoff return leaders
References
1943 births
Living people
Players of American football from St. Louis
American football defensive backs
Arizona Wildcats football players
Florida Blazers players
Washington Redskins players
New England Patriots players
|
The Alabama Warrior Railway is a terminal railroad in Birmingham, Alabama, United States. The railroad operates within the confines of Walter Industries in North Birmingham. It began operations on August 7, 2009, and is owned and operated by Watco.
History
The ABWR operates of railroad. Its route dates back to the Marylee Railroad, which was founded in 1895. The Jefferson Warrior Railroad had operated it since 1985. The ABWR began operating on August 7, 2009. The railroad hauls approximately 9,000 carloads annually and interchanges with CSX, Norfolk Southern and BNSF. On June 24, 2014, Caleb Bankston, a former contestant on reality series Survivor: Blood vs. Water and employee of the railroad, was killed by a derailment in Birmingham.
References
External links
Alabama railroads
Switching and terminal railroads
Watco
Railway companies established in 2009
2009 establishments in Alabama
American companies established in 2009
|
```java
`@Test` parameters
Using the `@Deprecated` annotation
Including annotations in Javadoc
Restricting an annotation's application by using `@Target`
Declaring `@Repeatable` annotation types
```
|
Potamocypris mastigophora is a species of ostracod crustacean in the family Cyprididae, subfamily Cypridopsinae. It is known from Africa and the southern areas of the Palaearctic.
Description
The carapace of P. mastigophora is laterally compressed, with length ranging from 0.55 to 0.64 mm. The left valve bears wide anterior and posterior flanges. The second antennae carry swimming setae that extend beyond the tips of the terminal claws. The males are unknown, all known populations reproducing through parthenogenesis.
References
External links
Cyprididae
Crustaceans of South Africa
Freshwater crustaceans of Africa
Crustaceans described in 1910
|
```html
<html lang="en">
<head>
<title>GDB/MI Program Context - Debugging with GDB</title>
<meta http-equiv="Content-Type" content="text/html">
<meta name="description" content="Debugging with GDB">
<meta name="generator" content="makeinfo 4.11">
<link title="Top" rel="start" href="index.html#Top">
<link rel="up" href="GDB_002fMI.html#GDB_002fMI" title="GDB/MI">
<link rel="prev" href="GDB_002fMI-Catchpoint-Commands.html#GDB_002fMI-Catchpoint-Commands" title="GDB/MI Catchpoint Commands">
<link rel="next" href="GDB_002fMI-Thread-Commands.html#GDB_002fMI-Thread-Commands" title="GDB/MI Thread Commands">
<link href="path_to_url" rel="generator-home" title="Texinfo Homepage">
<!--
Permission is granted to copy, distribute and/or modify this document
any later version published by the Free Software Foundation; with the
Invariant Sections being ``Free Software'' and ``Free Software Needs
Free Documentation'', with the Front-Cover Texts being ``A GNU Manual,''
and with the Back-Cover Texts as in (a) below.
(a) The FSF's Back-Cover Text is: ``You are free to copy and modify
this GNU Manual. Buying copies from GNU Press supports the FSF in
developing GNU and promoting software freedom.''
-->
<meta http-equiv="Content-Style-Type" content="text/css">
<style type="text/css"><!--
pre.display { font-family:inherit }
pre.format { font-family:inherit }
pre.smalldisplay { font-family:inherit; font-size:smaller }
pre.smallformat { font-family:inherit; font-size:smaller }
pre.smallexample { font-size:smaller }
pre.smalllisp { font-size:smaller }
span.sc { font-variant:small-caps }
span.roman { font-family:serif; font-weight:normal; }
span.sansserif { font-family:sans-serif; font-weight:normal; }
--></style>
</head>
<body>
<div class="node">
<p>
<a name="GDB%2fMI-Program-Context"></a>
<a name="GDB_002fMI-Program-Context"></a>
Next: <a rel="next" accesskey="n" href="GDB_002fMI-Thread-Commands.html#GDB_002fMI-Thread-Commands">GDB/MI Thread Commands</a>,
Previous: <a rel="previous" accesskey="p" href="GDB_002fMI-Catchpoint-Commands.html#GDB_002fMI-Catchpoint-Commands">GDB/MI Catchpoint Commands</a>,
Up: <a rel="up" accesskey="u" href="GDB_002fMI.html#GDB_002fMI">GDB/MI</a>
<hr>
</div>
<h3 class="section">27.10 <span class="sc">gdb/mi</span> Program Context</h3>
<h4 class="subheading">The <code>-exec-arguments</code> Command</h4>
<p><a name="index-g_t_002dexec_002darguments-2890"></a>
<h5 class="subsubheading">Synopsis</h5>
<pre class="smallexample"> -exec-arguments <var>args</var>
</pre>
<p>Set the inferior program arguments, to be used in the next
‘<samp><span class="samp">-exec-run</span></samp>’.
<h5 class="subsubheading"><span class="sc">gdb</span> Command</h5>
<p>The corresponding <span class="sc">gdb</span> command is ‘<samp><span class="samp">set args</span></samp>’.
<h5 class="subsubheading">Example</h5>
<pre class="smallexample"> (gdb)
-exec-arguments -v word
^done
(gdb)
</pre>
<h4 class="subheading">The <code>-environment-cd</code> Command</h4>
<p><a name="index-g_t_002denvironment_002dcd-2891"></a>
<h5 class="subsubheading">Synopsis</h5>
<pre class="smallexample"> -environment-cd <var>pathdir</var>
</pre>
<p>Set <span class="sc">gdb</span>'s working directory.
<h5 class="subsubheading"><span class="sc">gdb</span> Command</h5>
<p>The corresponding <span class="sc">gdb</span> command is ‘<samp><span class="samp">cd</span></samp>’.
<h5 class="subsubheading">Example</h5>
<pre class="smallexample"> (gdb)
-environment-cd /kwikemart/marge/ezannoni/flathead-dev/devo/gdb
^done
(gdb)
</pre>
<h4 class="subheading">The <code>-environment-directory</code> Command</h4>
<p><a name="index-g_t_002denvironment_002ddirectory-2892"></a>
<h5 class="subsubheading">Synopsis</h5>
<pre class="smallexample"> -environment-directory [ -r ] [ <var>pathdir</var> ]+
</pre>
<p>Add directories <var>pathdir</var> to beginning of search path for source files.
If the ‘<samp><span class="samp">-r</span></samp>’ option is used, the search path is reset to the default
search path. If directories <var>pathdir</var> are supplied in addition to the
‘<samp><span class="samp">-r</span></samp>’ option, the search path is first reset and then addition
occurs as normal.
Multiple directories may be specified, separated by blanks. Specifying
multiple directories in a single command
results in the directories added to the beginning of the
search path in the same order they were presented in the command.
If blanks are needed as
part of a directory name, double-quotes should be used around
the name. In the command output, the path will show up separated
by the system directory-separator character. The directory-separator
character must not be used
in any directory name.
If no directories are specified, the current search path is displayed.
<h5 class="subsubheading"><span class="sc">gdb</span> Command</h5>
<p>The corresponding <span class="sc">gdb</span> command is ‘<samp><span class="samp">dir</span></samp>’.
<h5 class="subsubheading">Example</h5>
<pre class="smallexample"> (gdb)
-environment-directory /kwikemart/marge/ezannoni/flathead-dev/devo/gdb
^done,source-path="/kwikemart/marge/ezannoni/flathead-dev/devo/gdb:$cdir:$cwd"
(gdb)
-environment-directory ""
^done,source-path="/kwikemart/marge/ezannoni/flathead-dev/devo/gdb:$cdir:$cwd"
(gdb)
-environment-directory -r /home/jjohnstn/src/gdb /usr/src
^done,source-path="/home/jjohnstn/src/gdb:/usr/src:$cdir:$cwd"
(gdb)
-environment-directory -r
^done,source-path="$cdir:$cwd"
(gdb)
</pre>
<h4 class="subheading">The <code>-environment-path</code> Command</h4>
<p><a name="index-g_t_002denvironment_002dpath-2893"></a>
<h5 class="subsubheading">Synopsis</h5>
<pre class="smallexample"> -environment-path [ -r ] [ <var>pathdir</var> ]+
</pre>
<p>Add directories <var>pathdir</var> to beginning of search path for object files.
If the ‘<samp><span class="samp">-r</span></samp>’ option is used, the search path is reset to the original
search path that existed at gdb start-up. If directories <var>pathdir</var> are
supplied in addition to the
‘<samp><span class="samp">-r</span></samp>’ option, the search path is first reset and then addition
occurs as normal.
Multiple directories may be specified, separated by blanks. Specifying
multiple directories in a single command
results in the directories added to the beginning of the
search path in the same order they were presented in the command.
If blanks are needed as
part of a directory name, double-quotes should be used around
the name. In the command output, the path will show up separated
by the system directory-separator character. The directory-separator
character must not be used
in any directory name.
If no directories are specified, the current path is displayed.
<h5 class="subsubheading"><span class="sc">gdb</span> Command</h5>
<p>The corresponding <span class="sc">gdb</span> command is ‘<samp><span class="samp">path</span></samp>’.
<h5 class="subsubheading">Example</h5>
<pre class="smallexample"> (gdb)
-environment-path
^done,path="/usr/bin"
(gdb)
-environment-path /kwikemart/marge/ezannoni/flathead-dev/ppc-eabi/gdb /bin
^done,path="/kwikemart/marge/ezannoni/flathead-dev/ppc-eabi/gdb:/bin:/usr/bin"
(gdb)
-environment-path -r /usr/local/bin
^done,path="/usr/local/bin:/usr/bin"
(gdb)
</pre>
<h4 class="subheading">The <code>-environment-pwd</code> Command</h4>
<p><a name="index-g_t_002denvironment_002dpwd-2894"></a>
<h5 class="subsubheading">Synopsis</h5>
<pre class="smallexample"> -environment-pwd
</pre>
<p>Show the current working directory.
<h5 class="subsubheading"><span class="sc">gdb</span> Command</h5>
<p>The corresponding <span class="sc">gdb</span> command is ‘<samp><span class="samp">pwd</span></samp>’.
<h5 class="subsubheading">Example</h5>
<pre class="smallexample"> (gdb)
-environment-pwd
^done,cwd="/kwikemart/marge/ezannoni/flathead-dev/devo/gdb"
(gdb)
</pre>
<!-- %%%%%%%%%%%%%%%%%%%%%%%%%%%% SECTION %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -->
</body></html>
```
|
```java
/*
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contributing project authors may
* be found in the AUTHORS file in the root of the source tree.
*/
package org.webrtc;
import android.content.Context;
// Base interface for all VideoCapturers to implement.
public interface VideoCapturer {
/**
* This function is used to initialize the camera thread, the android application context, and the
* capture observer. It will be called only once and before any startCapture() request. The
* camera thread is guaranteed to be valid until dispose() is called. If the VideoCapturer wants
* to deliver texture frames, it should do this by rendering on the SurfaceTexture in
* {@code surfaceTextureHelper}, register itself as a listener, and forward the frames to
* CapturerObserver.onFrameCaptured(). The caller still has ownership of {@code
* surfaceTextureHelper} and is responsible for making sure surfaceTextureHelper.dispose() is
* called. This also means that the caller can reuse the SurfaceTextureHelper to initialize a new
* VideoCapturer once the previous VideoCapturer has been disposed.
*/
void initialize(SurfaceTextureHelper surfaceTextureHelper, Context applicationContext,
CapturerObserver capturerObserver);
/**
* Start capturing frames in a format that is as close as possible to {@code width x height} and
* {@code framerate}.
*/
void startCapture(int width, int height, int framerate);
/**
* Stop capturing. This function should block until capture is actually stopped.
*/
void stopCapture() throws InterruptedException;
void changeCaptureFormat(int width, int height, int framerate);
/**
* Perform any final cleanup here. No more capturing will be done after this call.
*/
void dispose();
/**
* @return true if-and-only-if this is a screen capturer.
*/
boolean isScreencast();
}
```
|
```yaml
socs:
- name: opentitan
```
|
Donald Marquand Dozer (June 7, 1905 - August 4, 1980) was an American scholar of Latin American history.
Dozer was born in Zanesville, Ohio, receiving his A.B. in History from the College of Wooster in 1927, and then earned an A.M. (1930) and a Ph.D. (1936) in History at Harvard University. His doctoral dissertation was entitled on “Anti-imperialism in the United States 1865-1895. Opposition to the annexation of overseas territories.” He taught at the University of Maryland from 1937 to 1942, and then, from 1942 to 1943 served with the Office of the Coordinator of Information (which later evolved into the Office of Strategic Services and the Office of War Information) in Washington, DC. From 1943 to 1944, Dozer served as a liaison in the Caribbean region for the Office of Lend Lease Administration. He then moved to the State Department, where he did research and analysis (especially on Argentina) until 1956. He then accepted a call to the History Department of the University of California, Santa Barbara, where he joined Philip Wayne Powell and Wilbur R. Jacobs in building a nucleus of scholars who would become the core for a growing department in the 1960s. Dozer published nearly 100 articles and reviews as well as several well-received books. He retired and was granted emeritus status in 1972, and died in 1980 at Saint Francis Hospital in Santa Barbara.
Selected publications
Donald Marquand Dozer, Are We Good Neighbors? Three Decades of Inter-American Relations, 1930-1960 (Gainesville: University of Florida Press, 1959)
Donald Marquand Dozer, Latin America: An Interpretive History (New York: McGraw Hill, 1962), translated into Portuguese in 1966 as America latina (Porto Alegre Globo, 1966)
Donald Marquand Dozer, ed., The Monroe Doctrine: Its Modern Significance (New York: Knopf, 1967)
Donald Marquand Dozer, The Challenge to Pan Americanism (Tempe, AZ: Center for Latin American Studies, 1972)
Donald Marquand Dozer, Portrait of the Free State: A History of Maryland (Cambridge, Maryland: Tidewater Publishers, 1976).
Donald Marquand Dozer, The Panama Canal in Perspective (Washington, DC: Council on American Affairs, 1978)
References
1905 births
1980 deaths
Historians of Latin America
People from Zanesville, Ohio
20th-century American historians
American male non-fiction writers
College of Wooster alumni
Harvard Graduate School of Arts and Sciences alumni
University of Maryland, College Park faculty
United States Department of State officials
University of California, Santa Barbara faculty
People of the United States Office of War Information
Historians from Ohio
20th-century American male writers
|
```java
package android.marshon.likequanmintv.librarys.base;
import android.app.Activity;
import android.content.Context;
import android.marshon.likequanmintv.librarys.utils.LogUtil;
import java.util.Stack;
/**
* activity
*/
public class AppActivityManager {
private static Stack<Activity> mActivityStack;
private static AppActivityManager mAppManager;
private AppActivityManager() {
}
/**
*
*/
public static AppActivityManager getInstance() {
if (mAppManager == null) {
mAppManager = new AppActivityManager();
}
return mAppManager;
}
/**
* Activity
*/
public void addActivity(Activity activity) {
if (mActivityStack == null) {
mActivityStack = new Stack<Activity>();
}
mActivityStack.add(activity);
}
/**
* Activity
*/
public void removeActivity(Activity activity) {
mActivityStack.remove(activity);
}
/**
* Activity
*/
public Activity getTopActivity() {
return mActivityStack.lastElement();
}
/**
* Activity
*/
public void killTopActivity() {
Activity activity = mActivityStack.lastElement();
killActivity(activity);
}
/**
* Activity
*/
private void killActivity(Activity activity) {
if (activity != null) {
mActivityStack.remove(activity);
activity.finish();
}
}
/**
* Activity
*/
public void killActivity(Class<?> cls) {
for (Activity activity : mActivityStack) {
if (activity.getClass().equals(cls)) {
killActivity(activity);
}
}
}
/**
* Activity
*/
private void killAllActivity() {
for (int i = 0, size = mActivityStack.size(); i < size; i++) {
if (null != mActivityStack.get(i)) {
mActivityStack.get(i).finish();
}
}
mActivityStack.clear();
}
/**
*
*/
@SuppressWarnings("deprecation")
public void AppExit(Context context) {
try {
killAllActivity();
android.app.ActivityManager activityMgr = (android.app.ActivityManager) context
.getSystemService(Context.ACTIVITY_SERVICE);
activityMgr.restartPackage(context.getPackageName());
System.exit(0);
} catch (Exception e) {
LogUtil.e(""+e);
}
}
}
```
|
```objective-c
/* Written by Charles Harris charles.harris@sdl.usu.edu */
/* Modified to not depend on Python everywhere by Travis Oliphant.
*/
#ifndef ZEROS_H
#define ZEROS_H
typedef struct {
int funcalls;
int iterations;
int error_num;
} default_parameters;
#define SIGNERR -1
#define CONVERR -2
typedef double (*callback_type)(double,void*);
typedef double (*solver_type)(callback_type, double, double, double, double, int,default_parameters*);
extern double bisect(callback_type f, double xa, double xb, double xtol, double rtol, int iter, default_parameters *params);
extern double ridder(callback_type f, double xa, double xb, double xtol, double rtol, int iter, default_parameters *params);
extern double brenth(callback_type f, double xa, double xb, double xtol, double rtol, int iter, default_parameters *params);
extern double brentq(callback_type f, double xa, double xb, double xtol, double rtol, int iter, default_parameters *params);
#endif
```
|
Violet Mary Doudney (5 March 1889 – 14 January 1952) was a teacher and militant suffragette who went on hunger strike in Holloway Prison where she was force-fed. She was awarded the Hunger Strike Medal by the Women's Social and Political Union (WSPU).
Early life
Violet Doudney was born in 1889 in Barkby in Leicestershire, the daughter of Laura Annie née Rice (1858–1939) and George Richard Doudney (1859–1913), a corn merchant. She matriculated at St Hilda's College at the University of Oxford in 1908, from where she graduated in 1911 aged 21.
Militancy
The following year in 1912 she moved to London with the intention of becoming a teacher. Here she joined the Women's Social and Political Union and took part in a window-smashing campaign of the homes of senior politicians to protest against the treatment of suffragette prisoners who were on hunger strike. On 28 June 1912 Doudney smashed the windows at the home of Home Secretary Reginald McKenna following which she was arrested and taken before magistrates the next morning. In court she was asked if she regretted her actions; she replied that she did not and had taken the action in protest against the Home Secretary's policies. Sentenced to two months hard labour in Holloway Prison she went on hunger strike and despite her frailty was force-fed. On her release from prison she was awarded a Hunger Strike Medal by Emmeline Pankhurst.
Doudney's influential Leicestershire businessman father and her mother wrote to the Home Secretary requesting her early release from prison due to her ill health, stating that if the request was granted they would ensure she would take no further part in suffragette campaigns. When she discovered why she had been released from prison after only three weeks the enraged Violet Doudney wrote at once to the Home Secretary pointing out that as a 23-year-old woman she was capable of making her own decisions, adding:
"I understand that you ordered my release from H.M Prison Holloway on account of an undertaking given by my parents that I would do no more militant work. I wish you to understand that no pledge of any kind whatsoever has been even offered to me and that I have give no undertaking whatsoever. Moveover I am of age and I do not consider myself in any way bound by any pledge given without my knowledge or consent and I certainly intend to take, "militant" or otherwise which may appear necessary to me to be necessary and justifiable in advancing a cause which I have at heart... If upon receipt of this letter you think you have released me on false pretences and wish me to return to Holloway I am willing to do so."
She did not receive a reply and undertook secretarial work for the suffragette cause for the next two years before becoming a teacher of English Literature and drama in 1914, a career she followed for 25 years.
Later years
She married the architect (1875-1967) in 1929 and with him had three sons, including John Toy (1930-). In 2018 John Toy recalled: "My father was a typical Victorian man and wasn’t in favour of women having the vote. He asked her not to talk about this episode and she didn’t tell us until the day the Second World War broke out. I’m very proud of what she did. She always taught us to be angry at any injustices.” (Sidney Toy was the author of a number of books on fortifications including The Castles of Great Britain and The Strongholds of India.) In 1939 she retired from teaching at which time she and her husband were living in the City of London near the Temple Church where they were both ARP Wardens, with Violet Toy also undertaking first-aid duties.
Violet Mary Toy died in Epsom in Surrey in 1952.
References
1889 births
1952 deaths
Alumni of St Hilda's College, Oxford
Schoolteachers from Leicestershire
English women educators
English suffragettes
English feminists
British women's rights activists
Women's Social and Political Union
Prisoners and detainees of England and Wales
Hunger Strike Medal recipients
People from the Borough of Charnwood
|
```kotlin
package expo.modules.updates.loader
import android.content.Context
import android.net.Uri
import androidx.test.internal.runner.junit4.AndroidJUnit4ClassRunner
import androidx.test.platform.app.InstrumentationRegistry
import expo.modules.updates.UpdatesConfiguration
import expo.modules.updates.db.UpdatesDatabase
import expo.modules.updates.db.entity.AssetEntity
import expo.modules.updates.db.entity.UpdateEntity
import expo.modules.updates.manifest.ManifestMetadata
import io.mockk.every
import io.mockk.mockk
import io.mockk.mockkObject
import io.mockk.unmockkObject
import okhttp3.*
import okhttp3.MediaType.Companion.toMediaTypeOrNull
import okhttp3.ResponseBody.Companion.toResponseBody
import org.json.JSONException
import org.json.JSONObject
import org.junit.Assert
import org.junit.Before
import org.junit.Test
import org.junit.runner.RunWith
import java.io.File
import java.util.*
@RunWith(AndroidJUnit4ClassRunner::class)
class FileDownloaderTest {
private lateinit var context: Context
@Before
fun setup() {
context = InstrumentationRegistry.getInstrumentation().targetContext
}
@Test
fun testCacheControl() {
val configMap = mapOf<String, Any>(
"updateUrl" to Uri.parse("path_to_url"),
"runtimeVersion" to "1.0"
)
val config = UpdatesConfiguration(null, configMap)
val actual = FileDownloader.createRequestForRemoteUpdate(null, config, context)
Assert.assertNull(actual.header("Cache-Control"))
}
@Test
@Throws(JSONException::class)
fun testExtraHeaders_ObjectTypes() {
val configMap = mapOf<String, Any>(
"updateUrl" to Uri.parse("path_to_url"),
"runtimeVersion" to "1.0"
)
val config = UpdatesConfiguration(null, configMap)
val extraHeaders = JSONObject().apply {
put("expo-string", "test")
put("expo-number", 47.5)
put("expo-boolean", true)
put("expo-null", JSONObject.NULL)
}
// manifest extraHeaders should have their values coerced to strings
val actual = FileDownloader.createRequestForRemoteUpdate(extraHeaders, config, context)
Assert.assertEquals("test", actual.header("expo-string"))
Assert.assertEquals("47.5", actual.header("expo-number"))
Assert.assertEquals("true", actual.header("expo-boolean"))
Assert.assertEquals("null", actual.header(("expo-null")))
}
@Test
@Throws(JSONException::class)
fun testExtraHeaders_OverrideOrder() {
// custom headers configured at build-time should be able to override preset headers
val headersMap = mapOf("expo-updates-environment" to "custom")
val configMap = mapOf<String, Any>(
"updateUrl" to Uri.parse("path_to_url"),
"runtimeVersion" to "1.0",
"requestHeaders" to headersMap
)
val config = UpdatesConfiguration(null, configMap)
// serverDefinedHeaders should not be able to override preset headers
val extraHeaders = JSONObject()
extraHeaders.put("expo-platform", "ios")
val actual = FileDownloader.createRequestForRemoteUpdate(extraHeaders, config, context)
Assert.assertEquals("android", actual.header("expo-platform"))
Assert.assertEquals("custom", actual.header("expo-updates-environment"))
}
@Test
@Throws(JSONException::class)
fun testAssetExtraHeaders_OverrideOrder() {
// custom headers configured at build-time should be able to override preset headers
val headersMap = mapOf("expo-updates-environment" to "custom")
val configMap = mapOf<String, Any>(
"updateUrl" to Uri.parse("path_to_url"),
"runtimeVersion" to "1.0",
"requestHeaders" to headersMap
)
val config = UpdatesConfiguration(null, configMap)
val assetEntity = AssetEntity("test", "jpg").apply {
url = Uri.parse("path_to_url")
extraRequestHeaders = JSONObject().apply { put("expo-platform", "ios") }
}
// assetRequestHeaders should not be able to override preset headers
val actual = FileDownloader.createRequestForAsset(assetEntity, config, context)
Assert.assertEquals("android", actual.header("expo-platform"))
Assert.assertEquals("custom", actual.header("expo-updates-environment"))
}
@Test
@Throws(JSONException::class)
fun testAssetExtraHeaders_ObjectTypes() {
val configMap = mapOf<String, Any>(
"updateUrl" to Uri.parse("path_to_url"),
"runtimeVersion" to "1.0"
)
val config = UpdatesConfiguration(null, configMap)
val extraHeaders = JSONObject().apply {
put("expo-string", "test")
put("expo-number", 47.5)
put("expo-boolean", true)
put("expo-null", JSONObject.NULL)
}
val assetEntity = AssetEntity("test", "jpg").apply {
url = Uri.parse("path_to_url")
extraRequestHeaders = extraHeaders
}
// assetRequestHeaders should have their values coerced to strings
val actual = FileDownloader.createRequestForAsset(assetEntity, config, context)
Assert.assertEquals("test", actual.header("expo-string"))
Assert.assertEquals("47.5", actual.header("expo-number"))
Assert.assertEquals("true", actual.header("expo-boolean"))
Assert.assertEquals("null", actual.header("expo-null"))
}
@Test
fun testGetExtraHeaders() {
mockkObject(ManifestMetadata)
every { ManifestMetadata.getServerDefinedHeaders(any(), any()) } returns null
every { ManifestMetadata.getExtraParams(any(), any()) } returns mapOf("hello" to "world", "what" to "123")
val launchedUpdateUUIDString = "7c1d2bd0-f88b-454d-998c-7fa92a924dbf"
val launchedUpdate = UpdateEntity(UUID.fromString(launchedUpdateUUIDString), Date(), "1.0", "test", JSONObject("{}"))
val embeddedUpdateUUIDString = "9433b1ed-4006-46b8-8aa7-fdc7eeb203fd"
val embeddedUpdate = UpdateEntity(UUID.fromString(embeddedUpdateUUIDString), Date(), "1.0", "test", JSONObject("{}"))
val mockDatabase = mockk<UpdatesDatabase> {
every { updateDao() } returns mockk {
every { loadRecentUpdateIdsWithFailedLaunch() } returns listOf(
UUID.fromString("39242af2-7424-46cb-a89b-464bb9779dbd"),
UUID.fromString("905e8320-eb1d-4d18-b061-45bc3d3dd441")
)
}
}
val extraHeaders = FileDownloader.getExtraHeadersForRemoteUpdateRequest(mockDatabase, mockk(), launchedUpdate, embeddedUpdate)
Assert.assertEquals(launchedUpdateUUIDString, extraHeaders.get("Expo-Current-Update-ID"))
Assert.assertEquals(embeddedUpdateUUIDString, extraHeaders.get("Expo-Embedded-Update-ID"))
Assert.assertEquals("hello=\"world\", what=\"123\"", extraHeaders.get("Expo-Extra-Params"))
Assert.assertEquals("\"39242af2-7424-46cb-a89b-464bb9779dbd\", \"905e8320-eb1d-4d18-b061-45bc3d3dd441\"", extraHeaders.get("Expo-Recent-Failed-Update-IDs"))
// cleanup
unmockkObject(ManifestMetadata)
}
@Test
fun testGetExtraHeaders_NoLaunchedOrEmbeddedUpdate() {
mockkObject(ManifestMetadata)
every { ManifestMetadata.getServerDefinedHeaders(any(), any()) } returns null
val mockDatabase = mockk<UpdatesDatabase> {
every { updateDao() } returns mockk {
every { loadRecentUpdateIdsWithFailedLaunch() } returns listOf(
UUID.fromString("39242af2-7424-46cb-a89b-464bb9779dbd"),
UUID.fromString("905e8320-eb1d-4d18-b061-45bc3d3dd441")
)
}
}
val extraHeaders = FileDownloader.getExtraHeadersForRemoteUpdateRequest(mockDatabase, mockk(), null, null)
Assert.assertFalse(extraHeaders.has("Expo-Current-Update-ID"))
Assert.assertFalse(extraHeaders.has("Expo-Embedded-Update-ID"))
Assert.assertFalse(extraHeaders.has("Expo-Extra-Params"))
Assert.assertEquals("\"39242af2-7424-46cb-a89b-464bb9779dbd\", \"905e8320-eb1d-4d18-b061-45bc3d3dd441\"", extraHeaders.get("Expo-Recent-Failed-Update-IDs"))
// cleanup
unmockkObject(ManifestMetadata)
}
@Test
fun test_downloadAsset_mismatchedAssetHash() {
val configMap = mapOf<String, Any>(
UpdatesConfiguration.UPDATES_CONFIGURATION_UPDATE_URL_KEY to Uri.parse("path_to_url"),
UpdatesConfiguration.UPDATES_CONFIGURATION_RUNTIME_VERSION_KEY to "1.0"
)
val config = UpdatesConfiguration(null, configMap)
val assetEntity = AssetEntity(UUID.randomUUID().toString(), "jpg").apply {
url = Uri.parse("path_to_url")
extraRequestHeaders = JSONObject().apply { put("expo-platform", "ios") }
expectedHash = "badhash"
}
val client = mockk<OkHttpClient> {
every { newCall(any()) } returns mockk {
every { enqueue(any()) } answers {
firstArg<Callback>().onResponse(
mockk(),
mockk {
every { isSuccessful } returns true
every { body } returns "hello".toResponseBody("text/plain; charset=utf-8".toMediaTypeOrNull())
}
)
}
}
}
var error: Exception? = null
var didSucceed = false
FileDownloader(context, config, client).downloadAsset(
assetEntity,
File(context.cacheDir, "test"),
context,
object : FileDownloader.AssetDownloadCallback {
override fun onFailure(e: Exception, assetEntity: AssetEntity) {
error = e
}
override fun onSuccess(assetEntity: AssetEntity, isNew: Boolean) {
didSucceed = true
}
}
)
Assert.assertTrue(error!!.message!!.contains("File download was successful but base64url-encoded SHA-256 did not match expected"))
Assert.assertFalse(didSucceed)
}
@Test
fun test_downloadAsset_nullExpectedAssetHash() {
val configMap = mapOf<String, Any>(
UpdatesConfiguration.UPDATES_CONFIGURATION_UPDATE_URL_KEY to Uri.parse("path_to_url"),
UpdatesConfiguration.UPDATES_CONFIGURATION_RUNTIME_VERSION_KEY to "1.0"
)
val config = UpdatesConfiguration(null, configMap)
val assetEntity = AssetEntity(UUID.randomUUID().toString(), "jpg").apply {
url = Uri.parse("path_to_url")
extraRequestHeaders = JSONObject().apply { put("expo-platform", "ios") }
}
val client = mockk<OkHttpClient> {
every { newCall(any()) } returns mockk {
every { enqueue(any()) } answers {
firstArg<Callback>().onResponse(
mockk(),
mockk {
every { isSuccessful } returns true
every { body } returns "hello".toResponseBody("text/plain; charset=utf-8".toMediaTypeOrNull())
}
)
}
}
}
var error: Exception? = null
var didSucceed = false
FileDownloader(context, config, client).downloadAsset(
assetEntity,
File(context.cacheDir, "test"),
context,
object : FileDownloader.AssetDownloadCallback {
override fun onFailure(e: Exception, assetEntity: AssetEntity) {
error = e
}
override fun onSuccess(assetEntity: AssetEntity, isNew: Boolean) {
didSucceed = true
}
}
)
Assert.assertNull(error)
Assert.assertTrue(didSucceed)
}
}
```
|
José María Hinojosa Lasarte (17 September 1904 – 22 August 1936) was a Spanish writer and political militant. As a man of letters he is considered one of the first if not the very first and the only genuinely surrealist poet in Spain, counted also among members of Generation ‘27. As a politician he acted in ultra-conservative realm, holding Carlist jefatura in Málaga and building Andalusian structures of the Agrarian party. Following more than half a century of oblivion, his memory and especially the circumstances of his death became a counter-reference to these of Lorca and are subject to politically-charged discussions.
Family and youth
According to the family legend the forefathers of José María descended from Moctezuma; according to historical records the Carvajals were first noted in Málaga province in the 16th century, having founded the town of Campillos. Along the strictly male paternal line the Hinojosas, another local family, throughout the centuries as wealthy landholders ensured their dominant position in the county. The list of Campillos’ mayors reads like the Hinojosa genealogical tree; also José María's father Salvador Hinojosa Carvajal (1869-1936) and his uncle held the alcaldia post in the late Restoration period; Salvador, influential within the local conservative realm, served also as diputado provincial. In 1893 he married Asunción Lasarte Xuarez (1872-1932), descendant to another affluent landholder family from the nearby Estepa. The couple lived on family estates in Campillos and Alameda; they had 6 children, José María born as the second oldest son.
Hinojosa and his siblings were brought up in luxury and under heavy religious influence, the latter mostly due to their mother. Certain scholars suggest that Asunción's strong Catholic conviction bordered on tyranny. From infancy, José María was described as serious, withdrawn, addicted to reading, and having a penchant for extravagance. In 1915 he entered the Colegio de San Fernando in Málaga and possibly also the Jesuit college of San Estanislao; he graduated in 1920. In 1921–1922 he attended preparatory law courses at the Universidad de Granada before moving to Madrid in 1923, where he enrolled at the Facultad de Derecho. After a 1925–1926 spell in Paris – either to improve his French or to prepare for diplomatic service – Hinojosa returned to Spain and completed his curriculum in 1926. He spent most of 1927 serving in the military as a soldier in the capital. He completed his service in 1928.
The years of 1928–1930 were mostly bohemian in Málaga, combined with journeys across Andalusia and abroad. Apart from trips to France and England, Hinojosa visited Nordic countries and toured the USSR, perhaps the first of this sort permitted by the Soviet authorities. Partly living with his family, he also began to engage in the family business, which apart from landholdings also includes industrial exploration activities. Around that time, he fell in love with Ana Freüller Valls, an aristocrat, granddaughter to Juan Valera and a local aviation pioneer. Their relationship proved to be a complex and erratic one. Hinojoisa hoped for marriage and indeed Freüller later admitted that at one point they were about to marry; however, she also claimed that they were simply close friends. The affair went on until Hinojosa's death; he was never married and had no children.
Literary career
In the early 1920s, Hinojosa began his career in Málaga with Emilio Prados as his literary mentor. In 1923, he co-founded Ambos, a literary review. Vaguely anchored in Andalusian rural myths it embraced aspects of the eclectic avant-garde, including dadaism, futurism and expressionism; apart from juvenile poems contributed by its founders, the periodical also printed works of García Lorca, Laffón Zambrano and Salazar Chapela. With circulation limited mostly to acquaintances, Ambos stopped after just 4 issues. Hinojosa's writing matured in Paris, where he joined the circle of young Spanish artists: apart from already befriended Prados and Lorca the group included Buñuel, Dalí and a number of later famous writers and painters. Though styled after Rimbaud, in terms of poetry Hinojosa was described as a surrealist; the poems he contributed to reviews like La Verdad or Verso y prosa, but especially the volumes he published in 1925–1927, are considered a stepping stone towards full literary maturity.
Hinojosa's writings climaxed in 1928 with the publication of further two volumes, considered the peak embodiment of his surrealism. In the late 1920s, he got involved in Imprenta Sur, a friendly Málaga publishing house and especially in the launch of Litoral, another Málaga-based avant-gardist literary review. He contributed as editor and poet, specifically involved in the 1929 commemorative issue dedicated to Góngora; at that time he also engaged financially and entered the board; later Hinojosa intended to launch a strictly surrealist periodical. Due to his poetry and bohemian lifestyle but also because of somewhat anti-religious if not nearly blasphemous motives of his writings, in the local Málaga milieu he was already enjoying the reputation of an extravagant iconoclast. Hinojosa reinforced this image by staging social provocations scandalizing both iconic intellectuals like Valle-Inclan and plain rural Andalusians; he was willingly assisted by acquaintances like Dalí and his new female partner Gala.
Hinojosa's relations with his avant-garde group of companions remained ambiguous. Though admitted to their inner circle, behind his back and to some extent also up front he was ridiculed as a wealthy señorito and mocked as a poor author who fathered disastrous poetry, never really a genuine member of the group; Diego, Lorca, Dalí or Buñuel used to denigrate him. Many treated him as a sponsor rather than as a fellow writer; they stayed at his premises, travelled with him and dined at his cost, considering it useful to be on close terms with "bohemian with the current account"; some re-paid with own works, and this is how Hinojosa gathered a collection of paintings of Miró, Picasso, Gris, Dalí and Bores. Literary critique either ignored him or belittled him. It is not clear whether the complex setting contributed to the violent and apocalyptic tone of Hinojosa's last poetic volume, to be published in 1930, withdrawn from print and issued in early 1931. It turned out to be his farewell to belles-letres; according to some the poet decided to dump literature, "commit literary suicide" and not to look back.
Works
Hinojosa penned around 200 poems, mostly short and some very short ones; short prose is down to 14 texts evading typical categorization, while theatrical and novelist attempts did not survive until today. All works were written between 1923 and 1930; during his lifetime they were published in 6 limited-circulation volumes and few periodicals. His literary production is considered a curve, from early juvenile works to surrealist climax and a final descent. Another scholar singles out 4 phases: descriptive, transitory, autobiographical and catastrophic.
Early poems, from these printed in Ambos to Poema del Campo (1925), are anchored in rural myths and set in capacity perceptive of an unspecified territory, largely bucolic and lyrical. In terms of style due to folk ambience some refer to "neopopulism", others mention also "purismo" and "cubismo". Scholars flag a synthesis of tradition and modernity, the latter represented by innovative if not already extravagant metaphor. Poesía de perfil (1926), published in Paris, offered poems inspecting an interior of the fantastic mixed with a real setting. The largely descriptive tone gave way to dominant lyrical expression and the monothematic perspective was replaced with a variety of themes, often organized around the motive of exploration. "Estética purista" was partially substituted by oneiric and surrealist approach, not clear yet already visible, and the entire volume was distinctively more expressive. La Rosa de los Vientos (1927), published again in Málaga, was a small collection of just 19 poems; they focused upon imaginary journeys to exotic locations and to the inner self. Providing a discourse on space, mystery, and wilderness the volume offered frequent references to ancient as well as popular culture and introduced heterodox erotic motives. Stylistically at times very sophisticated, blending various rhyme orders and syllable types, it is described as a mix of Hispanic Ultra, French surrealism and Chilean creationism.
Two volumes from 1928 are thought to be the most mature of Hinojosa's works. Orillas de la luz contained mostly poems saturated with eroticism, its main theme. They were, to a large extent, within the surrealist framework, featuring its trademark motives like mutilations and fragmented body parts; the fact that this poetry retained classic metrum is thought to be demonstrative of Hinojosa's synthetic ambitions. La Flor de Californía, considered the first surrealist work in Spain, is his sole prosaic volume; it contains seven dream narratives and seven oneiric texts; the former retain some bizarre linear coherence, while the latter come close to so-called automatic writing. The prose explores typical surrealist imagery: antireligious motives, black humor, objective chance and subterranean dream-worlds, containing also a series of apocalyptic visions. Strictly auto-biographical in terms of perspective, it is viewed as an expression of his own identity in an increasingly desperate pursuit of fulfillment. La Sangre en Libertad (1931) was very much a repetition of La Flor but brought to extremes, with new levels of anti-religious ridicule, sexual references, motives of violence and apocalyptic scenery. Autobiographic features were embroiled in catastrophic premonitions; stylistically the volume shows an evolution towards free verse and far-reaching formal linguistic experiments.
From iconoclast to Carlist
Until the early 1930s Hinojosa did not engage in politics, though his literary stand – especially anti-religious threads, but also social provocations aimed against perceived bourgeoisie mentality – was clearly suggesting left-wing preferences; reportedly he also considered collectivization of family estates and might have visited the USSR to gain familiarity with the Soviet scheme. His later about-face and engagement in right-wing politics remain a mystery and have not been satisfactorily explained. Some scholars speculate that the USSR journey commenced the change. Others note that getting engaged in family business, for decades plagued by rural strikes and social tension, might have also led to his transformation. It is underlined that a love affair with Ana Freüller, apart from being an aviation pioneer a fairly typical wealthy girl who loathed his poetry, might have contributed to this shift in political preference. It is not clear whether the ambiguous stance of Hinojosa's artistic companions convinced him that he belonged to another world and caused him to overreact. Finally, some claimed that his surrealism was merely the caprice of a bourgeoisie señorito, opinion shared also by a few scholars.
Hinojosa's biographers either claim that he started to embrace a right-wing mindset after 1928 or that the rupture took place sometime between 1925 and 1930. He was already highly skeptical – though not militantly averse yet – when the Republic was declared in 1931. In unclear circumstances he assumed the post of juez municipal in Campillos, the job which might have exposed him to cases of social violence. Starting July he was recorded as engaged in the establishment of a provincial landholders’ organization; later that year he became secretary of the newly emergent Federación Provincial de Sindicatos Agrícolas de Málaga and started to write agriculture-centred and conservatism-flavored articles in the local La Unión Mercantil. At that time Hinojosa demonstrated interest in Partido Nacionalista Español of José Albiñana and his former surrealist colleagues agonized that he was about to found a provincial branch of "partido fascista".
Hinojosa finally decided to opt for another right-wing organization. José María Lamamié de Clairac, a landholder and a friend of his father, was at the time combining syndicate activity in agrarian groupings with political engagement in Carlism; it was him who convinced Hinojosa to follow suit. Since January 1932 he was taking part in Comunión Tradicionalista gatherings; in July 1932 he was already recorded delivering a lecture which hailed Catholic virtues of patriotic women, who bravely confronted renegade liberalism, and in early August he organized Carlist meetings in Málaga himself. He resigned the juez municipal post. Gaining recognition in nationwide Traditionalist press Hinojosa was getting identified as a belligerent "derechista” by the authorities; though he had nothing to do with Sanjurjada, in its aftermath he was detained and spent 2 weeks in a local prison, locked up with other Andalusian Carlists genuinely involved in the coup. The experience has only exacerbated his militancy.
Between Carlism and Agrarism
After his release from jail in late 1932, Hinojosa continued organizing Carlist gatherings across the province. In early 1933, he emerged among the most active Traditionalists in the area together with Arauz de Robles. In March he rose to the jefe of the local organization; in numerous addresses he saluted Carlist heroes, pledged to liberate Spain from a Liberal-Marxist revolution, and paid homage to Sanjurjo, who gallantly sacrificed himself for Spain; some addresses contained thinly veiled anti-Republican tones. In parallel Hinojosa hectically worked to build agrarian syndicates through meetings, speeches, and writings, and as a Carlist representative he animated the Málaga branch of Acción Popular. He represented all 3 groupings standing on broad right-wing alliance ticket during the 1933 electoral campaign; some papers referred to him as a Carlist, some as Agrarian and some as a candidate of AP; scholars name him a Carlist. With 21,662 votes he failed to make it to the Cortes during the inconclusive first round and withdrew shortly before the second one. He commenced the year of 1934 as a freshly appointed member of the board of Editorial Tradicionalista, a new publishing house intended as an engine of Carlist propaganda.
From early 1934, there is no more information on Hinojosa's Carlist engagements. Instead, most sources point to his relations with Partido Agrario Español and its syndicates. He kept writing to La Unión Mercantil on average 3 times a month, kept co-administering family estates, and commenced the career of a lawyer. Some sources claim he defended Campillos peasants charged with assault and robbery yet the press noted that he called Guardia Civil against those who occupied his estates, an intervention which resulted in bloody confrontation. In late 1934 the Agrarian minister José María Cid appointed Hinojosa delegado del gobierno en los Servicios Hidráulicos del Sur de España; quoting new political circumstances, he resigned in April 1935, once the Agrarians withdrew from the government. At that time he was already the provincial jefe of Partido Agrario and as its candidate unsuccessfully stood in the 1936 elections.
Following triumph of Frente Popular Hinojosa was hectically involved in agrarian syndicates, demanding re-introduction of public order and a revision of rural labor contracts. In May – still active as a lawyer - he was detained following disturbances in Campillos. During the July 18 coup in Málaga he might have been involved in assisting the military and together with his father and brother went into hiding the following day. They considered an escape to Gibraltar, but before taking action the three were captured on July 24. They spent the next month in provincial prison; on August 22 the workers’ militia stormed the building, dragged 43 prisoners out, shot them at the local cemetery and buried the bodies in the mass grave. Hinojosa's corpse has never been positively identified. Following the Nationalist conquest of Málaga the remnants were exhumed and Salvador Hinojosa was recognized thanks to a handkerchief in his pocket; it was assumed that two mostly decomposed corpses of young males next to his body were these of Francisco and José María.
Reception and legacy
Hinojosa's writings went unnoticed, save for a limited avant-garde audience. Critics remained mostly indifferent; only few noted "excessive originality". A handful of reviews following the 1928 volumes denigrated the author; some dubbed his poetry "entelequia", others ridiculed "señorito andaluz" and noted that "having two cars does not allow too much". Following his death his works were almost completely forgotten, as to both sides of the war he was an "inconvenient dead". For the Republicans, his life and death made a dangerously symmetrical parallelism to those of Lorca and might have harmed the propaganda exploitation of Lorca's fate as an anti-Francoist cause célèbre. Hinojosa was denied surrealist credentials and patronized; his former companions like Alberti floated stories of a greedy bourgeoisie landowner killed by his own peasants and some denied knowing him. For the Nationalists, who consistently denied the existence of Spanish surrealism, his iconoclastic poetry made him ineligible for a Nationalist martyr. The exiled and Spain-based historians of literature alike either ignored Hinojosa or relegated him to footnotes, though very sporadically some poems appeared in anthologies and his name was mentioned in the press a few times.
In 1974, Hinojosa's cousin Baltasar Peña took advantage of his position in the Diputación de Málaga to finance a re-edition of selected works; some press notes followed up noting a "deformación" of contemporary literature yet others insisted not to "desorbitar la importancia". In 1977 Julio Neira launched a campaign to revindicate Hinojosa, crowned with a 1981 PhD dissertation; a 1983 re-edition of 2 volumes of Litoral contributed to the process. In the 1980s Hinojosa was gradually making his way into encyclopedias, periodicals, textbooks etc. and 1995 brought another PhD thesis. Since then his presence in history of literature is considered obligatory, based mostly on his presumed status of the first Spanish surrealist; However, in some cases he is denied membership in Generación del 27. In 1998 he was declared hijo predilecto by Málaga province, the 2004 birth centenary produced several publications and events, and a 2012 study (instead of the typical "forgotten poet") referred already to "a well-known Spanish poet". In 2014 he was dedicated a literary work. A Málaga school has been named after him.
Hinojosa's memory remains politically charged. Some tackle the Hinojosa-Lorca parallelism declaring upfront that both were victims of "irrational hatred" produced by an "absurd war", yet among countless books discussing the civil war terror, almost all mention Lorca and almost none mention Hinojosa. Both right-wing and left-wing groups started to claim his legacy. Some Traditionalist sites honor him as "their man". Certain progressivist authors present him as a martyr who dedicated his life to fighting imperialism, nationalism and the church; others imply his homosexuality. The Málaga San Rafael cemetery, where Hinojosa was executed, was doted in 2014 with a monument-mausoleum to honor "those who gave their life in defense of freedom and democracy and whose remains rest here or in other sites". Hinojosa has never been mentioned in a spate of press notes related, some of which noted a construction recording "la barbarie de la represión franquista".
See also
Surrealism
Carlism
Spanish Agrarian Party
Notes
Further reading
Enrique Baena, La belleza convulsa. Soledad y voluntad en José María Hinojosa, [in:] Puertaoscura 6 (1988), pp. 31–34
Geo Constantinescu, José María Hinojosa y el surrealismo español, [in:] Diacronia 6 (2010), pp. 445–449
Alfonso Canales, La muerte de Hinojosa, [in:] Jábega 1 (1973), pp. 89–91
Rafael de Cózar, Algunas notas sobre la vanguardia y el Surrealsimo: A modo de introducción al andaluz José María Hinojosa, [in:] Juan Collantes de Terán (ed.) Andalucía en la generación del 27, Seville 1978, pp. 73–111
Carmen Díaz Margarit, El surrealismo en "La flor de California" de José María Hinojosa, Madrid 2003,
Nigel Dennis, José María Hinojosa y la cuestión del compromiso, [in:] El Maquinista de la generación 11 (2006), pp. 50–65
Luis Teófilo Gil Cuadrado, El Partido Agrario Español (1934–1936): una alternativa conservadora y republicana [PhD thesis Complutense], Madrid 2006
Luis Alonso Girgado, La Generación del 27 de nuevo en Litoral; reencuentro con José María Hinojosa, [in:] Anales de la Literatura Española Contemporánea 9 (1984), pp. 131–141
Renata Londero, La Rosa de los Vientos di José María Hinojosa, scherzo avanguardista di un ‘minore’ della Generazione del 27, [in:] Il confronto letterario 19 (1993), pp. 127–146
Matilde de Moreno Escobar (ed.), José María Hinojosa entre dos luces: 1904–1936, Málaga 2004,
Matilde de Moreno Escobar, La sangre en libertad: una reelaboración surrealista del petrarquismo, [in:] Jaume Pont (ed.), Surrealismo y literatura en España, Lleida 2001, , pp. 171–180
Julio Neira, Introducción, [in:] José María Hinojosa, La Flor de Californía, Santander 1979, pp. 13–47
Julio Neira, Introducción, [in:] José María Hinojosa, Poesias Completas, Torremolinos 1983, pp. 11–29
Julio Neira, José María Hinojosa. Vida y obra [PhD thesis Universidad de Extremadura], Cáceres 1981
Julio Neira, La religión en La flor de Californía, de José María Hinojosa, [in:] Insula XLIV (1989), pp. 17–19
Julio Neira, Surrealism and Spain: the Case of Hinojosa, [in:] Brian C. Morris (ed.), The Surrealist Adventure in Spain, Ottawa 1991, pp. 101–118
Julio Neira, El surrealismo de José María Hinojosa. Esbozo, [in:] Víctor García de la Concha (ed.), El surrealismo, Madrid 1992, pp. 271–285
Jacqueline Rattray, A Delicious Imaginary Journey with Joan Miró and José María Hinojosa, [in:] Robert Havard (ed.), Companion to Spanish Surrealism, Woodbridge 2004, , pp. 33–48
Jacqueline Rattray, The Surrealist Visuality of José María Hinojosa: A Sight for Sore Eyes, London 2015,
Rosa Romojaro, Acercamiento a lo imaginario en ‘La Sangre en Libertad’ de José María Hinojosa, [in:] Rosa Romojaro, Lo escrito y lo leído, Madrid 2004, , pp. 101–120
Rosa Ruiz Gisbert, José María Hinojosa, el gran olvidado, [in:] Isla de Arriarán: revista cultural y científica 29 (2007), pp. 181–200
Alfonso Sánchez Rodríguez, José María Hinojosa: 1925–1936. Apuntes sobre la trayectoria de un surrealista, [in:] Litroral 174/175/176 (1987), pp. 138–140
Alfonso Sánchez Rodríguez, José María Hinojosa; Ensayo bibliográfico, Málaga 1995,
Alfonso Sánchez Rodríguez, La poesía de José María Hinojosa [PhD thesis Universitat de Lleida], Lérida 1995
Mark Statman, Black Tulips: The Selected Poems of José María Hinojosa (translations, essay) University of New Orleans Press, 2012.
External links
Poesias del alma; website featuring some Hinojosa poems
Poeticus; website featuring some Hinojosa poems
A media voz; website featuring some Hinojosa poems
Poesias completas online
Hinojosa at Biblioteca Cervantes site
calle Hinojosa, Malaga at GoogleMaps service
Por Dios y por España; contemporary Carlist propaganda
Agrarianists
Carlists
Executed writers
Spanish Roman Catholics
People killed by the Second Spanish Republic
Surrealist poets
War crimes of the Spanish Civil War
|
```xml
import "../../index";
import {validateModel} from "../../../test/helpers/validateModel.js";
import {JsonEntityStore} from "../../domain/JsonEntityStore.js";
import {getJsonSchema} from "../../utils/getJsonSchema.js";
import {CollectionOf} from "../collections/collectionOf.js";
import {MinLength} from "./minLength.js";
describe("@MinLength", () => {
it("should declare minimum value", () => {
// WHEN
class Model {
@MinLength(0)
word: string;
}
// THEN
const classSchema = JsonEntityStore.from(Model);
expect(classSchema.schema.toJSON()).toEqual({
properties: {
word: {
minLength: 0,
type: "string"
}
},
type: "object"
});
});
it("should throw error", () => {
// WHEN
let actualError: any;
try {
MinLength(-1);
} catch (er) {
actualError = er;
}
// THEN
expect(actualError.message).toBe("The value of minLength MUST be a non-negative integer.");
});
it("should declare minimum value on type (collection)", () => {
// WHEN
class Model {
@MinLength(0)
@CollectionOf(String)
words: string[];
}
// THEN
const classSchema = JsonEntityStore.from(Model);
expect(classSchema.schema.toJSON()).toEqual({
properties: {
words: {
type: "array",
items: {
minLength: 0,
type: "string"
}
}
},
type: "object"
});
});
it("should declare minimum value on collection (collection)", () => {
// WHEN
class Model {
@MinLength(0)
@CollectionOf(String).MinItems(0).MaxItems(10)
words: string[];
}
// THEN
const classSchema = JsonEntityStore.from(Model);
expect(classSchema.schema.toJSON()).toEqual({
properties: {
words: {
type: "array",
items: {
minLength: 0,
type: "string"
},
maxItems: 10,
minItems: 0
}
},
type: "object"
});
});
it("should declare minLength field with custom error message", () => {
// WHEN
class Model {
@MinLength(2).Error("Require at least 2 characters")
@CollectionOf(String).MinItems(0).MaxItems(10)
words: string[];
}
// THEN
const schema = getJsonSchema(Model, {customKeys: true});
expect(schema).toEqual({
properties: {
words: {
items: {
minLength: 2,
type: "string",
errorMessage: {
minLength: "Require at least 2 characters"
}
},
maxItems: 10,
minItems: 0,
type: "array"
}
},
type: "object"
});
const result = validateModel(
{
words: ["a"]
},
Model
);
expect(result).toEqual([
{
instancePath: "/words/0",
keyword: "errorMessage",
message: "Require at least 2 characters",
params: {
errors: [
{
emUsed: true,
instancePath: "/words/0",
keyword: "minLength",
message: "must NOT have fewer than 2 characters",
params: {
limit: 2
},
schemaPath: "#/properties/words/items/minLength"
}
]
},
schemaPath: "#/properties/words/items/errorMessage"
}
]);
});
it("should throw error with custom error message", () => {
// WHEN
class Model {
@MinLength(10).Error("Title must be at least 10 characters long")
word: string;
}
// THEN
const result = validateModel({word: "test"}, Model);
expect(result).toEqual([
{
instancePath: "/word",
keyword: "errorMessage",
message: "Title must be at least 10 characters long",
params: {
errors: [
{
emUsed: true,
instancePath: "/word",
keyword: "minLength",
message: "must NOT have fewer than 10 characters",
params: {
limit: 10
},
schemaPath: "#/properties/word/minLength"
}
]
},
schemaPath: "#/properties/word/errorMessage"
}
]);
});
});
```
|
The LNER Class V2 2-6-2 steam locomotive, number 4771 Green Arrow was built in June 1936 for the London and North Eastern Railway (LNER) at Doncaster Works to a design of Nigel Gresley. The first-built and sole surviving member of its class, it was designed for hauling express freight and passenger trains and named after an express freight service.
Operational life
Initially allotted the number 637, it was fitted with curved nameplates over the middle driving wheels. Before entry into LNER service the number was altered to 4771, and the curved nameplates were replaced with straight nameplates mounted on the sides of the smokebox. In order to do this, the builder's plate (Doncaster Works No. 1837) had to be re-located to below the cab windows.
The locomotive was later allocated no. 700 in 1943, but this never carried and was revised to 800 in April 1946, and that number was applied by the LNER in November 1946, and 60800 by British Railways in February 1949.
Preservation
Green Arrow was withdrawn from British Railways service in August 1962, and selected for preservation within the national collection, it was restored at Doncaster Works.
With work completed in April 1963, it was followed by almost ten years of storage, during which it was moved several times. A transfer from Doncaster to Hellifield occurred in October 1964; the locomotive was moved to Wigston in 1967 - this was intended to be the final temporary home, since it was intended that Green Arrow would become one of the permanent exhibits in a Municipal Museum which was proposed for the nearby city of Leicester. However, before the museum was ready, demolition of Wigston locomotive depot was scheduled, and the locomotive was sent south to the Preston Park shops of the Pullman Car Company in September 1970. The National Railway Museum (NRM) was then being planned, and in November 1971 Green Arrow was selected for the National Collection, items from which would form the main display in the NRM. The locomotive was again moved, this time to Norwich depot in January 1972, where it was returned to working order; the first trial trip, to Ely, was on 28 March 1973. It then commenced a series of runs at the head of special trains, before being moved to Carnforth on 2 July 1973.
In September 1979, Green Arrow headed The Centenary Express, as part of an exhibition tour of the country organised by Travellers Fare to celebrate the centenary of on-train catering. Green Arrow ran in preservation until being withdrawn from service on 21 April 2008, shortly before its boiler certificate expired.
After a series of commemorative runs on preserved railways, the locomotive moved to the North Yorkshire Moors Railway for their LNER gala. Following the first gala weekend the boiler was found to have two cracked superheater tubes; temporary repairs allowed the loco to make a final run on the second weekend before being finally withdrawn. Following this the loco returned to the National Collection and was on static display at the National Railway Museum's Locomotion site at Shildon. In 2015 it was announced that Green Arrow is one of the planned exhibits for the Great Central Railway's proposed railway museum located at Leicester North station. In February 2021 it was announced that the locomotive had been loaned for 3 years to the newly relocated Danum Gallery.
Models
Bachmann and Graham Farish produce models of Green Arrow for OO gauge and N gauge respectively as part of the 2011 range.
Notes
References
Further reading
External links
North Yorkshire Moors Railway - Notification of Green Arrows final outing
2-6-2 locomotives
Individual locomotives of Great Britain
Preserved London and North Eastern Railway steam locomotives
Railway locomotives introduced in 1936
V2 4771
|
```python
#
#
# 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.
"""Trainer for the chicago_taxi demo."""
# pytype: skip-file
import argparse
import os
import tensorflow as tf
import tensorflow_model_analysis as tfma
import tensorflow_transform as tft
from tensorflow import estimator as tf_estimator
from trainer import model
from trainer import taxi
SERVING_MODEL_DIR = 'serving_model_dir'
EVAL_MODEL_DIR = 'eval_model_dir'
TRAIN_BATCH_SIZE = 40
EVAL_BATCH_SIZE = 40
# Number of nodes in the first layer of the DNN
FIRST_DNN_LAYER_SIZE = 100
NUM_DNN_LAYERS = 4
DNN_DECAY_FACTOR = 0.7
def train_and_maybe_evaluate(hparams):
"""Run the training and evaluate using the high level API.
Args:
hparams: Holds hyperparameters used to train the model as name/value pairs.
Returns:
The estimator that was used for training (and maybe eval)
"""
schema = taxi.read_schema(hparams.schema_file)
tf_transform_output = tft.TFTransformOutput(hparams.tf_transform_dir)
train_input = lambda: model.input_fn(
hparams.train_files, tf_transform_output, batch_size=TRAIN_BATCH_SIZE)
eval_input = lambda: model.input_fn(
hparams.eval_files, tf_transform_output, batch_size=EVAL_BATCH_SIZE)
train_spec = tf_estimator.TrainSpec(
train_input, max_steps=hparams.train_steps)
serving_receiver_fn = lambda: model.example_serving_receiver_fn(
tf_transform_output, schema)
exporter = tf_estimator.FinalExporter('chicago-taxi', serving_receiver_fn)
eval_spec = tf_estimator.EvalSpec(
eval_input,
steps=hparams.eval_steps,
exporters=[exporter],
name='chicago-taxi-eval')
run_config = tf_estimator.RunConfig(
save_checkpoints_steps=999, keep_checkpoint_max=1)
serving_model_dir = os.path.join(hparams.output_dir, SERVING_MODEL_DIR)
run_config = run_config.replace(model_dir=serving_model_dir)
estimator = model.build_estimator(
tf_transform_output,
# Construct layers sizes with exponetial decay
hidden_units=[
max(2, int(FIRST_DNN_LAYER_SIZE * DNN_DECAY_FACTOR**i))
for i in range(NUM_DNN_LAYERS)
],
config=run_config)
tf_estimator.train_and_evaluate(estimator, train_spec, eval_spec)
return estimator
def run_experiment(hparams):
"""Train the model then export it for tf.model_analysis evaluation.
Args:
hparams: Holds hyperparameters used to train the model as name/value pairs.
"""
estimator = train_and_maybe_evaluate(hparams)
schema = taxi.read_schema(hparams.schema_file)
tf_transform_output = tft.TFTransformOutput(hparams.tf_transform_dir)
# Save a model for tfma eval
eval_model_dir = os.path.join(hparams.output_dir, EVAL_MODEL_DIR)
receiver_fn = lambda: model.eval_input_receiver_fn(
tf_transform_output, schema)
tfma.export.export_eval_savedmodel(
estimator=estimator,
export_dir_base=eval_model_dir,
eval_input_receiver_fn=receiver_fn)
def main():
parser = argparse.ArgumentParser()
# Input Arguments
parser.add_argument(
'--train-files',
help='GCS or local paths to training data',
nargs='+',
required=True)
parser.add_argument(
'--tf-transform-dir',
help='Tf-transform directory with model from preprocessing step',
required=True)
parser.add_argument(
'--output-dir',
help="""\
Directory under which which the serving model (under /serving_model_dir)\
and the tf-mode-analysis model (under /eval_model_dir) will be written\
""",
required=True)
parser.add_argument(
'--eval-files',
help='GCS or local paths to evaluation data',
nargs='+',
required=True)
# Training arguments
parser.add_argument(
'--job-dir',
help='GCS location to write checkpoints and export models',
required=True)
# Argument to turn on all logging
parser.add_argument(
'--verbosity',
choices=['DEBUG', 'ERROR', 'FATAL', 'INFO', 'WARN'],
default='INFO',
)
# Experiment arguments
parser.add_argument(
'--train-steps',
help='Count of steps to run the training job for',
required=True,
type=int)
parser.add_argument(
'--eval-steps',
help='Number of steps to run evalution for at each checkpoint',
default=100,
type=int)
parser.add_argument(
'--schema-file', help='File holding the schema for the input data')
args = parser.parse_args()
# Set python level verbosity
tf.compat.v1.logging.set_verbosity(args.verbosity)
# Set C++ Graph Execution level verbosity
os.environ['TF_CPP_MIN_LOG_LEVEL'] = str(
getattr(tf.compat.v1.logging, args.verbosity) / 10)
# Run the training job
hparams = tf.contrib.training.HParams(**args.__dict__)
run_experiment(hparams)
if __name__ == '__main__':
main()
```
|
```java
/*
*
*
* path_to_url
*
* Unless required by applicable law or agreed to in writing, software
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*
*/
package com.kaku.colorfulnews.mvp.view.base;
/**
* @author
* @version 1.0 2016/5/20
*/
public interface BaseView {
void showProgress();
void hideProgress();
void showMsg(String message);
}
```
|
Żabnik may refer to:
Żabnik, Greater Poland Voivodeship
Żabnik, Opole Voivodeship
|
```xml
<?xml version="1.0" encoding="utf-8"?>
<!--
~ All Rights Reserved.
-->
<LinearLayout
xmlns:android="path_to_url"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="@dimen/item_content_horizontal_margin"
android:layout_marginRight="@dimen/item_content_horizontal_margin"
android:background="?colorBackgroundFloating"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingLeft="@dimen/screen_edge_horizontal_margin"
android:paddingRight="@dimen/screen_edge_horizontal_margin"
android:paddingTop="@dimen/content_vertical_space"
android:paddingBottom="@dimen/content_vertical_space"
android:gravity="center_vertical"
android:orientation="horizontal">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/item_forum_topic_list_title"
android:textAppearance="@style/TextAppearance.AppCompat.Subhead" />
<Space
android:layout_width="0dp"
android:layout_height="0dp"
android:layout_weight="1" />
<me.zhanghai.android.douya.ui.ColoredBorderButton
android:id="@+id/create"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:minWidth="0dp"
android:minHeight="0dp"
android:layout_marginLeft="-4dp"
android:layout_marginRight="-4dp"
android:layout_marginTop="-6dp"
android:layout_marginBottom="-6dp"
android:padding="6dp"
android:text="@string/item_forum_topic_list_create"
android:textSize="@dimen/abc_text_size_caption_material"
style="@style/Widget.AppCompat.Button.Borderless.Colored" />
</LinearLayout>
<me.zhanghai.android.douya.ui.AdapterLinearLayout
android:id="@+id/forum_topic_list"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical" />
<Button
android:id="@+id/view_more"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?selectableItemBackground"
android:paddingTop="@dimen/content_vertical_space"
android:paddingBottom="@dimen/content_vertical_space"
android:includeFontPadding="false"
android:text="@string/item_forum_topic_list_view_more"
android:textAppearance="@style/TextAppearance.AppCompat.Widget.Button.Borderless.Colored" />
</LinearLayout>
```
|
```xml
/* tslint:disable */
import 'source-map-support/register'
import { Command as Base } from './Command'
import { flags as Flags } from './Flags'
import nock from 'nock'
import { Config } from './Config'
class Command extends Base {
static topic = 'foo'
static command = 'bar'
static flags = { myflag: Flags.boolean() }
static args = [{ name: 'myarg', required: false }]
}
test('gets the version tokens correctly', async () => {
const cmd = await Command.mock()
expect(cmd.getVersionTokens('1.30.0')).toEqual({
minorVersion: '1.30',
stage: 'master'
})
expect(cmd.getVersionTokens('1.31.0-beta')).toEqual({
minorVersion: '1.31',
stage: 'beta'
})
expect(cmd.getVersionTokens('1.31.0-beta.5')).toEqual({
minorVersion: '1.31',
stage: 'beta'
})
expect(cmd.getVersionTokens('1.31.2-alpha')).toEqual({
minorVersion: '1.31',
stage: 'alpha'
})
expect(cmd.getVersionTokens('1.31.0-alpha.5')).toEqual({
minorVersion: '1.31',
stage: 'alpha'
})
expect(cmd.getVersionTokens('1.31-alpha.5')).toEqual({
minorVersion: '1.31',
stage: 'alpha'
})
expect(cmd.getVersionTokens('1.31.2-alpha.5')).toEqual({
minorVersion: '1.31',
stage: 'alpha'
})
expect(cmd.getVersionTokens('1.31-alpha-7')).toEqual({
minorVersion: '1.31',
stage: 'alpha'
})
})
test('compares the versions correctly', async () => {
const cmd = await Command.mock()
expect(cmd.compareVersions('1.30.0', '1.29.0')).toBe(false)
expect(cmd.compareVersions('1.30.2', '1.30.2')).toBe(true)
expect(cmd.compareVersions('1.30.0', '1.30.2')).toBe(true)
expect(cmd.compareVersions('1.30.2-alpha', '1.30.0')).toBe(false)
expect(cmd.compareVersions('1.30.2-alpha', '1.30.0-beta')).toBe(false)
expect(cmd.compareVersions('1.30.2-alpha', '1.30.5-alpha')).toBe(true)
expect(cmd.compareVersions('1.30.2-alpha', '1.31.0-alpha')).toBe(false)
expect(cmd.compareVersions('1.30.2-alpha.5', '1.31.0-alpha.7')).toBe(false)
expect(cmd.compareVersions('1.31.2-alpha.5', '1.31-alpha.7')).toBe(true)
expect(cmd.compareVersions('1.31.2-alpha.5', '1.31-alpha-7')).toBe(true)
})
test('shows the ID', () => {
expect(Command.id).toEqual('foo:bar')
})
test('runs the command', async () => {
const cmd = await Command.mock()
expect(cmd.flags).toEqual({})
expect(cmd.argv).toEqual([])
})
test('has stdout', async () => {
class Command extends Base {
static flags = {
print: Flags.string(),
bool: Flags.boolean(),
}
async run() {
this.out.stdout.log(this.flags.print)
}
}
const { stdout } = await Command.mock('--print=foo')
expect(stdout).toEqual('foo\n')
})
test('has stderr', async () => {
class Command extends Base {
static flags = { print: Flags.string() }
async run() {
this.out.stderr.log(this.flags.print)
}
}
const { stderr } = await Command.mock('--print=foo')
expect(stderr).toEqual('foo\n')
})
test('parses args', async () => {
const cmd = await Command.mock('one')
expect(cmd.flags).toEqual({})
expect(cmd.argv).toEqual(['one'])
expect(cmd.args).toEqual({ myarg: 'one' })
})
test('has help', async () => {
class Command extends Base {
static topic = 'config'
static command = 'get'
static help = `this is
some multiline help
`
}
let config = new Config({ mock: true })
expect(Command.buildHelp(config)).toMatchSnapshot('buildHelp')
expect(Command.buildHelpLine(config)).toMatchSnapshot('buildHelpLine')
})
```
|
District 11 is an electoral district in Malta. It was established in 1976. Its boundaries have changed many times but it currently consists of the localities of Attard, Mdina, Mosta and the hamlet of Burmarrad.
Representatives
2017 General Election
References
Districts of Malta
|
Germania Fußball-Verein was a football club based in Mexico City that played in the México Primera División from 1915 to 1933.
History
Beginnings
The club was founded in 1915 in a German immigrant community in Mexico City. The founders were Edvard Giffenig, Germán Stuht, Richard Obert, Walter Mues, and Carl Mues. In their first years the club mostly finished last or close to the bottom of the standings.
In 1920, the Mexican federation split the tournament into two leagues: the national and the Mexican leagues. Germania played in the Mexican league along with Asturias F.C., México FC, Morelos and Deportivo Internacional, América, España, L´Amicale Francaise, Reforma, and Luz y Fuerza. In the same year, Germania won its only league title, though it was not officially recognised because of the political situation at the time.
1922–1923
Germania reinforced the club by signing Kurt Friederich, who had played in FC Zürich. On 6 May 1923, in a title match between Germania and Asturias F.C., Friedrich led Germania to a one-point lead in the first half. In the second half, however, with the clubs tied at 1–1, Octavio Rimada managed to score for Asturias, giving the club a 2–1 lead which they held to the end of the match to once again proclaim themselves champions. In that tournament Kurt Friederich won the title for scoring, with 12 goals in 13 games.
Coaches
Richard Obert coached the club from 1915 to 1930
Juan Luqué de Serrallonga coached from 1930 to 1933
Honours
National league (1): 1920–21
Copa México (1): 1919
Runner up Liga Amateur del Distrito Federal in 1922–23
Runner up Copa México in 1933
Footnotes
Defunct football clubs in Mexico City
Association football clubs established in 1915
1915 establishments in Mexico
1933 disestablishments in Mexico
German association football clubs outside Germany
Association football clubs disestablished in 1933
German diaspora in North America
Primera Fuerza teams
|
Eucerin is a trademarked brand of Beiersdorf AG. In addition to body and face care products, Eucerin offers sun protectant and cleansing products.
History
In 1900, Isaac Lifschütz manufactured a non-perishable and sleek ointment base consisting of Eucerit, water and oil, naming it Eucerin.
Two years later, in 1902, Lifschütz achieved the patent for his manufacture in Germany.
In 1911, Oscar Troplowitz, who took over the Beiersdorf company from its founder Paul C. Beiersdorf in 1890, bought the patent and a few years later the first Eucerin products (iodine creme, loose powder) were introduced on the German market.
In the 1980s the brand was launched by Beiersdorf affiliates globally, including the USA.
Since 1996 the brand also offers facial care products.
References
External links
Eucerin
Eucerin Malaysia
Trademarks
Emollients and protectives
Beiersdorf brands
Products introduced in 1902
|
```objective-c
//
// PathElementEditor.h
// PathElementEditor
//
// Created by Douglas Ward on 3/2/12.
//
//#import "MacSVGPlugin/MacSVGPlugin.h"
#import <MacSVGPlugin/MacSVGPlugin.h>
@class PathSegmentEditorPopoverViewController;
@class ArcSettingsPopoverViewController;
@class PathElementEditorFunctions;
#define kEditPathSegment 0
#define kAddPathSegment 1
@interface PathElementEditor : MacSVGPlugin
{
// path element
IBOutlet NSPopUpButton * pathModePopupButton;
IBOutlet NSButton * useRelativePathCoordinatesButton;
IBOutlet NSButton * closePathAutomaticallyCheckbox;
IBOutlet NSButton * curveSegmentContinuityCheckbox;
IBOutlet NSButton * arcSettingsButton;
IBOutlet NSPopover * arcSettingsPopover;
// segments
IBOutlet NSPopover * pathSegmentEditorPopover;
IBOutlet NSButton * editSegmentButton;
IBOutlet NSButton * insertSegmentButton;
IBOutlet NSButton * deleteSegmentButton;
IBOutlet NSButton * subdivideSegmentButton;
IBOutlet NSButton * highlightSelectedSegmentCheckbox;
IBOutlet NSColorWell * highlightColorWell;
IBOutlet NSButton * highlightUseCustomStrokeWidthCheckbox;
IBOutlet NSTextField * highlightStrokeWidthTextField;
}
// path element
@property(strong) NSArray * parametersMoveto;
@property(strong) NSArray * parametersLineto;
@property(strong) NSArray * parametersHorizontalLineto;
@property(strong) NSArray * parametersVerticalLineto;
@property(strong) NSArray * parametersCubicCurveto;
@property(strong) NSArray * parametersCubicCurvetoSmooth;
@property(strong) NSArray * parametersQuadraticCurveto;
@property(strong) NSArray * parametersQuadraticCurvetoSmooth;
@property(strong) NSArray * parametersEllipticalArc;
@property(strong) NSArray * parametersClosepath;
@property(strong) IBOutlet NSPopUpButton * pathFunctionsPopupButton;
@property(strong) IBOutlet NSTextField * pathFunctionLabel1;
@property(strong) IBOutlet NSTextField * pathFunctionLabel2;
@property(strong) IBOutlet NSTextField * pathFunctionLabel3;
@property(strong) IBOutlet NSTextField * pathFunctionValue1;
@property(strong) IBOutlet NSTextField * pathFunctionValue2;
@property(strong) IBOutlet NSTextField * pathFunctionValue3;
// segments
@property(strong) IBOutlet NSTableView * pathTableView;
@property(strong) IBOutlet PathSegmentEditorPopoverViewController * pathSegmentEditorPopoverViewController;
@property(strong) IBOutlet ArcSettingsPopoverViewController * arcSettingsPopoverViewController;
@property(strong) IBOutlet NSTextField * pathLengthTextField;
@property(assign) NSInteger pathSegmentEditorMode;
// path functions
@property(strong) IBOutlet PathElementEditorFunctions * pathFunctions;
@property(strong) NSString * selectedElementMacsvgid;
- (IBAction)updateSVGPathEditorAction:(id)sender;
- (IBAction)editPathSegmentButtonAction:(id)sender;
- (IBAction)addPathSegmentButtonAction:(id)sender;
- (IBAction)deletePathSegmentButtonAction:(id)sender;
- (IBAction)closePathNowButtonAction:(id)sender;
- (IBAction)closePathAndContinueAction:(id)sender;
- (IBAction)extendPathButtonAction:(id)sender;
- (IBAction)arcSettingsButtonAction:(id)sender;
- (IBAction)subdivideSegmentButtonAction:(id)sender;
- (IBAction)performPathFunctionButtonAction:(id)sender;
- (IBAction)pathFunctionPopUpButtonAction:(id)sender;
- (void)updateWithPathSegmentsArray:(NSMutableArray *)aPathSegmentsArray updatePathLength:(BOOL)updatePathLength;
@property (readonly, copy) NSMutableArray *pathSegmentsArray;
@end
```
|
```xml
import type { ColorConversionResult } from "./ColorConversionResult";
export interface ColorConverter {
convertFromString(value: string): ColorConversionResult[];
}
```
|
Razaviyeh District () is in Mashhad County, Razavi Khorasan province, Iran. Its capital is the city of Razaviyeh.
At the 2006 National Census, its population was 67,093 in 15,527 households. The following census in 2011 counted 50,169 people in 13,566 households. At the latest census in 2016, the district had 59,232 inhabitants in 16,790 households.
References
Mashhad County
Districts of Razavi Khorasan Province
Populated places in Mashhad County
|
Harry F. Dahms is Professor of Sociology, co-director of the Center for the Study of Social Justice and co-chair of the Committee on Social Theory at the University of Tennessee - Knoxville. Dahms also is an associate editor of Basic Income Studies and Soundings. An Interdisciplinary Journal, and was a founding member of the editorial boards of The Newfound Press (an imprint of the University of Tennessee Libraries), as well as of Anthem Studies in the Political Sociology of Democracy, on whose board he has remained. Since 2022, he has been a member of the AI Tennessee Initiative taskforce.
Dahms' primary research and teaching areas are theoretical sociology (social, sociological, and critical theory), planetary sociology, globalization, political economy, social inequality, sociology of film (with emphasis on the science-fiction genre), artificial intelligence, and social justice. He is the editor of Current Perspectives in Social Theory, and director of the International Social Theory Consortium (ISTC).
Education and career
Dahms obtained his master's degree in sociology, economics, and statistics in 1986 from the University of Konstanz, Germany (where he worked for and was supervised by Ralf Dahrendorf and attended several seminars by Albrecht Wellmer) and his PhD in sociology in 1993 from the The New School for Social Research in New York, for a dissertation entitled "The Entrepreneur in Western Capitalism: Schumpeter's Theory of Economic Development." While at the New School, he was supervised by Arthur J. Vidich and advised by Andrew Arato and José Casanova and also enrolled in seminars taught by Richard Bernstein, Robert Heilbroner, Agnes Heller, Eric Hobsbawm, Guy Oakes, and Claus Offe. He taught at Florida State University in Tallahassee from 1993 to 2004, and was a visiting professor affiliated with the Center of European and North America Studies at the University of Göttingen, Germany (fall semester 1999 until fall semester 2000) and in the Department of Sociology at the University of Innsbruck, Austria (summer semester 2011 and 2012), where he also taught regular compact seminars between 2010 and 2019).
Work
Dahms's research and teaching pertains to the tensions in the modern age between economic change, on the one hand, and politics, culture and society, on the other. Interpreting the contributions of Marx and Weber, in particular, as foundations for a dynamic theory of modern society, he starts out from the proposition that it is only from the perspectives of “globalization” (including the debates about restructuring, transnational corporations, and neo-imperialism) and planetary sociology that the contradictions and paradoxes of modern society can be disentangled, at the intersection between identity structure and social structure.
The spectrum of his theoretical reference points reaches from the critical theory of the Frankfurt School at one end - especially Theodor W. Adorno and Jürgen Habermas - to Joseph Schumpeter's social theory of capitalism, at the other, but also includes many other social theorists, philosophers, and social scientists, including Georg Wilhelm Friedrich Hegel, Max Weber, Eduard Heimann, Talcott Parsons, Darko Suvin, Lawrence Hazelrigg, Nancy Fraser, and Amy Allen. In modern society, a particular kind of social order fused with a specific type of social processes into an inherently irreconcilable set of force-fields fraught with many different types of tensions that maintains stability by devising mechanisms designed to contain the destructive power of myriad contradictions, in the process continually deepening those contradictions. The consequence is a widening gap between the categories social scientists employ to “meaningfully” interpret present conditions, and the categories that would have to be developed and deployed to maintain the possibility of meaning—socially, culturally, and politically.
Awards
Senior-Level Excellence in Teaching Award, 2021, College of Arts & Sciences, University of Tennessee.
Albert Salomon Dissertation Award, The New School, 1993.
Selected works
"Social Theory's Burden: From Heteronomy to Vitacide (or, How Classical Critical Theory Predicted Proliferating Rackets, Authoritarian Personalities, and Administered Worlds in the Twenty-First Century)," in Society in Flux: Two Centuries of Social Theory (Current Perspectives in Social Theory, vol. 37; Bingley, UK: Emerald, 2022), ed. by Harry F. Dahms.
“Critical Theory, Sociology, and Science-Fiction Films: Love, Radical Transformation and the Socio-Logic of Capital,” in Daniel Krier and Mark Worrell (eds.), Capital in the Mirror: Critical Social Theory and the Aesthetic Dimension (Albany, NY: SUNY Press; 2020): 231-301.
“Adorno’s Critique of the New Right-Wing Extremism: How (Not) to Face the Past, Present, and Future,” disClosure: a journal of social theory, 29(1), 129-179.
Ecologically Unequal Exchange Environmental Injustice in Comparative and Historical Perspective: Environmental Injustice in Comparative and Historical Perspective, co-edited with R. Scott Frey and Paul K. Gellert (Palgrave, 2019)
The Vitality of Critical Theory. Emerald, 2011.
Nature, Knowledge, and Negation (ed.). Current Perspectives in Social Theory, 26, Emerald, 2009.
No Social Science Without Critical Theory (ed.). Current Perspectives in Social Theory, 25, Emerald, 2008.
Globalization Between the Cold War and Neo-Imperialism (Special Volume Editor). Current Perspectives in Social Theory, 24, Elsevier/JAI, 2006.
Transformations of Capitalism: Economy, Society and the State in Modern Times (Editor). London: Palgrave, and New York: NYU Press, 2000.
Notes
External links
Harry F. Dahms — Research and Teaching Lab, University of Tennessee.
Center for the Study of Social Justice, University of Tennessee.
ResearchGate Profile
The New School alumni
American sociologists
Living people
Universal basic income writers
Year of birth missing (living people)
|
```swift
//
// FindNoteIntentHandler.swift
// SimplenoteIntents
//
// Created by Charlie Scheer on 5/9/24.
//
import Intents
class FindNoteIntentHandler: NSObject, FindNoteIntentHandling {
let coreDataWrapper = ExtensionCoreDataWrapper()
func resolveNote(for intent: FindNoteIntent) async -> IntentNoteResolutionResult {
// If the user has already selected a note return that note with success
if let selectedNote = intent.note {
return IntentNoteResolutionResult.success(with: selectedNote)
}
guard let content = intent.content else {
return IntentNoteResolutionResult.needsValue()
}
return IntentNoteResolutionResult.resolveIntentNote(for: content, in: coreDataWrapper)
}
func provideNoteOptionsCollection(for intent: FindNoteIntent) async throws -> INObjectCollection<IntentNote> {
let intentNotes = try IntentNote.allNotes(in: coreDataWrapper)
return INObjectCollection(items: intentNotes)
}
func handle(intent: FindNoteIntent) async -> FindNoteIntentResponse {
guard let intentNote = intent.note else {
return FindNoteIntentResponse(code: .failure, userActivity: nil)
}
let success = FindNoteIntentResponse(code: .success, userActivity: nil)
success.note = intentNote
return success
}
}
```
|
The Association of Radio Amateurs of Slovenia (, acronym ZRS) is the national non-profit organization for amateur radio enthusiasts in Slovenia.
Key membership benefits of ZRS include the sponsorship of amateur radio operating awards and radio contests. ZRS also supports local competitions in Amateur Radio Direction Finding as well as a national team that travels to regional and world championship events. ZRS represents the interests of Slovenian amateur radio operators before Slovenian and international telecommunications regulatory authorities. ZRS also publishes a membership magazine called CQ ZRS.
ZRS was the sponsoring organization for the 2000 World Radiosport Team Championships held in Ljubljana. ZRS is the national member society representing Slovenia in the International Amateur Radio Union.
See also
International Amateur Radio Union
References
Slovenia
Organizations based in Ljubljana
Organizations established in 1946
Radio in Slovenia
|
The Christchurch tramway system was an extensive network in Christchurch, New Zealand, with steam and horse trams from 1882. Electric trams ran from 1905 to 1954, when the last line from Cashmere to Papanui was replaced by buses.
In 1995, a central city loop heritage tram was reopened in the central city as a tourist attraction. This has now been is extended with a loop down to High Street which was opened in February 2015.
The tram museum at the Ferrymead Heritage Park overhauls and restores the trams used on the Christchurch Tramway, and itself also runs operating trams on its site.
History
Background
The difficulty experienced by Christchurch's early residents in conveying them and their export goods to Lyttelton brought about the first proposal for a tramway at a meeting held on 26 September 1855. The merits of both wooden and iron-based tramways were discussed and a resolution was passed in support of the construction of either a tramway or a railway.
The issue arose again at a Provincial Council meeting on 16 October 1855 at which it was proposed that a line be built to Sumner and goods could then be transported to Lyttelton by boat. A couple of leading and influential figures spoke out against the proposal and it was voted down.
It was not until 1858 that the matter once again gained attention in official circles. Despite a general belief that the idea itself was good, the Provincial Engineer's estimate of £6,000 was enough to ensure that the idea was not acted upon. The Provincial Council eventually opted to construct a railway line; the first section between Christchurch and Ferrymead opened in 1863, and the Ferrymead to Lyttelton section opened in 1867.
A meeting of prominent local citizens on 20 September 1872 discussed the matter of a tramway and concluded that it would be desirable to construct a line between Papanui and Christchurch railway stations, especially in light of the north railway having opened to Rangiora earlier that year. Estimates had been prepared and it was suggested that the company be called "The Christchurch and Papanui Junction Tramway Company". The city council, however, was opposed to the idea and declined to support it, saying, "That in the opinion of this meeting a tramway … is objectionable … for the following reasons: (1) A tramway is not required, (2) The streets are not wide enough, (3) A tramway would retard the railway station being brought into a more convenient place for the citizens".
White’s Little River tramway: 1861–1872
A partnership was formed in 1861, including well-known bridge engineer William White, with the aim of constructing a wooden tramway from Christchurch to Little River. The goal was to make it cheaper to cart timber from Little River and other building materials from the Halswell Quarry to Christchurch. The plan was for a line of approximately in length, starting in what is now Moorhouse Avenue, travelling to Birdlings Flat where it would roughly follow the present state highway to Little River, then on to an area now known as Puaha. The gauge was to be and the estimated cost was £1,023 per mile.
White began construction in 1863 and by year's end had built of the line. The project ultimately failed, due largely to a lack of capital, but animosity from the line's neighbours also disrupted business. Work on the line had ceased by the end of 1866 by which time the Christchurch–Halswell Quarry section had been completed and work had started at the Little River end. The line to the quarry remained in use until 1872. Little River was eventually served by rail when the Railways Department's Little River Branch opened to its namesake terminus in 1886.
Horse and steam era: 1880–1906
The idea of building a tramway did not gain widespread support until 1876. By this time, the city had experienced significant development and the need for improved transport had become evident. With the passing into law of the Tramways Act in 1872 and the city council dropping its opposition to the idea, the political environment had become more agreeable to the formation of tramways.
Trams became a reality for Christchurch on 9 March 1880 when the first revenue services commenced on a line from Cathedral Square to Christchurch Railway Station via Colombo Street. The company behind the venture, the Canterbury Tramway Company, had been formed in 1878 then spent the next two years negotiating with the various councils involved, purchasing equipment, constructing its lines, etc. After the first day, issues with the track were identified which resulted in a suspension of services until 16 March.
The Company opened several other lines that same year including: Christchurch Railway Station via High and Manchester Streets (24 July); Papanui Railway Station (24 June); Agricultural Show Grounds (6 August) and later in the year to Devon Street. Orders were also placed with local coachbuilders for more tramcars.
In later years, other lines opened by the Company included: Addington Railway Station (5 January 1882) and later the Addington Show Grounds (28 October 1887); Woolston (7 July 1882) then to Heathcote (9 December 1882) and finally Sumner (1 November 1888). The lines to Papanui and Sumner were the most lucrative.
It was not until 1884 that another player joined the Canterbury Tramway Company in the tramway business. The city council decided that it needed its own line from the central city to serve its cemetery and Reserve. It intended to run the municipal services on the line itself and to contract out the carriage of people. Construction began on 26 November 1885 at Latimer Square and was completed by March 1886. The line was officially opened on 23 April 1886 and was to have passenger services provided by private contractor Charles O’Malley who had earlier secured a three-year lease. He proved to be unsuitable and was replaced in August 1886 by the Canterbury Tramway Company. The lease changed hands again after 18 months and was picked up by the New Brighton Tramway Company who remained the leaseholder until municipalisation.
Buoyed by the prospect of a tram connection to New Brighton following the opening of the city council's Corporation line, the New Brighton Tramway Company was formed in 1885 with the intention of constructing and operating a line from a junction with the Corporation line to a terminus at New Brighton. Construction began in 1886 and was completed by January 1887. The first service on the line was a trial run on 8 January 1887, which proved to be a success, and was followed on 15 February by the commencement of revenue services. The Company's acquisition of the lease for the Corporation line at the end of 1888 proved to be fortuitous, giving the Company control over the entire route from the central city to the New Brighton terminus.
The last entrant to the Christchurch tramway scene was the City and Suburban Tramway Company, formed early in 1892 with the intention of constructing lines to Springfield Road and New Brighton from its base at the corner of Manchester, Lichfield, and High Streets. Only the latter of these lines was built, on which construction began on 1 May 1893. The Company ran into financial difficulties during construction that held up progress until the contractor secured a debt over the Company and completed the line in August 1894. Revenue services commenced as far as Stanmore Road on 1 September 1893 and it was not until 25 October 1894 that trams were able to run the full length of the line to New Brighton Pier. A deleterious financial position, brought about in part by the Company's need to rent both horses and rolling stock, resulted in the collapse of the Company in 1895. It was purchased by the contractor who built the Company's line and run under the same name.
The Canterbury Tramway Company had earlier had its own financial difficulties resulting in its collapse in 1893. After various options were explored the Company was recapitalised as the Christchurch Tramway Company. Various measures were implemented to remedy the issues that plagued the old company including the closure of the Manchester Street route to the railway station, the use of horses in preference to steam motors, and the renewal or replacement of some of its assets. During its time, the Company also extended two of its lines: the Addington line reached Sunnyside Asylum at the end of 1895 with revenue services commencing in the New Year, and the Sydenham line was extended to the Cashmere Hills and opened on 7 December 1898.
When the concessions under which the lines of the private tramway companies were operated came up for renewal from the late 1890s, the various local bodies involved saw it as an opportunity to consider municipalisation of the whole system. The tramway companies, which were seeking to extend their concessions to give them some certainty over the future of their business, were rebuffed and eventually the Christchurch Tramway Board was formed to bring the tramways under public control.
Electric era: 1905–1954
Early years
Political pressure and public agitation for a modern tramway system resulted in the formation of the Christchurch Tramway Board in late 1902. It proceeded to create its own network by purchasing the lines of the private tramway companies and also establishing its own new lines.
Work on the Tramway Board's lines began in September 1904 at the intersection of Fitzgerald Avenue and Ferry Road. It required a great many men using only basic tools with the assistance of horse-drawn drays and traction engines and attracted considerable interest from the public.
Installation of tramlines sometimes led to improvements of the roads on which they were built. Because as was standard practice at the time, single-track tram lines were laid in the middle of the road requiring some roads to be widened to allow vehicles to pass trams on either side. Also, any undulations in the road were smoothed out so the track could be laid flush with the road surface.
Private operators were contracted by the board to provide alternative transport while tramlines were unavailable due to construction. These services were run using horse-drawn drags.
The electrified tram network was inaugurated on 5 June 1905 when an official opening day was held. After speeches at the board's car shed on Falsgrave Street, the official party departed on a procession of seven electric trams bound for Papanui. After an accident en route required the withdrawal of two of the trams, the rest of the party reached their destination where the festivities continued. Revenue services commenced on the Papanui–Railway Station route the following day.
The first tranche of work was completed by September 1906. Figures provided by The Press in June 1906 show that materials used included 2,400 poles, of trolley wire, of feeder cables, of telephone and other wires, 80,000 sleepers, 26,000 electrical bonds, 90,000 yards of metal, and 5,500 tons of rails.
Lines built and electrified by the New Zealand Electrical Construction Company were mainly those that had been acquired from the private tramway companies and included: Papanui to Christchurch Railway Station (6 June 1905); Sumner (steam, 6 June 1905; electric, 25 April 1907); Cashmere (16 August 1905); Riccarton (steam, 2 November 1905; electric, 12 March 1906); Lincoln Road (8 February 1906); New Brighton (Linwood, 26 March 1906; New Brighton, 6 August 1906).
Heyday
The trams quickly became popular with the public and revenue exceeded the board's expectations. Rolling stock consisted of 27 electric vehicles supplied under the initial contract and the 7 steam motors and 42 trailers acquired from the Christchurch Tramway Company. Twenty-two trailers from the New Brighton and City and Suburban tramway companies later augmented the fleet.
Though the primary purpose of the tramway was the carriage of passengers, it also carried other items such as mail, newspapers, perambulators, bicycles, construction materials, and animals. The cartage of animals on the tramway was made illegal in December 1915.
The reality of the environment in which the tramway business was conducted was made clear in 1912 when chairman of the board George Booth explained the main problems the board faced in his annual report. First, Christchurch had a considerable amount of route mileage with little or no revenue potential, necessitated by the geographically diverse nature of the population it served. Second, the growing problem of competition from bicycles and motorcars since the development of the pneumatic tyre, exacerbated by the generally flat nature of the terrain on which Christchurch was sited. The board's response to these issues had not improved the situation by 1914.
It was during this period that the construction of the tramway network was completed. Additional lines opened were St. Albans Park (24 December 1906), Opawa (steam, 14 March 1907; electric, 21 September 1909), Fendalton (steam, 3 May 1907; electric, 20 November 1909), Cranford Street (1 July 1910), North Beach (steam, 24 December 1911; electric, 1 October 1914), Spreydon (3 August 1911), Cashmere Hills extension (1 May 1912), Dallington (1 November 1912), Northcote extension (28 February 1913), and the St. Martins line (7 April 1914) which was the last major line to be opened. The only new tracks to be commissioned after this time (aside from single- or double-tracking and renewals) were the extension of the Riccarton line to Plumpton Park (December 1915), the Lichfield Street link (July 1922), and the extension of the Spreydon line to Barrington Street (August 1922). For many years afterwards Christchurch was able to boast the largest network in the country by route mileage at and in 1912 it was reportedly second only to Sydney in Australasia.
The growth of the board's business in its early years soon necessitated the purchase of new rolling stock to meet demand. By 1908, the number of electric trams had increased to 39 and had grown to 65 in 1912. An additional 34 trailers were also added to the fleet by 1920. Other vehicles acquired included a Baldwin steam motor (1906), three sprinkler cars, and an overhead lines car. To match this, the size of the board's staff also grew from 196 in 1906 to 350 in 1913 and 530 in 1920, making it the largest employer in the city.
The tramway was credited with encouraging the suburban development of Christchurch. Land along tram routes became more valuable and made it easier for people to live out in the suburbs. The main central city retail precinct, which had been concentrated around the railway station, gradually moved north to avail itself of the increased flow of people generated by the tram routes converging on Cathedral Square. Smaller retail precincts developed around the ends of some lines such as Fendalton and Spreydon.
Halcyon years
The economic uncertainty of the late 1920s culminated in the Great Depression of the 1930s, a situation that severely affected the operation of the tramway as much as it affected the rest of the country. Both revenue and patronage suffered sharp declines and as if to make matters worse the loans used to establish the tramway system were due to mature in 1934. Competition was becoming an increasing problem, particularly from bicycles whose number had increased dramatically.
To contain its financial problems, the board implemented several economy measures. It experimented with the St. Martins cars to trial "one-man" tram operation, which proved that the concept could work. Between 1932 and 1936, additional trams were converted for this purpose and deployed initially on the more lightly patronised lines before being used on the longer lines as a sufficient number were available. Consequent to the introduction of one-man trams was the need to install balloon loops or wyes at the termini of the lines on which these cars were used.
Several under-performing or severely dilapidated lines were also closed during this period, notably the North Beach line, the Papanui railway station spur and Northcote extension of the Papanui line, and the Dallington–Railway Station route. In most cases, trams on these routes were replaced with buses.
With the arrival of World War II came constraints on many aspects of ordinary life that were both beneficial and detrimental to the tramway. Restrictions and rationing of many basic supplies limited the use of private motorised transport leading to huge growth in patronage of the trams and, often, severe overcrowding. This also had the effect of significantly improving the board's revenue. The increased popularity of the trams was also assisted by the large number of New Zealand military personnel based at both the Burnham Camp and Wigram Aerodrome, and the contingent of American military in the city.
It was not all good news for the board during the war years, as its costs also increased during this period; primarily wages, electricity, and maintenance. The war also made it more difficult to obtain supplies and spare parts needed to maintain and repair its assets, requiring a measure of ingenuity to keep things working. War service depleted the board's staff resulting in the hiring of women where necessary to fill gaps. Women were not just to fill gaps – wartime photo shows 28 women conductors at the time. Most trams then carried women conductors. RNM
The end of the war also brought about the end of the boom for the tramway and marked the beginning of the end. Unlike other tramway systems around the country, the newest of vehicles in service in Christchurch were decades old and the track had suffered from years of neglect with little maintenance having been carried out. Though the imposition of rationing was not finally lifted until the early 1950s, post-war Christchurch grew faster than the tramway could keep up ensuring that the tramway's replacement was just a matter of time.
Demise
Though several lines were closed and replaced by buses in the 1930s due to prevailing economic conditions, most tram routes were closed in the decade following the end of World War 2. While the war was in some respects a boon for the tramway – with restrictions on other forms of transport patronage of the trams was significantly improved – it also caused problems, which contributed to the end of the trams.
Perhaps one of the biggest problems faced by the tramway system following the war was the much-improved economic situation that ensued, increasing prosperity for many and giving them options that they might not have had before. Rates of car ownership increased and the city grew significantly in size presenting the board with a twofold problem of trying to maintain what they already had whilst trying to serve many more people over a greater area. Operating costs also increased, due in part to changing work patterns that placed a higher demand on the trams during peak times and reduced off-peak demand, but also an increase in staff costs, which only served to further increase losses.
To determine the future of public transport in Christchurch, the Future Policy Committee was formed in February 1945. It considered the matter of the tram network and concluded that the remaining tram routes should be retained and operated until such time as the tracks reached the end of their useful lives at which time they would be replaced by buses. John Fardell, appointed General Manager of the Board in 1946, delivered his own report on the future direction of the Board on 6 October 1947. He pointed out the poor state of the board's tramway assets and that even with repairs, new infrastructure and rolling stock would be required within a few years to keep the system operational. The board was also at the time in a precarious financial state with years of losses having made it difficult to set aside sufficient funds for the repayment of loans, many of which were due to mature in the 1950s and 1960s. To upgrade the existing tramway to modern standards and extend it into the new suburbs could not be contemplated. While he did not push for the immediate removal of the trams, preferring to run them as long as possible in part to pay off outstanding loans, he did strongly advocate for the introduction of diesel buses to replace trams when they were withdrawn. In this first report, his preference for diesel buses was not absolute, however, as he did recommend the use of trolley buses on the existing North Beach route which still had useful infrastructure in place and on the Papanui–Cashmere route where the trolley buses would have superior hill-climbing performance characteristics.
The board favoured a mixed trolley/diesel bus fleet and unsuccessfully tried in 1948 and 1949 to raise a loan to further this plan. Mindful of these earlier failures, they were careful to impress upon the public the dire consequences of not planning for bus replacements given the state of the tramway after deciding in April 1950 to purchase 39 diesel buses. The Loans Board subsequently approved this loan proposal in September and it was also sanctioned by a plebiscite of the board's ratepayers.
The Tramway Board, which had been hoping that the diesel buses would be a temporary measure on some routes pending the erection of a trolley bus system, ran into the opposition of the General Manager who was a strong advocate for a standardised diesel bus fleet. He produced a report in December 1951 that was highly critical of trolley buses. Later that month, the board decided not to proceed with trolley buses and cancelled the order it had already placed for them. They were still undecided on the future of the Papanui–Cashmere route, the most profitable and popular of the tram routes, as they were not convinced that buses would be able to cope as a replacement. The General Manager made a point of convincing the board that only buses could adequately serve its needs and those of its customers and finally succeeded in January 1953, when the board relented and agreed that this route would also be served by buses.
With the fate of the trams sealed, the remaining tram routes closed as a sufficient number of buses arrived from England to replace them. Since the war, two tram routes had already closed: St. Martins on 20 May 1946 and Fendalton–Opawa on 6 February 1950. This was now accelerated with the remaining routes being closed over the next few years: Brighton on 18 October 1952; Sumner on 6 December 1952; Riccarton on 14 June 1953; St. Albans Park–Spreydon on 21 June 1953; and Cranford Street–Lincoln Road on 26 July 1953.
The last route to close was Papanui–Cashmere for which the last timetabled services ran on Friday 10 September 1954. This was followed the next day by a ceremonial running of the last trams, a task performed by two Hills cars. After their journey to Papanui, then Cashmere, they returned to Cathedral Square where a huge crowd had gathered to witness the event. Speeches were made and a ribbon was cut to symbolically inaugurate the replacement bus service.
Disposition
The tram bodies were sold to private individuals, many of whom used them as sheds or huts, and the running gear was sold for scrap. Much of the tramway infrastructure was repurposed. Tram sheds at Riccarton and Sumner remained for many years afterwards, the Sumner shed being last used as a dye works factory. Tram shelters became bus stops and traction masts were reused as utility poles.
Little time was wasted in removing sleepered track, which was ploughed out of the ground, and the roads quickly rebuilt. There was also track fixed to concrete for which removal was a much more difficult proposition. As the price of materials recovered would not have met the cost of removing them, this track was simply covered over with a layer of tar that was reapplied when the road surface required renewal. This has caused problems when such roads have needed to be dug up for the installation of utilities and even in more modern times, old tram tracks have been discovered during excavations for the heritage tram circuit extension.
Ferrymead tramway: 1968–present
The genesis of tram preservation in Christchurch was the Tramway Preservation Association. Tramway enthusiasts set it up in 1960 with branches in Christchurch and Wellington. The Christchurch group aimed to restore to working order two tram vehicles formerly in service with the Canterbury Tramway Company, but then under the ownership of the Christchurch Transport Board. With the enthusiastic support of the board, work commenced on a Stephenson single-deck horse car of 1887 and Kitson steam motor no. 7 of 1881.
In 1964, the two branches of the association became independent with the Christchurch group becoming known as the Tramway Historical Society. It was also in August of that year that the restored horse car was run along the remaining section of track from the old Papanui line to mark ten years since the closure of the line, an event that also served to significantly boost the profile of the society and its membership.
The society, which had been using old Christchurch Transport Board tramway buildings for storage and restoration, created a purpose-built facility in 1967 on land obtained at the Ferrymead Historic Park. It was here that a permanent tramway was established and the society was able to realise its goal of making the tramway experience available to the general public. John Fardell, then general manager of the Christchurch Transport Board, officially opened the tramway on 6 January 1968. Rides were hauled using the society's Kitson steam motor as it was the only motive power available at the time.
A series of extensions to the tramway line opened over the next 16 years culminating in the completion of the Moorhouse township loop in 1984. Also during this period, the tramway was electrified, allowing the society to run its restored electric trams in addition to its horse- and steam-hauled vehicles.
Modern era: 1995–present
At the suggestion of the Tramway Historical Society, the city council included plans for a tramline in its Worcester Boulevard project in the early 1990s. It was originally intended to be a line extending along Worcester Street from Cathedral Square but was later extended into a circuit around the central city. The city council granted a licence to Christchurch Tramway Limited to run the tramway and it was opened on 4 February 1995 using vehicles leased from the Tramway Historical Society.
Wood Scenic Line Limited purchased the tramway in 2005 to run it as a commercial operation. As such, it is not considered to be part of the public transport system, with its primary focus being tourist traffic. Additional vehicles have been acquired by the tramway including a former Melbourne W2 tram that has been converted into a restaurant.
Post-earthquake
Christchurch was hit by a powerful earthquake on 22 February 2011 that damaged the heritage tram circuit. Services were suspended for approximately 1000 days from the 22 February 2011 earthquake until November 2013. The tramway reopened in November 2013 on a limited route from New Regent Street to Worcester Boulevard. In November 2014, the pre-earthquake loop reopened. The route was also extended to travel through the Re:START mall and High Street, which was under construction when the 2011 earthquake struck.
The extension is part of an additional loop planned and partially constructed during the late 2000s, and a new strategy report by Jan Gehl commissioned for Council and published in early 2010 suggested an extension of the tram system (and integration of the trams into the general public transport system) as one of a package of measures aimed at reducing car dominance in the city.
Operators
Christchurch's tramway lines were initially constructed and operated by several privately held companies, with the exception of the Corporation Line which was built by the city council and later operated by private companies. The precarious financial state of these companies early in the 20th century and the desire of Christchurch's residents for modern electric trams prompted the municipalisation of the tramway system. The Christchurch Tramway Board was formed and oversaw the operation of trams in Christchurch until they were withdrawn completely in 1954.
Canterbury Tramway Company: 1878–1893
The Canterbury Tramway Company was the first of three private Christchurch tramway companies to be formed. The idea for the company began in 1877 with a group of local entrepreneurs and was realised by early the following year. A prospectus was published and shares issued.
The company initially enjoyed commercial success on commencement of its services in 1880 as the novelty of tram travel quickly became fashionable. A steady rise in patronage necessitated the purchase of additional rolling stock. The company's directors were able to report favourably on the company's position in 1881 giving shareholders cause to be optimistic about its future. New lines were opened between 1882 and 1888 resulting in a network of of tramway, with the Papanui and Sumner lines standing out as the most successful.
However, not all of the company's decisions proved to be sound, and in 1886 its brief 18-month tenure as operator of the Corporation Line joined a growing list of missteps. By the end of the 1880s the company's future was uncertain and it implemented several economy measures in an attempt to improve its fortunes. This included a permanent fare reduction, the replacement of steam motors with horses on some routes, and the introduction of a one man-operated tramcar. None of these measures were particularly successful.
By the early 1890s, the company's position had become dire and further attempts to alleviate its problems ensued including fare reductions and an increase in services. However, maintenance suffered which only served to further compound the company's troubles. A liquidator was finally appointed in March 1893. The company's failure has been attributed to various causes including a lack of revenue to cover expenditure on maintenance, competition, mismanagement, and an economic depression.
Following liquidation, attempts to get the council to assume control of the company, and to dispose of its assets, failed.
New Brighton Tramway Company: 1885–1906
Following the city council's decision in early 1884 to construct the Corporation Line, a group of local residents informed the council of their intention to build a line from the end of the Corporation Line to New Brighton and registered the New Brighton Tramway Company in mid-1885.
Despite mediocre results for the company's first annual returns, its service was proving to be popular, garnering between 3,000 and 5,000 passengers per week.
One of the most important events for the company was becoming the operator of passenger services on the Corporation Line. The city council had put the operation up for tender in late 1888 and accepted the bid from the New Brighton Tramway Company. It began running its services on the line from 7 December after acquiring the remainder of the lease. This gave the company control over the line from the central city all the way out to New Brighton, allowing it to run a more efficient operation and carry many more passengers.
There were trying times ahead for the company in the form of competition from the Canterbury Tramway Company's Sumner line and the alternate Christchurch–New Brighton route established by the City and Suburban Tramway Company. Counter-measures implemented by the company resulted in only a modicum of success.
In 1906, the Company sold most of its assets to the Christchurch Tramway Board, retaining only its horses, harness, and central city property.
City and Suburban Tramway Company: 1892–1906
The City and Suburban Tramway Company was formed in early 1892 for the purpose of establishing an alternative route from the city to New Brighton. An Order-in-Council was sought in May of that year for permission to construct the two lines it had planned, which was granted in November.
Construction of the company's line began in May 1893 but the company ran short of funds before the line was completed. It commenced services anyway in September 1893 but they were not able to run the full distance to New Brighton until the line was completed the following year in October 1894.
Financial woes continued and by the end of the company's third year of operation, it was in a parlous state. Renting horses and rolling stock because it could not afford to purchase its own in sufficient number was a significant expense, track maintenance was lacking, and a large debt was still owed to the construction contractor. Unable to meet its obligations, the company entered into voluntary liquidation.
After an attempt to sell the line and vehicles by tender failed, the company was taken over by the construction contractor in lieu of its debt to him. He continued to operate the business under the same name and was somewhat successful in improving the company's fortunes. The line was eventually sold to the Christchurch Tramway Board in 1906.
Christchurch Tramway Company: 1893–1905
The Christchurch Tramway Company was formed from the remnants of the Canterbury Tramway Company after new capital was secured. This enabled the new company to commence work on improving the state of its assets. Various economy measures were also implemented including the closure and lifting of its Manchester Street line to Christchurch Railway Station and the replacement of steam motors with horses from September 1893 except on the Sumner line.
The company's only additions to its operations were the opening of extensions to two of its existing lines in the 1890s; the Addington line was extended to Sunnyside Asylum, and the Sydenham line was extended to Cashmere.
The company sought extensions to its city concessions (due to expire in September 1899) from the mid-1890s, without which it would not be able to invest further in its business or even, eventually, continue in operation. The various councils through whose territory the company operated eventually decided on municipalisation under the control of the Christchurch Tramway Board, which acquired the company in May 1905.
Christchurch Tramway Board: 1905–1989
The Christchurch Tramway Board was an autonomous, democratically elected body with full authority to create and operate a tramway within its district. In addition to generating revenue through the collection of fares, it was given authority to levy rates within its district and to raise loans subject to ratepayer approval. The board itself had eight members elected by voters in each of its wards at triennial elections. A ninth member was later added.
The first election was held on 21 January 1903 and the newly elected board met several days later on the 29th. One of its first orders of business was to seek a mandate to raise two loans with which to fund the construction of the new tramway network, proposals that were carried by the ratepayers. For the first two years of its existence, the board spent much of its time planning the new tramway including decisions on such matters as track gauge, routes, electrical specifications, etc.
The board's financial performance was very sound in its early years, consistently returning a profit and increased patronage year-on-year. It was not until the 1919–1920 fiscal year that the board experienced its first loss, and then again in 1924–1925 and 1927–1928, a symptom of the increasingly difficult economic times ahead. After 1930–1931, the board never again made a profit with the exception of the war years. Despite this it still had a good financial base thanks to its reserve funds of which it had several to cover its various disbursements.
Following the boom of the war years, the board's financial position slowly declined as economic prosperity changed the market in which the Board operated. The rise of competition to the board's services and the irreparably dilapidated state of the tramway network led to its phased withdrawal in the decade following he war. Buses were the new thinking in public transport and following the example of many other cities around the world, they replaced trams as the way to move people around.
The board changed its name in 1951 to the Christchurch Transport Board to reflect its shift away from the tramway as the mainstay of its business. It disappeared as a result of the deregulation of the transport industry in 1989.
Christchurch City Council
Corporation Line
The council only intended to run the night soil service on its Corporation Line and to contract out the other functions to private operators. Tenders for working the line were called for in February 1886 with a three-year contract being awarded to Charles O’Malley. It soon became apparent that O’Malley was unsuitable and the contract was taken up by the Canterbury Tramway Company in August 1886.
Nominal through passenger services ran between Christchurch and New Brighton along the Corporation Line and the New Brighton Tramway Company's line with an interchange at "The Junction". Passengers were required to walk about between the two services because neither company would traverse the distance, a situation that proved to be most unsatisfactory for all concerned. The lease for the Corporation Line was eventually transferred to the New Brighton Tramway Company in late 1888 and they remained the operator of the line until the Christchurch Tramway Board acquired it in 1906.
The council's rubbish disposal service operated during the early hours of the morning from August 1886 until 1902 when a new facility was established in Manchester Street. It involved the use of four men, two horses, two trolleys, and twelve tipcarts with extra men and horses required on Saturdays.
The tramway hearse was widely derided as a gimmick and was never used for its intended purpose. In 1888 it was suggested that the vehicle should be converted for use as a tramcar but was found to be unsuitable for this purpose and was eventually sold in August 1901.
Heritage circuit
The present-day heritage tram circuit around the central city was the result of a joint venture involving the city council, Christchurch Tramway Ltd., and the Tramway Historical Society. The council built the track as part of its Worcester Boulevard project.
The tram is currently operated as a Christchurch tourist attraction by Welcome Aboard, who also manage the Christchurch Gondola. Up to seven tram cars are currently in operation daily on the heritage circuit, providing both daytime transport services and a restaurant during evening hours. The tram circuit was closed in 2011 following the Christchurch earthquake, and was re-opened on a shortened loop in November 2013 before the full heritage loop was re-opened in November 2014. In 2016, local business groups also began in the Christchurch CBD.
Propulsion systems
Horses
Horses, often the first form of motive power for early tramways elsewhere, were not introduced to Christchurch until 1882 by the Canterbury Tramway Company. They were found to be cheaper to use on shorter lines and where there were fewer passengers. Services provided by both the New Brighton Tramway Company and the City and Suburban Tramway Company were typically hauled by horses as that was the only form of motive power those companies owned.
Where horses were used, they were worked in shifts and changed several times a day. The nature of the work was such that the typical working life of a tramway horse was about four years. Though Christchurch's flat terrain was favourable to the operation of tramways, the task of the tramway horse was made more difficult upon occasion by the overloading of tramcars.
When the Christchurch Tramway Board assumed control of the tramways, it also acquired some horses from the private tramway companies as a transition measure until such time as its network was fully electrified. A lack of materials delayed the completion of the board's line along the route operated by the New Brighton Tramway Company, prompting the board to hire a private contractor for the supply of horses and drivers to continue to provide services using horse trams until the line was ready for electric tram operation the following year. Horses were also used by the board on the city to Richmond section of the old City and Suburban line for a short time, possibly due to the demands placed on their resources by the International Exhibition. Those horses that became surplus to requirements were sold to farmers.
Steam
Of the private tramway companies based in Christchurch, only the Canterbury Tramway Company and its successor, the Christchurch Tramway Company, ever operated steam motors. The Canterbury Company initially purchased five Kitson steam motors, later ordering a further three. One was scrapped in 1893 and the remaining seven were sold to the Christchurch Tramway Board when the Company ceased operation in 1905.
The board continued to use steam motors for regular services for a couple of years after commencing operations until its lines were fully electrified but even then continued to use them as demand required it. Several were scrapped in the 1920s but some were retained for use as shunters and in maintenance work until 1935. Three (Kitsons 6, 7, 8) were reconditioned as an emergency wartime measure in 1942. During this time, they were also available for charter and special occasions. Kitson no. 7 was the only steam motor still in service by 1950 and the Tramway Historical Society at the Ferrymead Heritage Park is now its custodian.
Only one other steam motor was used on the Christchurch tramway system, a Baldwin locomotive purchased from the New South Wales Government to help out with the International Exhibition and with existing services as horses were being withdrawn.
Electricity
Power was initially provided for the tram network by three direct current turbo-generators in the Falsgrave Street powerhouse. There was also an accumulator battery in the powerhouse used during the start-up phase and for smoothing the power supply. The generators were run using superheated steam from coal-fired boilers. Electricity was supplied to the trolley wires at a nominal 600 V DC.
Some special occasions, such as race days, required a large number of trams and trailers to convey all of the patrons. For these events, trams were typically dispatched in convoy for track control purposes (to avoid collisions). Even so, the demand they placed on the power supply was so great that the trams were often slowed to a walking pace.
The tramway power supply was improved in the 1920s when automatic substations were installed in Cashmere (1920) and Fendalton (1922) to boost power to southern and western sections respectively when required. They were supplied AC power from the State hydro scheme and converted it to DC for use by the trams. Mercury-arc rectifiers were installed in 1949 displacing the old rotary converters and steam plant, which were decommissioned prior to the end of the tramway.
Vehicles
Manufacturers
In Christchurch, several firms constructed trailers and horse-trams: Boon & Stevens (later Boon & Co), Moor and Sons, and Booth McDonald and Co.
Rolling stock
A double-decker horsecar tram was built by William Moor & Son in November 1880 for the Canterbury Tramway Company, possibly the first built in New Zealand. The car was a facsimile of imported carriages; with ash framing, panelling of American whitewood, and roofs and window frames of oak and hickory. Brass fittings were supplied by Scott Brothers of Christchurch, and the only imported parts were the chilled cast iron wheels. A contemporary report described the car as a most creditable specimen of local industry. The coachwork was equal to that of the American vehicles, and a much needed improvement had been made on the roof 'by the addition of a board running along the outside, for the special benefit of the female patronisers of the tramway'.
Boon and Co, of Ferry Road then St Asaph St, started with horse-trams for the New Brighton Company. From 1921 to 1926 they built 23 48-seater electric saloon trams (which could be coupled in pairs) for the Christchurch Tramway Board.
A distinctive feature of many Australasian trams was the drop-centre, a lowered central section between bogies (wheel-sets), to make passenger access easier by reducing the number of steps required to get inside of the vehicle. The trams made by Boon & Co in 1906–07 for Christchurch may have been the first with this feature; they were referred to as drop-centres or Boon cars. Trams for Christchurch and Wellington built in the 1920s with an enclosed section at each end and an open-sided middle section were also known as Boon cars, but did not have the drop-centre.
Future
Heritage circuit expansion
The Christchurch Long-Term Council Community Plan 2009–2019, adopted 30 June 2009, confirmed the council's intention to extend the existing tram circuit in the central city, for which $11.5m was set aside. The extension will be constructed in two stages, with the first stage expected to have been ready in time for the 2011 Rugby World Cup and the second stage to be completed by the summer of 2013.
The first stage will involve a new loop, connected to the existing circuit, running down Oxford Terrace, through the Cashel Mall, down High Street to the corner with Tuam Street, and back up High Street to Colombo Street where it will join the existing circuit behind the cathedral. The original plan for the second stage was a line running down the remainder of High Street, along Ferry Road, and terminating in a smaller loop around Barbados Street and Williams Street, but it has since been suggested that the line should run through the grounds of the Christchurch Polytechnic Institute of Technology.
Construction began on the first stage in August 2009. Much of this extension was complete prior to the February 2011 earthquake, including the section through the Cashel Mall and along High Street from Colombo Street to Cashel Street. The condition of the tracks has been assessed by the council with a view to determining the future of the extension.
A significant portion of the stage 1 tramway extension opened to the public on 12 February 2015. The trams run the complete stage 1 extension route up to the High and Lichfield Street intersection, where the trams will then continue using the northbound track via a new set of points. Total route length has been increased to .
Public Space Public Life study
The Christchurch City Council commissioned the Public Space Public Life study in 2009 from renowned urban designer Jan Gehl in 2009. He was tasked with determining how the central city could be enhanced to improve public access and create a better sense of community. The report advocates for a shift away from private transport towards public transport (including trams/light rail) and active modes such as walking and cycling.
Political aspirations
Former Christchurch mayor Bob Parker, a well-known advocate for rail-based transport, has pointed out that the trend for traffic congestion in Christchurch is for it to only get worse. He does not believe that roads will be able to meet the city's needs in the future and that they will reach a saturation point if alternatives are not developed. Relying on a bus-based system, as has been the focus of the regional council, will not be enough to attract a sufficient number of people away from their private vehicles and onto public transport.
During his 2007–2010 term, he visited several overseas cities with successful examples of light rail networks. He envisages a system for Christchurch of tram-trains that utilise the existing heavy rail network where possible and then light rail for street running to access areas not currently served by rail such as the central city. In such a system, buses would remain but would provide feeder services to light rail instead of running core routes.
The 2010 IBM Commuter Pain Survey, which was conducted in three major New Zealand cities including Christchurch, has highlighted how entrenched attitudes towards public transport and the ephemeral benefits enjoyed by commuters using private vehicles has thus far proved to be a barrier to greater adoption of public transport. Despite this, the mayor is confident that rail-based options will provide a sufficiently attractive alternative.
In response to the major earthquakes of 2010 and 2011, the Central City Plan adopted by the Christchurch City Council calls for the establishment of a light-rail network in Christchurch. Initially, a line between the central city and the University of Canterbury would be built at a cost of $406m to trial the idea while a study would be conducted to assess the feasibility of extending the network to other destinations such as Christchurch International Airport, Hornby, Lyttelton, Northlands Shopping Centre, and New Brighton. Heritage tram services would remain in the central city but that operation is under review pending decisions on when it will be safe to repair the infrastructure and run services but also options for linking it with public transport services.
See also
Christchurch tramway routes
Ferrymead
Public transport in New Zealand
Trams in New Zealand
Notes
The history of the Christchurch Tramway Board included here is only the period in which it operated the tramway. The organisation continued to exist after this time as a bus-only operator.
References
Footnotes
Further reading
Dale, B. J., & Tramway Historical Society. (1967). All fares please: A pictorial record of the Christchurch Electric Tramways. Christchurch, N.Z: Tramway Historical Society.
External links
Animated map for the electric tram network
All fares please
Christchurch Tramway
Tramway Historical Society
Tram extension project
Ferrymead Heritage Park
Christchurch Trams on City Library website under 'Heritage'
Christchurch Electric Tram 1905 on 1985 58c stamp
Photo of Kitson steam tram and trailers c1906
Photo of a tram at the Hackthorne Road terminus c1922
Wheel Traffic (Tramways) from the Cyclopaedia of New Zealand Volume III (Canterbury) of 1903
1880 establishments in New Zealand
1906 disestablishments
Tram transport in New Zealand
Public transport in Christchurch
Tramway system
Tramway system
|
```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.
*/
// Warnings about deprecated Bazel-related operations
package warn
import (
"fmt"
"github.com/bazelbuild/buildtools/build"
)
func depsetUnionWarning(f *build.File) []*LinterFinding {
var findings []*LinterFinding
addWarning := func(expr build.Expr) {
findings = append(findings,
makeLinterFinding(expr, `Depsets should be joined using the "depset()" constructor.`))
}
types := DetectTypes(f)
build.Walk(f, func(expr build.Expr, stack []build.Expr) {
switch expr := expr.(type) {
case *build.BinaryExpr:
// `depset1 + depset2` or `depset1 | depset2`
if types[expr.X] != Depset && types[expr.Y] != Depset {
return
}
switch expr.Op {
case "+", "|":
addWarning(expr)
}
case *build.AssignExpr:
// `depset1 += depset2` or `depset1 |= depset2`
if types[expr.LHS] != Depset && types[expr.RHS] != Depset {
return
}
switch expr.Op {
case "+=", "|=":
addWarning(expr)
}
case *build.CallExpr:
// `depset1.union(depset2)`
if len(expr.List) == 0 {
return
}
dot, ok := expr.X.(*build.DotExpr)
if !ok {
return
}
if dot.Name != "union" {
return
}
if types[dot.X] != Depset && types[expr.List[0]] != Depset {
return
}
addWarning(expr)
}
})
return findings
}
func depsetIterationWarning(f *build.File) []*LinterFinding {
var findings []*LinterFinding
addFinding := func(expr *build.Expr) {
_, end := (*expr).Span()
newNode := &build.CallExpr{
X: &build.DotExpr{
X: *expr,
Name: "to_list",
},
End: build.End{Pos: end},
}
findings = append(findings,
makeLinterFinding(*expr, `Depset iteration is deprecated, use the "to_list()" method instead.`, LinterReplacement{expr, newNode}))
}
types := DetectTypes(f)
build.WalkPointers(f, func(e *build.Expr, stack []build.Expr) {
switch expr := (*e).(type) {
case *build.ForStmt:
if types[expr.X] != Depset {
return
}
addFinding(&expr.X)
case *build.ForClause:
if types[expr.X] != Depset {
return
}
addFinding(&expr.X)
case *build.BinaryExpr:
if expr.Op != "in" && expr.Op != "not in" {
return
}
if types[expr.Y] != Depset {
return
}
addFinding(&expr.Y)
case *build.CallExpr:
ident, ok := expr.X.(*build.Ident)
if !ok {
return
}
switch ident.Name {
case "all", "any", "depset", "len", "sorted", "max", "min", "list", "tuple":
if len(expr.List) != 1 {
return
}
if types[expr.List[0]] != Depset {
return
}
addFinding(&expr.List[0])
if ident.Name == "list" {
// `list(d.to_list())` can be simplified to just `d.to_list()`
findings[len(findings)-1].Replacement[0].Old = e
}
case "zip":
for i, arg := range expr.List {
if types[arg] != Depset {
continue
}
addFinding(&expr.List[i])
}
}
}
return
})
return findings
}
func overlyNestedDepsetWarning(f *build.File) []*LinterFinding {
var findings []*LinterFinding
build.WalkStatements(f, func(expr build.Expr, stack []build.Expr) (err error) {
// Are we inside a for-loop?
isForLoop := false
for _, e := range stack {
if _, ok := e.(*build.ForStmt); ok {
isForLoop = true
break
}
}
if !isForLoop {
return
}
// Search for assignment statements
assign, ok := expr.(*build.AssignExpr)
if !ok {
return
}
// Is the LHS an ident?
lhs, ok := assign.LHS.(*build.Ident)
if !ok {
return
}
// Is the RHS a depset constructor?
call, ok := assign.RHS.(*build.CallExpr)
if !ok {
return
}
if ident, ok := call.X.(*build.Ident); !ok || ident.Name != "depset" {
return
}
_, _, param := getParam(call.List, "transitive")
if param == nil {
return
}
transitives, ok := param.RHS.(*build.ListExpr)
if !ok {
return
}
for _, transitive := range transitives.List {
if ident, ok := transitive.(*build.Ident); ok && ident.Name == lhs.Name {
findings = append(findings, makeLinterFinding(assign, fmt.Sprintf("Depset %q is potentially overly nested.", lhs.Name)))
return
}
}
return
})
return findings
}
```
|
Bruce Hinkley (born 1949) is a Canadian politician who was elected in the 2015 Alberta general election to the Legislative Assembly of Alberta representing the electoral district of Wetaskiwin-Camrose.
Electoral history
2012 general election
2015 general election
References
Alberta New Democratic Party MLAs
Living people
Year of birth uncertain
21st-century Canadian politicians
1949 births
|
U.S. Highway 93 Alternate (US 93 Alt. or Alt 93) in the U.S. state of Montana is an alternate route of US 93 that bypasses the central business district of the city of Kalispell.
Route description
US 93 Alt. begins at US 93 south of Kalispell approximately south of the "Four Corners" junction with Secondary Highway 317 (S-317), and currently runs as a temporary two-lane highway for nearly to US 2 west of Kalispell, and as a four-lane highway from there for nearly to its northern terminus at US 93 north of Kalispell.
The completed circuit opened to traffic on October 28, 2016. Future construction includes completing the permanent four-lane highway from US 2 south to US 93 with grade-separated interchanges at both S-503 intersections (Airport Road and Foys Lake Road/Meridian Road) when funding permits.
The next phase of construction is planned to begin in summer 2019, following receipt of a $12.75 million federal BUILD grant for the segment from the Ashley Creek bridge to just north of Airport Road, for expanding the highway to four lanes and building the first of the two planned interchanges (Foys Lake/Meridian), with design work and right-of-way acquisition for the remaining segment beginning in January 2019.
History
The idea for a bypass to relieve congestion in downtown Kalispell had been discussed since the 1940s, with the first formal request submitted to the then-Montana Highway Department in 1953. Most proposals centered on a western route on or near the former BNSF railroad route between Somers and Kalispell, especially when relocation and environmental concerns eliminated expansion of S-317 southeast of Kalispell for that purpose. The idea finally came to fruition in 1994 with the approval of the region's federal environmental impact statement for upcoming highway construction projects. The statement formally established the route of the proposed Kalispell bypass slightly west of the original railroad route, with a bridge over that route to link it to US 93. Corridor design began in 1995, with Montana Department of Transportation (MDT) and Federal Highway Administration (FHWA) right-of-way corridor approval in 1997.
In 2004, MDT reevaluated the Kalispell bypass portion of the study, began the bypass design and conducted the first community meeting to give an overview of the project. Design work and right-of-way acquisition continued, and in 2008 the project design was changed to staged construction, to construct as funding allowed. The segments from US 2 south to US 93 and Reserve Loop (since renamed Old Reserve Drive) to US 93 were chosen as the first to be constructed.
The first segment from US 2 south to the Foys Lake Road/Meridian Road roundabout was completed and opened in fall 2010, and the segment from there to the Airport Road roundabout and US 93 was completed and opened in November 2012. The segment from Old Reserve Drive to US 93 was completed and opened in November 2013, and culvert and overpass work for the future S-424 interchange were completed in 2014.
2015-2016 construction of the northwest segment from US 2 north to Old Reserve (S-548) included grade-separated interchanges at US 2, Three Mile Drive (S-424), Four Mile Drive and S-548, and an overpass for Two Mile Drive. This round of construction also expanded the first 2010 segment (Foys Lake Road/Meridian Road to US 2) to four lanes.
Major intersections
See also
References
External links
93 Alternate (Kalispell)
93 Alternate (Kalispell, Montana)
Alternate (Kalispell, Montana)
Transportation in Flathead County, Montana
Kalispell, Montana
|
A Scuderi cycle is a thermodynamic cycle that is constructed out of the following series of thermodynamic processes:
A-B and C-D (TOP and BOTTOM of the loop): a pair of quasi-parallel adiabatic processes
D-A (LEFT side of the loop): a positively sloped, increasing pressure, increasing volume process
B-C (RIGHT side of the loop): an isochoric process
The adiabatic processes are impermeable to heat: heat flows rapidly into the loop through the left expanding process, resulting in increasing pressure while volume is increasing; some of it flows back out through the right depressurizing process; the remaining heat does the work.
See also
Scuderi engine
References
Thermodynamics
Thermodynamic cycles
|
Watsonian may refer to:
Watsonian Squire, an historic brand name of sidecar for motorcycles
List of people educated at George Watson's College, former pupils of George Watson's College in Edinburgh, known in some circles at "Watsonians"
Dr. Watson, a character in the Sherlock Holmes stories by Sir Arthur Conan Doyle
|
```perl6
package Foo;
$Foo::VERSION = '0.2';
1;
```
|
Hurricane Henri was a rare tropical cyclone that entered the Gulf of Mexico without having made landfall; it was the second of four times this occurred during the 20th century. The eighth named storm and fifth hurricane of the 1979 Atlantic hurricane season, it formed on September 14 in the northwestern Caribbean Sea. Throughout much of its duration, Henri moved erratically and initially maintained a general westward track. On September 16 it attained tropical storm status, and a day later it reached hurricane status. By two days later, after experiencing hostile conditions, Henri weakened to tropical depression status as it turned to the northeast, before degenerating into a remnant low on September 21. On September 24, it merged with a frontal low in the northeast Gulf of Mexico. Due to its slow and erratic motion, the hurricane forced evacuations along the Mexican coastline. Its remnants brought rainfall and flooding to the Florida Panhandle.
Meteorological history
Hurricane Henri developed as Tropical Depression Eighteen in the extreme northwestern Caribbean Sea on September 14 from a tropical wave, which had previously moved off the coast of Africa. The formation of a tropical depression was confirmed by reports from Hurricane Hunters. The depression tracked northward, brushing the eastern portion of the Yucatán Peninsula. After reaching the Gulf of Mexico it turned sharply westward, with a ridge preventing further northward movement. The depression turned southwestward, and intensified into Tropical Storm Henri on September 16.
Tropical Storm Henri continued to intensify as it tracked through the Bay of Campeche. On September 17, the storm turned northwestward after the ridge to its north weakened, and later that day Henri reached hurricane status; six hours later, it reached peak winds of 85 mph (140 km/h) about 150 miles (245 km) northeast of Veracruz. Subsequently, a broad low pressure area developed over the western Gulf of Mexico, causing the motion of Henri to become erratic. On September 18, the cyclone began a steady weakening trend, believed to have been caused by land interaction and the funneling of moisture toward a developing disturbance near the Texas coast. Henri turned eastward on September 19 and weakened to tropical depression status. It failed to regain significant convection, and it turned northeastward along an extended cold front. On September 21, Henri weakened into a remnant low. On September 24, Henri merged with the frontal trough in the northeastern Gulf of Mexico.
Hurricane Henri was one of only four hurricanes to enter the Gulf of Mexico without making landfall during the 20th century. The others were Laurie of 1969, Jeanne of 1980, and Alberto of 1982.
Preparations and impact
Although Henri did not affect land in any way as a hurricane, the developing system threatened several states along the southwestern coastline in Mexico. Mexican forecasting officials issued an advisory for the Gulf coast towns of Tampico in Tamaulipas, and Tuxpan and Nautla in Veracruz, to evacuate to higher ground. The government of Veracruz issued warnings on radio and television of possible flooding in oil-rich coastlines. The storm affected cleanup operations of the Ixtoc I oil spill as it passed over the spill area, damaging a 310-ton steel cap designed to stop the blowout. Henri caused driving rains, strong winds, and floods in Ciudad del Carmen, Campeche, forcing over 2000 people from their homes. Waters swelled in the town to about 12 inches (305 mm) above sea level. Maximum rainfall recorded in Mexico in association with Henri was at Solosuchiapan.
The remnants of Henri brought showers and thunderstorms to west-central Florida, causing river flooding and some evacuations.
See also
Other tropical cyclones named Henri
List of Category 1 Atlantic hurricanes
Hurricane Ingrid (2013)
References
External links
National Hurricane Center Preliminary Storm Report on Henri
Details on all 1979 storms from the National Hurricane Center
1979 Atlantic hurricane season
Category 1 Atlantic hurricanes
Atlantic hurricanes in Mexico
1979 in Mexico
Hurricanes in Florida
|
is a Japanese former volleyball player who competed in the 1972 Summer Olympics.
In 1972, he was part of the Japanese team which won the gold medal in the Olympic tournament. He played five matches.
References
1946 births
Living people
Japanese men's volleyball players
Olympic gold medalists for Japan
Olympic volleyball players for Japan
Medalists at the 1972 Summer Olympics
Volleyball players at the 1972 Summer Olympics
20th-century Japanese people
|
```python
`Dictionary` - standard mapping type
`Module`s everywhere!
Get the most of `int`s
There is more to copying
`queue`s and threads
```
|
```smalltalk
using System;
using UIKit;
using PointF = CoreGraphics.CGPoint;
using RectangleF = CoreGraphics.CGRect;
namespace Xamarin.Forms.Platform.iOS
{
internal class KeyboardInsetTracker : IDisposable
{
readonly Func<UIWindow> _fetchWindow;
readonly Action<PointF> _setContentOffset;
readonly Action<UIEdgeInsets> _setInsetAction;
readonly UIScrollView _targetView;
bool _disposed;
UIEdgeInsets _currentInset;
RectangleF _lastKeyboardRect;
ShellScrollViewTracker _shellScrollViewTracker;
public KeyboardInsetTracker(UIScrollView targetView, Func<UIWindow> fetchWindow, Action<UIEdgeInsets> setInsetAction)
: this(targetView, fetchWindow, setInsetAction, null)
{
}
public KeyboardInsetTracker(UIScrollView targetView, Func<UIWindow> fetchWindow, Action<UIEdgeInsets> setInsetAction, Action<PointF> setContentOffset)
: this(targetView, fetchWindow, setInsetAction, setContentOffset, null)
{
}
public KeyboardInsetTracker(UIScrollView targetView, Func<UIWindow> fetchWindow, Action<UIEdgeInsets> setInsetAction, Action<PointF> setContentOffset, IVisualElementRenderer renderer)
{
_setContentOffset = setContentOffset;
_targetView = targetView;
_fetchWindow = fetchWindow;
_setInsetAction = setInsetAction;
KeyboardObserver.KeyboardWillShow += OnKeyboardShown;
KeyboardObserver.KeyboardWillHide += OnKeyboardHidden;
if (renderer != null)
_shellScrollViewTracker = new ShellScrollViewTracker(renderer);
}
public void Dispose()
{
if (_disposed)
return;
_disposed = true;
KeyboardObserver.KeyboardWillShow -= OnKeyboardShown;
KeyboardObserver.KeyboardWillHide -= OnKeyboardHidden;
_shellScrollViewTracker?.Dispose();
_shellScrollViewTracker = null;
}
//This method allows us to update the insets if the Frame changes
internal void UpdateInsets()
{
//being called from LayoutSubviews but keyboard wasn't shown yet
if (_lastKeyboardRect.IsEmpty)
return;
var window = _fetchWindow();
// Code left verbose to make its operation more obvious
if (window == null)
{
// we are not currently displayed and can safely ignore this
// most likely this renderer is on a page which is currently not displayed (e.g. in NavController)
return;
}
var field = _targetView.FindFirstResponder();
//the view that is triggering the keyboard is not inside our UITableView?
//if (field == null)
// return;
var boundsSize = _targetView.Frame.Size;
//since our keyboard frame is RVC CoordinateSpace, lets convert it to our targetView CoordinateSpace
var rect = _targetView.Superview.ConvertRectFromView(_lastKeyboardRect, null);
//let's see how much does it cover our target view
var overlay = RectangleF.Intersect(rect, _targetView.Frame);
_currentInset = _targetView.ContentInset;
_setInsetAction(new UIEdgeInsets(0, 0, overlay.Height, 0));
if (field is UITextView && _setContentOffset != null)
{
var keyboardTop = boundsSize.Height - overlay.Height;
var fieldPosition = field.ConvertPointToView(field.Frame.Location, _targetView.Superview);
var fieldBottom = fieldPosition.Y + field.Frame.Height;
var offset = fieldBottom - keyboardTop;
if (offset > 0)
_setContentOffset(new PointF(0, offset));
}
}
public void OnLayoutSubviews() => _shellScrollViewTracker?.OnLayoutSubviews();
void OnKeyboardHidden(object sender, UIKeyboardEventArgs args)
{
if(_shellScrollViewTracker == null || !_shellScrollViewTracker.Reset())
_setInsetAction(new UIEdgeInsets(0,0,0,0));
_lastKeyboardRect = RectangleF.Empty;
}
void OnKeyboardShown(object sender, UIKeyboardEventArgs args)
{
_lastKeyboardRect = args.FrameEnd;
UpdateInsets();
}
}
}
```
|
```shell
# Merge Base Data
cat data/zh/train.txt \
data/zh_entertainment/weibo_train.txt \
> data/zh_entertainment/train_merge.txt
python data_util.py ${LOCAL_PATH}/data/zh_entertainment/train_merge.txt ${LOCAL_PATH}/data/zh_entertainment/train_word_tag.txt
crf_learn -f 3 -c 4.0 ${LOCAL_PATH}/data/zh_entertainment/template ${LOCAL_PATH}/data/zh_entertainment/train_word_tag.txt ${LOCAL_PATH}/models/zh_entertainment/crf_model
```
|
```rust
// Some combinations of features may not use these constants.
#![cfg_attr(not(feature = "full"), allow(dead_code))]
/// Error string explaining that the Tokio context hasn't been instantiated.
pub(crate) const CONTEXT_MISSING_ERROR: &str =
"there is no reactor running, must be called from the context of a Tokio 1.x runtime";
/// Error string explaining that the Tokio context is shutting down and cannot drive timers.
pub(crate) const RUNTIME_SHUTTING_DOWN_ERROR: &str =
"A Tokio 1.x context was found, but it is being shutdown.";
/// Error string explaining that the Tokio context is not available because the
/// thread-local storing it has been destroyed. This usually only happens during
/// destructors of other thread-locals.
pub(crate) const THREAD_LOCAL_DESTROYED_ERROR: &str =
"The Tokio context thread-local variable has been destroyed.";
```
|
```objective-c
/* Language hooks common to C and ObjC front ends.
Contributed by Ziemowit Laski <zlaski@apple.com>
This file is part of GCC.
GCC is free software; you can redistribute it and/or modify it under
Software Foundation; either version 2, or (at your option) any later
version.
GCC is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or
for more details.
along with GCC; see the file COPYING. If not, write to the Free
Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301, USA. */
#ifndef GCC_C_OBJC_COMMON
#define GCC_C_OBJC_COMMON
/* In c-objc-common.c. */
extern void c_initialize_diagnostics (diagnostic_context *);
/* Lang hooks that are shared between C and ObjC are defined here. Hooks
specific to C or ObjC go in c-lang.c and objc/objc-lang.c, respectively. */
#undef LANG_HOOKS_IDENTIFIER_SIZE
#define LANG_HOOKS_IDENTIFIER_SIZE C_SIZEOF_STRUCT_LANG_IDENTIFIER
#undef LANG_HOOKS_FINISH
#define LANG_HOOKS_FINISH c_common_finish
#undef LANG_HOOKS_INIT_OPTIONS
#define LANG_HOOKS_INIT_OPTIONS c_common_init_options
#undef LANG_HOOKS_INITIALIZE_DIAGNOSTICS
#define LANG_HOOKS_INITIALIZE_DIAGNOSTICS c_initialize_diagnostics
#undef LANG_HOOKS_HANDLE_OPTION
#define LANG_HOOKS_HANDLE_OPTION c_common_handle_option
#undef LANG_HOOKS_MISSING_ARGUMENT
#define LANG_HOOKS_MISSING_ARGUMENT c_common_missing_argument
#undef LANG_HOOKS_POST_OPTIONS
#define LANG_HOOKS_POST_OPTIONS c_common_post_options
#undef LANG_HOOKS_GET_ALIAS_SET
#define LANG_HOOKS_GET_ALIAS_SET c_common_get_alias_set
#undef LANG_HOOKS_EXPAND_EXPR
#define LANG_HOOKS_EXPAND_EXPR c_expand_expr
#undef LANG_HOOKS_EXPAND_DECL
#define LANG_HOOKS_EXPAND_DECL c_expand_decl
#undef LANG_HOOKS_MARK_ADDRESSABLE
#define LANG_HOOKS_MARK_ADDRESSABLE c_mark_addressable
#undef LANG_HOOKS_PARSE_FILE
#define LANG_HOOKS_PARSE_FILE c_common_parse_file
#undef LANG_HOOKS_FINISH_INCOMPLETE_DECL
#define LANG_HOOKS_FINISH_INCOMPLETE_DECL c_finish_incomplete_decl
#undef LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS
#define LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS true
#undef LANG_HOOKS_STATICP
#define LANG_HOOKS_STATICP c_staticp
#undef LANG_HOOKS_NO_BODY_BLOCKS
#define LANG_HOOKS_NO_BODY_BLOCKS true
#undef LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL
#define LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL c_warn_unused_global_decl
#undef LANG_HOOKS_PRINT_IDENTIFIER
#define LANG_HOOKS_PRINT_IDENTIFIER c_print_identifier
#undef LANG_HOOKS_TYPES_COMPATIBLE_P
#define LANG_HOOKS_TYPES_COMPATIBLE_P c_types_compatible_p
#undef LANG_HOOKS_FUNCTION_ENTER_NESTED
#define LANG_HOOKS_FUNCTION_ENTER_NESTED c_push_function_context
#undef LANG_HOOKS_FUNCTION_LEAVE_NESTED
#define LANG_HOOKS_FUNCTION_LEAVE_NESTED c_pop_function_context
#undef LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P
#define LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P c_missing_noreturn_ok_p
#undef LANG_HOOKS_DUP_LANG_SPECIFIC_DECL
#define LANG_HOOKS_DUP_LANG_SPECIFIC_DECL c_dup_lang_specific_decl
/* Attribute hooks. */
#undef LANG_HOOKS_COMMON_ATTRIBUTE_TABLE
#define LANG_HOOKS_COMMON_ATTRIBUTE_TABLE c_common_attribute_table
#undef LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE
#define LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE c_common_format_attribute_table
#undef LANG_HOOKS_TREE_INLINING_CANNOT_INLINE_TREE_FN
#define LANG_HOOKS_TREE_INLINING_CANNOT_INLINE_TREE_FN \
c_cannot_inline_tree_fn
#undef LANG_HOOKS_TREE_INLINING_DISREGARD_INLINE_LIMITS
#define LANG_HOOKS_TREE_INLINING_DISREGARD_INLINE_LIMITS \
c_disregard_inline_limits
#undef LANG_HOOKS_TREE_INLINING_ANON_AGGR_TYPE_P
#define LANG_HOOKS_TREE_INLINING_ANON_AGGR_TYPE_P \
anon_aggr_type_p
#undef LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING
#define LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING \
c_convert_parm_for_inlining
#undef LANG_HOOKS_TREE_DUMP_DUMP_TREE_FN
#define LANG_HOOKS_TREE_DUMP_DUMP_TREE_FN c_dump_tree
#undef LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION
#define LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION c_expand_body
#undef LANG_HOOKS_TYPE_FOR_MODE
#define LANG_HOOKS_TYPE_FOR_MODE c_common_type_for_mode
#undef LANG_HOOKS_TYPE_FOR_SIZE
#define LANG_HOOKS_TYPE_FOR_SIZE c_common_type_for_size
#undef LANG_HOOKS_SIGNED_TYPE
#define LANG_HOOKS_SIGNED_TYPE c_common_signed_type
#undef LANG_HOOKS_UNSIGNED_TYPE
#define LANG_HOOKS_UNSIGNED_TYPE c_common_unsigned_type
#undef LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE
#define LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE c_common_signed_or_unsigned_type
#undef LANG_HOOKS_INCOMPLETE_TYPE_ERROR
#define LANG_HOOKS_INCOMPLETE_TYPE_ERROR c_incomplete_type_error
#undef LANG_HOOKS_TYPE_PROMOTES_TO
#define LANG_HOOKS_TYPE_PROMOTES_TO c_type_promotes_to
#undef LANG_HOOKS_REGISTER_BUILTIN_TYPE
#define LANG_HOOKS_REGISTER_BUILTIN_TYPE c_register_builtin_type
#undef LANG_HOOKS_TO_TARGET_CHARSET
#define LANG_HOOKS_TO_TARGET_CHARSET c_common_to_target_charset
#undef LANG_HOOKS_EXPR_TO_DECL
#define LANG_HOOKS_EXPR_TO_DECL c_expr_to_decl
/* The C front end's scoping structure is very different from
that expected by the language-independent code; it is best
to disable getdecls.
This means it must also provide its own write_globals. */
#undef LANG_HOOKS_GETDECLS
#define LANG_HOOKS_GETDECLS lhd_return_null_tree_v
#undef LANG_HOOKS_WRITE_GLOBALS
#define LANG_HOOKS_WRITE_GLOBALS c_write_global_declarations
/* Hooks for tree gimplification. */
#undef LANG_HOOKS_GIMPLIFY_EXPR
#define LANG_HOOKS_GIMPLIFY_EXPR c_gimplify_expr
#undef LANG_HOOKS_OMP_PREDETERMINED_SHARING
#define LANG_HOOKS_OMP_PREDETERMINED_SHARING c_omp_predetermined_sharing
#undef LANG_HOOKS_TREE_INLINING_VAR_MOD_TYPE_P
#define LANG_HOOKS_TREE_INLINING_VAR_MOD_TYPE_P c_vla_unspec_p
#endif /* GCC_C_OBJC_COMMON */
```
|
The MV Ocean Life was a cruise ship for a number of cruise lines, including Hellenic Seaways and Blue Ocean Cruises, under a number of names. She was sold for scrap in 2014.
History
She was built in 1981 as a Dmitriy Shostakovich-class ferry by Stocnia Szczecinska im A Warskiego, Szczecin, Poland as Lev Tolstoy for the Black Sea Shipping Company. She was third in a series of seven near-identical ferries built for various shipping companies of the Soviet Union. She sailed under the names Natasha, Palmira, The Jasmine, Farah, EasyCruise Life and finally Ocean Life with Blue Open Cruise Lines, who operated her on a series of Indian coastal voyages.
Fate
The ship was sold for scrapping at Aliağa, Turkey, in August 2014.
Incidents
On her maiden voyage with Blue Open Cruise Lines on 18 November 2010, with over 400 passengers and 134 crew on board the Ocean Life developed a crack on her port side off of Goa, in the Arabian Sea. The ship started taking on water and began to list five degrees. The vessel was moved to Western India Shipyard for repairs.
See also
Dmitriy Shostakovich-class ferry
References
External links
EasyCruise Life Cabins and Deckplans
Cruise ships
Passenger ships of the Soviet Union
1981 ships
Ships built in Szczecin
Ships of Black Sea Shipping Company
|
Marionia pellucida is a species of sea slug, a dendronotid nudibranch, a marine gastropod mollusc in the family Tritoniidae.
Distribution
This species was described from near Wasin, Kenya, East Africa, where it was dredged in 18 m of water.
References
Tritoniidae
Gastropods described in 1904
|
```objective-c
/*
*
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*
*/
#ifndef SkV8Example_JsContext_DEFINED
#define SkV8Example_JsContext_DEFINED
#include <v8.h>
#include "SkPaint.h"
#include "DrawingMethods.h"
class SkCanvas;
class Global;
// Provides the canvas context implementation in JS, and the OnDraw() method in
// C++ that's used to bridge from C++ to JS. Should be used in JS as:
//
// function onDraw(context) {
// context.fillStyle="#FF0000";
// context.fillRect(x, y, w, h);
// }
class JsContext : public DrawingMethods {
public:
JsContext(Global* global)
: INHERITED(global)
, fCanvas(NULL)
{
}
virtual ~JsContext() {}
// Parse the script.
bool initialize();
// Call this with the SkCanvas you want onDraw to draw on.
void onDraw(SkCanvas* canvas);
virtual SkCanvas* getCanvas() { return fCanvas; };
private:
// Wrap the 'this' pointer into an Object. Can be retrieved via Unwrap.
v8::Handle<v8::Object> wrap();
// A handle to the onDraw function defined in the script.
v8::Persistent<v8::Function> fOnDraw;
// The template for what a canvas context object looks like. The canvas
// context object is what's passed into the JS onDraw() function.
static v8::Persistent<v8::ObjectTemplate> gContextTemplate;
// Only valid when inside OnDraw().
SkCanvas* fCanvas;
typedef DrawingMethods INHERITED;
};
#endif
```
|
```sqlpl
select 1 as id
union all
select * from {{ ref('node_0') }}
union all
select * from {{ ref('node_3') }}
union all
select * from {{ ref('node_6') }}
union all
select * from {{ ref('node_8') }}
union all
select * from {{ ref('node_10') }}
union all
select * from {{ ref('node_48') }}
union all
select * from {{ ref('node_419') }}
```
|
The 1948 Gent–Wevelgem was the tenth edition of the Gent–Wevelgem cycle race and was held on 9 May 1948. The race started in Ghent and finished in Wevelgem. The race was won by Valère Ollivier.
General classification
References
Gent–Wevelgem
1948 in road cycling
1948 in Belgian sport
May 1948 sports events in Europe
|
Stenorhynchus is a genus of marine crabs in the family Inachidae, containing the following species:
Stenorhynchus debilis (S. I. Smith, 1871)
Stenorhynchus lanceolatus (Brullé, 1837)
Stenorhynchus seticornis (J. F. W. Herbst, 1788) – yellowline arrow crab
Stenorhynchus yangi Goeke, 1989 – red arrow crab
References
Majoidea
Taxa named by Jean-Baptiste Lamarck
Crustacean genera
|
```java
//
//
// path_to_url
//
// Unless required by applicable law or agreed to in writing, software
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
package google.registry.tools.javascrap;
import static com.google.common.truth.Truth.assertThat;
import static google.registry.testing.DatabaseHelper.createTld;
import static google.registry.testing.DatabaseHelper.persistActiveContact;
import static google.registry.testing.DatabaseHelper.persistDomainWithDependentResources;
import static google.registry.testing.DatabaseHelper.persistResource;
import static org.junit.jupiter.api.Assertions.assertThrows;
import com.beust.jcommander.ParameterException;
import com.google.common.collect.ImmutableSet;
import com.google.common.collect.Iterables;
import google.registry.model.billing.BillingBase.Reason;
import google.registry.model.billing.BillingCancellation;
import google.registry.model.billing.BillingEvent;
import google.registry.model.contact.Contact;
import google.registry.model.domain.Domain;
import google.registry.model.domain.DomainHistory;
import google.registry.model.reporting.HistoryEntryDao;
import google.registry.persistence.VKey;
import google.registry.testing.DatabaseHelper;
import google.registry.tools.CommandTestCase;
import java.io.PrintStream;
import org.joda.money.CurrencyUnit;
import org.joda.money.Money;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
/** Tests for {@link CreateCancellationsForBillingEventsCommand}. */
public class CreateCancellationsForBillingEventsCommandTest
extends CommandTestCase<CreateCancellationsForBillingEventsCommand> {
private Domain domain;
private BillingEvent billingEventToCancel;
@BeforeEach
void beforeEach() {
createTld("tld");
Contact contact = persistActiveContact("contact1234");
domain =
persistDomainWithDependentResources(
"example",
"tld",
contact,
fakeClock.nowUtc(),
fakeClock.nowUtc(),
fakeClock.nowUtc().plusYears(2));
billingEventToCancel = createBillingEvent();
command.printStream = System.out;
}
@Test
void testSimpleDelete() throws Exception {
assertThat(DatabaseHelper.loadAllOf(BillingCancellation.class)).isEmpty();
runCommandForced(String.valueOf(billingEventToCancel.getId()));
assertBillingEventCancelled();
assertInStdout("Added BillingCancellation for BillingEvent with ID 9");
assertInStdout("Created 1 BillingCancellation event(s)");
}
@Test
void testSuccess_oneExistsOneDoesnt() throws Exception {
runCommandForced(String.valueOf(billingEventToCancel.getId()), "9001");
assertBillingEventCancelled();
assertInStdout("Found 1 BillingEvent(s) to cancel");
assertInStdout("Missing BillingEvent(s) for IDs [9001]");
assertInStdout("Added BillingCancellation for BillingEvent with ID 9");
assertInStdout("Created 1 BillingCancellation event(s)");
}
@Test
void testSuccess_multipleCancellations() throws Exception {
BillingEvent secondToCancel = createBillingEvent();
assertThat(DatabaseHelper.loadAllOf(BillingCancellation.class)).isEmpty();
runCommandForced(
String.valueOf(billingEventToCancel.getId()), String.valueOf(secondToCancel.getId()));
assertBillingEventCancelled(billingEventToCancel.getId());
assertBillingEventCancelled(secondToCancel.getId());
assertInStdout("Create cancellations for 2 BillingEvent(s)?");
assertInStdout("Added BillingCancellation for BillingEvent with ID 9");
assertInStdout("Added BillingCancellation for BillingEvent with ID 10");
assertInStdout("Created 2 BillingCancellation event(s)");
}
@Test
void testAlreadyCancelled() throws Exception {
// multiple runs / cancellations should be a no-op
command.printStream = new PrintStream(tmpDir.resolve("test.txt").toFile());
runCommandForced(String.valueOf(billingEventToCancel.getId()));
assertBillingEventCancelled();
command.printStream = System.out;
runCommandForced(String.valueOf(billingEventToCancel.getId()));
assertBillingEventCancelled();
assertThat(DatabaseHelper.loadAllOf(BillingCancellation.class)).hasSize(1);
assertInStdout("Found 0 BillingEvent(s) to cancel");
assertInStdout("The following BillingEvent IDs were already cancelled: [9]");
}
@Test
void testFailure_doesntExist() throws Exception {
runCommandForced("9001");
assertThat(DatabaseHelper.loadAllOf(BillingCancellation.class)).isEmpty();
assertInStdout("Found 0 BillingEvent(s) to cancel");
assertInStdout("Missing BillingEvent(s) for IDs [9001]");
assertInStdout("Created 0 BillingCancellation event(s)");
}
@Test
void testFailure_noIds() {
assertThrows(ParameterException.class, this::runCommandForced);
}
private BillingEvent createBillingEvent() {
return persistResource(
new BillingEvent.Builder()
.setReason(Reason.CREATE)
.setTargetId(domain.getDomainName())
.setRegistrarId("TheRegistrar")
.setCost(Money.of(CurrencyUnit.USD, 10))
.setPeriodYears(2)
.setEventTime(fakeClock.nowUtc())
.setBillingTime(fakeClock.nowUtc())
.setFlags(ImmutableSet.of())
.setDomainHistory(
Iterables.getOnlyElement(
HistoryEntryDao.loadHistoryObjectsForResource(
domain.createVKey(), DomainHistory.class)))
.build());
}
private void assertBillingEventCancelled() {
assertBillingEventCancelled(billingEventToCancel.getId());
}
private void assertBillingEventCancelled(long billingEventId) {
assertThat(
DatabaseHelper.loadAllOf(BillingCancellation.class).stream()
.anyMatch(
c -> c.getEventKey().equals(VKey.create(BillingEvent.class, billingEventId))))
.isTrue();
}
}
```
|
O filii et filiae is a Christian hymn celebrating Easter. It is attributed to Jean Tisserand (d. 1497), a Franciscan friar.
Text
As commonly found in hymnals, it comprises up to twelve stanzas; each consisting of three verses followed by the exclamation "Alleluia":
1. O filii et filiae
Rex caelestis, Rex gloriae
Morte surrexit hodie.
Alleluia.
It originally comprised but nine stanzas (those commencing with "Discipulis adstantibus", "Postquam audivit Didymus", "Beati qui non viderunt" being early additions to the hymn). "L'aleluya du jour de Pasques" is a trope on the versicle and response (closing Lauds and Vespers) which it paraphrases in the last two stanzas:
11. In hoc festo sanctissimo
Sit laus et jubilatio:
Benedicamus Domino.
Alleluia.
12. De quibus nos humillimas
Devotas atque debitas
Deo dicamus gratias.
Alleluia.
There are several translations into English verse by non-Catholics, notably "O Sons and Daughters" by John Mason Neale. This translation is sometimes reworked as "Ye Sons and Daughters of the King". Catholic translations comprise one by an anonymous author in the "Evening Office", 1748 ("Young men and maids, rejoice and sing"), Father Caswall's "Ye sons and daughters of the Lord" and Charles Kent's "O maids and striplings, hear love's story", all three being given in Shipley, Annus Sanctus. The Latin texts vary both in the arrangement and the wording of the stanzas. The following is the translation of the above Latin verses by Neale as they appear in the New English Hymnal, where some stanzas have been omitted:
1. Ye sons and daughters of the King,
Whom heavenly hosts in glory sing,
To-day the grave hath lost its sting.
Alleluya!
9. On this most holy day of days,
To God your hearts and voices raise
In laud, and jubilee, and praise.
Alleluya!
10. And we with Holy Church unite,
As evermore is just and right,
In glory to the King of Light.
Alleluya!
Melody
The melody begins with a three-fold Alleluia, sung as a refrain, beginning and ending on the tonic. The first and second lines of each stanza share the same melody, and the third line takes its melody from the refrain.
The rhythm of the hymn is that of number and not of accent or of classical quantity. However, the melody to which it is sung can scarcely be divorced from the lilt of triple time. As a result, there is sometimes the appearance of a conflict between the accent of the Latin words and the real, if unintentional, stress of the melody. A number of hymnals give the melody in plain-song notation, and (theoretically, at least) this would permit the accented syllables of the Latin text to receive an appropriate stress of the voice. Commonly, however, the hymnals adopt the modern triple time.
The melody has been used as the inspiration for numerous organ pieces, including settings by French baroque composers Marc-Antoine Charpentier (H.312 and H.356), Pierre Dandrieu, and Jean-Francois Dandrieu, as well as variations by Alexandre Guilmant.
History
The hymn was very popular in France, whence it has spread to other countries. The 19th-century volume "The Liturgical Year" entitles it "The Joyful Canticle" and gives Latin text with English prose translation, with a triple Alleluia preceding and following the hymn. In certain hymnals, however, this triple Alleluia is sung also between the stanzas; and in others, greater particularity is indicated in the distribution of the stanzas and of the Alleluias, which has a great effect, in the words of John Mason Neale, "It is scarcely possible for any one, not acquainted with the melody, to imagine the jubilant effect of the triumphant Alleluia attached to apparently less important circumstances of the Resurrection. It seems to speak of the majesty of that event, the smallest portions of which are worthy to be so chronicled." The conflict of stress and word-accent led Neale to speak of the "rude simplicity" of the poem and to ascribe the hymn to the twelfth century in his volume (although the note prefixed to his own translation assigns the hymn to the thirteenth century). The French priest Jacques Paul Migne also declares it to be very ancient. It is only recently that its true authorship has been discovered, with the Dictionary of Hymnology (2nd ed., 1907) tracing it back only to the year 1659, with earlier sources finding it in a Roman Processional of the sixteenth century.
The hymn was assigned in the various French Paroissiens to the Benediction of the Blessed Sacrament, on Easter Sunday.
It was paraphrased in German in 1885 as "Ihr Christen, singet hocherfreut".
References
External links
O filii et filiæ, performed by the choir of Notre-Dame de Paris as part of the Easter Sunday mass (2017)
Easter hymns
Christian hymns in Latin
|
Commerce de Bordeaux was a 74-gun ship of the line of the French Navy. She was funded by a don des vaisseaux donation from Bordeaux.
Renamed Timoléon in February 1794, she took part in the Battle of the Nile under captain Louis-Léonce Trullet. In the confusion of the battle, her rudder was damaged by misdirected fire from the neighbouring Généreux. She fought for three days, eventually running aground and set on fire by her crew. She exploded around noon on 2 August, the last fighting French ship of the battle.
See also
List of ships of the line of France
References
Ships of the line of the French Navy
Téméraire-class ships of the line
Don des vaisseaux
Ships built in France
Maritime incidents in 1798
Ship fires
Scuttled vessels
Naval magazine explosions
Shipwrecks of Egypt
Shipwrecks in the Mediterranean Sea
1785 ships
|
```smalltalk
namespace Clean.Architecture.Web.Contributors;
public record DeleteContributorRequest
{
public const string Route = "/Contributors/{ContributorId:int}";
public static string BuildRoute(int contributorId) => Route.Replace("{ContributorId:int}", contributorId.ToString());
public int ContributorId { get; set; }
}
```
|
Middleton railway station was a minor railway station on the Cromford and High Peak Railway on the Middleton Incline. Outside of Middleton, Derbyshire. Opened in 1855 and closed in 1876. Nothing remains of the former station.
Route
References
Disused railway stations in Derbyshire
1855 establishments in England
|
Chengzhan (a.k.a. City Station, ) or Hangzhou Railway Station is a station on Line 1 and Line 5 of the Hangzhou Metro in China. It is located by Hangzhou railway station. It was opened in November 2012, together with the rest of the stations on Line 1. Line 5 was opened on 23 April 2020, which also pass this station. It is located in the Shangcheng District of Hangzhou.
References
Railway stations in China opened in 2012
Hangzhou Metro stations
|
The Irish Nurses and Midwives Organisation is the largest Irish professional union for nurses and midwives with 40,000 members. It was founded in 1919 after World War I, when a group of Irish nurses and midwives had a meeting in Dublin to discuss the issues in promoting an improvement in wages and advocating for a standard to be set for the conduction of their duties in the medical profession. This new organisation focused on increasing awareness towards tackling problems of pay and pension. They encouraged participation in recognising these changes by recruiting new members and establishing a standard for nursing and midwifery practice through educational initiatives. They were originally known as the ‘Irish Nurses Union’. In the 1930s, they began to promote their campaigns internationally by becoming affiliated with the International Council of Nurses. To this day they are still active and are based at the Whitworth Building in North Brunswick, Dublin.
Establishment of the INMO
The "Irish Nurses and Midwife Organisation" was established in 1919 when a group of twenty nurses and midwives had a meeting in the Dublin Espresso Club to discuss the conditions in the nursing workplace. The decision came from this meeting to establish a trade union in order to improve workplace conditions for employees.
This union advanced to become the first trade union for hospital nurses in the world. The union developed in the interest to improve the policies and conditions of work for nurses and midwives, as well as an improvement in pay. Throughout the early years the INMO successfully grew a following and new members joined their programs created to increase numbers.
“A provisional committee was established at the INU's first meeting in February 1919. Louie Bennett was nominated president and Marie Mortished was nominated secretary”
INMO Midwives
The INU developed a scheme where they implemented a minimum wage of 25 shillings per case for midwives and encouraged midwives to not accept any lower than this. Another step taken to improve workplace standards included publishing the names of the local INU members in the press in an attempt to encourage trade unionist to select from these midwives when their wives required one.
The Irish Nurses Union had a base which provided a postal address for the public to contact the midwives easier. The union further sought for an increase in midwives’ salaries to seventy five pounds per year and a months’ paid leave.
INMO Nurses
“The INU aimed to represent private practice nurses as well as nurses working in poor law hospitals, voluntary working, sanatoria and the jubilee district nursing service” The INU's aim was to provide fairer working conditions for nurses, including increased salaries and decreased weekly working hours.
1925
The Irish Nurse Union transformed from a trade union to a professional association in 1925. Changes within the structure of the INU began as membership numbers began to fall. Marie Mortished resigned as secretary of the INU in 1921, and Louis Bennet resigned as president in 1925. In an attempt to increase member numbers, the INU started to run courses such as ‘Housewivery and storekeeping’. “Education courses were partly responsible for increasing the organisations membership” with sixty percent of the new midwives who joined the INO in October 1936 were sourced at a refresher course at Dublin's Coombe Hospital.
With new programs resulting in an increase of members, the Irish Nurse Union evolved into the Irish Nurse Organisation. The programs worked, with there being 220 nurses and 324 midwives in 1930 - an increase from the 437 members in 1929. By 1936 there were 937 members.
The Irish Nurses Organisation began working on an international level in 1931 and became affiliated with the International Council of Nurses (ICN), an affiliation that continues today.
1940–1949
With the beginning of World War II in 1939, the Irish Nurses and Midwife Organisation faced many challenges. Ireland remained neutral throughout World War II, but experienced shortages in commodities such as tea, flour and fuel. Shortages and tighter restrictions made it hard for nurses to travel to and from work and increased the price of living by 70 percent between 1942 and 1946.
The demand for nurses increased in countries participating in the war such as England and Western Europe. “Twenty four nurses were employed by the United Nations Relief and Rehabilitation Administration and a team of nurses joined the Irish Red Cross Hospital in St Lo in Normandy”.
Ireland, as a result of increased need for nurses internationally, experienced a shortage of nurses due to this emigration. The INO registered as a legal company under the Trade Union Act in 1941. After this registration the INO became more persistent in their call for the regulation of salaries. The company introduced university level postgraduate courses which increased the INO's popularity among the Irish Catholic community.
Tuberculosis became an imminent problem throughout the 1940s which resulted in a nation-wide campaign for the eradication of tuberculosis. With this campaign came improvements in hospital hygiene conditions.
Miss Margret Reidy was appointed nurse supervisor in the department of health in 1948. This was the first appointment of a nurse supervisor in the department of health for the INO.
1950–1959
Throughout the 1950s the INO split into different sections. They were formed to group nurses and midwives into categories more specific to their disciplines to allow meetings which were of common importance. The Public Health Nurses section formed in 1951. Mrs P McConville was appointed president. Through the remainder of the decade, the ‘Hospital Nurses’ section and the ‘Jubilee Nurses' and Midwives' section were formed. They were designed to allow staff to “address professional development issues and provide social personal support”.
1960–1969
Free trade agreements and foreign investment in Ireland in the 1950s increased the annual growth rates between 1959 and 1973, and as a result began a decade of prosperity for the INO. The union saw an increase in nurse and midwife wages by 4 percent per year. Unemployment rates fell and the trade unions rose.
The organisation began to develop a staff committee in hospitals to solve internal problems throughout this period.
1970–1979
Membership of the Irish Nurses Organisation at the beginning of 1970 was 5918. A new 40 hour week was in operation as a requirement for nurses and midwives. This applied to Local Authority and voluntary hospitals from 1 April 1971.
Kyran Lunch was appointed as a full-time Industrial Relations officer in July 1977 to strengthen negotiation activities for the union.
1980–1989
The number of members of the Irish Nurses Organisation rose steadily through the years. In 1968 membership was 4499. By 1977, membership had risen to 8055. Throughout the 1980s, government cuts to the health budget affected nurses and midwives work significantly. “some nurses feared their institutions were so short staffed that a patient might die yet remain undiscovered for a number of hours”. The frustration of nurses could be seen in 1989 when 98 percent of nurses voted in favour of a strike.
The headquarters were moved to 11 Fitzwilliam Place during this period. “The Nurses Union of Ireland, the union wholly owned by the Irish Nurses Organisation, was granted full negotiating licence by the High Court” The Irish Nurses Organisation joined the Nurses Union of Ireland in an effort to obtain full negotiating licence which was helt by the Nurses Union of Ireland. This was a long-term goal of the INO to affiliate with the ICTU which was a success. The nurses act was published in 1985.
1990–1999
Pay increase at the beginning of the 1990s increased from 2 percent in the 1980s to almost 40 percent in the mid-1990s. The membership of the INO increased from 9000 in the mid-1980s to 23000 in the late 1990s.
With the new implementation of new benefits for members including a salary protection scheme, car insurance, a salary protection scheme and indemnity insurance as well as discounted health insurance rates and discounted rail rickets, the membership of the INO began to rise to 23,000 in the late 1990s.
PJ Madden became the new general secretary in 1998 and Ita O’Dwyer, Kay Craughwell and Anne Cody shared the position as presidents of the INO.
In 1999, the INO merged with the Nurses Union of Ireland, which became a Trade Union on 1 November 1990.
Throughout the 1990s, nurses were required to work 39 hours in the week.
INMO in the 21st century
The current membership of the Irish Nurses Organisation is 43,000. The Irish Nurses Organisation established an overseas nurses section as a response to growing concerns surrounding the integration and support of international nurses. In 2006, the Irish Nurses Organisation won the Metro Eireann Media and Multicultural Award as a recognition of the INO's success in integrating overseas nurses and midwives into the Irish healthcare setting.
In March 2007, the Irish Nurses Organisation published a book of essays entitled ‘Forming EU healthcare Policy: A showcase of Irish involvement' to celebrate the INO's achievements of having four representatives holding positions as presidents of European nursing organisations.
In 2009, the Irish Nurses Organisation began sponsoring the education of women nurses in Ethiopia. The following year in 2010, the INO members raised money for the victims of earthquake in Haiti – 500 of which had been nursing students.
Campaigns
The Irish Nurses and Midwives Organisation has been active in campaigns since its establishment. Its campaigns have surrounded issues from safeguarding working rights of migrants and efforts in eradicating racism. In 2005, the INMO staged a campaign of ‘Enough is Enough’ to highlight the lack of accident and emergency departments in hospitals. This campaign encouraged the public to post postcards to the Irish Minister of Health to take action. This campaign was a success as in June 2006 ‘Toward 2016’ was established as a national partnership deal which promised a 10-year framework to plan social and infrastructure developments.
The INMO became the first organisation to support the ‘turn off the red light’ campaign in 2011. This campaign was ultimately successful, with the purchase of sex becoming outlawed in Ireland under the Criminal Law (Sexual Offences) Act of 2017.
The INMO attempted to mobilise public opinion behind its patient advocacy drive, and in conjunction with the Irish Patients Association Cystic fibrosis Ireland and the Irish Medical Organisation, launched a campaign known as the ‘Patients First’ campaign in 2014.
The Irish Nurses and Midwife Organisation campaigned its support of same-sex marriage in Ireland in 2015 which also became a success. In 2016, the INMO campaigned for a human rights approach to the health care system funded by general taxation, which was established by the state in 2016 with the launch of the all- party Slaintecare Report in 2017.
On 30 January 2019, the Irish Nurses and Midwife Organisation called a strike as a dispute over pay conditions. The members of the organisation withdrew all non essential services for twenty four hours. The aim of this strike was to ask for a twelve percent increase to pay across the board. This strike was received by the public with general support in their attempt to achieve higher pay and to ensure a safer and more efficient health service.
See also
List of nursing organizations
References
External links
Nursing organizations
1919 establishments in Ireland
Healthcare trade unions in Ireland
Trade unions established in 1919
|
```javascript
//
// This software (Documize Community Edition) is licensed under
// GNU AGPL v3 path_to_url
//
// You can operate outside the AGPL restrictions by purchasing
// Documize Enterprise Edition and obtaining a commercial license
// by contacting <sales@documize.com>.
//
// path_to_url
import Component from '@ember/component';
export default Component.extend({
data: "",
didReceiveAttrs() {
this._super();
this.set("data", this.get("meta.rawBody"));
},
actions: {
isDirty() {
return this.get('meta.rawBody') !== this.get('data');
},
onCancel() {
let cb = this.get('onCancel');
cb();
},
onAction(title) {
let page = this.get('page');
let meta = this.get('meta');
page.set('title', title);
meta.set('rawBody', this.get("data"));
let cb = this.get('onAction');
cb(page, meta);
}
}
});
```
|
```html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "path_to_url">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_121) on Mon Mar 27 10:01:25 CEST 2017 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>ActivitiMembershipEventImpl (Flowable - Engine 5.23.0 API)</title>
<meta name="date" content="2017-03-27">
<link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="ActivitiMembershipEventImpl (Flowable - Engine 5.23.0 API)";
}
}
catch(err) {
}
//-->
var methods = {"i0":10,"i1":10,"i2":10,"i3":10};
var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]};
var altColor = "altColor";
var rowColor = "rowColor";
var tableTab = "tableTab";
var activeTableTab = "activeTableTab";
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar.top">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.top.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/ActivitiMembershipEventImpl.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../../org/activiti/engine/delegate/event/impl/ActivitiEventSupport.html" title="class in org.activiti.engine.delegate.event.impl"><span class="typeNameLink">Prev Class</span></a></li>
<li><a href="../../../../../../org/activiti/engine/delegate/event/impl/ActivitiMessageEventImpl.html" title="class in org.activiti.engine.delegate.event.impl"><span class="typeNameLink">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../../index.html?org/activiti/engine/delegate/event/impl/ActivitiMembershipEventImpl.html" target="_top">Frames</a></li>
<li><a href="ActivitiMembershipEventImpl.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary: </li>
<li>Nested | </li>
<li><a href="#field.summary">Field</a> | </li>
<li><a href="#constructor.summary">Constr</a> | </li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail: </li>
<li><a href="#field.detail">Field</a> | </li>
<li><a href="#constructor.detail">Constr</a> | </li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a name="skip.navbar.top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle">org.activiti.engine.delegate.event.impl</div>
<h2 title="Class ActivitiMembershipEventImpl" class="title">Class ActivitiMembershipEventImpl</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li><a href="path_to_url" title="class or interface in java.lang">java.lang.Object</a></li>
<li>
<ul class="inheritance">
<li><a href="../../../../../../org/activiti/engine/delegate/event/impl/ActivitiEventImpl.html" title="class in org.activiti.engine.delegate.event.impl">org.activiti.engine.delegate.event.impl.ActivitiEventImpl</a></li>
<li>
<ul class="inheritance">
<li>org.activiti.engine.delegate.event.impl.ActivitiMembershipEventImpl</li>
</ul>
</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>All Implemented Interfaces:</dt>
<dd><a href="../../../../../../org/activiti/engine/delegate/event/ActivitiEvent.html" title="interface in org.activiti.engine.delegate.event">ActivitiEvent</a>, <a href="../../../../../../org/activiti/engine/delegate/event/ActivitiMembershipEvent.html" title="interface in org.activiti.engine.delegate.event">ActivitiMembershipEvent</a></dd>
</dl>
<hr>
<br>
<pre>public class <span class="typeNameLabel">ActivitiMembershipEventImpl</span>
extends <a href="../../../../../../org/activiti/engine/delegate/event/impl/ActivitiEventImpl.html" title="class in org.activiti.engine.delegate.event.impl">ActivitiEventImpl</a>
implements <a href="../../../../../../org/activiti/engine/delegate/event/ActivitiMembershipEvent.html" title="interface in org.activiti.engine.delegate.event">ActivitiMembershipEvent</a></pre>
<div class="block">Implementation of <a href="../../../../../../org/activiti/engine/delegate/event/ActivitiMembershipEvent.html" title="interface in org.activiti.engine.delegate.event"><code>ActivitiMembershipEvent</code></a>.</div>
<dl>
<dt><span class="simpleTagLabel">Author:</span></dt>
<dd>Frederik Heremans</dd>
</dl>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- =========== FIELD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="field.summary">
<!-- -->
</a>
<h3>Field Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation">
<caption><span>Fields</span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Field and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected <a href="path_to_url" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/activiti/engine/delegate/event/impl/ActivitiMembershipEventImpl.html#groupId">groupId</a></span></code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected <a href="path_to_url" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/activiti/engine/delegate/event/impl/ActivitiMembershipEventImpl.html#userId">userId</a></span></code> </td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="fields.inherited.from.class.org.activiti.engine.delegate.event.impl.ActivitiEventImpl">
<!-- -->
</a>
<h3>Fields inherited from class org.activiti.engine.delegate.event.impl.<a href="../../../../../../org/activiti/engine/delegate/event/impl/ActivitiEventImpl.html" title="class in org.activiti.engine.delegate.event.impl">ActivitiEventImpl</a></h3>
<code><a href="../../../../../../org/activiti/engine/delegate/event/impl/ActivitiEventImpl.html#executionId">executionId</a>, <a href="../../../../../../org/activiti/engine/delegate/event/impl/ActivitiEventImpl.html#processDefinitionId">processDefinitionId</a>, <a href="../../../../../../org/activiti/engine/delegate/event/impl/ActivitiEventImpl.html#processInstanceId">processInstanceId</a>, <a href="../../../../../../org/activiti/engine/delegate/event/impl/ActivitiEventImpl.html#type">type</a></code></li>
</ul>
</li>
</ul>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.summary">
<!-- -->
</a>
<h3>Constructor Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
<caption><span>Constructors</span><span class="tabEnd"> </span></caption>
<tr>
<th class="colOne" scope="col">Constructor and Description</th>
</tr>
<tr class="altColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../../../org/activiti/engine/delegate/event/impl/ActivitiMembershipEventImpl.html#ActivitiMembershipEventImpl-org.activiti.engine.delegate.event.ActivitiEventType-">ActivitiMembershipEventImpl</a></span>(<a href="../../../../../../org/activiti/engine/delegate/event/ActivitiEventType.html" title="enum in org.activiti.engine.delegate.event">ActivitiEventType</a> type)</code> </td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method.summary">
<!-- -->
</a>
<h3>Method Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd"> </span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd"> </span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd"> </span></span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr id="i0" class="altColor">
<td class="colFirst"><code><a href="path_to_url" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/activiti/engine/delegate/event/impl/ActivitiMembershipEventImpl.html#getGroupId--">getGroupId</a></span>()</code> </td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code><a href="path_to_url" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/activiti/engine/delegate/event/impl/ActivitiMembershipEventImpl.html#getUserId--">getUserId</a></span>()</code> </td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/activiti/engine/delegate/event/impl/ActivitiMembershipEventImpl.html#setGroupId-java.lang.String-">setGroupId</a></span>(<a href="path_to_url" title="class or interface in java.lang">String</a> groupId)</code> </td>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/activiti/engine/delegate/event/impl/ActivitiMembershipEventImpl.html#setUserId-java.lang.String-">setUserId</a></span>(<a href="path_to_url" title="class or interface in java.lang">String</a> userId)</code> </td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.org.activiti.engine.delegate.event.impl.ActivitiEventImpl">
<!-- -->
</a>
<h3>Methods inherited from class org.activiti.engine.delegate.event.impl.<a href="../../../../../../org/activiti/engine/delegate/event/impl/ActivitiEventImpl.html" title="class in org.activiti.engine.delegate.event.impl">ActivitiEventImpl</a></h3>
<code><a href="../../../../../../org/activiti/engine/delegate/event/impl/ActivitiEventImpl.html#getEngineServices--">getEngineServices</a>, <a href="../../../../../../org/activiti/engine/delegate/event/impl/ActivitiEventImpl.html#getExecutionId--">getExecutionId</a>, <a href="../../../../../../org/activiti/engine/delegate/event/impl/ActivitiEventImpl.html#getProcessDefinitionId--">getProcessDefinitionId</a>, <a href="../../../../../../org/activiti/engine/delegate/event/impl/ActivitiEventImpl.html#getProcessInstanceId--">getProcessInstanceId</a>, <a href="../../../../../../org/activiti/engine/delegate/event/impl/ActivitiEventImpl.html#getType--">getType</a>, <a href="../../../../../../org/activiti/engine/delegate/event/impl/ActivitiEventImpl.html#setExecutionId-java.lang.String-">setExecutionId</a>, <a href="../../../../../../org/activiti/engine/delegate/event/impl/ActivitiEventImpl.html#setProcessDefinitionId-java.lang.String-">setProcessDefinitionId</a>, <a href="../../../../../../org/activiti/engine/delegate/event/impl/ActivitiEventImpl.html#setProcessInstanceId-java.lang.String-">setProcessInstanceId</a>, <a href="../../../../../../org/activiti/engine/delegate/event/impl/ActivitiEventImpl.html#setType-org.activiti.engine.delegate.event.ActivitiEventType-">setType</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
<!-- -->
</a>
<h3>Methods inherited from class java.lang.<a href="path_to_url" title="class or interface in java.lang">Object</a></h3>
<code><a href="path_to_url#clone--" title="class or interface in java.lang">clone</a>, <a href="path_to_url#equals-java.lang.Object-" title="class or interface in java.lang">equals</a>, <a href="path_to_url#finalize--" title="class or interface in java.lang">finalize</a>, <a href="path_to_url#getClass--" title="class or interface in java.lang">getClass</a>, <a href="path_to_url#hashCode--" title="class or interface in java.lang">hashCode</a>, <a href="path_to_url#notify--" title="class or interface in java.lang">notify</a>, <a href="path_to_url#notifyAll--" title="class or interface in java.lang">notifyAll</a>, <a href="path_to_url#toString--" title="class or interface in java.lang">toString</a>, <a href="path_to_url#wait--" title="class or interface in java.lang">wait</a>, <a href="path_to_url#wait-long-" title="class or interface in java.lang">wait</a>, <a href="path_to_url#wait-long-int-" title="class or interface in java.lang">wait</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.org.activiti.engine.delegate.event.ActivitiEvent">
<!-- -->
</a>
<h3>Methods inherited from interface org.activiti.engine.delegate.event.<a href="../../../../../../org/activiti/engine/delegate/event/ActivitiEvent.html" title="interface in org.activiti.engine.delegate.event">ActivitiEvent</a></h3>
<code><a href="../../../../../../org/activiti/engine/delegate/event/ActivitiEvent.html#getEngineServices--">getEngineServices</a>, <a href="../../../../../../org/activiti/engine/delegate/event/ActivitiEvent.html#getExecutionId--">getExecutionId</a>, <a href="../../../../../../org/activiti/engine/delegate/event/ActivitiEvent.html#getProcessDefinitionId--">getProcessDefinitionId</a>, <a href="../../../../../../org/activiti/engine/delegate/event/ActivitiEvent.html#getProcessInstanceId--">getProcessInstanceId</a>, <a href="../../../../../../org/activiti/engine/delegate/event/ActivitiEvent.html#getType--">getType</a></code></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ FIELD DETAIL =========== -->
<ul class="blockList">
<li class="blockList"><a name="field.detail">
<!-- -->
</a>
<h3>Field Detail</h3>
<a name="userId">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>userId</h4>
<pre>protected <a href="path_to_url" title="class or interface in java.lang">String</a> userId</pre>
</li>
</ul>
<a name="groupId">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>groupId</h4>
<pre>protected <a href="path_to_url" title="class or interface in java.lang">String</a> groupId</pre>
</li>
</ul>
</li>
</ul>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.detail">
<!-- -->
</a>
<h3>Constructor Detail</h3>
<a name="ActivitiMembershipEventImpl-org.activiti.engine.delegate.event.ActivitiEventType-">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>ActivitiMembershipEventImpl</h4>
<pre>public ActivitiMembershipEventImpl(<a href="../../../../../../org/activiti/engine/delegate/event/ActivitiEventType.html" title="enum in org.activiti.engine.delegate.event">ActivitiEventType</a> type)</pre>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method.detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a name="setUserId-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setUserId</h4>
<pre>public void setUserId(<a href="path_to_url" title="class or interface in java.lang">String</a> userId)</pre>
</li>
</ul>
<a name="getUserId--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getUserId</h4>
<pre>public <a href="path_to_url" title="class or interface in java.lang">String</a> getUserId()</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../org/activiti/engine/delegate/event/ActivitiMembershipEvent.html#getUserId--">getUserId</a></code> in interface <code><a href="../../../../../../org/activiti/engine/delegate/event/ActivitiMembershipEvent.html" title="interface in org.activiti.engine.delegate.event">ActivitiMembershipEvent</a></code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>related user. Returns null, if not related to a sigle user but rather to all
members of the group.</dd>
</dl>
</li>
</ul>
<a name="setGroupId-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setGroupId</h4>
<pre>public void setGroupId(<a href="path_to_url" title="class or interface in java.lang">String</a> groupId)</pre>
</li>
</ul>
<a name="getGroupId--">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>getGroupId</h4>
<pre>public <a href="path_to_url" title="class or interface in java.lang">String</a> getGroupId()</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../org/activiti/engine/delegate/event/ActivitiMembershipEvent.html#getGroupId--">getGroupId</a></code> in interface <code><a href="../../../../../../org/activiti/engine/delegate/event/ActivitiMembershipEvent.html" title="interface in org.activiti.engine.delegate.event">ActivitiMembershipEvent</a></code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>related group</dd>
</dl>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar.bottom">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.bottom.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/ActivitiMembershipEventImpl.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../../org/activiti/engine/delegate/event/impl/ActivitiEventSupport.html" title="class in org.activiti.engine.delegate.event.impl"><span class="typeNameLink">Prev Class</span></a></li>
<li><a href="../../../../../../org/activiti/engine/delegate/event/impl/ActivitiMessageEventImpl.html" title="class in org.activiti.engine.delegate.event.impl"><span class="typeNameLink">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../../index.html?org/activiti/engine/delegate/event/impl/ActivitiMembershipEventImpl.html" target="_top">Frames</a></li>
<li><a href="ActivitiMembershipEventImpl.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary: </li>
<li>Nested | </li>
<li><a href="#field.summary">Field</a> | </li>
<li><a href="#constructor.summary">Constr</a> | </li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail: </li>
<li><a href="#field.detail">Field</a> | </li>
<li><a href="#constructor.detail">Constr</a> | </li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a name="skip.navbar.bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</body>
</html>
```
|
Yalçın Ayaslı (born 1946) is a Turkish-American business executive.
Biography
A graduate of the Ankara Atatürk High School, Ayaslı received his B.S. in Electrical Engineering from the Middle East Technical University Electrical Engineering Department in 1968.
Yalcin Ayasli received his M.S.E.E. and Sc.D. degrees from Massachusetts Institute of Technology in 1973 and worked as a faculty member and Deputy Department Chair at the METU Electrical Engineering Department for six years.
A Massachusetts (MA) resident in 1979-2006, and NH resident since 2006, Ayasli has conducted theoretical and experimental studies on Microwave Monolithic Integrated Circuit techniques involving GaAs Field-Effect Transistors and related devices. He began his professional career at the MA based Raytheon's research division. In 1985, he founded Hittite Microwave Corporation, a public company traded on Nasdaq, in Chelmsford, MA. The company is a supplier of mixed signal RFIC and Microwave and Millimeter-Wave Integrated Circuit components and subsystems for wireless and telecommunication markets. After serving as the company's CEO and Chairman of the Board for 20 years, Ayasli served as Chairman Emeritus until the company was purchased by Analog Devices Inc. in 2014 for $2.45 billion. In 2017 he sold the airline Borajet to the SBK Holding of Sezgin Baran Korkmaz.
Ayaslı is the author of numerous scientific papers in this research area and holds 15 patents. He was the General Chairman for the 1987 IEEE Microwave and Millimeter Wave Monolithic Circuits Symposium.
Ayaslı is founder and chairman of two US public charitable organizations; Turkish Cultural Foundation and Turkish Coalition of America. Both organizations have offices in Boston, Washington, D.C. and Istanbul.
Ayaslı also established the Culinary Arts Center and Cultural Heritage Preservation and Natural Dyes Laboratory in Istanbul.
In 2012, he donated the Ayasli Research Center to his alma mater, Middle East Technical University Engineering Department.
Yalcin Ayaslı also is a member of the High Advisory Board of the World Turkish Business Council. The board last met in Istanbul on June 7, 2012.
In addition, Ayaslı is an investor in the Borajet, Armaggan and Nar companies in Turkey.
Awards
1986 IEEE Microwave Prize
1994 IEEE Fellow for contribution to the design and development of wide-band gallium arsenide (GaAs) monolithic microwave integrated circuits (MMICs).
2011 Macedonia Friendship Award.
References
External links
Turkish Cultural Foundation
Turkish Coalition of America
Cultural Heritage Preservation and Natural Dyes Laboratory
Culinary Arts Center
Yalcin Ayasli Homepage
Serpil Ayasli Homepage
1946 births
Turkish chief executives
Living people
MIT School of Engineering alumni
Turkish emigrants to the United States
Middle East Technical University alumni
Turkish electrical engineers
Microwave engineers
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.