text
stringlengths 1
22.8M
|
|---|
Elisabeth Sickl (born 13 January 1940) is an Austrian retired politician.
Sickl was born in Vienna, where she also went to school. She studied law at the University of Vienna, completing the doctorate in 1966. She got qualified as a teacher and taught at, and from 1989 was director of, a school in Feldkirchen in Kärnten.
She was appointed by the Freedom Party of Austria (FPÖ) to the state government of Carinthia. In 1999 she was elected into the presidency of the Carinthian Landtag. Sickl was Minister for Social Security and Generations in the first government of Wolfgang Schüssel, succeeding Lore Hostasch in February 2000. On 24 October of the same year she was replaced by Herbert Haupt. She had been harshly criticised by the opposition and her own party for perceived incompetence and miscommunication.
After leaving politics, Sickl retired to , which she had purchased in 1987 and restored. Her son Heinrich Sickl is also an FPÖ politician and is reportedly associated with far-right groups including the Identitarian movement.
References
External links
1940 births
Living people
Politicians from Vienna
University of Vienna alumni
Government ministers of Austria
Women government ministers of Austria
20th-century Austrian politicians
21st-century Austrian politicians
21st-century Austrian women politicians
|
State Highway 125 (SH 125) is a state highway in the U.S. state of Texas maintained by the Texas Department of Transportation (TxDOT). The highway begins at the New Mexico state line southwest of Bledsoe, and passes through Bledsoe where it turns east intersecting SH 214 before terminating at SH 114. The highway is located entirely within Cochran County, and is numerically continuous with New Mexico State Road 125 which it meets at the state line and connects the highway to Tatum, NM. The highway has brief concurrencies with SH 214 in Lehman and Farm to Market Road 1780 in Whiteface.
The highway's numerical designation was previously assigned to a roadway in southeast Texas during the 1920s and 1930s. The current highway was designated in 1990 over a portion of FM 769, but FM 769 had been unofficially signed as SH 125 since the 1950s. The connection New Mexico Highway was NM 294.
Route description
SH 125 begins where it meets NM 125 at the New Mexico state line. The route proceeds to the northeast almost immediately intersecting from the south FM 769 which runs closely parallel to the state line on the Texas side. SH 125 continues to the northeast to Bledsoe where the route intersects FM 2182 before turning east along Third Street. The route intersects FM 595 before leaving Bledsoe and then intersects FM 1169 and FM 1779 between Bledsoe and Lehman.
In Lehman, the route joins SH 214 to the south for a short distance before turning east again. Beyond Lehman, the road intersects FM 2195 before gradually turning to the southeast toward Whiteface. The route enters Whiteface along East Second Street and turns north along North Taylor Street where SH 125 joins FM 1780. On the northern edge of Whiteface, SH 125 ends at SH 114.
SH 125 passes through mostly agricultural lands and oil and gas fields across the largely flat and featureless terrain of the Llano Estacado.
History
SH 125 was previously designated on September 7, 1927 on a route from Anahuac to Beaumont in Chambers and Jefferson counties. On December 16, 1929, another split was added from Stowell through High Island to Galveston. On March 19, 1930, the route from Stowell to Galveston was renumbered as SH 124, and SH 125 had only the original section left. The former route designation was replaced on September 26, 1939 by SH 73-T between Anahuac and Stowell and by SH 124 between Stowell and Beaumont. SH 73-T was replaced by SH 65 on November 30, 1961.
The current route was originally designated as FM 769 between SH 214 in Lehman and SH 290, now SH 114 in Whiteface on November 18, 1947. That route was extended to the New Mexico state line on April 1, 1948, while also being extended southward from Whiteface to an intersection with a road that on July 14, 1949 would become FM 301 On December 17, 1952, FM 769 was extended southward along the New Mexico state line.
The route was first unofficially signed as SH 125 while officially maintaining its Farm to Market designation on March 30, 1955 allowing the route to be numerically continuous with its New Mexico counterpart, which was renumbered from NM 294 to NM 125 that day. On November 2, 1955, the portion of the route from FM 301 to SH 116 as the current SH 114 was designated between 1955 and 1978 was designated as an extension to FM 1780 with FM 769 ending where it intersected FM 1780. On May 2, 1962, the designation of FM 2010 was canceled and combined with FM 769 extending the route south along the state line to FM 1077 in Yoakum County. FM 1077 was renumbered as part of US 82 on December 16, 1963. FM 1077 has since been reassigned as RM 1077 to a route in Bandera County. FM 769 was extended farther south along the state line to US 83 west of Denver City on January 26, 1969.
The state highway designation became official on August 29, 1990, and the FM 769 designation was eliminated. On May 7, 1991, SH 125 was reassigned along its current alignment from the state line to SH 114 in Whiteface, and FM 769 was recreated along the state line from SH 83 to SH 125.
Major intersections
See also
References
125
Transportation in Cochran County, Texas
|
```javascript
// 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 Google Inc. nor the names of its
// contributors may be used to endorse or promote products derived
// from this software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
// 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.
"use strict";
var observed = false;
var object = { get toString() { observed = true; } };
Object.defineProperty(object, "ro", { value: 1 });
try {
object.ro = 2; // TypeError caused by trying to write to read-only.
} catch (e) {
e.message; // Forces formatting of the message object.
}
assertFalse(observed);
```
|
```python
import factory
import pytest
import validators
from pytest_factoryboy import register
from mimesis.plugins.factory import FactoryField
TEST_USERNAMES = ("sobolevn", "lk-geimfari")
class Account(object):
def __init__(self, uid, username, email):
self.uid = uid
self.username = username
self.email = email
@register
class AccountFactory(factory.Factory):
class Meta(object):
model = Account
exclude = ("_domain",)
uid = factory.Sequence(lambda order: order + 1)
username = FactoryField("username")
_domain = FactoryField("top_level_domain")
email = factory.LazyAttribute(
lambda instance: "{0}@example{1}".format(
instance.username,
instance._domain, # noqa: WPS437
),
)
def test_account_factory_different_data(account_factory):
account1 = account_factory()
account2 = account_factory()
assert isinstance(account1, Account)
assert isinstance(account2, Account)
assert account1 != account2
assert account1.uid != account2.uid
assert account1.username != account2.username
assert account1.email != account2.email
def test_account_factory_overrides(account_factory):
username = "sobolevn"
desired_id = 190
account = account_factory(username=username, uid=desired_id)
assert account.uid == desired_id
assert account.username == username
assert account.email.startswith(username)
def test_account_factory_create_batch(account_factory):
accounts = account_factory.create_batch(10)
uids = {account.uid for account in accounts}
usernames = {account.username for account in accounts}
assert len(accounts) == len(uids)
assert len(accounts) == len(usernames)
for account in accounts:
assert isinstance(account, Account)
assert account.uid > 0
assert account.username != ""
assert account.email.startswith(account.username)
def test_account_factory_build_batch(account_factory):
accounts = account_factory.build_batch(10)
uids = {account.uid for account in accounts}
usernames = {account.username for account in accounts}
assert len(accounts) == len(uids)
assert len(accounts) == len(usernames)
for account in accounts:
assert isinstance(account, Account)
assert account.uid > 0
assert account.username != ""
assert account.email.startswith(account.username)
def test_account_data(account):
assert isinstance(account, Account)
assert account.uid > 0
assert account.username != ""
assert validators.email(account.email)
username, domain = account.email.split("@")
assert account.username == username
assert validators.domain(domain)
@pytest.mark.parametrize("account__username", TEST_USERNAMES)
def test_account_data_overrides(account):
assert account.username in TEST_USERNAMES
username, _ = account.email.split("@")
assert account.username == username
assert username in TEST_USERNAMES
@pytest.mark.parametrize(
("account__username", "account__uid"),
zip(
TEST_USERNAMES,
range(10000, 10003),
),
)
def test_account_multiple_data_overrides(account):
assert account.username in TEST_USERNAMES
assert 10000 <= account.uid < 10003
username, _ = account.email.split("@")
assert account.username == username
assert username in TEST_USERNAMES
def test_account_excluded_data(account):
with pytest.raises(AttributeError):
account._domain # noqa: WPS428, WPS437
```
|
Sports broadcasting contracts in Israel include:
Football
Israeli Premier League: Sport 1, Sport 5
Israel State Cup: Sport 5
Toto Cup: Sport 5
UEFA Champions League: Sport 5
UEFA Europa League: Sport 1
Premier League: Sport 1
EFL Championship: Sport 1
EFL League One: Sport 1
EFL League Two: Sport 1
La Liga:ONE
Italian Serie A: ONE 2
Bundesliga: Sport 1
Eredivisie: Sport 1
Ekstraklasa: Sport 5
Nemzeti Bajnokság I: Eurosport
Brazilian League: Sport 1
Major League Soccer: Sport 1
AFC Champions League: Sport 1
AFC Cup: Sport 1
Copa Libertadores: Sport 1
Copa Sudamericana: Sport 1
Recopa Sudamericana: Sport 1
Argentine Primera División: Sport 1
Australian Football League: ONE
Austrian Bundesliga: Sport 5
Belgian First Division A: Sport 1
Turkish Super League: Sport 1
2022 FIFA World Cup qualification (CONMEBOL) : Sport 1
Basketball
NBA: Sport 5 (and sub channels)
Israeli basketball league: Sport 5
Euroleague: Israel 10, Sport +5 LIVE
Boxing
Dream Boxing: DAZN: October 2022 to October 2025, all fights
Kickboxing
King of Kings: DAZN: October 2022 to October 2025, all fights
Mixed Martial Arts
Bushido MMA: DAZN: October 2022 to October 2025, all fights
Multi-discipline events
Summer Olympics: Eurosport (2020)
Summer Olympics: Eurosport (2024)
Winter Olympics: Eurosport (2018)
Winter Olympics: Eurosport (2022)
Olympic Games: Eurosport, sport 5
Motor racing
Formula One: Sport +5 LIVE
Tennis
Australian Open: Eurosport
US Open: Eurosport
Wimbledon: Sport 5 (and sub channels)
ATP tournaments and WTA tournaments: Eurosport
See also
List of sports television broadcast contracts
Israel
Sports television in Israel
|
```ruby
require_relative '../../spec_helper'
require_relative 'fixtures/classes'
describe "Kernel#test" do
before :all do
@file = __dir__ + '/fixtures/classes.rb'
@dir = __dir__ + '/fixtures'
end
it "is a private method" do
Kernel.should have_private_instance_method(:test)
end
it "returns true when passed ?f if the argument is a regular file" do
Kernel.test(?f, @file).should == true
end
it "returns true when passed ?e if the argument is a file" do
Kernel.test(?e, @file).should == true
end
it "returns true when passed ?d if the argument is a directory" do
Kernel.test(?d, @dir).should == true
end
platform_is_not :windows do
it "returns true when passed ?l if the argument is a symlink" do
link = tmp("file_symlink.lnk")
File.symlink(@file, link)
begin
Kernel.test(?l, link).should be_true
ensure
rm_r link
end
end
end
it "returns true when passed ?r if the argument is readable by the effective uid" do
Kernel.test(?r, @file).should be_true
end
it "returns true when passed ?R if the argument is readable by the real uid" do
Kernel.test(?R, @file).should be_true
end
context "writable test" do
before do
@tmp_file = tmp("file.kernel.test")
touch(@tmp_file)
end
after do
rm_r @tmp_file
end
it "returns true when passed ?w if the argument is readable by the effective uid" do
Kernel.test(?w, @tmp_file).should be_true
end
it "returns true when passed ?W if the argument is readable by the real uid" do
Kernel.test(?W, @tmp_file).should be_true
end
end
context "time commands" do
before :each do
@tmp_file = File.new(tmp("file.kernel.test"), "w")
end
after :each do
@tmp_file.close
rm_r @tmp_file
end
it "returns the last access time for the provided file when passed ?A" do
Kernel.test(?A, @tmp_file).should == @tmp_file.atime
end
it "returns the time at which the file was created when passed ?C" do
Kernel.test(?C, @tmp_file).should == @tmp_file.ctime
end
it "returns the time at which the file was modified when passed ?M" do
Kernel.test(?M, @tmp_file).should == @tmp_file.mtime
end
end
it "calls #to_path on second argument when passed ?f and a filename" do
p = mock('path')
p.should_receive(:to_path).and_return @file
Kernel.test(?f, p)
end
it "calls #to_path on second argument when passed ?e and a filename" do
p = mock('path')
p.should_receive(:to_path).and_return @file
Kernel.test(?e, p)
end
it "calls #to_path on second argument when passed ?d and a directory" do
p = mock('path')
p.should_receive(:to_path).and_return @dir
Kernel.test(?d, p)
end
end
describe "Kernel.test" do
it "needs to be reviewed for spec completeness"
end
```
|
```c++
///|/
///|/ PrusaSlicer is released under the terms of the AGPLv3 or higher
///|/
#ifndef slic3r_PrintHostSendDialog_hpp_
#define slic3r_PrintHostSendDialog_hpp_
#include <set>
#include <string>
#include <boost/filesystem/path.hpp>
#include <wx/string.h>
#include <wx/event.h>
#include <wx/dialog.h>
#include "GUI_Utils.hpp"
#include "MsgDialog.hpp"
#include "../Utils/PrintHost.hpp"
class wxButton;
class wxTextCtrl;
class wxChoice;
class wxComboBox;
class wxDataViewListCtrl;
namespace Slic3r {
namespace GUI {
class PrintHostSendDialog : public GUI::MsgDialog
{
public:
PrintHostSendDialog(const boost::filesystem::path &path, PrintHostPostUploadActions post_actions, const wxArrayString& groups, const wxArrayString& storage_paths, const wxArrayString& storage_names);
boost::filesystem::path filename() const;
PrintHostPostUploadAction post_action() const;
std::string group() const;
std::string storage() const;
virtual void EndModal(int ret) override;
private:
wxTextCtrl *txt_filename;
wxComboBox *combo_groups;
wxComboBox* combo_storage;
PrintHostPostUploadAction post_upload_action;
wxString m_valid_suffix;
wxString m_preselected_storage;
wxArrayString m_paths;
};
class PrintHostQueueDialog : public DPIDialog
{
public:
class Event : public wxEvent
{
public:
size_t job_id;
int progress = 0; // in percent
wxString tag;
wxString status;
Event(wxEventType eventType, int winid, size_t job_id);
Event(wxEventType eventType, int winid, size_t job_id, int progress);
Event(wxEventType eventType, int winid, size_t job_id, wxString error);
Event(wxEventType eventType, int winid, size_t job_id, wxString tag, wxString status);
virtual wxEvent *Clone() const;
};
PrintHostQueueDialog(wxWindow *parent);
void append_job(const PrintHostJob &job);
void get_active_jobs(std::vector<std::pair<std::string, std::string>>& ret);
virtual bool Show(bool show = true) override
{
if(!show)
save_user_data(UDT_SIZE | UDT_POSITION | UDT_COLS);
return DPIDialog::Show(show);
}
protected:
void on_dpi_changed(const wxRect &suggested_rect) override;
void on_sys_color_changed() override;
private:
enum Column {
COL_ID,
COL_PROGRESS,
COL_STATUS,
COL_HOST,
COL_SIZE,
COL_FILENAME,
COL_ERRORMSG
};
enum JobState {
ST_NEW,
ST_PROGRESS,
ST_ERROR,
ST_CANCELLING,
ST_CANCELLED,
ST_COMPLETED,
};
enum { HEIGHT = 60, WIDTH = 30, SPACING = 5 };
enum UserDataType{
UDT_SIZE = 1,
UDT_POSITION = 2,
UDT_COLS = 4
};
wxButton *btn_cancel;
wxButton *btn_error;
wxDataViewListCtrl *job_list;
// Note: EventGuard prevents delivery of progress evts to a freed PrintHostQueueDialog
EventGuard on_progress_evt;
EventGuard on_error_evt;
EventGuard on_cancel_evt;
EventGuard on_info_evt;
JobState get_state(int idx);
void set_state(int idx, JobState);
void on_list_select();
void on_progress(Event&);
void on_error(Event&);
void on_cancel(Event&);
void on_info(Event&);
// This vector keep adress and filename of uploads. It is used when checking for running uploads during exit.
std::vector<std::pair<std::string, std::string>> upload_names;
void save_user_data(int);
bool load_user_data(int, std::vector<int>&);
};
wxDECLARE_EVENT(EVT_PRINTHOST_PROGRESS, PrintHostQueueDialog::Event);
wxDECLARE_EVENT(EVT_PRINTHOST_ERROR, PrintHostQueueDialog::Event);
wxDECLARE_EVENT(EVT_PRINTHOST_CANCEL, PrintHostQueueDialog::Event);
wxDECLARE_EVENT(EVT_PRINTHOST_INFO, PrintHostQueueDialog::Event);
}}
#endif
```
|
```javascript
Modify a website's URL
Battery API
Vibration API
`Window.localStorage`
Fetch API
```
|
```xml
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="path_to_url" xmlns:xsi="path_to_url"
xsi:schemaLocation="path_to_url path_to_url">
<modelVersion>4.0.0</modelVersion>
<groupId>com.didispace</groupId>
<artifactId>demo</artifactId>
<version>1.0.0</version>
<packaging>jar</packaging>
<name>demo</name>
<description>Spring Boot Web project</description>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>1.3.2.RELEASE</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<java.version>1.8</java.version>
</properties>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-freemarker</artifactId>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<fork>true</fork>
</configuration>
</plugin>
</plugins>
</build>
</project>
```
|
Valentin Popov – Votan is a Bulgarian writer. Popov has five books released in various genres – horror, fantasy, sci-fi, thriller, mystery.
Biography
Valentin Popov was born in 1979 in Pleven. He graduated master's degree at Sofia University. Nowadays he is working in the sphere of tourism. His first publications in periodic literature editions were in 2013 in "Dracus" magazine. In 2014 Popov released his first book "The night against November" (Нощта срещу ноември) and published several short stories in "Dracus", "Trubadurs' gathering" and in the anthology "Inspired by the King" (Вдъхновени от краля). In 2015 his second book "Ashes of darkness" (Пепел от мрак) was published. Popov continued to release prose in periodic editions like "Pencil" journal, "Terra fantastica" and forum "North". Also he participated at anthologies like "Swords in time" (Мечове във времето), "Childhood" (Детство) and "On the wings of the raven" (По крилете на гарвана).
In 2016 Popov released his third book "Brod through the worlds" (Брод през световете) and in 2017 was published his fourth short story collection – "Angels have no wings" (Ангелите нямат криле). In the same year he was published in anthology "Howl" (Вой). In 2018 Popov was a part of the anthology of literature club "Beyond the cover" – "Beyond the cover – year first", and was published in "New asocial poetry" as a poet and novelist.
Valentin Popov is a member of Bulgarian horror writers' club "Lazarus".
Bibliography
Books
"The night against November" (Нощта срещу ноември) – 2014
"Ashes of darkness" (Пепел от мрак) – 2015
"Brod through the worlds" (Брод през световете) – 2016
"Angels have no wings" (Ангелите нямат криле) – 2017
"26 short-stories" (26 истории) – 2019
Compilations
"Inspired by the King" (Вдъхновени от краля) – 2014
"451 degrees of Bradbery" (451 градуса по Бредбъри) – 2015
"Screams" (Писъци) – 2016
"Childhood" (Детство) – 2016
"Swords in time" (Мечове във времето) – 2016
"On the wings of the raven" (По крилете на гарвана) – 2016
"The sea in poetry and prose" (Морето в стихове и проза) – 2017
"Albena" – 2017
"Howl" (Вой) – 2017
"Beyond the cover. Year first" (''Отвъд кориците. Година първа) – 2018
References
External links
Profile at Horror BG
Interview with Valentin Popov
1979 births
Living people
21st-century Bulgarian writers
|
The Treaty of Turkmenchay (; ) was an agreement between Qajar Iran and the Russian Empire, which concluded the Russo-Persian War (1826–1828). It was second of the series of treaties (the first was the 1813 Treaty of Gulistan and the last, the 1881 Treaty of Akhal) signed between Qajar Iran and Imperial Russia that forced Persia to cede or recognize Russian influence over the territories that formerly were part of Iran.
The treaty was signed on 21 February 1828 (5 Sha'ban 1243) in Torkamanchay (a village between Tabriz and Tehran). It made Persia cede the control of several areas in the South Caucasus to Russia: the Erivan Khanate, the Nakhchivan Khanate and the remainder of the Talysh Khanate. The boundary between Russia and Persia was set at the Aras River. These territories are now Armenia, the south of the Republic of Azerbaijan, Nakhchivan and Iğdır Province (now part of Turkey).
The treaty was signed for Persia by the Crown Prince Abbas Mirza and Allah-Yar Khan Asaf al-Daula, chancellor to Shah Fath Ali (of the Qajar dynasty), and for Russia by General Ivan Paskievich. Similarly to the 1813 Treaty of Gulistan, the treaty was imposed on Persia following a Russian military victory. Paskievich threatened to occupy Tehran in five days unless the treaty was signed.
Following this treaty, as well as the Treaty of Gulistan, Russia had finished conquering all the Caucasus territories from Qajar Iran; what is now Dagestan, eastern Georgia, Azerbaijan, and Armenia, all of which had formed part of its very concept for centuries. The areas north of the Aras River, such as the territory of the contemporary nations of Georgia, Azerbaijan, Armenia and the North Caucasian Republic of Dagestan, were Iranian until they were occupied by Russia during the 19th century.
Following the two treaties, the formerly Iranian territories came under Russian, and later Soviet control for approximately 180 years, where Dagestan remains a constituent republic within the Russian Federation to this day. Comprising most of the territory ceded in the Gulistan and Turkmenchay treaties, three separate nations would gain independence following the dissolution of the Soviet Union in 1991: namely Georgia, Azerbaijan and Armenia.
Terms
The terms of the treaty are as follow
Article 4: Persia ceded the Erivan Khanate (most of present-day central Armenia), the Nakhchivan Khanate (most of the present-day Nakhchivan Autonomous Republic of Azerbaijan), the Talysh Khanate (southeastern Azerbaijan), and the Ordubad and Mughan regions (now also part of Azerbaijan) and also reiterated the cessions made to Russia in the Treaty of Gulistan
Article 6: Persia promised to pay Russia 10 korur in gold or 20 million silver rubles (in 1828 currency).
Article 7: Russia promised to support Abbas Mirza as the heir to the throne of Persia on the death of Shah Fath Ali (the clause became moot when Abbas Mirza predeceased Shah Fath Ali).
Article 8: Persian ships lost full rights to navigate all of the Caspian Sea and its coasts, which were given to Russia.
Persia recognised capitulation rights for Russian subjects in Persia.
Article 10: Russia gained the right to send consular envoys anywhere in Persia.
Article 10: both parties accept commercial treaties with detailed conditions.
Article 13: prisoners-of-war were exchanged.
Persia officially apologised for breaking its promises made in the Treaty of Gulistan.
Article 15: Shah Fath Ali Shah promised not to charge or persecute any inhabitant or official in the region of Iranian Azerbaijan for any deed carried out during the war or during the temporary control of the region by Russian troops. In addition, all inhabitants of the aforementioned district were given the right to move from Persian districts to Russian districts within one year.
Article 15 provided for the resettlement of Armenians from Iranian Azerbaijan to the Caucasus, which also included an outright liberation of Armenians taken captive by Persia since 1804 or 1795. This resettlement replaced the 20,000 Armenians who moved to Georgia between 1795 and 1827.
Aftermath
According to Prof. Alexander Mikaberidze:
According to the Cambridge History of Iran:
In combination with the 1813 Treaty of Gulistan, some authors have claimed that the two resulting Iranian territorial cessions separated the Azerbaijani people and the Talysh people from their brethren in Iran. Following the two treaties, the formerly Iranian territories came under the Russian, and later the Soviet control for approximately 180 years, and Dagestan remains a constituent republic within the Russian Federation to this day. Comprising most of the territory ceded in Gullistan and Turkmenchay treaties, three separate nations would gain independence following the dissolution of the Soviet Union in 1991: Georgia, Azerbaijan and Armenia.
Repatriation of Armenians
By virtue of the 15th term of the Treaty of Turkmenchay, Armenians from the Azerbaijan Province were given the freedom to emigrate to Russian-controlled territory north of the Aras river. In the period 1828–1831 following Russia's annexation, 45,000 Armenians from Iran and 100,000 from the Ottoman Empire immigrated to Russian Armenia. Beginning in October 1829, 7,668 families immigrated to Russian Armenia; ultimately, 14,047 families consisting of 90,000–100,000 people had immigrated.
Massacre at Russian embassy
In the aftermath of the war and the signing of the treaty, anti-Russian sentiment in Persia was rampant. On 11 February 1829, an angry mob stormed the Russian embassy in Tehran and killed almost everyone inside. Among those killed in the massacre was the newly-appointed ambassador to Persia, Aleksander Griboyedov, a celebrated Russian playwright. Griboyedov had played an active role in negotiating the terms of the treaty. As a sign of his apology for the murder of the Russian ambasador, the Shah of Iran gave to the Russian Czar his most valuable crown jewel - Shah Diamond.
See also
Armenia–Iran border
Azerbaijan–Iran border
Anglo-Russian Convention
Iran–Russia relations
List of treaties
Treaty of Akhal
Treaty of Gulistan
Notes
Sources
H. Pir Nia, Abbas Eghbal Ashtiani, B. Agheli. History of Persia. Tehran, 2002. p. 673–686.
External links
Text of the Treaty of Turkmenchay
Turkmenchay
Turkmenchay
1820s in Iran
19th century in Armenia
19th century in Azerbaijan
History of Iğdır Province
Turkmenchay
19th century in the Russian Empire
Turkmenchay
Turkmenchay
Iran–Russia relations
Russo-Persian Wars
1828 in Europe
February 1828 events
Iran–Russia treaties
|
```xml
import React from 'react';
import {
Slide,
Button,
Box,
Heading,
VStack,
HStack,
Text,
Spacer,
WarningIcon,
Input,
Center,
useSafeArea,
} from 'native-base';
export const Example = () => {
const [isOpen, setIsOpen] = React.useState(false);
const safeAreaProps = useSafeArea({
safeAreaTop: true,
});
return (
<Center>
<Box w={['250', '300']}>
<Box w="100%" alignItems="flex-start" justifyContent="center">
<VStack space={3} w="100%">
<HStack alignItems="flex-end">
<Heading>Order</Heading>
<Spacer />
<WarningIcon color="orange.600" size="xs" mb="1.5" />
</HStack>
<HStack alignItems="center" justifyContent="space-between">
<Text fontWeight="medium">Sub Total</Text>
<Text color="blueGray.400">$298.77</Text>
</HStack>
<HStack alignItems="center" justifyContent="space-between">
<Text fontWeight="medium">Tax</Text>
<Text color="blueGray.400">$38.84</Text>
</HStack>
<HStack alignItems="center" justifyContent="space-between">
<Text fontWeight="medium">Total Amount</Text>
<Text color="green.500">$337.61</Text>
</HStack>
<VStack space={2} mt="2">
<Text bold>Promo Code</Text>
<HStack space={3}>
<Input flex="1" />
<Button variant="outline">Apply</Button>
</HStack>
</VStack>
<Button my="2" onPress={() => setIsOpen(!isOpen)}>
Place Order
</Button>
</VStack>
</Box>
<Slide in={isOpen} placement="top">
<Box
p="2"
_text={{
color: 'orange.600',
}}
bg="orange.200"
{...safeAreaProps}
>
Due to government restrictions around COVID- 19, you may experience
a delay in your delivery.
</Box>
</Slide>
</Box>
</Center>
);
};
```
|
The Blaauwkrantz Nature Reserve is a small reserve near Makhanda (Grahamstown) designated for the purpose of conserving the endangered Eastern Province rocky. Nearby is the Waters Meeting Nature Reserve and Buffalo Kloof Protected Environment. The Blaauwkrantz Pass (R67) runs along the length of the reserve, while the Bloukrans River bisects it horizontally.
History
In 1985, 198.31 ha of land was proclaimed for the conservation of the endangered Eastern Province rocky.
Biodiversity
The reserve, consisting of veld vegetation, has over 200 plant species including aloe and tree euphorbia. The Blaauwkrantz Pool in the reserve is one of the last refuges of the endemic Eastern Province rocky (rocky kurper). Birds found on the reserve are fish eagles and kingfisher. Otters can also be found in the reserve.
Threats
The Blaauwkrantz Pool, containing the rocky kurper, faces a number of threats from sewage treatment to agricultural practices like the leaching of fertilisers into the water upstream which lead to the excessive growth of red water fern that cover the water, preventing plankton (which require sunlight in order to survive) from growing which is a source of food for young rocky kurpers.
See also
List of protected areas of South Africa
References
Nature reserves in South Africa
Eastern Cape Provincial Parks
|
```c
#include <ir/ir.h>
#include <target/util.h>
#include <stdio.h>
#include <stdlib.h>
static int max(int a, int b) { return a < b ? b : a; }
static const char SCR3_SVG_MD5[] = "fcb8546c50e11d422b78fd55e34d7e7e";
static const char *SCR3_BASE64_TABLE[] = {
"A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M",
"N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z",
"a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m",
"n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z",
"0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "+", "/"};
typedef int scr3_reg_t;
#define SCR3_REG_MAX (256)
const char *scr3_register_name[SCR3_REG_MAX];
int scr3_reg_count = 0;
static scr3_reg_t scr3_add_new_register(const char *reg_name) {
if (scr3_reg_count == SCR3_REG_MAX) {
error("too many register");
}
scr3_reg_t scr3_new_reg = scr3_reg_count++;
scr3_register_name[scr3_new_reg] = reg_name;
return scr3_new_reg;
}
static scr3_reg_t scr3_reg_a, scr3_reg_b, scr3_reg_c, scr3_reg_d, scr3_reg_sp,
scr3_reg_bp, scr3_reg_pc, scr3_reg_impl_ret, scr3_reg_impl_page,
scr3_reg_impl_wait;
enum scr3_block_type {
SCR3_BLK_WHEN_FLAG_CLICKED,
SCR3_BLK_SET_VAR,
SCR3_BLK_CHANGE_VAR,
SCR3_BLK_ADD,
SCR3_BLK_SUB,
SCR3_BLK_MUL,
SCR3_BLK_DIV,
SCR3_BLK_MOD,
SCR3_BLK_DEFINE,
SCR3_BLK_PROTO,
SCR3_BLK_CALL,
SCR3_BLK_ARG_REPORTER,
SCR3_BLK_IF,
SCR3_BLK_IF_ELSE,
SCR3_BLK_FOREVER,
SCR3_BLK_REPEAT,
SCR3_BLK_REPEAT_UNTIL,
SCR3_BLK_WAIT_UNTIL,
SCR3_BLK_EQUAL,
SCR3_BLK_NOT,
SCR3_BLK_LOR,
SCR3_BLK_LAND,
SCR3_BLK_GREATER_THAN,
SCR3_BLK_LESS_THAN,
SCR3_BLK_JOIN,
SCR3_BLK_LETTER_OF,
SCR3_BLK_LENGTH,
SCR3_BLK_MATHOP,
SCR3_BLK_SWITCH_BACKDROP,
SCR3_BLK_BACKDROP_NUM_NAME,
SCR3_BLK_ADD_TO_LIST,
SCR3_BLK_DELETE_ALL_LIST,
SCR3_BLK_DELETE_ITEM,
SCR3_BLK_REPLACE_ITEM,
SCR3_BLK_LIST_LENGTH,
SCR3_BLK_LIST_ITEM,
SCR3_BLK_ASK_AND_WAIT,
SCR3_BLK_ANSWER_REPORTER,
SCR3_BLK_STOPALL,
SCR3_BLK_DUMMY,
};
enum scr3_list {
SCR3_LIST_STDOUT,
SCR3_LIST_STDIN,
SCR3_LIST_MEMORY,
SCR3_LIST_PAGE,
SCR3_NUM_OF_LIST
};
const char *SCR3_LIST_NAME[] = {"stdout", "stdin", "memory", "page"};
enum scr3_src_type {
SCR3_SRC_IMMEDIATE,
SCR3_SRC_REGISTER,
SCR3_SRC_BLOCK,
SCR3_SRC_EMPTY,
};
struct scr3_block;
struct scr3_src {
enum scr3_src_type type;
union {
const char *value;
scr3_reg_t reg;
struct scr3_block *block;
};
};
struct scr3_block {
int id;
const char *opcode_str;
struct scr3_block *prev;
struct scr3_block *next;
enum scr3_block_type type;
bool is_shadow;
bool is_toplevel;
union {
struct scr3_src src;
struct scr3_block *blk;
struct {
struct scr3_src lhs;
struct scr3_src rhs;
} bin_op;
struct {
struct scr3_block *lhs;
struct scr3_block *rhs;
} bin_cond;
struct {
struct scr3_block *cond;
struct scr3_block *substack_then;
struct scr3_block *substack_else;
} if_else;
struct {
const char *name;
struct scr3_block *reporter;
} arg;
struct {
struct scr3_src times;
struct scr3_block *cond;
struct scr3_block *substack;
} repeat;
} input;
union {
scr3_reg_t reg;
enum scr3_list list;
const char *mathop;
const char *reporter_name;
} field;
struct {
const char *proccode;
} mutation;
struct scr3_block *list_next;
};
static struct scr3_block *scr3_last_block_p = NULL;
static const struct scr3_src EMPTY_SRC =
(struct scr3_src){.type = SCR3_SRC_EMPTY};
// =============================================================================
// Prototypes
// =============================================================================
//your_sha256_hash--------------
// Helper functions
//your_sha256_hash--------------
// set type-specific data
// return 0 for success
static int scr3_set_block_info(enum scr3_block_type type,
const char **opcode_str_p, bool *is_toplevel_p,
bool *is_shadow_p);
static struct scr3_src scr3_src_imm(const char *value);
static struct scr3_src scr3_src_reg(scr3_reg_t reg);
static struct scr3_src scr3_src_block(struct scr3_block *block);
static void scr3_src_set_parent(struct scr3_src src, struct scr3_block *parent);
static struct scr3_block *scr3_create_block(enum scr3_block_type type,
struct scr3_block *prev,
struct scr3_block *next);
// your_sha256_hash-------------
// Builder functions
// your_sha256_hash-------------
static struct scr3_src scr3_build_add(struct scr3_src lhs, struct scr3_src rhs);
static struct scr3_src scr3_build_sub(struct scr3_src lhs, struct scr3_src rhs);
static struct scr3_src scr3_build_mul(struct scr3_src lhs, struct scr3_src rhs);
static struct scr3_src scr3_build_div(struct scr3_src lhs, struct scr3_src rhs);
static struct scr3_src scr3_build_mod(struct scr3_src lhs, struct scr3_src rhs);
static struct scr3_src scr3_build_join(struct scr3_src s1, struct scr3_src s2);
static struct scr3_src scr3_build_letter_of(struct scr3_src idx,
struct scr3_src str);
static struct scr3_src scr3_build_length(struct scr3_src str);
static struct scr3_block *scr3_build_equal(struct scr3_src lhs,
struct scr3_src rhs);
static struct scr3_block *scr3_build_gt(struct scr3_src lhs,
struct scr3_src rhs);
static struct scr3_block *scr3_build_lt(struct scr3_src lhs,
struct scr3_src rhs);
static struct scr3_block *scr3_build_not(struct scr3_block *cond);
static struct scr3_block *scr3_build_or(struct scr3_block *lhs,
struct scr3_block *rhs);
static struct scr3_block *scr3_build_when_flag_clicked(void);
static struct scr3_block *scr3_build_set_var(struct scr3_block *parent,
scr3_reg_t reg,
struct scr3_src src);
static struct scr3_block *scr3_build_change_var(struct scr3_block *parent,
scr3_reg_t reg,
struct scr3_src src);
static struct scr3_src scr3_build_arg_reporter(const char *arg_name);
// If this procedure takes an argument, proc_name must contain "%s" like
// "sample_proc %s"
static struct scr3_block *scr3_build_define(const char *proc_name,
const char *argument_name);
static struct scr3_block *scr3_build_call(struct scr3_block *parent,
const char *proc_name,
struct scr3_src argument);
static struct scr3_block *scr3_build_if(struct scr3_block *parent,
struct scr3_block *cond,
struct scr3_block *substack_then);
static struct scr3_block *scr3_build_if_else(struct scr3_block *parent,
struct scr3_block *cond,
struct scr3_block *substack_then,
struct scr3_block *substack_else);
static struct scr3_block *scr3_build_forever(struct scr3_block *parent,
struct scr3_block *substack);
static struct scr3_block *scr3_build_repeat(struct scr3_block *parent,
struct scr3_src times,
struct scr3_block *substack);
static struct scr3_block *scr3_build_repeat_until(struct scr3_block *parent,
struct scr3_block *cond,
struct scr3_block *substack);
static struct scr3_block *scr3_build_wait_until(struct scr3_block *parent,
struct scr3_block *cond);
static struct scr3_src scr3_build_mathop(struct scr3_src num,
const char *operator_name);
static struct scr3_block *scr3_build_switch_backdrop(struct scr3_block *parent,
struct scr3_src backdrop);
static struct scr3_src scr3_build_backdrop_reporter(bool to_get_name);
static struct scr3_block *scr3_build_add_to_list(struct scr3_block *parent,
struct scr3_src elem,
enum scr3_list list);
static struct scr3_block *scr3_build_delete_all_of_list(
struct scr3_block *parent, enum scr3_list list);
static struct scr3_block *scr3_build_delete_item(struct scr3_block *parent,
struct scr3_src src,
enum scr3_list list);
static struct scr3_block *scr3_build_replace_item(struct scr3_block *parent,
struct scr3_src index,
struct scr3_src item,
enum scr3_list list);
static struct scr3_src scr3_build_length_of_list(enum scr3_list list);
static struct scr3_src scr3_build_item_of_list(struct scr3_src index,
enum scr3_list list);
static struct scr3_block *scr3_build_ask_and_wait(struct scr3_block *parent,
struct scr3_src question);
static struct scr3_src scr3_build_answer_reporter(void);
static struct scr3_block *scr3_build_stop_all(struct scr3_block *parent);
// your_sha256_hash-------------
// Emitter functions
// your_sha256_hash-------------
static struct scr3_block *scr3_emit_input_src(const char *field_name,
struct scr3_src src);
static void scr3_emit_field_register(const char *field_name, scr3_reg_t reg);
static void scr3_emit_field_list(const char *field_name, enum scr3_list list);
static void scr3_emit_block(struct scr3_block *b);
static void scr3_emit_all(void);
// your_sha256_hash-------------
// Runtime implementation
// your_sha256_hash-------------
static void scr3_impl_ascii_encode(void);
static void scr3_impl_ascii_decode(void);
static void scr3_impl_base64_encode(void);
static void scr3_impl_base64_decode(void);
static void scr3_impl_writeback_page(void);
static void scr3_impl_expand_page(void);
static void scr3_impl_store(void);
static void scr3_impl_load(void);
static void scr3_impl_getchar(void);
static void scr3_impl_putchar(void);
static void scr3_impl_read_stdin(void);
static void scr3_impl_initialize(void);
// your_sha256_hash-------------
// Control flow
// your_sha256_hash-------------
static struct scr3_src src_convert(Value value);
static void scr3_emit_inst(Inst *inst, struct scr3_block **p);
static struct scr3_block *scr3_impl_switch_helper(scr3_reg_t reg, int lval,
int hval,
struct scr3_block *cases[],
int cases_size);
static struct scr3_block *scr3_impl_chunk(int low_pc, int high_pc,
struct scr3_block *each_pc[],
int max_pc);
static struct scr3_block *scr3_impl_chunk_switch(struct scr3_block *parent,
struct scr3_block *each_pc[],
int each_pc_size);
static void scr3_impl_main_loop(Inst *inst);
static void scr3_impl_init_memory(Data *data);
void target_scratch3(Module *module);
// =============================================================================
// Definitions
// =============================================================================
//your_sha256_hash--------------
// Helper functions
//your_sha256_hash--------------
// set type-specific data
// return 0 for success
static int scr3_set_block_info(enum scr3_block_type type,
const char **opcode_str_p, bool *is_toplevel_p,
bool *is_shadow_p) {
#define GEN_CASE(type_case, opcode, toplevel, shadow) \
case type_case: { \
*opcode_str_p = opcode; \
*is_toplevel_p = toplevel; \
*is_shadow_p = shadow; \
return 0; \
}
switch (type) {
GEN_CASE(SCR3_BLK_WHEN_FLAG_CLICKED, "event_whenflagclicked", true, false);
GEN_CASE(SCR3_BLK_SET_VAR, "data_setvariableto", false, false);
GEN_CASE(SCR3_BLK_CHANGE_VAR, "data_changevariableby", false, false);
GEN_CASE(SCR3_BLK_ADD, "operator_add", false, false);
GEN_CASE(SCR3_BLK_SUB, "operator_subtract", false, false);
GEN_CASE(SCR3_BLK_MUL, "operator_multiply", false, false);
GEN_CASE(SCR3_BLK_DIV, "operator_divide", false, false);
GEN_CASE(SCR3_BLK_MOD, "operator_mod", false, false);
GEN_CASE(SCR3_BLK_DEFINE, "procedures_definition", true, false);
GEN_CASE(SCR3_BLK_PROTO, "procedures_prototype", false, true);
GEN_CASE(SCR3_BLK_CALL, "procedures_call", false, false);
GEN_CASE(SCR3_BLK_ARG_REPORTER, "argument_reporter_string_number", false,
false);
GEN_CASE(SCR3_BLK_IF, "control_if", false, false);
GEN_CASE(SCR3_BLK_IF_ELSE, "control_if_else", false, false);
GEN_CASE(SCR3_BLK_FOREVER, "control_forever", false, false);
GEN_CASE(SCR3_BLK_REPEAT, "control_repeat", false, false);
GEN_CASE(SCR3_BLK_REPEAT_UNTIL, "control_repeat_until", false, false);
GEN_CASE(SCR3_BLK_WAIT_UNTIL, "control_wait_until", false, false);
GEN_CASE(SCR3_BLK_EQUAL, "operator_equals", false, false);
GEN_CASE(SCR3_BLK_NOT, "operator_not", false, false);
GEN_CASE(SCR3_BLK_LOR, "operator_or", false, false);
GEN_CASE(SCR3_BLK_LAND, "operator_and", false, false);
GEN_CASE(SCR3_BLK_GREATER_THAN, "operator_gt", false, false);
GEN_CASE(SCR3_BLK_LESS_THAN, "operator_lt", false, false);
GEN_CASE(SCR3_BLK_JOIN, "operator_join", false, false);
GEN_CASE(SCR3_BLK_LENGTH, "operator_length", false, false);
GEN_CASE(SCR3_BLK_LETTER_OF, "operator_letter_of", false, false);
GEN_CASE(SCR3_BLK_MATHOP, "operator_mathop", false, false);
GEN_CASE(SCR3_BLK_SWITCH_BACKDROP, "looks_switchbackdropto", false, false);
GEN_CASE(SCR3_BLK_BACKDROP_NUM_NAME, "looks_backdropnumbername", false,
false);
GEN_CASE(SCR3_BLK_ADD_TO_LIST, "data_addtolist", false, false);
GEN_CASE(SCR3_BLK_DELETE_ALL_LIST, "data_deletealloflist", false, false);
GEN_CASE(SCR3_BLK_DELETE_ITEM, "data_deleteoflist", false, false);
GEN_CASE(SCR3_BLK_REPLACE_ITEM, "data_replaceitemoflist", false, false);
GEN_CASE(SCR3_BLK_LIST_LENGTH, "data_lengthoflist", false, false);
GEN_CASE(SCR3_BLK_LIST_ITEM, "data_itemoflist", false, false);
GEN_CASE(SCR3_BLK_ASK_AND_WAIT, "sensing_askandwait", false, false);
GEN_CASE(SCR3_BLK_ANSWER_REPORTER, "sensing_answer", false, false);
GEN_CASE(SCR3_BLK_STOPALL, "control_stop", false, false);
case SCR3_BLK_DUMMY:
return 0;
}
#undef GEN_CASE
return 1;
}
static struct scr3_src scr3_src_imm(const char *value) {
return (struct scr3_src){.type = SCR3_SRC_IMMEDIATE, .value = value};
}
static struct scr3_src scr3_src_reg(scr3_reg_t reg) {
return (struct scr3_src){.type = SCR3_SRC_REGISTER, .reg = reg};
}
static struct scr3_src scr3_src_block(struct scr3_block *block) {
return (struct scr3_src){.type = SCR3_SRC_BLOCK, .block = block};
}
static void scr3_src_set_parent(struct scr3_src src,
struct scr3_block *parent) {
if (src.type == SCR3_SRC_BLOCK) {
src.block->prev = parent;
}
}
static struct scr3_block *scr3_create_block(enum scr3_block_type type,
struct scr3_block *prev,
struct scr3_block *next) {
struct scr3_block *b;
if (prev && prev->type == SCR3_BLK_DUMMY) {
b = prev;
} else {
b = malloc(sizeof(struct scr3_block));
b->list_next = scr3_last_block_p;
scr3_last_block_p = b;
}
b->type = type;
b->prev = prev;
if (prev) prev->next = b;
b->next = next;
if (next) next->prev = b;
static int next_block_id = 0;
b->id = next_block_id++;
if (scr3_set_block_info(type, &b->opcode_str, &b->is_toplevel,
&b->is_shadow)) {
error("wrong block type");
}
return b;
}
// your_sha256_hash-------------
// Builder functions
// your_sha256_hash-------------
#define GEN_BUILD_BINOP(func_name, block_type) \
static struct scr3_src func_name(struct scr3_src lhs, struct scr3_src rhs) { \
struct scr3_block *b = scr3_create_block(block_type, NULL, NULL); \
scr3_src_set_parent(lhs, b); \
scr3_src_set_parent(rhs, b); \
b->input.bin_op.lhs = lhs; \
b->input.bin_op.rhs = rhs; \
return (struct scr3_src){.type = SCR3_SRC_BLOCK, .block = b}; \
}
GEN_BUILD_BINOP(scr3_build_add, SCR3_BLK_ADD)
GEN_BUILD_BINOP(scr3_build_sub, SCR3_BLK_SUB)
GEN_BUILD_BINOP(scr3_build_mul, SCR3_BLK_MUL)
GEN_BUILD_BINOP(scr3_build_div, SCR3_BLK_DIV)
GEN_BUILD_BINOP(scr3_build_mod, SCR3_BLK_MOD)
GEN_BUILD_BINOP(scr3_build_join, SCR3_BLK_JOIN)
GEN_BUILD_BINOP(scr3_build_letter_of, SCR3_BLK_LETTER_OF)
#undef GEN_BUILD_BINOP
#define GEN_BUILD_BOOL_BINOP(func_name, block_type) \
static struct scr3_block *func_name(struct scr3_src lhs, \
struct scr3_src rhs) { \
struct scr3_block *b = scr3_create_block(block_type, NULL, NULL); \
scr3_src_set_parent(lhs, b); \
scr3_src_set_parent(rhs, b); \
b->input.bin_op.lhs = lhs; \
b->input.bin_op.rhs = rhs; \
return b; \
}
GEN_BUILD_BOOL_BINOP(scr3_build_equal, SCR3_BLK_EQUAL)
GEN_BUILD_BOOL_BINOP(scr3_build_gt, SCR3_BLK_GREATER_THAN)
GEN_BUILD_BOOL_BINOP(scr3_build_lt, SCR3_BLK_LESS_THAN)
#undef GEN_BUILD_BOOL_BINOP
static struct scr3_src scr3_build_length(struct scr3_src src) {
struct scr3_block *b = scr3_create_block(SCR3_BLK_LENGTH, NULL, NULL);
scr3_src_set_parent(src, b);
b->input.src = src;
return scr3_src_block(b);
}
static struct scr3_block *scr3_build_not(struct scr3_block *cond) {
struct scr3_block *b = scr3_create_block(SCR3_BLK_NOT, NULL, NULL);
cond->prev = b;
b->input.blk = cond;
return b;
}
static struct scr3_block *scr3_build_or(struct scr3_block *lhs,
struct scr3_block *rhs) {
struct scr3_block *b = scr3_create_block(SCR3_BLK_LOR, NULL, NULL);
lhs->prev = b;
rhs->prev = b;
b->input.bin_cond.lhs = lhs;
b->input.bin_cond.rhs = rhs;
return b;
}
static struct scr3_block *scr3_build_when_flag_clicked(void) {
return scr3_create_block(SCR3_BLK_WHEN_FLAG_CLICKED, NULL, NULL);
}
static struct scr3_block *scr3_build_set_var(struct scr3_block *parent,
scr3_reg_t reg,
struct scr3_src src) {
struct scr3_block *b = scr3_create_block(SCR3_BLK_SET_VAR, parent, NULL);
scr3_src_set_parent(src, b);
b->input.src = src;
b->field.reg = reg;
return b;
}
static struct scr3_block *scr3_build_change_var(struct scr3_block *parent,
scr3_reg_t reg,
struct scr3_src src) {
struct scr3_block *b = scr3_create_block(SCR3_BLK_CHANGE_VAR, parent, NULL);
scr3_src_set_parent(src, b);
b->input.src = src;
b->field.reg = reg;
return b;
}
static struct scr3_src scr3_build_arg_reporter(const char *arg_name) {
struct scr3_block *b = scr3_create_block(SCR3_BLK_ARG_REPORTER, NULL, NULL);
b->field.reporter_name = arg_name;
return scr3_src_block(b);
}
// If this procedure takes an argument, proc_name must contain "%s" like
// "sample_proc %s"
static struct scr3_block *scr3_build_define(const char *proc_name,
const char *argument_name) {
struct scr3_block *def = scr3_create_block(SCR3_BLK_DEFINE, NULL, NULL);
struct scr3_block *proto = scr3_create_block(SCR3_BLK_PROTO, NULL, NULL);
proto->prev = def;
proto->mutation.proccode = proc_name;
def->input.blk = proto;
if (argument_name) {
struct scr3_src tmp = scr3_build_arg_reporter(argument_name);
struct scr3_block *arg_reporter = tmp.block;
arg_reporter->prev = proto;
arg_reporter->is_shadow = true;
proto->input.arg.name = argument_name;
proto->input.arg.reporter = arg_reporter;
} else {
proto->input.arg.name = NULL;
proto->input.arg.reporter = NULL;
}
return def;
}
static struct scr3_block *scr3_build_call(struct scr3_block *parent,
const char *proc_name,
struct scr3_src argument) {
struct scr3_block *b = scr3_create_block(SCR3_BLK_CALL, parent, NULL);
scr3_src_set_parent(argument, b);
b->mutation.proccode = proc_name;
b->input.src = argument;
return b;
}
static struct scr3_block *scr3_build_if(struct scr3_block *parent,
struct scr3_block *cond,
struct scr3_block *substack_then) {
struct scr3_block *b = scr3_create_block(SCR3_BLK_IF, parent, NULL);
cond->prev = b;
if (substack_then) substack_then->prev = b;
b->input.if_else.cond = cond;
b->input.if_else.substack_then = substack_then;
return b;
}
static struct scr3_block *scr3_build_if_else(struct scr3_block *parent,
struct scr3_block *cond,
struct scr3_block *substack_then,
struct scr3_block *substack_else) {
struct scr3_block *b = scr3_create_block(SCR3_BLK_IF_ELSE, parent, NULL);
cond->prev = b;
if (substack_then) substack_then->prev = b;
if (substack_else) substack_else->prev = b;
b->input.if_else.cond = cond;
b->input.if_else.substack_then = substack_then;
b->input.if_else.substack_else = substack_else;
return b;
}
static struct scr3_block *scr3_build_forever(struct scr3_block *parent,
struct scr3_block *substack) {
struct scr3_block *b = scr3_create_block(SCR3_BLK_FOREVER, parent, NULL);
b->input.repeat.substack = substack;
substack->prev = b;
return b;
}
static struct scr3_block *scr3_build_repeat(struct scr3_block *parent,
struct scr3_src times,
struct scr3_block *substack) {
struct scr3_block *b = scr3_create_block(SCR3_BLK_REPEAT, parent, NULL);
scr3_src_set_parent(times, b);
b->input.repeat.times = times;
b->input.repeat.substack = substack;
substack->prev = b;
return b;
}
static struct scr3_block *scr3_build_repeat_until(struct scr3_block *parent,
struct scr3_block *cond,
struct scr3_block *substack) {
struct scr3_block *b = scr3_create_block(SCR3_BLK_REPEAT_UNTIL, parent, NULL);
b->input.repeat.cond = cond;
cond->prev = b;
b->input.repeat.substack = substack;
substack->prev = b;
return b;
}
static struct scr3_block *scr3_build_wait_until(struct scr3_block *parent,
struct scr3_block *cond) {
struct scr3_block *b = scr3_create_block(SCR3_BLK_WAIT_UNTIL, parent, NULL);
b->input.blk = cond;
return b;
}
static struct scr3_src scr3_build_mathop(struct scr3_src num,
const char *operator_name) {
struct scr3_block *b = scr3_create_block(SCR3_BLK_MATHOP, NULL, NULL);
b->input.src = num;
b->field.mathop = operator_name;
return scr3_src_block(b);
}
static struct scr3_block *scr3_build_switch_backdrop(struct scr3_block *parent,
struct scr3_src backdrop) {
struct scr3_block *b =
scr3_create_block(SCR3_BLK_SWITCH_BACKDROP, parent, NULL);
scr3_src_set_parent(backdrop, b);
b->input.src = backdrop;
return b;
}
static struct scr3_src scr3_build_backdrop_reporter(bool to_get_name) {
struct scr3_block *b =
scr3_create_block(SCR3_BLK_BACKDROP_NUM_NAME, NULL, NULL);
if (to_get_name) {
b->field.reporter_name = "name";
} else {
b->field.reporter_name = "number";
}
return scr3_src_block(b);
}
static struct scr3_block *scr3_build_add_to_list(struct scr3_block *parent,
struct scr3_src elem,
enum scr3_list list) {
struct scr3_block *b = scr3_create_block(SCR3_BLK_ADD_TO_LIST, parent, NULL);
scr3_src_set_parent(elem, b);
b->input.src = elem;
b->field.list = list;
return b;
}
static struct scr3_block *scr3_build_delete_all_of_list(
struct scr3_block *parent, enum scr3_list list) {
struct scr3_block *b =
scr3_create_block(SCR3_BLK_DELETE_ALL_LIST, parent, NULL);
b->field.list = list;
return b;
}
static struct scr3_block *scr3_build_delete_item(struct scr3_block *parent,
struct scr3_src src,
enum scr3_list list) {
struct scr3_block *b = scr3_create_block(SCR3_BLK_DELETE_ITEM, parent, NULL);
scr3_src_set_parent(src, b);
b->input.src = src;
b->field.list = list;
return b;
}
static struct scr3_block *scr3_build_replace_item(struct scr3_block *parent,
struct scr3_src index,
struct scr3_src item,
enum scr3_list list) {
struct scr3_block *b = scr3_create_block(SCR3_BLK_REPLACE_ITEM, parent, NULL);
scr3_src_set_parent(index, b);
scr3_src_set_parent(item, b);
b->input.bin_op.lhs = index;
b->input.bin_op.rhs = item;
b->field.list = list;
return b;
}
static struct scr3_src scr3_build_length_of_list(enum scr3_list list) {
struct scr3_block *b = scr3_create_block(SCR3_BLK_LIST_LENGTH, NULL, NULL);
b->field.list = list;
return scr3_src_block(b);
}
static struct scr3_src scr3_build_item_of_list(struct scr3_src index,
enum scr3_list list) {
struct scr3_block *b = scr3_create_block(SCR3_BLK_LIST_ITEM, NULL, NULL);
scr3_src_set_parent(index, b);
b->input.src = index;
b->field.list = list;
return scr3_src_block(b);
}
static struct scr3_block *scr3_build_ask_and_wait(struct scr3_block *parent,
struct scr3_src question) {
struct scr3_block *b = scr3_create_block(SCR3_BLK_ASK_AND_WAIT, parent, NULL);
scr3_src_set_parent(question, b);
b->input.src = question;
return b;
}
static struct scr3_src scr3_build_answer_reporter(void) {
struct scr3_block *b =
scr3_create_block(SCR3_BLK_ANSWER_REPORTER, NULL, NULL);
return scr3_src_block(b);
}
static struct scr3_block *scr3_build_stop_all(struct scr3_block *parent) {
struct scr3_block *b = scr3_create_block(SCR3_BLK_STOPALL, parent, NULL);
return b;
}
// your_sha256_hash-------------
// Emitter functions
// your_sha256_hash-------------
static struct scr3_block *scr3_emit_input_src(const char *field_name,
struct scr3_src src) {
switch (src.type) {
case SCR3_SRC_IMMEDIATE:
printf("\"%s\":[1,[10,\"%s\"]]", field_name, src.value);
return NULL;
case SCR3_SRC_REGISTER: {
const char *reg = scr3_register_name[src.reg];
printf("\"%s\":[2,[12,\"%s\",\"#r:%s\"]]", field_name, reg, reg);
return NULL;
}
case SCR3_SRC_BLOCK:
if (src.block) {
printf("\"%s\":[2,\"b%d\"]", field_name, src.block->id);
} else {
printf("\"%s\":[2,null]", field_name);
}
return src.block;
case SCR3_SRC_EMPTY:
error("cannot emit empty src");
return NULL;
}
return NULL;
}
static void scr3_emit_field_register(const char *field_name, scr3_reg_t reg) {
printf("\"%s\":[\"%s\",\"#r:%s\"]", field_name, scr3_register_name[reg],
scr3_register_name[reg]);
}
static void scr3_emit_field_list(const char *field_name, enum scr3_list list) {
printf("\"%s\":[\"%s\",\"#l:%s\"]", field_name, SCR3_LIST_NAME[list],
SCR3_LIST_NAME[list]);
}
static void scr3_emit_block(struct scr3_block *b) {
printf("\"b%d\":{", b->id);
printf("\"opcode\":\"%s\"", b->opcode_str);
if (b->next)
printf(",\"next\":\"b%d\"", b->next->id);
else
printf(",\"next\":null");
if (b->prev)
printf(",\"parent\":\"b%d\"", b->prev->id);
else
printf(",\"parent\":null");
if (b->is_shadow)
printf(",\"shadow\":true");
else
printf(",\"shadow\":false");
if (b->is_toplevel)
printf(",\"topLevel\":true,\"x\":0,\"y\":0");
else
printf(",\"topLevel\":false");
switch (b->type) {
case SCR3_BLK_WHEN_FLAG_CLICKED:
printf(",\"inputs\":{},\"fields\":{}");
break;
case SCR3_BLK_SET_VAR:
case SCR3_BLK_CHANGE_VAR:
printf(",\"inputs\":{");
scr3_emit_input_src("VALUE", b->input.src);
printf("},\"fields\":{");
scr3_emit_field_register("VARIABLE", b->field.reg);
printf("}");
break;
case SCR3_BLK_ADD:
case SCR3_BLK_SUB:
case SCR3_BLK_MUL:
case SCR3_BLK_DIV:
case SCR3_BLK_MOD:
printf(",\"inputs\":{");
scr3_emit_input_src("NUM1", b->input.bin_op.lhs);
printf(",");
scr3_emit_input_src("NUM2", b->input.bin_op.rhs);
printf("},\"fields\":{}");
break;
case SCR3_BLK_DEFINE:
printf(",\"inputs\":{");
printf("\"custom_block\":[1, \"b%d\"]", b->input.blk->id);
printf("},\"fields\":{}");
break;
case SCR3_BLK_PROTO:
if (b->input.arg.reporter) {
// have argument
printf(",\"inputs\":{\"arg01\":[1,\"b%d\"]},\"fields\":{}",
b->input.arg.reporter->id);
printf(
",\"mutation\":{\"tagName\":\"mutation\",\"children\":[],"
"\"proccode\":"
"\"%s\",\"warp\":true,\"argumentids\":\"[\\\"arg01\\\"]\","
"\"argumentnames\":\"[\\\"%s\\\"]\",\"argumentdefaults\":\"["
"\\\"\\\"]\"}",
b->mutation.proccode, b->input.arg.name);
} else {
// have no argument
printf(",\"inputs\":{},\"fields\":{}");
printf(
",\"mutation\":{\"tagName\":\"mutation\",\"children\":[],"
"\"proccode\":"
"\"%s\",\"warp\":true,\"argumentids\":\"[]\",\"argumentnames\":\"[]"
"\","
"\"argumentdefaults\":\"[]\"}",
b->mutation.proccode);
}
break;
case SCR3_BLK_CALL:
if (b->input.src.type == SCR3_SRC_EMPTY) {
printf(
",\"inputs\":{},\"fields\":{},\"mutation\":{\"tagName\":"
"\"mutation\","
"\"children\":[],\"proccode\":\"%s\",\"warp\":true,\"argumentids\":"
"\"[]\"}",
b->mutation.proccode);
} else {
printf(",\"inputs\":{");
scr3_emit_input_src("arg01", b->input.src);
printf(
"},\"fields\":{},\"mutation\":{\"tagName\":\"mutation\","
"\"children\":[],"
"\"proccode\":\"%s\",\"warp\":true,\"argumentids\":\"["
"\\\"arg01\\\"]\"}",
b->mutation.proccode);
}
break;
case SCR3_BLK_ARG_REPORTER:
printf(",\"inputs\":{},\"fields\":{\"VALUE\":[\"%s\", null]}",
b->field.reporter_name);
break;
case SCR3_BLK_FOREVER:
printf(",\"inputs\":{\"SUBSTACK\":[2,\"b%d\"]},\"fields\":{}",
b->input.repeat.substack->id);
break;
case SCR3_BLK_REPEAT:
printf(",\"inputs\":{");
scr3_emit_input_src("TIMES", b->input.repeat.times);
printf(",\"SUBSTACK\":[2,\"b%d\"]},\"fields\":{}",
b->input.repeat.substack->id);
break;
case SCR3_BLK_REPEAT_UNTIL:
printf(
",\"inputs\":{\"CONDITION\":[2,\"b%d\"],\"SUBSTACK\":[2,\"b%d\"]},"
"\"fields\":{}",
b->input.repeat.cond->id, b->input.repeat.substack->id);
break;
case SCR3_BLK_WAIT_UNTIL:
printf(",\"inputs\":{\"CONDITION\":[2,\"b%d\"]},\"fields\":{}",
b->input.blk->id);
break;
case SCR3_BLK_IF:
printf(
",\"inputs\":{\"CONDITION\":[2,\"b%d\"],\"SUBSTACK\":[2,\"b%d\"]},"
"\"fields\":{}",
b->input.if_else.cond->id, b->input.if_else.substack_then->id);
break;
case SCR3_BLK_IF_ELSE:
printf(",\"inputs\":{\"CONDITION\":[2,\"b%d\"]",
b->input.if_else.cond->id);
if (b->input.if_else.substack_then)
printf(",\"SUBSTACK\":[2,\"b%d\"]", b->input.if_else.substack_then->id);
else
printf(",\"SUBSTACK\":[1,null]");
if (b->input.if_else.substack_else)
printf(",\"SUBSTACK2\":[2,\"b%d\"]",
b->input.if_else.substack_else->id);
else
printf(",\"SUBSTACK2\":[1,null]");
printf("},\"fields\":{}");
break;
case SCR3_BLK_EQUAL:
case SCR3_BLK_GREATER_THAN:
case SCR3_BLK_LESS_THAN:
printf(",\"inputs\":{");
scr3_emit_input_src("OPERAND1", b->input.bin_op.lhs);
printf(",");
scr3_emit_input_src("OPERAND2", b->input.bin_op.rhs);
printf("},\"fields\":{}");
break;
case SCR3_BLK_NOT:
printf(",\"inputs\":{\"OPERAND\":[2,\"b%d\"]},\"fields\":{}",
b->input.blk->id);
break;
case SCR3_BLK_JOIN:
printf(",\"inputs\":{");
scr3_emit_input_src("STRING1", b->input.bin_op.lhs);
printf(",");
scr3_emit_input_src("STRING2", b->input.bin_op.rhs);
printf("},\"fields\":{}");
break;
case SCR3_BLK_LOR:
case SCR3_BLK_LAND:
printf(
",\"inputs\":{\"OPERAND1\":[2,\"b%d\"],\"OPERAND2\":[2,\"b%d\"]},"
"\"fields\":{}",
b->input.bin_cond.lhs->id, b->input.bin_cond.rhs->id);
break;
case SCR3_BLK_LETTER_OF:
printf(",\"inputs\":{");
scr3_emit_input_src("LETTER", b->input.bin_op.lhs);
printf(",");
scr3_emit_input_src("STRING", b->input.bin_op.rhs);
printf("},\"fields\":{}");
break;
case SCR3_BLK_LENGTH:
printf(",\"inputs\":{");
scr3_emit_input_src("STRING", b->input.src);
printf("},\"fields\":{}");
break;
case SCR3_BLK_MATHOP:
printf(",\"inputs\":{");
scr3_emit_input_src("NUM", b->input.src);
printf("},\"fields\":{\"OPERATOR\":[\"%s\", null]}", b->field.mathop);
break;
case SCR3_BLK_SWITCH_BACKDROP:
printf(",\"inputs\":{");
scr3_emit_input_src("BACKDROP", b->input.src);
printf("},\"fields\":{}");
break;
case SCR3_BLK_BACKDROP_NUM_NAME:
printf(",\"inputs\":{}");
printf(",\"fields\":{\"NUMBER_NAME\":[\"%s\",null]}",
b->field.reporter_name);
break;
case SCR3_BLK_ADD_TO_LIST:
printf(",\"inputs\":{");
scr3_emit_input_src("ITEM", b->input.src);
printf("},\"fields\":{");
scr3_emit_field_list("LIST", b->field.list);
printf("}");
break;
case SCR3_BLK_DELETE_ALL_LIST:
printf(",\"inputs\":{},\"fields\":{");
scr3_emit_field_list("LIST", b->field.list);
printf("}");
break;
case SCR3_BLK_DELETE_ITEM:
printf(",\"inputs\":{");
scr3_emit_input_src("INDEX", b->input.src);
printf("},\"fields\":{");
scr3_emit_field_list("LIST", b->field.list);
printf("}");
break;
case SCR3_BLK_REPLACE_ITEM:
printf(",\"inputs\":{");
scr3_emit_input_src("INDEX", b->input.bin_op.lhs);
printf(",");
scr3_emit_input_src("ITEM", b->input.bin_op.rhs);
printf("},\"fields\":{");
scr3_emit_field_list("LIST", b->field.list);
printf("}");
break;
case SCR3_BLK_LIST_LENGTH:
printf(",\"inputs\":{},\"fields\":{");
scr3_emit_field_list("LIST", b->field.list);
printf("}");
break;
case SCR3_BLK_LIST_ITEM:
printf(",\"inputs\":{");
scr3_emit_input_src("INDEX", b->input.bin_op.lhs);
printf("},\"fields\":{");
scr3_emit_field_list("LIST", b->field.list);
printf("}");
break;
case SCR3_BLK_ASK_AND_WAIT:
printf(",\"inputs\":{");
scr3_emit_input_src("QUESTION", b->input.src);
printf("},\"fields\":{}");
break;
case SCR3_BLK_ANSWER_REPORTER:
printf(",\"inputs\":{},\"fields\":{}");
break;
case SCR3_BLK_STOPALL:
printf(
",\"inputs\":{},\"fields\":{\"STOP_OPTION\":[\"all\",null]},"
"\"mutation\":{\"tagName\":\"mutation\",\"children\":[],\"hasnext\":"
"\"true\"}");
break;
case SCR3_BLK_DUMMY:
error("dummy block");
break;
}
printf("}");
}
static void scr3_emit_all(void) {
for (struct scr3_block *b = scr3_last_block_p; b; b = b->list_next) {
if (b != scr3_last_block_p) putchar(',');
scr3_emit_block(b);
}
}
// your_sha256_hash-------------
// Runtime implementation
// your_sha256_hash-------------
static void scr3_impl_ascii_encode(void) {
struct scr3_block *p, *q, *r, *substack1, *substack2, *substack3;
scr3_reg_t reg_i = scr3_add_new_register("ascii_encode:i");
p = scr3_build_define("ascii_encode %s", "char");
q = substack1 = scr3_build_set_var(NULL, scr3_reg_impl_ret, scr3_src_imm(""));
q = scr3_build_set_var(q, reg_i, scr3_src_imm("3"));
r = substack3 = scr3_build_set_var(
NULL, scr3_reg_impl_ret,
scr3_build_join(scr3_src_reg(scr3_reg_impl_ret),
scr3_build_letter_of(scr3_src_reg(reg_i),
scr3_build_arg_reporter("char"))));
r = scr3_build_change_var(r, reg_i, scr3_src_imm("1"));
q = scr3_build_repeat(q, scr3_src_imm("3"), substack3);
q = substack2 =
scr3_build_switch_backdrop(NULL, scr3_build_arg_reporter("char"));
q = scr3_build_set_var(
q, scr3_reg_impl_ret,
scr3_build_sub(scr3_build_backdrop_reporter(false), scr3_src_imm("1")));
q = scr3_build_switch_backdrop(q, scr3_src_imm("backdrop"));
p = scr3_build_if_else(
p,
scr3_build_equal(scr3_build_length(scr3_build_arg_reporter("char")),
scr3_src_imm("5")),
substack1, substack2);
}
static void scr3_impl_ascii_decode(void) {
struct scr3_block *p;
p = scr3_build_define("ascii_decode %s", "code");
p = scr3_build_switch_backdrop(
p, scr3_build_add(scr3_build_arg_reporter("code"), scr3_src_imm("1")));
p = scr3_build_set_var(p, scr3_reg_impl_ret,
scr3_build_backdrop_reporter(true));
p = scr3_build_switch_backdrop(p, scr3_src_imm("backdrop"));
}
static void scr3_impl_base64_encode(void) {
struct scr3_block *p;
p = scr3_build_define("base64_encode %s", "num");
p = scr3_build_switch_backdrop(
p, scr3_build_add(scr3_build_arg_reporter("num"), scr3_src_imm("129")));
p = scr3_build_set_var(
p, scr3_reg_impl_ret,
scr3_build_letter_of(scr3_src_imm("2"),
scr3_build_backdrop_reporter(true)));
p = scr3_build_switch_backdrop(p, scr3_src_imm("backdrop"));
}
static void scr3_impl_base64_decode(void) {
struct scr3_block *p;
p = scr3_build_define("base64_decode %s", "char");
p = scr3_build_switch_backdrop(
p, scr3_build_join(scr3_src_imm("!"), scr3_build_arg_reporter("char")));
p = scr3_build_set_var(
p, scr3_reg_impl_ret,
scr3_build_sub(scr3_build_backdrop_reporter(false), scr3_src_imm("129")));
p = scr3_build_switch_backdrop(p, scr3_src_imm("backdrop"));
}
static void scr3_impl_writeback_page(void) {
struct scr3_block *p, *q, *substack1, *substack2;
scr3_reg_t reg_i = scr3_add_new_register("wb:i");
scr3_reg_t reg_base64 = scr3_add_new_register("wb:x");
scr3_reg_t reg_tmp = scr3_add_new_register("wb:t");
p = scr3_build_define("writeback_page", NULL);
p = scr3_build_set_var(p, reg_i, scr3_src_imm("4096"));
p = scr3_build_set_var(p, reg_base64, scr3_src_imm(""));
q = substack2 = scr3_build_call(
NULL, "base64_encode %s",
scr3_build_mod(scr3_src_reg(reg_tmp), scr3_src_imm("64")));
q = scr3_build_set_var(q, reg_base64,
scr3_build_join(scr3_src_reg(scr3_reg_impl_ret),
scr3_src_reg(reg_base64)));
q = scr3_build_set_var(
q, reg_tmp,
scr3_build_mathop(
scr3_build_div(scr3_src_reg(reg_tmp), scr3_src_imm("64")), "floor"));
q = substack1 = scr3_build_set_var(
NULL, reg_tmp,
scr3_build_item_of_list(scr3_src_reg(reg_i), SCR3_LIST_PAGE));
q = scr3_build_repeat(q, scr3_src_imm("4"), substack2);
q = scr3_build_change_var(q, reg_i, scr3_src_imm("-1"));
p = scr3_build_repeat(p, scr3_src_imm("4096"), substack1);
p = scr3_build_replace_item(p, scr3_src_reg(scr3_reg_impl_page),
scr3_src_reg(reg_base64), SCR3_LIST_MEMORY);
}
static void scr3_impl_expand_page(void) {
struct scr3_block *p, *q, *substack1, *substack2, *substack3, *substack4;
scr3_reg_t reg_base64str = scr3_add_new_register("ex:s");
scr3_reg_t reg_i = scr3_add_new_register("ex:i");
scr3_reg_t reg_x = scr3_add_new_register("ex:x");
p = scr3_build_define("expand_page", NULL);
p = scr3_build_delete_all_of_list(p, SCR3_LIST_PAGE);
p = scr3_build_set_var(
p, reg_base64str,
scr3_build_item_of_list(scr3_src_reg(scr3_reg_impl_page),
SCR3_LIST_MEMORY));
substack1 = scr3_build_repeat(
NULL, scr3_src_imm("4096"),
scr3_build_add_to_list(NULL, scr3_src_imm("0"), SCR3_LIST_PAGE));
q = substack4 = scr3_build_call(
NULL, "base64_decode %s",
scr3_build_letter_of(scr3_src_reg(reg_i), scr3_src_reg(reg_base64str)));
q = scr3_build_set_var(
q, reg_x,
scr3_build_add(scr3_build_mul(scr3_src_reg(reg_x), scr3_src_imm("64")),
scr3_src_reg(scr3_reg_impl_ret)));
q = scr3_build_change_var(q, reg_i, scr3_src_imm("1"));
q = substack3 = scr3_build_set_var(NULL, reg_x, scr3_src_imm("0"));
q = scr3_build_repeat(q, scr3_src_imm("4"), substack4);
q = scr3_build_add_to_list(q, scr3_src_reg(reg_x), SCR3_LIST_PAGE);
q = substack2 = scr3_build_set_var(p, reg_i, scr3_src_imm("1"));
q = scr3_build_repeat(q, scr3_src_imm("4096"), substack3);
p = scr3_build_if_else(
p,
scr3_build_equal(scr3_build_length(scr3_src_reg(reg_base64str)),
scr3_src_imm("0")),
substack1, substack2);
}
static void scr3_impl_store(void) {
struct scr3_block *p, *substack, *q;
scr3_reg_t reg_dst_page = scr3_add_new_register("store:x");
scr3_reg_t reg_value = scr3_add_new_register("store:y");
p = scr3_build_define("store %s", "dst");
p = scr3_build_set_var(
p, reg_dst_page,
scr3_build_add(
scr3_build_mathop(scr3_build_div(scr3_build_arg_reporter("dst"),
scr3_src_imm("4096")),
"floor"),
scr3_src_imm("1")));
p = scr3_build_set_var(p, reg_value, scr3_src_reg(scr3_reg_impl_ret));
q = substack = scr3_build_call(NULL, "writeback_page", EMPTY_SRC);
q = scr3_build_set_var(q, scr3_reg_impl_page, scr3_src_reg(reg_dst_page));
q = scr3_build_call(q, "expand_page", EMPTY_SRC);
p = scr3_build_if(
p,
scr3_build_not(scr3_build_equal(scr3_src_reg(scr3_reg_impl_page),
scr3_src_reg(reg_dst_page))),
substack);
p = scr3_build_replace_item(
p,
scr3_build_add(
scr3_build_mod(scr3_build_arg_reporter("dst"), scr3_src_imm("4096")),
scr3_src_imm("1")),
scr3_src_reg(reg_value), SCR3_LIST_PAGE);
}
static void scr3_impl_load(void) {
struct scr3_block *p, *q, *substack1, *substack2, *substack3, *substack4;
scr3_reg_t reg_x = scr3_add_new_register("load:x");
scr3_reg_t reg_y = scr3_add_new_register("load:y");
scr3_reg_t reg_z = scr3_add_new_register("load:z");
p = scr3_build_define("load %s", "src");
p = scr3_build_set_var(
p, reg_x,
scr3_build_add(
scr3_build_mathop(scr3_build_div(scr3_build_arg_reporter("src"),
scr3_src_imm("4096")),
"floor"),
scr3_src_imm("1")));
p = scr3_build_set_var(
p, reg_z,
scr3_build_mod(scr3_build_arg_reporter("src"), scr3_src_imm("4096")));
substack1 = scr3_build_set_var(
NULL, scr3_reg_impl_ret,
scr3_build_item_of_list(
scr3_build_add(scr3_src_reg(reg_z), scr3_src_imm("1")),
SCR3_LIST_PAGE));
q = substack4 = scr3_build_call(
NULL, "base64_decode %s",
scr3_build_letter_of(scr3_src_reg(reg_z), scr3_src_reg(reg_y)));
q = scr3_build_set_var(
q, reg_x,
scr3_build_add(scr3_build_mul(scr3_src_reg(reg_x), scr3_src_imm("64")),
scr3_src_reg(scr3_reg_impl_ret)));
q = scr3_build_change_var(q, reg_z, scr3_src_imm("1"));
q = substack3 = scr3_build_set_var(
NULL, reg_z,
scr3_build_add(scr3_build_mul(scr3_src_reg(reg_z), scr3_src_imm("4")),
scr3_src_imm("1")));
q = scr3_build_repeat(q, scr3_src_imm("4"), substack4);
q = substack2 = scr3_build_set_var(
NULL, reg_y,
scr3_build_item_of_list(scr3_src_reg(reg_x), SCR3_LIST_MEMORY));
q = scr3_build_set_var(q, reg_x, scr3_src_imm("0"));
q = scr3_build_if(
q,
scr3_build_gt(scr3_build_length(scr3_src_reg(reg_y)), scr3_src_imm("0")),
substack3);
q = scr3_build_set_var(q, scr3_reg_impl_ret, scr3_src_reg(reg_x));
p = scr3_build_if_else(
p,
scr3_build_equal(scr3_src_reg(scr3_reg_impl_page), scr3_src_reg(reg_x)),
substack1, substack2);
}
static void scr3_impl_getchar(void) {
struct scr3_block *p, *q, *substack;
p = scr3_build_define("getchar", NULL);
q = substack =
scr3_build_set_var(NULL, scr3_reg_impl_wait, scr3_src_imm("1"));
q = scr3_build_wait_until(
q, scr3_build_gt(scr3_build_length_of_list(SCR3_LIST_STDIN),
scr3_src_imm("0")));
p = scr3_build_if(p,
scr3_build_equal(scr3_build_length_of_list(SCR3_LIST_STDIN),
scr3_src_imm("0")),
substack);
p = scr3_build_call(
p, "ascii_encode %s",
scr3_build_item_of_list(scr3_src_imm("1"), SCR3_LIST_STDIN));
p = scr3_build_delete_item(p, scr3_src_imm("1"), SCR3_LIST_STDIN);
}
static void scr3_impl_putchar(void) {
struct scr3_block *p, *substack1, *substack2, *q;
p = scr3_build_define("putchar", NULL);
substack1 = scr3_build_add_to_list(NULL, scr3_src_imm(""), SCR3_LIST_STDOUT);
q = substack2 = scr3_build_call(
NULL, "ascii_decode %s",
scr3_build_mod(scr3_src_reg(scr3_reg_impl_ret), scr3_src_imm("256")));
q = scr3_build_replace_item(
q, scr3_build_length_of_list(SCR3_LIST_STDOUT),
scr3_build_join(
scr3_build_item_of_list(scr3_build_length_of_list(SCR3_LIST_STDOUT),
SCR3_LIST_STDOUT),
scr3_src_reg(scr3_reg_impl_ret)),
SCR3_LIST_STDOUT);
p = scr3_build_if_else(
p, scr3_build_equal(scr3_src_reg(scr3_reg_impl_ret), scr3_src_imm("10")),
substack1, substack2);
}
static void scr3_impl_read_stdin(void) {
struct scr3_block *p, *substack1, *q, *substack2, *r, *substack3, *s;
scr3_reg_t reg_i = scr3_add_new_register("read:i");
scr3_reg_t reg_r = scr3_add_new_register("read:r");
scr3_reg_t reg_t = scr3_add_new_register("read:t");
p = scr3_build_when_flag_clicked();
q = substack1 = scr3_build_wait_until(
NULL,
scr3_build_equal(scr3_src_reg(scr3_reg_impl_wait), scr3_src_imm("1")));
q = scr3_build_ask_and_wait(q, scr3_src_imm("stdin"));
q = scr3_build_set_var(q, reg_i, scr3_src_imm("1"));
r = substack2 = scr3_build_set_var(NULL, reg_r, scr3_src_imm("1"));
r = scr3_build_set_var(r, reg_t, scr3_src_imm(""));
s = substack3 = scr3_build_set_var(
NULL, reg_t,
scr3_build_join(scr3_src_reg(reg_t),
scr3_build_letter_of(scr3_src_reg(reg_i),
scr3_build_answer_reporter())));
s = scr3_build_change_var(s, reg_i, scr3_src_imm("1"));
s = scr3_build_if_else(
s, scr3_build_equal(scr3_src_reg(reg_t), scr3_src_imm("")),
scr3_build_change_var(NULL, reg_r, scr3_src_imm("1")),
scr3_build_if(NULL,
scr3_build_equal(scr3_src_reg(reg_t), scr3_src_imm("d")),
scr3_build_change_var(NULL, reg_r, scr3_src_imm("3"))));
s = scr3_build_change_var(s, reg_r, scr3_src_imm("-1"));
r = scr3_build_repeat_until(
r, scr3_build_equal(scr3_src_reg(reg_r), scr3_src_imm("0")), substack3);
r = scr3_build_add_to_list(r, scr3_src_reg(reg_t), SCR3_LIST_STDIN);
r = scr3_build_set_var(r, scr3_reg_impl_wait, scr3_src_imm("0"));
q = scr3_build_repeat_until(
q,
scr3_build_gt(scr3_src_reg(reg_i),
scr3_build_length(scr3_build_answer_reporter())),
substack2);
p = scr3_build_forever(p, substack1);
}
static void scr3_impl_initialize(void) {
struct scr3_block *p, *q, *substack;
p = scr3_build_define("initialize", NULL);
for (scr3_reg_t reg = 0; reg < scr3_reg_count; reg++) {
p = scr3_build_set_var(p, reg, scr3_src_imm("0"));
}
p = scr3_build_delete_all_of_list(p, SCR3_LIST_STDIN);
p = scr3_build_delete_all_of_list(p, SCR3_LIST_STDOUT);
p = scr3_build_delete_all_of_list(p, SCR3_LIST_MEMORY);
p = scr3_build_delete_all_of_list(p, SCR3_LIST_PAGE);
p = scr3_build_add_to_list(p, scr3_src_imm(""), SCR3_LIST_STDOUT);
p = scr3_build_set_var(p, scr3_reg_impl_page, scr3_src_imm("1"));
q = substack =
scr3_build_add_to_list(NULL, scr3_src_imm(""), SCR3_LIST_MEMORY);
q = scr3_build_add_to_list(q, scr3_src_imm("0"), SCR3_LIST_PAGE);
p = scr3_build_repeat(p, scr3_src_imm("4096"), substack);
p = scr3_build_call(p, "init_memory", EMPTY_SRC);
}
// your_sha256_hash-------------
// Control flow
// your_sha256_hash-------------
static struct scr3_src src_convert(Value value) {
switch (value.type) {
case REG:
return (struct scr3_src){.type = SCR3_SRC_REGISTER, .reg = value.reg};
case IMM:
return (struct scr3_src){.type = SCR3_SRC_IMMEDIATE,
.value = format("%d", value.imm)};
default:
error("invalid value");
}
}
static void scr3_emit_inst(Inst *inst, struct scr3_block **p) {
switch (inst->op) {
case MOV:
*p = scr3_build_set_var(*p, inst->dst.reg, src_convert(inst->src));
break;
case ADD:
*p = scr3_build_set_var(
*p, inst->dst.reg,
scr3_build_mod(scr3_build_add(scr3_src_reg(inst->dst.reg),
src_convert(inst->src)),
scr3_src_imm("16777216")));
break;
case SUB:
*p = scr3_build_set_var(
*p, inst->dst.reg,
scr3_build_mod(scr3_build_sub(scr3_src_reg(inst->dst.reg),
src_convert(inst->src)),
scr3_src_imm("16777216")));
break;
case LOAD:
*p = scr3_build_call(*p, "load %s", src_convert(inst->src));
*p = scr3_build_set_var(*p, inst->dst.reg,
scr3_src_reg(scr3_reg_impl_ret));
break;
case STORE:
*p = scr3_build_set_var(*p, scr3_reg_impl_ret,
scr3_src_reg(inst->dst.reg));
*p = scr3_build_call(*p, "store %s", src_convert(inst->src));
break;
case PUTC:
*p = scr3_build_set_var(*p, scr3_reg_impl_ret, src_convert(inst->src));
*p = scr3_build_call(*p, "putchar", EMPTY_SRC);
break;
case GETC:
// to input EOS, this backend requires user to input '0' explicitly
*p = scr3_build_call(*p, "getchar", EMPTY_SRC);
*p = scr3_build_set_var(*p, inst->dst.reg,
scr3_src_reg(scr3_reg_impl_ret));
break;
case EXIT:
*p = scr3_build_stop_all(*p);
break;
case DUMP:
break;
case EQ:
*p = scr3_build_if_else(
*p,
scr3_build_equal(scr3_src_reg(inst->dst.reg), src_convert(inst->src)),
scr3_build_set_var(NULL, inst->dst.reg, scr3_src_imm("1")),
scr3_build_set_var(NULL, inst->dst.reg, scr3_src_imm("0")));
break;
case NE:
*p = scr3_build_if_else(
*p,
scr3_build_equal(scr3_src_reg(inst->dst.reg), src_convert(inst->src)),
scr3_build_set_var(NULL, inst->dst.reg, scr3_src_imm("0")),
scr3_build_set_var(NULL, inst->dst.reg, scr3_src_imm("1")));
break;
case LT:
*p = scr3_build_if_else(
*p,
scr3_build_lt(scr3_src_reg(inst->dst.reg), src_convert(inst->src)),
scr3_build_set_var(NULL, inst->dst.reg, scr3_src_imm("1")),
scr3_build_set_var(NULL, inst->dst.reg, scr3_src_imm("0")));
break;
case GT:
*p = scr3_build_if_else(
*p,
scr3_build_gt(scr3_src_reg(inst->dst.reg), src_convert(inst->src)),
scr3_build_set_var(NULL, inst->dst.reg, scr3_src_imm("1")),
scr3_build_set_var(NULL, inst->dst.reg, scr3_src_imm("0")));
break;
case LE:
*p = scr3_build_if_else(
*p,
scr3_build_gt(scr3_src_reg(inst->dst.reg), src_convert(inst->src)),
scr3_build_set_var(NULL, inst->dst.reg, scr3_src_imm("0")),
scr3_build_set_var(NULL, inst->dst.reg, scr3_src_imm("1")));
break;
case GE:
*p = scr3_build_if_else(
*p,
scr3_build_lt(scr3_src_reg(inst->dst.reg), src_convert(inst->src)),
scr3_build_set_var(NULL, inst->dst.reg, scr3_src_imm("0")),
scr3_build_set_var(NULL, inst->dst.reg, scr3_src_imm("1")));
break;
case JEQ:
*p = scr3_build_if(
*p,
scr3_build_equal(scr3_src_reg(inst->dst.reg), src_convert(inst->src)),
scr3_build_set_var(
NULL, scr3_reg_pc,
scr3_build_sub(src_convert(inst->jmp), scr3_src_imm("1"))));
break;
case JNE:
*p = scr3_build_if_else(
*p,
scr3_build_equal(scr3_src_reg(inst->dst.reg), src_convert(inst->src)),
NULL,
scr3_build_set_var(
NULL, scr3_reg_pc,
scr3_build_sub(src_convert(inst->jmp), scr3_src_imm("1"))));
break;
case JLT:
*p = scr3_build_if(
*p,
scr3_build_lt(scr3_src_reg(inst->dst.reg), src_convert(inst->src)),
scr3_build_set_var(
NULL, scr3_reg_pc,
scr3_build_sub(src_convert(inst->jmp), scr3_src_imm("1"))));
break;
case JGT:
*p = scr3_build_if(
*p,
scr3_build_gt(scr3_src_reg(inst->dst.reg), src_convert(inst->src)),
scr3_build_set_var(
NULL, scr3_reg_pc,
scr3_build_sub(src_convert(inst->jmp), scr3_src_imm("1"))));
break;
case JLE:
*p = scr3_build_if_else(
*p,
scr3_build_gt(scr3_src_reg(inst->dst.reg), src_convert(inst->src)),
NULL,
scr3_build_set_var(
NULL, scr3_reg_pc,
scr3_build_sub(src_convert(inst->jmp), scr3_src_imm("1"))));
break;
case JGE:
*p = scr3_build_if_else(
*p,
scr3_build_lt(scr3_src_reg(inst->dst.reg), src_convert(inst->src)),
NULL,
scr3_build_set_var(
NULL, scr3_reg_pc,
scr3_build_sub(src_convert(inst->jmp), scr3_src_imm("1"))));
break;
case JMP:
scr3_build_set_var(
*p, scr3_reg_pc,
scr3_build_sub(src_convert(inst->jmp), scr3_src_imm("1")));
break;
default:
error("oops");
}
}
// generate binary search [lval, hval)
static struct scr3_block *scr3_impl_switch_helper(scr3_reg_t reg, int lval,
int hval,
struct scr3_block *cases[],
int cases_size) {
if (hval - lval <= 1) {
return lval < cases_size ? cases[lval] : NULL;
} else {
int mval = (lval + hval) / 2;
struct scr3_block *case1, *case2;
case1 = scr3_impl_switch_helper(reg, lval, mval, cases, cases_size);
case2 = scr3_impl_switch_helper(reg, mval, hval, cases, cases_size);
if (!case1 && !case2) return NULL;
struct scr3_block *if_else = scr3_build_if_else(
NULL,
scr3_build_lt(scr3_src_reg(reg), scr3_src_imm(format("%d", mval))),
case1, case2);
if (case1) case1->prev = if_else;
if (case2) case2->prev = if_else;
return if_else;
}
}
static struct scr3_block *scr3_impl_chunk(int low_pc, int high_pc,
struct scr3_block *each_pc[],
int max_pc) {
struct scr3_block *sw =
scr3_impl_switch_helper(scr3_reg_pc, low_pc, high_pc, each_pc, max_pc);
if (!sw) return NULL;
scr3_build_change_var(sw, scr3_reg_pc, scr3_src_imm("1"));
struct scr3_block *p, *def;
p = def = scr3_build_define(format("pc%d-%d", low_pc, high_pc), NULL);
p = scr3_build_repeat_until(
p,
scr3_build_or(scr3_build_lt(scr3_src_reg(scr3_reg_pc),
scr3_src_imm(format("%d", low_pc))),
scr3_build_lt(scr3_src_imm(format("%d", high_pc - 1)),
scr3_src_reg(scr3_reg_pc))),
sw);
return def;
}
static const int SCR3_CHUNK_SIZE = 512;
static struct scr3_block *scr3_impl_chunk_switch(struct scr3_block *parent,
struct scr3_block *each_pc[],
int each_pc_size) {
scr3_reg_t reg_chunk = scr3_add_new_register("chunk:x");
int switch_size = 1;
while (switch_size < each_pc_size) switch_size *= 2;
int chunk_count = (switch_size + SCR3_CHUNK_SIZE - 1) / SCR3_CHUNK_SIZE;
struct scr3_block **cases = malloc(sizeof(struct scr3_block *) * chunk_count);
for (int i = 0; i < chunk_count; i++) {
if (!scr3_impl_chunk(i * SCR3_CHUNK_SIZE, (i + 1) * SCR3_CHUNK_SIZE,
each_pc, each_pc_size)) {
continue;
}
cases[i] = scr3_build_call(
NULL, format("pc%d-%d", i * SCR3_CHUNK_SIZE, (i + 1) * SCR3_CHUNK_SIZE),
EMPTY_SRC);
}
struct scr3_block *q, *sw;
sw = scr3_build_set_var(
NULL, reg_chunk,
scr3_build_mathop(
scr3_build_div(scr3_src_reg(scr3_reg_pc),
scr3_src_imm(format("%d", SCR3_CHUNK_SIZE))),
"floor"));
q = scr3_impl_switch_helper(reg_chunk, 0, chunk_count, cases, chunk_count);
if (q) q->prev = sw;
sw->next = q;
return scr3_build_forever(parent, sw);
}
static void scr3_impl_main_loop(Inst *inst) {
struct scr3_block *p, *q = NULL;
p = scr3_create_block(SCR3_BLK_WHEN_FLAG_CLICKED, NULL, NULL);
p = scr3_build_call(p, "initialize", EMPTY_SRC);
int cases_size = 0;
for (Inst *itr = inst; itr; itr = itr->next)
cases_size = max(cases_size, itr->pc);
cases_size += 1;
struct scr3_block **cases = malloc(sizeof(struct scr3_block *) * cases_size);
for (int i = 0; i < cases_size; i++) cases[i] = NULL;
int prev_pc = -1;
for (; inst; inst = inst->next) {
if (prev_pc != inst->pc) {
q = cases[inst->pc] = scr3_create_block(SCR3_BLK_DUMMY, NULL, NULL);
}
prev_pc = inst->pc;
scr3_emit_inst(inst, &q);
}
p = scr3_impl_chunk_switch(p, cases, cases_size);
}
static void scr3_impl_init_memory(Data *data) {
struct scr3_block *p = scr3_build_define("init_memory", NULL);
for (int mp = 0; data; data = data->next, mp++) {
if (data->v) {
p = scr3_build_set_var(p, scr3_reg_impl_ret,
scr3_src_imm(format("%d", data->v)));
p = scr3_build_call(p, "store %s", scr3_src_imm(format("%d", mp)));
}
}
}
void target_scratch3(Module *module) {
scr3_reg_a = scr3_add_new_register("a");
scr3_reg_b = scr3_add_new_register("b");
scr3_reg_c = scr3_add_new_register("c");
scr3_reg_d = scr3_add_new_register("d");
scr3_reg_sp = scr3_add_new_register("sp");
scr3_reg_bp = scr3_add_new_register("bp");
scr3_reg_pc = scr3_add_new_register("pc");
scr3_reg_impl_ret = scr3_add_new_register("_r");
scr3_reg_impl_page = scr3_add_new_register("_p");
scr3_reg_impl_wait = scr3_add_new_register("_w");
scr3_impl_read_stdin();
scr3_impl_ascii_encode();
scr3_impl_ascii_decode();
scr3_impl_base64_decode();
scr3_impl_base64_encode();
scr3_impl_writeback_page();
scr3_impl_expand_page();
scr3_impl_store();
scr3_impl_load();
scr3_impl_initialize();
scr3_impl_getchar();
scr3_impl_putchar();
scr3_impl_init_memory(module->data);
scr3_impl_main_loop(module->text);
// your_sha256_hash-----------
printf("{\"targets\":[{\"isStage\":true,\"name\":\"Stage\",");
printf("\"variables\":{");
for (scr3_reg_t reg = 0; reg < scr3_reg_count; reg++) {
if (reg) putchar(',');
const char *name = scr3_register_name[reg];
printf("\"#r:%s\":[\"%s\", \"0\"]", name, name);
}
printf("},\"lists\":{");
for (int list = 0; list < SCR3_NUM_OF_LIST; list++) {
if (list) putchar(',');
const char *name = SCR3_LIST_NAME[list];
printf("\"#l:%s\":[\"%s\", []]", name, name);
}
printf("},\"broadcasts\":{},\"blocks\":{");
scr3_emit_all();
printf("},\"comments\":{},\"currentCostume\":192,\"costumes\":[");
// embed ASCII table in backdrops
for (int i = 0; i < 128; i++) {
char escaped_char_str[10];
if (32 <= i && i < 127) {
sprintf(escaped_char_str, (i == '"' || i == '\\') ? "\\%c" : "%c", i);
} else if (i == 10) {
sprintf(escaped_char_str, "n");
} else {
sprintf(escaped_char_str, "%d", i);
}
printf(
"{\"name\":\"%s\",\"assetId\":\"%s\",\"md5ext\":\"%s.svg\","
"\"dataFormat\":\"svg\"},",
escaped_char_str, SCR3_SVG_MD5, SCR3_SVG_MD5);
}
// embed Base64 table in backdrops (with prefix '!')
for (int i = 0; i < 64; i++) {
printf(
"{\"name\":\"!%s\",\"assetId\":\"%s\",\"md5ext\":\"%s.svg\","
"\"dataFormat\":\"svg\"},",
SCR3_BASE64_TABLE[i], SCR3_SVG_MD5, SCR3_SVG_MD5);
}
// main backdrop
printf(
"{\"name\":\"backdrop\",\"assetId\":\"%s\",\"md5ext\":\"%s.svg\","
"\"dataFormat\":\"svg\"}",
SCR3_SVG_MD5, SCR3_SVG_MD5);
printf(
"],\"sounds\":[],\"volume\":100,\"layerOrder\":0,\"tempo\":60,"
"\"videoTransparency\":50,\"videoState\":\"on\",\"textToSpeechLanguage\":"
"null}],\"monitors\":[{\"id\":\"#l:stdout\",\"mode\":\"list\","
"\"opcode\":");
printf(
"\"data_listcontents\",\"params\":{\"LIST\":\"stdout\"},\"spriteName\":"
"null,\"value\":[],\"width\":480,\"height\":280,\"x\":0,\"y\":0,"
"\"visible\":true}],\"extensions\":[],\"meta\":{\"semver\":\"3.0.0\"}}");
return;
}
```
|
"Sectionals" is the thirteenth episode of the American television series Glee. It premiered on the Fox network on December 9, 2009. The episode was written and directed by series co-creator Brad Falchuk, and serves as the mid-season finale for the show's first season. "Sectionals" sees the glee club win the sectionals round of competition, advancing on to regionals. Glee club member Finn (Cory Monteith) discovers he is not the father of his girlfriend Quinn's (Dianna Agron) baby. Football coach Ken Tanaka (Patrick Gallagher) plans his wedding with Emma (Jayma Mays) on the same day as the sectionals competition. Will Schuester (Matthew Morrison) is unable to take the students to sectionals and Emma offers to take them. The episode sees the return of Eve and Michael Hitchcock as rival glee club directors Grace Hitchens and Dalton Rumba.
The episode features covers of six songs, studio recordings of four of which were released as singles, available for digital download, and are also included on the album Glee: The Music, Volume 2. "Sectionals" was watched by 8.127 million U.S. viewers, and received mostly positive reviews from critics. The episode's musical performances attracted praise, as did the development of Will and Emma's relationship, though Dan Snierson of Entertainment Weekly suggested it may have been preferable to leave their romance unresolved. James Poniewozik of Time felt that by concluding the pregnancy storyline in "Sectionals", Glee was able to "clear the decks for a second half of the season as the confident show it now is".
Plot
As a result of a technicality in the show choir competition rules, glee club director Will Schuester (Matthew Morrison) is not allowed to accompany New Directions to sectionals. Guidance counsellor Emma Pillsbury (Jayma Mays) postpones her own wedding by a few hours so that she can take the club in his place, although her fiancé, football coach Ken Tanaka (Patrick Gallagher), feels she is choosing Will over him.
Most of the glee club has learned that Puck (Mark Salling), not Finn (Cory Monteith), is the father of Quinn's baby, and begin to mistrust Quinn. They hide this fact from Rachel (Lea Michele), believing that she will tell Finn. Emma takes over as faculty advisor of the club as they start working on their set list for sectionals. With two group songs selected, Rachel says that she'll sing the solo ballad. Mercedes (Amber Riley) jealously objects to this, and much to Rachel almost feeling dismayed, she agrees to give it to Mercedes. Mercedes sings "And I Am Telling You I'm Not Going" to wild applause. Rachel agrees that Mercedes deserves to sing the solo and the two hug. Meanwhile, Rachel has deduced that Puck impregnated Quinn and tells Finn, who then beats up Puck and confronts Quinn, who tearfully admits the truth. Angered by their betrayal, Finn quits the club on the eve of sectionals, and has to be replaced by school reporter Jacob Ben Israel (Josh Sussman), who is only going to stalk Rachel. New Directions arrive at the event to discover their competitors have received an advance copy of their set list and are performing all three of their chosen songs thanks to Sue's plan to sabotage the glee club. Emma calls Will, who convinces Finn to help his New Directions teammates. Will finds Finn in the locker room and talks to him about how special he is and that the club needs him.
Emma confronts rival choir directors Grace Hitchens (Eve) and Dalton Rumba (Michael Hitchcock), while New Directions chooses new performance pieces for their set list at the last minute. Rachel asks Mercedes to perform another ballad, but Mercedes insists, with the rest of the club agreeing, that Rachel is the best choice to perform "on the fly". They also decide to include "Somebody to Love" as their closer but are stuck for a third piece until Finn arrives with new sheet music for the group, ready to perform with them. Rachel gives a solo performance of "Don't Rain on My Parade", receiving a standing ovation after finishing. The group then performs "You Can't Always Get What You Want" by the Rolling Stones, to the applause and cheers of the audience. After their performance, Grace attempts to confess her duplicity to the judges, but they have already unanimously decided that New Directions has won the competition. Will angrily confronts Sue and promises he will damage her for all the trouble she has caused.
Having previously discovered that his wife Terri (Jessalyn Gilsig) was faking her pregnancy, Will tells her he no longer feels the same way he did when they first fell in love. He later attends Ken and Emma's delayed wedding, only to find that Ken has ended the relationship as a result of Emma's feelings for Will. She announces her intention to leave McKinley High School, explaining that it will be too painful for her to carry on working with Will and Ken. Back at school, Principal Figgins (Iqbal Theba) suspends cheerleading coach Sue Sylvester (Jane Lynch) for leaking the glee club's set list, and has Will reinstated as the director of New Directions. The glee club members show Will their trophy and perform "My Life Would Suck Without You" for him. The dance moves in the finale are a combination of the dances from other songs that have been performed so far. As Emma prepares to leave the school, Will chases after her and stops her with a kiss. Both are happy, but uncertain of what will happen next.
Production
Glee was originally commissioned by Fox for a thirteen episode run, culminating with "Sectionals". On September 21, 2009, the network announced an extension of the first season, ordering a further nine episodes. "Sectionals" therefore serves as the mid-season finale, with the remainder of the season airing from April 13, 2010. Events in "Sectionals" are influenced by the season's eleventh episode "Hairography", in which cheerleading coach Sue Sylvester gave New Directions' competition set-list to their rival glee clubs. She had it that the clubs perform New Directions' songs first, making it appear that they are copying them, so New Directions, as Morrison explained, "have to do this impromptu thing and fly by the seat of [their] pants." Morrison has called "Sectionals" "the best episode" of the series.
"Sectionals" was written and directed by series creator Brad Falchuk. Recurring characters who appear in the episode are glee club members Brittany Pierce (Heather Morris), Santana Lopez (Naya Rivera), Mike Chang (Harry Shum Jr.) and Matt Rutherford (Dijon Talton), football coach Ken Tanaka (Patrick Gallagher), school reporter Jacob Ben Israel (Josh Sussman), Principal Figgins (Iqbal Theba) and local news anchor Rod Remington (Bill A. Jones). Anna Camp and Patricia Forte guest star as sectionals judges Candace Dykstra and Donna Landries, Peter Choi is the Emcee, and Thomasina Gross plays Perfect Engleberger, a member of the Jane Addams Academy glee club. "Sectionals" also sees the return of Eve and Michael Hitchcock as rival glee club directors Grace Hitchens and Dalton Rumba. Eve was offered the role of Grace after Whitney Houston declined to appear.
The episode features cover versions of "Don't Rain on My Parade" by Barbra Streisand, "You Can't Always Get What You Want" by The Rolling Stones, "My Life Would Suck Without You" by Kelly Clarkson, "And I Am Telling You I'm Not Going" from Dreamgirls, "Don't Stop Believin' by Journey and "Proud Mary" by Creedence Clearwater Revival. Studio recordings of "And I Am Telling You I'm Not Going", "Don't Rain on My Parade", "You Can't Always Get What You Want" and "My Life Would Suck Without You" were released as singles in December 2009, available for download. They are also included on the album Glee: The Music, Volume 2. "And I Am Telling You I'm Not Going" charted at number 85 in Canada and 94 in the US, while "Don't Rain on My Parade" charted at number 59 in Canada and 53 in the US. "You Can't Always Get What You Want" charted at number 51 in Canada and 71 in the US, and "My Life Would Suck Without You" charted at number 66 in Australia, 40 in Canada and 51 in the US. The performance of "My Life Would Suck Without You" showcased choreography from numerous performances from earlier episodes.
Reception
The episode was watched by 8.127 million US viewers. It was the show's highest-rated episode ever with teenagers, and its season high in the 18-49 demographic, with a rating/share of 3.7/9. In Canada, it was the tenth most watched show for the week of broadcast, attaining 1.64 million viewers.
"Sectionals" received mostly positive reviews from critics. TV Guide Natalie Abrams felt it ended the beginning of the season on a "high note", while Raymund Flandez of The Wall Street Journal commented: "You couldn’t have asked for a better cliffhanger of a fall finale". IGN's Eric Goldman rated the episode 9/10, calling it "very satisfying", and Gerrick Kennedy of the Los Angeles Times commended it as "fine television." James Poniewozik of Time wrote: "I'm not sure I expected or wanted a feel-good ending out of the first half of Glee. But what we got from "Sectionals" left me feeling very good about where the show is going this spring." In contrast, Alan Sepinwall of The Star-Ledger, felt that the episode brought too many storylines to a head at once, "not allowing all to have as much impact as they might have had the big developments been spaced out". Sepinwall commented, however, that the acting and especially singing performances were "uniformly strong."
Musical performances in the episode attracted praise. Aly Semigran of MTV called Riley's rendition of "And I Am Telling You I'm Not Going" "goose bump-inducing", while Goldman commended: "Riley absolutely killed it as Mercedes belted out that song". In contrast, Poniewozik wrote that it was the one song choice he didn't like, feeling that it is overused, thus diminishing its impact. Abrams deemed Rachel's solo performance at sectionals "amazing", and Flandez recommended: "Watch it again if you ever want to take back three minutes of your life that you’ve wasted on something else." Pardue called the group performance of "You Can't Always Get What You Want" "energetic [...] casual [...] and very Glee", but felt it "would have been nice" to feature different singers. Dan Snierson for Entertainment Weekly similarly noted that he would have preferred "more vocal interplay between all group members". In December 2012, TV Guide named the rendition of "Don't Rain on My Parade" one of Glee best performances, commenting: "Glee has done Broadway many times, but rarely better than this."
Critics also commented positively on the development of Will and Emma's relationship, with Abrams noting that she had been waiting for them to kiss since the pilot episode, and Goldman deeming their coming together "very hard to not feel good about". Snierson, however, wrote that although there was satisfaction in the episode ending on the kiss, it may have been "more intriguing" to conclude with Will finding Emma's office empty, questioning whether it was too soon for the two of them to begin a relationship. The end of Quinn's pregnancy secret was also well received. Poniewozik wrote that the pregnancy storyline had felt as though "the early Glee wasn't confident that people would be interested in it without these over-the-top soap opera twists." He noted that in concluding the pregnancy deception in "Sectionals", Glee: "seemed to clear the decks for a second half of the season as the confident show it now is."
References
External links
"Sectionals" at Fox.com
2009 American television episodes
Glee (season 1) episodes
Television episodes written by Brad Falchuk
|
Poland competed at the 1988 Winter Paralympics in Innsbruck, Austria. 13 competitors from Poland won 8 medals and finished 12th in the medal table.
Medalists
Gold
Marcin Kos - Cross-country skiing, Standing 15 km Individual Free LW5/7
Silver
Marcin Kos - Cross-country skiing, Standing 5 km Individual Classic LW5/7
Bronze
Elżbieta Dadok - Alpine skiing, Slalom LW6/8
Elżbieta Dadok - Alpine skiing, giant slalom LW6/8
Franciszek Tracz - Alpine skiing, Downhill LW3
Jan Kołodziej - Cross-country skiing, Standing 5 km Individual Classic LW3/9
Jan Kołodziej - Cross-country skiing, Standing 10 km Individual Free LW3/9
Jerzy Szlezak - Cross-country skiing, Standing 15 km Individual Free LW5/7
Alpine skiing
Biathlon
Cross‑country skiing
See also
Poland at the Paralympics
Poland at the 1988 Winter Olympics
References
Poland at the Paralympics
1988 in Polish sport
Nations at the 1988 Winter Paralympics
|
```objective-c
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
//
// path_to_url
//
// Unless required by applicable law or agreed to in writing,
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// specific language governing permissions and limitations
#ifndef KUDU_UTIL_FLAGS_H
#define KUDU_UTIL_FLAGS_H
#include <cstdint>
#include <string>
#include <unordered_map>
#include <gflags/gflags.h>
#include "kudu/util/status.h"
namespace kudu {
// The umask of the process, set based on the --umask flag during
// HandleCommonFlags().
extern uint32_t g_parsed_umask;
// Looks for flags in argv and parses them. Rearranges argv to put
// flags first, or removes them entirely if remove_flags is true.
// If a flag is defined more than once in the command line or flag
// file, the last definition is used. Returns the index (into argv)
// of the first non-flag argument.
//
// This is a wrapper around google::ParseCommandLineFlags, but integrates
// with Kudu flag tags. For example, --helpxml will include the list of
// tags for each flag. This should be be used instead of
// google::ParseCommandLineFlags in any user-facing binary.
//
// See gflags.h for more information.
int ParseCommandLineFlags(int* argc, char*** argv, bool remove_flags);
// Handle common flags such as -version, -disable_core_dumps, etc.
// This includes the GFlags common flags such as "-help".
//
// Requires that flags have already been parsed using
// google::ParseCommandLineNonHelpFlags().
void HandleCommonFlags();
// Verifies that the flags are allowed to be set and valid.
// Should be called after logging is initialized. Otherwise
// logging will write to stderr.
void ValidateFlags();
enum class EscapeMode {
HTML,
NONE
};
// Stick the flags into a string. If redaction is enabled, the values of
// flags tagged as sensitive will be redacted. Otherwise, the values
// will be written to the string as-is. The values will be HTML escaped
// if EscapeMode is HTML.
std::string CommandlineFlagsIntoString(EscapeMode mode);
typedef std::unordered_map<std::string, google::CommandLineFlagInfo> GFlagsMap;
// Get all the flags different from their defaults. The output is a nicely
// formatted string with --flag=value pairs per line. Redact any flags that
// are tagged as sensitive, if redaction is enabled.
std::string GetNonDefaultFlags();
// Same as 'GetNonDefaultFlags' but returns the output as a map.
GFlagsMap GetNonDefaultFlagsMap();
GFlagsMap GetFlagsMap();
enum class TriStateFlag {
DISABLED,
OPTIONAL,
REQUIRED,
};
Status ParseTriState(const char* flag_name, const std::string& flag_value,
TriStateFlag* tri_state);
std::string CheckFlagAndRedact(const google::CommandLineFlagInfo& flag, EscapeMode mode);
bool GetBooleanEnvironmentVariable(const char* env_var_name);
} // namespace kudu
#endif /* KUDU_UTIL_FLAGS_H */
```
|
Irving Wayne Hardin (March 23, 1926 – April 12, 2017) was an American football player and coach. He served as the head football coach at the United States Naval Academy from 1959 to 1964 and at Temple University from 1970 to 1982, compiling a career college football record of 118–74–5. Hardin led Navy to appearances in the 1961 Orange Bowl and the 1964 Cotton Bowl Classic, and coached two Midshipmen to the Heisman Trophy, Joe Bellino in 1960 and Roger Staubach in 1963.
After leaving Navy, Hardin coached the Philadelphia Bulldogs of the Continental Football League, leading the team to a championship in 1966. Hardin was inducted into the College Football Hall of Fame as a coach in 2013.
Early life and playing career
Irving Wayne Hardin was born in Smackover, Arkansas, and attended high school in Stockton, California and Ceres, California at Ceres High School. He played college football at the College of the Pacific under Hall of Fame coach Amos Alonzo Stagg and his successor, Larry Siemering. Hardin won 11 varsity letters at Pacific before he graduated in 1950. He was inducted into the College of the Pacific's Athletics Hall of Fame in 1998. Coach Hardin was also a veteran of WWII. After his freshman year at Pacific he enlisted and served in the U.S. Coast Guard and served on the ship the USS Orlando PF-99.
Coaching career
After serving as a student assistant coach in 1949 at Pacific, Hardin began his professional coaching career in 1950 at Ceres High School in Ceres, California. There he coached football and basketball. Hardin returned to his alma mater, Pacific, in 1952 as the backfield coach under Ernie Jorge. He then moved on to Porterville College, a community college in Porterville, California, where in two seasons as head football coach, 1952 and 1953, he tallied a mark of 9–8. In 1955, Hardin was hired as an assistant football coach at the United States Naval Academy under Eddie Erdelatz.
From 1959 to 1964, Hardin was the head coach at Navy, where he compiled a 38–22–2 record. His Navy teams posted five consecutive wins against archrival Army, a feat not surpassed until 2007 when Paul Johnson's Navy squad won their sixth consecutive contest in the Army–Navy Game. Hardin coached Navy's two winners of the Heisman Trophy, Joe Bellino, who received the award in 1960, and Roger Staubach, who did so in 1963.
Hardin was the head coach at Temple from 1970 to 1982, where he compiled an 80–50–3 record. His 80 wins are the most in school history. Hardin coached numerous future professional players at Temple including New York Jets defensive lineman Joe Klecko, Pittsburgh Steelers tight end Randy Grossman, Kansas City Chiefs cornerback Kevin Ross, San Diego Chargers linebacker Bill Singletary, and New York Jets quarterback Steve Joachim, who won the Maxwell Award in 1974 playing for the Owls. Under Hardin, Temple's school-record 14-game winning streak over two seasons from 1973 into 1974 was the longest Division I winning streak at the time.
Hardin's 1979 squad was the most successful in Temple football's history. The team went 10–2 and finished the season ranked #17 in both major polls, the only Temple team to finish a campaign ranked. The 1979 team concluded their season with a victory in the 1979 Garden State Bowl over heavily favored Cal. Temple did not return to a bowl game until the 2009 season.
Hardin's career college record was 118–74–5.
After coaching
Hardin also spent time as a color commentator for CBS Sports for the Baltimore Colts. Hardin died at the age of 91 on April 12, 2017, after suffering a massive stroke in Oreland, Pennsylvania.
Head coaching record
College
References
External links
1926 births
2017 deaths
American football halfbacks
American football quarterbacks
American men's basketball players
Continental Football League coaches
Navy Midshipmen football coaches
Pacific Tigers football coaches
Pacific Tigers football players
Pacific Tigers men's basketball players
Temple Owls football coaches
High school basketball coaches in California
High school football coaches in California
Junior college football coaches in the United States
College Football Hall of Fame inductees
Baltimore Colts announcers
National Football League announcers
People from Ceres, California
Players of American football from Stanislaus County, California
People from Porterville, California
People from Smackover, Arkansas
Coaches of American football from California
Players of American football from Stockton, California
|
Michael E. McCormick is Corbin A. McNeill Professor Emeirtus of the Department of Naval Architecture and Ocean Engineering at the U. S. Naval Academy. He is one of the pioneers of modern wave energy research.
He began his career in 1958 as a hydrodynamicist at the U. S. Navy's David Taylor Model Basin. His early work there
was in the area of hydroelasticity, working with Dr. David A. Jewell. Later, in 1964 his work was in the area of boundary-layer induced vibrations, working with Dr. Mark Harrison and Dr. Gabriel
Boehler. In 1961, he
left DTMB and joined the mechanical engineering faculty at Swarthmore College with a one-year appointment. He returned to Swarthmore in 1976 as visiting scholar in engineering. His teaching and
research continued at the Catholic University of America, Trinity College (Hartford), the U. S. Naval Academy and Johns Hopkins University. He was at the Naval Academy for 27 years, and at Johns Hopkins as a research professor of civil engineering for 10 years.
Prof. McCormick’s research efforts also resulted in electrolytic drag reduction of marine vehicles, analysis of ocean wave energy conversion systems and wave-powered desalination of sea water using hinged-raft systems (working with Dr. Peter McCabe in Ireland). He was also fortunate to work with Prof. Rameswar Bhattacharyya in co-editing two book series and the journal Ocean Engineering.
Education
B.A. (Mathematics & Physics) American University,
M.S.E. (Engineering Mechanics) Catholic University of America,
Ph.D. (Mechanical Engineering) Catholic University of America,
Ph.D. (Civil Engineering) Trinity College, Dublin,
Sc.D. (Engineering-Science) Trinity College, Dublin
Books
, 178 pp.
, 256 pp.
, 256 pp.
, 573 pp.
External links
Living people
Alumni of Trinity College Dublin
Catholic University of America alumni
Year of birth missing (living people)
|
```go
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
//go:build !go1.18
// +build !go1.18
package gcimporter
import (
"fmt"
"go/token"
"go/types"
)
func UImportData(fset *token.FileSet, imports map[string]*types.Package, data []byte, path string) (_ int, pkg *types.Package, err error) {
err = fmt.Errorf("go/tools compiled with a Go version earlier than 1.18 cannot read unified IR export data")
return
}
```
|
Sergio Manuel Gutiérrez (born 28 May 1989) is a Colombian football goalkeeper, who currently plays for Millonarios in the Copa Mustang. Gutiérrez is a product of the Millonarios youth system and played with the Millonarios first team since January 2008.
References
1989 births
Living people
Footballers from Bogotá
Men's association football goalkeepers
Colombian men's footballers
Millonarios F.C. players
|
```c++
#include <Columns/Collator.h>
#include "config.h"
#if USE_ICU
# include <unicode/locid.h>
# include <unicode/ucnv.h>
# include <unicode/ucol.h>
# include <unicode/unistr.h>
#else
# pragma clang diagnostic ignored "-Wunused-private-field"
# pragma clang diagnostic ignored "-Wmissing-noreturn"
#endif
#include <Common/Exception.h>
#include <Poco/String.h>
#include <algorithm>
#include <base/sort.h>
namespace DB
{
namespace ErrorCodes
{
extern const int UNSUPPORTED_COLLATION_LOCALE;
extern const int COLLATION_COMPARISON_FAILED;
extern const int SUPPORT_IS_DISABLED;
}
}
AvailableCollationLocales::AvailableCollationLocales()
{
#if USE_ICU
static const size_t MAX_LANG_LENGTH = 128;
size_t available_locales_count = ucol_countAvailable();
for (size_t i = 0; i < available_locales_count; ++i)
{
std::string locale_name = ucol_getAvailable(i);
UChar lang_buffer[MAX_LANG_LENGTH];
char normal_buf[MAX_LANG_LENGTH];
UErrorCode status = U_ZERO_ERROR;
/// All names will be in English language
size_t lang_length = uloc_getDisplayLanguage(
locale_name.c_str(), "en", lang_buffer, MAX_LANG_LENGTH, &status);
std::optional<std::string> lang;
if (!U_FAILURE(status))
{
/// Convert language name from UChar array to normal char array.
/// We use English language for name, so all UChar's length is equal to sizeof(char)
u_UCharsToChars(lang_buffer, normal_buf, lang_length);
lang.emplace(std::string(normal_buf, lang_length));
}
locales_map.emplace(Poco::toLower(locale_name), LocaleAndLanguage{locale_name, lang});
}
#endif
}
const AvailableCollationLocales & AvailableCollationLocales::instance()
{
static AvailableCollationLocales instance;
return instance;
}
AvailableCollationLocales::LocalesVector AvailableCollationLocales::getAvailableCollations() const
{
LocalesVector result;
for (const auto & name_and_locale : locales_map)
result.push_back(name_and_locale.second);
auto comparator = [] (const LocaleAndLanguage & f, const LocaleAndLanguage & s)
{
return f.locale_name < s.locale_name;
};
::sort(result.begin(), result.end(), comparator);
return result;
}
bool AvailableCollationLocales::isCollationSupported(const std::string & locale_name) const
{
/// We support locale names in any case, so we have to convert all to lower case
return locales_map.contains(Poco::toLower(locale_name));
}
Collator::Collator(const std::string & locale_)
: locale(Poco::toLower(locale_))
{
#if USE_ICU
/// We check it here, because ucol_open will fallback to default locale for
/// almost all random names.
if (!AvailableCollationLocales::instance().isCollationSupported(locale))
throw DB::Exception(DB::ErrorCodes::UNSUPPORTED_COLLATION_LOCALE, "Unsupported collation locale: {}", locale);
UErrorCode status = U_ZERO_ERROR;
collator = ucol_open(locale.c_str(), &status);
if (U_FAILURE(status))
{
ucol_close(collator);
throw DB::Exception(DB::ErrorCodes::UNSUPPORTED_COLLATION_LOCALE, "Failed to open locale: {} with error: {}", locale, u_errorName(status));
}
#else
throw DB::Exception(DB::ErrorCodes::SUPPORT_IS_DISABLED,
"Collations support is disabled, because ClickHouse was built without ICU library");
#endif
}
Collator::~Collator() // NOLINT
{
#if USE_ICU
ucol_close(collator);
#endif
}
int Collator::compare(const char * str1, size_t length1, const char * str2, size_t length2) const
{
#if USE_ICU
UCharIterator iter1, iter2;
uiter_setUTF8(&iter1, str1, length1);
uiter_setUTF8(&iter2, str2, length2);
UErrorCode status = U_ZERO_ERROR;
UCollationResult compare_result = ucol_strcollIter(collator, &iter1, &iter2, &status);
if (U_FAILURE(status))
throw DB::Exception(DB::ErrorCodes::COLLATION_COMPARISON_FAILED, "ICU collation comparison failed with error code: {}",
std::string(u_errorName(status)));
/** Values of enum UCollationResult are equals to what exactly we need:
* UCOL_EQUAL = 0
* UCOL_GREATER = 1
* UCOL_LESS = -1
*/
return compare_result;
#else
(void)str1;
(void)length1;
(void)str2;
(void)length2;
return 0;
#endif
}
const std::string & Collator::getLocale() const
{
return locale;
}
```
|
The Koocheh music festival is a local and traditional music festival held annually in the city of Bushehr. It hosts local music groups from all over Iran, with an aim to preserve the local singing and musical heritage.
This event was also held in Mumbai, India on September 9, 2018, under the name "Koocheh Culture Persian Arts Nights."
Establishment and Organization
Ehsan Abdipour, one of the organizers of this festival, has said:
"The Koocheh Music Festival is completely independent and is held without financial support from any individual or organization. The charter of this festival does not consider any profits or salaries for the organizers and ticket sales are only carried out with the aim of covering the costs of organizing and paying the musical groups."
Mohsen Sharifian is also a prominent figure in organizing and establishing this festival.
References
Arts festivals in Iran
Music festivals in Iran
Music festivals
Festivals in Iran
|
The 3.7 cm SockelFlak L/14.5 was an early German light anti-aircraft gun deployed in limited numbers towards the end of the First World War.
History
The SockelFlak started life as defensive armament for Zeppelin airships against fighter attack. However, once defenders discovered that airships filled with hydrogen were vulnerable to machine guns firing tracer ammunition Zeppelin losses mounted and the Germans switched to less vulnerable bomber aircraft. This meant that the SockelFlak needed to find a new role.
As the threat posed by ground attack aircraft increased the need for specialized anti-aircraft guns also increased. At first, all of the combatants employed heavy machine guns and light field guns on improvised anti-aircraft mounts to combat reconnaissance and ground attack aircraft. Heavy machine guns were often placed on improvised pedestal mounts while light field guns were typically propped up on earthen embankments or scaffolds to point the muzzle pointed skyward. A heavy machine gun was capable of shooting down an attacking aircraft but the amount of time on target was brief and the probability of scoring a killing blow with rifle caliber rounds wasn't that great. While a medium caliber anti-aircraft gun was capable of destroying an attacking aircraft with one shot but its slow rate of fire combined with its slow elevation and traverse limited its usefulness against small fast moving targets at short range. Instead, the niche for medium caliber anti-aircraft guns was as a barrage weapon firing timed explosives at distant targets. What was needed was a fast firing, mobile, and easy to wield weapon which could fire a small explosive round to destroy an attacking aircraft with a few well-placed shots. It was under these conditions that the SockelFlak was redesigned to fulfill the light anti-aircraft role.
Design
The SockelFlak was a gas-operated automatic cannon which fired a steel base fused explosive round with two brass driving bands. The gun was mounted on a light three-legged pedestal mount with a seat for the gunner and could be broken down into four loads for short-range transport or carried in one piece on a cart by a two-horse team for longer trips. There were two spade grips for aiming and the gun was fired by a trigger operated by the gunner's knee while seated. Since the gun wasn't originally meant for field use it was prone to stoppages due to dust and dirt. It had a cyclic rate of fire of 120 rounds per minute but its top loaded 10 round clip was slow to change which meant that although easy to wield it had a limited time on target and slow practical rate of fire. The first 20 guns were delivered in December 1917 and by the time of the armistice, there were 150 in service.
References
37 mm artillery
World War I anti-aircraft guns
Anti-aircraft guns of Germany
Autocannon
|
```objective-c
/*
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef GrMurmur3HashKey_DEFINED
#define GrMurmur3HashKey_DEFINED
#include "SkChecksum.h"
#include "GrTypes.h"
/**
* GrMurmur3HashKey is a hash key class that can take a data chunk of any predetermined
* length. It uses the Murmur3 hash function. It is intended to be used with
* SkTDynamicHash.
*/
template<size_t KEY_SIZE_IN_BYTES>
class GrMurmur3HashKey {
public:
GrMurmur3HashKey() {
this->reset();
}
void reset() {
fHash = 0;
#ifdef SK_DEBUG
fIsValid = false;
#endif
}
void setKeyData(const uint32_t* data) {
SK_COMPILE_ASSERT(KEY_SIZE_IN_BYTES % 4 == 0, key_size_mismatch);
memcpy(fData, data, KEY_SIZE_IN_BYTES);
fHash = SkChecksum::Murmur3(fData, KEY_SIZE_IN_BYTES);
#ifdef SK_DEBUG
fIsValid = true;
#endif
}
bool operator==(const GrMurmur3HashKey& other) const {
if (fHash != other.fHash) {
return false;
}
return !memcmp(fData, other.fData, KEY_SIZE_IN_BYTES);
}
uint32_t getHash() const {
SkASSERT(fIsValid);
return fHash;
}
const uint8_t* getData() const {
SkASSERT(fIsValid);
return reinterpret_cast<const uint8_t*>(fData);
}
private:
uint32_t fHash;
uint32_t fData[KEY_SIZE_IN_BYTES / sizeof(uint32_t)]; // Buffer for key storage.
#ifdef SK_DEBUG
public:
bool fIsValid;
#endif
};
#endif
```
|
The men's 200 metre freestyle competition of the swimming events at the 1973 World Aquatics Championships took place on September 4.
Records
Prior to the competition, the existing world and championship records were as follows.
The following records were established during the competition:
Results
Heats
?? swimmers participated in 6 heats, qualified swimmers are listed:
Final
The results of the final are below.
References
Freestyle 0200 metre, men's
World Aquatics Championships
|
Piccadilly Circus is a London Underground station located directly beneath Piccadilly Circus itself, with entrances at every corner. Located in Travel-card Zone 1, the station is on the Piccadilly line between Green Park and Leicester Square and on the Bakerloo line between Charing Cross and Oxford Circus.
History
The station was opened on 10 March 1906 by the Baker Street and Waterloo Railway (now the Bakerloo line) with the platforms of the Great Northern, Piccadilly and Brompton Railway (now the Piccadilly line) being opened on 15 December 1906. As originally built it had, like other stations, a surface booking hall (designed, like many in central London built at that time, by Leslie Green). The development of traffic before and after World War I meant that the need for improved station facilities was acute – in 1907 1.5 million passengers used the station, by 1922 it had grown to 18 million passengers. It was decided to construct a sub-surface booking hall and circulating area, which would also provide public pedestrian subways. Work began in February 1925 and was completed in 1928. The architect was Charles Holden and the builder was John Mowlem & Co: the whole complex cost more than half-a-million pounds. Eleven escalators were provided in two flights, leading to the two lines serving the station. Above these escalators was once a mural by artist Stephen Bone, showing the world with London at its centre. This mural was later replaced by advertising. The famous Shaftesbury Memorial Fountain (alias Eros), directly above the station, had to be moved to Victoria Embankment Gardens while the construction work was taking place.
The old station building designed by Leslie Green finally closed for traffic on 21 July 1929, it was demolished in the 1980s when the large building on the corner of Jermyn Street, Piccadilly and Haymarket was constructed; although parts of it remain preserved in disused areas.
The Bakerloo line platforms at Piccadilly Circus offer a unique view on the network: the back to back layout is itself unusual, but the single tunnel containing a crossover at the north end of the station allows passengers to see both platforms at once.
This station can act as an intermediate terminus for southbound Bakerloo line trains. Piccadilly Circus is one of the few London Underground stations which have no associated buildings above ground.
London Transport Museum frequently runs guided tours of the original Edwardian parts of the station through its "Hidden London" programme.
Artwork
In 2016, Art on the Underground commissioned artists Langlands & Bell to create an artwork to commemorate Frank Pick, the former CEO of London Transport, on the 75th anniversary of his death. The artwork Beauty < Immortality is located in a prominent place on the wall of the ticket hall, with a Frank Pick tube roundel and bronze lettering in Johnston – a typeface commissioned by Pick in 1915, which is still used across the London transport network today.
Future
Piccadilly Circus is a proposed stop on the Chelsea-Hackney Line, also known as the Crossrail 2. It would be between Victoria and Tottenham Court Road stations. Effectively a new station would have to be built under the existing levels, possibly as part of a major overhaul of the existing buildings. However, there will only be a stop at Piccadilly Circus if the Chelsea-Hackney Line is part of the London Underground network and not part of the National Rail network. This is the same situation with many stations on the proposed route in Central London.
Connections
London Buses routes 9, 12, 14, 19, 23, 38, 88, 94, 139, 159, 453 and night routes N3, N9, N15, N18, N19, N38, N97, N109, N113 and N136 serve the station.
References
External links
London Transport Museum Photographic Archive
Bakerloo line stations
Piccadilly line stations
London Underground Night Tube stations
Proposed Chelsea-Hackney Line stations
Tube stations in the City of Westminster
Former Baker Street and Waterloo Railway stations
Former Great Northern, Piccadilly and Brompton Railway stations
Railway stations in Great Britain opened in 1906
Charles Holden railway stations
Tube station
Buildings and structures in Mayfair
Grade II listed buildings in the City of Westminster
Grade II listed railway stations
Art Deco architecture in London
1906 establishments in England
|
```java
package cn.crap.enu;
public enum ArticleType {
DICTIONARY(""), ARTICLE("");
private final String name;
public static String getByEnumName(String enumName){
for( ArticleType article : ArticleType.values()){
if(article.name().equals(enumName)){
return article.getName();
}
}
return "";
}
ArticleType(String name){
this.name = name;
}
public String getName(){
return name;
}
}
```
|
```java
package com.yahoo.searchlib.expression;
/**
* This function is an instruction to negate its argument.
*
* @author baldersheim
* @author Simon Thoresen Hult
*/
public class NegateFunctionNode extends UnaryFunctionNode {
public static final int classId = registerClass(0x4000 + 60, NegateFunctionNode.class, NegateFunctionNode::new);
/**
* Constructs an empty result node. <b>NOTE:</b> This instance is broken until non-optional member data is set.
*/
public NegateFunctionNode() {
}
/**
* Constructs an instance of this class with given argument.
*
* @param arg The argument for this function.
*/
public NegateFunctionNode(ExpressionNode arg) {
addArg(arg);
}
@Override
public void onPrepare() {
super.onPrepare();
}
@Override
public boolean onExecute() {
getArg().execute();
getResult().set(getArg().getResult());
getResult().negate();
return true;
}
@Override
protected int onGetClassId() {
return classId;
}
@Override
protected boolean equalsUnaryFunction(UnaryFunctionNode obj) {
return true;
}
}
```
|
```python
#
# This fishes the clang-tidy binary out of the related python package.
#
# This is useful as using the binary through the python entry_point adds a lot of overhead.
#
# ```starlark
#
# load("@base_pip3//:requirements.bzl", "requirement")
#
# clang_tidy(
# name = "clang-tidy",
# target = requirement("clang-tidy"),
# )
#
# ```
#
# The exposed binary can also be run directly:
#
# ```console
#
# $ bazel run //tools/clang-tidy -- --version
#
# ```
#
def _clang_tidy_impl(ctx):
clang_bin = None
for file in ctx.attr.target[DefaultInfo].data_runfiles.files.to_list():
if file.basename == "clang-tidy" and file.dirname.split("/").pop() == "bin":
clang_bin = file
break
if not clang_bin:
fail("Unable to find clang-tidy file in package")
output_file = ctx.actions.declare_file("clang-tidy")
args = ctx.actions.args()
args.add(clang_bin.path)
args.add(output_file.path)
ctx.actions.run(
outputs = [output_file],
inputs = [clang_bin],
arguments = [args],
executable = "cp",
mnemonic = "ClangTidyGetter",
)
return [DefaultInfo(
executable = output_file,
files = depset([output_file]),
)]
clang_tidy = rule(
implementation = _clang_tidy_impl,
attrs = {
"target": attr.label(
allow_files = True,
),
},
executable = True,
)
```
|
John of Béthune (; died 1238) was a French nobleman and military leader in the County of Artois.
John was the fifth son of William II, lord of Béthune, and Matilda, heiress of Dendermonde. As such, he inherited little money and no land. His eldest brother, Daniel, lord of Béthune, was the first husband of Eustachie, daughter of Lord Gaucher III of Châtillon and the Countess Elisabeth of Saint-Pol. In 1228, between June and November, John married the widowed Elisabeth, who was almost forty. They had no children.
John is first attested in 1220. In 1223, he subscribed his mother's act founding an abbey dedicated to Saint Giles in Dendermonde. According to Alain Derville, John served the King of England in a military capacity before returning to Artois. According to the chronicler Philippe Mousket, he led the armies of Count Ferdinand of Flanders against Duke Henry I of Brabant in 1227 in support of the lord of Enghien.
John's marriage the following year was probably meant to seal an alliance between Elisabeth and Ferdinand against Philip Hurepel, who was challenging Blanche of Castile for the regency of France. The marriage was within the prohibited degree of kinship, but the attempts of Enguerrand of Coucy and Elisabeth's son Hugh V to have it annulled failed. As husband of the countess of Saint-Pol, John was deputed to receive the homage of the abbot of Anchin. According to William of Andres, Ferdinand invaded Saint-Pol in 1229, but was defeated by Elisabeth's son Hugh, an ally of Hurepel. After this, John's role in his wife's life ceased, although the rights he had acquired in Encre through her were recognized by Hugh in 1233.
Afterwards, John went to the Latin Empire of Constantinople. He returned to the west with the Emperor Baldwin II in 1236 and was given command of the army raised by Baldwin to retake Constantinople from John of Brienne. He set out for the east in early 1238. When the army's passage through Italy was blocked by the German emperor Frederick II, who preferred an alliance with Bulgaria over Baldwin, John of Béthune gave himself as a hostage to Frederick. The army was allowed to pass, but soon after his release John died at Venice. His death caused the army to disintegrate.
References
1238 deaths
People from Béthune
Latin Empire people
|
Afrabon-e Do (, also Romanized as Āfrābon-e Do) is a village in Sajjadrud Rural District, Bandpey-ye Sharqi District, Babol County, Mazandaran Province, Iran. At the 2006 census, its population was 410, in 100 families.
References
Populated places in Babol County
|
```javascript
function getExn(x) {
if (x.TAG === "Ok") {
return x._0;
}
throw new Error("Not_found", {
cause: {
RE_EXN_ID: "Not_found"
}
});
}
function mapWithDefault(opt, $$default, f) {
if (opt.TAG === "Ok") {
return f(opt._0);
} else {
return $$default;
}
}
function map(opt, f) {
if (opt.TAG === "Ok") {
return {
TAG: "Ok",
_0: f(opt._0)
};
} else {
return {
TAG: "Error",
_0: opt._0
};
}
}
function flatMap(opt, f) {
if (opt.TAG === "Ok") {
return f(opt._0);
} else {
return {
TAG: "Error",
_0: opt._0
};
}
}
function getWithDefault(opt, $$default) {
if (opt.TAG === "Ok") {
return opt._0;
} else {
return $$default;
}
}
function isOk(x) {
if (x.TAG === "Ok") {
return true;
} else {
return false;
}
}
function isError(x) {
if (x.TAG === "Ok") {
return false;
} else {
return true;
}
}
function eq(a, b, f) {
if (a.TAG === "Ok") {
if (b.TAG === "Ok") {
return f(a._0, b._0);
} else {
return false;
}
} else if (b.TAG === "Ok") {
return false;
} else {
return true;
}
}
function cmp(a, b, f) {
if (a.TAG === "Ok") {
if (b.TAG === "Ok") {
return f(a._0, b._0);
} else {
return 1;
}
} else if (b.TAG === "Ok") {
return -1;
} else {
return 0;
}
}
let mapWithDefaultU = mapWithDefault;
let mapU = map;
let flatMapU = flatMap;
let eqU = eq;
let cmpU = cmp;
export {
getExn,
mapWithDefaultU,
mapWithDefault,
mapU,
map,
flatMapU,
flatMap,
getWithDefault,
isOk,
isError,
eqU,
eq,
cmpU,
cmp,
}
/* No side effect */
```
|
```objective-c
#ifndef CAPSTONE_MIPS_H
#define CAPSTONE_MIPS_H
/* Capstone Disassembly Engine */
/* By Nguyen Anh Quynh <aquynh@gmail.com>, 2013-2015 */
#ifdef __cplusplus
extern "C" {
#endif
#include "platform.h"
// GCC MIPS toolchain has a default macro called "mips" which breaks
// compilation
#undef mips
#ifdef _MSC_VER
#pragma warning(disable:4201)
#endif
/// Operand type for instruction's operands
typedef enum mips_op_type {
MIPS_OP_INVALID = 0, ///< = CS_OP_INVALID (Uninitialized).
MIPS_OP_REG, ///< = CS_OP_REG (Register operand).
MIPS_OP_IMM, ///< = CS_OP_IMM (Immediate operand).
MIPS_OP_MEM, ///< = CS_OP_MEM (Memory operand).
} mips_op_type;
/// MIPS registers
typedef enum mips_reg {
MIPS_REG_INVALID = 0,
// General purpose registers
MIPS_REG_PC,
MIPS_REG_0,
MIPS_REG_1,
MIPS_REG_2,
MIPS_REG_3,
MIPS_REG_4,
MIPS_REG_5,
MIPS_REG_6,
MIPS_REG_7,
MIPS_REG_8,
MIPS_REG_9,
MIPS_REG_10,
MIPS_REG_11,
MIPS_REG_12,
MIPS_REG_13,
MIPS_REG_14,
MIPS_REG_15,
MIPS_REG_16,
MIPS_REG_17,
MIPS_REG_18,
MIPS_REG_19,
MIPS_REG_20,
MIPS_REG_21,
MIPS_REG_22,
MIPS_REG_23,
MIPS_REG_24,
MIPS_REG_25,
MIPS_REG_26,
MIPS_REG_27,
MIPS_REG_28,
MIPS_REG_29,
MIPS_REG_30,
MIPS_REG_31,
// DSP registers
MIPS_REG_DSPCCOND,
MIPS_REG_DSPCARRY,
MIPS_REG_DSPEFI,
MIPS_REG_DSPOUTFLAG,
MIPS_REG_DSPOUTFLAG16_19,
MIPS_REG_DSPOUTFLAG20,
MIPS_REG_DSPOUTFLAG21,
MIPS_REG_DSPOUTFLAG22,
MIPS_REG_DSPOUTFLAG23,
MIPS_REG_DSPPOS,
MIPS_REG_DSPSCOUNT,
// ACC registers
MIPS_REG_AC0,
MIPS_REG_AC1,
MIPS_REG_AC2,
MIPS_REG_AC3,
// COP registers
MIPS_REG_CC0,
MIPS_REG_CC1,
MIPS_REG_CC2,
MIPS_REG_CC3,
MIPS_REG_CC4,
MIPS_REG_CC5,
MIPS_REG_CC6,
MIPS_REG_CC7,
// FPU registers
MIPS_REG_F0,
MIPS_REG_F1,
MIPS_REG_F2,
MIPS_REG_F3,
MIPS_REG_F4,
MIPS_REG_F5,
MIPS_REG_F6,
MIPS_REG_F7,
MIPS_REG_F8,
MIPS_REG_F9,
MIPS_REG_F10,
MIPS_REG_F11,
MIPS_REG_F12,
MIPS_REG_F13,
MIPS_REG_F14,
MIPS_REG_F15,
MIPS_REG_F16,
MIPS_REG_F17,
MIPS_REG_F18,
MIPS_REG_F19,
MIPS_REG_F20,
MIPS_REG_F21,
MIPS_REG_F22,
MIPS_REG_F23,
MIPS_REG_F24,
MIPS_REG_F25,
MIPS_REG_F26,
MIPS_REG_F27,
MIPS_REG_F28,
MIPS_REG_F29,
MIPS_REG_F30,
MIPS_REG_F31,
MIPS_REG_FCC0,
MIPS_REG_FCC1,
MIPS_REG_FCC2,
MIPS_REG_FCC3,
MIPS_REG_FCC4,
MIPS_REG_FCC5,
MIPS_REG_FCC6,
MIPS_REG_FCC7,
// AFPR128
MIPS_REG_W0,
MIPS_REG_W1,
MIPS_REG_W2,
MIPS_REG_W3,
MIPS_REG_W4,
MIPS_REG_W5,
MIPS_REG_W6,
MIPS_REG_W7,
MIPS_REG_W8,
MIPS_REG_W9,
MIPS_REG_W10,
MIPS_REG_W11,
MIPS_REG_W12,
MIPS_REG_W13,
MIPS_REG_W14,
MIPS_REG_W15,
MIPS_REG_W16,
MIPS_REG_W17,
MIPS_REG_W18,
MIPS_REG_W19,
MIPS_REG_W20,
MIPS_REG_W21,
MIPS_REG_W22,
MIPS_REG_W23,
MIPS_REG_W24,
MIPS_REG_W25,
MIPS_REG_W26,
MIPS_REG_W27,
MIPS_REG_W28,
MIPS_REG_W29,
MIPS_REG_W30,
MIPS_REG_W31,
MIPS_REG_HI,
MIPS_REG_LO,
MIPS_REG_P0,
MIPS_REG_P1,
MIPS_REG_P2,
MIPS_REG_MPL0,
MIPS_REG_MPL1,
MIPS_REG_MPL2,
MIPS_REG_ENDING, // <-- mark the end of the list or registers
// alias registers
MIPS_REG_ZERO = MIPS_REG_0,
MIPS_REG_AT = MIPS_REG_1,
MIPS_REG_V0 = MIPS_REG_2,
MIPS_REG_V1 = MIPS_REG_3,
MIPS_REG_A0 = MIPS_REG_4,
MIPS_REG_A1 = MIPS_REG_5,
MIPS_REG_A2 = MIPS_REG_6,
MIPS_REG_A3 = MIPS_REG_7,
MIPS_REG_T0 = MIPS_REG_8,
MIPS_REG_T1 = MIPS_REG_9,
MIPS_REG_T2 = MIPS_REG_10,
MIPS_REG_T3 = MIPS_REG_11,
MIPS_REG_T4 = MIPS_REG_12,
MIPS_REG_T5 = MIPS_REG_13,
MIPS_REG_T6 = MIPS_REG_14,
MIPS_REG_T7 = MIPS_REG_15,
MIPS_REG_S0 = MIPS_REG_16,
MIPS_REG_S1 = MIPS_REG_17,
MIPS_REG_S2 = MIPS_REG_18,
MIPS_REG_S3 = MIPS_REG_19,
MIPS_REG_S4 = MIPS_REG_20,
MIPS_REG_S5 = MIPS_REG_21,
MIPS_REG_S6 = MIPS_REG_22,
MIPS_REG_S7 = MIPS_REG_23,
MIPS_REG_T8 = MIPS_REG_24,
MIPS_REG_T9 = MIPS_REG_25,
MIPS_REG_K0 = MIPS_REG_26,
MIPS_REG_K1 = MIPS_REG_27,
MIPS_REG_GP = MIPS_REG_28,
MIPS_REG_SP = MIPS_REG_29,
MIPS_REG_FP = MIPS_REG_30, MIPS_REG_S8 = MIPS_REG_30,
MIPS_REG_RA = MIPS_REG_31,
MIPS_REG_HI0 = MIPS_REG_AC0,
MIPS_REG_HI1 = MIPS_REG_AC1,
MIPS_REG_HI2 = MIPS_REG_AC2,
MIPS_REG_HI3 = MIPS_REG_AC3,
MIPS_REG_LO0 = MIPS_REG_HI0,
MIPS_REG_LO1 = MIPS_REG_HI1,
MIPS_REG_LO2 = MIPS_REG_HI2,
MIPS_REG_LO3 = MIPS_REG_HI3,
} mips_reg;
/// Instruction's operand referring to memory
/// This is associated with MIPS_OP_MEM operand type above
typedef struct mips_op_mem {
mips_reg base; ///< base register
int64_t disp; ///< displacement/offset value
} mips_op_mem;
/// Instruction operand
typedef struct cs_mips_op {
mips_op_type type; ///< operand type
union {
mips_reg reg; ///< register value for REG operand
int64_t imm; ///< immediate value for IMM operand
mips_op_mem mem; ///< base/index/scale/disp value for MEM operand
};
} cs_mips_op;
/// Instruction structure
typedef struct cs_mips {
/// Number of operands of this instruction,
/// or 0 when instruction has no operand.
uint8_t op_count;
cs_mips_op operands[10]; ///< operands for this instruction.
} cs_mips;
/// MIPS instruction
typedef enum mips_insn {
MIPS_INS_INVALID = 0,
MIPS_INS_ABSQ_S,
MIPS_INS_ADD,
MIPS_INS_ADDIUPC,
MIPS_INS_ADDIUR1SP,
MIPS_INS_ADDIUR2,
MIPS_INS_ADDIUS5,
MIPS_INS_ADDIUSP,
MIPS_INS_ADDQH,
MIPS_INS_ADDQH_R,
MIPS_INS_ADDQ,
MIPS_INS_ADDQ_S,
MIPS_INS_ADDSC,
MIPS_INS_ADDS_A,
MIPS_INS_ADDS_S,
MIPS_INS_ADDS_U,
MIPS_INS_ADDU16,
MIPS_INS_ADDUH,
MIPS_INS_ADDUH_R,
MIPS_INS_ADDU,
MIPS_INS_ADDU_S,
MIPS_INS_ADDVI,
MIPS_INS_ADDV,
MIPS_INS_ADDWC,
MIPS_INS_ADD_A,
MIPS_INS_ADDI,
MIPS_INS_ADDIU,
MIPS_INS_ALIGN,
MIPS_INS_ALUIPC,
MIPS_INS_AND,
MIPS_INS_AND16,
MIPS_INS_ANDI16,
MIPS_INS_ANDI,
MIPS_INS_APPEND,
MIPS_INS_ASUB_S,
MIPS_INS_ASUB_U,
MIPS_INS_AUI,
MIPS_INS_AUIPC,
MIPS_INS_AVER_S,
MIPS_INS_AVER_U,
MIPS_INS_AVE_S,
MIPS_INS_AVE_U,
MIPS_INS_B16,
MIPS_INS_BADDU,
MIPS_INS_BAL,
MIPS_INS_BALC,
MIPS_INS_BALIGN,
MIPS_INS_BBIT0,
MIPS_INS_BBIT032,
MIPS_INS_BBIT1,
MIPS_INS_BBIT132,
MIPS_INS_BC,
MIPS_INS_BC0F,
MIPS_INS_BC0FL,
MIPS_INS_BC0T,
MIPS_INS_BC0TL,
MIPS_INS_BC1EQZ,
MIPS_INS_BC1F,
MIPS_INS_BC1FL,
MIPS_INS_BC1NEZ,
MIPS_INS_BC1T,
MIPS_INS_BC1TL,
MIPS_INS_BC2EQZ,
MIPS_INS_BC2F,
MIPS_INS_BC2FL,
MIPS_INS_BC2NEZ,
MIPS_INS_BC2T,
MIPS_INS_BC2TL,
MIPS_INS_BC3F,
MIPS_INS_BC3FL,
MIPS_INS_BC3T,
MIPS_INS_BC3TL,
MIPS_INS_BCLRI,
MIPS_INS_BCLR,
MIPS_INS_BEQ,
MIPS_INS_BEQC,
MIPS_INS_BEQL,
MIPS_INS_BEQZ16,
MIPS_INS_BEQZALC,
MIPS_INS_BEQZC,
MIPS_INS_BGEC,
MIPS_INS_BGEUC,
MIPS_INS_BGEZ,
MIPS_INS_BGEZAL,
MIPS_INS_BGEZALC,
MIPS_INS_BGEZALL,
MIPS_INS_BGEZALS,
MIPS_INS_BGEZC,
MIPS_INS_BGEZL,
MIPS_INS_BGTZ,
MIPS_INS_BGTZALC,
MIPS_INS_BGTZC,
MIPS_INS_BGTZL,
MIPS_INS_BINSLI,
MIPS_INS_BINSL,
MIPS_INS_BINSRI,
MIPS_INS_BINSR,
MIPS_INS_BITREV,
MIPS_INS_BITSWAP,
MIPS_INS_BLEZ,
MIPS_INS_BLEZALC,
MIPS_INS_BLEZC,
MIPS_INS_BLEZL,
MIPS_INS_BLTC,
MIPS_INS_BLTUC,
MIPS_INS_BLTZ,
MIPS_INS_BLTZAL,
MIPS_INS_BLTZALC,
MIPS_INS_BLTZALL,
MIPS_INS_BLTZALS,
MIPS_INS_BLTZC,
MIPS_INS_BLTZL,
MIPS_INS_BMNZI,
MIPS_INS_BMNZ,
MIPS_INS_BMZI,
MIPS_INS_BMZ,
MIPS_INS_BNE,
MIPS_INS_BNEC,
MIPS_INS_BNEGI,
MIPS_INS_BNEG,
MIPS_INS_BNEL,
MIPS_INS_BNEZ16,
MIPS_INS_BNEZALC,
MIPS_INS_BNEZC,
MIPS_INS_BNVC,
MIPS_INS_BNZ,
MIPS_INS_BOVC,
MIPS_INS_BPOSGE32,
MIPS_INS_BREAK,
MIPS_INS_BREAK16,
MIPS_INS_BSELI,
MIPS_INS_BSEL,
MIPS_INS_BSETI,
MIPS_INS_BSET,
MIPS_INS_BZ,
MIPS_INS_BEQZ,
MIPS_INS_B,
MIPS_INS_BNEZ,
MIPS_INS_BTEQZ,
MIPS_INS_BTNEZ,
MIPS_INS_CACHE,
MIPS_INS_CEIL,
MIPS_INS_CEQI,
MIPS_INS_CEQ,
MIPS_INS_CFC1,
MIPS_INS_CFCMSA,
MIPS_INS_CINS,
MIPS_INS_CINS32,
MIPS_INS_CLASS,
MIPS_INS_CLEI_S,
MIPS_INS_CLEI_U,
MIPS_INS_CLE_S,
MIPS_INS_CLE_U,
MIPS_INS_CLO,
MIPS_INS_CLTI_S,
MIPS_INS_CLTI_U,
MIPS_INS_CLT_S,
MIPS_INS_CLT_U,
MIPS_INS_CLZ,
MIPS_INS_CMPGDU,
MIPS_INS_CMPGU,
MIPS_INS_CMPU,
MIPS_INS_CMP,
MIPS_INS_COPY_S,
MIPS_INS_COPY_U,
MIPS_INS_CTC1,
MIPS_INS_CTCMSA,
MIPS_INS_CVT,
MIPS_INS_C,
MIPS_INS_CMPI,
MIPS_INS_DADD,
MIPS_INS_DADDI,
MIPS_INS_DADDIU,
MIPS_INS_DADDU,
MIPS_INS_DAHI,
MIPS_INS_DALIGN,
MIPS_INS_DATI,
MIPS_INS_DAUI,
MIPS_INS_DBITSWAP,
MIPS_INS_DCLO,
MIPS_INS_DCLZ,
MIPS_INS_DDIV,
MIPS_INS_DDIVU,
MIPS_INS_DERET,
MIPS_INS_DEXT,
MIPS_INS_DEXTM,
MIPS_INS_DEXTU,
MIPS_INS_DI,
MIPS_INS_DINS,
MIPS_INS_DINSM,
MIPS_INS_DINSU,
MIPS_INS_DIV,
MIPS_INS_DIVU,
MIPS_INS_DIV_S,
MIPS_INS_DIV_U,
MIPS_INS_DLSA,
MIPS_INS_DMFC0,
MIPS_INS_DMFC1,
MIPS_INS_DMFC2,
MIPS_INS_DMOD,
MIPS_INS_DMODU,
MIPS_INS_DMTC0,
MIPS_INS_DMTC1,
MIPS_INS_DMTC2,
MIPS_INS_DMUH,
MIPS_INS_DMUHU,
MIPS_INS_DMUL,
MIPS_INS_DMULT,
MIPS_INS_DMULTU,
MIPS_INS_DMULU,
MIPS_INS_DOTP_S,
MIPS_INS_DOTP_U,
MIPS_INS_DPADD_S,
MIPS_INS_DPADD_U,
MIPS_INS_DPAQX_SA,
MIPS_INS_DPAQX_S,
MIPS_INS_DPAQ_SA,
MIPS_INS_DPAQ_S,
MIPS_INS_DPAU,
MIPS_INS_DPAX,
MIPS_INS_DPA,
MIPS_INS_DPOP,
MIPS_INS_DPSQX_SA,
MIPS_INS_DPSQX_S,
MIPS_INS_DPSQ_SA,
MIPS_INS_DPSQ_S,
MIPS_INS_DPSUB_S,
MIPS_INS_DPSUB_U,
MIPS_INS_DPSU,
MIPS_INS_DPSX,
MIPS_INS_DPS,
MIPS_INS_DROTR,
MIPS_INS_DROTR32,
MIPS_INS_DROTRV,
MIPS_INS_DSBH,
MIPS_INS_DSHD,
MIPS_INS_DSLL,
MIPS_INS_DSLL32,
MIPS_INS_DSLLV,
MIPS_INS_DSRA,
MIPS_INS_DSRA32,
MIPS_INS_DSRAV,
MIPS_INS_DSRL,
MIPS_INS_DSRL32,
MIPS_INS_DSRLV,
MIPS_INS_DSUB,
MIPS_INS_DSUBU,
MIPS_INS_EHB,
MIPS_INS_EI,
MIPS_INS_ERET,
MIPS_INS_EXT,
MIPS_INS_EXTP,
MIPS_INS_EXTPDP,
MIPS_INS_EXTPDPV,
MIPS_INS_EXTPV,
MIPS_INS_EXTRV_RS,
MIPS_INS_EXTRV_R,
MIPS_INS_EXTRV_S,
MIPS_INS_EXTRV,
MIPS_INS_EXTR_RS,
MIPS_INS_EXTR_R,
MIPS_INS_EXTR_S,
MIPS_INS_EXTR,
MIPS_INS_EXTS,
MIPS_INS_EXTS32,
MIPS_INS_ABS,
MIPS_INS_FADD,
MIPS_INS_FCAF,
MIPS_INS_FCEQ,
MIPS_INS_FCLASS,
MIPS_INS_FCLE,
MIPS_INS_FCLT,
MIPS_INS_FCNE,
MIPS_INS_FCOR,
MIPS_INS_FCUEQ,
MIPS_INS_FCULE,
MIPS_INS_FCULT,
MIPS_INS_FCUNE,
MIPS_INS_FCUN,
MIPS_INS_FDIV,
MIPS_INS_FEXDO,
MIPS_INS_FEXP2,
MIPS_INS_FEXUPL,
MIPS_INS_FEXUPR,
MIPS_INS_FFINT_S,
MIPS_INS_FFINT_U,
MIPS_INS_FFQL,
MIPS_INS_FFQR,
MIPS_INS_FILL,
MIPS_INS_FLOG2,
MIPS_INS_FLOOR,
MIPS_INS_FMADD,
MIPS_INS_FMAX_A,
MIPS_INS_FMAX,
MIPS_INS_FMIN_A,
MIPS_INS_FMIN,
MIPS_INS_MOV,
MIPS_INS_FMSUB,
MIPS_INS_FMUL,
MIPS_INS_MUL,
MIPS_INS_NEG,
MIPS_INS_FRCP,
MIPS_INS_FRINT,
MIPS_INS_FRSQRT,
MIPS_INS_FSAF,
MIPS_INS_FSEQ,
MIPS_INS_FSLE,
MIPS_INS_FSLT,
MIPS_INS_FSNE,
MIPS_INS_FSOR,
MIPS_INS_FSQRT,
MIPS_INS_SQRT,
MIPS_INS_FSUB,
MIPS_INS_SUB,
MIPS_INS_FSUEQ,
MIPS_INS_FSULE,
MIPS_INS_FSULT,
MIPS_INS_FSUNE,
MIPS_INS_FSUN,
MIPS_INS_FTINT_S,
MIPS_INS_FTINT_U,
MIPS_INS_FTQ,
MIPS_INS_FTRUNC_S,
MIPS_INS_FTRUNC_U,
MIPS_INS_HADD_S,
MIPS_INS_HADD_U,
MIPS_INS_HSUB_S,
MIPS_INS_HSUB_U,
MIPS_INS_ILVEV,
MIPS_INS_ILVL,
MIPS_INS_ILVOD,
MIPS_INS_ILVR,
MIPS_INS_INS,
MIPS_INS_INSERT,
MIPS_INS_INSV,
MIPS_INS_INSVE,
MIPS_INS_J,
MIPS_INS_JAL,
MIPS_INS_JALR,
MIPS_INS_JALRS16,
MIPS_INS_JALRS,
MIPS_INS_JALS,
MIPS_INS_JALX,
MIPS_INS_JIALC,
MIPS_INS_JIC,
MIPS_INS_JR,
MIPS_INS_JR16,
MIPS_INS_JRADDIUSP,
MIPS_INS_JRC,
MIPS_INS_JALRC,
MIPS_INS_LB,
MIPS_INS_LBU16,
MIPS_INS_LBUX,
MIPS_INS_LBU,
MIPS_INS_LD,
MIPS_INS_LDC1,
MIPS_INS_LDC2,
MIPS_INS_LDC3,
MIPS_INS_LDI,
MIPS_INS_LDL,
MIPS_INS_LDPC,
MIPS_INS_LDR,
MIPS_INS_LDXC1,
MIPS_INS_LH,
MIPS_INS_LHU16,
MIPS_INS_LHX,
MIPS_INS_LHU,
MIPS_INS_LI16,
MIPS_INS_LL,
MIPS_INS_LLD,
MIPS_INS_LSA,
MIPS_INS_LUXC1,
MIPS_INS_LUI,
MIPS_INS_LW,
MIPS_INS_LW16,
MIPS_INS_LWC1,
MIPS_INS_LWC2,
MIPS_INS_LWC3,
MIPS_INS_LWL,
MIPS_INS_LWM16,
MIPS_INS_LWM32,
MIPS_INS_LWPC,
MIPS_INS_LWP,
MIPS_INS_LWR,
MIPS_INS_LWUPC,
MIPS_INS_LWU,
MIPS_INS_LWX,
MIPS_INS_LWXC1,
MIPS_INS_LWXS,
MIPS_INS_LI,
MIPS_INS_MADD,
MIPS_INS_MADDF,
MIPS_INS_MADDR_Q,
MIPS_INS_MADDU,
MIPS_INS_MADDV,
MIPS_INS_MADD_Q,
MIPS_INS_MAQ_SA,
MIPS_INS_MAQ_S,
MIPS_INS_MAXA,
MIPS_INS_MAXI_S,
MIPS_INS_MAXI_U,
MIPS_INS_MAX_A,
MIPS_INS_MAX,
MIPS_INS_MAX_S,
MIPS_INS_MAX_U,
MIPS_INS_MFC0,
MIPS_INS_MFC1,
MIPS_INS_MFC2,
MIPS_INS_MFHC1,
MIPS_INS_MFHI,
MIPS_INS_MFLO,
MIPS_INS_MINA,
MIPS_INS_MINI_S,
MIPS_INS_MINI_U,
MIPS_INS_MIN_A,
MIPS_INS_MIN,
MIPS_INS_MIN_S,
MIPS_INS_MIN_U,
MIPS_INS_MOD,
MIPS_INS_MODSUB,
MIPS_INS_MODU,
MIPS_INS_MOD_S,
MIPS_INS_MOD_U,
MIPS_INS_MOVE,
MIPS_INS_MOVEP,
MIPS_INS_MOVF,
MIPS_INS_MOVN,
MIPS_INS_MOVT,
MIPS_INS_MOVZ,
MIPS_INS_MSUB,
MIPS_INS_MSUBF,
MIPS_INS_MSUBR_Q,
MIPS_INS_MSUBU,
MIPS_INS_MSUBV,
MIPS_INS_MSUB_Q,
MIPS_INS_MTC0,
MIPS_INS_MTC1,
MIPS_INS_MTC2,
MIPS_INS_MTHC1,
MIPS_INS_MTHI,
MIPS_INS_MTHLIP,
MIPS_INS_MTLO,
MIPS_INS_MTM0,
MIPS_INS_MTM1,
MIPS_INS_MTM2,
MIPS_INS_MTP0,
MIPS_INS_MTP1,
MIPS_INS_MTP2,
MIPS_INS_MUH,
MIPS_INS_MUHU,
MIPS_INS_MULEQ_S,
MIPS_INS_MULEU_S,
MIPS_INS_MULQ_RS,
MIPS_INS_MULQ_S,
MIPS_INS_MULR_Q,
MIPS_INS_MULSAQ_S,
MIPS_INS_MULSA,
MIPS_INS_MULT,
MIPS_INS_MULTU,
MIPS_INS_MULU,
MIPS_INS_MULV,
MIPS_INS_MUL_Q,
MIPS_INS_MUL_S,
MIPS_INS_NLOC,
MIPS_INS_NLZC,
MIPS_INS_NMADD,
MIPS_INS_NMSUB,
MIPS_INS_NOR,
MIPS_INS_NORI,
MIPS_INS_NOT16,
MIPS_INS_NOT,
MIPS_INS_OR,
MIPS_INS_OR16,
MIPS_INS_ORI,
MIPS_INS_PACKRL,
MIPS_INS_PAUSE,
MIPS_INS_PCKEV,
MIPS_INS_PCKOD,
MIPS_INS_PCNT,
MIPS_INS_PICK,
MIPS_INS_POP,
MIPS_INS_PRECEQU,
MIPS_INS_PRECEQ,
MIPS_INS_PRECEU,
MIPS_INS_PRECRQU_S,
MIPS_INS_PRECRQ,
MIPS_INS_PRECRQ_RS,
MIPS_INS_PRECR,
MIPS_INS_PRECR_SRA,
MIPS_INS_PRECR_SRA_R,
MIPS_INS_PREF,
MIPS_INS_PREPEND,
MIPS_INS_RADDU,
MIPS_INS_RDDSP,
MIPS_INS_RDHWR,
MIPS_INS_REPLV,
MIPS_INS_REPL,
MIPS_INS_RINT,
MIPS_INS_ROTR,
MIPS_INS_ROTRV,
MIPS_INS_ROUND,
MIPS_INS_SAT_S,
MIPS_INS_SAT_U,
MIPS_INS_SB,
MIPS_INS_SB16,
MIPS_INS_SC,
MIPS_INS_SCD,
MIPS_INS_SD,
MIPS_INS_SDBBP,
MIPS_INS_SDBBP16,
MIPS_INS_SDC1,
MIPS_INS_SDC2,
MIPS_INS_SDC3,
MIPS_INS_SDL,
MIPS_INS_SDR,
MIPS_INS_SDXC1,
MIPS_INS_SEB,
MIPS_INS_SEH,
MIPS_INS_SELEQZ,
MIPS_INS_SELNEZ,
MIPS_INS_SEL,
MIPS_INS_SEQ,
MIPS_INS_SEQI,
MIPS_INS_SH,
MIPS_INS_SH16,
MIPS_INS_SHF,
MIPS_INS_SHILO,
MIPS_INS_SHILOV,
MIPS_INS_SHLLV,
MIPS_INS_SHLLV_S,
MIPS_INS_SHLL,
MIPS_INS_SHLL_S,
MIPS_INS_SHRAV,
MIPS_INS_SHRAV_R,
MIPS_INS_SHRA,
MIPS_INS_SHRA_R,
MIPS_INS_SHRLV,
MIPS_INS_SHRL,
MIPS_INS_SLDI,
MIPS_INS_SLD,
MIPS_INS_SLL,
MIPS_INS_SLL16,
MIPS_INS_SLLI,
MIPS_INS_SLLV,
MIPS_INS_SLT,
MIPS_INS_SLTI,
MIPS_INS_SLTIU,
MIPS_INS_SLTU,
MIPS_INS_SNE,
MIPS_INS_SNEI,
MIPS_INS_SPLATI,
MIPS_INS_SPLAT,
MIPS_INS_SRA,
MIPS_INS_SRAI,
MIPS_INS_SRARI,
MIPS_INS_SRAR,
MIPS_INS_SRAV,
MIPS_INS_SRL,
MIPS_INS_SRL16,
MIPS_INS_SRLI,
MIPS_INS_SRLRI,
MIPS_INS_SRLR,
MIPS_INS_SRLV,
MIPS_INS_SSNOP,
MIPS_INS_ST,
MIPS_INS_SUBQH,
MIPS_INS_SUBQH_R,
MIPS_INS_SUBQ,
MIPS_INS_SUBQ_S,
MIPS_INS_SUBSUS_U,
MIPS_INS_SUBSUU_S,
MIPS_INS_SUBS_S,
MIPS_INS_SUBS_U,
MIPS_INS_SUBU16,
MIPS_INS_SUBUH,
MIPS_INS_SUBUH_R,
MIPS_INS_SUBU,
MIPS_INS_SUBU_S,
MIPS_INS_SUBVI,
MIPS_INS_SUBV,
MIPS_INS_SUXC1,
MIPS_INS_SW,
MIPS_INS_SW16,
MIPS_INS_SWC1,
MIPS_INS_SWC2,
MIPS_INS_SWC3,
MIPS_INS_SWL,
MIPS_INS_SWM16,
MIPS_INS_SWM32,
MIPS_INS_SWP,
MIPS_INS_SWR,
MIPS_INS_SWXC1,
MIPS_INS_SYNC,
MIPS_INS_SYNCI,
MIPS_INS_SYSCALL,
MIPS_INS_TEQ,
MIPS_INS_TEQI,
MIPS_INS_TGE,
MIPS_INS_TGEI,
MIPS_INS_TGEIU,
MIPS_INS_TGEU,
MIPS_INS_TLBP,
MIPS_INS_TLBR,
MIPS_INS_TLBWI,
MIPS_INS_TLBWR,
MIPS_INS_TLT,
MIPS_INS_TLTI,
MIPS_INS_TLTIU,
MIPS_INS_TLTU,
MIPS_INS_TNE,
MIPS_INS_TNEI,
MIPS_INS_TRUNC,
MIPS_INS_V3MULU,
MIPS_INS_VMM0,
MIPS_INS_VMULU,
MIPS_INS_VSHF,
MIPS_INS_WAIT,
MIPS_INS_WRDSP,
MIPS_INS_WSBH,
MIPS_INS_XOR,
MIPS_INS_XOR16,
MIPS_INS_XORI,
//> some alias instructions
MIPS_INS_NOP,
MIPS_INS_NEGU,
//> special instructions
MIPS_INS_JALR_HB, // jump and link with Hazard Barrier
MIPS_INS_JR_HB, // jump register with Hazard Barrier
MIPS_INS_ENDING,
} mips_insn;
/// Group of MIPS instructions
typedef enum mips_insn_group {
MIPS_GRP_INVALID = 0, ///< = CS_GRP_INVALID
// Generic groups
// all jump instructions (conditional+direct+indirect jumps)
MIPS_GRP_JUMP, ///< = CS_GRP_JUMP
// all call instructions
MIPS_GRP_CALL, ///< = CS_GRP_CALL
// all return instructions
MIPS_GRP_RET, ///< = CS_GRP_RET
// all interrupt instructions (int+syscall)
MIPS_GRP_INT, ///< = CS_GRP_INT
// all interrupt return instructions
MIPS_GRP_IRET, ///< = CS_GRP_IRET
// all privileged instructions
MIPS_GRP_PRIVILEGE, ///< = CS_GRP_PRIVILEGE
// all relative branching instructions
MIPS_GRP_BRANCH_RELATIVE, ///< = CS_GRP_BRANCH_RELATIVE
// Architecture-specific groups
MIPS_GRP_BITCOUNT = 128,
MIPS_GRP_DSP,
MIPS_GRP_DSPR2,
MIPS_GRP_FPIDX,
MIPS_GRP_MSA,
MIPS_GRP_MIPS32R2,
MIPS_GRP_MIPS64,
MIPS_GRP_MIPS64R2,
MIPS_GRP_SEINREG,
MIPS_GRP_STDENC,
MIPS_GRP_SWAP,
MIPS_GRP_MICROMIPS,
MIPS_GRP_MIPS16MODE,
MIPS_GRP_FP64BIT,
MIPS_GRP_NONANSFPMATH,
MIPS_GRP_NOTFP64BIT,
MIPS_GRP_NOTINMICROMIPS,
MIPS_GRP_NOTNACL,
MIPS_GRP_NOTMIPS32R6,
MIPS_GRP_NOTMIPS64R6,
MIPS_GRP_CNMIPS,
MIPS_GRP_MIPS32,
MIPS_GRP_MIPS32R6,
MIPS_GRP_MIPS64R6,
MIPS_GRP_MIPS2,
MIPS_GRP_MIPS3,
MIPS_GRP_MIPS3_32,
MIPS_GRP_MIPS3_32R2,
MIPS_GRP_MIPS4_32,
MIPS_GRP_MIPS4_32R2,
MIPS_GRP_MIPS5_32R2,
MIPS_GRP_GP32BIT,
MIPS_GRP_GP64BIT,
MIPS_GRP_ENDING,
} mips_insn_group;
#ifdef __cplusplus
}
#endif
#endif
```
|
Otto of the Silver Hand is a children's historical novel set in the Middle Ages written and illustrated by Howard Pyle. It was published in 1888 by Charles Scribner's Sons. The novel is set in 13th-century Germany, partly during the Great Interregnum and partly during the reign of Rudolph of Habsburg. It was one of the first historical novels written for children by an American, making it a "milestone" that influenced later historical novels for children.
Plot summary
The book chronicles the life of Otto, the son of German warlord Baron Conrad. Otto's mother, Baroness Matilda, has died in premature labour, brought on by the sight of the Baron's battle wounds, prompting Conrad to take his newborn son to be raised in a nearby monastery. When Otto reaches the age of eleven his father reclaims him from the gentle monks, taking him back to live in Castle Drachenhausen, ("Dragons' House", in German) the ancestral mountaintop fortress from which this Baron launches his predatory attacks on the countryside. Here Otto learns of and is horrified by his father's life as a robber baron. Otto is particularly appalled by the revelation of how his father killed a defeated enemy, Baron Frederick as he knelt trying to surrender. A rival robber baron, Baron Frederick had been riding with his men-at-arms guarding a column of merchants in return for the tribute they were paying him.
Shortly thereafter, Baron Conrad is summoned to the Imperial Court by the Emperor himself, and takes the vast majority of his men-at-arms with him as an impressive escort- but leaves Castle Drachenhausen practically undefended as a result. Seizing his moment, the late Baron Frederick's heir, his nephew Baron Henry, then launches an attack on the now lightly-guarded castle, overcoming the garrison, and burning it to the ground. Capturing Otto, Baron Henry takes him to his own fortress, Castle Trutzdrachen ("Dragon-scorner," in German) and imprisons him in its dungeon. There, Baron Henry tells Otto that he has sworn a solemn oath that any member of Baron Conrad's House who fell into his hands would never be able to strike a blow like the one which killed his uncle, Baron Frederick. Because the boy is so young, instead of killing him the new Baron keeps this oath by cutting off Otto's right hand, and as an afterthought has a healer sent to tend to him. While Otto is feverish from the pain of his wound, he is comforted by Baron Henry's eight-year-old daughter Pauline, who visits him in his cell.
Otto's father Baron Conrad then returns and rescues him with the help of a few remaining loyal followers. Baron Henry and his men give chase and Otto's father, having commanded the exhausted remnants of his men to flee to safety with his son, waits on a narrow bridge over a deep, fast flowing river. Alone he blocks the road against Baron Henry and his soldiers, killing many until finally he is mortally wounded by Baron Henry's lance. With a final burst of strength he wrestles the equally heavily-armoured Baron Henry from his horse, and clutching him, hurls both himself and his foe into the river to drown so that his son can escape.
Otto is brought to the monastery where he grew up and is given refuge there. After Otto regains his health the Abbot accompanies him to an audience with the Emperor, who promises restitution and takes responsibility for Otto's future upbringing.
Otto becomes a respected statesman, marries his former captor's daughter Pauline, and is known and admired for his wise counsel and peaceful nature. His amputated swordhand is replaced by an artificial and immobile one made of silver. The Emperor has Castle Drachenhausen rebuilt for the couple and over the gatehouse is carved the motto "Manus Argentea Quam Manus Ferrea Melior Est", which translated from Latin means "A hand of silver is better than a hand of iron".
Characters
Otto - The son of a German warlord whose mother dies soon after giving birth to him. He is raised in a monastery until he is eleven, at which point he returns to live with his father in their ancestral castle.
Baron Conrad - The father of Otto; he is a German warlord who frequently robs merchants and caravans passing near his domain. He lives in his ancestral castle, Castle Drachenhausen.
Baroness Matilda - Otto's mother, a gentle-hearted woman who dies after giving birth to Otto. Before dying she asks Baron Conrad to stop attacking the townspeople and instead earn an honest living.
Abbot Otto - The Abbot of the monastery where Otto grows up; he is the uncle of Otto's mother, who named her child after him.
Brother John - A monk at the monastery who befriends Otto; his mind has been affected by a childhood head injury and he has many religious visions.
The One-Eyed Hans - Baron Conrad's trusted peasant henchman who orchestrates Otto's escape from Baron Henry's castle. He is "half respected, half feared" by most of Conrad's household, but is fiercely loyal to Baron Conrad, who holds him in great esteem.
Baron Frederick - A rival Baron with estates near those of Baron Conrad. Baron Frederick wounds Baron Conrad in battle, thus indirectly causing Baroness Matilda's death. Baron Frederick is later killed by Baron Conrad in an act of revenge.
Baron Henry - The nephew of Baron Frederick; he captures Otto and cuts off his right hand in retaliation for Baron Frederick's death.
Pauline - The 8-year-old daughter of Baron Henry; she and Otto fall in love and eventually marry.
Emperor Rudolph of Habsburg - The German emperor at the time; he gives refuge to Otto. (See Rudolph I of Habsburg (1218-1291), historical figure)
Reception
After its release the New York Times gave the book's illustrations a mixed review:
The illustrations made by Mr. Howard Pyle for his medieval tale Otto of the Silver Hand are of varied merit, sometimes alive with action, at others dull and even badly drawn and composed... Mr. Pyle gets something of the rudeness of ancient woodcuts into his work, though perhaps the rugged note is exaggerated. The volume is one of the prettiest issued by Charles Scribner's Sons for the holidays, the cover emblazoned with the shield bearing a hand argent on guies.
A 1957 Kirkus Reviews found that in "the half century since its writing [it is] probably the best picture of the period for the junior reader." In 1983, the Children's Literature Association Quarterly called it a "milestone" as "one of the first historical novels written for children by an American" that "set the standard for many novels written since".
References
External links
, text via www.gutenberg.org
, scan of book via archive.org
American children's novels
1888 American novels
Children's historical novels
Novels set in the 13th century
Novels by Howard Pyle
1880s children's books
Children's books set in Germany
Children's books set in the 13th century
|
```java
/*
*
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
*
* path_to_url
*
* Unless required by applicable law or agreed to in writing, software
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/
package com.dianping.zebra.single.pool;
import com.dianping.zebra.exception.ZebraConfigException;
import com.dianping.zebra.group.config.datasource.entity.Any;
import com.dianping.zebra.group.config.datasource.entity.DataSourceConfig;
import com.dianping.zebra.group.util.DataSourceState;
import com.dianping.zebra.log.Logger;
import com.dianping.zebra.log.LoggerFactory;
import com.dianping.zebra.single.jdbc.SingleDataSource;
import com.dianping.zebra.util.JdbcDriverClassHelper;
import com.dianping.zebra.util.StringUtils;
import com.mchange.v2.c3p0.DataSources;
import com.mchange.v2.c3p0.PoolBackedDataSource;
import javax.sql.DataSource;
import java.sql.SQLException;
import java.util.HashMap;
import java.util.Map;
public class C3p0DataSourcePool extends AbstractDataSourcePool implements DataSourcePool {
protected static final Logger LOGGER = LoggerFactory.getLogger(C3p0DataSourcePool.class);
private PoolBackedDataSource pool = null;
@Override
public DataSource build(DataSourceConfig config, boolean withDefaultValue) {
try {
DataSource unPooledDataSource = DataSources.unpooledDataSource(config.getJdbcUrl(), config.getUsername(),
config.getPassword());
Map<String, Object> props = new HashMap<String, Object>();
props.put("driverClass", StringUtils.isNotBlank(config.getDriverClass()) ? config.getDriverClass() : JdbcDriverClassHelper.getDriverClassNameByJdbcUrl(config.getJdbcUrl()));
for (Any any : config.getProperties()) {
props.put(any.getName(), any.getValue());
}
if (props.containsKey("connectionInitSql")) {
throw new ZebraConfigException(
"c3p0 does not support connectionInitSql method, please select other dataSource pool");
}
if(!props.containsKey("checkoutTimeout")){
props.put("checkoutTimeout",1000);
}
this.pool = (PoolBackedDataSource) DataSources.pooledDataSource(unPooledDataSource, props);
LOGGER.info(String.format("New dataSource [%s] created.", config.getId()));
return this.pool;
} catch (ZebraConfigException e) {
throw e;
} catch (Exception e) {
throw new ZebraConfigException(String.format("c3p0 dataSource [%s] created error : ", config.getId()), e);
}
}
@Override
public void close(SingleDataSource singleDataSource, boolean forceClose) throws SQLException {
String dsId = singleDataSource.getId();
LOGGER.info(singleDataSource.getAndIncrementCloseAttempt() + " attempt to close datasource [" + dsId + "]");
if (forceClose) {
LOGGER.info("closing old datasource [" + dsId + "]");
DataSources.destroy(this.pool);
LOGGER.info("datasource [" + dsId + "] closed");
singleDataSource.setState(DataSourceState.CLOSED);
} else {
if (this.pool.getNumBusyConnections() == 0 || singleDataSource.getCloseAttempt() >= MAX_CLOSE_ATTEMPT) {
LOGGER.info("closing old datasource [" + dsId + "]");
DataSources.destroy(this.pool);
LOGGER.info("datasource [" + dsId + "] closed");
singleDataSource.setState(DataSourceState.CLOSED);
} else {
throwException(dsId);
}
}
}
@Override
public int getNumBusyConnection() {
if (pool != null) {
try {
return pool.getNumBusyConnections();
} catch (Exception e) {
}
}
return 0;
}
@Override
public int getNumConnections() {
if (pool != null) {
try {
return pool.getNumConnections();
} catch (Exception e) {
}
}
return 0;
}
@Override
public int getNumIdleConnection() {
if (pool != null) {
try {
return pool.getNumIdleConnections();
} catch (Exception e) {
}
}
return 0;
}
@Override
public DataSource getInnerDataSourcePool() {
return this.pool;
}
}
```
|
```c
/*
*
*/
#include <stdio.h>
#include <string.h>
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "freertos/queue.h"
#include "driver/uart.h"
#include "esp_log.h"
#include "esp_attr.h"
#include "uart_driver.h"
#include "nimble/hci_common.h"
#include "host/ble_hs_mbuf.h"
#define TAG "UART_HCI"
#define UART_NO (1)
#define UART_BUF_SZ (1024)
#define UART_TX_PIN (CONFIG_EXAMPLE_HCI_UART_TX_PIN)
#define UART_RX_PIN (CONFIG_EXAMPLE_HCI_UART_RX_PIN)
#define UART_RTS_PIN (CONFIG_EXAMPLE_HCI_UART_RTS_PIN)
#define UART_CTS_PIN (CONFIG_EXAMPLE_HCI_UART_CTS_PIN)
#define HCI_H4_ACL (0x02)
#define HCI_H4_CMD (0x01)
#define HCI_H4_EVT (0x04)
#define BLE_HCI_EVENT_HDR_LEN (2)
#define BLE_HCI_CMD_HDR_LEN (3)
enum {
UART_RX_TYPE = 0,
UART_RX_LEN,
UART_RX_DATA,
};
enum {
DATA_TYPE_COMMAND = 1,
DATA_TYPE_ACL = 2,
DATA_TYPE_EVENT = 4
};
TaskHandle_t s_rx_task_hdl;
static void IRAM_ATTR hci_uart_rx_task(void *arg)
{
uint8_t buf[1026];
int len_now_read = -1;
uint32_t len_to_read = 1;
uint32_t len_total_read = 0;
uint8_t rx_st = UART_RX_TYPE;
while (1) {
len_now_read = uart_read_bytes(UART_NO, &buf[len_total_read], len_to_read, portMAX_DELAY);
assert(len_now_read == len_to_read);
len_total_read += len_now_read;
switch (rx_st) {
case UART_RX_TYPE: {
assert(buf[0] >= DATA_TYPE_ACL && buf[0] <= DATA_TYPE_EVENT);
if (buf[0] == DATA_TYPE_ACL) {
len_to_read = 4;
} else if (buf[0] == DATA_TYPE_EVENT) {
len_to_read = 2;
} else {
assert(0);
}
rx_st = UART_RX_LEN;
}
break;
case UART_RX_LEN: {
if (buf[0] == DATA_TYPE_ACL) {
len_to_read = buf[3] | (buf[4] << 8);
} else if (buf[0] == DATA_TYPE_EVENT) {
len_to_read = buf[2];
} else {
assert(0);
}
rx_st = UART_RX_DATA;
}
break;
case UART_RX_DATA: {
uint8_t *data = buf;
int rc;
if (data[0] == HCI_H4_EVT) {
uint8_t *evbuf;
int totlen;
totlen = BLE_HCI_EVENT_HDR_LEN + data[2];
assert(totlen <= UINT8_MAX + BLE_HCI_EVENT_HDR_LEN);
if (totlen > MYNEWT_VAL(BLE_TRANSPORT_EVT_SIZE)) {
ESP_LOGE(TAG, "Received HCI data length at host (%d)"
"exceeds maximum configured HCI event buffer size (%d).",
totlen, MYNEWT_VAL(BLE_TRANSPORT_EVT_SIZE));
break;
}
if (data[1] == BLE_HCI_EVCODE_HW_ERROR) {
assert(0);
}
/* Allocate LE Advertising Report Event from lo pool only */
if ((data[1] == BLE_HCI_EVCODE_LE_META) &&
(data[3] == BLE_HCI_LE_SUBEV_ADV_RPT || data[3] == BLE_HCI_LE_SUBEV_EXT_ADV_RPT)) {
evbuf = ble_transport_alloc_evt(1);
/* Skip advertising report if we're out of memory */
if (!evbuf) {
ESP_LOGE(TAG, "No buffers");
break;
}
} else {
evbuf = ble_transport_alloc_evt(0);
assert(evbuf != NULL);
}
memset(evbuf, 0, sizeof * evbuf);
memcpy(evbuf, &data[1], totlen);
rc = ble_transport_to_hs_evt(evbuf);
assert(rc == 0);
} else if (data[0] == HCI_H4_ACL) {
struct os_mbuf *m = NULL;
m = ble_transport_alloc_acl_from_ll();
if (!m) {
ESP_LOGE(TAG, "No buffers");
}
if ((rc = os_mbuf_append(m, &data[1], len_total_read - 1)) != 0) {
ESP_LOGE(TAG, "%s failed to os_mbuf_append; rc = %d", __func__, rc);
os_mbuf_free_chain(m);
return;
}
ble_transport_to_hs_acl(m);
}
rx_st = UART_RX_TYPE;
len_to_read = 1;
len_total_read = 0;
}
break;
default: {
assert(0);
break;
}
}
}
vTaskDelete(NULL);
}
void hci_uart_send(uint8_t *buf, uint16_t len)
{
uint8_t *p = buf;
int len_write = 0;
while (len) {
len_write = uart_write_bytes(UART_NO, p, len);
assert(len_write > 0);
len -= len_write;
p += len_write;
}
}
void
ble_transport_ll_init(void)
{
}
int
ble_transport_to_ll_acl_impl(struct os_mbuf *om)
{
uint8_t buf[OS_MBUF_PKTLEN(om) + 1];
int rc;
buf[0] = HCI_H4_ACL;
rc = ble_hs_mbuf_to_flat(om, buf + 1, OS_MBUF_PKTLEN(om), NULL);
if(rc) {
ESP_LOGE(TAG, "Error copying data %d", rc);
os_mbuf_free_chain(om);
return rc;
}
hci_uart_send(buf, OS_MBUF_PKTLEN(om) + 1);
os_mbuf_free_chain(om);
return 0;
}
int
ble_transport_to_ll_cmd_impl(void *buf)
{
int len = 3 + ((uint8_t *)buf)[2] + 1;
uint8_t data[258];
data[0] = HCI_H4_CMD;
memcpy(data + 1, buf, len - 1);
hci_uart_send(data, len);
ble_transport_free(buf);
return 0;
}
void hci_uart_open(void)
{
uart_config_t uart_config = {
.baud_rate = CONFIG_EXAMPLE_HCI_UART_BAUDRATE,
.data_bits = UART_DATA_8_BITS,
.parity = UART_PARITY_DISABLE,
.stop_bits = UART_STOP_BITS_1,
.flow_ctrl = CONFIG_EXAMPLE_HCI_UART_FLOW_CTRL,
.source_clk = UART_SCLK_DEFAULT,
};
int intr_alloc_flags = 0;
#if CONFIG_UART_ISR_IN_IRAM
intr_alloc_flags = ESP_INTR_FLAG_IRAM;
#endif
ESP_ERROR_CHECK(uart_driver_install(UART_NO, UART_BUF_SZ * 2, UART_BUF_SZ * 2, 0, NULL, intr_alloc_flags));
ESP_ERROR_CHECK(uart_param_config(UART_NO, &uart_config));
ESP_ERROR_CHECK(uart_set_pin(UART_NO, UART_TX_PIN, UART_RX_PIN, -1, -1));
xTaskCreate(hci_uart_rx_task, "hci_uart_rx_task", 2048, NULL, 12, &s_rx_task_hdl);
}
void hci_uart_close(void)
{
if (s_rx_task_hdl) {
vTaskDelete(s_rx_task_hdl);
}
uart_driver_delete(UART_NO);
}
```
|
Antonovka () is a rural locality (a selo) and the administrative center of Antonovsky Selsoviet of Arkharinsky District, Amur Oblast, Russia. The population was 91 in 2018. There are 10 streets.
Geography
Antonovka is located 15 km west of Arkhara (the district's administrative centre) by road. Arkhara is the nearest rural locality.
References
Rural localities in Arkharinsky District
|
```objective-c
//your_sha256_hash---------------------------------------
//your_sha256_hash---------------------------------------
#pragma once
class JsrtCallbackState
{
public:
JsrtCallbackState(ThreadContext* currentThreadContext);
~JsrtCallbackState();
static void ObjectBeforeCallectCallbackWrapper(JsObjectBeforeCollectCallback callback, void* object, void* callbackState, void* threadContext);
private:
ThreadContext* originalThreadContext;
JsrtContext* originalJsrtContext;
};
#if defined(CHAKRA_STATIC_LIBRARY) || !defined(_WIN32)
_NOINLINE void VALIDATE_ENTER_CURRENT_THREAD();
#else
// Windows Shared Library: DllMain is responsible from handling all these stuff
#define VALIDATE_ENTER_CURRENT_THREAD()
#endif
```
|
```xml
import { NgModule } from '@angular/core';
import { RouterModule } from '@angular/router';
import { BreadcrumbDemo } from './breadcrumbdemo';
@NgModule({
imports: [RouterModule.forChild([{ path: '', component: BreadcrumbDemo }])],
exports: [RouterModule]
})
export class BreadcrumbDemoRoutingModule {}
```
|
```php
<?php
require_once __DIR__ . '/../bootstrap.php';
$subject = new \Rx\Subject\Subject();
$source = \Rx\Observable::range(0, 3)->multicast($subject);
$subscription = $source->subscribe($stdoutObserver);
$subject->subscribe($stdoutObserver);
$connected = $source->connect();
```
|
Tennis in Argentina is regulated by the Asociación Argentina de Tenis (Argentine Tennis Association), which also selects the coaches of the Argentine teams for the Davis Cup and Federation Cup. There are many tennis courts in Argentina, and the sport, even though still considered middle- to upper-class, is practiced by regardless of age.
History
Although British immigrants brought the sport to Argentina, it was not until late in the 1970s that Guillermo Vilas' success made the sport popular, reaching second place in the 1975 ATP ranking. He was internationally recognised and was later included in the International Tennis Hall of Fame. During the 1980s, José Luis Clerc (4th), Alberto Mancini (8th) and Martín Jaite (10th) followed Vilas and kept interest in the sport alive. Argentina won the 1980 World Team Cup beating Italy 3–0, and reached the final of the 1980 Davis Cup, losing to United States 3–1. In the 1990s it was Gabriela Sabatini who best represented Argentine tennis, becoming an international figure on and off the court.
The boom of Argentine tennis players came in the 2000s, when many players became important in the circuit reaching high ranks. Paola Suárez won eight Grand Slam doubles between 2001 and 2005 and was, together with Spaniard Virginia Ruano Pascual, the top women's couple for three years in a row. In 2002, José Acasuso, Guillermo Cañas, Lucas Arnold and Gastón Etlis won again the World Team Cup for Argentina, this time 3–0 against Russia. Five years later, Acasuso, Juan Ignacio Chela, Agustín Calleri and Sebastián Prieto won it again, this time 2–1 against the Czech Republic. David Nalbandian lost in the final of Wimbledon in 2002. The 2004 French Open saw an Argentine final between Gastón Gaudio and Guillermo Coria. The following year's French Open saw Mariano Puerta reach the final.
Another example of the importance of the Argentine presence on the circuit was the August 2005 male rankings that counted five Argentine players among the top 12 (from 8th to 12th) of the ATP ranking, and three in the top ten of the Champions Race (5th, 8th and 9th). The 2005 Tennis Masters Cup, due to a series of last-minute resignations, had 4 Argentine players of the total of 8, with Gaudio reaching semi-finals, and Nalbandian winning the competition against #1 Roger Federer.
In 2009 Juan Martín del Potro became the first Argentinian to win the US Open since Guillermo Vilas did in 1977. Del Potro defeated world number 2 Rafael Nadal in straight sets in semifinals to reach the final and eventually beat world number 1 Roger Federer in five sets. That year Del Potro reached the final of the ATP World Tour Championship. In 2016, the Argentine Copa Davis team were crowned world champions. Juan Martín del Potro, Federico Delbonis, Leonardo Mayer and Guido Pella earned the country their first title in the sport's most important inter-country competition.
Highest-ranked players
Singles
Men
Women
Doubles
Men
Women
Best results at major tournaments
As of the 2020 French Open.
Singles
Men
Most wins against top 10 players
Team competitions
Finals
Notes
References
|
```xml
import {
BaseEntity,
Column,
Entity,
ManyToOne,
PrimaryColumn,
} from "../../../../src"
import { User } from "./User"
import { Organization } from "./Organization"
@Entity()
export class OrganizationMembership extends BaseEntity {
@PrimaryColumn()
userId: string
@PrimaryColumn()
organizationId: string
@ManyToOne(() => User, (user) => user.membership)
user: User
@ManyToOne(() => Organization, (organization) => organization.membership)
organization: Organization
@Column()
accessLevel: string
}
```
|
Rose Center is a community cultural center in Morristown, Tennessee, housed in the Rose School, which was built in 1892 as Morristown's first coeducational public high school.
History
Rose School was built in 1892. It was named after the judge and former Confederate colonel James G. Rose, who was chairman of the school board when planning began for the new school. It was used as Morristown's combined elementary school and high school until the end of the 1916 school year, when the high school relocated to a separate building. The school continued to operate as an elementary school until 1975. After the school closed, the red brick building was converted into a museum and cultural center as a community initiative related to the U.S. Bicentennial. Rose School was listed on the National Register of Historic Places in 1976. It is number 76001778, a late Victorian building circa 1875-1899. In 1976, plans were made to convert the land into a parking lot.
Facility uses and programs
The facility is operated by the Rose Center Council for the Arts, a voluntary organization established in 1976. It includes gallery space, meeting rooms, and classrooms, and a separate auditorium. The Rose Center hosts permanent exhibits on local history and related topics, rotating art exhibitions, classes for both children and adults, and a variety of special events. Some of the rooms available to the community for events are the renovated Jean Keener Community Room and the Edith Davis Gallery, which incorporates the historic photographs of the Hal Noe Collection.
References
External links
Morristown, Tennessee
School buildings on the National Register of Historic Places in Tennessee
Victorian architecture in Tennessee
School buildings completed in 1892
Buildings and structures in Hamblen County, Tennessee
Arts centers in Tennessee
Tourist attractions in Hamblen County, Tennessee
National Register of Historic Places in Hamblen County, Tennessee
Museums in Hamblen County, Tennessee
|
Knautia drymeia, commonly known as the Hungarian widow flower, is a herbaceous perennial plant species in the family Caprifoliaceae, that grows in Central and Southeastern Europe.
Taxonomy
This species was first formally described by Austrian botanist Johann Heuffel in his work Flora 39 in 1856.
There are a few recognized subspecies of Knautia drymeia:
Knautia drymeia subsp. centrifrons (Borbás) Ehrend.
Knautia drymeia subsp. drymeia
Knautia drymeia subsp. intermedia (Pernh. & Wettst.) Ehrend.
Knautia drymeia subsp. nympharum (Boiss. & Heldr.) Ehrend.
Knautia drymeia subsp. tergestina (Beck) Ehrend.
Description
This upright-growing perennial widow flower can reach from 40 to 60 centimetres of height and is easily recognizable because of its leaf rosette, that gives rise to multiple flowering stems. The species's stem is hirsute, with leaves growing along the entire length. Its oppositely arranged simple and entire leaves are in most cases petiolate, covered with trichomes and lanceolate to ovate in shape. There are no stipules.
Knautia drymeia is known as a very morphologically variable species. The species' subspecies can be recognized by their vegetative parts, especially their leaves' characteristics. In subspecies drymeia stem leaves are ovate to ovate-lanceolate in shape, while basal leaves have whiteish bristles. On the other hand, subspecies intermedia can be determined by yellowish bristles of basal leaves, while its stem leaves are either oblong either lanceolate. Subspecies tergestina has similarly coloured bristles of basal leaves as ssp. drymeia (white to gray), but its stem leaves are round to widely ovate and deeply serrated.
Its flowers are united into so-called calathidium inflorescences, that are surrounded by lanceolate involucral leaves. Each zygomorphic flower consists of four floral leaves, with petals being scarlet, scarlet red, purple and in rare cases even white. The plant's sepals are reduced into very short and pointy flower bristles, that are usually in groups of 8. Knautia drymeia has so-called inferior ovary, with flower elements being set above it.
Knautia drymeia flowers between June and September and is pollinated by insects (entomophily). Its hirsute fruit is so-called achene and reaches from 4 to 5 mm of length. Layman can mistake Knautia drymeia with similar widow flowers, such as the common Knautia arvensis and Knautia dipsacifolia.
This species chromosome number is 2n = 40, with plants being polyploid; either diploid either tetraploid.
Distribution and habitat
Knautia drymeia is a European species that prefers southern temperate and submeridional floristic zones, with its distribution area consisting of central and southeastern European countries. This relatively common widow flower can be found growing in various shaded forests with dense undergrowth, on the forest edges, as well as different meadows. Only rarely Knautia drymeia represents a part of anthropogenic vegetation.
The Raunkiær system classifies it as a hemicryptophyte species.
Gallery
References
External links
drymeia
Flora of Europe
|
```lua
This program is free software; you can redistribute it and/or modify
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
]]
local game = require 'dmlab.system.game'
local tensor = require 'dmlab.system.tensor'
local game_entities = require 'dmlab.system.game_entities'
local log = require 'common.log'
local inventory = require 'common.inventory'
local SCREEN_SHAPE = game:screenShape().buffer
local debug_observations = {}
local names = {}
local inventories = {}
local teams = {}
local camera = {pos = {0, 0, 500}, look = {90, 90, 0}}
local mazeLayout = ''
local mazeVariation = ''
local ASPECT = SCREEN_SHAPE.height / SCREEN_SHAPE.width
local function cameraUp(x, y, maxHeight)
return math.max(x - maxHeight, (y - maxHeight) / ASPECT) + maxHeight
end
local function playerPosition()
return tensor.DoubleTensor(game:playerInfo().pos)
end
local function playerOrientation()
return tensor.DoubleTensor(game:playerInfo().angles)
end
local function playerId()
return tensor.ByteTensor{game:playerInfo().playerId}
end
local function playersId()
local playerIds = {}
for playerId, name in pairs(names) do
playerIds[#playerIds + 1] = playerId
end
return tensor.ByteTensor(playerIds)
end
local function playersName()
return table.concat(names, '\n')
end
local function playersHealth()
local playerHealth = {}
for playerId, inv in pairs(inventories) do
playerHealth[#playerHealth + 1] = inv:health()
end
return tensor.DoubleTensor(playerHealth)
end
local function playersArmor()
local playerArmor = {}
for playerId, inv in pairs(inventories) do
playerArmor[#playerArmor + 1] = inv:armor()
end
return tensor.DoubleTensor(playerArmor)
end
local function playersGadget()
local playerGadget = {}
for playerId, inv in pairs(inventories) do
playerGadget[#playerGadget + 1] = inv:gadget()
end
return tensor.DoubleTensor(playerGadget)
end
local function playersGadgetAmount()
local playerGadgetAmount = {}
for playerId, inv in pairs(inventories) do
playerGadgetAmount[#playerGadgetAmount + 1] =
inv:gadgetAmount(inv:gadget())
end
return tensor.DoubleTensor(playerGadgetAmount)
end
local function playersEyePos()
local eyePos = {}
for playerId, inv in pairs(inventories) do
eyePos[#eyePos + 1] = inv:eyePos()
end
return tensor.DoubleTensor(eyePos)
end
local function playersScore()
local scores = {}
for playerId, inv in pairs(inventories) do
scores[#scores + 1] = inv:score()
end
return tensor.DoubleTensor(scores)
end
local function playersVelocity()
local velocities = {}
for playerId, inv in pairs(inventories) do
velocities[#velocities + 1] = inv:velocity()
end
return tensor.DoubleTensor(velocities)
end
local function playersIsBot()
local isBots = {}
for playerId, inv in pairs(inventories) do
isBots[#isBots + 1] = inv:isBot() and 1 or 0
end
return tensor.ByteTensor(isBots)
end
local function playersCaptures()
local captures = {}
for playerId, inv in pairs(inventories) do
captures[#captures + 1] = inv:captures()
end
return tensor.DoubleTensor(captures)
end
local function playersEyeRot()
local eyeRot = {}
for playerId, inv in pairs(inventories) do
eyeRot[#eyeRot + 1] = inv:eyeAngles()
end
return tensor.DoubleTensor(eyeRot)
end
local TEAM_LOOKUP = {r = 1, b = 2}
local function playersTeam()
local playerTeam = {}
for playerId, team in pairs(teams) do
playerTeam[#playerTeam + 1] = TEAM_LOOKUP[team] or 0
end
return tensor.DoubleTensor(playerTeam)
end
local function playersHoldingFlag()
local playerHoldingFlag = {}
for playerId, inv in pairs(inventories) do
local holding = 0
if inv:hasPowerUp(inventory.POWERUPS.RED_FLAG) then
holding = holding + 1
end
if inv:hasPowerUp(inventory.POWERUPS.BLUE_FLAG) then
holding = holding + 2
end
playerHoldingFlag[#playerHoldingFlag + 1] = holding
end
return tensor.DoubleTensor(playerHoldingFlag)
end
local FLAG_STATE = {
NONE = 0,
HOME = 1,
CARRIED = 2,
DROPPED = 3,
}
local function redFlag()
for i, ent in ipairs(game_entities:entities{'team_CTF_redflag'}) do
if ent.visible then
local x, y, z = unpack(ent.position)
local player_id = 0
local flagState = i == 1 and FLAG_STATE.HOME or FLAG_STATE.DROPPED
return tensor.DoubleTensor{x, y, z, player_id, flagState}
end
end
for playerId, inv in pairs(inventories) do
if inv:hasPowerUp(inventory.POWERUPS.RED_FLAG) then
local x, y, z = unpack(inv:eyePos())
return tensor.DoubleTensor{x, y, z, inv:playerId(), FLAG_STATE.CARRIED}
end
end
return tensor.DoubleTensor{0, 0, 0, 0, FLAG_STATE.NONE}
end
local function blueFlag()
for i, ent in ipairs(game_entities:entities{'team_CTF_blueflag'}) do
if ent.visible then
local x, y, z = unpack(ent.position)
local player_id = 0
local flagState = i == 1 and FLAG_STATE.HOME or FLAG_STATE.DROPPED
return tensor.DoubleTensor{x, y, z, player_id, flagState}
end
end
for _, inv in pairs(inventories) do
if inv:hasPowerUp(inventory.POWERUPS.BLUE_FLAG) then
local x, y, z = unpack(inv:eyePos())
return tensor.DoubleTensor{x, y, z, inv:playerId(), FLAG_STATE.CARRIED}
end
end
return tensor.DoubleTensor{0, 0, 0, 0, FLAG_STATE.NONE}
end
local HOME_FLAG_STATE = {
NONE = 0,
HOME = 1,
AWAY = 2,
}
local function redFlagHome()
for i, ent in ipairs(game_entities:entities{'team_CTF_redflag'}) do
local x, y, z = unpack(ent.position)
local state = ent.visible and HOME_FLAG_STATE.HOME or HOME_FLAG_STATE.AWAY
return tensor.DoubleTensor{x, y, z, state}
end
return tensor.DoubleTensor{0, 0, 0, FLAG_STATE.NONE}
end
local function blueFlagHome()
for i, ent in ipairs(game_entities:entities{'team_CTF_blueflag'}) do
local x, y, z = unpack(ent.position)
local state = ent.visible and HOME_FLAG_STATE.HOME or HOME_FLAG_STATE.AWAY
return tensor.DoubleTensor{x, y, z, state}
end
return tensor.DoubleTensor{0, 0, 0, HOME_FLAG_STATE.NONE}
end
local function setMazeShape(height, width)
debug_observations.setCameraPos{
width * 50,
height * 50,
cameraUp(width * 50, height * 50, 100)
}
end
local function getMazeLayout()
return mazeLayout
end
local function getMazeVariation()
return mazeVariation
end
function debug_observations.setMaze(maze)
mazeLayout = maze:entityLayer()
mazeVariation = maze:variationsLayer()
setMazeShape(unpack{maze:size()})
end
function debug_observations.setCameraPos(pos, look)
camera.pos = pos or camera.pos
camera.look = look or camera.look
end
function debug_observations.getCameraPos()
return camera
end
-- Returns interleaved image height x width x 3.
local function topDownInterleavedCamera()
local buffer = game:renderCustomView{
width = SCREEN_SHAPE.width,
height = SCREEN_SHAPE.height,
pos = camera.pos,
look = camera.look,
}
return buffer
end
-- Returns planar image 3 x height x width.
local function topDownCamera()
return topDownInterleavedCamera():transpose(3, 2):transpose(2, 1):clone()
end
-- Returns interleaved images height x width x 3.
local function playerInterleavedView(reticleSize)
local function view()
local info = game:playerInfo()
local buffer = game:renderCustomView{
width = SCREEN_SHAPE.width,
height = SCREEN_SHAPE.height,
pos = info.eyePos,
look = info.angles,
renderPlayer = false,
}
if reticleSize > 0 then
local hheight = math.floor(SCREEN_SHAPE.height / 2)
local hwidth = math.floor(SCREEN_SHAPE.width / 2)
local hsize = math.floor(reticleSize / 2)
buffer:narrow(1, hheight - hsize, reticleSize)
:narrow(2, hwidth - hsize, reticleSize)
:fill{200, 200, 200}
end
return buffer
end
return view
end
-- Returns planar images 3 x height x width.
local function playerView(reticleSize)
local function view()
return playerInterleavedView(reticleSize)():transpose(3, 2):
transpose(2, 1):clone()
end
return view
end
--[[ Extend custom_observations to contain debug observations. ]]
function debug_observations.extend(custom_observations)
local co = custom_observations
names = co.playerNames
inventories = co.playerInventory
teams = co.playerTeams
co.addSpec('DEBUG.CAMERA_INTERLEAVED.TOP_DOWN', 'Bytes',
{SCREEN_SHAPE.height, SCREEN_SHAPE.width, 3},
topDownInterleavedCamera)
co.addSpec('DEBUG.CAMERA_INTERLEAVED.PLAYER_VIEW', 'Bytes',
{SCREEN_SHAPE.height, SCREEN_SHAPE.width, 3},
playerInterleavedView(3))
co.addSpec('DEBUG.CAMERA_INTERLEAVED.PLAYER_VIEW_NO_RETICLE', 'Bytes',
{SCREEN_SHAPE.height, SCREEN_SHAPE.width, 3},
playerInterleavedView(0))
co.addSpec('DEBUG.CAMERA.TOP_DOWN', 'Bytes',
{3, SCREEN_SHAPE.height, SCREEN_SHAPE.width}, topDownCamera)
co.addSpec('DEBUG.CAMERA.PLAYER_VIEW', 'Bytes',
{3, SCREEN_SHAPE.height, SCREEN_SHAPE.width}, playerView(3))
co.addSpec('DEBUG.CAMERA.PLAYER_VIEW_NO_RETICLE', 'Bytes',
{3, SCREEN_SHAPE.height, SCREEN_SHAPE.width}, playerView(0))
-- Maze layout
co.addSpec('DEBUG.MAZE.LAYOUT', 'String', {0}, getMazeLayout)
co.addSpec('DEBUG.MAZE.VARIATION', 'String', {0}, getMazeVariation)
co.addSpec('DEBUG.POS.TRANS', 'Doubles', {3}, playerPosition)
co.addSpec('DEBUG.POS.ROT', 'Doubles', {3}, playerOrientation)
co.addSpec('DEBUG.PLAYER_ID', 'Bytes', {1}, playerId)
co.addSpec('DEBUG.PLAYERS.ARMOR', 'Doubles', {0}, playersArmor)
co.addSpec('DEBUG.PLAYERS.GADGET', 'Doubles', {0}, playersGadget)
co.addSpec('DEBUG.PLAYERS.GADGET_AMOUNT', 'Doubles', {0}, playersGadgetAmount)
co.addSpec('DEBUG.PLAYERS.HEALTH', 'Doubles', {0}, playersHealth)
co.addSpec('DEBUG.PLAYERS.HOLDING_FLAG', 'Doubles', {0}, playersHoldingFlag)
co.addSpec('DEBUG.PLAYERS.ID', 'Bytes', {0}, playersId)
co.addSpec('DEBUG.PLAYERS.EYE.POS', 'Doubles', {0, 3}, playersEyePos)
co.addSpec('DEBUG.PLAYERS.EYE.ROT', 'Doubles', {0, 3}, playersEyeRot)
co.addSpec('DEBUG.PLAYERS.VELOCITY', 'Doubles', {0, 3}, playersVelocity)
-- New line separated string.
co.addSpec('DEBUG.PLAYERS.NAME', 'String', {1}, playersName)
co.addSpec('DEBUG.PLAYERS.TEAM', 'Doubles', {0}, playersTeam)
co.addSpec('DEBUG.PLAYERS.CAPTURES', 'Doubles', {0}, playersCaptures)
co.addSpec('DEBUG.PLAYERS.SCORE', 'Doubles', {0}, playersScore)
co.addSpec('DEBUG.PLAYERS.IS_BOT', 'Bytes', {0}, playersIsBot)
-- Flag information (x, y, z, playerId,
-- {NONE = 0, HOME = 1, CARRIED = 2, DROPPED = 3})
co.addSpec('DEBUG.FLAGS.RED', 'Doubles', {5}, redFlag)
co.addSpec('DEBUG.FLAGS.BLUE', 'Doubles', {5}, blueFlag)
-- Flag information (x, y, z, {NONE = 0, HOME = 1, AWAY = 2})
co.addSpec('DEBUG.FLAGS.RED_HOME', 'Doubles', {4}, redFlagHome)
co.addSpec('DEBUG.FLAGS.BLUE_HOME', 'Doubles', {4}, blueFlagHome)
end
local CAM_ENABLED = [[
----
Warning debug camera controlls activated!
Move camera with WASD and Ctrl/Space to move up and down.
Click to print current camera position.
----
]]
local CAM_POS_STRING = [[
----
'Cam Pos: {%.2f, %.2f, %.2f}')
----
]]
function debug_observations.enableCameraMovement(api)
local time = 0
local buttonsDown = 0
local modifyControl = api.modifyControl
log.warn(CAM_ENABLED)
function api:modifyControl(actions)
local dt = game:episodeTimeSeconds() - time
time = game:episodeTimeSeconds()
local pos = debug_observations.getCameraPos().pos
pos[1] = pos[1] + actions.strafeLeftRight * 2 * dt
pos[2] = pos[2] + actions.moveBackForward * 2 * dt
pos[3] = pos[3] + actions.crouchJump * 2 * dt
if buttonsDown == 0 and actions.buttonsDown > 0 then
log.warn(string.format(CAM_POS_STRING, pos[1], pos[2], pos[3]))
end
buttonsDown = actions.buttonsDown
actions.buttonsDown = 0
actions.moveBackForward = 0
actions.strafeLeftRight = 0
actions.crouchJump = 0
return modifyControl and modifyControl(self, actions) or actions
end
end
return debug_observations
```
|
```html
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "path_to_url">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<title>Property Tree Synopsis</title>
<link rel="stylesheet" href="../../../doc/src/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
<link rel="home" href="../index.html" title="The Boost C++ Libraries BoostBook Documentation Subset">
<link rel="up" href="../property_tree.html" title="Chapter 31. Boost.PropertyTree">
<link rel="prev" href="container.html" title="Property Tree as a Container">
<link rel="next" href="parsers.html" title="How to Populate a Property Tree">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr>
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../boost.png"></td>
<td align="center"><a href="../../../index.html">Home</a></td>
<td align="center"><a href="../../../libs/libraries.htm">Libraries</a></td>
<td align="center"><a href="path_to_url">People</a></td>
<td align="center"><a href="path_to_url">FAQ</a></td>
<td align="center"><a href="../../../more/index.htm">More</a></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="container.html"><img src="../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../property_tree.html"><img src="../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../index.html"><img src="../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="parsers.html"><img src="../../../doc/src/images/next.png" alt="Next"></a>
</div>
<div class="section">
<div class="titlepage"><div><div><h2 class="title" style="clear: both">
<a name="property_tree.synopsis"></a><a class="link" href="synopsis.html" title="Property Tree Synopsis">Property Tree Synopsis</a>
</h2></div></div></div>
<p>
The central component of the library is the <code class="computeroutput"><a class="link" href="../boost/property_tree/basic_ptree.html" title="Class template basic_ptree">basic_ptree</a></code>
class template. Instances of this class are property trees. It is parametrized
on key and data type, and key comparison policy; <code class="computeroutput"><a class="link" href="../boost/property_tree/ptree.html" title="Type definition ptree">ptree</a></code>,
<code class="computeroutput"><a class="link" href="../boost/property_tree/wptree.html" title="Type definition wptree">wptree</a></code>, <code class="computeroutput"><a class="link" href="../boost/property_tree/iptree.html" title="Type definition iptree">iptree</a></code> and <code class="computeroutput"><a class="link" href="../boost/property_tree/wiptree.html" title="Type definition wiptree">wiptree</a></code>
are typedefs of <code class="computeroutput"><a class="link" href="../boost/property_tree/basic_ptree.html" title="Class template basic_ptree">basic_ptree</a></code>
using predefined combinations of template parameters. Property tree is basically
a somewhat simplified standard container (the closest being std::list), plus
a bunch of extra member functions. These functions allow easy and effective
access to the data stored in property tree. They are various variants of <code class="computeroutput"><a class="link" href="../boost/property_tree/basic_ptree.html#id-1_3_32_10_7_1_1_1_3_63-bb">get</a></code>, <code class="computeroutput"><a class="link" href="../boost/property_tree/basic_ptree.html#id-1_3_32_10_7_1_1_1_3_71-bb">put</a></code>, <code class="computeroutput"><a class="link" href="../boost/property_tree/basic_ptree.html#id-1_3_32_10_7_1_1_1_3_53-bb">get_value</a></code>,
<code class="computeroutput"><a class="link" href="../boost/property_tree/basic_ptree.html#id-1_3_32_10_7_1_1_1_3_61-bb">put_value</a></code>,
<code class="computeroutput"><a class="link" href="../boost/property_tree/basic_ptree.html#id-1_3_32_10_7_1_1_1_3_45-bb">get_child</a></code>,
<code class="computeroutput"><a class="link" href="../boost/property_tree/basic_ptree.html#id-1_3_32_10_7_1_1_1_3_51-bb">put_child</a></code>.
Additionally, there is a <code class="computeroutput"><a class="link" href="../boost/property_tree/basic_ptree.html#id-1_3_32_10_7_1_1_1_3_42-bb">data</a></code>
function to access node data directly.
</p>
<p>
See the <code class="computeroutput"><a class="link" href="../boost/property_tree/basic_ptree.html" title="Class template basic_ptree">basic_ptree class
template synopsis</a></code> for more information.
</p>
</div>
<table xmlns:rev="path_to_url~gregod/boost/tools/doc/revision" width="100%"><tr>
<td align="left"></td>
Redl<p>
file LICENSE_1_0.txt or copy at <a href="path_to_url" target="_top">path_to_url
</p>
</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="container.html"><img src="../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../property_tree.html"><img src="../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../index.html"><img src="../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="parsers.html"><img src="../../../doc/src/images/next.png" alt="Next"></a>
</div>
</body>
</html>
```
|
```viml
call ale#Set('haskell_hlint_executable', 'hlint')
call ale#Set('haskell_hlint_options', get(g:, 'hlint_options', ''))
function! ale#handlers#hlint#GetExecutable(buffer) abort
let l:executable = ale#Var(a:buffer, 'haskell_hlint_executable')
return ale#handlers#haskell_stack#EscapeExecutable(l:executable, 'hlint')
endfunction
```
|
```objective-c
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
#ifndef __has_feature // Optional.
#define __has_feature(x) 0 // Compatibility with non-clang compilers.
#endif
#ifndef NS_RETURNS_NOT_RETAINED
#if __has_feature(attribute_ns_returns_not_retained)
#define NS_RETURNS_NOT_RETAINED __attribute__((ns_returns_not_retained))
#else
#define NS_RETURNS_NOT_RETAINED
#endif
#endif
@class FMDatabase;
@class FMStatement;
/** Represents the results of executing a query on an `<FMDatabase>`.
### See also
- `<FMDatabase>`
*/
@interface FMResultSet : NSObject
@property (nonatomic, retain, nullable) FMDatabase *parentDB;
///-----------------
/// @name Properties
///-----------------
/** Executed query */
@property (atomic, retain, nullable) NSString *query;
/** `NSMutableDictionary` mapping column names to numeric index */
@property (readonly) NSMutableDictionary *columnNameToIndexMap;
/** `FMStatement` used by result set. */
@property (atomic, retain, nullable) FMStatement *statement;
///------------------------------------
/// @name Creating and closing database
///------------------------------------
/** Create result set from `<FMStatement>`
@param statement A `<FMStatement>` to be performed
@param aDB A `<FMDatabase>` to be used
@return A `FMResultSet` on success; `nil` on failure
*/
+ (instancetype)resultSetWithStatement:(FMStatement *)statement usingParentDatabase:(FMDatabase*)aDB;
/** Close result set */
- (void)close;
///---------------------------------------
/// @name Iterating through the result set
///---------------------------------------
/** Retrieve next row for result set.
You must always invoke `next` or `nextWithError` before attempting to access the values returned in a query, even if you're only expecting one.
@return `YES` if row successfully retrieved; `NO` if end of result set reached
@see hasAnotherRow
*/
- (BOOL)next;
/** Retrieve next row for result set.
You must always invoke `next` or `nextWithError` before attempting to access the values returned in a query, even if you're only expecting one.
@param outErr A 'NSError' object to receive any error object (if any).
@return 'YES' if row successfully retrieved; 'NO' if end of result set reached
@see hasAnotherRow
*/
- (BOOL)nextWithError:(NSError * _Nullable *)outErr;
/** Did the last call to `<next>` succeed in retrieving another row?
@return `YES` if the last call to `<next>` succeeded in retrieving another record; `NO` if not.
@see next
@warning The `hasAnotherRow` method must follow a call to `<next>`. If the previous database interaction was something other than a call to `next`, then this method may return `NO`, whether there is another row of data or not.
*/
- (BOOL)hasAnotherRow;
///---------------------------------------------
/// @name Retrieving information from result set
///---------------------------------------------
/** How many columns in result set
@return Integer value of the number of columns.
*/
@property (nonatomic, readonly) int columnCount;
/** Column index for column name
@param columnName `NSString` value of the name of the column.
@return Zero-based index for column.
*/
- (int)columnIndexForName:(NSString*)columnName;
/** Column name for column index
@param columnIdx Zero-based index for column.
@return columnName `NSString` value of the name of the column.
*/
- (NSString * _Nullable)columnNameForIndex:(int)columnIdx;
/** Result set integer value for column.
@param columnName `NSString` value of the name of the column.
@return `int` value of the result set's column.
*/
- (int)intForColumn:(NSString*)columnName;
/** Result set integer value for column.
@param columnIdx Zero-based index for column.
@return `int` value of the result set's column.
*/
- (int)intForColumnIndex:(int)columnIdx;
/** Result set `long` value for column.
@param columnName `NSString` value of the name of the column.
@return `long` value of the result set's column.
*/
- (long)longForColumn:(NSString*)columnName;
/** Result set long value for column.
@param columnIdx Zero-based index for column.
@return `long` value of the result set's column.
*/
- (long)longForColumnIndex:(int)columnIdx;
/** Result set `long long int` value for column.
@param columnName `NSString` value of the name of the column.
@return `long long int` value of the result set's column.
*/
- (long long int)longLongIntForColumn:(NSString*)columnName;
/** Result set `long long int` value for column.
@param columnIdx Zero-based index for column.
@return `long long int` value of the result set's column.
*/
- (long long int)longLongIntForColumnIndex:(int)columnIdx;
/** Result set `unsigned long long int` value for column.
@param columnName `NSString` value of the name of the column.
@return `unsigned long long int` value of the result set's column.
*/
- (unsigned long long int)unsignedLongLongIntForColumn:(NSString*)columnName;
/** Result set `unsigned long long int` value for column.
@param columnIdx Zero-based index for column.
@return `unsigned long long int` value of the result set's column.
*/
- (unsigned long long int)unsignedLongLongIntForColumnIndex:(int)columnIdx;
/** Result set `BOOL` value for column.
@param columnName `NSString` value of the name of the column.
@return `BOOL` value of the result set's column.
*/
- (BOOL)boolForColumn:(NSString*)columnName;
/** Result set `BOOL` value for column.
@param columnIdx Zero-based index for column.
@return `BOOL` value of the result set's column.
*/
- (BOOL)boolForColumnIndex:(int)columnIdx;
/** Result set `double` value for column.
@param columnName `NSString` value of the name of the column.
@return `double` value of the result set's column.
*/
- (double)doubleForColumn:(NSString*)columnName;
/** Result set `double` value for column.
@param columnIdx Zero-based index for column.
@return `double` value of the result set's column.
*/
- (double)doubleForColumnIndex:(int)columnIdx;
/** Result set `NSString` value for column.
@param columnName `NSString` value of the name of the column.
@return String value of the result set's column.
*/
- (NSString * _Nullable)stringForColumn:(NSString*)columnName;
/** Result set `NSString` value for column.
@param columnIdx Zero-based index for column.
@return String value of the result set's column.
*/
- (NSString * _Nullable)stringForColumnIndex:(int)columnIdx;
/** Result set `NSDate` value for column.
@param columnName `NSString` value of the name of the column.
@return Date value of the result set's column.
*/
- (NSDate * _Nullable)dateForColumn:(NSString*)columnName;
/** Result set `NSDate` value for column.
@param columnIdx Zero-based index for column.
@return Date value of the result set's column.
*/
- (NSDate * _Nullable)dateForColumnIndex:(int)columnIdx;
/** Result set `NSData` value for column.
This is useful when storing binary data in table (such as image or the like).
@param columnName `NSString` value of the name of the column.
@return Data value of the result set's column.
*/
- (NSData * _Nullable)dataForColumn:(NSString*)columnName;
/** Result set `NSData` value for column.
@param columnIdx Zero-based index for column.
@return Data value of the result set's column.
*/
- (NSData * _Nullable)dataForColumnIndex:(int)columnIdx;
/** Result set `(const unsigned char *)` value for column.
@param columnName `NSString` value of the name of the column.
@return `(const unsigned char *)` value of the result set's column.
*/
- (const unsigned char * _Nullable)UTF8StringForColumn:(NSString*)columnName;
- (const unsigned char * _Nullable)UTF8StringForColumnName:(NSString*)columnName __deprecated_msg("Use UTF8StringForColumn instead");
/** Result set `(const unsigned char *)` value for column.
@param columnIdx Zero-based index for column.
@return `(const unsigned char *)` value of the result set's column.
*/
- (const unsigned char * _Nullable)UTF8StringForColumnIndex:(int)columnIdx;
/** Result set object for column.
@param columnName Name of the column.
@return Either `NSNumber`, `NSString`, `NSData`, or `NSNull`. If the column was `NULL`, this returns `[NSNull null]` object.
@see objectForKeyedSubscript:
*/
- (id _Nullable)objectForColumn:(NSString*)columnName;
- (id _Nullable)objectForColumnName:(NSString*)columnName __deprecated_msg("Use objectForColumn instead");
/** Result set object for column.
@param columnIdx Zero-based index for column.
@return Either `NSNumber`, `NSString`, `NSData`, or `NSNull`. If the column was `NULL`, this returns `[NSNull null]` object.
@see objectAtIndexedSubscript:
*/
- (id _Nullable)objectForColumnIndex:(int)columnIdx;
/** Result set object for column.
This method allows the use of the "boxed" syntax supported in Modern Objective-C. For example, by defining this method, the following syntax is now supported:
id result = rs[@"employee_name"];
This simplified syntax is equivalent to calling:
id result = [rs objectForKeyedSubscript:@"employee_name"];
which is, it turns out, equivalent to calling:
id result = [rs objectForColumnName:@"employee_name"];
@param columnName `NSString` value of the name of the column.
@return Either `NSNumber`, `NSString`, `NSData`, or `NSNull`. If the column was `NULL`, this returns `[NSNull null]` object.
*/
- (id _Nullable)objectForKeyedSubscript:(NSString *)columnName;
/** Result set object for column.
This method allows the use of the "boxed" syntax supported in Modern Objective-C. For example, by defining this method, the following syntax is now supported:
id result = rs[0];
This simplified syntax is equivalent to calling:
id result = [rs objectForKeyedSubscript:0];
which is, it turns out, equivalent to calling:
id result = [rs objectForColumnName:0];
@param columnIdx Zero-based index for column.
@return Either `NSNumber`, `NSString`, `NSData`, or `NSNull`. If the column was `NULL`, this returns `[NSNull null]` object.
*/
- (id _Nullable)objectAtIndexedSubscript:(int)columnIdx;
/** Result set `NSData` value for column.
@param columnName `NSString` value of the name of the column.
@return Data value of the result set's column.
@warning If you are going to use this data after you iterate over the next row, or after you close the
result set, make sure to make a copy of the data first (or just use `<dataForColumn:>`/`<dataForColumnIndex:>`)
If you don't, you're going to be in a world of hurt when you try and use the data.
*/
- (NSData * _Nullable)dataNoCopyForColumn:(NSString *)columnName NS_RETURNS_NOT_RETAINED;
/** Result set `NSData` value for column.
@param columnIdx Zero-based index for column.
@return Data value of the result set's column.
@warning If you are going to use this data after you iterate over the next row, or after you close the
result set, make sure to make a copy of the data first (or just use `<dataForColumn:>`/`<dataForColumnIndex:>`)
If you don't, you're going to be in a world of hurt when you try and use the data.
*/
- (NSData * _Nullable)dataNoCopyForColumnIndex:(int)columnIdx NS_RETURNS_NOT_RETAINED;
/** Is the column `NULL`?
@param columnIdx Zero-based index for column.
@return `YES` if column is `NULL`; `NO` if not `NULL`.
*/
- (BOOL)columnIndexIsNull:(int)columnIdx;
/** Is the column `NULL`?
@param columnName `NSString` value of the name of the column.
@return `YES` if column is `NULL`; `NO` if not `NULL`.
*/
- (BOOL)columnIsNull:(NSString*)columnName;
/** Returns a dictionary of the row results mapped to case sensitive keys of the column names.
@warning The keys to the dictionary are case sensitive of the column names.
*/
@property (nonatomic, readonly, nullable) NSDictionary *resultDictionary;
/** Returns a dictionary of the row results
@see resultDictionary
@warning **Deprecated**: Please use `<resultDictionary>` instead. Also, beware that `<resultDictionary>` is case sensitive!
*/
- (NSDictionary * _Nullable)resultDict __deprecated_msg("Use resultDictionary instead");
///-----------------------------
/// @name Key value coding magic
///-----------------------------
/** Performs `setValue` to yield support for key value observing.
@param object The object for which the values will be set. This is the key-value-coding compliant object that you might, for example, observe.
*/
- (void)kvcMagic:(id)object;
@end
NS_ASSUME_NONNULL_END
```
|
```makefile
libavcodec/hevc_filter.o: libavcodec/hevc_filter.c libavutil/common.h \
libavutil/attributes.h libavutil/macros.h libavutil/version.h \
libavutil/avconfig.h config.h libavutil/intmath.h libavutil/common.h \
libavutil/mem.h libavutil/error.h libavutil/avutil.h \
libavutil/rational.h libavutil/mathematics.h libavutil/intfloat.h \
libavutil/log.h libavutil/pixfmt.h libavutil/internal.h \
libavutil/timer.h libavutil/cpu.h libavutil/dict.h libavutil/libm.h \
libavutil/internal.h libavcodec/cabac_functions.h libavcodec/cabac.h \
libavcodec/put_bits.h libavutil/intreadwrite.h libavutil/bswap.h \
libavutil/avassert.h libavcodec/hevc.h libavutil/buffer.h \
libavutil/md5.h libavcodec/avcodec.h libavutil/samplefmt.h \
libavutil/attributes.h libavutil/avutil.h libavutil/cpu.h \
libavutil/channel_layout.h libavutil/dict.h libavutil/frame.h \
libavutil/buffer.h libavutil/samplefmt.h libavutil/log.h \
libavutil/pixfmt.h libavutil/rational.h libavcodec/version.h \
libavutil/version.h libavcodec/bswapdsp.h libavcodec/get_bits.h \
libavcodec/mathops.h libavcodec/vlc.h libavcodec/hevcpred.h \
libavcodec/h2645_parse.h libavcodec/hevcdsp.h libavcodec/internal.h \
libavutil/mathematics.h libavcodec/thread.h libavcodec/videodsp.h \
libavcodec/bit_depth_template.c libavcodec/rnd_avg.h
```
|
Lieutenant-Colonel Ninian Imrie of Denmuir (died 1820) was a Scottish army officer and geologist. He gave the first wholly geological description of the Rock of Gibraltar. He stirred the Plutonist versus Neptunist debate during the Scottish Enlightenment.
Life
His family owned an estate known as Denmuir, near Abdie in Fife. He is thought to be born around 1750.
He was commissioned as an Ensign in 1768, the commission being purchased by a Stephen Gually. He became Lieutenant in 1772 and Captain in 1777. Imrie served in the Second Regiment of Foot (later renamed the Royal Scots) in Gibraltar from 1784 to 1793. Here he rose to be Aide-de-Camp for Lt General John Gordon Cuming Skene. During this period he is known to have corresponded with James Hutton in Edinburgh. He was promoted to Lt Colonel in 1798. In the same year he was elected a Fellow of the Royal Society of Edinburgh. His proposers were John Walker, Alexander Keith and John Playfair.
He retired on half pay in 1799. He was living permanently in Edinburgh from around 1805 at 63 Queen Street.
He died at 63 Queen Street in Edinburgh’s First New Town on 13 November 1820.
Publications
The Geology of the Rock of Gibraltar (1798)
A Catalogue of Specimens Illustrative of the Geology of Greece (1817)
References
1820 deaths
Fellows of the Royal Society of Edinburgh
Scottish geologists
Scottish landowners
Royal Scots officers
People from Fife
|
Melvin Cheren (1933 – December 7, 2007) was a record executive who helped start the Paradise Garage, also known as "Gay-rage", a New York City gay discothèque popular in the 1970s and '80s.
Early life
Melvin "Mel" Cheren was born on January 21, 1933, in Everett, Massachusetts, and grew up in the Boston area.
His first job in the music business was in 1959 as salesman for ABC-Paramount Records.
In the 1960s, Cheren joined the Army and served in Germany. In 1964, he was in charge of production for ABC Records. In the 70's, he accepted a position for Scepter and began campaigning with the company to start producing dance music.
West End Records
In 1976, Mel Cheren and Ed Kushins founded West End Records, the music label that defined the sound of New York City in the heyday of disco. Cheren created the 12-inch vinyl single, which permitted longer playing time than the standard seven-inch, and which gained its greatest popularity in discos.
Paradise Garage
Cheren was business partner and former lover of Michael Brody, who created the Paradise Garage in 1977 with the financial back-up of Cheren. In the 2006 "The Godfather of Disco," a documentary about Cheren, he himself called the Garage "the ultimate expression of the whole fabric" of gay night life.
Gay Men's Health Crisis
When Rodger McFarlane began a crisis counseling hotline about AIDS in 1982 as a program of the Gay Men's Health Crisis (GMHC) organization, he operated it out of a couple of rooms in a building in Chelsea owned by Mel Cheren. The building subsequently became the first headquarters and office of GMHC, rent-free. In 1984, when GMHC moved to larger quarters, Cheren turned the building into the Colonial House Inn, a 20-room gay-oriented guesthouse where he himself lived until his death.
24 Hours for Life
In the late 1980s, Cheren founded the nonprofit group "24 Hours for Life" to raise money for AIDS relief. Through the organization, he published his autobiography, My Life and the Paradise Garage: Keep On Dancin (2000).
Personal life
Mel Cheren died on December 7, 2007, from complications associated with AIDS.
References
1933 births
2007 deaths
People from Everett, Massachusetts
American LGBT rights activists
|
This is a list of notable people on the spectrum of asexuality who have been open about their sexuality. The number of notable asexual individuals is likely to be several times higher than the number of individuals who appear on this list due to fact that many famous people have hidden their sexual orientations.
People on the asexual spectrum lack sexual attraction to others or experience low or absent interest in or desire for sexual activity. The spectrum includes sub-identities, including gray asexuality and demisexuality. Asexual individuals may represent about one percent of the population.
Many people who identify as asexual also identify with other labels. These other identities include how they define their gender and their romantic orientation. They will oftentimes integrate these characteristics into a greater label that they identify with. Regarding romantic or emotional aspects of sexual orientation or sexual identity, for example, asexuals may identify as heterosexual, lesbian, gay, bisexual, queer or by the following terms to indicate that they associate with the romantic, rather than sexual, aspects of sexual orientation:
aromantic; little to no romantic attraction
biromantic; by analogy to bisexual
heteroromantic; by analogy to heterosexual
homoromantic; by analogy to homosexual
panromantic; by analogy to pansexual
List
See also
List of fictional asexual characters
List of Asexual, Non-binary, and Pansexual characters in television and radio
References
Lists of LGBT-related people
Asexual
|
Evie Ladin is an American musician, singer-songwriter, percussive dancer, choreographer, square dance caller living in Oakland, California. She performs with The Evie Ladin Band, a trio with Keith Terry and Erik Pearson, and also collaborates with Keith Terry as a duo. Other projects include two all-female groups: The Stairwell Sisters, an old-time group utilizing clawhammer banjo, guitar, bass and percussive dance; and MoToR/dance.
Ladin's 2012 CD titled Evie Ladin Band was voted Americana Album of the Year by the Independent Music Awards (IMAs) Vox Pop Vote. A banjo player since childhood, Ladin features regularly on the annual Banjo Babes compilation album and calendar. Ladin is also the Executive Director of the International Body Music Festival (IBMF), a project of the Oakland-based arts non profit Crosspulse.
Background
The daughter of an old time and traditional music enthusiast and International Folk Dance Instructor, Ladin and her sister Abby grew up immersed in traditional American music and dance. Summers were spent at either folk festivals or music camps. At home during the later years of American folk music revival, traveling musicians would often stop over for the night. She attended Brown University where she created a major in African Studies in Dance. She later traveled to Nigeria and studied dance on a Fulbright Fellowship. In the early 1990s, Ladin studied jazz and tap in New York followed by eight years working with Ohio-based dance company Rhythm in Shoes.
Ladin's work often explores the intersection of Appalachian music and dance with the traditions of the African Diaspora. In 2018, she returned to Africa for the 10th International Body Music Festival (IBMF) in Dzodze, Ghana.
Awards and honors
1991 Fulbright Fellowship
1991 Watson Fellowship
2012 Americana Album of the Year - Independent Music Awards Vox Pop Fan Vote
2013 Parents’ Choice Gold Award
Discography
Evie Ladin Band: Caught on a Wire (2019)
Evie Ladin Band: Riding the Rooster (2018)
Evie Ladin Band: Jump the Fire (2016)
Buckdancing for Beginners 2: Freestyle (2013)
Evie Ladin Band, Evie Ladin Band (2012)
Evie Ladin Band: Float Downstream (2010)
Stairwell Sisters, Get Off Your Money (2008), Lloyd Maines
Stairwell Sisters, Feet All Over the Floor (2005), Yodel-Ay-Hee
Stairwell Sisters, The Stairwell Sisters (2003), Yodel-Ay-Hee
Crosspulse Percussion Ensemble: I Like Everything About You, Yes I Do!
Crosspulse, Professor Terry's Circus Band Extraordináire (with Linda Tillery, David Balakrishnan, George Brooks, Paul Hanson and others)
Crosspulse, Body Tjak: The Soundtrack (with Indonesian artists)
Buckdancing for Beginners: The Basics of Southern Appalachian Flatfoot Clogging (2002)
Banjo Babes
References
External links
Year of birth missing (living people)
Living people
American banjoists
Women banjoists
American women singer-songwriters
American female dancers
American women choreographers
American choreographers
21st-century American women
|
Translocation may refer to:
Chromosomal translocation, a chromosome abnormality caused by rearrangement of parts
Robertsonian translocation, a chromosomal rearrangement in pairs 13, 14, 15, 21, and 22
Nonreciprocal translocation, transfer of genes from one chromosome to another
PEP group translocation, a method used by bacteria for sugar uptake
Twin-arginine translocation pathway, a protein export pathway found in plants, bacteria, and archaea
Translocation (botany), transport of nutrients through phloem
Protein translocation, also called protein targeting, a process in protein biosynthesis
Species translocation, movement of a species, by people, from one area to another
|
```javascript
import { PieChart } from '@fluentui/react-charting';
console.log(PieChart);
export default {
name: 'PieChart',
};
```
|
Yalıngöze is a village in the İliç District of Erzincan Province in Turkey. Its population is 27 (2022).
References
Villages in İliç District
|
Tulgheș ( or colloquially Tölgyes, Hungarian pronunciation: , meaning "place with oak trees in Gyergyó") is a commune in Harghita County, Romania. It lies in eastern Transylvania. The commune is composed of four villages: Hagota (Hágótő), Pintic (Péntekpataka), Recea (Récefalva) and Tulgheș.
Demography
At the 2011 census, 70.8% of inhabitants were Romanians and 28.8% Hungarians (Székelys). At the 2002 census, 65.5% of inhabitants were Romanian Orthodox and 31.3% Roman Catholic.
Tulgheș and Recea have ethnic Romanian majorities with large minorities of ethnic Hungarians, Pintic has an absolute Romanian majority, and Hagota has a Hungarian majority.
General information
Tulgheș commune is situated in the northeast part of Harghita County, at an average altitude of , on the lower part of the Bistricioara River.
This river flows from Călimani from an altitude of and crosses a total of . The Bistricioara River Basin is formed by the streams:
Putna, largest tributary (around ), which collects water from the mountains: Tătaru, Putna Întunecoasa, Șumuleu, Călugăreni Mic, Balaj, Rezu Mare and Marcu.
Diacul de Jos, Diacul de Sus, Baratelul and Pintecul, which flows under Mt. Chicera (), forming the “border” between Mount Higheș and to the east, the Ceahlău Massif.
Tulgheș received its name from the Tulgheș Pass, which links the Hang Depression in Neamț County with the Giurgeu Depression in Harghita County.
Transportation and important places in the area
Transportation in the area is exclusively by road.
The main highway is DN15, which first ascends from the Bistricioara Valley toward Creanga Pass, then descends into Toplița and DN12, then on to the Mureș Valley. East of Tulgheș, DN15 arrives in Poiana Largului and connects with DN17B toward Vatra Dornei, DN15C toward Târgu Neamț, and continues then to the Bistrița Valley toward Bicaz, Piatra Neamț and Bacău.
DJ127 rises via the Putna River Valley toward Tengheler Pass and descends into Ditrău and DN12 .
DJ127A, most easily traversed with an off-road vehicle, ascends via the Balaj River Valley toward the Balaj Pass then descends toward Bicazu Ardelean and DN12C.
Nearby notable cities include: Borsec (), Bilbor ( via Borsec and then DJ144A), Toplița (45 km), Ditrău ( via DJ127), Gheorgheni ( via DJ127 via Toplița).
Larger cities in the area include: Piatra Neamț (), Târgu Neamț (), Vatra Dornei ( via the Bistrița Valley, via Borsec-Creanga Pass-Bilbor on DJ174A).
Geomorphological and climatic highlights
The mountains around the village are:
To the east: Borsec Mountains, the northern sector from the Giurgeu Mountains through Rezu Mare Peak – Round Batca Mountains () with the village's nearest peak – Obcina Mica ().
To the south: Hășmaș Mountains, the northwest group through Tulgheș Peak – Mt. Higheș () – with the village's nearest peaks – Preluca Mare () and Bâtca Pițului ().
To the north: The Mountains of Bistrița, which are bordered by the Bistricioara River to the southwest; the Rock of Comarnic, which resembles a ruined citadel (); the Comarnic Plateau, which lies to the southwest of the Red Rock ().
The Ceahlău Massif
The climate is specific to mountain zones with cool summers (average temperature of 14-16 degrees C in July) and moderate winters.
The average annual temperature ranges from 5-6 degrees C, and the average rainfall is about 1000mm/m2. There is snow on the ground 80–100 days per year, with an average thickness of 250 cm in the higher mountain altitudes. Due to the shelter of the mountains surrounding it, The Corbu-Tulgheș Depression receives more favorable weather conditions than in the Giurgeu Depression of the Upper Mureș Valley, where temperatures are much lower.
Economic highlights
The primary economic source is the development of local natural resources. However, a secondary source is pastoral farming and vegetable farming practiced in private households, where a smaller yield is cultivated because the primary goal is sustainability.
On the way toward Mt. Grințieș via the Primatar River Valley on the perimeter of Preluca Ursului, there is a uranium deposit with two areas of experimental exploration: Primatar I and II, which are currently in preservation.
The community also benefits from a post office and several private trade shops, including a barber, shoemaker and blacksmith.
Historical highlights
The community of Tulgheș developed after the 17th century, mainly in the 19th century when there was a change in the local Transcarpathian roads. At the end of the 18th century, the Priska Pass used to be the gateway for travelers by foot and horseback. The official customs and quarantine office was on Mt. Priska (Piricske) between Putna and Belcina. Those coming from Gheorgheni (Gyergyószentmiklós) used to climb up Mount Tătarul (Tatárhágó) and then descend via the Putna Valley, and, through Tulgheș, arrived in Moldavia. The Transylvanian checkpoint at Priska moved in 1806 toward Gura Putnei in Tulgheș, while the Moldovan checkpoint moved to Prisecani (1792).
The population flood from the Mureș corridor (Romanian and Székely) and from the Bistrița Valley took over the existing Romanian population in Tulgheș.
The name, which comes from “Oak Tree” after the oak forest found on the southern slope of the foothills of the Bistrița Mountains toward the Bistricioara Valley, originates from the Hungarian Tölgyes. However, it was later renamed officially Tulgheș after 1920, similar to Rezu Mare (Nagyréz), Pârâul Mărului (Marpatak), Gyergótölgyes, etc.
Opportunities
In the Tulgheș area, there are 30 mineral springs, of which 11 have been recorded and inventoried. The current bioclimate also makes the area suitable for spas. The most important springs are Șesul Comarnicului, Laurențiu, Branea, Prisecani, Diacul de Sus, Diacul de Jos, Cibeni, Șandoreni and Rezu Mare.
Touristic landmarks and memorials
Military Memorial dedicated to the Romanian Heroes from the First World War can be found in the village along DJ127, above the former Hungarian barracks built in the years 1942/1943 and next to where the Marc River empties into the Putna River. The reburial of fallen soldiers (originally buried on Mt. Higheș) was done in 1989 with honors. Here are buried 49 soldiers from the 28th Infantry Brigade, who were killed in the area battles in Valea Jidanului, Covorea, Valea Putnei, Pietrele Roșii and Baret. The memorial includes a memorial cross, unveiled in 1916. It stands 1.3m tall and is made of granite. In the foreground of the commemorative cross is inscribed “War heroes to complete the race. 1914-1919.” The small wooden church at the Military Cemeteray dates back to 1790, itself a historical monument.
Piatra Roșie Reservation (1,215m): gliding, climbing, sightseeing
Piatra Runcului (1,296m)
Platoul Comarnicului (Comarnic Plateau)
Protected area of pedunculate oaks (Quercus pedunculiflora), which is expecting the declaration of preserve status, is situated on the exposed, southern slopes of the Bistricioara Valley and covers about 77 hectares.
Hungarian Army Barracks (1942/1944). Also formerly a tuberculosis hospital, it is currently used as a psychiatric hospital. In the past, it was also used for the accommodation of 2,000-3,000 Greek children, who became orphans during the Greek Civil War (1946-1949).
The Romanian Orthodox church dedicated to the Assumption (built in 1882)
An Armenian family crypt, which is near the Romanian Orthodox church
The lime kiln in Valea Frumoasă dating back to the 18th century
Water mill dating from the 18th century, which still works today
A clock tower, in which the clock is made of wood
Former “Tulgheș Inn,” currently at the Sibiu Museum of Culture and Civilization
There is also recreational fishing in the area.
A locally owned hunting cabin on the property of Romsilva, which is included in the tourist circuit.
Natives
Alexandru Nicolescu (1882–1941), bishop of the Greek-Catholic Church.
References
Bibliography
Primăria Comunei Tulgheș
Strategia de dezvoltare locala a comunei Tulghes pentru perioada 2007 – 2013
Despre Tulgheș pe Portalul eComunitate
Informații de pe teren culese de turiști
Hărți Munții Bistriței
Sudul Munților Bistriței - Pietrele Roșii și Platoul Comarnicului
Sudul Munților Bistriței - Piatra Runcului
Colecția Munții Noștri - Nr. 16 Hășmaș, Emilian Cristea, Editura Sport-Turism, București, 1978
Colecția Munții Noștri - Nr. 7 Munții Giurgeului, Marcu Ovidiu, Editura Sport-Turism, București, 1974
External links
The Drăgoiasa-Tulgheș Depressionary Alignment. The Tourism Potential, Arrangement and Capitalization, George-Bogdan Tofan, Studia universitas Babeș-Bolyai - Geographia, Nr. 2, 2011 accesat 2012.09.05
Drăgoiasa-Tulgheș Depressionary Alignment. The Numerical Evolution of Population between 1850 and 2010, George-Bogdan Tofan, Studia universitas Babeș-Bolyai - Geographia, Nr. 2, 2011 accesat 2012.09.05
Communes in Harghita County
Localities in Transylvania
Székely communities
|
Minati Mishra (1929 – 6 January 2020) was an Indian classical dancer and actress, known for her expertise in the Indian classical dance form of Odissi. She was reported in 2011 to be the oldest-living Odissi performer. The Government of India honored Mishra in 2012, with the fourth-highest civilian award of Padma Shri.
Early life
Minati Mishra, née Minati Das, was born in 1929 in Cuttack, now in the Indian state of Odisha, to Basanta Kumar Das, a local school headmaster, as the youngest of his three children. She started to learn dance and music at an early age, theme-based dance under the tutelage of Ajit Ghosh and Banabihari Maity and Odissi from Kabichandra Kalicharan Patnayak, an Odissi dancer. In 1950, Minati Mishra started learning under Kelucharan Mahapatra, the well-known Odissi guru.
In 1954, Minati Mishra joined Kalakshetra of Rukmini Devi Arundale, on a scholarship from the Government of Odisha, and learned Bharatanatyam for one year under Kutty Sarada and Peria Sarada. The next year, she joined the Indian Institute of Free Arts for training under Panda Wallur Pillai Chukkalingam and Minakshi Sunderam Pillai. She debuted in 1956, the first of several performances she rendered, during the next three years, at a number of major cities in India. In 1959, she was invited to Switzerland by the International Photographic Association, and performed in Zurich, Lucerne, Geneva and Winterthur. Three years later, she was awarded a doctoral degree in Indology from the Philipp University of Marburg, Germany for a thesis on Natyashastra. In 1963, she was invited for a performance at the Berlin Film Festival. She was noted for her expressive (Bhava) and dramatization (Abhinaya) skills.
Acting career
Mishra acted in five Odia films. Her debut film Suryamukhi was released in 1963, followed by Jeevan Sathi, Sadhana, and Arundhati. All four received the National Film Award for Best Feature Film in Odia. She also acted in a 1963 Bengali film, Nirjana Saikate in which she has performed an Odissi dance number choreographed by Kelucharan Mahapatra. Apart from her film career she was also an A Grade artist at the All India Radio and was a recipient of Sangeet Prabhakar title for Hindustani vocal music.
Mishra was the principal of the Utkal Sangeet Mohavidyalaya, Bhubaneswar from 1964 till 1989. During her tenure there, the institution regularised its curriculum, academically formalised Odissi dance and music training, introduced theatrical aspects into the syllabus and established examination guidelines, all of which are reported to have helped in the revival of Odissi. The stint at the institution also gave her opportunity to work alongside the first-generation gurus of Odissi such as Pankaj Charan Das and Deba Prasad Das.
Retirement
Soon after the death of her husband, Nityananda Mishra, who was an engineer, in 1980, Mishra retired from dance performances and formally retired in 1990. She settled in Switzerland and devoted her time to dance festivals, lecture tours and workshops in Switzerland, Canada and India.
She died on 6 January 2020 in Switzerland.
Filmography
Her films include:
Awards and recognitions
Mishra was a recipient of the 1975 Orissa Sangeet Natak Akademi Award. She also received the Kalinga Shastriya Sangeet Parishad Award and in 2000, she received the Sangeet Natak Akademi Award. In 2012, the Government of India awarded her the Padma Shri, the fourth-highest civilian award of India.
References
External links
1929 births
2020 deaths
Recipients of the Padma Shri in arts
Recipients of the Sangeet Natak Akademi Award
Performers of Indian classical dance
People from Cuttack
Odissi exponents
Indian film actresses
Indian female classical dancers
20th-century Indian women artists
Actresses from Odisha
20th-century Indian dancers
Dancers from Odisha
20th-century Indian actresses
Women artists from Odisha
|
World War Zero is an American coalition launched by John Kerry in 2019 to fight the climate crisis. The main goal of the coalition is to hold more than ten million “climate conversations” in 2020 with citizens across the political spectrum.
Background
According to scientists assembled by the United Nations, global carbon emissions must be halved by 2030 and eliminated entirely by 2050 in order to restrict global warming to comparatively safe levels for humanity.
John Kerry, former US presidential candidate and former US Secretary of State, launched the coalition in late 2019. Members of the organization include politicians, military leaders, and celebrities.
Goals
The aim of the coalition is to address climate change and find ways to prevent the destruction of human habitats. It plans to achieve this by mobilizing the public in America and around the world in order to raise awareness for the issue. Kerry stated that a rapid mobilization is needed to halt the increase in carbon emissions worldwide immediately.
The name of the coalition–World War Zero–refers to the danger to national security presented by global warming. When Chuck Todd asked John Kerry during his Sunday morning appearance on NBC’s Meet The Press, whether the real issue was getting United States President Donald Trump to act on climate, Kerry replied:
List of participants
Among the 60 founders of the coalition were:
Madeleine Albright, former US secretary of State
Gordon Brown, former prime minister of the United Kingdom
Jimmy Carter, former US president
Bill Clinton, former US president
Leonardo DiCaprio, actor and environmental activist
Katie Eder, activist and social entrepreneur
John Kasich, former governor of Ohio
John Kerry, former US senator and former US secretary of State
Ashton Kutcher, actor and producer
Cindy McCain, businesswoman, philanthropist, and humanitarian
Stanley A. McChrystal, retired United States Army general
Shay Mitchell, actress, model, entrepreneur and author
Ernest Moniz, nuclear physicist and former US secretary of Energy
Hank Paulson, former US secretary of the Treasury
Susan Rice, former US National Security Advisor and US Ambassador to the United Nations
Arnold Schwarzenegger, former governor of California
Al Sharpton, civil rights activist, Baptist minister, talk show host and politician
Jaden Smith, rapper, singer, songwriter
Olympia Snowe, businesswoman and politician, former United States Senator from Maine
Sting, singer
Emma Watson, actress, model and activist
Meg Whitman, business executive, political activist, and philanthropist
References
External links
World War Zero, official website
Climate change organizations based in the United States
Organizations established in 2019
|
```php
<?php
/*
*
*
* path_to_url
*
* Unless required by applicable law or agreed to in writing, software
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
*/
namespace Google\Service\TagManager;
class Entity extends \Google\Model
{
protected $builtInVariableType = BuiltInVariable::class;
protected $builtInVariableDataType = '';
/**
* @var string
*/
public $changeStatus;
protected $clientType = Client::class;
protected $clientDataType = '';
protected $customTemplateType = CustomTemplate::class;
protected $customTemplateDataType = '';
protected $folderType = Folder::class;
protected $folderDataType = '';
protected $gtagConfigType = GtagConfig::class;
protected $gtagConfigDataType = '';
protected $tagType = Tag::class;
protected $tagDataType = '';
protected $transformationType = Transformation::class;
protected $transformationDataType = '';
protected $triggerType = Trigger::class;
protected $triggerDataType = '';
protected $variableType = Variable::class;
protected $variableDataType = '';
protected $zoneType = Zone::class;
protected $zoneDataType = '';
/**
* @param BuiltInVariable
*/
public function setBuiltInVariable(BuiltInVariable $builtInVariable)
{
$this->builtInVariable = $builtInVariable;
}
/**
* @return BuiltInVariable
*/
public function getBuiltInVariable()
{
return $this->builtInVariable;
}
/**
* @param string
*/
public function setChangeStatus($changeStatus)
{
$this->changeStatus = $changeStatus;
}
/**
* @return string
*/
public function getChangeStatus()
{
return $this->changeStatus;
}
/**
* @param Client
*/
public function setClient(Client $client)
{
$this->client = $client;
}
/**
* @return Client
*/
public function getClient()
{
return $this->client;
}
/**
* @param CustomTemplate
*/
public function setCustomTemplate(CustomTemplate $customTemplate)
{
$this->customTemplate = $customTemplate;
}
/**
* @return CustomTemplate
*/
public function getCustomTemplate()
{
return $this->customTemplate;
}
/**
* @param Folder
*/
public function setFolder(Folder $folder)
{
$this->folder = $folder;
}
/**
* @return Folder
*/
public function getFolder()
{
return $this->folder;
}
/**
* @param GtagConfig
*/
public function setGtagConfig(GtagConfig $gtagConfig)
{
$this->gtagConfig = $gtagConfig;
}
/**
* @return GtagConfig
*/
public function getGtagConfig()
{
return $this->gtagConfig;
}
/**
* @param Tag
*/
public function setTag(Tag $tag)
{
$this->tag = $tag;
}
/**
* @return Tag
*/
public function getTag()
{
return $this->tag;
}
/**
* @param Transformation
*/
public function setTransformation(Transformation $transformation)
{
$this->transformation = $transformation;
}
/**
* @return Transformation
*/
public function getTransformation()
{
return $this->transformation;
}
/**
* @param Trigger
*/
public function setTrigger(Trigger $trigger)
{
$this->trigger = $trigger;
}
/**
* @return Trigger
*/
public function getTrigger()
{
return $this->trigger;
}
/**
* @param Variable
*/
public function setVariable(Variable $variable)
{
$this->variable = $variable;
}
/**
* @return Variable
*/
public function getVariable()
{
return $this->variable;
}
/**
* @param Zone
*/
public function setZone(Zone $zone)
{
$this->zone = $zone;
}
/**
* @return Zone
*/
public function getZone()
{
return $this->zone;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Entity::class, 'Google_Service_TagManager_Entity');
```
|
Maera can refer to:
Mythology and religion
The name Maera or Maira is used by several beings in Greek mythology:
Maera (hound), hound of Icarius, was turned into the dog star
Maera, daughter of Proetus the son of Thersander, mother of Locrus by Zeus
Maera, daughter of Atlas, wife of Tegeates
Maera, one of the Nereids, daughters of Nereus and Doris
Maera, one of the four daughters of the river god Erasinus, along with Anchirhoe, Byze and Melite; they are associated with Britomartis
Maera or Mæra, an alternative name for Mara, a demon in Buddhist teachings
Biology
Maera (crustacean), a genus of amphipod crustaceans
Places
Maera (Arcadia), a town of ancient Arcadia, Greece
Mæra, a land in the Norse saga of Egill Skallagrímsson
See also
Marea (disambiguation)
Mera (disambiguation)
|
```kotlin
package kotlinx.coroutines.testing
import kotlinx.coroutines.*
import kotlin.test.*
import kotlin.js.*
actual typealias NoJs = Ignore
actual val VERBOSE = false
actual val isStressTest: Boolean = false
actual val stressTestMultiplier: Int = 1
actual val stressTestMultiplierSqrt: Int = 1
@JsName("Promise")
external class MyPromise {
fun then(onFulfilled: ((Unit) -> Unit), onRejected: ((Throwable) -> Unit)): MyPromise
fun then(onFulfilled: ((Unit) -> Unit)): MyPromise
}
/** Always a `Promise<Unit>` */
public actual typealias TestResult = MyPromise
internal actual fun lastResortReportException(error: Throwable) {
println(error)
console.log(error)
}
actual open class TestBase(
private val errorCatching: ErrorCatching.Impl
): OrderedExecutionTestBase(), ErrorCatching by errorCatching {
private var lastTestPromise: Promise<*>? = null
actual constructor(): this(errorCatching = ErrorCatching.Impl())
actual fun println(message: Any?) {
kotlin.io.println(message)
}
actual fun runTest(
expected: ((Throwable) -> Boolean)?,
unhandled: List<(Throwable) -> Boolean>,
block: suspend CoroutineScope.() -> Unit
): TestResult {
var exCount = 0
var ex: Throwable? = null
/*
* This is an additional sanity check against `runTest` mis-usage on JS.
* The only way to write an async test on JS is to return Promise from the test function.
* _Just_ launching promise and returning `Unit` won't suffice as the underlying test framework
* won't be able to detect an asynchronous failure in a timely manner.
* We cannot detect such situations, but we can detect the most common erroneous pattern
* in our code base, an attempt to use multiple `runTest` in the same `@Test` method,
* which typically is a premise to the same error:
* ```
* @Test
* fun incorrectTestForJs() { // <- promise is not returned
* for (parameter in parameters) {
* runTest {
* runTestForParameter(parameter)
* }
* }
* }
* ```
*/
if (lastTestPromise != null) {
error("Attempt to run multiple asynchronous test within one @Test method")
}
val result = GlobalScope.promise(block = block, context = CoroutineExceptionHandler { _, e ->
if (e is CancellationException) return@CoroutineExceptionHandler // are ignored
exCount++
when {
exCount > unhandled.size ->
error("Too many unhandled exceptions $exCount, expected ${unhandled.size}, got: $e", e)
!unhandled[exCount - 1](e) ->
error("Unhandled exception was unexpected: $e", e)
}
}).catch { e ->
ex = e
if (expected != null) {
if (!expected(e)) {
console.log(e)
error("Unexpected exception $e", e)
}
} else
throw e
}.finally {
if (ex == null && expected != null) error("Exception was expected but none produced")
if (exCount < unhandled.size)
error("Too few unhandled exceptions $exCount, expected ${unhandled.size}")
errorCatching.close()
checkFinishCall()
}
lastTestPromise = result
@Suppress("CAST_NEVER_SUCCEEDS")
return result as MyPromise
}
}
actual val isNative = false
actual val isBoundByJsTestTimeout = true
actual val isJavaAndWindows: Boolean get() = false
actual val usesSharedEventLoop: Boolean = false
```
|
```c++
/*
*
* This program is free software: you can redistribute it and/or modify
* the Free Software Foundation, either version 2 or (at your option)
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
*
* along with this program. If not, see <path_to_url
*/
#include "TestSSHAgent.h"
#include "config-keepassx-tests.h"
#include "core/Config.h"
#include "crypto/Crypto.h"
#include "sshagent/KeeAgentSettings.h"
#include "sshagent/OpenSSHKeyGen.h"
#include "sshagent/SSHAgent.h"
#include <QTest>
QTEST_GUILESS_MAIN(TestSSHAgent)
void TestSSHAgent::initTestCase()
{
QVERIFY(Crypto::init());
Config::createTempFileInstance();
m_agentSocketFile.setAutoRemove(true);
QVERIFY(m_agentSocketFile.open());
m_agentSocketFileName = m_agentSocketFile.fileName();
QVERIFY(!m_agentSocketFileName.isEmpty());
// let ssh-agent re-create it as a socket
QVERIFY(m_agentSocketFile.remove());
QStringList arguments;
arguments << "-D" << "-a" << m_agentSocketFileName;
QElapsedTimer timer;
timer.start();
qDebug() << "ssh-agent starting with arguments" << arguments;
m_agentProcess.setProcessChannelMode(QProcess::ForwardedChannels);
m_agentProcess.start("ssh-agent", arguments);
m_agentProcess.closeWriteChannel();
if (!m_agentProcess.waitForStarted()) {
QSKIP("ssh-agent could not be started");
}
qDebug() << "ssh-agent started as pid" << m_agentProcess.processId();
// we need to wait for the agent to open the socket before going into real tests
QFileInfo socketFileInfo(m_agentSocketFileName);
while (!timer.hasExpired(2000)) {
if (socketFileInfo.exists()) {
break;
}
QTest::qWait(10);
}
QVERIFY(socketFileInfo.exists());
qDebug() << "ssh-agent initialized in" << timer.elapsed() << "ms";
// initialize test key
const QString keyString = QString("-----BEGIN OPENSSH PRIVATE KEY-----\n"
your_sha256_hashc2gtZW\n"
your_sha256_hashj94An4\n"
"/your_sha256_hashzeazA\n"
your_sha256_hashcGL3AE\n"
your_sha256_hasheGMBAg\n"
"MEBQY=\n"
"-----END OPENSSH PRIVATE KEY-----\n");
const QByteArray keyData = keyString.toLatin1();
QVERIFY(m_key.parsePKCS1PEM(keyData));
}
void TestSSHAgent::testConfiguration()
{
SSHAgent agent;
// default config must not enable agent
QVERIFY(!agent.isEnabled());
agent.setEnabled(true);
QVERIFY(agent.isEnabled());
// this will either be an empty string or the real ssh-agent socket path, doesn't matter
QString defaultSocketPath = agent.socketPath(false);
// overridden path must match default before setting an override
QCOMPARE(agent.socketPath(true), defaultSocketPath);
agent.setAuthSockOverride(m_agentSocketFileName);
// overridden path must match what we set
QCOMPARE(agent.socketPath(true), m_agentSocketFileName);
// non-overridden path must match the default
QCOMPARE(agent.socketPath(false), defaultSocketPath);
}
void TestSSHAgent::testIdentity()
{
SSHAgent agent;
agent.setEnabled(true);
agent.setAuthSockOverride(m_agentSocketFileName);
QVERIFY(agent.isAgentRunning());
KeeAgentSettings settings;
bool keyInAgent;
// test adding a key works
QVERIFY(agent.addIdentity(m_key, settings, m_uuid));
QVERIFY(agent.checkIdentity(m_key, keyInAgent) && keyInAgent);
// test non-conflicting key ownership doesn't throw an error
QVERIFY(agent.addIdentity(m_key, settings, m_uuid));
// test conflicting key ownership throws an error
QUuid secondUuid("{11111111-1111-1111-1111-111111111111}");
QVERIFY(!agent.addIdentity(m_key, settings, secondUuid));
// test removing a key works
QVERIFY(agent.removeIdentity(m_key));
QVERIFY(agent.checkIdentity(m_key, keyInAgent) && !keyInAgent);
}
void TestSSHAgent::testRemoveOnClose()
{
SSHAgent agent;
agent.setEnabled(true);
agent.setAuthSockOverride(m_agentSocketFileName);
QVERIFY(agent.isAgentRunning());
KeeAgentSettings settings;
bool keyInAgent;
settings.setRemoveAtDatabaseClose(true);
QVERIFY(agent.addIdentity(m_key, settings, m_uuid));
QVERIFY(agent.checkIdentity(m_key, keyInAgent) && keyInAgent);
agent.setEnabled(false);
QVERIFY(agent.checkIdentity(m_key, keyInAgent) && !keyInAgent);
}
void TestSSHAgent::testLifetimeConstraint()
{
SSHAgent agent;
agent.setEnabled(true);
agent.setAuthSockOverride(m_agentSocketFileName);
QVERIFY(agent.isAgentRunning());
KeeAgentSettings settings;
bool keyInAgent;
settings.setUseLifetimeConstraintWhenAdding(true);
settings.setLifetimeConstraintDuration(2); // two seconds
// identity should be in agent immediately after adding
QVERIFY(agent.addIdentity(m_key, settings, m_uuid));
QVERIFY(agent.checkIdentity(m_key, keyInAgent) && keyInAgent);
QElapsedTimer timer;
timer.start();
// wait for the identity to time out
while (!timer.hasExpired(5000)) {
QVERIFY(agent.checkIdentity(m_key, keyInAgent));
if (!keyInAgent) {
break;
}
QTest::qWait(100);
}
QVERIFY(!keyInAgent);
}
void TestSSHAgent::testConfirmConstraint()
{
SSHAgent agent;
agent.setEnabled(true);
agent.setAuthSockOverride(m_agentSocketFileName);
QVERIFY(agent.isAgentRunning());
KeeAgentSettings settings;
bool keyInAgent;
settings.setUseConfirmConstraintWhenAdding(true);
QVERIFY(agent.addIdentity(m_key, settings, m_uuid));
// we can't test confirmation itself is working but we can test the agent accepts the key
QVERIFY(agent.checkIdentity(m_key, keyInAgent) && keyInAgent);
QVERIFY(agent.removeIdentity(m_key));
QVERIFY(agent.checkIdentity(m_key, keyInAgent) && !keyInAgent);
}
void TestSSHAgent::testToOpenSSHKey()
{
KeeAgentSettings settings;
settings.setSelectedType("file");
settings.setFileName(QString("%1/id_rsa-encrypted-asn1").arg(QString(KEEPASSX_TEST_DATA_DIR)));
OpenSSHKey key;
settings.toOpenSSHKey("username", "correctpassphrase", QString(), nullptr, key, false);
QVERIFY(!key.publicKey().isEmpty());
}
void TestSSHAgent::testKeyGenRSA()
{
SSHAgent agent;
agent.setEnabled(true);
agent.setAuthSockOverride(m_agentSocketFileName);
QVERIFY(agent.isAgentRunning());
OpenSSHKey key;
KeeAgentSettings settings;
bool keyInAgent;
QVERIFY(OpenSSHKeyGen::generateRSA(key, 2048));
QVERIFY(agent.addIdentity(key, settings, m_uuid));
QVERIFY(agent.checkIdentity(key, keyInAgent) && keyInAgent);
QVERIFY(agent.removeIdentity(key));
QVERIFY(agent.checkIdentity(key, keyInAgent) && !keyInAgent);
}
void TestSSHAgent::testKeyGenECDSA()
{
SSHAgent agent;
agent.setEnabled(true);
agent.setAuthSockOverride(m_agentSocketFileName);
QVERIFY(agent.isAgentRunning());
OpenSSHKey key;
KeeAgentSettings settings;
bool keyInAgent;
QVERIFY(OpenSSHKeyGen::generateECDSA(key, 256));
QVERIFY(agent.addIdentity(key, settings, m_uuid));
QVERIFY(agent.checkIdentity(key, keyInAgent) && keyInAgent);
QVERIFY(agent.removeIdentity(key));
QVERIFY(agent.checkIdentity(key, keyInAgent) && !keyInAgent);
}
void TestSSHAgent::testKeyGenEd25519()
{
SSHAgent agent;
agent.setEnabled(true);
agent.setAuthSockOverride(m_agentSocketFileName);
QVERIFY(agent.isAgentRunning());
OpenSSHKey key;
KeeAgentSettings settings;
bool keyInAgent;
QVERIFY(OpenSSHKeyGen::generateEd25519(key));
QVERIFY(agent.addIdentity(key, settings, m_uuid));
QVERIFY(agent.checkIdentity(key, keyInAgent) && keyInAgent);
QVERIFY(agent.removeIdentity(key));
QVERIFY(agent.checkIdentity(key, keyInAgent) && !keyInAgent);
}
void TestSSHAgent::cleanupTestCase()
{
if (m_agentProcess.state() != QProcess::NotRunning) {
qDebug() << "Killing ssh-agent pid" << m_agentProcess.processId();
m_agentProcess.terminate();
m_agentProcess.waitForFinished();
}
m_agentSocketFile.remove();
}
```
|
The 96th District of Algoma Battalion of Rifles was a short-lived rifle regiment of the Non-Permanent Active Militia of the Canadian Militia (now the Canadian Army). First formed in 1886 with its Headquarters in Port Arthur, Ontario (now the city of Thunder Bay, Ontario), the battalion had companies across Northern Ontario. In 1896, the 96th Battalion was disbanded. The battalion is considered a predecessor unit to The Lake Superior Scottish Regiment.
History
The Port Arthur Rifle Company
Before 1885, there were efforts in the Thunder Bay District region of Northern Ontario to form a volunteer unit of the Canadian Militia for some years. Things would change however with the outbreak of the North-West Rebellion in the Spring of 1885, troops from Eastern Canada were rushed through the small town of Port Arthur (now part of Thunder Bay) along the head of Lake Superior over the near-completed CPR line on their way out west to suppress the uprising. This created a patriotic stir in the small port community and as a result local banker, Samuel Wellington Ray, proposed the formation of a local militia company of riflemen.
On 24 April 1885, Ray received a telegram from the Minister of Militia and Defence Adolphe-Philippe Caron authorizing him to form the new unit which read: “I am disposed to authorize full company for the time the disturbance will last. They would have to procure their own equipment and arms as we could not supply them until navigation opens.” An Independent Company of Rifles designated as The Port Arthur Rifle Company was soon formed with Ray commissioned as a Captain in the Non-Permanent Active Militia and appointed in command of the new company. Local interest in the unit remained high even after the western rebellion had been put down.
96th District of Algoma Battalion of Rifles
On 10 December 1886, the Provisional Battalion of Rifles was authorized for service with the Port Arthur Rifle Company forming part and neighboring companies were authorized in Fort William, Rat Portage (now Kenora) and Gore Bay, Ontario. Ray would be given command of the new unit with the rank of Major.
On 29 April 1887, the battalion was Redesignated as the 96th District of Algoma Battalion of Rifles and had additional companies authorized in Bruce Mines, Thessalon and Sault Ste. Marie. However, in June 1892, the eastern boundary of Military District No. 10 to which the 96th Battalion belonged too was redrawn further east to the Nipigon River and with Sault Ste. Marie now in the jurisdiction of Military District No. 2, the Sault St. Marie Company was separated from the 96th Battalion and became an independent militia company again along with the Gore Bay and Thessalon companies. That same year, command of the 96th Battalion passed from Major Ray to Major T.H. Elliot.
Disbandment & Legacy
During their existence, the officers and men of the 96th Battalion drilled and practiced musketry and were known far and wide for their marksmanship. However, since the time the battalion had been established, the unit suffered from a lack of adequate drill sheds and armouries for its companies in the region and had never even received any authorized annual drill from the Militia Department in Ottawa, so the unit as a whole had never trained together, but only at the individual company level. By the mid-1890s however, local interest in the unit was waning and the ranks dwindling so much the unit had all but disintegrated. Finally on 22 August 1896, the battalion was disbanded from the Canadian Militia just short of its 10th Anniversary in service with a General Order dated on 28 August 1896, stating: "This Battalion having become non-effective, is struck off the strength of the Militia 22nd August, 1896."
The Sault Ste. Marie Independent Company would survive as an independent unit until 1 July 1900, when it became the nucleus of a new unit raised in Sault Ste, Marie, the 97th Regiment of Rifles - today The Algonquin Regiment (Northern Pioneers). In 1913, the company in Sault Ste. Marie was transferred again to a new unit the 51st Regiment (Soo Rifles) – today the 49th Field Artillery Regiment, RCA.
Various attempts over the next couple years to raise a new militia battalion in the Thunder Bay District would be unsuccessful until 3 July 1905, when the 96th Lake Superior Regiment was organized with its Headquarters once again in Port Arthur.
Organization
Provisional Battalion of Rifles (10 December 1886)
Regimental Headquarters (Port Arthur, ON)
No. 1 Company (Port Arthur, ON) (first raised on 24 April 1885, as the Port Arthur Rifle Company)
No. 2 Company (Fort William, ON)
No. 3 Company (Rat Portage, ON)
No. 4 Company (Gore Bay, ON and Bruce Mines, ON) (later consolidated on 29 April 1887 at Gore Bay)
96th District of Algoma Battalion of Rifles (29 April 1887)
No. 1 Company (Port Arthur, ON)
No. 2 Company (Fort William, ON)
No. 3 Company (Rat Portage, ON)
No. 4 Company (Gore Bay, ON) (later disbanded on 18 January 1896)
No. 5 Company (Bruce Mines, ON; raised on 29 April 1887; moved 18 September 1887 to Little Current, ON; moved 21 October 1887 to Manitowaning, ON; moved 31 May 1887 to Thessalon, ON; disbanded on 18 January 1896)
No. 6 Company (Sault Ste. Marie, ON) (raised on 31 May 1889; became independent in 1892; transferred on 1 July 1900 as No. 1 Company, 97th Regiment of Rifles)
References
Infantry Battalions of the Canadian Militia
Military units and formations disestablished in 1896
Rifle regiments of Canada
History of Thunder Bay
Organizations based in Thunder Bay
|
Major-General Frederic Franklin Worthington MC, MM, CD (September 17, 1889 – December 8, 1967), nicknamed "Worthy" and "Fighting Frank", was a senior Canadian Army officer. He is considered the father of the Royal Canadian Armoured Corps.
Early life and career
Worthington was born in Peterhead, Scotland. His military career began, somewhat unofficially, as a mercenary. He served in the Nicaraguan Army in the war against San Salvador and Honduras, but when the Nicaraguan Republican government fell, the army dissolved and Worthy left the country to avoid capture. He later found work sailing on cargo steamers.
The life of a mercenary was appealing to Worthy, and he soon found himself back in the thick of things, this time gunrunning to Cuba for which he was imprisoned in Cuba in 1908. In 1913, Worthy fought on the side of Francisco Madero in the Mexican Civil War against the Diaz government. His war service was short-lived however, as he was wounded in a battle.
Worthington served in the Canadian Machine Gun Corps in 1917. He was awarded the Military Medal for actions near Vimy Ridge, on 6 January 1917 for holding his position during a German advance.
After the First World War, he was a proponent of adopting armoured fighting vehicles. As a captain, Worthington took an eight-month course in the Canadian Armoured Fighting Vehicle School at Camp Borden in 1930, equipped with twelve Carden Loyd machine gun carriers. In 1936, then Major Worthington became an instructor at the Royal Tank School in Bovington Camp near Dorset, England, returning to Borden to assume the post of Commandant of the Canadian Armoured Fighting Vehicle School in 1938. Thanks to Worthington's determination, Canada acquired its first tanks in 1938: two Vickers light tanks, and ten more the following year.
Second World War
In 1940, the Canadian Armoured Corps was formally established (the Royal prefix was granted in 1945). As its first senior officer, Colonel Worthington bought 265 US-built M1917 tanks of First World War vintage to use in training. Because U.S. neutrality laws prohibited the sale of weapons to Canada, these antiques were bought for $120 each as scrap metal from the Rock Island Arsenal by the "Camp Borden Iron Foundry". During the Second World War Worthington organized the 1st Canadian Tank Brigade (later the 1st Canadian Armoured Brigade, an independent formation) and then converted the 4th Canadian Infantry Division to an armoured division in only five months. The division served overseas under the designation 4th Canadian (Armoured) Division and included the 4th Canadian Armoured Brigade and the 10th Canadian Infantry Brigade.
In early 1944, Worthy was forced to relinquish command of the 4th Armoured Division, "officially" due to poor health, but in fact it was due to changes in Canada's Army commanders. Worthy supported Lieutenant-General Andrew McNaughton, but it was Lieutenant-General Guy Simonds who got command of II Canadian Corps. Worthy was simply edged out in favour of others. It was the biggest regret of his career that he never commanded a Division in war. Simonds would later admit that he had made a mistake taking Worthy's command away from him (Ref: "Worthy": A Biography of Major-General F.F. Worthington CB, MC, MM by Larry Worthington).
In 1944 he returned to Canada to administer Camp Borden, where replacements were trained for the Canadian Armoured Corps and Infantry, as well as the Royal Canadian Army Service Corps and the Canadian Provost Corps. Worthy soon discovered that other things had changed since he left in 1942. Black market selling was out of control by this time, with fuel, food and building materials being the hot items. Worthy as usual had an unconventional method of stopping the stolen items from leaving the camp. He posted Provost Marshals at the gates to search vehicles leaving, forcing the thieves to take the back roads and trails to get out of camp. Worthy had the engineers dig trenches to make it impossible for vehicles to get through.
The most unconventional method however, was having the engineers lay landmines on the back trails, with the trigger points set back about 50 yards, thus ensuring that no one would actually get hurt. The troops got the message though, as no one wanted to take any chances with a commander who mined roadways.
The National Resources Mobilization Act (NRMA) of 1940 made military service compulsory for in-country service, but overseas service remained voluntary. Those who still refused to go active service met with Worthy's unconventional methods of training and persuasion, including being virtual targets of live-fire exercises and being forced to work so hard around the camp that they "volunteered" because it was the lesser of the evils.
Worthington served as General Officer Commander in Chief of Pacific Command from 1 April 1945 to 26 January 1946. Later he was appointed the first Colonel-Commandant of the Royal Canadian Armoured Corps.
Later life
Worthy died on 8 December 1967 at Ottawa's Military Hospital. After his funeral in Ottawa, Worthy's body was flown by a RCAF Caribou aircraft to Camp Borden and in accordance with his wishes, was interred in Worthington Park. Four Centurion tanks fired a 13 gun salute and three RCAF Chipmunk aircraft did a low-level "fly-past", in tribute to a great soldier and Canadian.
One of the things that his son, Toronto Sun columnist and founding editor Peter Worthington, always remembers about his father is that he used to say, "Until Vimy Ridge he really never felt Canadian, but after Vimy Ridge never felt he was anything but a Canadian."
Today Worthington Park remains as a strong reminder of the birthplace of the Royal Canadian Armoured Corps and a tribute to its father, Frederic Franklin "Fighting Frank" "Worthy" Worthington.
After Worthington's death, he was buried at Canadian Forces Base Borden according to his wishes. His wife was eventually buried beside him. The Major-General F.F. Worthington Memorial Park is also home to the tank collection of the Base Borden Military Museum. The Worthington Trophy for best Canadian armoured regiment was named after him.
Honours
He was a recipient of the Military Cross (MC) and Bar, the Military Medal (MM) and Bar and the Canadian Forces Decoration CD with two Bars.
References
Worthington, Larry (1961). "Worthy": A Biography of Major-General F.F. Worthington CB, MC, MM. Toronto: Macmillan.
Bruce Forsyth's Canadian Military History Page
Library and Archives Canada - Soldiers of the First World War CEF, RG150, Accession 1992-93/166, Box , Worthington, Frederick Frank, 17 September 1889, Cpt., #133314
External links
Worthington, Frederic Franklin at the Canadian Encyclopedia
The Canadian Armoured Corps in World War II
Worthy2s.jpg: portrait of Major-General F.F. Worthington, from the
Canada's Renault Tanks, 1940
Generals of World War II
1880s births
1967 deaths
People from Peterhead
Canadian military personnel of World War I
Canadian recipients of the Military Cross
Canadian recipients of the Military Medal
Canadian expatriates in Nicaragua
Canadian expatriates in Cuba
Canadian expatriates in Mexico
British emigrants to Canada
Military personnel from Aberdeenshire
Canadian Army generals of World War II
Canadian Expeditionary Force officers
Canadian generals
Canadian Machine Gun Corps officers
|
```c++
#include <wayfire/view.hpp>
#include <wayfire/per-output-plugin.hpp>
#include <wayfire/output.hpp>
#include <wayfire/workspace-set.hpp>
#include <wayfire/util/log.hpp>
#include "plugins/common/wayfire/plugins/common/shared-core-data.hpp"
#include "plugins/ipc/ipc-method-repository.hpp"
#include "plugins/ipc/ipc-helpers.hpp"
#include "plugins/ipc/ipc-activator.hpp"
#include "wayfire/core.hpp"
#include "wayfire/plugin.hpp"
#include "wayfire/scene-operations.hpp"
#include "wayfire/scene.hpp"
#include "wayfire/signal-definitions.hpp"
#include "wayfire/signal-provider.hpp"
#include "wayfire/toplevel-view.hpp"
#include "wayfire/window-manager.hpp"
#include "wayfire/seat.hpp"
#include "wm-actions-signals.hpp"
class always_on_top_root_node_t : public wf::scene::output_node_t
{
public:
using output_node_t::output_node_t;
std::string stringify() const override
{
return "always-on-top for output " + get_output()->to_string() + " " + stringify_flags();
}
};
class wayfire_wm_actions_output_t : public wf::per_output_plugin_instance_t
{
wf::scene::floating_inner_ptr always_above;
bool showdesktop_active = false;
wf::option_wrapper_t<wf::activatorbinding_t> minimize{
"wm-actions/minimize"};
wf::option_wrapper_t<wf::activatorbinding_t> toggle_maximize{
"wm-actions/toggle_maximize"};
wf::option_wrapper_t<wf::activatorbinding_t> toggle_above{
"wm-actions/toggle_always_on_top"};
wf::option_wrapper_t<wf::activatorbinding_t> toggle_fullscreen{
"wm-actions/toggle_fullscreen"};
wf::option_wrapper_t<wf::activatorbinding_t> toggle_sticky{
"wm-actions/toggle_sticky"};
wf::option_wrapper_t<wf::activatorbinding_t> send_to_back{
"wm-actions/send_to_back"};
wf::plugin_activation_data_t grab_interface = {
.name = "wm-actions",
.capabilities = 0,
};
public:
bool set_keep_above_state(wayfire_view view, bool above)
{
if (!view || !output->can_activate_plugin(&grab_interface))
{
return false;
}
if (above)
{
wf::scene::readd_front(always_above, view->get_root_node());
view->store_data(std::make_unique<wf::custom_data_t>(),
"wm-actions-above");
} else
{
wf::scene::readd_front(output->wset()->get_node(), view->get_root_node());
if (view->has_data("wm-actions-above"))
{
view->erase_data("wm-actions-above");
}
}
wf::wm_actions_above_changed_signal data;
data.view = view;
output->emit(&data);
return true;
}
/**
* Find the selected toplevel view, or nullptr if the selected view is not
* toplevel.
*/
wayfire_toplevel_view choose_view(wf::activator_source_t source)
{
wayfire_view view;
if (source == wf::activator_source_t::BUTTONBINDING)
{
view = wf::get_core().get_cursor_focus_view();
} else
{
view = wf::get_core().seat->get_active_view();
}
return wf::toplevel_cast(view);
}
/**
* Calling a specific view / specific keep_above action via signal
*/
wf::signal::connection_t<wf::wm_actions_set_above_state_signal> on_set_above_state_signal =
[=] (wf::wm_actions_set_above_state_signal *signal)
{
if (!set_keep_above_state(signal->view, signal->above))
{
LOG(wf::log::LOG_LEVEL_DEBUG, "view above action failed via signal.");
}
};
/**
* Ensures views marked as above are still above if their output changes.
*/
wf::signal::connection_t<wf::view_moved_to_wset_signal> on_view_output_changed =
[=] (wf::view_moved_to_wset_signal *signal)
{
if (!signal->new_wset || (signal->new_wset->get_attached_output() != output))
{
return;
}
auto view = signal->view;
if (!view)
{
return;
}
if (view->has_data("wm-actions-above"))
{
wf::scene::readd_front(always_above, view->get_root_node());
}
};
/**
* Ensures views marked as above are still above if they are minimized and
* unminimized.
*/
wf::signal::connection_t<wf::view_minimized_signal> on_view_minimized =
[=] (wf::view_minimized_signal *ev)
{
if (ev->view->get_output() != output)
{
return;
}
if (ev->view->has_data("wm-actions-above") && !ev->view->minimized)
{
wf::scene::readd_front(always_above, ev->view->get_root_node());
}
};
void check_disable_showdesktop(wayfire_view view)
{
if ((view->role != wf::VIEW_ROLE_TOPLEVEL) || !view->is_mapped())
{
return;
}
disable_showdesktop();
}
/**
* Disables show desktop if the workspace is changed or any view is attached,
* mapped or unminimized.
*/
wf::signal::connection_t<wf::view_set_output_signal> view_set_output =
[=] (wf::view_set_output_signal *ev)
{
check_disable_showdesktop(ev->view);
};
wf::signal::connection_t<wf::view_mapped_signal> on_view_mapped = [=] (wf::view_mapped_signal *ev)
{
check_disable_showdesktop(ev->view);
};
wf::signal::connection_t<wf::workspace_changed_signal> workspace_changed =
[=] (wf::workspace_changed_signal *ev)
{
disable_showdesktop();
};
wf::signal::connection_t<wf::view_minimized_signal> view_minimized = [=] (wf::view_minimized_signal *ev)
{
if ((ev->view->role != wf::VIEW_ROLE_TOPLEVEL) || !ev->view->is_mapped())
{
return;
}
if (!ev->view->minimized)
{
disable_showdesktop();
}
};
/**
* Execute for_view on the selected view, if available.
*/
bool execute_for_selected_view(wf::activator_source_t source,
std::function<bool(wayfire_toplevel_view)> for_view)
{
auto view = choose_view(source);
if (!view || !output->can_activate_plugin(&grab_interface))
{
return false;
}
return for_view(view);
}
/**
* The default activator bindings.
*/
wf::activator_callback on_toggle_above = [=] (auto ev) -> bool
{
auto view = choose_view(ev.source);
if (view)
{
return set_keep_above_state(view, !view->has_data("wm-actions-above"));
} else
{
return false;
}
};
wf::activator_callback on_minimize = [=] (auto ev) -> bool
{
return execute_for_selected_view(ev.source, [] (wayfire_toplevel_view view)
{
wf::get_core().default_wm->minimize_request(view, !view->minimized);
return true;
});
};
wf::activator_callback on_toggle_maximize = [=] (auto ev) -> bool
{
return execute_for_selected_view(ev.source, [] (wayfire_toplevel_view view)
{
wf::get_core().default_wm->tile_request(view,
view->pending_tiled_edges() == wf::TILED_EDGES_ALL ? 0 : wf::TILED_EDGES_ALL);
return true;
});
};
wf::activator_callback on_toggle_fullscreen = [=] (auto ev) -> bool
{
return execute_for_selected_view(ev.source, [] (wayfire_toplevel_view view)
{
wf::get_core().default_wm->fullscreen_request(view, view->get_output(),
!view->pending_fullscreen());
return true;
});
};
wf::activator_callback on_toggle_sticky = [=] (auto ev) -> bool
{
return execute_for_selected_view(ev.source, [] (wayfire_toplevel_view view)
{
view->set_sticky(view->sticky ^ 1);
return true;
});
};
bool on_toggle_showdesktop()
{
showdesktop_active = !showdesktop_active;
if (showdesktop_active)
{
for (auto& view : output->wset()->get_views())
{
if (!view->minimized)
{
wf::get_core().default_wm->minimize_request(view, true);
view->store_data(std::make_unique<wf::custom_data_t>(), "wm-actions-showdesktop");
}
}
output->connect(&view_set_output);
output->connect(&workspace_changed);
output->connect(&view_minimized);
output->connect(&on_view_mapped);
return true;
}
disable_showdesktop();
return true;
}
void do_send_to_back(wayfire_view view)
{
auto view_root = view->get_root_node();
if (auto parent =
dynamic_cast<wf::scene::floating_inner_node_t*>(view_root->parent()))
{
auto parent_children = parent->get_children();
parent_children.erase(
std::remove(parent_children.begin(), parent_children.end(),
view_root),
parent_children.end());
parent_children.push_back(view_root);
parent->set_children_list(parent_children);
wf::scene::update(parent->shared_from_this(),
wf::scene::update_flag::CHILDREN_LIST);
}
}
wf::activator_callback on_send_to_back = [=] (auto ev) -> bool
{
return execute_for_selected_view(ev.source, [this] (wayfire_view view)
{
auto views = view->get_output()->wset()->get_views(
wf::WSET_CURRENT_WORKSPACE | wf::WSET_MAPPED_ONLY |
wf::WSET_EXCLUDE_MINIMIZED | wf::WSET_SORT_STACKING);
wayfire_view bottom_view = views[views.size() - 1];
if (view != bottom_view)
{
do_send_to_back(view);
// Change focus to the last focused view on this workspace
// Update the list after restacking.
views = view->get_output()->wset()->get_views(
wf::WSET_CURRENT_WORKSPACE | wf::WSET_MAPPED_ONLY |
wf::WSET_EXCLUDE_MINIMIZED | wf::WSET_SORT_STACKING);
wf::get_core().seat->focus_view(views[0]);
}
return true;
});
};
void disable_showdesktop()
{
view_set_output.disconnect();
workspace_changed.disconnect();
view_minimized.disconnect();
auto views = output->wset()->get_views(wf::WSET_SORT_STACKING);
for (auto& view : wf::reverse(views))
{
if (view->has_data("wm-actions-showdesktop"))
{
view->erase_data("wm-actions-showdesktop");
wf::get_core().default_wm->minimize_request(view, false);
}
}
showdesktop_active = false;
}
public:
void init() override
{
always_above = std::make_shared<always_on_top_root_node_t>(output);
wf::scene::add_front(wf::get_core().scene()->layers[(int)wf::scene::layer::WORKSPACE], always_above);
output->add_activator(minimize, &on_minimize);
output->add_activator(toggle_maximize, &on_toggle_maximize);
output->add_activator(toggle_above, &on_toggle_above);
output->add_activator(toggle_fullscreen, &on_toggle_fullscreen);
output->add_activator(toggle_sticky, &on_toggle_sticky);
output->add_activator(send_to_back, &on_send_to_back);
output->connect(&on_set_above_state_signal);
output->connect(&on_view_minimized);
wf::get_core().connect(&on_view_output_changed);
}
void fini() override
{
for (auto view : output->wset()->get_views())
{
if (view->has_data("wm-actions-above"))
{
set_keep_above_state(view, false);
}
}
wf::scene::remove_child(always_above);
output->rem_binding(&on_minimize);
output->rem_binding(&on_toggle_maximize);
output->rem_binding(&on_toggle_above);
output->rem_binding(&on_toggle_fullscreen);
output->rem_binding(&on_toggle_sticky);
output->rem_binding(&on_send_to_back);
}
};
class wayfire_wm_actions_t : public wf::plugin_interface_t,
public wf::per_output_tracker_mixin_t<wayfire_wm_actions_output_t>
{
wf::shared_data::ref_ptr_t<wf::ipc::method_repository_t> ipc_repo;
wf::ipc_activator_t toggle_showdesktop{"wm-actions/toggle_showdesktop"};
public:
void init() override
{
init_output_tracking();
ipc_repo->register_method("wm-actions/set-minimized", ipc_minimize);
ipc_repo->register_method("wm-actions/set-always-on-top", ipc_set_always_on_top);
ipc_repo->register_method("wm-actions/set-fullscreen", ipc_set_fullscreen);
ipc_repo->register_method("wm-actions/set-sticky", ipc_set_sticky);
ipc_repo->register_method("wm-actions/send-to-back", ipc_send_to_back);
toggle_showdesktop.set_handler(on_toggle_showdesktop);
}
void fini() override
{
fini_output_tracking();
ipc_repo->unregister_method("wm-actions/set-minimized");
ipc_repo->unregister_method("wm-actions/set-always-on-top");
ipc_repo->unregister_method("wm-actions/set-fullscreen");
ipc_repo->unregister_method("wm-actions/set-sticky");
ipc_repo->unregister_method("wm-actions/send-to-back");
}
nlohmann::json execute_for_view(const nlohmann::json& params,
std::function<void(wayfire_toplevel_view, bool)> view_op)
{
WFJSON_EXPECT_FIELD(params, "view_id", number_integer);
WFJSON_EXPECT_FIELD(params, "state", boolean);
wayfire_toplevel_view view = toplevel_cast(wf::ipc::find_view_by_id(params["view_id"]));
if (!view)
{
return wf::ipc::json_error("toplevel view id not found!");
}
bool state = params["state"];
view_op(view, state);
return wf::ipc::json_ok();
}
wf::ipc::method_callback ipc_minimize = [=] (const nlohmann::json& js)
{
return execute_for_view(js, [=] (wayfire_toplevel_view view, bool state)
{
wf::get_core().default_wm->minimize_request(view, state);
});
};
wf::ipc::method_callback ipc_maximize = [=] (const nlohmann::json& js)
{
return execute_for_view(js, [=] (wayfire_toplevel_view view, bool state)
{
wf::get_core().default_wm->tile_request(view, state ? wf::TILED_EDGES_ALL : 0);
});
};
wf::ipc::method_callback ipc_set_always_on_top = [=] (const nlohmann::json& js)
{
return execute_for_view(js, [=] (wayfire_toplevel_view view, bool state)
{
if (!view->get_output())
{
view->store_data(std::make_unique<wf::custom_data_t>(), "wm-actions-above");
return;
}
output_instance[view->get_output()]->set_keep_above_state(view, state);
});
};
wf::ipc::method_callback ipc_set_fullscreen = [=] (const nlohmann::json& js)
{
return execute_for_view(js, [=] (wayfire_toplevel_view view, bool state)
{
wf::get_core().default_wm->fullscreen_request(view, nullptr, state);
});
};
wf::ipc::method_callback ipc_set_sticky = [=] (const nlohmann::json& js)
{
return execute_for_view(js, [=] (wayfire_toplevel_view view, bool state)
{
view->set_sticky(state);
});
};
wf::ipc::method_callback ipc_send_to_back = [=] (const nlohmann::json& js)
{
return execute_for_view(js, [=] (wayfire_toplevel_view view, bool state)
{
if (!view->get_output())
{
return;
}
output_instance[view->get_output()]->do_send_to_back(view);
});
};
wf::ipc_activator_t::handler_t on_toggle_showdesktop = [=] (wf::output_t *output, wayfire_view)
{
return this->output_instance[output]->on_toggle_showdesktop();
};
};
DECLARE_WAYFIRE_PLUGIN(wayfire_wm_actions_t);
```
|
William Andrew Murray (18 July 1881 – 17 October 1942) was an Irish athlete who competed at the 1908 Summer Olympics in London, representing Great Britain. He was born in Ballincollig, Ireland. In the 100 metres event, Murray took fourth place in his first round heat to be eliminated without advancing to the semifinals.
References
Sources
profile
1881 births
1942 deaths
British male sprinters
Olympic athletes for Great Britain
Athletes (track and field) at the 1908 Summer Olympics
Irish male sprinters
Athletes from County Cork
|
```c++
// (See accompanying file LICENSE_1_0.txt or copy at
// path_to_url
// See path_to_url for the library home page.
//
//! @file
//! BOOST_TEST_DONT_PRINT_LOG_VALUE unit test
// *****************************************************************************
#define BOOST_TEST_MODULE BOOST_TEST_DONT_PRINT_LOG_VALUE unit test
#include <boost/test/unit_test.hpp>
#include <boost/test/data/test_case.hpp>
#include <boost/test/data/monomorphic.hpp>
#include <vector>
struct dummy_class {
operator bool() const { return true; }
bool operator==(dummy_class const&) const { return true; }
bool operator!=(dummy_class const&) const { return false; }
};
BOOST_TEST_DONT_PRINT_LOG_VALUE(dummy_class)
//your_sha256_hash____________//
BOOST_AUTO_TEST_CASE(single_object)
{
dummy_class actual, expected;
BOOST_TEST(actual == expected);
}
//your_sha256_hash____________//
// this one tests for contexts printing in dataset tests
std::vector<dummy_class> generate_vector()
{
std::vector<dummy_class> out;
out.push_back(dummy_class());
out.push_back(dummy_class());
out.push_back(dummy_class());
return out;
}
//your_sha256_hash____________//
BOOST_DATA_TEST_CASE( test_data_case, boost::unit_test::data::make(generate_vector()))
{
BOOST_TEST(sample);
}
// EOF
```
|
```go
/*
path_to_url
Unless required by applicable law or agreed to in writing, software
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/
package vfs
// KubernetesContext is the context for a Kubernetes VFS implementation
type KubernetesContext struct{}
// NewKubernetesContext builds a KubernetesContext
// This will likely take a kubernetes rest client object (or similar) once the implementation is more complete
func NewKubernetesContext() *KubernetesContext {
return &KubernetesContext{}
}
```
|
```objective-c
/*++
version 3. Alternative licensing terms are available. Contact
info@minocacorp.com for details. See the LICENSE file at the root of this
project for complete licensing information.
Module Name:
stextinx.h
Abstract:
This header contains definitions for the UEFI Simple Text In Ex Protocol.
Author:
Evan Green 8-Feb-2014
--*/
//
// your_sha256_hash--- Includes
//
//
// your_sha256_hash Definitions
//
#define EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL_GUID \
{ \
0xDD9E7534, 0x7762, 0x4698, \
{0x8C, 0x14, 0xF5, 0x85, 0x17, 0xA6, 0x25, 0xAA } \
}
//
// Any Shift or Toggle State that is valid should have
// high order bit set.
// Define shift states.
//
#define EFI_SHIFT_STATE_VALID 0x80000000
#define EFI_RIGHT_SHIFT_PRESSED 0x00000001
#define EFI_LEFT_SHIFT_PRESSED 0x00000002
#define EFI_RIGHT_CONTROL_PRESSED 0x00000004
#define EFI_LEFT_CONTROL_PRESSED 0x00000008
#define EFI_RIGHT_ALT_PRESSED 0x00000010
#define EFI_LEFT_ALT_PRESSED 0x00000020
#define EFI_RIGHT_LOGO_PRESSED 0x00000040
#define EFI_LEFT_LOGO_PRESSED 0x00000080
#define EFI_MENU_KEY_PRESSED 0x00000100
#define EFI_SYS_REQ_PRESSED 0x00000200
//
// Toggle state
//
#define EFI_TOGGLE_STATE_VALID 0x80
#define EFI_KEY_STATE_EXPOSED 0x40
#define EFI_SCROLL_LOCK_ACTIVE 0x01
#define EFI_NUM_LOCK_ACTIVE 0x02
#define EFI_CAPS_LOCK_ACTIVE 0x04
//
// EFI Scan codes
//
#define SCAN_F11 0x0015
#define SCAN_F12 0x0016
#define SCAN_PAUSE 0x0048
#define SCAN_F13 0x0068
#define SCAN_F14 0x0069
#define SCAN_F15 0x006A
#define SCAN_F16 0x006B
#define SCAN_F17 0x006C
#define SCAN_F18 0x006D
#define SCAN_F19 0x006E
#define SCAN_F20 0x006F
#define SCAN_F21 0x0070
#define SCAN_F22 0x0071
#define SCAN_F23 0x0072
#define SCAN_F24 0x0073
#define SCAN_MUTE 0x007F
#define SCAN_VOLUME_UP 0x0080
#define SCAN_VOLUME_DOWN 0x0081
#define SCAN_BRIGHTNESS_UP 0x0100
#define SCAN_BRIGHTNESS_DOWN 0x0101
#define SCAN_SUSPEND 0x0102
#define SCAN_HIBERNATE 0x0103
#define SCAN_TOGGLE_DISPLAY 0x0104
#define SCAN_RECOVERY 0x0105
#define SCAN_EJECT 0x0106
//
// ------------------------------------------------------ Data Type Definitions
//
typedef struct _EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL
EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL;
//
// Define the EFI_KEY_TOGGLE_STATE type. Valid toggle states are:
// EFI_TOGGLE_STATE_VALID, EFI_SCROLL_LOCK_ACTIVE EFI_NUM_LOCK_ACTIVE, and
// EFI_CAPS_LOCK_ACTIVE.
//
typedef UINT8 EFI_KEY_TOGGLE_STATE;
typedef
EFI_STATUS
(EFIAPI *EFI_INPUT_RESET_EX) (
EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL *This,
BOOLEAN ExtendedVerification
);
/*++
Routine Description:
This routine resets the input device hardware. As part of initialization
process, the firmware/device will make a quick but reasonable attempt to
verify that the device is functioning. If the ExtendedVerification flag is
TRUE the firmware may take an extended amount of time to verify the device
is operating on reset. Otherwise the reset operation is to occur as quickly
as possible. The hardware verification process is not defined by this
specification and is left up to the platform firmware or driver to
implement.
Arguments:
This - Supplies a pointer to the protocol instance.
ExtendedVerification - Supplies a boolean indicating if the driver should
perform diagnostics on reset.
Return Value:
EFI_SUCCESS on success.
EFI_DEVICE_ERROR if the device is not functioning properly and could not be
reset.
--*/
/*++
Structure Description:
This structure defines the state of a keyboard key.
Members:
KeyShiftState - Stores the state of the shift modifiers. The returned value
is only valid if the high order bit has been set.
KeyToggleState - Stores the current internal state of various toggled
attributes. The returned value is only valid if the high order bit has
been set.
--*/
typedef struct _EFI_KEY_STATE {
UINT32 KeyShiftState;
EFI_KEY_TOGGLE_STATE KeyToggleState;
} EFI_KEY_STATE;
/*++
Structure Description:
This structure defines keyboard key data.
Members:
Key - Stores the EFI scan code and unicode value returned from the input
device.
KeyState - Stores the current state of various toggled attributes as well
as input modifier values.
--*/
typedef struct {
EFI_INPUT_KEY Key;
EFI_KEY_STATE KeyState;
} EFI_KEY_DATA;
typedef
EFI_STATUS
(EFIAPI *EFI_INPUT_READ_KEY_EX) (
EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL *This,
EFI_KEY_DATA *KeyData
);
/*++
Routine Description:
This routine reads the next keystroke from the input device. If there is no
pending keystroke the function returns EFI_NOT_READY. If there is a pending
keystroke, then KeyData.Key.ScanCode is the EFI scan code.
The KeyData.Key.UnicodeChar is the actual printable character or is zero if
the key does not represent a printable character (control key, function
key, etc.). The KeyData.KeyState is shift state for the character
reflected in KeyData.Key.UnicodeChar or KeyData.Key.ScanCode. When
interpreting the data from this function, it should be noted that if a
class of printable characters that are normally adjusted by shift
modifiers (e.g. Shift Key + "f" key) would be presented solely as a
KeyData.Key.UnicodeChar without the associated shift state. So in the
previous example of a Shift Key + "f" key being pressed, the only pertinent
data returned would be KeyData.Key.UnicodeChar with the value of "F".
This of course would not typically be the case for non-printable characters
such as the pressing of the Right Shift Key + F10 key since the
corresponding returned data would be reflected both in the
KeyData.KeyState.KeyShiftState and KeyData.Key.ScanCode values. UEFI
drivers which implement the EFI_SIMPLE_TEXT_INPUT_EX protocol are required
to return KeyData.Key and KeyData.KeyState values. These drivers must
always return the most current state of KeyData.KeyState.KeyShiftState and
KeyData.KeyState.KeyToggleState. It should also be noted that certain input
devices may not be able to produce shift or toggle state information, and
in those cases the high order bit in the respective Toggle and Shift state
fields should not be active.
Arguments:
This - Supplies a pointer to the protocol instance.
KeyData - Supplies a pointer where the keystroke state data is returned on
success.
Return Value:
EFI_SUCCESS on success.
EFI_NOT_READY if no keystroke data is available.
EFI_DEVICE_ERROR if the device is not functioning properly and could not be
read.
--*/
typedef
EFI_STATUS
(EFIAPI *EFI_SET_STATE) (
EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL *This,
EFI_KEY_TOGGLE_STATE *KeyToggleState
);
/*++
Routine Description:
This routine adjusts the internal state of the input hardware.
Arguments:
This - Supplies a pointer to the protocol instance.
KeyToggleState - Supplies a pointer to the toggle state to set for the
input device.
Return Value:
EFI_SUCCESS on success.
EFI_DEVICE_ERROR if the device is not functioning properly and could not be
set.
EFI_UNSUPPORTED if the device does not support the ability to have its
state set.
--*/
typedef
EFI_STATUS
(EFIAPI *EFI_KEY_NOTIFY_FUNCTION) (
EFI_KEY_DATA *KeyData
);
/*++
Routine Description:
This routine implements the callback called when a registered keystroke
sequence is entered.
Arguments:
KeyData - Supplies a pointer to the typed key sequence.
Return Value:
EFI Status code.
--*/
typedef
EFI_STATUS
(EFIAPI *EFI_REGISTER_KEYSTROKE_NOTIFY) (
EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL *This,
EFI_KEY_DATA *KeyData,
EFI_KEY_NOTIFY_FUNCTION KeyNotificationFunction,
VOID **NotifyHandle
);
/*++
Routine Description:
This routine registers a function which will be called when a specified
keystroke sequence is entered by the user.
Arguments:
This - Supplies a pointer to the protocol instance.
KeyData - Supplies a pointer to keystroke sequence to register for.
KeyNotificationFunction - Supplies a pointer to the function to be called
when the sequence occurs.
NotifyHandle - Supplies a pointer where a handle will be returned
identifying the connection between keystroke sequence and callback
function.
Return Value:
EFI_SUCCESS on success.
EFI_OUT_OF_RESOURCES if an allocation failed.
--*/
typedef
EFI_STATUS
(EFIAPI *EFI_UNREGISTER_KEYSTROKE_NOTIFY) (
EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL *This,
VOID *NotificationHandle
);
/*++
Routine Description:
This routine removes a previously registered keystroke handler.
Arguments:
This - Supplies a pointer to the protocol instance.
NotificationHandle - Supplies the handle returned when the keystroke was
registered.
Return Value:
EFI_SUCCESS on success.
EFI_INVALID_PARAMETER if the notification handle is invalid.
--*/
/*++
Structure Description:
This structure defines the UEFI Simple Text Input Ex Protocol. This is
the protocol used on the ConsoleIn device. It is an extension to the
Simple Text Input protocol which allows a variety of extended shift state
information to be returned.
Members:
Reset - Stores a pointer to a function used for resetting the input device.
ReadKeyStrokeEx - Stores a pointer to a function used for reading keyboard
input data.
WaitForEventEx - Stores an event that can be waited on and will be signaled
when key data is available.
SetState - Stores a pointer to a function used to set the input controller
state.
RegisterKeyNotify - Stores a pointer to a function used to register for
keystroke notifications.
UnregisterKeyNotify - Stores a pointer to a function used to deregister
a keyboard notification.
--*/
struct _EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL {
EFI_INPUT_RESET_EX Reset;
EFI_INPUT_READ_KEY_EX ReadKeyStrokeEx;
EFI_EVENT WaitForKeyEx;
EFI_SET_STATE SetState;
EFI_REGISTER_KEYSTROKE_NOTIFY RegisterKeyNotify;
EFI_UNREGISTER_KEYSTROKE_NOTIFY UnregisterKeyNotify;
};
//
// your_sha256_hash---- Globals
//
//
// -------------------------------------------------------- Function Prototypes
//
```
|
Abrostola triplasia (the dark spectacle) is a moth of the family Noctuidae. It is found across the entire Palearctic realm (Europe (all countries), North Africa, Russia, Siberia, and Japan). Subarctic territories with an average temperature of below 6 °C are an exception. In the warmest and driest regions of the Mediterranean, the Middle East, and the mountains in West and Central Asia, the species occurs only scattered or is entirely lacking.
The wingspan is 32–38 mm.
Description
This is the description from South (1907)
"The fore wings of this moth are blackish grey inclining to purplish and rather shining; the basal area is pale reddish brown, edged by a curved dark chocolate brown cross line ; a reddish grey band on the outer area clouded with ground colour and edged above the inner margin by a dark chocolate brown curved line ; raised scales on the central area and on the cross lines. Two oval reddish brown marks on the front of the collar have some resemblance to a pair of spectacles, hence the English name".
The oddly shaped humped caterpillar is green, sprinkled with white dots; on segments 4, 5, and 11 are whitish-edged darker marks, and there is a dark line, also whitish-edged, along the middle of the back between segments 5 and 11. There is a white line on the back from segment 4 to the brownish head, and white-edged dark oblique lines on the sides of segments 6 to 11; the line low down along the sides is whitish with an ochreous tinge. A purplish brown form also occurs, in which the pale markings are ochreous tinged.
Similar species
Abrostola tripartita The spectacle
Diagnostic features Abrostola triplasia. The basal area of the forewing whitish grey. The stigmata are outlined in black and there are three parallel streaks at the apex of the wing.
The larvae feed on Urtica dioica, Humulus lupulus and Parietaria.
References
External links
Dark spectacle on UKmoths
Funet
Lepiforum.de
Plusiinae
Moths described in 1758
Moths of Africa
Moths of Asia
Moths of Europe
Moths of Japan
Moths of the Middle East
Taxa named by Carl Linnaeus
|
Everett F. Shelton (May 12, 1898 – April 16, 1974) was an American basketball coach in the 1940s and 1950s. Shelton played quarterback for the Phillips University football team. The Cunningham, Kansas native coached 46 years at the high school, college and Amateur Athletic Union (AAU) levels and compiled an 850–437 record. He is mostly known for coaching the Wyoming Cowboys men's basketball team from 1939 to 1959. While at Wyoming, Shelton had a record of 328 wins and 201 losses for a .620 winning percentage. He guided the Cowboys to eight Mountain States / Skyline Conference championships and seven NCAA Tournament appearances. During his career, he was President of the National Association of Basketball Coaches. He was elected to the Naismith Memorial Basketball Hall of Fame in 1980.
Shelton's 1942–43 Wyoming Cowboys basketball team won the fifth NCAA basketball tournament. Shelton nearly won the national championship at Sacramento State College, where his Hornets lost in overtime to Mount St. Mary's in the 1962 NCAA College Division basketball tournament.
Head coaching record
Basketball
Football
See also
List of NCAA Division I Men's Final Four appearances by coach
References
External links
1898 births
1974 deaths
American men's basketball coaches
American men's basketball players
American football quarterbacks
Basketball coaches from Kansas
Basketball players from Kansas
College men's basketball head coaches in the United States
High school basketball coaches in the United States
Naismith Memorial Basketball Hall of Fame inductees
National Collegiate Basketball Hall of Fame inductees
People from Kingman County, Kansas
Phillips Haymakers athletic directors
Phillips Haymakers football coaches
Phillips Haymakers football players
Phillips Haymakers men's basketball coaches
Phillips Haymakers men's basketball players
Wyoming Cowboys and Cowgirls athletic directors
Wyoming Cowboys baseball coaches
Wyoming Cowboys basketball coaches
|
Electro-industrial, also known as elektro, is a music genre that emerged from industrial music in the early 1980s. While EBM (electronic body music) has a minimal structure and clean production, electro-industrial tends to have a grittier, complex and layered sound with a more experimental approach. The style was pioneered by Skinny Puppy, Front Line Assembly, Numb, and other groups, either from Canada or the Benelux. In the early 2000s style spawned the aggrotech offshoot. The fan base for the style is linked to the rivethead subculture.
Characteristics
After the EBM movement faded in the early 1990s, electro-industrial increasingly attained popularity in the international club scene. In contrast to the straight EBM style, electro-industrial groups use harsher beats and raspy, distorted, or digitized vocals. In contrast to industrial rock, electro-industrial groups mostly avoided guitars, other than Skinny Puppy, who used electric guitar elements since the mid-'80s in songs like "Testure" or "Dig It", and Numb on songs like "God Is Dead".
Electro-industrial was anticipated by 1980s groups such as SPK, Die Form, Borghesia, Klinik, Skinny Puppy, Numb, and Front Line Assembly.
Prominent electro-industrial groups of the 1990s include Mentallo and the Fixer, Yeht Mae, Velvet Acid Christ, and Pulse Legion (U.S.); Numb and Decoded Feedback (Canada); X Marks the Pedwalk, Plastic Noise Experience, Wumpscut, Haujobb, Forma Tadre, Putrefy Factor 7, and Abortive Gasp (Germany); Leæther Strip (Denmark); early Hocico and Cenobita.
Since the mid-1990s, some electro-industrial groups added guitars and became associated with industrial metal; other groups, e.g. Skinny Puppy, Download, Gridlock, and Haujobb, have incorporated elements of experimental electronic music styles like drum and bass, IDM, glitch, and other electronica genres.
Conceptual elements
Electro-industrial groups tend to feature themes of control, horror, dystopia, or science fiction. Also electro-industrial groups often use samples from various horror and thriller films. Some groups are characterized by using provocative images and elements in their music.
Derivatives
Dark electro
Dark electro is a synonym of electro-industrial and was first mentioned in the early 1990s. The term describes unusual sound of yelworC and Placebo Effect, in December 1992 with the album announcement of Brainstorming, yelworC's debut. In subsequent years, electro-industrial was displaced by techno-influenced styles such as aggrotech and futurepop.
Aggrotech
Aggrotech (also known as Terror EBM and hellektro) is a derivative form of electro-industrial with a strong influence from hardcore (straight techno bassdrum from Roland TR-909 and oscillator sounds, especially Supersaw leads from Roland JP-8000) that first surfaced in the early 2000s.
Aggrotech typically employs aggressive beats, prominent lead synth lines, and lyrics of a dark nature. Often, vocals are distorted and pitch-shifted to sound harsh and synthetic; static and glitching effects are also added. Aggrotech musicians include Agonoize, Alien Vampires, Amduscia, Device Noize, Bestias De Asalto, Die Sektor, Combichrist, Dawn of Ashes, Detroit Diesel, Dulce Liquido, DYM, Feindflug, God Module, Distoxia, Grendel, Hocico (later albums), iVardensphere, Nachtmahr, Machine Sonata, Panic Lift, Psyclon Nine, Reaper, Suicide Commando (later albums), Tactical Sekt, The Retrosic, Ritual Aesthetic, Unter Null, Virtual Embrace, Stuka 696 and X-Fusion, among many.
See also
List of industrial music festivals
List of electro-industrial bands
References
Industrial music
Electronic music genres
de:Electro (Sammelbezeichnung)#Electro-Industrial
|
Music Hall Meltdown was a one-off musical and comedy cabaret show, which aired on 7 May 2007 as the end of BBC 4's Edwardian Season. It was recorded at the Clapham Grand and hosted by Phil Jupitus and Marcus Brigstocke, with acts including Madness, Milton Jones and Frankie Boyle.
The idea had come around when Pozzitive Television were asked by BBC4 to pitch a Music Hall idea for their upcoming Spring season. Pozzitive pitched a Music Hall style variety show, designed to bring the concept of raucous, popular cabaret entertainment into the modern age, and it was chosen to mark the end of Edwardian Season.
The full lineup included performances from Barry Jones and Stuart MacLeod, Bruce Airhead, Frankie Boyle, Jo Caulfield, Justin Edwards, George Cockerill, Harry Enfield, Madness, Milton Jones, Mr Hudson & The Library, The Puppini Sisters, Count Arthur Strong, and Greg Davies, Steve Hall and Marek Larwood as We Are Klang. The show was directed by Geoff Posner and produced by Posner and David Tyler.
References
2007 British television episodes
|
```go
//go:build !ignore_autogenerated
// +build !ignore_autogenerated
/*
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.
*/
// Code generated by fitask. DO NOT EDIT.
package dotasks
import (
"k8s.io/kops/upup/pkg/fi"
)
// LoadBalancer
var _ fi.HasLifecycle = &LoadBalancer{}
// GetLifecycle returns the Lifecycle of the object, implementing fi.HasLifecycle
func (o *LoadBalancer) GetLifecycle() fi.Lifecycle {
return o.Lifecycle
}
// SetLifecycle sets the Lifecycle of the object, implementing fi.SetLifecycle
func (o *LoadBalancer) SetLifecycle(lifecycle fi.Lifecycle) {
o.Lifecycle = lifecycle
}
var _ fi.HasName = &LoadBalancer{}
// GetName returns the Name of the object, implementing fi.HasName
func (o *LoadBalancer) GetName() *string {
return o.Name
}
// String is the stringer function for the task, producing readable output using fi.TaskAsString
func (o *LoadBalancer) String() string {
return fi.CloudupTaskAsString(o)
}
```
|
```javascript
export default function(a, b) {
var d = new Date;
return a = +a, b = +b, function(t) {
return d.setTime(a * (1 - t) + b * t), d;
};
}
```
|
Zuma acuta is a species of armoured harvestman in the family Paranonychidae. It is found in North America.
References
Further reading
Harvestmen
Articles created by Qbugbot
Animals described in 1942
|
```shell
#!/usr/bin/env bash
# Tags: no-fasttest
CUR_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
# shellcheck source=../shell_config.sh
${CUR_DIR}/02125_lz4_compression_bug.lib Values
```
|
```scss
@forward "@material/animation" as mdc-animation-*;
@forward "@material/base" as mdc-base-*;
@forward "@material/feature-targeting" as mdc-feature-*;
@forward "@material/theme/all-theme-deprecated" as mdc-theme-* hide $mdc-theme-red-50, $mdc-theme-red-100, $mdc-theme-red-200, $mdc-theme-red-300, $mdc-theme-red-400, $mdc-theme-red-500, $mdc-theme-red-600, $mdc-theme-red-700, $mdc-theme-red-800, $mdc-theme-red-900, $mdc-theme-red-a100, $mdc-theme-red-a200, $mdc-theme-red-a400, $mdc-theme-red-a700, $mdc-theme-pink-50, $mdc-theme-pink-100, $mdc-theme-pink-200, $mdc-theme-pink-300, $mdc-theme-pink-400, $mdc-theme-pink-500, $mdc-theme-pink-600, $mdc-theme-pink-700, $mdc-theme-pink-800, $mdc-theme-pink-900, $mdc-theme-pink-a100, $mdc-theme-pink-a200, $mdc-theme-pink-a400, $mdc-theme-pink-a700, $mdc-theme-purple-50, $mdc-theme-purple-100, $mdc-theme-purple-200, $mdc-theme-purple-300, $mdc-theme-purple-400, $mdc-theme-purple-500, $mdc-theme-purple-600, $mdc-theme-purple-700, $mdc-theme-purple-800, $mdc-theme-purple-900, $mdc-theme-purple-a100, $mdc-theme-purple-a200, $mdc-theme-purple-a400, $mdc-theme-purple-a700, $mdc-theme-deep-purple-50, $mdc-theme-deep-purple-100, $mdc-theme-deep-purple-200, $mdc-theme-deep-purple-300, $mdc-theme-deep-purple-400, $mdc-theme-deep-purple-500, $mdc-theme-deep-purple-600, $mdc-theme-deep-purple-700, $mdc-theme-deep-purple-800, $mdc-theme-deep-purple-900, $mdc-theme-deep-purple-a100, $mdc-theme-deep-purple-a200, $mdc-theme-deep-purple-a400, $mdc-theme-deep-purple-a700, $mdc-theme-indigo-50, $mdc-theme-indigo-100, $mdc-theme-indigo-200, $mdc-theme-indigo-300, $mdc-theme-indigo-400, $mdc-theme-indigo-500, $mdc-theme-indigo-600, $mdc-theme-indigo-700, $mdc-theme-indigo-800, $mdc-theme-indigo-900, $mdc-theme-indigo-a100, $mdc-theme-indigo-a200, $mdc-theme-indigo-a400, $mdc-theme-indigo-a700, $mdc-theme-blue-50, $mdc-theme-blue-100, $mdc-theme-blue-200, $mdc-theme-blue-300, $mdc-theme-blue-400, $mdc-theme-blue-500, $mdc-theme-blue-600, $mdc-theme-blue-700, $mdc-theme-blue-800, $mdc-theme-blue-900, $mdc-theme-blue-a100, $mdc-theme-blue-a200, $mdc-theme-blue-a400, $mdc-theme-blue-a700, $mdc-theme-light-blue-50, $mdc-theme-light-blue-100, $mdc-theme-light-blue-200, $mdc-theme-light-blue-300, $mdc-theme-light-blue-400, $mdc-theme-light-blue-500, $mdc-theme-light-blue-600, $mdc-theme-light-blue-700, $mdc-theme-light-blue-800, $mdc-theme-light-blue-900, $mdc-theme-light-blue-a100, $mdc-theme-light-blue-a200, $mdc-theme-light-blue-a400, $mdc-theme-light-blue-a700, $mdc-theme-cyan-50, $mdc-theme-cyan-100, $mdc-theme-cyan-200, $mdc-theme-cyan-300, $mdc-theme-cyan-400, $mdc-theme-cyan-500, $mdc-theme-cyan-600, $mdc-theme-cyan-700, $mdc-theme-cyan-800, $mdc-theme-cyan-900, $mdc-theme-cyan-a100, $mdc-theme-cyan-a200, $mdc-theme-cyan-a400, $mdc-theme-cyan-a700, $mdc-theme-teal-50, $mdc-theme-teal-100, $mdc-theme-teal-200, $mdc-theme-teal-300, $mdc-theme-teal-400, $mdc-theme-teal-500, $mdc-theme-teal-600, $mdc-theme-teal-700, $mdc-theme-teal-800, $mdc-theme-teal-900, $mdc-theme-teal-a100, $mdc-theme-teal-a200, $mdc-theme-teal-a400, $mdc-theme-teal-a700, $mdc-theme-green-50, $mdc-theme-green-100, $mdc-theme-green-200, $mdc-theme-green-300, $mdc-theme-green-400, $mdc-theme-green-500, $mdc-theme-green-600, $mdc-theme-green-700, $mdc-theme-green-800, $mdc-theme-green-900, $mdc-theme-green-a100, $mdc-theme-green-a200, $mdc-theme-green-a400, $mdc-theme-green-a700, $mdc-theme-light-green-50, $mdc-theme-light-green-100, $mdc-theme-light-green-200, $mdc-theme-light-green-300, $mdc-theme-light-green-400, $mdc-theme-light-green-500, $mdc-theme-light-green-600, $mdc-theme-light-green-700, $mdc-theme-light-green-800, $mdc-theme-light-green-900, $mdc-theme-light-green-a100, $mdc-theme-light-green-a200, $mdc-theme-light-green-a400, $mdc-theme-light-green-a700, $mdc-theme-lime-50, $mdc-theme-lime-100, $mdc-theme-lime-200, $mdc-theme-lime-300, $mdc-theme-lime-400, $mdc-theme-lime-500, $mdc-theme-lime-600, $mdc-theme-lime-700, $mdc-theme-lime-800, $mdc-theme-lime-900, $mdc-theme-lime-a100, $mdc-theme-lime-a200, $mdc-theme-lime-a400, $mdc-theme-lime-a700, $mdc-theme-yellow-50, $mdc-theme-yellow-100, $mdc-theme-yellow-200, $mdc-theme-yellow-300, $mdc-theme-yellow-400, $mdc-theme-yellow-500, $mdc-theme-yellow-600, $mdc-theme-yellow-700, $mdc-theme-yellow-800, $mdc-theme-yellow-900, $mdc-theme-yellow-a100, $mdc-theme-yellow-a200, $mdc-theme-yellow-a400, $mdc-theme-yellow-a700, $mdc-theme-amber-50, $mdc-theme-amber-100, $mdc-theme-amber-200, $mdc-theme-amber-300, $mdc-theme-amber-400, $mdc-theme-amber-500, $mdc-theme-amber-600, $mdc-theme-amber-700, $mdc-theme-amber-800, $mdc-theme-amber-900, $mdc-theme-amber-a100, $mdc-theme-amber-a200, $mdc-theme-amber-a400, $mdc-theme-amber-a700, $mdc-theme-orange-50, $mdc-theme-orange-100, $mdc-theme-orange-200, $mdc-theme-orange-300, $mdc-theme-orange-400, $mdc-theme-orange-500, $mdc-theme-orange-600, $mdc-theme-orange-700, $mdc-theme-orange-800, $mdc-theme-orange-900, $mdc-theme-orange-a100, $mdc-theme-orange-a200, $mdc-theme-orange-a400, $mdc-theme-orange-a700, $mdc-theme-deep-orange-50, $mdc-theme-deep-orange-100, $mdc-theme-deep-orange-200, $mdc-theme-deep-orange-300, $mdc-theme-deep-orange-400, $mdc-theme-deep-orange-500, $mdc-theme-deep-orange-600, $mdc-theme-deep-orange-700, $mdc-theme-deep-orange-800, $mdc-theme-deep-orange-900, $mdc-theme-deep-orange-a100, $mdc-theme-deep-orange-a200, $mdc-theme-deep-orange-a400, $mdc-theme-deep-orange-a700, $mdc-theme-brown-50, $mdc-theme-brown-100, $mdc-theme-brown-200, $mdc-theme-brown-300, $mdc-theme-brown-400, $mdc-theme-brown-500, $mdc-theme-brown-600, $mdc-theme-brown-700, $mdc-theme-brown-800, $mdc-theme-brown-900, $mdc-theme-grey-50, $mdc-theme-grey-100, $mdc-theme-grey-200, $mdc-theme-grey-300, $mdc-theme-grey-400, $mdc-theme-grey-500, $mdc-theme-grey-600, $mdc-theme-grey-700, $mdc-theme-grey-800, $mdc-theme-grey-900, $mdc-theme-blue-grey-50, $mdc-theme-blue-grey-100, $mdc-theme-blue-grey-200, $mdc-theme-blue-grey-300, $mdc-theme-blue-grey-400, $mdc-theme-blue-grey-500, $mdc-theme-blue-grey-600, $mdc-theme-blue-grey-700, $mdc-theme-blue-grey-800, $mdc-theme-blue-grey-900;
@forward "./index" as mdc-* hide $mdc-dark-ink-opacities, $mdc-fade-in-duration, $mdc-fade-out-duration, $mdc-light-ink-opacities, $mdc-pressed-dark-ink-opacity, $mdc-pressed-light-ink-opacity, $mdc-translate-duration, mdc-core-styles, mdc-common, mdc-surface, mdc-radius-bounded, mdc-radius-unbounded, mdc-target-selector, mdc-target-common, mdc-keyframes-;
@forward "./index" as mdc-ripple-* hide $mdc-ripple-states-wash-duration, mdc-ripple-states-base-color, mdc-ripple-states-opacities, mdc-ripple-states-hover-opacity, mdc-ripple-states-focus-opacity, mdc-ripple-states-focus-opacity-properties-, mdc-ripple-states-press-opacity, mdc-ripple-states, mdc-ripple-states-activated, mdc-ripple-states-selected, mdc-ripple-states-interactions-, mdc-ripple-states-opacity, mdc-ripple-states-opacities-;
```
|
Sawahikari Yukio (born 18 June 1941 as Yukio Sawamukai) is a former sumo wrestler from Saroma, Hokkaidō, Japan. He made his professional debut in September 1956 and reached the top division in November 1963. His highest rank was komusubi. He left the sumo world upon retirement from active competition in November 1964.
Career record
The Kyushu tournament was first held in 1957, and the Nagoya tournament in 1958.
See also
Glossary of sumo terms
List of past sumo wrestlers
List of sumo tournament second division champions
List of komusubi
References
1941 births
Living people
Japanese sumo wrestlers
Sumo people from Hokkaido
Komusubi
|
Nils Krister Bringéus (born 7 September 1954) is a Swedish diplomat. He served as a member of diplomatic staff and as and from the 1970s and into the 2020s.
Early life and postings
Bringéus was born on 7 September 1954 in , Malmöhus County, Scania, Sweden. He is the son of ethnologist and Doctor of Philosophy Gundis Bringéus (née Lindahl). Bringéus did his military service at the and studied at the Université Paul Cézanne Aix-Marseille III between 1973 and 1974, after which he graduated with a bachelor's degree in philosophy from Stockholm University in 1976 and a bachelor's degree in law from Uppsala University in 1979. He served at the Embassy of Sweden, Moscow from 1975 to 1976 and was chancellery secretary of the Foreign Ministry from 1979 to 1980. He was embassy secretary at the Embassy in Pyongyang from 1980 to 1981 and at the Embassy in London from 1981 to 1984, after which he was First Secretary at the Embassy in Moscow from 1984 to 1987. In 1987–1990, he was embassy secretary in the Personnel Department of the Ministry for Foreign Affairs, after which he was First Secretary at the Embassy in Bonn between 1990 and 1992 and Embassy Counselor at the Embassy in Washington between 1992 and 1997. He was Ministerial Adviser at the Department for European Security Policy in the Ministry for Foreign Affairs from 1997 to 2002, first as Deputy Head of department from 1997 to 1998 and then as Head of the department from 1998 to 2002.
Senior roles and ambassadorships
In 2002 Bringéus was appointed head of the Swedish delegation at the Organization for Security and Co-operation in Europe in Vienna, holding the post until 2007. In 2007 he was appointed , with dual accreditation to Montenegro. He held this role until 2010, which was followed with a posting that year as Senior Civilian Representative at Mazar-e Sharif with responsibility for the overall political leadership and Swedish civilian activities in the area, until 2011.
From 2011, Bringéus was an ambassador for Arctic issues at the Ministry for Foreign Affairs and from 2015 to 2016 was a special investigator of Sweden's defence and security policy collaborations. After being Ambassador for Nordic Affairs in the department for the European Union at the Ministry for Foreign Affairs from 2017 to 2018, Bringéus was from November 2018 until 2020.
Personal life and honours
Bringéus was elected a member of the Royal Swedish Academy of War Sciences in 2000. On 25 September 2020 he was awarded the Grand Cross of the Royal Norwegian Order of Merit.
Bringéus is married to Veronika Bard-Bringéus, also a diplomat.
References
1954 births
Living people
Ambassadors of Sweden to Norway
Ambassadors of Sweden to Serbia
Ambassadors of Sweden to Montenegro
Stockholm University alumni
Uppsala University alumni
Paul Cézanne University alumni
People from Lund
Members of the Royal Swedish Academy of War Sciences
|
The 1983 Camus Hong Kong Masters was a professional non-ranking snooker tournament that took place between 5 and 7 August 1983 at the Queen Elizabeth Stadium in Hong Kong.
Doug Mountjoy won the tournament, defeating Terry Griffiths 4–3 in the final.
Main draw
References
Hong Kong Masters
1983 in snooker
1983 in Hong Kong sport
|
Peter Blais is a Canadian actor. He has won a Golden Sheaf Award for "Best Performance - Male" in The Wager, and in 1999 he was nominated for a Gemini Award for "Best Performance by an Actor in a Featured Supporting Role in a Dramatic Series" for his work in PSI Factor.
Blais attended Carleton University and joined the campus drama society, where he met Dan Aykroyd. They performed together in several amateur productions during the 1960s.
As a stage actor, he is best known for his frequent roles in the plays of George F. Walker, including the role of Viktor in the original production and a 1994 revival of Nothing Sacred and the role of Pete Maxwell in the original production of Love and Anger.
Partial filmography
Films
Baby on Board (1991) — Bald Man
The Wager (1998) — Victor
Snow Angels (2007) — Mr. Eisenstat
Made-for-television films
Trudeau (2002) — McIlwraith
Plain Truth (2004) — Dr. Ziegler
Trudeau II: Maverick in the Making (2005) — Professor Émilken Caron
Television
Faerie Tale Theatre (1 episode) (1985) — Julius Caesar Rat
Star Wars: Ewoks (1985)— Additional Voices
The Ray Bradbury Theater (Skeleton) (1988) — Munigant
War of the Worlds (1 episode) (1989) — Ralph
Forever Knight (Crazy Love) (1995) — Barlow
PSI Factor: Chronicles of the Paranormal (21 episodes) (1996–1999) — Lennox "L.Q." Cooper
TekWar (Redemption) (1996)— Jonas La Salle (1 episode, 1996)
Beach Girls (TV mini-series) (2005) — Judge
External links
L.Q. Coopers page Psi Factor Fan site
Living people
Canadian male film actors
Canadian male television actors
Canadian male voice actors
Carleton University alumni
Canadian male stage actors
Year of birth missing (living people)
|
WRHS is a commercial radio station licensed to Grasonville, Maryland, broadcasting mainly to the Annapolis / Anne Arundel County area and the Eastern Shore of Maryland on 103.1 FM. Owned by Peter & John Radio Fellowship, Inc., WRHS rebroadcasts the Contemporary Christian music of the co-owned WRBS-FM, which is branded on-air as Bright-FM. The station's transmitter is located in Grasonville/Queenstown, on Maryland's Eastern Shore of the Chesapeake Bay. It is a "Class A" radio station. WRHS mainly focuses on the Annapolis area, as well as the rest of Anne Arundel, Queen Anne's, and Talbot Counties, although the signal covers Baltimore, Annapolis, the eastern Washington, D.C., suburbs, and many other densely populated areas.
History
Early years (1979-1981)
WAQA signed on the air in 1979 and was founded by Edward Mason De Maso, as a hot adult contemporary/Top 40 station, known as Super Q103 with 3,000 watts from a tower at Kent Narrows, Maryland. The studio and tower were co-located.
Bay Country 103 (1981-1991)
In 1981, the call letters were changed to WBEY and the format changed to country. The station was known as Bay Country 103.
103.1 The Underground (1991-1992)
In early 1991, Vision Broadcasting purchased 103.1 and changed the call letters to WHVY and the format to active rock with an emphasis on heavy metal. The WHVY call letters and format were moved from low-power night-time-only non-commercial 96.7 in Baltimore (97 Underground) to 103.1. The studio was moved to Annapolis with a secondary studio maintained at the transmitter site.
Rock 103XZL (1992-1994)
In December 1992, the active rock format was tweaked some and the call letters were changed to WXZL. The station also increased its power to 6,000 watts from a new tower about 4 miles east of the original tower location.
103.1 WRNR (1994-2023)
The station changed its calls to WRNR-FM in 1994. Empire Broadcasting System acquired the station in 1997.
During this era, WRNR-FM's studios were located in Annapolis on Admiral Cochrane Drive. The official music format for WRNR-FM was adult album alternative, but the station added a lot to that format musically with deep tracks of classic rock, new alternative rock, vintage alternative rock, reggae, roots rock, and more. They are credited as one of the radio stations that helped launch the bands "Wilco" and many others. WRNR-FM was one of the few independent radio stations in the Baltimore-Washington area.
On November 4, 2022, Empire announced it would sell WRNR-FM to Peter and John Ministries, the owners of Christian AC station WRBS-FM (known on air as Bright FM) and Christian talk station WRBS. Included in the sale was the station's frequency, its licenses, and most of its broadcasting equipment; excluded from the sale was the station's call sign, its format and IP, and its Annapolis studio, all of which station owner Steve Kingston claimed was to be moved to another frequency, with WSMD-FM's frequency already in mind. WRNR-FM's programming remained on the frequency until February 10, 2023, being replaced with messages encouraging listeners to download its app and listen on their website before Bright-FM took over. The sale was also consummated on February 10, at a price of $1.54 million. Peter and John took over all broadcast operations of the station the following day. As of February 11, 2023, WRNR-FM programming is being broadcast online, as well as on former repeater WYRE. The broadcast/webcast plays a top of the hour legal ID that says, "The Voice of the Bay, WYRE, Annapolis and WRNR Online" with occasional "103.1 RNR" spot announcements in between songs.
Bright-FM (2023-present)
Bright-FM programming arrived on WRNR-FM on February 11, 2023, with the station serving as a simulcast of WRBS-FM for the Eastern Shore of Maryland and Baltimore's northeast suburbs.
The main Bright-FM studios are located in Commerce Drive near Interstate 95 in Halethorpe, Maryland, using a Baltimore address. On February 16, 2023, the station changed its call sign to WRHS.
References
External links
Annapolis, Maryland
RHS
RHS
Contemporary Christian radio stations in the United States
Radio stations established in 1980
1980 establishments in Maryland
|
Soy candles are candles made from soy wax, which is a processed form of soybean oil. They are usually container candles because soy wax typically has a lower melting point than traditional waxes, but can also be made into pillar candles if certain additives are mixed into the soy wax.
Soy wax
Soy wax is made by the full hydrogenation of soybean oil; chemically this gives a triglyceride, containing a high proportion of stearic acid. It is typically softer than paraffin wax and with a lower melting temperature, in most combinations. However, additives can raise this melting point to temperatures typical for paraffin-based candles. The melting point ranges from 49 to 82 degrees Celsius (130 to 150 degrees Fahrenheit), depending on the blend. The density of soy wax is about 90% that of water or 0.9 g/ml. This means nine pounds (144 oz) of wax will fill about ten 16-oz jars (160 fluid ounces of volume). Soy wax is available in flake and pellet form and has an off-white, opaque appearance. Its lower melting temperature can mean that candles will melt in hot weather. Since soy wax is usually used in container candles, this is not much of an issue.
Some soy candles are made up of a blend of different waxes, including beeswax, paraffin, or palm wax.
Soy candles
Sоу candles dіѕtrіbutе frаgrаnсеѕ and ѕсеntѕ slightly less than paraffin candles. Paraffin is usually added to make a 'soy blend' which allows for a better scent throw and works better in hotter weather conditions. Soy is often referred to as a superior wax in comparison to paraffin but in reality, there is very little difference in soot production and carcinogenic compounds released by both waxes. The low melting роіnt trаnѕlаtеѕ to сооlеr-burning, longer-lasting саndlеѕ in temperate areas.
Soy candles can also come with coconut wax as an additive because coconut wax is viewed as more sustainable and is softer than soy making for a larger melt pool and disbursement of scent.
References
Candles
Candle
|
```smalltalk
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using Microsoft.Toolkit.Uwp.Helpers;
using Windows.UI.ViewManagement;
using Windows.UI.Xaml;
namespace Microsoft.Toolkit.Uwp.UI.Triggers
{
/// <summary>
/// Trigger for switching when in full screen mode.
/// </summary>
public class FullScreenModeStateTrigger : StateTriggerBase
{
/// <summary>
/// Initializes a new instance of the <see cref="FullScreenModeStateTrigger"/> class.
/// </summary>
public FullScreenModeStateTrigger()
{
if (!Windows.ApplicationModel.DesignMode.DesignModeEnabled)
{
var weakEvent =
new WeakEventListener<FullScreenModeStateTrigger, ApplicationView, object>(this)
{
OnEventAction = static (instance, source, eventArgs) => instance.FullScreenModeTrigger_VisibleBoundsChanged(source, eventArgs),
OnDetachAction = (weakEventListener) => ApplicationView.GetForCurrentView().VisibleBoundsChanged -= weakEventListener.OnEvent
};
ApplicationView.GetForCurrentView().VisibleBoundsChanged += weakEvent.OnEvent;
}
}
private void FullScreenModeTrigger_VisibleBoundsChanged(ApplicationView sender, object args) => UpdateTrigger(sender.IsFullScreenMode);
private bool _isFullScreen;
/// <summary>
/// Gets or sets a value indicating whether to trigger on full screen or not.
/// </summary>
public bool IsFullScreen
{
get => _isFullScreen;
set
{
_isFullScreen = value;
if (!Windows.ApplicationModel.DesignMode.DesignModeEnabled)
{
var isFullScreenMode = ApplicationView.GetForCurrentView().IsFullScreenMode;
UpdateTrigger(isFullScreenMode);
}
}
}
private void UpdateTrigger(bool isFullScreenMode) => SetActive(IsFullScreen == isFullScreenMode);
}
}
```
|
```ruby
# frozen_string_literal: true
require 'rails_helper'
describe 'Admin::Trends::Links::PreviewCardProviders' do
let(:current_user) { Fabricate(:user, role: UserRole.find_by(name: 'Admin')) }
before do
sign_in current_user
end
describe 'Performing batch updates' do
before do
visit admin_trends_links_preview_card_providers_path
end
context 'without selecting any records' do
it 'displays a notice about selection' do
click_on button_for_allow
expect(page).to have_content(selection_error_text)
end
end
def button_for_allow
I18n.t('admin.trends.allow')
end
def selection_error_text
I18n.t('admin.trends.links.publishers.no_publisher_selected')
end
end
end
```
|
```c
/*
* qt-faststart.c, v0.2
* by Mike Melanson (melanson@pcisys.net)
* This file is placed in the public domain. Use the program however you
* see fit.
*
* This utility rearranges a Quicktime file such that the moov atom
* is in front of the data, thus facilitating network streaming.
*
* To compile this program, start from the base directory from which you
* are building FFmpeg and type:
* make tools/qt-faststart
* The qt-faststart program will be built in the tools/ directory. If you
* do not build the program in this manner, correct results are not
* guaranteed, particularly on 64-bit platforms.
* Invoke the program with:
* qt-faststart <infile.mov> <outfile.mov>
*
* Notes: Quicktime files can come in many configurations of top-level
* atoms. This utility stipulates that the very last atom in the file needs
* to be a moov atom. When given such a file, this utility will rearrange
* the top-level atoms by shifting the moov atom from the back of the file
* to the front, and patch the chunk offsets along the way. This utility
* presently only operates on uncompressed moov atoms.
*/
#include <stdio.h>
#include <stdlib.h>
#include <inttypes.h>
#include <string.h>
#ifdef __MINGW32__
#undef fseeko
#define fseeko(x, y, z) fseeko64(x, y, z)
#undef ftello
#define ftello(x) ftello64(x)
#elif defined(_WIN32)
#undef fseeko
#define fseeko(x, y, z) _fseeki64(x, y, z)
#undef ftello
#define ftello(x) _ftelli64(x)
#endif
#define MIN(a,b) ((a) > (b) ? (b) : (a))
#define BE_16(x) ((((uint8_t*)(x))[0] << 8) | ((uint8_t*)(x))[1])
#define BE_32(x) (((uint32_t)(((uint8_t*)(x))[0]) << 24) | \
(((uint8_t*)(x))[1] << 16) | \
(((uint8_t*)(x))[2] << 8) | \
((uint8_t*)(x))[3])
#define BE_64(x) (((uint64_t)(((uint8_t*)(x))[0]) << 56) | \
((uint64_t)(((uint8_t*)(x))[1]) << 48) | \
((uint64_t)(((uint8_t*)(x))[2]) << 40) | \
((uint64_t)(((uint8_t*)(x))[3]) << 32) | \
((uint64_t)(((uint8_t*)(x))[4]) << 24) | \
((uint64_t)(((uint8_t*)(x))[5]) << 16) | \
((uint64_t)(((uint8_t*)(x))[6]) << 8) | \
((uint64_t)( (uint8_t*)(x))[7]))
#define BE_FOURCC(ch0, ch1, ch2, ch3) \
( (uint32_t)(unsigned char)(ch3) | \
((uint32_t)(unsigned char)(ch2) << 8) | \
((uint32_t)(unsigned char)(ch1) << 16) | \
((uint32_t)(unsigned char)(ch0) << 24) )
#define QT_ATOM BE_FOURCC
/* top level atoms */
#define FREE_ATOM QT_ATOM('f', 'r', 'e', 'e')
#define JUNK_ATOM QT_ATOM('j', 'u', 'n', 'k')
#define MDAT_ATOM QT_ATOM('m', 'd', 'a', 't')
#define MOOV_ATOM QT_ATOM('m', 'o', 'o', 'v')
#define PNOT_ATOM QT_ATOM('p', 'n', 'o', 't')
#define SKIP_ATOM QT_ATOM('s', 'k', 'i', 'p')
#define WIDE_ATOM QT_ATOM('w', 'i', 'd', 'e')
#define PICT_ATOM QT_ATOM('P', 'I', 'C', 'T')
#define FTYP_ATOM QT_ATOM('f', 't', 'y', 'p')
#define UUID_ATOM QT_ATOM('u', 'u', 'i', 'd')
#define CMOV_ATOM QT_ATOM('c', 'm', 'o', 'v')
#define STCO_ATOM QT_ATOM('s', 't', 'c', 'o')
#define CO64_ATOM QT_ATOM('c', 'o', '6', '4')
#define ATOM_PREAMBLE_SIZE 8
#define COPY_BUFFER_SIZE 33554432
int main(int argc, char *argv[])
{
FILE *infile = NULL;
FILE *outfile = NULL;
unsigned char atom_bytes[ATOM_PREAMBLE_SIZE];
uint32_t atom_type = 0;
uint64_t atom_size = 0;
uint64_t atom_offset = 0;
int64_t last_offset;
unsigned char *moov_atom = NULL;
unsigned char *ftyp_atom = NULL;
uint64_t moov_atom_size;
uint64_t ftyp_atom_size = 0;
uint64_t i, j;
uint32_t offset_count;
uint64_t current_offset;
int64_t start_offset = 0;
unsigned char *copy_buffer = NULL;
int bytes_to_copy;
if (argc != 3) {
printf("Usage: qt-faststart <infile.mov> <outfile.mov>\n"
"Note: alternatively you can use -movflags +faststart in ffmpeg\n");
return 0;
}
if (!strcmp(argv[1], argv[2])) {
fprintf(stderr, "input and output files need to be different\n");
return 1;
}
infile = fopen(argv[1], "rb");
if (!infile) {
perror(argv[1]);
goto error_out;
}
/* traverse through the atoms in the file to make sure that 'moov' is
* at the end */
while (!feof(infile)) {
if (fread(atom_bytes, ATOM_PREAMBLE_SIZE, 1, infile) != 1) {
break;
}
atom_size = BE_32(&atom_bytes[0]);
atom_type = BE_32(&atom_bytes[4]);
/* keep ftyp atom */
if (atom_type == FTYP_ATOM) {
ftyp_atom_size = atom_size;
free(ftyp_atom);
ftyp_atom = malloc(ftyp_atom_size);
if (!ftyp_atom) {
printf("could not allocate %"PRIu64" bytes for ftyp atom\n",
atom_size);
goto error_out;
}
if (fseeko(infile, -ATOM_PREAMBLE_SIZE, SEEK_CUR) ||
fread(ftyp_atom, atom_size, 1, infile) != 1 ||
(start_offset = ftello(infile)) < 0) {
perror(argv[1]);
goto error_out;
}
} else {
int ret;
/* 64-bit special case */
if (atom_size == 1) {
if (fread(atom_bytes, ATOM_PREAMBLE_SIZE, 1, infile) != 1) {
break;
}
atom_size = BE_64(&atom_bytes[0]);
ret = fseeko(infile, atom_size - ATOM_PREAMBLE_SIZE * 2, SEEK_CUR);
} else {
ret = fseeko(infile, atom_size - ATOM_PREAMBLE_SIZE, SEEK_CUR);
}
if (ret) {
perror(argv[1]);
goto error_out;
}
}
printf("%c%c%c%c %10"PRIu64" %"PRIu64"\n",
(atom_type >> 24) & 255,
(atom_type >> 16) & 255,
(atom_type >> 8) & 255,
(atom_type >> 0) & 255,
atom_offset,
atom_size);
if ((atom_type != FREE_ATOM) &&
(atom_type != JUNK_ATOM) &&
(atom_type != MDAT_ATOM) &&
(atom_type != MOOV_ATOM) &&
(atom_type != PNOT_ATOM) &&
(atom_type != SKIP_ATOM) &&
(atom_type != WIDE_ATOM) &&
(atom_type != PICT_ATOM) &&
(atom_type != UUID_ATOM) &&
(atom_type != FTYP_ATOM)) {
printf("encountered non-QT top-level atom (is this a QuickTime file?)\n");
break;
}
atom_offset += atom_size;
/* The atom header is 8 (or 16 bytes), if the atom size (which
* includes these 8 or 16 bytes) is less than that, we won't be
* able to continue scanning sensibly after this atom, so break. */
if (atom_size < 8)
break;
}
if (atom_type != MOOV_ATOM) {
printf("last atom in file was not a moov atom\n");
free(ftyp_atom);
fclose(infile);
return 0;
}
/* moov atom was, in fact, the last atom in the chunk; load the whole
* moov atom */
if (fseeko(infile, -atom_size, SEEK_END)) {
perror(argv[1]);
goto error_out;
}
last_offset = ftello(infile);
if (last_offset < 0) {
perror(argv[1]);
goto error_out;
}
moov_atom_size = atom_size;
moov_atom = malloc(moov_atom_size);
if (!moov_atom) {
printf("could not allocate %"PRIu64" bytes for moov atom\n", atom_size);
goto error_out;
}
if (fread(moov_atom, atom_size, 1, infile) != 1) {
perror(argv[1]);
goto error_out;
}
/* this utility does not support compressed atoms yet, so disqualify
* files with compressed QT atoms */
if (BE_32(&moov_atom[12]) == CMOV_ATOM) {
printf("this utility does not support compressed moov atoms yet\n");
goto error_out;
}
/* close; will be re-opened later */
fclose(infile);
infile = NULL;
/* crawl through the moov chunk in search of stco or co64 atoms */
for (i = 4; i < moov_atom_size - 4; i++) {
atom_type = BE_32(&moov_atom[i]);
if (atom_type == STCO_ATOM) {
printf(" patching stco atom...\n");
atom_size = BE_32(&moov_atom[i - 4]);
if (i + atom_size - 4 > moov_atom_size) {
printf(" bad atom size\n");
goto error_out;
}
offset_count = BE_32(&moov_atom[i + 8]);
if (i + 12 + offset_count * UINT64_C(4) > moov_atom_size) {
printf(" bad atom size/element count\n");
goto error_out;
}
for (j = 0; j < offset_count; j++) {
current_offset = BE_32(&moov_atom[i + 12 + j * 4]);
current_offset += moov_atom_size;
moov_atom[i + 12 + j * 4 + 0] = (current_offset >> 24) & 0xFF;
moov_atom[i + 12 + j * 4 + 1] = (current_offset >> 16) & 0xFF;
moov_atom[i + 12 + j * 4 + 2] = (current_offset >> 8) & 0xFF;
moov_atom[i + 12 + j * 4 + 3] = (current_offset >> 0) & 0xFF;
}
i += atom_size - 4;
} else if (atom_type == CO64_ATOM) {
printf(" patching co64 atom...\n");
atom_size = BE_32(&moov_atom[i - 4]);
if (i + atom_size - 4 > moov_atom_size) {
printf(" bad atom size\n");
goto error_out;
}
offset_count = BE_32(&moov_atom[i + 8]);
if (i + 12 + offset_count * UINT64_C(8) > moov_atom_size) {
printf(" bad atom size/element count\n");
goto error_out;
}
for (j = 0; j < offset_count; j++) {
current_offset = BE_64(&moov_atom[i + 12 + j * 8]);
current_offset += moov_atom_size;
moov_atom[i + 12 + j * 8 + 0] = (current_offset >> 56) & 0xFF;
moov_atom[i + 12 + j * 8 + 1] = (current_offset >> 48) & 0xFF;
moov_atom[i + 12 + j * 8 + 2] = (current_offset >> 40) & 0xFF;
moov_atom[i + 12 + j * 8 + 3] = (current_offset >> 32) & 0xFF;
moov_atom[i + 12 + j * 8 + 4] = (current_offset >> 24) & 0xFF;
moov_atom[i + 12 + j * 8 + 5] = (current_offset >> 16) & 0xFF;
moov_atom[i + 12 + j * 8 + 6] = (current_offset >> 8) & 0xFF;
moov_atom[i + 12 + j * 8 + 7] = (current_offset >> 0) & 0xFF;
}
i += atom_size - 4;
}
}
/* re-open the input file and open the output file */
infile = fopen(argv[1], "rb");
if (!infile) {
perror(argv[1]);
goto error_out;
}
if (start_offset > 0) { /* seek after ftyp atom */
if (fseeko(infile, start_offset, SEEK_SET)) {
perror(argv[1]);
goto error_out;
}
last_offset -= start_offset;
}
outfile = fopen(argv[2], "wb");
if (!outfile) {
perror(argv[2]);
goto error_out;
}
/* dump the same ftyp atom */
if (ftyp_atom_size > 0) {
printf(" writing ftyp atom...\n");
if (fwrite(ftyp_atom, ftyp_atom_size, 1, outfile) != 1) {
perror(argv[2]);
goto error_out;
}
}
/* dump the new moov atom */
printf(" writing moov atom...\n");
if (fwrite(moov_atom, moov_atom_size, 1, outfile) != 1) {
perror(argv[2]);
goto error_out;
}
/* copy the remainder of the infile, from offset 0 -> last_offset - 1 */
bytes_to_copy = MIN(COPY_BUFFER_SIZE, last_offset);
copy_buffer = malloc(bytes_to_copy);
if (!copy_buffer) {
printf("could not allocate %d bytes for copy_buffer\n", bytes_to_copy);
goto error_out;
}
printf(" copying rest of file...\n");
while (last_offset) {
bytes_to_copy = MIN(bytes_to_copy, last_offset);
if (fread(copy_buffer, bytes_to_copy, 1, infile) != 1) {
perror(argv[1]);
goto error_out;
}
if (fwrite(copy_buffer, bytes_to_copy, 1, outfile) != 1) {
perror(argv[2]);
goto error_out;
}
last_offset -= bytes_to_copy;
}
fclose(infile);
fclose(outfile);
free(moov_atom);
free(ftyp_atom);
free(copy_buffer);
return 0;
error_out:
if (infile)
fclose(infile);
if (outfile)
fclose(outfile);
free(moov_atom);
free(ftyp_atom);
free(copy_buffer);
return 1;
}
```
|
```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 io.pravega.client.stream.impl;
public class CheckpointFailedException extends Exception {
private static final long serialVersionUID = 1L;
public CheckpointFailedException(String message) {
super(message);
}
public CheckpointFailedException(Throwable e) {
super(e);
}
public CheckpointFailedException(String message, Throwable e) {
super(message, e);
}
}
```
|
```javascript
Handling modules
Template Strings
Unicode in ES6
The `for-of` loop in ES6
Reflect API in ES6
```
|
```python
class User:
def __init__(self):
self.id = ''
self.nickname = ''
self.gender = ''
self.location = ''
self.birthday = ''
self.description = ''
self.verified_reason = ''
self.talent = ''
self.education = ''
self.work = ''
self.weibo_num = 0
self.following = 0
self.followers = 0
def __str__(self):
""""""
result = ''
result += u': %s\n' % self.nickname
result += u'id: %s\n' % self.id
result += u': %d\n' % self.weibo_num
result += u': %d\n' % self.following
result += u': %d\n' % self.followers
return result
```
|
```xml
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="path_to_url" xmlns:xsi="path_to_url"
xsi:schemaLocation="path_to_url path_to_url">
<modelVersion>4.0.0</modelVersion>
<groupId>com.fuzzer</groupId>
<artifactId>project-parent</artifactId>
<version>0.1.0</version>
<packaging>pom</packaging>
<modules>
<!-- <module>opencensus-java</module> -->
<module>fuzz-targets</module>
</modules>
</project>
```
|
Nicholas David Pope (born 19 April 1992) is an English professional footballer who plays as a goalkeeper for club Newcastle United and the England national team.
Pope started his career in Ipswich Town's youth teams and after being released aged 16, he joined Bury Town. He signed for League One club Charlton Athletic in May 2011, before having loan spells with Harrow Borough, Welling United, Cambridge United, Aldershot Town, York City and Bury. In July 2016, Pope joined Premier League club Burnley, where he remained until the club's relegation in May 2022, after which he signed for Newcastle the following month.
In 2018, Pope made his debut for the England national team, and has been a member of the 2018 FIFA World Cup and 2022 FIFA World Cup squads.
Early life
Nicholas David Pope was born on 19 April 1992 in Soham, Cambridgeshire. He attended St Andrew's Primary School in Soham and was in the same class as murdered schoolgirls Holly Wells and Jessica Chapman. He later attended King's School in nearby Ely.
Club career
Early career
An Ipswich Town season ticket holder, he began his career at the club's youth set-up at the age of 10 and remained with Ipswich until being released aged 16. Following his release by Ipswich, he joined non-League club Bury Town in 2008. Having challenged and temporarily replaced Marcus Garnham, Pope proved he was capable at that level when he wore the number one shirt for Bury Town for a number of first-team matches after initially debuting for the team at just 16 years of age. Manager Richard Wilkins described Pope as "the most naturally-talented player to progress through the ranks at the West Suffolk Sports Academy and Bury Town" and said "I honestly think Nick Pope can go all the way to the top." Pope was also a member of the West Suffolk College squad and has represented an England Colleges squad.
Charlton Athletic
On 24 May 2011, League One club Charlton Athletic signed Pope after he was spotted by scouts during a 2–1 win over Billericay Town. He was then invited to a trial at Charlton. After impressing staff during a trial, he was signed on a two-year contract after the two clubs agreed a compensation package, which included Charlton taking on the Suffolk outfit in a pre-season friendly ahead of the 2012–13 season (which he was unable to play due to injury). Charlton also paid for Pope to take a degree in sports science at the University of Roehampton alongside other courses which he had planned to take at the University of Nottingham before being signed by Charlton. On 7 February 2012, Pope signed a new two-year contract with Charlton. He made his Charlton and professional debut on 4 May 2013, in the last match of the 2012–13 season, as a 71st minute substitute for David Button in a 4–1 home win for Charlton against already relegated Bristol City in the Championship.
Pope signed a new three-year contract with Charlton in September 2013, and commented that "It's a big club so to have a long-term future secure, for me, as a player developing, it's something you look for".
On 5 June 2014, Pope signed a new four-year contract, securing his future to Charlton until June 2018.
Loan spells
In August 2011, Pope joined Isthmian League Premier Division club Harrow Borough on a loan deal lasting until 17 September 2011. Whilst there Pope kept three clean sheets and saved two penalty kicks in 19 appearances. Pope was then meant to join Conference Premier club Kettering Town in December 2011, but the deal could not be concluded due to Kettering being placed under a transfer embargo. As a result, he joined Conference South club Welling United on 21 December 2011 on a 28-day loan instead. On 7 March 2013, Pope joined Cambridge United in the Conference Premier on a one-month loan. Whilst at the club, he made nine appearances, keeping four clean sheets in the process.
On 26 September 2013, Pope joined Conference Premier club Aldershot Town on a one-month loan. He joined League Two club York City on 21 November 2013 on a one-month loan, but was recalled after only two matches by Charlton. On 16 January 2014, Pope rejoined York on loan for the rest of the 2013–14 season, keeping 16 clean sheets in 24 appearances.
On 6 January 2015, Pope joined Bury on loan for the rest of the 2014–15 season. He made his debut in a 1–1 home draw with Wycombe Wanderers on 17 January 2015. He made 22 appearances as Bury won promotion after finishing in third place in League Two.
Burnley
2016–2019: Cup keeper, first-team breakthrough, and injury
On 19 July 2016, Pope joined newly promoted Premier League club Burnley on a three-year contract for an undisclosed fee. He made his competitive debut in Burnley's shock 1–0 defeat to Accrington Stanley in the EFL Cup second round, with the winning goal coming from Matty Pearson in the last minute of extra time. He kept his first clean sheet for Burnley in their 0–0 draw at Sunderland in the FA Cup third round on 7 January 2017. He repeated the feat on his home debut, as Burnley won the replay 2–0.
Pope made his Premier League debut on 10 September 2017, replacing the injured Tom Heaton in the first half of a 1–0 home win over Crystal Palace. He made his first Premier League start the following week, on 16 September, in a 1–1 draw against Liverpool at Anfield. He kept his place in the team and played in all of Burnley's remaining fixtures that season. On 9 October, Pope signed a new contract to keep him at Burnley until 2020.
On 26 July 2018, he suffered a dislocated shoulder after colliding with Sam Cosgrove during Burnley's 1–1 draw away to Aberdeen in the 2018–19 UEFA Europa League second qualifying round first leg. Burnley signed Joe Hart on 7 August to provide cover for Pope and Tom Heaton, who was also injured. Pope made his first-team comeback in Burnley's 1–0 home win against Barnsley in the FA Cup third round, but he did not play at all in the Premier League that season.
2019–2022: Burnley's number one
In May 2019, Pope signed a new contract with Burnley, running until 2023. On 1 August, Tom Heaton signed for Aston Villa, paving the way for Pope to become Burnley's first choice goalkeeper. He had a prolific 2019–20 season, as he featured in every minute of Burnley's Premier League campaign. Coming into the last match of the season against Brighton, Pope was level on clean sheets with Manchester City's Ederson, with both keepers having kept 15. In the 20th minute of the match against Brighton, Yves Bissouma scored, meaning Pope would finish the season with 15 clean sheets. Manchester City's final match against already-relegated Norwich City, ended 5–0 with Ederson keeping his 16th clean sheet, claiming the Golden Glove outright, narrowly beating out Pope. On 11 July 2020, Burnley drew 1–1 away to Liverpool and became the only team to take points off Liverpool at Anfield that season. Pope was highly applauded for his performance in the match, as he made eight saves to deny Liverpool a win.
Pope only missed two of Burnley's Premier League games in the 2021–22 season, but he could not save the team from relegation after six consecutive seasons in the top tier.
Newcastle United
Pope signed for Premier League club Newcastle United on 23 June 2022 on a four-year contract for an undisclosed fee, reported by Sky Sports to be £10 million. He kept a clean sheet on his competitive debut in Newcastle's 2–0 home win against Nottingham Forest on the opening day of the 2022–23 Premier League season.
Pope was sent off for handling the ball outside his penalty area in Newcastle's 2–0 home defeat to Liverpool on 18 February 2023. His dismissal meant that Newcastle were without both their first and second choice goalkeepers for the 2023 EFL Cup final against Manchester United; Martin Dúbravka was cup-tied having played for United in the third and fourth rounds during his loan spell. Third-choice goalkeeper Loris Karius made his debut as Newcastle lost the match 2–0.
During the season, Pope quickly rose to the top in the race for the Golden Glove, after six consecutive matches in which he did not concede a goal. He maintained this lead for a number of weeks, but in that time, only recorded one clean sheet, and he was eventually surpassed by Manchester United's David de Gea. It was later revealed that he had been playing with an injured finger, and had minor surgery on it following Newcastle's goalless draw with Leicester City, resulting in Newcastle returning to the UEFA Champions League for the first time in 20 years.
International career
Pope was called up to the England national team for the first time on 15 March 2018. He was named in the 23-man England squad for the 2018 FIFA World Cup. Pope made his debut on 7 June 2018 as a 65th-minute substitute as England beat Costa Rica 2–0 in a pre-tournament friendly. He made his first competitive international appearance in a 4–0 win against Kosovo for the final game in UEFA Euro 2020 qualifying on 17 November 2019. In March 2021, after England defeated Albania 2–0, Pope became the first goalkeeper to keep a clean sheet in his first six appearances for the country. Pope was selected for England's 2022 FIFA World Cup squad, but was an unused substitute behind Jordan Pickford as the team reached the quarter-finals.
Personal life
Pope's long-term girlfriend is Shannon Horlock, daughter of former footballer Kevin Horlock.
Career statistics
Club
International
Honours
Individual
PFA Team of the Year: 2019–20 Premier League
Burnley Player of the Year: 2017–18, 2019–20
Burnley Players' Player of the Year: 2017–18, 2019–20
Premier League Save of the Month: August 2022, January 2023
Notes
References
External links
Profile at the Newcastle United F.C. website
Profile at the Football Association website
1992 births
Living people
People from Soham
Footballers from Cambridgeshire
English men's footballers
Men's association football goalkeepers
Ipswich Town F.C. players
Bury Town F.C. players
Charlton Athletic F.C. players
Harrow Borough F.C. players
Welling United F.C. players
Cambridge United F.C. players
Aldershot Town F.C. players
York City F.C. players
Bury F.C. players
Burnley F.C. players
Newcastle United F.C. players
Eastern Counties Football League players
Isthmian League players
National League (English football) players
English Football League players
Premier League players
England men's international footballers
2018 FIFA World Cup players
2022 FIFA World Cup players
People educated at King's Ely
Alumni of the University of Roehampton
|
```php
<a href="{{ route('platform.notifications') }}"
class="m-auto d-flex align-items-center btn btn-link position-relative px-1 py-0 h-100"
data-controller="notification"
data-notification-count="{{ count($notifications) }}"
data-notification-url="{{ route('platform.api.notifications') }}"
data-notification-method="post"
data-notification-interval="{{ config('platform.notifications.interval') }}"
>
<x-orchid-icon path="bs.bell" width="1.1em" height="1.1em" />
<template id="notification-circle">
<x-orchid-icon path="bs.circle-fill" width="0.4em" height="0.4em" />
</template>
<span class="position-absolute top-0 start-100 translate-middle badge rounded-pill bg-danger" data-notification-target="badge">
</span>
</a>
```
|
Atego may refer to:
Atego (company) - former software company
Mercedes-Benz Atego - truck
|
The Light Shines in the Darkness is an unfinished play by Leo Tolstoy, written in 1890.
Arguably his most autobiographical piece, the play is said to "mirror Leo Tolstoy’s highly personal dilemma as if seen through the crucible of the family. "
External Links
English Text
The Light Shines in the Darkness, at RevoltLib.com
The Light Shines in the Darkness, at Marxists.org
The Light Shines in the Darkness, at TheAnarchistLibrary.org
The Light Shines in the Darkness, at Archive.org
References
Plays by Leo Tolstoy
1890 plays
|
No Justice is a red dirt/Texas country band which was originally from Stillwater, Oklahoma.
History
The band was formed in 2001. It has its origins in a covers band that included Jerry Payne and two of the other original members, adopting the name No Justice. They began writing original songs and recruited local artist Steve Rice on lead vocals and guitar.
In September 2007, No Justice released their first live album, Live at Billy Bob's CD/DVD, joining a long list of artists in the Live at Billy Bob's series. Originally released as a limited edition CD/DVD combo, it was re-released in 2008 with the full track listing. The album included the band's more popular songs from the previous albums, as well as three new tracks, two of which were also included as studio recordings. At the end of the last track of live recording, the band included their own version of U2's "With or Without You", from the 1987 album The Joshua Tree. A cover of Ryan Adams' "Shakedown on 9th Street", from the 2000 album Heartbreaker is included, as well as a cover version of Todd Snider's "Horseshoe Lake", from the 2005 album That Was Me: Best Of. The original limited edition issue consisted of CD containing a condensed version of the live recording, as well as a DVD of the concert and bonus features, including a photo gallery and interviews with the band.
By late 2009, the group had landed a new record deal with Carved Records. In 2010, the band's lineup was singer/guitarist Steve Rice, guitarist Jerry Payne, bassist Joey Treviño (who joined in 2008), drummer Armando Lopez and lead guitarist Cody Patton.
2nd Avenue (2010) was more rock-oriented than their earlier work, but the band returned to their roots with America's Son (2012), produced by Dexter Green. By 2012 the band's lineup was Rice, Patton, Lopez, vocalist/bassist Justin Morris, and keyboard player Bryce Conway.
Current band status
On September 5, 2013, No Justice announced via their Facebook page that the band would be splitting up. The final tour ended in October at the Wormy Dog Saloon in OKC, Oklahoma. The band started playing select shows again in 2015 and still plays at select venues currently. No Justice teamed up with Red 11 Music and producer Dex Green to record a 3 song EP in May of 2019. They are currently not on tour but playing select venues throughout the country.
Musical style
While often categorized as 'Red Dirt', the band's music incorporates country, rock, R&B, blues, and funk. Singer Rice described the band's sound as an "Americana-Southern Rock blend".
Discography
Albums
More to live For 3:33- (Steve Rice)
*more songs to come throughout 2019.
Music videos
References
American country rock groups
Country music groups from Oklahoma
2001 establishments in Oklahoma
Musical groups established in 2001
Carved Records artists
|
William Lee (12 August 1878 – 5 November 1934), better known as Billy Lee, was an English footballer who played as a centre forward. He played in the Football League for West Bromwich Albion and Chesterfield Town.
Biography
Lee was born in West Bromwich. He turned professional with West Bromwich Albion in September 1901. In 1903 he joined Bournemouth Wanderers on loan. He signed for Portsmouth in September 1904 for a £100 fee. In August 1906 he moved to New Brompton for £50, and a year later joined Chesterfield Town for the same fee. He joined Darlaston on a free transfer in October 1908 and retired due to injury in May 1911. He died in Walsall in 1934.
References
General
Specific
1878 births
1934 deaths
Footballers from West Bromwich
English men's footballers
Men's association football forwards
Bournville Athletic F.C. players
West Bromwich Albion F.C. players
Portsmouth F.C. players
Gillingham F.C. players
Chesterfield F.C. players
Darlaston Town F.C. players
English Football League players
|
Kevin Mitchell (born June 5, 1980) is an American professional ice hockey defenseman currently playing with the Nikko Icebucks in the Asia League Ice Hockey (AL). He was originally selected by the Calgary Flames in the 9th round (234th overall) of the 1998 NHL Entry Draft.
Mitchell played with EC VSV in the Austrian Hockey League during the 2010–11 Austrian Hockey League season.
After a season with Ritten-Renon in the Italian Serie A, Mitchell left as a free agent and signed a one-year contract with Swedish club, Mora IK of the HockeyAllsvenskan on June 20, 2013.
Mitchell recorded an impressive debut season from the blueline with Mora and was signed to a one-year contract extension on March 23, 2014. For the 2014–15 season, he was selected as team captain for Mora IK and responded with beating his previously scoring pace from the blueline, amassing 48 points in just 52 games.
On February 7, 2015, Mitchell signed a one-year contract to return to the familiar Austrian EBEL, in agreeing as a free agent with the Graz 99ers.
Career statistics
References
External links
1980 births
Living people
American men's ice hockey defensemen
Bridgeport Sound Tigers players
Cleveland Barons (2001–2006) players
Graz 99ers players
Guelph Storm players
Hamburg Freezers players
Hamilton Bulldogs (AHL) players
Houston Aeros (1994–2013) players
Ice hockey players from New York (state)
Iserlohn Roosters players
Louisiana IceGators (ECHL) players
Mora IK players
HDD Olimpija Ljubljana players
Oshawa Generals players
HC Dynamo Pardubice players
SC Rapperswil-Jona Lakers players
Vienna Capitals players
EC VSV players
Nikkō Ice Bucks players
Calgary Flames draft picks
American expatriate ice hockey players in Italy
American expatriate ice hockey players in Canada
American expatriate ice hockey players in Germany
American expatriate ice hockey players in Austria
American expatriate ice hockey players in Slovenia
American expatriate ice hockey players in Switzerland
American expatriate ice hockey players in the Czech Republic
American expatriate ice hockey players in Sweden
American expatriate ice hockey players in Japan
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.