text
stringlengths 1
22.8M
|
|---|
```scala
/*
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
*
* path_to_url
*
* Unless required by applicable law or agreed to in writing, software
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/
package org.apache.spark.sql.carbondata.datasource
import java.io.File
import org.apache.commons.codec.binary.{Base64, Hex}
import org.apache.commons.io.FileUtils
import org.apache.spark.sql.{AnalysisException, Row}
import org.apache.spark.sql.test.util.QueryTest
import org.apache.spark.util.SparkUtil
import org.scalatest.BeforeAndAfterAll
import org.apache.carbondata.core.constants.CarbonCommonConstants
import org.apache.carbondata.core.util.CarbonProperties
import org.apache.carbondata.sdk.util.BinaryUtil
class SparkCarbonDataSourceBinaryTest extends QueryTest with BeforeAndAfterAll {
var writerPath = s"$target/SparkCarbonFileFormat/WriterOutput/"
var outputPath = writerPath + 2
// getCanonicalPath gives path with \, but the code expects /.
writerPath = writerPath.replace("\\", "/")
var sdkPath = new File(this.getClass.getResource("/").getPath + "../../../../sdk/sdk/")
.getCanonicalPath
def buildTestBinaryData(): Any = {
FileUtils.deleteDirectory(new File(writerPath))
FileUtils.deleteDirectory(new File(outputPath))
val sourceImageFolder = sdkPath + "/src/test/resources/image/flowers"
val sufAnnotation = ".txt"
BinaryUtil.binaryToCarbon(sourceImageFolder, writerPath, sufAnnotation, ".jpg")
}
private def cleanTestData() = {
FileUtils.deleteDirectory(new File(writerPath))
FileUtils.deleteDirectory(new File(outputPath))
}
override def beforeAll(): Unit = {
defaultConfig()
CarbonProperties.getInstance()
.addProperty(CarbonCommonConstants.CARBON_TIMESTAMP_FORMAT,
CarbonCommonConstants.CARBON_TIMESTAMP_DEFAULT_FORMAT)
buildTestBinaryData()
FileUtils.deleteDirectory(new File(outputPath))
sql("DROP TABLE IF EXISTS sdkOutputTable")
}
override def afterAll(): Unit = {
cleanTestData()
sql("DROP TABLE IF EXISTS sdkOutputTable")
}
test("Test direct sql read carbon") {
assert(new File(writerPath).exists())
checkAnswer(
sql(s"SELECT COUNT(*) FROM carbon.`$writerPath`"),
Seq(Row(3)))
}
test("Test read image carbon with spark carbon file format, generate by sdk, CTAS") {
sql("DROP TABLE IF EXISTS binaryCarbon")
sql("DROP TABLE IF EXISTS binaryCarbon3")
FileUtils.deleteDirectory(new File(outputPath))
if (SparkUtil.isSparkVersionEqualTo("2.1")) {
sql(s"CREATE TABLE binaryCarbon USING CARBON OPTIONS(PATH '$writerPath')")
sql(s"CREATE TABLE binaryCarbon3 USING CARBON OPTIONS(PATH '$outputPath')" +
" AS SELECT * FROM binaryCarbon")
} else {
sql(s"CREATE TABLE binaryCarbon USING CARBON LOCATION '$writerPath'")
sql(s"CREATE TABLE binaryCarbon3 USING CARBON LOCATION '$outputPath'" +
" AS SELECT * FROM binaryCarbon")
}
checkAnswer(sql("SELECT COUNT(*) FROM binaryCarbon"),
Seq(Row(3)))
checkAnswer(sql("SELECT COUNT(*) FROM binaryCarbon3"),
Seq(Row(3)))
sql("DROP TABLE IF EXISTS binaryCarbon")
sql("DROP TABLE IF EXISTS binaryCarbon3")
FileUtils.deleteDirectory(new File(outputPath))
}
test("Don't support sort_columns") {
sql("DROP TABLE IF EXISTS binaryTable")
var exception = intercept[Exception] {
sql(
s"""
| CREATE TABLE binaryTable (
| id DOUBLE,
| label BOOLEAN,
| name STRING,
| image BINARY,
| autoLabel BOOLEAN)
| using carbon
| options('SORT_COLUMNS'='image')
""".stripMargin)
// TODO: it should throw exception when create table
sql("SELECT COUNT(*) FROM binaryTable").collect()
}
assert(exception.getCause.getMessage
.contains(
"sort columns not supported for array, struct, map, double, float, decimal, varchar, " +
"binary"))
sql("DROP TABLE IF EXISTS binaryTable")
if (SparkUtil.isSparkVersionEqualTo("2.1")) {
exception = intercept[Exception] {
sql(
s"""
| CREATE TABLE binaryTable
| using carbon
| options(PATH '$writerPath',
| 'SORT_COLUMNS'='image')
""".stripMargin)
sql("SELECT COUNT(*) FROM binaryTable").collect()
}
} else {
exception = intercept[Exception] {
sql(
s"""
| CREATE TABLE binaryTable
| using carbon
| options('SORT_COLUMNS'='image')
| LOCATION '$writerPath'
""".stripMargin)
sql("SELECT COUNT(*) FROM binaryTable").collect()
}
}
assert(exception.getMessage.contains("Cannot use sort columns during infer schema"))
sql("DROP TABLE IF EXISTS binaryTable")
if (SparkUtil.isSparkVersionEqualTo("2.1")) {
exception = intercept[Exception] {
sql(
s"""
| CREATE TABLE binaryTable (
| id DOUBLE,
| label BOOLEAN,
| name STRING,
| image BINARY,
| autoLabel BOOLEAN)
| using carbon
| options(PATH '$writerPath',
| 'SORT_COLUMNS'='image')
""".stripMargin)
sql("SELECT COUNT(*) FROM binaryTable").collect()
}
} else {
exception = intercept[Exception] {
sql(
s"""
| CREATE TABLE binaryTable (
| id DOUBLE,
| label BOOLEAN,
| name STRING,
| image BINARY,
| autoLabel BOOLEAN)
| using carbon
| options('SORT_COLUMNS'='image')
| LOCATION '$writerPath'
""".stripMargin)
sql("SELECT COUNT(*) FROM binaryTable").collect()
}
}
assert(exception.getCause.getMessage
.contains(
"sort columns not supported for array, struct, map, double, float, decimal, varchar, " +
"binary"))
}
test("Don't support long_string_columns for binary") {
sql("DROP TABLE IF EXISTS binaryTable")
val exception = intercept[Exception] {
sql(
s"""
| CREATE TABLE binaryTable (
| id DOUBLE,
| label BOOLEAN,
| name STRING,
| image BINARY,
| autoLabel BOOLEAN)
| using carbon
| options('long_string_columns'='image')
""".stripMargin)
sql("SELECT COUNT(*) FROM binaryTable").collect()
}
assert(exception.getCause.getMessage
.contains("long string column : image is not supported for data type: BINARY"))
}
test("Don't support insert into partition table") {
if (SparkUtil.isSparkVersionXAndAbove("2.2")) {
sql("DROP TABLE IF EXISTS binaryCarbon")
sql("DROP TABLE IF EXISTS binaryCarbon2")
sql("DROP TABLE IF EXISTS binaryCarbon3")
sql("DROP TABLE IF EXISTS binaryCarbon4")
sql(s"CREATE TABLE binaryCarbon USING CARBON LOCATION '$writerPath'")
sql(
s"""
| CREATE TABLE binaryCarbon2(
| binaryId INT,
| binaryName STRING,
| binary BINARY,
| labelName STRING,
| labelContent STRING
|) USING CARBON""".stripMargin)
sql(
s"""
| CREATE TABLE binaryCarbon3(
| binaryId INT,
| binaryName STRING,
| binary BINARY,
| labelName STRING,
| labelContent STRING
|) USING CARBON partitioned by (binary) """.stripMargin)
sql(
"select binaryId,binaryName,binary,labelName,labelContent from binaryCarbon where " +
"binaryId=0")
.collect()
sql(
"insert into binaryCarbon2 select binaryId,binaryName,binary,labelName,labelContent from " +
"binaryCarbon where binaryId=0 ")
val carbonResult2 = sql("SELECT * FROM binaryCarbon2")
sql(
"create table binaryCarbon4 using carbon select binaryId,binaryName,binary,labelName," +
"labelContent from binaryCarbon where binaryId=0 ")
val carbonResult4 = sql("SELECT * FROM binaryCarbon4")
val carbonResult = sql("SELECT * FROM binaryCarbon")
assert(3 == carbonResult.collect().length)
assert(1 == carbonResult4.collect().length)
assert(1 == carbonResult2.collect().length)
checkAnswer(carbonResult4, carbonResult2)
try {
sql(
"insert into binaryCarbon3 select binaryId,binaryName,binary,labelName,labelContent " +
"from binaryCarbon where binaryId=0 ")
assert(false)
} catch {
case e: Exception =>
e.printStackTrace()
assert(true)
}
sql("DROP TABLE IF EXISTS binaryCarbon")
sql("DROP TABLE IF EXISTS binaryCarbon2")
sql("DROP TABLE IF EXISTS binaryCarbon3")
sql("DROP TABLE IF EXISTS binaryCarbon4")
}
}
test("Test unsafe as false") {
CarbonProperties.getInstance()
.addProperty(CarbonCommonConstants.ENABLE_UNSAFE_COLUMN_PAGE, "false")
FileUtils.deleteDirectory(new File(outputPath))
sql("DROP TABLE IF EXISTS binaryCarbon")
sql("DROP TABLE IF EXISTS binaryCarbon3")
if (SparkUtil.isSparkVersionEqualTo("2.1")) {
sql(s"CREATE TABLE binaryCarbon USING CARBON OPTIONS(PATH '$writerPath')")
sql(s"CREATE TABLE binaryCarbon3 USING CARBON OPTIONS(PATH '$outputPath')" +
" AS SELECT * FROM binaryCarbon")
} else {
sql(s"CREATE TABLE binaryCarbon USING CARBON LOCATION '$writerPath'")
sql(s"CREATE TABLE binaryCarbon3 USING CARBON LOCATION '$outputPath'" +
" AS SELECT * FROM binaryCarbon")
}
checkAnswer(sql("SELECT COUNT(*) FROM binaryCarbon"),
Seq(Row(3)))
checkAnswer(sql("SELECT COUNT(*) FROM binaryCarbon3"),
Seq(Row(3)))
sql("DROP TABLE IF EXISTS binaryCarbon")
sql("DROP TABLE IF EXISTS binaryCarbon3")
FileUtils.deleteDirectory(new File(outputPath))
CarbonProperties.getInstance()
.addProperty(CarbonCommonConstants.ENABLE_UNSAFE_COLUMN_PAGE,
CarbonCommonConstants.ENABLE_UNSAFE_COLUMN_PAGE_DEFAULT)
}
test("insert into for hive and carbon, CTAS") {
sql("DROP TABLE IF EXISTS hiveTable")
sql("DROP TABLE IF EXISTS carbon_table")
sql("DROP TABLE IF EXISTS hiveTable2")
sql("DROP TABLE IF EXISTS carbon_table2")
sql(
s"""
| CREATE TABLE IF NOT EXISTS hivetable (
| id int,
| label boolean,
| name string,
| image binary,
| autoLabel boolean)
| row format delimited fields terminated by ','
""".stripMargin)
sql("insert into hivetable values(1,true,'Bob','binary',false)")
sql("insert into hivetable values(2,false,'Xu','test',true)")
sql(
s"""
| CREATE TABLE IF NOT EXISTS carbon_table (
| id int,
| label boolean,
| name string,
| image binary,
| autoLabel boolean)
| using carbon
""".stripMargin)
sql("insert into carbon_table values(1,true,'Bob','binary',false)")
sql("insert into carbon_table values(2,false,'Xu','test',true)")
val hexHiveResult = sql("SELECT hex(image) FROM hivetable")
val hexCarbonResult = sql("SELECT hex(image) FROM carbon_table")
checkAnswer(hexHiveResult, hexCarbonResult)
hexCarbonResult.collect().foreach { each =>
val result = new String(Hex.decodeHex((each.getAs[Array[Char]](0)).toString.toCharArray))
assert("binary".equals(result)
|| "test".equals(result))
}
val base64HiveResult = sql("SELECT base64(image) FROM hivetable")
val base64CarbonResult = sql("SELECT base64(image) FROM carbon_table")
checkAnswer(base64HiveResult, base64CarbonResult)
base64CarbonResult.collect().foreach { each =>
val result = new String(Base64.decodeBase64((each.getAs[Array[Char]](0)).toString))
assert("binary".equals(result)
|| "test".equals(result))
}
val carbonResult = sql("SELECT * FROM carbon_table")
val hiveResult = sql("SELECT * FROM hivetable")
assert(2 == carbonResult.collect().length)
assert(2 == hiveResult.collect().length)
checkAnswer(hiveResult, carbonResult)
carbonResult.collect().foreach { each =>
if (1 == each.get(0)) {
assert("binary".equals(new String(each.getAs[Array[Byte]](3))))
} else if (2 == each.get(0)) {
assert("test".equals(new String(each.getAs[Array[Byte]](3))))
} else {
assert(false)
}
}
sql("CREATE TABLE hivetable2 AS SELECT * FROM carbon_table")
sql("CREATE TABLE carbon_table2 USING CARBON AS SELECT * FROM hivetable")
val carbonResult2 = sql("SELECT * FROM carbon_table2")
val hiveResult2 = sql("SELECT * FROM hivetable2")
checkAnswer(hiveResult2, carbonResult2)
checkAnswer(carbonResult, carbonResult2)
checkAnswer(hiveResult, hiveResult2)
assert(2 == carbonResult2.collect().length)
assert(2 == hiveResult2.collect().length)
sql("INSERT INTO hivetable2 SELECT * FROM carbon_table")
sql("INSERT INTO carbon_table2 SELECT * FROM hivetable")
val carbonResult3 = sql("SELECT * FROM carbon_table2")
val hiveResult3 = sql("SELECT * FROM hivetable2")
checkAnswer(carbonResult3, hiveResult3)
assert(4 == carbonResult3.collect().length)
assert(4 == hiveResult3.collect().length)
}
test("insert into for parquet and carbon, CTAS") {
sql("DROP TABLE IF EXISTS parquetTable")
sql("DROP TABLE IF EXISTS carbon_table")
sql("DROP TABLE IF EXISTS parquetTable2")
sql("DROP TABLE IF EXISTS carbon_table2")
sql(
s"""
| CREATE TABLE IF NOT EXISTS parquettable (
| id int,
| label boolean,
| name string,
| image binary,
| autoLabel boolean)
| using parquet
""".stripMargin)
sql("insert into parquettable values(1,true,'Bob','binary',false)")
sql("insert into parquettable values(2,false,'Xu','test',true)")
sql(
s"""
| CREATE TABLE IF NOT EXISTS carbon_table (
| id int,
| label boolean,
| name string,
| image binary,
| autoLabel boolean)
| using carbon
""".stripMargin)
sql("insert into carbon_table values(1,true,'Bob','binary',false)")
sql("insert into carbon_table values(2,false,'Xu','test',true)")
val carbonResult = sql("SELECT * FROM carbon_table")
val parquetResult = sql("SELECT * FROM parquettable")
assert(2 == carbonResult.collect().length)
assert(2 == parquetResult.collect().length)
checkAnswer(parquetResult, carbonResult)
carbonResult.collect().foreach { each =>
if (1 == each.get(0)) {
assert("binary".equals(new String(each.getAs[Array[Byte]](3))))
} else if (2 == each.get(0)) {
assert("test".equals(new String(each.getAs[Array[Byte]](3))))
} else {
assert(false)
}
}
sql("CREATE TABLE parquettable2 AS SELECT * FROM carbon_table")
sql("CREATE TABLE carbon_table2 USING CARBON AS SELECT * FROM parquettable")
val carbonResult2 = sql("SELECT * FROM carbon_table2")
val parquetResult2 = sql("SELECT * FROM parquettable2")
checkAnswer(parquetResult2, carbonResult2)
checkAnswer(carbonResult, carbonResult2)
checkAnswer(parquetResult, parquetResult2)
assert(2 == carbonResult2.collect().length)
assert(2 == parquetResult2.collect().length)
sql("INSERT INTO parquettable2 SELECT * FROM carbon_table")
sql("INSERT INTO carbon_table2 SELECT * FROM parquettable")
val carbonResult3 = sql("SELECT * FROM carbon_table2")
val parquetResult3 = sql("SELECT * FROM parquettable2")
checkAnswer(carbonResult3, parquetResult3)
assert(4 == carbonResult3.collect().length)
assert(4 == parquetResult3.collect().length)
}
test("insert into carbon as select from hive after hive load data") {
sql("DROP TABLE IF EXISTS hiveTable")
sql("DROP TABLE IF EXISTS carbon_table")
sql("DROP TABLE IF EXISTS hiveTable2")
sql("DROP TABLE IF EXISTS carbon_table2")
sql(
s"""
| CREATE TABLE IF NOT EXISTS hivetable (
| id int,
| label boolean,
| name string,
| image binary,
| autoLabel boolean)
| row format delimited fields terminated by '|'
""".stripMargin)
sql(
s"""
| LOAD DATA LOCAL INPATH '$resourcesPath/binarystringdata.csv'
| INTO TABLE hivetable
""".stripMargin)
sql(
s"""
| CREATE TABLE IF NOT EXISTS carbon_table (
| id int,
| label boolean,
| name string,
| image binary,
| autoLabel boolean)
| using carbon
""".stripMargin)
sql("insert into carbon_table select * from hivetable")
sqlContext.udf.register("decodeHex", (str: String) =>
Hex.decodeHex(str.toList.map(_.toInt.toBinaryString).mkString.toCharArray))
sqlContext.udf.register("unHexValue", (str: String) =>
org.apache.spark.sql.catalyst.expressions.Hex
.unhex(str.toList.map(_.toInt.toBinaryString).mkString.getBytes))
sqlContext.udf.register("decodeBase64", (str: String) => Base64.decodeBase64(str.getBytes()))
val udfHexResult = sql("SELECT decodeHex(image) FROM carbon_table")
val unHexResult = sql("SELECT unHexValue(image) FROM carbon_table")
checkAnswer(udfHexResult, unHexResult)
val udfBase64Result = sql("SELECT decodeBase64(image) FROM carbon_table")
val unbase64Result = sql("SELECT unbase64(image) FROM carbon_table")
checkAnswer(udfBase64Result, unbase64Result)
val carbonResult = sql("SELECT * FROM carbon_table")
val hiveResult = sql("SELECT * FROM hivetable")
assert(3 == carbonResult.collect().length)
assert(3 == hiveResult.collect().length)
checkAnswer(hiveResult, carbonResult)
carbonResult.collect().foreach { each =>
if (2 == each.get(0)) {
assert("\u0001history\u0002".equals(new String(each.getAs[Array[Byte]](3))))
} else if (1 == each.get(0)) {
assert("\u0001education\u0002".equals(new String(each.getAs[Array[Byte]](3))))
} else if (3 == each.get(0)) {
assert("".equals(new String(each.getAs[Array[Byte]](3)))
|| "\u0001biology\u0002".equals(new String(each.getAs[Array[Byte]](3))))
} else {
assert(false)
}
}
sql("CREATE TABLE hivetable2 AS SELECT * FROM carbon_table")
sql("CREATE TABLE carbon_table2 USING CARBON AS SELECT * FROM hivetable")
val carbonResult2 = sql("SELECT * FROM carbon_table2")
val hiveResult2 = sql("SELECT * FROM hivetable2")
checkAnswer(hiveResult2, carbonResult2)
checkAnswer(carbonResult, carbonResult2)
checkAnswer(hiveResult, hiveResult2)
assert(3 == carbonResult2.collect().length)
assert(3 == hiveResult2.collect().length)
sql("INSERT INTO hivetable2 SELECT * FROM carbon_table")
sql("INSERT INTO carbon_table2 SELECT * FROM hivetable")
val carbonResult3 = sql("SELECT * FROM carbon_table2")
val hiveResult3 = sql("SELECT * FROM hivetable2")
checkAnswer(carbonResult3, hiveResult3)
assert(6 == carbonResult3.collect().length)
assert(6 == hiveResult3.collect().length)
}
test("filter for hive and carbon") {
sql("DROP TABLE IF EXISTS hiveTable")
sql("DROP TABLE IF EXISTS carbon_table")
sql(
s"""
| CREATE TABLE IF NOT EXISTS hivetable (
| id int,
| label boolean,
| name string,
| image binary,
| autoLabel boolean)
| row format delimited fields terminated by ','
""".stripMargin)
sql("insert into hivetable values(1,true,'Bob','binary',false)")
sql("insert into hivetable values(2,false,'Xu','test',true)")
sql(
s"""
| CREATE TABLE IF NOT EXISTS carbon_table (
| id int,
| label boolean,
| name string,
| image binary,
| autoLabel boolean)
| using carbon
""".stripMargin)
sql("insert into carbon_table values(1,true,'Bob','binary',false)")
sql("insert into carbon_table values(2,false,'Xu','test',true)")
// filter with equal
val hiveResult = sql("SELECT * FROM hivetable where image=cast('binary' as binary)")
val carbonResult = sql("SELECT * FROM carbon_table where image=cast('binary' as binary)")
checkAnswer(hiveResult, carbonResult)
assert(1 == carbonResult.collect().length)
carbonResult.collect().foreach { each =>
assert(1 == each.get(0))
assert("binary".equals(new String(each.getAs[Array[Byte]](3))))
}
// filter with non string
val exception = intercept[Exception] {
sql("SELECT * FROM carbon_table where image=binary").collect()
}
assert(exception.getMessage.contains("cannot resolve '`binary`' given input columns"))
// filter with not equal
val hiveResult3 = sql("SELECT * FROM hivetable where image!=cast('binary' as binary)")
val carbonResult3 = sql("SELECT * FROM carbon_table where image!=cast('binary' as binary)")
checkAnswer(hiveResult3, carbonResult3)
assert(1 == carbonResult3.collect().length)
carbonResult3.collect().foreach { each =>
assert(2 == each.get(0))
assert("test".equals(new String(each.getAs[Array[Byte]](3))))
}
// filter with in
val hiveResult4 = sql("SELECT * FROM hivetable where image in (cast('binary' as binary))")
val carbonResult4 = sql("SELECT * FROM carbon_table where image in (cast('binary' as binary))")
checkAnswer(hiveResult4, carbonResult4)
assert(1 == carbonResult4.collect().length)
carbonResult4.collect().foreach { each =>
assert(1 == each.get(0))
assert("binary".equals(new String(each.getAs[Array[Byte]](3))))
}
// filter with not in
val hiveResult5 = sql("SELECT * FROM hivetable where image not in (cast('binary' as binary))")
val carbonResult5 = sql(
"SELECT * FROM carbon_table where image not in (cast('binary' as binary))")
checkAnswer(hiveResult5, carbonResult5)
assert(1 == carbonResult5.collect().length)
carbonResult5.collect().foreach { each =>
assert(2 == each.get(0))
assert("test".equals(new String(each.getAs[Array[Byte]](3))))
}
}
test("Spark DataSource don't support update, delete") {
sql("DROP TABLE IF EXISTS carbon_table")
sql("DROP TABLE IF EXISTS carbon_table2")
sql(
s"""
| CREATE TABLE IF NOT EXISTS carbon_table (
| id int,
| label boolean,
| name string,
| binaryField binary,
| autoLabel boolean)
| using carbon
""".stripMargin)
sql("insert into carbon_table values(1,true,'Bob','binary',false)")
sql("insert into carbon_table values(2,false,'Xu','test',true)")
val carbonResult = sql("SELECT * FROM carbon_table")
carbonResult.collect().foreach { each =>
if (1 == each.get(0)) {
assert("binary".equals(new String(each.getAs[Array[Byte]](3))))
} else if (2 == each.get(0)) {
assert("test".equals(new String(each.getAs[Array[Byte]](3))))
} else {
assert(false)
}
}
var exception = intercept[Exception] {
sql("UPDATE carbon_table SET binaryField = 'binary2' WHERE id = 1").collect()
}
assert(exception.getMessage.contains("mismatched input 'UPDATE' expecting")
|| exception.getMessage.contains("UPDATE TABLE is not supported temporarily."))
exception = intercept[Exception] {
sql("DELETE FROM carbon_table WHERE id = 1").collect()
}
assert(exception.getMessage.contains("only CarbonData table support delete operation")
|| exception.getMessage.contains("DELETE TABLE is not supported temporarily."))
}
test("test load on parquet table") {
sql("drop table if exists parquet_table")
sql("create table parquet_table(empno int, empname string, projdate Date) using parquet")
var ex = intercept[AnalysisException] {
sql(s"""LOAD DATA local inpath '$resourcesPath/data_big.csv' INTO TABLE parquet_table
""".stripMargin)
}
assert(ex.getMessage
.contains("LOAD DATA is not supported for datasource tables: `default`.`parquet_table`"))
ex = intercept[AnalysisException] {
sql(s"""LOAD DATA local inpath '$resourcesPath/data_big.csv' INTO TABLE parquet_table
|OPTIONS('DELIMITER'= ',', 'QUOTECHAR'= '"')""".stripMargin)
}
assert(ex.getMessage.contains("mismatched input"))
sql("drop table if exists parquet_table")
}
test("test array of binary data type with sparkfileformat ") {
sql("drop table if exists carbon_table")
sql("drop table if exists parquet_table")
sql("create table if not exists carbon_table(id int, label boolean, name string," +
"binaryField array<binary>, autoLabel boolean) using carbon")
sql("insert into carbon_table values(1,true,'abc',array('binary'),false)")
sql("create table if not exists parquet_table(id int, label boolean, name string," +
"binaryField array<binary>, autoLabel boolean) using parquet")
sql("insert into parquet_table values(1,true,'abc',array('binary'),false)")
checkAnswer(sql("SELECT binaryField[0] FROM carbon_table"),
sql("SELECT binaryField[0] FROM parquet_table"))
sql("drop table if exists carbon_table")
sql("drop table if exists parquet_table")
}
test("test struct of binary data type with sparkfileformat ") {
sql("drop table if exists carbon_table")
sql("drop table if exists parquet_table")
sql("create table if not exists carbon_table(id int, label boolean, name string," +
"binaryField struct<b:binary>, autoLabel boolean) using carbon")
sql("insert into carbon_table values(1,true,'abc',named_struct('b','binary'),false)")
sql("create table if not exists parquet_table(id int, label boolean, name string," +
"binaryField struct<b:binary>, autoLabel boolean) using parquet")
sql("insert into parquet_table values(1,true,'abc',named_struct('b','binary'),false)")
checkAnswer(sql("SELECT binaryField.b FROM carbon_table"),
sql("SELECT binaryField.b FROM parquet_table"))
sql("drop table if exists carbon_table")
sql("drop table if exists parquet_table")
}
test("test map of binary data type with sparkfileformat") {
sql("drop table if exists carbon_table")
sql("drop table if exists parquet_table")
sql("create table if not exists parquet_table(id int, label boolean, name string," +
"binaryField map<int, binary>, autoLabel boolean) using parquet")
sql("insert into parquet_table values(1,true,'abc',map(1,'binary'),false)")
sql("create table if not exists carbon_table(id int, label boolean, name string," +
"binaryField map<int, binary>, autoLabel boolean) using carbon")
sql("insert into carbon_table values(1,true,'abc',map(1,'binary'),false)")
checkAnswer(sql("SELECT binaryField[1] FROM carbon_table"),
sql("SELECT binaryField[1] FROM parquet_table"))
sql("drop table if exists carbon_table")
sql("drop table if exists parquet_table")
}
test("test map of array and struct binary data type with sparkfileformat") {
sql("drop table if exists carbon_table")
sql("drop table if exists parquet_table")
sql("create table if not exists parquet_table(id int, label boolean, name string," +
"binaryField1 map<int, array<binary>>, binaryField2 map<int, struct<b:binary>> ) " +
"using parquet")
sql("insert into parquet_table values(1,true,'abc',map(1,array('binary')),map(1," +
"named_struct('b','binary')))")
sql("create table if not exists carbon_table(id int, label boolean, name string," +
"binaryField1 map<int, array<binary>>, binaryField2 map<int, struct<b:binary>> ) " +
"using carbon")
sql("insert into carbon_table values(1,true,'abc',map(1,array('binary')),map(1," +
"named_struct('b','binary')))")
checkAnswer(sql("SELECT binaryField1[1][1] FROM carbon_table"),
sql("SELECT binaryField1[1][1] FROM parquet_table"))
checkAnswer(sql("SELECT binaryField2[1].b FROM carbon_table"),
sql("SELECT binaryField2[1].b FROM parquet_table"))
sql("drop table if exists carbon_table")
}
test("test of array of struct and struct of array of binary data type with sparkfileformat") {
sql("drop table if exists carbon_table")
sql("drop table if exists parquet_table")
sql("create table if not exists parquet_table(id int, label boolean, name string," +
"binaryField1 array<struct<b1:binary>>, binaryField2 struct<b2:array<binary>> ) " +
"using parquet")
sql("insert into parquet_table values(1,true,'abc',array(named_struct('b1','binary'))," +
"named_struct('b2',array('binary')))")
sql("create table if not exists carbon_table(id int, label boolean, name string," +
"binaryField1 array<struct<b1:binary>>, binaryField2 struct<b2:array<binary>> ) " +
"using carbon")
sql("insert into carbon_table values(1,true,'abc',array(named_struct('b1','binary'))," +
"named_struct('b2',array('binary')))")
checkAnswer(sql("SELECT binaryField1[1].b1 FROM carbon_table"),
sql("SELECT binaryField1[1].b1 FROM parquet_table"))
checkAnswer(sql("SELECT binaryField2.b2[0] FROM carbon_table"),
sql("SELECT binaryField2.b2[0] FROM parquet_table"))
sql("drop table if exists carbon_table")
sql("drop table if exists parquet_table")
}
}
```
|
```c++
#include "bucket_ownership_calculator.h"
#include <vespa/document/bucket/bucket.h>
#include <vespa/vdslib/distribution/distribution.h>
#include <vespa/vdslib/state/clusterstate.h>
namespace storage::distributor {
namespace {
uint64_t superbucket_from_id(const document::BucketId& id, uint16_t distribution_bits) noexcept {
// The n LSBs of the bucket ID contain the superbucket number. Mask off the rest.
return id.getRawId() & ~(UINT64_MAX << distribution_bits);
}
}
bool
BucketOwnershipCalculator::this_distributor_owns_bucket(const document::BucketId& bucket_id) const
{
// TODO "no distributors available" case is the same for _all_ buckets; cache once in constructor.
// TODO "too few bits used" case can be cheaply checked without needing exception
try {
const auto bits = _state.getDistributionBitCount();
const auto this_superbucket = superbucket_from_id(bucket_id, bits);
if (_cached_decision_superbucket == this_superbucket) {
return _cached_owned;
}
uint16_t distributor = _distribution.getIdealDistributorNode(_state, bucket_id, "uim");
_cached_decision_superbucket = this_superbucket;
_cached_owned = (distributor == _this_node_index);
return _cached_owned;
} catch (lib::TooFewBucketBitsInUseException&) {
// Ignore; implicitly not owned
} catch (lib::NoDistributorsAvailableException&) {
// Ignore; implicitly not owned
}
return false;
}
}
```
|
Theatr Genedlaethol Cymru is the Welsh language national theatre of Wales, founded in 2003.
The company is known for regularly touring a diverse range of theatre across the length and breadth Wales, including new writing, musicals, site-specific work, and classic plays.
It has a large presence at the National Eisteddfod of Wales annually, usually presenting new plays. Recent work has been nominated in the UK Theatre Awards.
The company developed a language access app, Sibrwd, for audience members with various levels of fluency in Welsh. By means of a voice in the ear and text on screen, the app conveys in English what is being said on stage, and is available to use on mobile phones.
Theatr Genedlaethol Cymru shapes a distinctive identity for drama in Welsh while also opening it up to outside linguistic and dramatic influences. It has a counterpart in National Theatre Wales, the English language national theatre company of Wales, founded in 2009. Together the two theatre companies provide a national platform for drama in Wales.
Artistic Directors
Cefin Roberts (2003-2010)
Arwel Gruffydd (2011-2022)
Steffan Donnelly (2022-present)
References
National theatres
Theatre companies in Wales
|
Haputale Divisional Secretariat is a Divisional Secretariat of Badulla District, of Uva Province, Sri Lanka.
References
Divisional Secretariats Portal
Divisional Secretariats of Badulla District
|
Myth Directions is a 1982 fantasy novel by American writer Robert Asprin, the third novel in the MythAdventures series.
Plot synopsis
Tananda wanted to get Aahz a birthday present, so she decides to rope Skeeve in to help find her a unique present for Skeeve's mentor. After travelling through several dimensions Skeeve hasn't managed to eat anything on the journey so Tananda takes him to Jahk, a dimension where the people are either too skinny or are overweight. When they arrive in Jahk they find themselves in the middle of a celebration, which they later find out that Ta-hoe (the city where they are) has recently won "The Big Game". When Tananda sees the trophy she has a eureka moment and decides to steal it. But everything is not all that it seems. When they implement their plan they find the trophy gone and the alarms sounded! Skeeve manages to escape back to Klah (his home dimension) but, Tananda gets captured. After a brief explanation to Aahz the two of them head to Jahk to rescue Tanda.
They arrive back in Jahk and with the help of a native guide called Griffin they found out what happened to the trophy. The preparations for the upcoming war between Tahoe and Veygus (the city who Ta-hoe competes against in "The Big Game") seemed stupid to Skeeve, but Aahz was showing more respect than seemed imaginable towards the Jahks. They also found out that the magician who was holding Tananda captive. was actually Quigley (from Another Fine Myth). Unfortunately Skeeve makes a rash promise which makes escape for Tananda a lot harder.
After that, Aahz and Skeeve went to Veygus to steal the trophy back. They went to the Veygus magician Massha to see what the security was like for the trophy. When they found out that they could only steal the trophy when it was on parade they created a diversion to make sure no-one was around when the stole the trophy.
After stealing the trophy Skeeve finally told Aahz why they tried to steal the trophy in the first place. When Aahz finds out he becomes very reluctant to part with it, but it gave him a plan. They beat the Jahks at their own game... literally.
After pulling a team together they play "The Big Game" against Ta-hoe and Veygus. In the game after Aahz "gets knocked out cold" Skeeve manages to get Tananda to play so they win 1 and a half to 1 and a half to 1.
Reception
Dave Langford reviewed Myth Directions for White Dwarf #40, and stated that "It's a harmless and quite likeable little book, and undemanding fantasy romp: Asprin does seem to be improving."
Reviews
Review by Cynthia Haldeman (1981) in Shadows of ... Science Fiction and Fantasy Magazine, #5 Fall 1981, (1981)
Review by Roger C. Schlobin (1983) in Fantasy Newsletter, #57 March 1983
Review by Robert Coulson (1983) in Amazing Science Fiction, July 1983
Review by Tom Easton (1983) in Analog Science Fiction/Science Fact, August 1983
Review by Ken Lake (1991) in Paperback Inferno, #89
References
Sources
http://www.mythadventures.net/
http://www.fantasticfiction.co.uk/a/robert-asprin/myth-directions.htm
Novels by Robert Asprin
1982 American novels
American fantasy novels
|
Luís Alberto Maguito Vilela (24 January 1949 – 13 January 2021) was a Brazilian politician who served as a Senator, and was mayor of Goiânia.
Biography
Vilela was a Brazilian politician and lawyer. He was Governor of Goiás from 1995 to 1998. He was also a member of the Brazilian Senate from 1999 to 2007. For a short time in January 2021, Vilela was Mayor of Goiânia.
He died on 13 January 2021, aged 71 in São Paulo from COVID-19 during the COVID-19 pandemic in São Paulo.
References
|-
|-
|-
1949 births
2021 deaths
Deaths from the COVID-19 pandemic in São Paulo (state)
Mayors of Goiânia
|
Krzysztof Ludwik Węgrzyn (born 1950) is a Polish businessman, engineer and civil servant who served as the Deputy Defense Minister between 1996–1997.
Life and career
In 1974, he graduated with a degree in organic engineering at the Tadeusz Kościuszko University of Technology in Kraków. He enjoyed success in his field of chemistry and claims to have taken out several "profitable" chemistry-related patents over the years. Wegrzyn served on the board of directors of Gamrat SA, one of Poland's largest manufacturers of plastics, and has also served as the president of Organika Vilniu in Lithuania. In 1993, became the founder and the first president of the Union of Employers of Defense and Aviation Industry Enterprises.
From 10 May 10, 1996 to 17 November 1997, he served as Undersecretary of State in the Ministry of National Defence, responsible for armaments and infrastructure. As deputy defense minister, he played a key role in preparing Poland to join the North Atlantic Treaty Organization (NATO) by buying weapons from the Western nations. His notable act as deputy defense minister was to buy 29 PT-91 Twardy tanks from the state-owned defense company Bumar. In 1996, during a visit to the United States to purchase American aircraft for the Polish Air Force, he stated: "We simply cannot afford to buy arms in such a way that we just take cash out of the bank. The euphoria of suddenly getting modern aircraft has subsided. We have now become very calculating." In 1997, he stated it would cost the Treasury some 10 billion zlotys per year for the next five years to make the Polish armed forces ready for NATO, but that he had only a tenth of what was required, thus requiring careful investments. Wegrzyn stated his focus was on improving command and control in the armed forces by buying communications gear compatible with other NATO forces. After leaving public office, he became a manager in TopGaN, a company that produces specialized lasers. In 2005, Wegrzyn was named in a public letter by the Sejm MP Zygmunt Wrzodak concerning allegations of financial improprieties.
Wegrzyn is active in the defense industry and has attracted controversy by investing in Rosevar Holdings, a company registered in Cyprus, which was managed by the arms dealer Pierre Dadak. Besides for being Dadak's business partner, Wegrzyn has been described in the media as his patron who introduced him to influential figures. From October 2014 onward, Dadak who lived in Ibiza was under investigation by the Spanish National Police Corps under the suspicion of fraud, money laundering and gunrunning into South Sudan (which placed under a European Union embargo in 2011). Dadak's phone was taped and police records showed that he often called Wegrzyn. In one phone call, Dadak told Wegrzyn "The merchandise is there and we can act" and spoke about "cars and ammunition". In an interview, Wegrzyn denied that he still doing business with Dadak or being involved in gunrunning into the South Sudanese civil war; when asked what the phone calls were about, Wegrzyn claimed not to remember.
In March 2017, an investigation was started concerning allegations of internal theft at Bumar. The investigators believe that the stolen arms may have been sold by Rosevar Holdings. The investigators received threatening text messages warning both they and their families would be killed if they did not cease the investigation. The investigators believe that the stolen arms may have been sold by Rosevar Holdings. Wegrzyn has been described in media reports as an associate of Dadak with Newsweek Polska writing: "Throughout Pierre Dadak's activity in Poland and his work for Bumar, Węgrzyn was somewhere next to him. Always in the shadows". Wegrzyn stated he went into business with Dadak "to help Polish industry conquer new markets", but he claimed he only provided him with "consulting services".
Books
References
Living people
1950 births
Tadeusz Kościuszko University of Technology alumni
Polish businesspeople
Polish civil servants
|
```java
/*
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
*
* path_to_url
*
* Unless required by applicable law or agreed to in writing, software
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/
package org.apache.rocketmq.tieredstore.stream;
import java.nio.ByteBuffer;
import java.util.List;
import org.apache.rocketmq.tieredstore.common.FileSegmentType;
public class FileSegmentInputStreamFactory {
public static FileSegmentInputStream build(
FileSegmentType fileType, long offset, List<ByteBuffer> bufferList, ByteBuffer byteBuffer, int length) {
if (bufferList == null) {
throw new IllegalArgumentException("bufferList is null");
}
switch (fileType) {
case COMMIT_LOG:
return new CommitLogInputStream(fileType, offset, bufferList, byteBuffer, length);
case CONSUME_QUEUE:
return new FileSegmentInputStream(fileType, bufferList, length);
case INDEX:
if (bufferList.size() != 1) {
throw new IllegalArgumentException("buffer block size must be 1 when file type is IndexFile");
}
return new FileSegmentInputStream(fileType, bufferList, length);
default:
throw new IllegalArgumentException("file type not supported");
}
}
}
```
|
```javascript
(function (factory) {
/* global define */
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module.
define(['jquery'], factory);
} else if (typeof module === 'object' && module.exports) {
// Node/CommonJS
module.exports = factory(require('jquery'));
} else {
// Browser globals
factory(window.jQuery);
}
}(function ($) {
// Extends plugins for adding hello.
// - plugin is external module for customizing.
$.extend($.summernote.plugins, {
/**
* @param {Object} context - context object has status of editor.
*/
'hello': function (context) {
var self = this;
// ui has renders to build ui elements.
// - you can create a button with `ui.button`
var ui = $.summernote.ui;
// add hello button
context.memo('button.hello', function () {
// create button
var button = ui.button({
contents: '<i class="fa fa-child"/> Hello',
tooltip: 'hello',
click: function () {
self.$panel.show();
self.$panel.hide(500);
// invoke insertText method with 'hello' on editor module.
context.invoke('editor.insertText', 'hello');
}
});
// create jQuery object from button instance.
var $hello = button.render();
return $hello;
});
// This events will be attached when editor is initialized.
this.events = {
// This will be called after modules are initialized.
'summernote.init': function (we, e) {
console.log('summernote initialized', we, e);
},
// This will be called when user releases a key on editable.
'summernote.keyup': function (we, e) {
console.log('summernote keyup', we, e);
}
};
// This method will be called when editor is initialized by $('..').summernote();
// You can create elements for plugin
this.initialize = function () {
this.$panel = $('<div class="hello-panel"/>').css({
position: 'absolute',
width: 100,
height: 100,
left: '50%',
top: '50%',
background: 'red'
}).hide();
this.$panel.appendTo('body');
};
// This methods will be called when editor is destroyed by $('..').summernote('destroy');
// You should remove elements on `initialize`.
this.destroy = function () {
this.$panel.remove();
this.$panel = null;
};
}
});
}));
```
|
```c++
/// Source : path_to_url
/// Author : liuyubobobo
/// Time : 2019-02-19
#include <iostream>
#include <vector>
#include <cmath>
#include <unordered_map>
using namespace std;
/// Memory Search
/// Divide corresponding factorial number to avoid repeating counting :-)
/// Time Complexity: O(n*2^n)
/// Space Complexity: O(n*2^n)
class Solution {
private:
int n;
public:
int numSquarefulPerms(vector<int>& A) {
n = A.size();
vector<vector<int>> g(n);
for(int i = 0; i < n; i ++)
for(int j = i + 1; j < n; j ++)
if(perfectSquare(A[i] + A[j])){
g[i].push_back(j);
g[j].push_back(i);
}
int res = 0;
vector<vector<int>> dp(n, vector<int>(1 << n, -1));
for(int i = 0; i < n; i ++)
res += dfs(g, i, 1 << i, dp);
unordered_map<int, int> freq;
for(int e: A) freq[e] ++;
for(const pair<int, int>& p: freq) res /= fac(p.second);
return res;
}
private:
int dfs(const vector<vector<int>>& g,
int index, int visited, vector<vector<int>>& dp){
if(visited == (1 << n) - 1)
return 1;
if(dp[index][visited] != -1) return dp[index][visited];
int res = 0;
for(int next: g[index])
if(!(visited & (1 << next))){
visited += (1 << next);
res += dfs(g, next, visited, dp);
visited -= (1 << next);
}
return dp[index][visited] = res;
}
int fac(int x){
if(x == 0 || x == 1) return 1;
return x * fac(x - 1);
}
bool perfectSquare(int x){
int t = sqrt(x);
return t * t == x;
}
};
int main() {
vector<int> A1 = {1, 17, 8};
cout << Solution().numSquarefulPerms(A1) << endl;
// 2
vector<int> A2 = {2, 2, 2};
cout << Solution().numSquarefulPerms(A2) << endl;
// 1
vector<int> A3(12, 0);
cout << Solution().numSquarefulPerms(A3) << endl;
// 1
return 0;
}
```
|
Ballymoreen, or Ballymurreen (), is a townland in the civil parish of the same name in County Tipperary in Ireland. It is within the historical barony of Eliogarty in the south-east corner of North Tipperary, between Littleton and Horse and Jockey. Evidence of ancient settlement in Ballymurreen include a number of ringfort sites, a ruined church and graveyard dating to at least the 17th century, and the former site of a tower house and bawn. The townland, which is in area, had a population of 65 as of the 2011 census.
References
Townlands of County Tipperary
Eliogarty
|
John Grant Sangster (17 November 1928 – 26 October 1995) was an Australian jazz composer, arranger and multi-instrumentalist. He is best known as a composer although he also worked with Graeme Bell, Humphrey Lyttelton and Don Burrows. His solo albums include The Lord of the Rings-inspired works starting with The Hobbit Suite in 1973.
Early years
John Grant Sangster was born in 1928 in the Melbourne suburb of Sandringham as the only child of John Sangster (1896–1975), a clerk and World War II soldier, and Isabella Dunn (née Davidson, later Pringle) Sangster (1890–1946). He attended primary schools in Sandringham and Vermont, and then Box Hill High School. While at high school he taught himself to play trombone and, with a friend, Sid Bridle, formed a band.
In 1946 he started a civil engineering course at Melbourne Technical School. In September of that year Sangster was charged with the murder and manslaughter of his mother, Isabella Sangster. The incident was reported in newspapers, The Suns correspondent described how police found her, "lying on the floor of a lounge-room. A blood-stained axe was found near the back door – and there were signs of a struggle."
He was tried at the Supreme Court of Victoria in December and was found not guilty of both charges by the jury. A reporter for The Sydney Morning Herald observed, "Accused had told the Court that when his mother locked up his clothes so that he could not go out he broke the door open with an axe. His mother swung a broom at him and he held up his arms to ward off the blow. In doing so, he knocked his mother on the head with the axe."
Professional career
In 1948 Sangster performed at the third annual Australian Jazz Convention, held in Melbourne. By the following year he led his own ensemble, John Sangster's Jazz Six, which included Ken Evans on trombone. Sangster provided trombone for Graeme Bell and his Australian Jazz Band, later taking up the cornet and then the drums. He toured several times with Bell from 1950 to 1955, playing in Australia, the United Kingdom, Germany, Japan and Korea. In the late 1950s he began playing the vibraphone, which he found "combined the percussive qualities of the drums with the melodic capability of the trumpet" (Bisset, 1979). He played with Don Burrows in the early 1960s. Sangster formed his own quartet and experimented with group improvisatory jazz, after he became interested in the music of such musicians as Sun Ra and Archie Shepp. He rejoined the Don Burrows Group briefly in 1967 when they represented Australia at Expo 1967 in Montreal, Quebec, Canada.
In 1969 Sangster began to work with rock musicians and he joined the expanded lineup of the Australian progressive rock group Tully, who provided the musical backing for the original Australian production of the rock musical Hair. He performed and recorded with Tully and their successors, Luke's Walnut, throughout the two years he played in Hair. In 1970 he re-joined the Burrows group, this time for Expo 1970 in Osaka, Japan.
In the 1970s Sangster released a series of popular The Lord of the Rings inspired albums that started with The Hobbit Suite in 1973. He was also the composer of a large number of scores for television shows, documentaries, films, and radio slots (including Hanna-Barbera's The Funky Phantom). In 1988, Sangster published his autobiography, Seeing the Rafters.
He died in Brisbane, Queensland on 26 October 1995 at age 66.
Discography
Albums
The Trip (1967)
The Joker is Wild (1968, Festival Records)
Ahead of Hair (1969, Festival Records)
Marinetti (Original Soundtrack, 1969) reissued 2009 Roundtable Records
Once Around the Sun (Original Soundtrack, 1970) reissued 2009 Roundtable Records
Australia and all that Jazz volume one (1971, Cherry Pie Records)
The Hobbit Suite (1973, Swaggie Records)
Paradise volume one (1973, Trinity Records)
Lord of the Rings volume one (1975) reissued 2002 by Move Records - AUS #93
Lord of the Rings volume two (1976) reissued 2004 by Move Records
Australia and all that Jazz volume two (1976, Cherry Pie Records)
Lord of the Rings volume three (1977) reissued 2005 by Move Records
For Leon Bismark volume one (1977, Swaggie Records)
Double Vibes: Hobbit (1977, Swaggie Records)
Landscapes of Middle Earth (1978) reissued 2006 by Move Records
Uttered Nonsense - The Owl and the Pussycat (1980, Rain-Forest Records) reissued by Move Records
Fluteman (1982, Rain-Forest Records) reissued 2013 by Move Records
Sources
Bisset, Andrew, "Black Roots, White Flowers" (1979), Golden Press,
Carr, Ian; Fairweather, Digby; Priestley, Brian, "Jazz: The Rough Guide" (1995), Penguin, .
Sangster, John, "Seeing the rafters: the life and times of an Australian jazz musician" (1988), Penguin,
Sharpe, John, "Don't worry baby, they'll swing their arses off" (2001), ScreenSound Australia,
References
External links
Obituary
John Sangster at IMDb
1928 births
1995 deaths
APRA Award winners
Australian jazz composers
Male jazz composers
Australian jazz drummers
Male drummers
Australian jazz vibraphonists
Musicians from Melbourne
Australian music arrangers
20th-century Australian musicians
20th-century drummers
20th-century Australian male musicians
20th-century jazz composers
|
```shell
Tracking shorthands
Pulling a remote branch
The golden rule of rebasing
Checkout the previous branch
Cherry-pick a commit
```
|
Moniaive ( 'monny-IVE'; , "The Holy Moor") is a village in the Parish of Glencairn, in Dumfries and Galloway, southwest Scotland. It stands on the Cairn and Dalwhat Waters, north-west of the town of Dumfries. Moniaive has been named best overall small village in the Nithsdale in Bloom competition five times in a row, from 2006 to 2011. The village streetscape was featured in the 2002 Peter Mullan film The Magdalene Sisters. In 2004, The Times described the village as one of the 'coolest' in Britain.
History
Moniaive has existed as a village as far back as the 10th century. On 4 July 1636 King Charles I granted a charter in favour of William, Earl of Dumfries, making Moniaive a 'free Burgh of Barony'. With this charter came the rights to set up a market cross and tolbooth, to hold a weekly market on Tuesday and two annual fairs each of three days duration. Midsummer Fair was from 16 June and Michaelmas Fair on the last day of September.
Covenanting
In the 17th century, Moniaive became the refuge for the Covenanters, a group of Presbyterian nonconformists who rebelled at having the Episcopalian religion forced on them by the last three Stuart kings, Charles I, Charles II and James VII. There is a monument off the Ayr Road to James Renwick, a Covenanter leader born in Moniaive, and who aged 26 was the last Covenanter to be executed in Edinburgh.
James Paterson
The Scottish artist James Paterson, a founder member of 'The Glasgow Boys', settled in Moniaive in 1884 and stayed for 22 years. He painted many local scenes including "The Last Turning" – a view of a woman approaching the village on the lane on the western side of the old millpond (now drained) in the Dalwhat Valley – now displayed in the Kelvingrove Art Gallery and Museum. A James Paterson museum existed within the village until 2005 displaying photographs and memorabilia from the collection of his granddaughter, Anne Paterson-Wallace.
Cairn Valley Light Railway
The Cairn Valley Light Railway was opened from Dumfries in 1905 as a subsidiary company of the Glasgow and South Western Railway. Plans initially had involved developing Moniaive into a resort due to the countryside being very scenic and peaceful. Passenger services were suspended as a wartime economy on 3 May 1943 and to all traffic on 4 August 1947.
Local economy
The local economy is dominated by sheep and some cattle farming as well as forestry. The area has a large self-employed community including writers, artists, graphic designers, historical interpretation services, clothing designers, aromatherapists, stained glass workers, a wine importing business, a chocolatier, computer repairs, garden and landscaping services, plant nursery, and child care. There is a large general store including a post office counter, a garage, a cafe, a chocolatier, an Italian restaurant, several artist studios, a primary school, a guest house and two hotels with bars and restaurants, one with accommodation, and two village halls.
A bi-monthly newspaper, called the Glencairn Gazette, is produced by volunteers and distributed free to residents.
Notable people
Michael Chaplin, the son of Charlie Chaplin, eloped to and married in Moniaive as a teenager
Rumer Godden, writer, lived in Moniaive
Alex Kapranos of rock band Franz Ferdinand bought the house in Moniaive previously owned by James Paterson
Alan Grant, writer of Judge Dredd and Batman
John Inglis (missionary)
Joanna Lumley also has a home near here
Rab Smith, ex-professional darts player
Festivals
In 2015 Moniaive reinvented itself as Moniaive Festival Village and went on to win a Creative Place Award from Creative Scotland. The village is home to a number of festivals that are held every year including; the Moniaive Folk Festival, the Moniaive Michaelmas Bluegrass Festival, Moniaive Comic Festival, the Scottish Autoharp Weekend, the Moniaive Horse Show, the Moniaive and District Arts Association annual exhibition, the Glencairn and Tynron Horticultural Society show and the Moniaive Gala. In 2016 the Moniaive Comic Book Festival was resurrected as part of the Creative Place award programme, it successfully held its second comic festival in 2017.
Cairnhead Community Forest and Striding Arches
Cairnhead Community Forest is a Scottish charity formed in 1998 to encourage and enable community participation through a working partnership with its owner Forestry and Land Scotland. There are three arches by artist Andy Goldsworthy around Cairnhead on Bail Hill, Benbrack and Colt Hill. Each arch stands just under four metres high, with a span of about seven metres, and consists of 31 blocks of hand-dressed red sandstone weighing approximately 27 tons.
The GeoDial and John Corrie Wildlife Garden
In 2009 a GeoDial was commissioned by the Geological Society of Dumfries and Galloway for the people of Moniaive to celebrate the geodiversity of the area. It stands next to the Dalwhat water in the John Corrie Wildlife Garden and riverside walk. The GeoDial has an interpretation board that identifies the rock types of the GeoDial and of the rocks that make up the stone circle that surrounds it.
Gallery
See also
Ley tunnel - Covenanter's escape tunnel
William West Neve - Architect
Cademuir International School
References
External links
Village website
The Striding Arches
The Moniaive Folk Festival
The Moniaive Michaelmas Bluegrass Festival
What's going on in Moniaive
The Moniaive GeoDial
Villages in Dumfries and Galloway
|
```yaml
ClusterName: complex.example.com
Zones:
- us-test-1a
- us-test-1b
- us-test-1c
CloudProvider: aws
NetworkCIDRs:
- 10.0.0.0/16
- 10.1.0.0/16
- 10.2.0.0/16
- 10.3.0.0/16
- 10.4.0.0/16
Networking: cni
Topology: private
Bastion: true
ControlPlaneCount: 3
NodeCount: 10
KubernetesVersion: v1.26.0
# We specify SSHAccess but _not_ AdminAccess
SSHAccess:
- 1.2.3.4/32
```
|
Sławomir Twardygrosz (born 18 April 1967 in Gorzów Wielkopolski) is a Polish former professional footballer who played as a midfielder.
Club career
Twardygrosz began his professional career with Stilon Gorzów Wielkopolski, before moving to Śląsk Wrocław where he appeared in 121 Ekstraklasa games and 28 I liga fixtures across five seasons.
Twardygrosz moved to Lech Poznań for the 1994–95 season, where he made 33 league appearances. He spent a few seasons in the lower leagues before returning to Lech where he appeared in another 10 second division games.
Honours
Lech Poznań
I liga: 2001–02
References
1967 births
Living people
Sportspeople from Gorzów Wielkopolski
Footballers from Lubusz Voivodeship
Men's association football midfielders
Polish men's footballers
Śląsk Wrocław players
Lech Poznań players
Zawisza Bydgoszcz players
RKS Radomsko players
Arka Gdynia players
Ekstraklasa players
I liga players
|
Guilty as Charged may refer to:
Guilty as Charged (Cock Sparrer album), 1994
Guilty as Charged (Culprit album), 1983
"Guilty as Charged" (song), a 2008 song by Gym Class Heroes
Guilty as Charged (film), a 1991 comedy film, directed by Sam Irvin
ECW Guilty as Charged, a professional wrestling pay-per-view event in 1999–2001
Guilty as Charged (action film)
See also
Guilt (disambiguation)
|
Bandau was a federal constituency in Sabah, Malaysia, that was represented in the Dewan Rakyat from 1969 to 2004.
The federal constituency was created in the 1966 redistribution and was mandated to return a single member to the Dewan Rakyat under the first past the post voting system.
History
It was abolished in 2004 when it was redistributed.
Representation history
State constituency
Election results
References
Defunct Sabah federal constituencies
Constituencies established in 1966
Constituencies disestablished in 2004
|
Bobby Valentino may refer to:
Bobby Valentino (American singer) (born Robert Wilson, 1980), now known as Bobby V
Bobby Valentino (album), his 2005 debut album
Bobby Valentino (British musician) (born James Beckingham), English violinist, songwriter and singer
See also
Bobby Valentín, Puerto Rican singer
Bobby Valentine, baseball player and manager
|
Bruno Bellone (born 14 March 1962) is a former French international footballer who played as a winger, and who earned 34 caps and scored two goals for France from 1981 to 1988. One of the goals was in the final of the 1984 European Championships, where France defeated Spain 2–0 to win the title. He was also in France's 1982 and 1986 World Cup squads.
Career
It was the quarter-final match against Brazil in 1986 for which he will most be remembered, for two incidents. Firstly, as the end of extra-time approached, he had a clear opportunity to score the winning goal, as he rounded Brazil goalkeeper Carlos on the edge of the penalty area. He was blocked by Carlos as he went past him, thus knocking him off balance and preventing him to reach the ball in time to score. The referee did not give a foul. In the penalty shoot-out, Bellone took France's third kick. The ball hit the post and rebounded onto Carlos and then back into the goal. Despite Brazilian protests, the goal was allowed to stand. France manager Henri Michel, confronted after the game with the possibility that Bellone's penalty should not have stood, pointed to the Carlos incident in open play and said "There was a certain justice in that". The laws of football were later clarified in favour of the referee's decision.
Personal life
Bellone had to retire from football at the age of 28, following an ankle injury. He then suffered a series of personal setbacks, losing his savings in ill-fated investments. In 1998, Radio France wrongly reported that he had died. Bellone was able to pay off his debts in 1999, after a gala match was organised in his honour in Cannes. Since 2007, he has been working as a sports technical advisor for the commune of Le Cannet. He is a father of four.
Honours
Monaco
Division: 1981–82
Coupe de France: 1984–85
France
UEFA European Championship: 1984
Artemio Franchi Cup: 1985
References
External links
1962 births
Living people
French sportspeople of Italian descent
Footballers from Toulon
French men's footballers
French beach soccer players
Men's association football forwards
France men's international footballers
1982 FIFA World Cup players
UEFA Euro 1984 players
European champions for France
1986 FIFA World Cup players
UEFA European Championship-winning players
Ligue 1 players
Ligue 2 players
ES Cannet Rocheville players
AS Monaco FC players
AS Cannes players
Montpellier HSC players
|
Popess or papess (a female pope) may refer to:
Pope Joan, mythical female pope
The High Priestess, tarot card
|
```objective-c
#ifndef PDFVIEWERCONFIG_H
#define PDFVIEWERCONFIG_H
#include "iconfig.h"
#include "webresource.h"
namespace vnotex
{
class PdfViewerConfig : public IConfig
{
public:
PdfViewerConfig(ConfigMgr *p_mgr, IConfig *p_topConfig);
void init(const QJsonObject &p_app, const QJsonObject &p_user) Q_DECL_OVERRIDE;
QJsonObject toJson() const Q_DECL_OVERRIDE;
const WebResource &getViewerResource() const;
private:
friend class MainConfig;
void loadViewerResource(const QJsonObject &p_app, const QJsonObject &p_user);
QJsonObject saveViewerResource() const;
WebResource m_viewerResource;
};
}
#endif // PDFVIEWERCONFIG_H
```
|
Ditiro Nzamani (born 29 January 2000) is a sprinter from Botswana specialising in the 400 metres. He represented his country at the 2019 World Championships without advancing from the first round. Earlier that year he won a gold medal in the 4 × 400 metres relay at the 2019 African Games.
International competitions
Personal bests
Outdoor
400 metres – 45.07 (Yaoundé 2019)
References
2000 births
Living people
Botswana male sprinters
Athletes (track and field) at the 2019 African Games
African Games gold medalists for Botswana
World Athletics Championships athletes for Botswana
African Games medalists in athletics (track and field)
|
Presidente Juscelino is a municipality in the state of Maranhão in the Northeast region of Brazil.
The municipality contains part of the Upaon-Açu/Miritiba/Alto Preguiças Environmental Protection Area, created in 1992.
See also
List of municipalities in Maranhão
References
Municipalities in Maranhão
|
Ban-de-Laveline () is a commune in the Vosges department in Grand Est in northeastern France.
See also
Communes of the Vosges department
References
External links
Official site
Communes of Vosges (department)
|
```objective-c
/*
*
* 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
*
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#ifndef __PJNATH_STUN_TRANSACTION_H__
#define __PJNATH_STUN_TRANSACTION_H__
/**
* @file stun_transaction.h
* @brief STUN transaction
*/
#include <pjnath/stun_msg.h>
#include <pjnath/stun_config.h>
#include <pj/lock.h>
PJ_BEGIN_DECL
/* **************************************************************************/
/**
* @defgroup PJNATH_STUN_TRANSACTION STUN Client Transaction
* @brief STUN client transaction
* @ingroup PJNATH_STUN_BASE
* @{
*
The @ref PJNATH_STUN_TRANSACTION is used to manage outgoing STUN request,
for example to retransmit the request and to notify application about the
completion of the request.
The @ref PJNATH_STUN_TRANSACTION does not use any networking operations,
but instead application must supply the transaction with a callback to
be used by the transaction to send outgoing requests. This way the STUN
transaction is made more generic and can work with different types of
networking codes in application.
*/
/**
* Opaque declaration of STUN client transaction.
*/
typedef struct pj_stun_client_tsx pj_stun_client_tsx;
/**
* STUN client transaction callback.
*/
typedef struct pj_stun_tsx_cb
{
/**
* This callback is called when the STUN transaction completed.
*
* @param tsx The STUN transaction.
* @param status Status of the transaction. Status PJ_SUCCESS
* means that the request has received a successful
* response.
* @param response The STUN response, which value may be NULL if
* \a status is not PJ_SUCCESS.
* @param src_addr The source address of the response, if response
* is not NULL.
* @param src_addr_len The length of the source address.
*/
void (*on_complete)(pj_stun_client_tsx *tsx,
pj_status_t status,
const pj_stun_msg *response,
const pj_sockaddr_t *src_addr,
unsigned src_addr_len);
/**
* This callback is called by the STUN transaction when it wants to send
* outgoing message.
*
* @param tsx The STUN transaction instance.
* @param stun_pkt The STUN packet to be sent.
* @param pkt_size Size of the STUN packet.
*
* @return If return value of the callback is not PJ_SUCCESS,
* the transaction will fail. Application MUST return
* PJNATH_ESTUNDESTROYED if it has destroyed the
* transaction in this callback.
*/
pj_status_t (*on_send_msg)(pj_stun_client_tsx *tsx,
const void *stun_pkt,
pj_size_t pkt_size);
/**
* This callback is called after the timer that was scheduled by
* #pj_stun_client_tsx_schedule_destroy() has elapsed. Application
* should call #pj_stun_client_tsx_destroy() upon receiving this
* callback.
*
* This callback is optional if application will not call
* #pj_stun_client_tsx_schedule_destroy().
*
* @param tsx The STUN transaction instance.
*/
void (*on_destroy)(pj_stun_client_tsx *tsx);
} pj_stun_tsx_cb;
/**
* Create an instance of STUN client transaction. The STUN client
* transaction is used to transmit outgoing STUN request and to
* ensure the reliability of the request by periodically retransmitting
* the request, if necessary.
*
* @param cfg The STUN endpoint, which will be used to retrieve
* various settings for the transaction.
* @param pool Pool to be used to allocate memory from.
* @param grp_lock Group lock to synchronize.
* @param cb Callback structure, to be used by the transaction
* to send message and to notify the application about
* the completion of the transaction.
* @param p_tsx Pointer to receive the transaction instance.
*
* @return PJ_SUCCESS on success, or the appropriate error code.
*/
PJ_DECL(pj_status_t) pj_stun_client_tsx_create( pj_stun_config *cfg,
pj_pool_t *pool,
pj_grp_lock_t *grp_lock,
const pj_stun_tsx_cb *cb,
pj_stun_client_tsx **p_tsx);
/**
* Schedule timer to destroy the transaction after the transaction is
* complete. Application normally calls this function in the on_complete()
* callback. When this timer elapsed, the on_destroy() callback will be
* called.
*
* This is convenient to let the STUN transaction absorbs any response
* for the previous request retransmissions. If application doesn't want
* this, it can destroy the transaction immediately by calling
* #pj_stun_client_tsx_destroy().
*
* @param tsx The STUN transaction.
* @param delay The delay interval before on_destroy() callback
* is called.
*
* @return PJ_SUCCESS on success, or the appropriate error code.
*/
PJ_DECL(pj_status_t)
pj_stun_client_tsx_schedule_destroy(pj_stun_client_tsx *tsx,
const pj_time_val *delay);
/**
* Destroy the STUN transaction immediately after the transaction is complete.
* Application normally calls this function in the on_complete() callback.
*
* @param tsx The STUN transaction.
*
* @return PJ_SUCCESS on success, or the appropriate error code.
*/
PJ_DECL(pj_status_t) pj_stun_client_tsx_destroy(pj_stun_client_tsx *tsx);
/**
* Stop the client transaction.
*
* @param tsx The STUN transaction.
*
* @return PJ_SUCCESS on success or PJ_EINVAL if the parameter
* is NULL.
*/
PJ_DECL(pj_status_t) pj_stun_client_tsx_stop(pj_stun_client_tsx *tsx);
/**
* Check if transaction has completed.
*
* @param tsx The STUN transaction.
*
* @return Non-zero if transaction has completed.
*/
PJ_DECL(pj_bool_t) pj_stun_client_tsx_is_complete(pj_stun_client_tsx *tsx);
/**
* Associate an arbitrary data with the STUN transaction. This data
* can be then retrieved later from the transaction, by using
* pj_stun_client_tsx_get_data() function.
*
* @param tsx The STUN client transaction.
* @param data Application data to be associated with the
* STUN transaction.
*
* @return PJ_SUCCESS on success.
*/
PJ_DECL(pj_status_t) pj_stun_client_tsx_set_data(pj_stun_client_tsx *tsx,
void *data);
/**
* Get the user data that was previously associated with the STUN
* transaction.
*
* @param tsx The STUN client transaction.
*
* @return The user data.
*/
PJ_DECL(void*) pj_stun_client_tsx_get_data(pj_stun_client_tsx *tsx);
/**
* Start the STUN client transaction by sending STUN request using
* this transaction. If reliable transport such as TCP or TLS is used,
* the retransmit flag should be set to PJ_FALSE because reliablity
* will be assured by the transport layer.
*
* @param tsx The STUN client transaction.
* @param retransmit Should this message be retransmitted by the
* STUN transaction.
* @param pkt The STUN packet to send.
* @param pkt_len Length of STUN packet.
*
* @return PJ_SUCCESS on success, or PJNATH_ESTUNDESTROYED
* when the user has destroyed the transaction in
* \a on_send_msg() callback, or any other error code
* as returned by \a on_send_msg() callback.
*/
PJ_DECL(pj_status_t) pj_stun_client_tsx_send_msg(pj_stun_client_tsx *tsx,
pj_bool_t retransmit,
void *pkt,
unsigned pkt_len);
/**
* Request to retransmit the request. Normally application should not need
* to call this function since retransmission would be handled internally,
* but this functionality is needed by ICE.
*
* @param tsx The STUN client transaction instance.
* @param mod_count Boolean flag to indicate whether transmission count
* needs to be incremented.
*
* @return PJ_SUCCESS on success, or PJNATH_ESTUNDESTROYED
* when the user has destroyed the transaction in
* \a on_send_msg() callback, or any other error code
* as returned by \a on_send_msg() callback.
*/
PJ_DECL(pj_status_t) pj_stun_client_tsx_retransmit(pj_stun_client_tsx *tsx,
pj_bool_t mod_count);
/**
* Notify the STUN transaction about the arrival of STUN response.
* If the STUN response contains a final error (300 and greater), the
* transaction will be terminated and callback will be called. If the
* STUN response contains response code 100-299, retransmission
* will cease, but application must still call this function again
* with a final response later to allow the transaction to complete.
*
* @param tsx The STUN client transaction instance.
* @param msg The incoming STUN message.
* @param src_addr The source address of the packet.
* @param src_addr_len The length of the source address.
*
* @return PJ_SUCCESS on success or the appropriate error code.
*/
PJ_DECL(pj_status_t) pj_stun_client_tsx_on_rx_msg(pj_stun_client_tsx *tsx,
const pj_stun_msg *msg,
const pj_sockaddr_t*src_addr,
unsigned src_addr_len);
/**
* @}
*/
PJ_END_DECL
#endif /* __PJNATH_STUN_TRANSACTION_H__ */
```
|
Muhammad Yusuf Khan (born Maruthanayagam Pillai) was a commandant of the British East India Company's Madras Army. He was born in a Tamil Vellalar caste family in a village called Panaiyur in British India, what is now in Nainarkoil Taluk, Ramanathapuram District of Tamil Nadu, India. He converted to Islam and was named Muhammad Yusuf Khan. He was popularly known as Khan Sahib when he became a ruler of Madurai. He became a warrior in the Arcot troops, and later a commandant for the British East India Company troops. The British and the Arcot Nawab employed him to suppress the Polygar (a.k.a. Palayakkarar) uprising in South India. Later he was entrusted to administer the Madurai country when the Madurai Nayak rule ended.
A dispute arose with the British and Arcot Nawab, and three of Khan's associates were bribed to capture him. He was captured during his morning prayer (Thozhugai) and hanged on 15 October 1764 at Sammatipuram near Madurai. Local legends state that he survived two earlier attempts at hanging, and that the Nawab feared Yusuf Khan would come back to life and so had his body dismembered and buried in different locations around Tamil Nadu.
Early years
Maruthanayagam Pillai was born in 1725 in the village of A. Panaiyoor in a Hindu family of Vellala caste, in what is now Ramanathapuram district of Tamil Nadu, India.
Philip Stanhope, 4th Earl of Chesterfield – who was in the service of Muhammed Ali Khan Wallajah, the Nawab of Arcot, for three years – mentions in his Genuine Memoirs of Asiaticus that Yusuf Khan was of royal extraction and high descent. 2nd ed, 1785, page 160 The Scots Magazine (1765, page 264) tells of a letter written by a gentleman in the East Indies to a friend in Scotland, from the military camp before Palamcottah, dated 22 October 1764 (a week after his hanging), where in Yusuf Khan is said to be 'descended from the ancient seed of that nation'. According to an ancient Tamil manuscript Pandiyamandalam, Cholamandalam Poorvika Raja Charithira Olungu, the Pandiyan dynasty in Madurai was founded by one Mathuranayaga Pandiyan (Mathuranayagam). Yusuf Khan was believed to be his descendant.
Being too restless in his youth, Yusuf Khan left his native village, and later lived with the company of his martial arts master and converted to Islam. He served the French Governor Jacques Law in Pondicherry. It was here he befriended another Frenchman, Marchand (a subordinate of Jacques Law), who later became captain of the French force under Yusuf Khan in Madurai. Whether Yusuf Khan was dismissed from this job or left on his own is unclear. He left Pondicherry, for Tanjore and joined the Tanjorean army as a sepoy (foot soldier).
Education and early career
Around this time, an English captain named Brunton educated Yusuf Khan, making him proficient in English. From Tanjore he moved to Nellore (in present-day Andhra Pradesh), to try his hand as a native physician under Mohammed Kamal, in addition to his career in the army. He moved up the ranks as Thandalgar (tax collector), Havildar and finally as a Subedar and that is how he is referred to in the English records ('Nellore Subedar' or 'Nellore'). He later enlisted under Chanda Sahib who was then the Nawab of Arcot. While staying in Arcot he fell in love with a 'Portuguese' Christian (a loose term for a person of mixed Indo-European descent or Luso-Indian) girl named Marcia or Marsha, and married her.
Carnatic wars
In 1751, there was an ongoing struggle for the throne of Arcot, between Muhammed Ali Khan Wallajah, who was the son of the previous Nawab of Arcot Anwaruddin Muhammed Khan, and his relative Chanda Sahib. The former sought the help of British and the latter the French. Chanda Sahib initially succeeded, forcing Muhammad Ali to escape to the rock-fort in Tiruchirapalli which was put under siege. Ensign Robert Clive led a small English force of 300 soldiers on a diversionary attack on Arcot, and Chanda Sahib dispatched a 10,000-strong force under his son Raza Sahib, aided by the Nellore Army of which Yusuf Khan was a Subedar. At Arcot, and later at Kaveripakkam, Chanda Sahib's son was badly defeated by Clive, and Chanda Sahib withdrew and was killed. The East India Company quickly installed Muhammad Ali as the Nawab of Arcot and most of Chanda Sahib's native forces defected to the British.
Under Major Stringer Lawrence, Yusuf Khan was trained in the European method of warfare and displayed a talent for military tactics and strategy. Over the next decade, as the British East India Company continued to fight the French East India Company in the Carnatic Wars, Yusuf Khan's guerrilla tactics, repeatedly cutting the French lines of supply, greatly hampered the French efforts.
By 1760, Yusuf Khan had reached the zenith of his career as the 'all-conquering' military commandant. (A few years earlier he had been given the rank of 'Commandant of Company's sepoys'). His greatest supporter during this period was George Pigot, the English governor in Madras. Yusuf Khan was held in very high esteem even after his death in battle and in the opinion of the British he was one of the two great military geniuses India had ever produced (the other being Hyder Ali of Mysore). Yusuf Khan was regarded for his strategy and Hyder Ali for his speed. Major General Sir. John Malcolm said of him almost fifty years later, "Yusuf Khan was by far the bravest and ablest of all the native soldiers that ever served the English in India".
Control of Madurai
When Muhammad Ali was installed as the Nawab of Arcot, he owed huge debts to the British East India Company, to whom he gave the tax collection rights of the Madurai kingdom. This brought the British into conflict with the Polygars, influential feudal administrators who were unwilling to pay taxes to the weak Nawab and refused to recognize British tax collectors. In 1755, to quell the rebellious Polygars, the Nawab and British dispatched an army to the south under Col. Heron and the Nawab's brother Mahfuz Khan, accompanied by Yusuf Khan as bodyguard. Mahfuz Khan and Heron raided the countryside. This infuriated Yusuf Khan, who lodged a complaint with the British. Heron was later court-marshalled.
There were several instances of rebellion to pay taxes to the Muslim and British invaders by the Kallars. In 1755. Colonel. Heron, led an expedition, against the Poligar of Kumaravadi, Lackenaig (Lakshmi Naik?), whose Governor Mayana had taken refugee at the temple of Kovilkudi, at Tirumbur Village. Colonel. Heron and Yusuf Khan led the soldiers in burning down the temple. In this incident, an idol revered by the Kallans were removed and held for a ransom of Five Thousand Rupees. The Kallans being unable to pay, the idol was melted down. This act of Colonel. Heron was condemned even by the Madras Council of the East India Company, as an action becoming unworthy of an English officer, and the prejudice that this act will cause among the natives about England. These events were followed by the Vellaloor Massacre, 1767 in which some 5000 kallans were massacred.
In March 1756, Yusuf Khan was sent to Madurai to collect taxes and restore order. Madurai was then under control of Barkadthullah (with the support of Hyder Ali of Mysore), who had angered the locals by allowing an old fakir to prepare to build a dargah (Islamic tomb) for himself atop the Madurai Meenakshi Temple. Yusuf Khan arrived with as little as 400 troops, defeating Barkadthullah's large army, forcing him to flee to Sivaganga Zamin with the fakir likewise expelled.
Disturbances continued to prevail in Madurai. The Kallars ravaged the country; Hyder Ali was with difficulty beaten off, and little revenue could be collected. The British failed to convince the Nawab to recall his brother, Mahfuz Khan, who may have been the cause of the trouble. Soon after, to meet their needs elsewhere, they compelled the withdrawal of Yusuf Khan. His departure was the signal for wilder anarchy, and company's garrison in Madurai could only collect taxes from the country directly under its walls in order to support themselves.
The Company later sent Yusuf Khan back, renting both Madurai and Tinnevelly to him for five lakh (500,000 rupees) per annum. Yusuf Khan restored lands to the plundered Meenakshi temple and by the spring of 1759 began cutting roads through the woods to pursue bands of armed robbers plaguing the countryside. Through the relentless pursuit and execution of criminals, he brought the country to order and the Polygars into submission. He also renovated the temple tanks, lakes and forts damaged by Hyder Ali. All of these actions increased revenue to the Nawab and British, and made himself extremely powerful.
Controversial wars with Palayakkars
During this time Yusuf Khan battled with Puli Thevar, a Polygar of Nerkattumseval (a.k.a. Nelkettaanseval, a small town to the south-west of Madurai), who was rebelling against the Nawab and the British. Yusuf Khan first convinced the Raja of Travancore to make an alliance with the Nawab, breaking his alliance with Puli Thevar. Yusuf Khan then captured some of Puli Thevar's forts where Mohammed Ali had failed. However, in 1760, Yusuf Khan suffered a minor setback in his attempt to capture Vasudevanallur, which was one of Puli Thevar's principal forts.He succeeded in his second attempt. Puli Thevar later escaped from Sankarankovil and disappeared from the pages of history for a couple of years.Puli Thevar is today recognized by the Government of Tamil Nadu as a freedom fighter.
Also during this time, Yusuf Khan successfully repulsed an attempt by the Dutch to capture of the town of Alwartirunagari and chased them back to their ships anchored at Tuticorin.
Dispute with Arcot Nawab
As Yusuf Khan's victories accumulated and his reputation grew, the Arcot Nawab became jealous and feared that he might be deposed. To reduce his power, the Nawab ordered that taxes for the region be paid directly to his administration instead of that of Yusuf Khan. British Governor Lord Pigot advised Yusuf Khan to heed the Nawab's wishes, and British traders supported this as they viewed Yusuf Khan as the Nawab's employee. Meanwhile, a scheme was planned by the Nawab and his brother Mahfuz Khan to poison Yusuf Khan.
In 1761, and again in 1762, Yusuf Khan asked to continue leasing Madura and Tinnevelly for an additional four years at seven lakhs (700,000 rupees) per annum. His offer was refused, and shortly afterwards he began to collect troops in an ambition to become lord of Madurai. Some British traders reported to the Nawab and the company, on Yusuf Khan as spending vast sums on his troops. In response, the Nawab and British sent Capt. Manson to arrest Yusuf Khan.
Meanwhile, Yusuf Khan wrote to Sivaganga Zamindari reminding them of their owed taxes. Sivaganga's Minister and General came to Madurai to meet Yusuf Khan, and was rudely warned that certain territories would be annexed for failure of payment. Zamindar immediately ordered Yusuf Khan to be "captured and hanged like a dog". Meanwhile, Ramnad Zamin's general Damodar Pillai and Thandavarayan Pillai complained to the Nawab that Yusuf Khan had plundered Sivaganga villages and begun a cannon manufacturing plant in association with a French Marchaud.
The Nawab and British quickly amassed an army. They brought the Travancore Raja to their cause, and in an ensuing battle, the Travancore Raja was defeated and the British flags in his domains were chopped and burnt, with the French flag hoisted on the Madura Fort.
When Governor Saunders in Madras (now Chennai) called Khan Sahib for a meeting, he refused evoking the wrath of the East India Company. By now, Delhi's shah and Nizam Ali of Hyderabad – the Arcot Nawab's overlords – proclaimed Yusuf Khan as the rightful legal governor of Madurai and Tirunelveli. This left the Nawab and British seeking some legitimacy to capture and kill Yusuf Khan.
Defensive actions and downfall
Yusuf Khan proclaimed himself the independent ruler of Madurai and Tirunelveli, but had enemies lurking around him. His previous allegiance to the Nawab and British had earned the wrath of Mysore, and the remaining Polygars sought a return to prominence. The Tanjore, Travancore, Pudukkotai, Ramnad, and Sivaganga kingdoms joined with the British and the Arcot Nawab to attack Yusuf Khan. In the first siege of Madurai in 1763, the English could not make any headway because of inadequate forces and the army retreated to Tiruchi due to monsoons. The Nizam Ali of Hyderabad reaffirmed Yusuf Khan as the rightful governor, while the Arcot Nawab and the British issued a warrant for Yusuf Khan "to be captured alive and hanged before the first known tree".
In 1764, British troops again besieged the Madurai Fort, this time cutting supplies. Yusuf Khan and his troops went without food and water for several days (according to European sources, surviving on horse and monkey meat) but held on while strengthening the defences, and repelled the chief assault with a loss of 120 Europeans (including 9 officers) killed and wounded. Little progress against him had been made, except that the place was now rigorously blockaded.
The Arcot Nawab consulted Sivaganga General Thaandavaraaya Pillai, along with Maj. Charles Campbell, hatching a plot to bribe three of Yusuf Khan's close associates: Dewan Srinivasa Rao, French mercenary captain Marchand, and Khan's doctor Baba Sahib. While Yusuf Khan was offering his morning prayers in his house, they quietly captured him, binding him with his own turban. Yusuf Khan's wife rushed to the scene with the house guards but they were overwhelmed by the well-armed mercenaries. Under cover of darkness, Marchand brought Yusuf Khan to Campbell, with most of Yusuf Khan's native forces unaware of what had happened.
The next day, on the evening of 15 October 1764, near the army camp at Sammattipuram on the Madurai–Dindigul road, Yusuf Khan was hanged as a rebel by Muhammed Ali Khan Wallajah, the Nawab of Arcot. This place is about to the west of Madura, known as Dabedar Chandai (Shandy), and his body was buried at the spot.
Legends of his death
One legend is that he was hanged three times before he finally died. The brief story is that the first two attempts at hanging failed as the rope snapped and only the third attempt was successful.
The superstitious Nawab of Arcot Muhammad Ali ordered the body of Yusuf Khan to be dismembered into many parts and buried in different parts of his domain. As the story goes, his head was sent to Trichy, arms to Palayamkottai, and legs to Periyakulam and Tanjore. The headless and limbless torso was buried at Sammattipuram Madurai. In 1808, a small square mosque was erected over the tomb in Samattipuram, on the left of the road to Theni, at Kaalavaasal, a little beyond the toll-gate, and is known as Khan Sahib's pallivasal.
There are no accounts of Yusuf Khan's wife Maasa and his son of 2 or 3 years following the hanging. According to local tradition, Maasa died soon after her husband's demise and the little boy was brought up in strict secrecy by Srinivasa Rao (Yusuf Khan's Dewan) at Alwarthirunagari. Srinivasa Rao might have felt that the little boy had better chances of surviving where the people were kindly disposed towards Yusuf Khan for repelling a Dutch invasion. As per Maasa's last wish, and to maintain secrecy, Srinivasa Rao named the boy Mathuranayagam (the original Hindu name of Yusuf Khan) and brought him up in the Christian faith. Yusuf Khan's descendants later moved to Palayamkottai.
The descendants of Baba Sahib, Yusuf Khan's physician, live around Krishnan Koil in Virudhunagar District. They still practise native medicine and bone-setting.
The Madurai fort, which Yusuf Khan had defended from sieges in 1763 and 1764 was demolished at the end of the nineteenth century. His lodgement, according to the French map, was inside the Main Guard Square (Menkattu Pottal in Tamil; Menkattu is a corruption of main guard), a quadrangle bounded by West Avani Moola Street, Netaji Road and West Pandian Agil (Agali) Street. Yusuf Khan lived in the main bastion of the ancient Pandian fortress, also known in Tamil as the Moolai Kothalam (main corner tower; moolai in Tamil means corner) at the angle formed by the West Avani Moola Street and the South Avani Moola Street. The four Avani Moola Streets, the North, the West, the South and the East were situated just inside the ancient Pandian fortress, which was almost a square. Just outside the fortress walls was the ancient moat, which had been filled by the Nayak rulers and the site of the moat can only be guessed by the names of the streets running near or perhaps on the moat itself, like the West Pandian Agil Street (agil is a corruption of agazhi). King Viswanatha Nayak extended the city limits further and the new fortress walls were built outside the Masi Streets. The ancient Pandian city of Madurai had the early Meenakshi Amman Temple at its centre; surrounding it were twelve concentric ring roads, each named after a Tamil month. The innermost ring road was Chithrai and the outermost Panguni. As the temple underwent periodic expansions over the centuries, the street adjacent to the temple premises retained the name Chithrai Street. Now, only three of the ancient twelve streets can be identified; Chithrai, Avani and Masi.
The fort in Palayamkottai, which he used during his wars with the Polygars, was dismantled in the mid-nineteenth century. Only parts of the western bastion, (now housing Medai Police Station), the eastern bastion (now housing the Tirunelveli Museum) and a few short segments of the eastern wall remain.
Character
Tradition has many stories to tell of Yusuf Khan, said to be a scion of the ancient Pandiyan dynasty, who started his life as an ordinary peasant and by his military genius rose to the pinnacle of royal power when he became the ruler of the land, only to fall by the treachery of his comrades.
In Tirunelveli and Madurai his whole administration denoted vigour and effect. His justice was unquestioned, his word unalterable, his measures were happily combined and firmly executed, the guilty had no refuge from punishment. Wisdom, vigour and integrity were never more conspicuous in any person of whatever climate or complexion.author, Col. Fullertonsource, A view of the English interests in India (1785).
In popular culture
Indian actor Kamal Haasan in 1997 started shooting the movie Marudhanayagam portraying Maruthanayagam Pillai in English, French, and Tamil languages. Its filming was stopped soon after, due to financial constraints and political problems.
References
External links
Movie Controversy
The Hindu: The ballad of the Khan Sahib
The Palayamkottai Mystery
Vikatan Reference
1725 births
1764 deaths
Converts to Islam
Indian military leaders
Indian Muslims
Islam in Tamil Nadu
People from Ramanathapuram district
|
```java
package com.yahoo.prelude.query.parser;
import com.yahoo.prelude.query.AndItem;
import com.yahoo.prelude.query.AndSegmentItem;
import com.yahoo.prelude.query.CompositeItem;
import com.yahoo.prelude.query.IntItem;
import com.yahoo.prelude.query.Item;
import com.yahoo.prelude.query.NotItem;
import com.yahoo.prelude.query.NullItem;
import com.yahoo.prelude.query.OrItem;
import com.yahoo.prelude.query.PhraseItem;
import com.yahoo.prelude.query.QueryCanonicalizer;
import com.yahoo.prelude.query.RankItem;
import com.yahoo.prelude.query.TrueItem;
import com.yahoo.prelude.query.WeakAndItem;
import com.yahoo.search.query.QueryTree;
import com.yahoo.search.query.parser.ParserEnvironment;
import com.yahoo.search.query.parser.ParserEnvironment.ParserSettings;
import java.util.Iterator;
import static com.yahoo.prelude.query.parser.Token.Kind.MINUS;
import static com.yahoo.prelude.query.parser.Token.Kind.SPACE;
/**
* Parser for queries of type all and weakAnd.
*
* @author Steinar Knutsen
* @author bratseth
*/
public class AllParser extends SimpleParser {
private final boolean weakAnd;
private final ParserSettings parserSettings;
/**
* Creates an all/weakAnd parser
*
* @param weakAnd false to parse into AndItem (by default), true to parse to WeakAndItem
*/
public AllParser(ParserEnvironment environment, boolean weakAnd) {
super(environment);
this.weakAnd = weakAnd;
this.parserSettings = environment.getParserSettings();
}
@Override
protected Item parseItems() {
int position = tokens.getPosition();
try {
return parseItemsBody();
} finally {
tokens.setPosition(position);
}
}
protected Item parseItemsBody() {
// Algorithm: Collect positive, negative, and and'ed items, then combine.
CompositeItem and = null;
NotItem not = null; // Store negatives here as we go
Item current;
// Find all items
do {
current = negativeItem();
if (current != null) {
not = addNot(current, not);
continue;
}
current = positiveItem();
if (current == null)
current = indexableItem("").getFirst();
if (current == null)
current = compositeItem();
if (current != null)
and = addAnd(current, and);
if (current == null)
tokens.skip();
} while (tokens.hasNext());
// Combine the items
Item topLevel = and;
if (not != null) {
not.setPositiveItem(topLevel != null ? topLevel : new TrueItem());
topLevel = not;
}
return simplifyUnnecessaryComposites(topLevel);
}
// Simplify if there are unnecessary composites due to single elements
protected final Item simplifyUnnecessaryComposites(Item item) {
if (item == null) return null;
QueryTree root = new QueryTree(item);
QueryCanonicalizer.canonicalize(root);
return root.getRoot() instanceof NullItem ? null : root.getRoot();
}
private boolean foldIntoAnd(CompositeItem other) {
if (other instanceof AndItem) {
return ! parserSettings.keepImplicitAnds();
}
if (weakAnd && other instanceof AndSegmentItem sand) {
if (parserSettings.keepSegmentAnds()) {
return false;
} else if (parserSettings.markSegmentAnds()) {
sand.shouldFoldIntoWand(weakAnd);
return false;
}
return true;
}
return false;
}
protected CompositeItem addAnd(Item item, CompositeItem and) {
if (and == null)
and = createAnd();
if (item instanceof CompositeItem composite && foldIntoAnd(composite)) {
for (var subItem : composite.items()) {
addAnd(subItem, and);
}
} else {
and.addItem(item);
}
return and;
}
private CompositeItem createAnd() {
return weakAnd ? new WeakAndItem() : new AndItem();
}
protected OrItem addOr(Item item, OrItem or) {
if (or == null)
or = new OrItem();
or.addItem(item);
return or;
}
protected NotItem addNot(Item item, NotItem not) {
if (not == null)
not = new NotItem();
not.addNegativeItem(item);
return not;
}
protected Item negativeItem() {
int position = tokens.getPosition();
Item item = null;
boolean isComposited = false;
try {
if ( ! tokens.skip(MINUS)) return null;
if (tokens.currentIsNoIgnore(SPACE)) return null;
var itemAndExplicitIndex = indexableItem("");
item = itemAndExplicitIndex.getFirst();
boolean explicitIndex = itemAndExplicitIndex.getSecond();
if (item == null) {
item = compositeItem();
if (item != null) {
isComposited = true;
if (item instanceof OrItem) { // Turn into And
CompositeItem and = createAnd();
for (Iterator<Item> i = ((OrItem) item).getItemIterator(); i.hasNext();) {
and.addItem(i.next());
}
item = and;
}
}
}
if (item != null)
item.setProtected(true);
// Heuristic overdrive engaged!
// Interpret -N as a positive item matching a negative number (by backtracking out of this)
// but not if there is an explicit index (such as -a:b)
// but interpret -(N) as a negative item matching a positive number
// but interpret --N as a negative item matching a negative number
if (item instanceof IntItem &&
! explicitIndex &&
! isComposited &&
! ((IntItem)item).getNumber().startsWith(("-"))) {
item = null;
}
return item;
} finally {
if (item == null) {
tokens.setPosition(position);
}
}
}
/**
* Returns the top level item resulting from combining the given top
* level item and the new item. This implements most of the weird transformation
* rules of the parser.
*/
protected Item combineItems(Item topLevelItem, Item item) {
if (topLevelItem == null) {
return item;
} else if (topLevelItem instanceof OrItem && item instanceof OrItem) {
OrItem newTopOr = new OrItem();
newTopOr.addItem(topLevelItem);
newTopOr.addItem(item);
return newTopOr;
} else if (item instanceof OrItem && topLevelItem instanceof RankItem) {
for (Iterator<Item> i = ((RankItem) topLevelItem).getItemIterator(); i.hasNext();) {
((OrItem) item).addItem(0, i.next());
}
return item;
} else if (item instanceof OrItem && topLevelItem instanceof PhraseItem) {
OrItem newTopOr = new OrItem();
newTopOr.addItem(topLevelItem);
newTopOr.addItem(item);
return newTopOr;
} else if (!(topLevelItem instanceof RankItem)) {
RankItem rank = new RankItem();
if (topLevelItem instanceof NotItem) { // Strange rule, but that's how it is
rank.addItem(topLevelItem);
rank.addItem(item);
} else {
rank.addItem(item);
rank.addItem(topLevelItem);
}
return rank;
} else if ((item instanceof RankItem itemAsRank) && (((RankItem)item).getItem(0) instanceof OrItem)) {
OrItem or = (OrItem) itemAsRank.getItem(0);
((RankItem) topLevelItem).addItem(0, or);
for (int i = 1; i < itemAsRank.getItemCount(); i++) {
or.addItem(0, itemAsRank.getItem(i));
}
return topLevelItem;
} else {
((RankItem) topLevelItem).addItem(0, item);
return topLevelItem;
}
}
}
```
|
CHYC-AM was a Canadian radio station, which broadcast in Montreal, Quebec. It was owned and operated by Northern Electric Co. and was officially closed in 1932.
The call letters "CHYC" were assigned to Northern Electric in 1922.
Sister stations
Other stations during the 1920s through the 1930s.
CFCF
CKAC
Notes
Listening in: the first decade of Canadian broadcasting, 1922-1932 By Mary Vipond
Edition: illustrated Published by McGill-Queen's Press - MQUP, 1992 ,
The Invisible Empire: A History of the Telecommunications Industry in Canada By Jean-Guy Rens, Käthe Roth Translated by Käthe Roth Edition: illustrated, revised
Published by McGill-Queen's Press - MQUP, 2001 , 9780773520523
References
Nortel
Hyc
Hyc
Radio stations established in 1922
Radio stations disestablished in 1932
1922 establishments in Quebec
1932 disestablishments in Quebec
HYC (AM)
|
Heliosia punctata is a moth of the subfamily Arctiinae. It was described by Cheng-Lai Fang in 1992. It is found in Sichuan, China.
References
Nudariina
Moths described in 1992
|
```objective-c
/*
* Declaration of context structures for use with the PSA driver wrapper
* interface. This file contains the context structures for 'primitive'
* operations, i.e. those operations which do not rely on other contexts.
*
* Warning: This file will be auto-generated in the future.
*
* \note This file may not be included directly. Applications must
* include psa/crypto.h.
*
* \note This header and its content are not part of the Mbed TLS API and
* applications must not depend on it. Its main purpose is to define the
* multi-part state objects of the PSA drivers included in the cryptographic
* library. The definitions of these objects are then used by crypto_struct.h
* to define the implementation-defined types of PSA multi-part state objects.
*/
*/
#ifndef PSA_CRYPTO_DRIVER_CONTEXTS_PRIMITIVES_H
#define PSA_CRYPTO_DRIVER_CONTEXTS_PRIMITIVES_H
#include "psa/crypto_driver_common.h"
/* Include the context structure definitions for the Mbed TLS software drivers */
#include "psa/crypto_builtin_primitives.h"
/* Include the context structure definitions for those drivers that were
* declared during the autogeneration process. */
#if defined(MBEDTLS_TEST_LIBTESTDRIVER1)
#include <libtestdriver1/include/psa/crypto.h>
#endif
#if defined(PSA_CRYPTO_DRIVER_TEST)
#if defined(MBEDTLS_TEST_LIBTESTDRIVER1) && \
defined(LIBTESTDRIVER1_MBEDTLS_PSA_BUILTIN_CIPHER)
typedef libtestdriver1_mbedtls_psa_cipher_operation_t
mbedtls_transparent_test_driver_cipher_operation_t;
#define MBEDTLS_TRANSPARENT_TEST_DRIVER_CIPHER_OPERATION_INIT \
LIBTESTDRIVER1_MBEDTLS_PSA_CIPHER_OPERATION_INIT
#else
typedef mbedtls_psa_cipher_operation_t
mbedtls_transparent_test_driver_cipher_operation_t;
#define MBEDTLS_TRANSPARENT_TEST_DRIVER_CIPHER_OPERATION_INIT \
MBEDTLS_PSA_CIPHER_OPERATION_INIT
#endif /* MBEDTLS_TEST_LIBTESTDRIVER1 &&
LIBTESTDRIVER1_MBEDTLS_PSA_BUILTIN_CIPHER */
#if defined(MBEDTLS_TEST_LIBTESTDRIVER1) && \
defined(LIBTESTDRIVER1_MBEDTLS_PSA_BUILTIN_HASH)
typedef libtestdriver1_mbedtls_psa_hash_operation_t
mbedtls_transparent_test_driver_hash_operation_t;
#define MBEDTLS_TRANSPARENT_TEST_DRIVER_HASH_OPERATION_INIT \
LIBTESTDRIVER1_MBEDTLS_PSA_HASH_OPERATION_INIT
#else
typedef mbedtls_psa_hash_operation_t
mbedtls_transparent_test_driver_hash_operation_t;
#define MBEDTLS_TRANSPARENT_TEST_DRIVER_HASH_OPERATION_INIT \
MBEDTLS_PSA_HASH_OPERATION_INIT
#endif /* MBEDTLS_TEST_LIBTESTDRIVER1 &&
LIBTESTDRIVER1_MBEDTLS_PSA_BUILTIN_HASH */
typedef struct {
unsigned int initialised : 1;
mbedtls_transparent_test_driver_cipher_operation_t ctx;
} mbedtls_opaque_test_driver_cipher_operation_t;
#define MBEDTLS_OPAQUE_TEST_DRIVER_CIPHER_OPERATION_INIT \
{ 0, MBEDTLS_TRANSPARENT_TEST_DRIVER_CIPHER_OPERATION_INIT }
#endif /* PSA_CRYPTO_DRIVER_TEST */
/* Define the context to be used for an operation that is executed through the
* PSA Driver wrapper layer as the union of all possible driver's contexts.
*
* The union members are the driver's context structures, and the member names
* are formatted as `'drivername'_ctx`. This allows for procedural generation
* of both this file and the content of psa_crypto_driver_wrappers.h */
typedef union {
unsigned dummy; /* Make sure this union is always non-empty */
mbedtls_psa_hash_operation_t mbedtls_ctx;
#if defined(PSA_CRYPTO_DRIVER_TEST)
mbedtls_transparent_test_driver_hash_operation_t test_driver_ctx;
#endif
} psa_driver_hash_context_t;
typedef union {
unsigned dummy; /* Make sure this union is always non-empty */
mbedtls_psa_cipher_operation_t mbedtls_ctx;
#if defined(PSA_CRYPTO_DRIVER_TEST)
mbedtls_transparent_test_driver_cipher_operation_t transparent_test_driver_ctx;
mbedtls_opaque_test_driver_cipher_operation_t opaque_test_driver_ctx;
#endif
} psa_driver_cipher_context_t;
#endif /* PSA_CRYPTO_DRIVER_CONTEXTS_PRIMITIVES_H */
/* End of automatically generated file. */
```
|
The Independent Anti-Slavery Commissioner is a position created by the Modern Slavery Act 2015.
The role complements the existing role of Victims' Commissioner to ensure that modern slavery issues are tackled in a coordinated and effective manner across the UK. The role involves working closely with law enforcement agencies, local authorities, third sector organisations and internationally to encourage good practice in the identification of victims and the prevention, detection, investigation and prosecution of modern slavery crimes, including international collaboration. The role requires published annual reports for Parliamentary scrutiny.
The Modern Slavery Act 2015 provides the home secretary's power to appoint a person to the role.
Commissioners
References
Public bodies and task forces of the United Kingdom government
|
```smalltalk
using System.Buffers;
using SixLabors.ImageSharp.Formats.Tiff.Utils;
using SixLabors.ImageSharp.Memory;
using SixLabors.ImageSharp.PixelFormats;
namespace SixLabors.ImageSharp.Formats.Tiff.PhotometricInterpretation;
/// <summary>
/// Implements decoding pixel data with photometric interpretation of type 'YCbCr' with the planar configuration.
/// </summary>
/// <typeparam name="TPixel">The type of pixel format.</typeparam>
internal class YCbCrPlanarTiffColor<TPixel> : TiffBasePlanarColorDecoder<TPixel>
where TPixel : unmanaged, IPixel<TPixel>
{
private readonly YCbCrConverter converter;
private readonly ushort[] ycbcrSubSampling;
public YCbCrPlanarTiffColor(Rational[] referenceBlackAndWhite, Rational[] coefficients, ushort[] ycbcrSubSampling)
{
this.converter = new YCbCrConverter(referenceBlackAndWhite, coefficients);
this.ycbcrSubSampling = ycbcrSubSampling;
}
/// <inheritdoc/>
public override void Decode(IMemoryOwner<byte>[] data, Buffer2D<TPixel> pixels, int left, int top, int width, int height)
{
Span<byte> yData = data[0].GetSpan();
Span<byte> cbData = data[1].GetSpan();
Span<byte> crData = data[2].GetSpan();
if (this.ycbcrSubSampling != null && !(this.ycbcrSubSampling[0] == 1 && this.ycbcrSubSampling[1] == 1))
{
ReverseChromaSubSampling(width, height, this.ycbcrSubSampling[0], this.ycbcrSubSampling[1], cbData, crData);
}
int offset = 0;
int widthPadding = 0;
if (this.ycbcrSubSampling != null)
{
// Round to the next integer multiple of horizontalSubSampling.
widthPadding = TiffUtilities.PaddingToNextInteger(width, this.ycbcrSubSampling[0]);
}
for (int y = top; y < top + height; y++)
{
Span<TPixel> pixelRow = pixels.DangerousGetRowSpan(y).Slice(left, width);
for (int x = 0; x < pixelRow.Length; x++)
{
Rgba32 rgba = this.converter.ConvertToRgba32(yData[offset], cbData[offset], crData[offset]);
pixelRow[x] = TPixel.FromRgba32(rgba);
offset++;
}
offset += widthPadding;
}
}
private static void ReverseChromaSubSampling(int width, int height, int horizontalSubSampling, int verticalSubSampling, Span<byte> planarCb, Span<byte> planarCr)
{
// If width and height are not multiples of ChromaSubsampleHoriz and ChromaSubsampleVert respectively,
// then the source data will be padded.
width += TiffUtilities.PaddingToNextInteger(width, horizontalSubSampling);
height += TiffUtilities.PaddingToNextInteger(height, verticalSubSampling);
for (int row = height - 1; row >= 0; row--)
{
for (int col = width - 1; col >= 0; col--)
{
int offset = (row * width) + col;
int subSampleOffset = (row / verticalSubSampling * (width / horizontalSubSampling)) + (col / horizontalSubSampling);
planarCb[offset] = planarCb[subSampleOffset];
planarCr[offset] = planarCr[subSampleOffset];
}
}
}
}
```
|
KNOP-TV (channel 2) is a television station in North Platte, Nebraska, United States, affiliated with NBC. It is owned by Gray Television alongside two low-power stations: CBS affiliate KNPL-LD (channel 10) and Class A Fox affiliate KIIT-CD (channel 11). The three stations share studios on South Dewey Street in downtown North Platte; master control and some internal operations are based at the facilities of sister station KOLN on North 40th Street in Lincoln. KNOP-TV's transmitter is located at the site of its former studio on US Route 83 north of North Platte.
KNEP (channel 4) in Scottsbluff, Nebraska, operates as a semi-satellite of KNOP-TV.
History
KNOP-TV was founded by local investors headed by attorney Rush Clarke and went on-air December 15, 1958.
In 1968, it was purchased by Richard F. Shively, Harold O. Shively and Ulysses Carlini Sr. Richard died on December 4, 2003. In 1997, Shively and Carlini bought KHAS-TV in Hastings, and formed Greater Nebraska Television as a holding company for their television interests.
In 2005, Greater Nebraska Television sold its stations (including KNOP-TV) to Hoak Media.
KNOP started rebroadcasting NBC programming in high definition, and carrying K11TW's Fox programming on its second digital subchannel, in March 2011.
KNOP gained national attention in February 2012 for being the only station in the country to air a Will Ferrell-produced Super Bowl commercial for Old Milwaukee beer.
On November 20, 2013, Hoak announced the sale of most of its stations, including KNOP-TV and K11TW, to Gray Television. The sale made them sister stations to North Platte CBS affiliate KNPL-LD, a semi-satellite of Gray's KOLN/KGIN; it would have also partially separated KNOP from KHAS-TV, which was planned to be sold to Excalibur Broadcasting but be operated by Gray's KOLN/KGIN and KSNB-TV through a shared services agreement. However, in the wake of heightened FCC scrutiny about local marketing agreements, on June 11, 2014, KHAS-TV announced it would leave the air at midnight on June 13 and NBC programming would be moved to KSNB-TV and the digital subcarrier of KOLN/KGIN. The whole sale was completed on June 13. (KHAS was ultimately sold to Legacy Broadcasting, the call letters were changed to KNHL, and it returned to the air in June 2015 as a SonLife Broadcasting Network affiliate.
On September 14, 2015, Gray announced that it would purchase the television and radio stations owned by Schurz Communications, including Scottsbluff, Nebraska based KDUH-TV (a satellite of Rapid City's ABC-affiliated KOTA-TV) for $442.5 million. Gray planned to convert KDUH into a semi-satellite of KNOP-TV, change the station's call letters to KNEP, and also change KDUH/KNEP's city of license to Sidney, Nebraska (which will move it from the Cheyenne–Scottsbluff market to the Denver market, eliminating an ownership conflict with KSTF, a Gray-owned, Scottsbluff-based semi-satellite of Cheyenne, Wyoming-based CBS affiliate KGWN-TV). The sale approved by the FCC on February 12, 2016, and was completed on February 16. The FCC approved the change of station's city of license on May 16. KNEP's NBC feed for the Nebraska Panhandle (which is branded as "NBC Nebraska Scottsbluff" and produces its own newscasts) signed on May 5, 2016. The station formerly aired KOTA-TV programming on its DT1 channel until 2020.
Newscasts
KNOP-TV presently broadcasts 17 hours of locally produced newscasts each week (with three hours each weekday and one hour each on Saturdays and Sundays). The station also produces hours of weekly news programming each for CBS and Fox affiliated sister stations KIIT-CD and KNPL-LD. Between the three stations, the news operation produces about 22 hours of news programming each week.
Technical information
Subchannels
The station's digital signal is multiplexed:
Analog-to-digital conversion
KNOP-TV shut down its analog signal, over VHF channel 2, on February 10, 2009. The station's digital signal relocated from its pre-transition UHF channel 22 to VHF channel 2 for post-transition operations.
References
External links
Television channels and stations established in 1958
1958 establishments in Nebraska
NBC network affiliates
Circle (TV network) affiliates
Gray Television
NOP-TV
|
Redemption is the second solo studio album by American rapper and record producer Benzino. It was released January 14, 2003 via Elektra Records and ZNO Records. Production was primarily handled by Benzino's production team Hangmen 3, as well as Mario Winans, Gary "Gizzo" Smith, L.E.S., L.T. Hutton, Paul "Little Bo Peezy" Hemphill, Sean "Inferno" Dunnigan, That Nigga Moel, Tone Capone and Trackmasters. It features guest appearances from Mario Winans, Mass Murderer Mike, Black Child, Caddillac Tah, Daz Dillinger, Hussein Fatal, Jadakiss, Jewell, Kid Javi, Lil' Kim, LisaRaye, Petey Pablo, Scarface and Wyclef Jean.
The album peaked at number 65 on the Billboard 200 and at number 31 on the Top R&B/Hip-Hop Albums. It featured two singles: "Rock the Party" and "Would You", both produced by Mario Winans. "Rock the Party" made it to number 82 on the Billboard Hot 100, and also appeared on the US version of The Transporter: Music from and Inspired by the Motion Picture, was featured in the 2002 film I-SPY and in the 2003 video game NBA Street Vol. 2.
The song "Pull Your Skirt Up" is a direct diss track aimed at Shady/Aftermath artists D12, G-Unit, Dr. Dre and Obie Trice, initially released as B-side of UK versions of "Rock the Party" single during ongoing Benzino and Eminem feud. While Benzino was recording the album, he made sure to work with people who were beefing with 50 Cent at the time, such as Black Child and Cadillac Tah from Murder Inc Records, Fatal and Lil' Kim.
Track listing
Notes
Track 1 features backing vocals by Famil
Track 14 features backing vocals by LovHer
Sample credits
Track 1 contains a sample of "Blue Sky and Silver Bird" by Lamont Dozier
Track 5 contains samples from "Tear It Down" by Blue Magic
Track 7 contains elements from "Aâlach Tloumouni" by Khaled
Track 10 contains elements from "Maybe It's Love This Time" by The Stylistics
Track 14 contains elements of "She's Lonely" written by Bill Withers
Charts
References
External links
2002 albums
Benzino albums
Elektra Records albums
Albums produced by L.T. Hutton
Albums produced by Trackmasters
Albums produced by L.E.S. (record producer)
|
Owen Robert Husney (born September 8, 1947) is an American music manager, musician, promoter, and record executive. Husney is known for his discovery and management of the artist Prince and Prince's 1977 signing to Warner Bros. Records—then one of the largest contracts for a new artist in history.
Biography
Early life
Husney was born on September 8, 1947, in St. Louis Park, Minnesota. The son of Georgette Husney (née Cotlow; 1915–1987) and Irving Husney (1909–1988)—an immigrant from Aleppo, Syria—and the grandson of rabbinic judge Rabbi Eliyahu Husney.
The High Spirits
While a student at suburban-Minneapolis's St. Louis Park High School after playing in a band called The Treblemen and later The Jaguars with Randy Resnick in 1964, Husney, along with schoolmates Cliff Siegel and Rick Levinson, formed The High Spirits band. Husney played guitar and acted as the band's manager. With the addition of Doug Ahrens, Jay Luttio, and Rick Beresford, they recorded a garage rock version of Bobby "Blue" Bland's Turn On Your Love Light. The single received extensive airplay in on local Top 40 stations WDGY and KDWB, entering the top 10 locally, and eventually gained airplay in other markets including: Kansas, Colorado, Texas, and California.
The band's final performance was in July 1968 when Siegel headed off for military service.
Promotion and The Ad Company
Following the dissolution of The High Spirits, Husney began his career on the business side of the music industry by providing backstage catering to a local Minneapolis venue serving touring acts such as Janis Joplin, Stevie Wonder, The Rolling Stones, and The Who. Husney eventually rented The Marigold Ballroom in Minneapolis, a local art deco club and musical venue, acting as its promoter where he introduced local audiences to national acts including Bonnie Raitt, Billy Joel, Ry Cooder, and Foghat.
The Ad Company
In 1973, Husney formed The Ad Company, a retail advertising agency served clientele including Warner Brothers and Doubleday-owned radio stations across the country. One of Husney's runners at The Ad Company was future Prince & The Revolution band member Bobby Z.
Signing Prince to Warner Bros.
In the summer of 1976, small studio owner Chris Moon brought Husney a demo tape by then eighteen-year-old Prince Nelson. Husney built a team around the young artist with the express purpose of making a new demo tape to secure a record contract for the young artist at a major record label, Husney used the resources of his advertising company to create promotional materials including a press kit to go along with a professionally recorded demo tape, recorded by then local engineer David Z at Sound 80 Studios in Minneapolis.
In the summer of 1977, Husney negotiated a three-album contract with Warner Bros., preserving Prince's publishing rights for himself and successfully convincing the record executives to allow Prince to produce his own first album. The contract was signed on June 25, 1977.
In 1980, Husney's management relationship with Prince ended when Prince signed with Bob Cavallo and Joe Ruffalo.
Record executive
Husney ran several record labels in association with Capitol Records, A&M Records and Sony. He also co-organized music for the John Hughes films, “The Breakfast Club” and “Pretty in Pink,” earning gold album awards for each.
Book
In 2018, Husney published "Famous People Who've Met Me", an autobiographical book about his early days, discovering Prince, working with Al Jarreau and others. The publisher describes the book as a "collection of true stories starring oddball characters, behind the scenes gurus, scoundrels, and brilliant superstars in the music business straight out of Minnesota."
See also
André Cymone
The High Spirits
Al Jarreau
Jesse Johnson
Prince
Ta Mara and the Seen
References
External links
The Marigold Ballroom
1947 births
Living people
|
GameSpot is an American video gaming website that provides news, reviews, previews, downloads, and other information on video games. The site was launched on May 1, 1996, created by Pete Deemer, Vince Broady and Jon Epstein. In addition to the information produced by GameSpot staff, the site also allows users to write their own reviews, blogs, and post on the site's forums. It has been owned by Fandom, Inc. since October 2022.
In 2004, GameSpot won "Best Gaming Website" as chosen by the viewers in Spike TV's second Video Game Award Show, and has won Webby Awards several times. The domain GameSpot.com attracted at least 60 million visitors annually by October 2008 according to a Compete.com study.
History
In January 1996, Pete Deemer, Vince Broady and Jon Epstein quit their positions at IDG and founded SpotMedia Communications. SpotMedia then launched GameSpot on May 1, 1996. Originally, GameSpot focused solely on personal computer games, so a sister site, VideoGameSpot, was launched on December 1, 1996. Eventually VideoGameSpot, then renamed VideoGames.com, was merged into GameSpot. In February 1999, PC Magazine named GameSpot one of the hundred best websites, alongside competitors IGN and CNET Gamecenter. The following year, The New York Times declared GameSpot and Gamecenter the "Time and Newsweek of gaming sites".
In October 2005, GameSpot adopted a new design similar to that of TV.com, now considered a sister site to GameSpot.
GameSpot ran a few different paid subscriptions from 2006 to 2013, but is no longer running those.
A new layout change was adopted in October 2013.
In October 2022, Fandom acquired GameSpot, along with Metacritic, TV Guide, GameFAQs, Giant Bomb, Cord Cutters News, and Comic Vine from Red Ventures.
International history
GameSpot UK (United Kingdom) was started in October 1997 and operated until mid-2002, offering content that was oriented for the British market that often differed from that of the U.S. site. During this period, GameSpot UK won the 1999 PPAi (Periodical Publishers Association interactive) award for best website, and was short listed in 2001. PC Gaming World was considered a "sister print magazine" and some content appeared on both GameSpot UK and PC Gaming World. Following the purchase of ZDNet by CNET, GameSpot UK was merged with the main US site. On April 24, 2006, GameSpot UK was relaunched.
In a similar fashion, GameSpot AU (Australia) existed on a local scale in the late 1990s with Australian-produced reviews. It ceased in 2003. When a local version of the main CNET portal, CNET.com.au was launched in 2003, GameSpot AU content was folded into CNET.com.au. The site was fully re-launched in mid-2006, with a specialized forum, local reviews, special features, local pricings in Australian dollars, Australian release dates, and more local news.
Gerstmann dismissal
Jeff Gerstmann, editorial director of the site, was fired on November 28, 2007. Immediately after his termination, rumors circulated proclaiming his dismissal was a result of external pressure from Eidos Interactive, the publisher of Kane & Lynch: Dead Men, which had purchased a considerable amount of advertising space on GameSpots website. Gerstmann had previously given Kane & Lynch a fair or undesirable rating along with critique. Both GameSpot and parent company CNET stated that his dismissal was unrelated to the review, but due to corporate and legal constraints could not reveal the reason. A month after Gerstmann's termination, freelance reviewer Frank Provo left GameSpot after eight years, stating that "I believe CNET management let Jeff go for all the wrong reasons. I believe CNET intends to soften the site's tone and push for higher scores to make advertisers happy."
Notable staff
Greg Kasavin – executive editor and site director of GameSpot, who left in 2007 to become a game developer. He became a producer at EA and 2K Games. As of 2021, he was working for Supergiant Games as a writer and creative director.
Jeff Gerstmann – editorial director of the site, dismissed from GameSpot on November 28, 2007, for undisclosed reasons, after which he started Giant Bomb. Following the announcement of the purchase of Giant Bomb by CBS Interactive on March 15, 2012, Jeff was allowed to reveal that he was dismissed by management as a result of publishers threatening to pull advertising revenue due to less-than-glowing review scores being awarded by GameSpots editorial team.
Danny O'Dwyer – video presenter of GameSpot, founded crowdfunded game documentary company Noclip in 2016.
Community features
GameSpots forums were originally run by ZDNet, and later by Lithium. GameSpot uses a semi-automated moderation system with numerous volunteer moderators. GameSpot moderators are picked by paid GameSpot staff from members of the GameSpot user community. Due to the size and massive quantity of boards and posts on GameSpot, there is a "report" feature where a normal user can report a violation post to an unpaid moderator volunteer.
In addition to the message board system, GameSpot has expanded its community through the addition of features such as user blogs (formerly known as "journals") and user video blogs. Users can track other users, thus allowing them to see updates for their favorite blogs. If both users track each other, they are listed on each other's friends list.
See also
GameSpot Game of the Year awards
References
External links
GameSpot UK (archived)
GameSpot Belgium (archived)
GameSpot France (archived)
GameSpot Germany (archived)
Internet properties established in 1996
Video game Internet forums
Video game news websites
Webby Award winners
2020 mergers and acquisitions
2022 mergers and acquisitions
Former CBS Interactive websites
Fandom (website)
Spike Video Game Award winners
|
```java
package io.jenkins.blueocean.service.embedded.util;
import org.apache.oro.text.GlobCompiler;
import org.apache.oro.text.regex.MalformedPatternException;
import org.apache.oro.text.regex.Pattern;
import org.apache.oro.text.regex.Perl5Matcher;
/**
* Matches glob string patters
* See path_to_url
*/
public final class GlobMatcher {
private static final GlobCompiler GLOB_COMPILER = new GlobCompiler();
private static final Perl5Matcher MATCHER = new Perl5Matcher();
private final Pattern pattern;
public GlobMatcher(String patternStr) {
try {
this.pattern = GLOB_COMPILER.compile(patternStr, GlobCompiler.CASE_INSENSITIVE_MASK);
} catch (Throwable e) {
throw new IllegalArgumentException(String.format("bad pattern '%s'", patternStr), e);
}
}
/**
* @param input to check
* @return matches pattern or not
*/
public boolean matches(String input) {
return MATCHER.matches(input, pattern);
}
}
```
|
Danilovskaya () is a rural locality (a village) in Kichmengskoye Rural Settlement, Kichmengsko-Gorodetsky District, Vologda Oblast, Russia. The population was 5 as of 2002.
Geography
Danilovskaya is located 12 km southwest of Kichmengsky Gorodok (the district's administrative centre) by road. Ryabevo is the nearest rural locality.
References
Rural localities in Kichmengsko-Gorodetsky District
|
Buford is a surname. Notable people with the surname include:
Abraham Buford (1747–1833), commanding officer during the "Waxhaw Massacre"
Abraham Buford II (1820–1884), Confederate general during the American Civil War
Algernon Sidney Buford (1826–1911), American colonel and president of the Richmond and Danville Railroad
Bill Buford (born 1954), American journalist
Carter M. Buford (1876–1959), American politician from the state of Missouri
Don Buford (born 1937), American major league baseball player
George "Mojo" Buford (1929–2011), American blues harmonica player
Jade Buford (born 1988), American racing driver
Joe Buford (born 1967), American stock car driver
John Buford (1826–1863), U.S. general during the American Civil War
Mark Buford (born 1970), American basketball player
Napoleon Bonaparte Buford (1807–1883), U.S. general during the American Civil War
R. C. Buford (born 1960), general manager of an NBA basketball franchise
Further reading
See also
Bufford
Burford (surname)
Bluford (disambiguation)
Bruford (disambiguation)
|
Wikus du Toit (born 18 June 1972) is a South African producer, actor, comedian, composer, and director.
Background
He was born in Bethal on 18 June 1972 and went on to study drama at the Tshwane University of Technology where he completed a master's degree in Cabaret. He has appeared in numerous Afrikaans and English stage shows, films and television programs. In 2010 his play Kaptein Geluk was shortlisted for the Nagtegaal Playwriting Award. From 2003 to 2018 he was a full-time senior lecturer in Film Music and Composition at AFDA. Currently he is a commissioning editor for DStv working on M-net's scripted content.
Live shows
His professional career started in 1996 with Ses (Six), for which he won the Klein Karoo National Arts Festival's (KKNK) Best Newcomer award.
In 2000 he was co-composer of the first Afrikaans musical, Antjie Somers. Antjie Somers won the Fleur de Cap in 2000 for Best Musical
In 2001 he won the FNB Vita Award for the best new performer by a new male performer in El Grande de Coca-Cola
In 2002 he won the FNB Vita Award for the best musical theatre male performer in play@risk
In 2003 he won the Nagtegaal Scriptwriting Competition for his cabaret 10 gesprekke oor die man wat nie wou huil nie.
Film appearances
A Drink in the Passage (2002) directed by Zola Maseko
Stander (2003)
A Case of Murder (2004)
Semi-Soet (2012)
Television
Proesstraat in which he was part of the permanent cast (2010-2015)
Erfsondes Afrikaans drama series for SABC 2
Backstage the e.tv daily soap opera where he was the musical director from 2002 to 2005
Parlement Parlement Afrikaans comedy game show (2017)
Point of Order Comedy game show for Showmax (2018)
Film scores composed
A Drink in the Passage (2002)
The Unforgiving (2010)
Roer Jou Voete (2015)
Written work
Ses (1996) Afrikaans cabaret about a contextualized 'modern' Creation-story
Stilettos (1997) Afrikaans cabaret about faith healing.
10 Gesprekke oor die man wat nie wou huil nie (2003). Award-winning cabaret about the ten plagues set in a modern South African farm environment.
smallchange (2004) Nominated cabaret written for and performed by Elzabé Zietsman
Sing (2008) Afrikaans black comedy thriller set in the French court during the baroque period.
Kaptein Geluk (2009) Published play about abuse, relationships and personal growth.
Sirkus (2013) Commissioned play about a man-eating circus that invades a small town.
Roer Jou Voete (2015) 26 Episode Drama for Television broadcast on SABC3
References
1972 births
Living people
People from Bethal
Afrikaner people
South African male film actors
Tshwane University of Technology alumni
South African male television actors
|
```swift
//
// KeyboardPreviews+Proxy.swift
// KeyboardKit
//
// Created by Daniel Saidi on 2021-01-25.
//
#if os(iOS) || os(tvOS) || os(visionOS)
import UIKit
public extension UITextDocumentProxy where Self == KeyboardPreviews.PreviewTextDocumentProxy {
static var preview: UITextDocumentProxy {
KeyboardPreviews.PreviewTextDocumentProxy()
}
}
public extension KeyboardPreviews {
class PreviewTextDocumentProxy: NSObject, UITextDocumentProxy {
public override init() {
super.init()
}
public var autocapitalizationType: UITextAutocapitalizationType = .none
public var documentContextBeforeInput: String?
public var documentContextAfterInput: String?
public var hasText: Bool = false
public var selectedText: String?
public var documentInputMode: UITextInputMode?
public var documentIdentifier: UUID = UUID()
public var returnKeyType: UIReturnKeyType = .default
public func adjustTextPosition(byCharacterOffset offset: Int) {}
public func deleteBackward() {}
public func insertText(_ text: String) {}
public func setMarkedText(_ markedText: String, selectedRange: NSRange) {}
public func unmarkText() {}
}
}
#endif
```
|
Schizothorax elongatus is a species of ray-finned fish in the genus Schizothorax from Yingjiang County in Yunnan.
References
Schizothorax
Fish described in 1985
|
The Kirtlebridge rail crash took place in 1872 at Kirtlebridge railway station in Dumfriesshire. An express passenger train ran into a goods train that was shunting; 11 people lost their lives immediately, and one further person succumbed later. The cause was a failure to communicate between the station master in charge of the shunting operation, and the signalman. There was not full interlocking of the points, and the block system of signalling was not in use.
The location was very close to the point where the present-day A74(M) road crosses the line.
Description
Kirtlebridge station was nearly 17 miles (27 km) north of Carlisle, on the Caledonian Railway main line to Glasgow and Edinburgh. North of the passenger platforms there was a trailing (in the northbound direction) junction from the Solway Junction Railway, and a signalbox controlled the junction; the points there were interlocked with the signals.
South of the station there were sidings on both sides of the main line, and a crossover, but these points were not controlled by the signalbox, being operated by ground levers, and not interlocked, nor protected by the home signal. The block system was not in operation, and communication with adjacent locations was limited.
The line may be considered to run south to north at Kirtlebridge, the down direction being northwards. Down sidings were on the west of the line and up sidings on the east.
At 07:55 on 2 October 1872 a down goods train arrived at the station and started shunting operations; there were several wagons to be dropped off and collected from sidings both sides of the main line. The work was under the control of the Station Master, and he authorised the operation of a crossover that gave the goods train access to cross the main line.
An express passenger train had left London at 21:00 the previous evening, and it left Carlisle station at 07:50. It consisted of 18 vehicles pulled by two locomotives. Running at about 40 mph (65 km/h) under clear signals, the passenger train ran into wagons of the goods train that were fouling the down line.
The collision took place at 08:13.
The goods train
The goods train had left Carlisle at 06:55 and made calls at Floriston, Gretna and Kirkpatrick stations, arriving at Kirtlebridge at 07:55. At Gretna the driver had been informed that the following passenger train had not left Carlisle at 07:27. On arrival at Kirtlebridge, the train crossed to the up line and detached a brake van and three wagons, and left them on the running line. The engine and part train returned to the down line and entered the down sidings, dropping two wagons there. It then returned to the up line and recoupled the detached wagons, and entered the up siding.
The accommodation was very cramped and full, and the engine now drew 17 wagons from the siding to make space, and then propelled them forward on the up line and partly through the crossover towards the down line so that the rear of the movement would clear the up line siding points. It was the intention to move the last (southernmost) wagon by hand into the up siding. At this moment the down express passenger train approached and struck the middle wagons of the seventeen being propelled.
The passenger train
The passenger train was the 06:00 from Carlisle, the continuation of the 21:00 from London Euston. Due to an unrelated accident south of Carlisle, it was running late and left Carlisle at 07:50. It consisted of two tender engines and 18 trailing vehicles.
It made its journey in the ordinary way and passed Kirtlebridge distant signal at "clear" but on rounding the right-hand curve past an overbridge, the fireman of the leading engine saw the wagons of the goods train partly obstructing the line ahead. He thought he said to the driver, "Pull up!" but the train was running at 40 mph (65 km/h) and the train was only a short distance from the obstruction; the collision followed inevitably.
The leading engine came to rest across the up line, and was turned so as to face south. Its tender mounted the platform, and the second engine came to rest in its proper alignment. The rails were "torn away" by the first engine and the coaching vehicles were considerably telescoped as they overran the derailed engine.
Of the fatalities, several persons died instantly, but many of the injured died "within an hour of the accident, or on their being taken out of the débris". Henry Tyler reported that the engine driver and ten passengers were killed, and fifteen injured. One further person died of injuries after Tyler made his report.
The signal box
The signal box was located to the north of the passenger platforms, and controlled the junction with the Solway line. The down main line home signal was at the converging junction there, and there was a down main line distant signal on the approach side.
There were several sidings in the Solway part of the station, controlled from the signal box, but the sidings in the main line were located south of the station and were not operated from the signal box; moreover they were on the approach side of the home signal.
Although the electric telegraph system of signalling had been installed on the Solway line, there was no block system on the main line and the signalman had no means of communicating with other main line signalboxes.
The signalman did not have a clear view of the siding connections.
The system of work
It is evident that there was no safe system of work in force. The signalman operated his main line signals independently of the operation of the siding and crossover points. The station master, named Corrie, was nominally responsible for the shunting arrangements, but he seems to have limited this to directing what wagons were to be taken on rather than working with the signalman. He was apparently oblivious of the need to consider the approaching express train. Tyler commented:
During these shunting operations, the goods-engine driver took his instructions from the goods guard, but the latter was acting principally on his own responsibility. The only communication, according to the guard, that passed between him and any person at the station was shortly after his arrival, when the station-master asked him what he was shunting for, and he replied, "The 6.00 a.m. passenger train from Carlisle".
The signalman on duty in the cabin at the north of the station saw the goods train arrive at 7.55, and immediately set his home and distant-signals to danger to protect it. He noticed that this train was shunted from the down to the up line, but it was done without any communication with him.
In 1872 modern notions of a safe system of work did not exist, and the management of the Caledonian Railway evidently thought it adequate to rely on the common sense of the local staff. The station master set about ordering shunting movements fouling the main lines without any liaison with the signalman, and it is clear that this had become a routine method of working, relying on assumptions about the running of other trains. Normally the express passenger train would have passed Kirtlebridge well before the goods train required to shunt. On this occasion the delay to it earlier in its journey meant that the unsafe working led to tragedy.
The aftermath
The site of the collision was clearly a scene of death and injury. "A large staff of medical men were telegraphed for" and a doctor and a nurse on the train did much to alleviate immediate suffering.
Train working was over the Glasgow and South Western Railway route via Dumfries and then the Dumfries to Lockerbie branch line, for the remainder of the day.
The station master Corrie was arrested and charged with culpable homicide (i.e. manslaughter), although he was reported to have been released on bail by 7 October. The inspector of permanent way, Gilmour, was then sought by the police on a charge of murder allegedly committed at Shotts the day before the accident.
At this time the Railway Inspectorate section of the Board of Trade were pursuing a policy of urging the railway companies to fit interlocking and the block system on their lines; Tyler repeated this insistence in his report. Proper interlocking would have prevented the clearing of the main signals when the crossover was open; a block system would have given the signalman the means of ascertaining the approach of trains, and the means of refusing the approach if his station was blocked by shunting operations.
The Times newspaper also demanded the introduction of improved couplings and buffing gear between the coaches so as to reduce the risk of telescoping.
References
Notes
See also
List of UK rail accidents by year
External links
Official accident report
Train collisions in Scotland
Railway accidents in 1872
1872 in Scotland
Transport in Dumfries and Galloway
History of Dumfriesshire
Accidents and incidents involving Caledonian Railway
October 1872 events
1872 disasters in the United Kingdom
|
```php
<?php
class Foo
{
public function bar()
{
return $this;
}
}
```
|
Ghosts of Modern Man are an alternative rock band that was formed in Regina, Saskatchewan in 1994.
Early days
In 1994, Jonah Krieser and Jamie Deal, along with drummer Chris McBennet, began playing together as Pillar. Throughout the late nineties, the group of young teenagers played locally in their hometown of Regina as well as at a number of festivals including NXNE, Canadian Music Week, and Molson DV8.
In 2001, Pillar independently released their debut album, Everyone is as Terrified as You Are. The album featured 10 tracks of what they referred to as "Alternative Emo Punk". Exclaim! gave Everyone… a mixed review. While praising the leadoff track, "Matter Of Time", as a "perfectly timed airy swell [that] gives way to an urgent full-band assault", the Exclaim! reviewer felt the remaining tracks suffered in comparison to its quality and that "Krieser's yells are inspired and highly developed, but his true skill is found in his toned-down singing voice".
National tour
In preparation for the extensive touring in support of the album, the band brought second guitarist Stacey Hahn on board to round out their live sound. The band decided to change their name following a legal threat from a Christian Rap-Metal band also named Pillar. The name, Ghosts of Modern Man, came from the subject matter of their songs and their concern about "the demise of modern man, modern civilization. How we just eat everything up and turn it into plastic".
With the new lineup and new name, the band began touring nationally and from 2002 to 2003 played over 200 shows across Canada. This touring schedule assisted them in selling out of the first pressing of the 2000 copies of their debut release. As part of their development into Ghosts of Modern Man, they chose not to re-press their first release but to instead wait until they could return to the studio with their new songs.
In July 2004, drummer Chris McBennet left the band and was replaced by Tristan Helgason. Helgason was a veteran of the Regina music scene when he joined, playing with Filmmaker and 400 Strong.
City of No Light
In the Spring of 2005, GOMM released the album City of No Light to positive reviews. The Winnipeg Sun gave a rating of 3.5 stars of 5 and wrote that their "searing blend of churning guitar, bristling impatience, tense dynamics, lyrical angst and anguished vocals ensures they'll please the punk purists" but also praised them as a possible punk future for expanding "their horizons by being unafraid of sweet harmonies, pretty melodies and the odd earnest ballad".
Chart agreed with the Sun's evaluation of playing "fast, loose and forever on the edge of the rules" of punk saying "while they do chaos great, GOMM are also quite adept at slowing things down." "The comparatively mellow 'Dust'", for example, "is a model of restraint and understatement when held against the band's otherwise abrasive, scattershot indie."
Band members
Jonah Krieser - Guitar, Vocals (1994–present)
Jamie Deal - Bass (1994–present)
Stacey Hahn - Guitar, Backing Vocals (2001–present)
Tristan Helgason - Drums (2004–present)
Former members
Chris McBennet - Drums (1994-2004)
Discography
Albums
Everyone is as Terrified as You Are as Pillar (2001)
City of No Light (2005)
Music videos
"Sleeping At The Switch" (2005)
See also
List of bands from Canada
References
Further reading
External links
Ghosts of Modern Man on Myspace
Ghosts of Modern Man at PureVolume
Smallman Records
Canadian alternative rock groups
Canadian punk rock groups
Musical groups established in 1994
1994 establishments in Saskatchewan
Musical groups from Regina, Saskatchewan
|
```yaml
machine:
node:
version: 7.4.0
services:
- docker
environment:
CLOUDSDK_CORE_DISABLE_PROMPTS: 1
dependencies:
override:
- sudo apt-get update
- sudo apt-get install curl libc6 libcurl3 zlib1g
- npm install
post:
- curl -LO path_to_url -s path_to_url
- chmod +x ./kubectl
- sudo mv ./kubectl /usr/local/bin/kubectl
test:
pre:
- docker build -t cloudboost/storage-analytics-service:3.0.$CIRCLE_BUILD_NUM .
override:
- echo "NO TESTS REQUIRED FOR storage-analytics-service"
deployment:
staging:
branch: staging
commands:
- docker build -t cloudboost/storage-analytics-service:staging .
- docker login --username $DOCKERUSERNAME --password $DOCKERPASSWORD --email $DOCKEREMAIL
- docker push cloudboost/storage-analytics-service:3.0.$CIRCLE_BUILD_NUM
- docker push cloudboost/storage-analytics-service:staging
- git clone path_to_url
- cd kube-cred && openssl enc -in config.enc -out config -d -aes256 -k $KUBE_ENC
- mkdir ~/.kube
- cd kube-cred && mv config ~/.kube/
- kubectl rolling-update cloudboost-sas-staging --image=cloudboost/storage-analytics-service:staging --image-pull-policy=Always
production:
branch: master
commands:
- docker build -t cloudboost/storage-analytics-service:latest .
- docker login --username $DOCKERUSERNAME --password $DOCKERPASSWORD --email $DOCKEREMAIL
- docker push cloudboost/storage-analytics-service:3.0.$CIRCLE_BUILD_NUM
- docker push cloudboost/storage-analytics-service:latest
- git clone path_to_url
- cd kube-cred && openssl enc -in config.enc -out config -d -aes256 -k $KUBE_ENC
- mkdir ~/.kube
- cd kube-cred && mv config ~/.kube/
- kubectl rolling-update cloudboost-sas --image=cloudboost/storage-analytics-service:latest --image-pull-policy=Always
```
|
Brunia noduliflora, commonly called the cone stompie in English or in Afrikaans, is an evergreen shrub native to South Africa.
Description
Brunia noduliflora has a woody rootstock from which many stems sprout. Their ericoid leaves are stalkless and resemble triangular or lance-shaped overlapping scales. Their spherical, cream inflorescences have long stamens, giving them a "fluffy" appearance. These flowers are short-lived, but their globose grey-brown seedheads are more persistent.
Range
Brunia noduliflora is endemic to the southern and southwestern Cape of Africa. It is common from the Olifants River Mountains to Piketberg, the Cape Peninsula, Jonkershoek, Hottentots Holland Mountains, and the Kogelberg through to the Hermanus and Elim. It can also be found around the Van Stadens Mountains and around Uitenhage.
Habitat
This shrub is found on hills and rocky sandstone slopes.
Ecology
Brunia noduliflora is endemic to fynbos grassland where periodic fires are common. A fire-adapted plant, it has two strategies for surviving fires - reseeding and resprouting. Its underground woody rootstock, or lignotuber, resprouts the following year during autumn, while seeds retained in its seedheads are dispersed after being released by burning.
Etymology
The generic name Brunia may honor either Cornelius Brun, an apothecary and contemporary of Linnaeus, or the ship surgeon and botanical collector Alexander Brown. The specific epithet noduliflora is derived from Latin and describes its flowering habit - "nodulus" meaning "knot" and "flos" meaning flower - thus, "knotted flowers".
Taxonomy
Horticulture
B. noduliflora, being a serotinous plant, requires special treatment of its seeds to simulate post-fire conditions in order to germinate. Cuttings from its stems can also be propagated. It is best planted in well-draining fynbos gardens with acidic soil.
Uses
It is sometimes used in floral arrangement for its unusual seedheads and long-lasting foliage. It is available under the trade name "Spray Brunia".
References
Bruniaceae
Endemic flora of the Cape Provinces
Plants described in 2000
|
The Datong railway station () is a railway station of Beijing–Baotou railway and Datong–Puzhou railway. The station located in Datong, Shanxi, China.
History
The station opened in 1914.
See also
Datong South railway station
References
External links
Datong Railway Station(Taiyuan Railway Bureau)
Railway stations in Shanxi
Railway stations in China opened in 1914
|
```xml
<?xml version="1.0" encoding="utf-8" ?>
<controls:TestContentPage
xmlns="path_to_url"
xmlns:controls="clr-namespace:Xamarin.Forms.Controls"
xmlns:x="path_to_url"
xmlns:d="path_to_url"
xmlns:mc="path_to_url"
mc:Ignorable="d"
x:Class="Xamarin.Forms.Controls.Issues.Issue9588"
Title="Issue 9588">
<ContentPage.Content>
<StackLayout>
<Label
BackgroundColor="Black"
TextColor="White"
Text="If you can swipe the test passed."/>
<SwipeView>
<SwipeView.RightItems>
<SwipeItems>
<SwipeItem
Text="Favorite"
BackgroundColor="LightGreen"/>
<SwipeItem
Text="Delete"
BackgroundColor="LightPink"/>
</SwipeItems>
</SwipeView.RightItems>
<Frame>
<Grid
HeightRequest="60"
WidthRequest="300"
BackgroundColor="LightGray">
<Label
Text="Swipe left"
HorizontalOptions="Center"
VerticalOptions="Center" />
</Grid>
</Frame>
</SwipeView>
</StackLayout>
</ContentPage.Content>
</controls:TestContentPage>
```
|
```xml
import { TemplateRef } from '@angular/core';
export interface IListItem {
text?: string;
template?: TemplateRef<any>;
}
```
|
Steve DuBerry is a British Grammy Award nominated songwriter and record producer, co-writer of Tina Turner's "I Don't Wanna Fight" (along with Lulu and her brother Billy Lawrie). DuBerry has also written and produced songs for Tylah Yaweh, Blue, Jackie Jackson, Dominque Young Unique, Simon Webbe, Paulini, Chris De Burgh, Heather Small, Joe Cocker, Liberty X, Cliff Richard, and Marvin and Tamara.
He has composed and produced numerous major television titles, including Football Italia, World Rally, Channel 4's Horse Racing and FA Cup Soccer.
DuBerry has received 5 BMI awards, an Ivor Novello Award nomination, a Grammy Award nomination, and has received a BMI 2 Million Play award.
He is currently working with the Jacksons, Shawn Pereira and British band Blue.
References
Grammy nominated
Songwriting credits
Songwriting credit
External links
Steve DuBerry official website
Living people
British male songwriters
Year of birth missing (living people)
|
The Robertson–Webb protocol is a protocol for envy-free cake-cutting which is also near-exact. It has the following properties:
It works for any number (n) of partners.
It works for any set of weights representing different entitlements of the partners.
The pieces are not necessarily connected, i.e. each partner might receive a collection of small "crumbs".
The number of queries is finite but unbounded – it is not known in advance how many queries will be needed.
The protocol was developed by Jack M. Robertson and William A. Webb. It was first published in 1997 and later in 1998.
Problem definition
A cake C has to be divided among n agents. Each agent i has:
A value-measure Vi on subsets of C;
A weight wi representing the fraction of C to which the agent is entitled.
The sum of all wi is 1. If all agents have the same rights, then wi = 1/n for all i, but in general the weights may be different.
It is required to partition C into n subsets, not necessarily connected, such that, for every two agents i and h:So i does not envy j when taking their different entitlements into account.
Details
The main difficulty in designing an envy-free procedure for n > 2 agents is that the problem is not "divisible". I.e., if we divide half of the cake among n/2 agents in an envy-free manner, we cannot just let the other n/2 agents divide the other half in the same manner, because this might cause the first group of n/2 agents to be envious (e.g., it is possible that A and B both believe they got 1/2 of their half which is 1/4 of the entire cake; C and D also believe the same way; but, A believes that C actually got the entire half while D got nothing, so A envies C).
The Robertson–Webb protocol addresses this difficulty by requiring that the division is not only envy-free but also near-exact. The recursive part of the protocol is the following subroutine.
Inputs
Any piece of cake X;
Any ε > 0;
n players, A1, …, An;
m ≤ n players which are identified as "active players", A1, …, Am (the other n − m players are identified as "watching players");
Any set of m positive weights w1, …, wm;
Output
A partition of X to pieces X1, …, Xm, assigned to the m active players, such that:
For every active player i and every other player h (active or watching):So agent i does not envy agent h when taking their different entitlements into account.
The division is ε-near-exact with the given weights among all n players – both active and watching.
Procedure
Note: the presentation here is informal and simplified. A more accurate presentation is given in the book.
Use a near-exact division procedure on X and get a partition which all n players view as ε-near-exact with weights w1, …, wm.
Let one of the active players (e.g. A1) cut the pieces such that the division is exact for him, i.e. for every j: V1(Xj)/V1(X) = wj.
If all other active players agree with the cutter, then just give piece Xi to active player Ai. This division is envy-free among the active players, so we are done.
Otherwise, there is some piece P on which there is disagreement among the active players. By cutting P to smaller pieces if necessary, we may bound the disagreement such that all players agree that: V(P)/V(X) < ε.
Split the active players to two camps: the "optimists" who think that P is more valuable, and the "pessimists" who think that P is less valuable. Let δ be the difference between the values, such that for every optimist i and every pessimist j: Vi(P)/Vi(X) – Vj(P)/Vj(X) > δ.
Divide the remaining cake, X − P, into pieces Q and R, such that the division is near-exact among all n players.
Assign P ∪ Q to the optimists. Because they believe that P is valuable, they necessarily believe that P ∪ Q is sufficiently valuable to more than cover their due share.
Assign R to the pessimists. Because they believe that P is less valuable, they necessarily believe that the remainder, R, is sufficiently valuable to more than cover their due share.
At this point we have partitioned the active players to two camps, each collectively claiming complementary portions of the cake and each camp is more than satisfied with their collective portion.
It remains to divide each portion of the cake to the players in its camp. This is done by two recursive applications of the procedure:
Recursively partition P ∪ Q among the optimists (i.e. the optimists are active and all other players are only watching).
Recursively partition R among the pessimists.
In both applications, the near-exactness factor should be at most δ. Because the resulting partition is δ-near-exact among all n players, the partition among the optimists doesn't cause envy among the pessimists and vice versa. Thus the over-all division is both envy-free and near-exact.
See also
Brams–Taylor protocol – another envy-free protocol with disconnected pieces and finite unbounded runtime. Does not guarantee near-exactness.
Simmons–Su protocols – envy-free protocol which guarantees connected pieces but the runtime might be infinite. Does not guarantee near-exactness.
Robertson–Webb query model
References
Fair division protocols
Cake-cutting
|
```java
/*
*
*
* path_to_url
*
* Unless required by applicable law or agreed to in writing, software
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/
package com.haulmont.cuba.web.widgets;
import com.vaadin.ui.Component;
import com.vaadin.ui.components.colorpicker.ColorPickerSelect;
public class CubaColorPickerSelect extends ColorPickerSelect {
protected String allCaption;
protected String redCaption;
protected String greenCaption;
protected String blueCaption;
@Override
protected Component initContent() {
Component component = super.initContent();
range.setTextInputAllowed(false);
range.setItemCaptionGenerator(item -> {
switch (item) {
case ALL:
return allCaption;
case RED:
return redCaption;
case GREEN:
return greenCaption;
case BLUE:
return blueCaption;
}
return null;
});
return component;
}
public void setAllCaption(String allCaption) {
this.allCaption = allCaption;
updateSelectedItemCaption();
}
public void setRedCaption(String redCaption) {
this.redCaption = redCaption;
updateSelectedItemCaption();
}
public void setGreenCaption(String greenCaption) {
this.greenCaption = greenCaption;
updateSelectedItemCaption();
}
public void setBlueCaption(String blueCaption) {
this.blueCaption = blueCaption;
updateSelectedItemCaption();
}
protected void updateSelectedItemCaption() {
if (range != null && range.getSelectedItem().isPresent()) {
range.updateSelectedItemCaption(range.getSelectedItem().get());
}
}
}
```
|
This is a list of the free-to-air channels that are currently available via satellite from SES Astra satellites (Astra 2E/2F/2G) at orbital position 28.2°E, serving Ireland and the United Kingdom. Sky and Freesat use these satellites to deliver their channels. If one was to change providers between Sky and Freesat, one would not require a realignment of the satellite dish.
Key
Channels with SD and HD versions
Channel numbers sometimes differ between HD boxes and standard boxes. On HD boxes, HD channels are generally given precedence over the SD counterpart (though this does not apply in all regions of the UK in some cases). For this article, it is assumed that the subscriber has a Sky+ HD or Sky Q box but does not subscribe to the HD pack.
Channel sections
Note: Channel numbers listed for Sky are for the United Kingdom only. In Ireland, some channels may not be on the channel number listed, or may not be present on the EPG and require manual tuning. Officially, Freesat is not available in Ireland.
Entertainment and documentaries
Local
Regional and interactive
Notes for the Interactive section:
Temp Temporary channel for events such as the Olympics, Wimbledon Championships, music events, etc. These channels are not always active.
Movies
Notes for the Movies section:
IreEnc In the Ireland advertising region, these channels are encrypted and require a subscription. Therefore, these frequency values are omitted.
Music
Sports
News
Religion
Kids
Shopping
International
Radio
Information
References
Sources
King Of Sat
LyngSat
Free-to-air channels in the UK
Broadcasting lists
|
Events from the year 1999 in the United Arab Emirates.
Incumbents
President: Zayed bin Sultan Al Nahyan
Prime Minister: Maktoum bin Rashid Al Maktoum
Establishments
Abu Dhabi Falcon Hospital.
References
Years of the 20th century in the United Arab Emirates
United Arab Emirates
United Arab Emirates
1990s in the United Arab Emirates
|
The Quality Assurance Authority for Education and Training (QAAET) is the governmental education quality assurance authority in Bahrain.
As a part of the National Education and Training Reform Project, which is an initiative of the Crown Prince, a decision was taken to ensure that there is quality of education at all levels within the Kingdom of Bahrain. The Quality Assurance Authority for Education & Training was established by the Royal Decree No. 32 of 2008 amended by the Royal Decree No. 6 of 2009. In terms of Article (4) of the decree, its mandate is to ‘review the quality of the performance of education and training institutions in light of the guiding indicators developed by the Authority’. The Authority is also required to publish review reports as well as to report annually on the status of education within the Kingdom; this includes findings as well as improvements that have occurred as a result of the Authority’s activities.
QAAET is an independent authority that carries out its mandated under the directions of His Excellency Shaikh Khalid bin Abdulla Al Khalifa, Deputy Prime Minister, Chairman of the Quality Assurance Authority for Education and Training. The Authority is regulated by the Council of Ministers and reports to it.
To meet this mandate, four units were established within the QAAET: the Schools Review Unit, the Vocational Review Unit, the Higher Education Review Unit, and the National Examinations Unit.
QAAET is a member of the Arab Network for Quality Assurance in Higher Education (ANQAHE).
Schools Review Unit
The Schools Review Unit is responsible for evaluating and reporting on the quality of provision in schools, establishing success measures, spreading best practice and making recommendations for school improvement.
The Unit requires each school to provide a post- Review Action Plan which is signed off by the Ministry. The Action Plan should be received 6 weeks after the school receives the draft review report. After signing off the Action Plan, the Ministry should support and monitor improvement.
Vocational Review Unit
The Vocational Review Unit identifies strengths and areas for improvement in vocational education and training providers, focuses on the achievement and experience of learners, recommends how weaknesses might be addressed, promotes improvement and a culture of self-evaluation and accountability among providers, spreads best practices and offers policy advice to key stakeholders.
Higher Education Review Unit
The Higher Education Review Unit conducts reviews into the quality assurance arrangements of higher education institutions and identifies areas in need of improvement and areas of strength, conducts programme reviews within higher education institutions, and ensures that higher education providers are publicly accountable.
Providers are required to submit Improvement Plans to the Unit 3 months after publication of reports, which address the findings of the review reports irrespective of whether the review was about the institution’s quality assurance arrangements as a whole or regarding a particular programme.
National Examinations Unit
The National Examinations Unit is responsible for independently and nationwide examine the four core subjects of Mathematics, Science, Arabic and English in Grades 3, 6 and 9 to evaluate learning progress against the national curriculum, publish information on student, class and school performance, establish and implement examination requirements for Grade 12, and work with different stakeholders to improve education in Bahrain.
See also
Arab Network for Quality Assurance in Higher Education (ANQAHE)
Ministry of Education, Bahrain
References
External links
QAAET website
QAAET website
Organizations established in 2008
Organisations based in Manama
Education in Bahrain
Quality assurance organizations
2008 establishments in Bahrain
|
```c++
/*********************************************************************************
* OKVIS - Open Keyframe-based Visual-Inertial SLAM
*
* 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 Autonomous Systems Lab / ETH Zurich 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.
*
* Created on: Dec 30, 2014
* Author: Stefan Leutenegger (s.leutenegger@imperial.ac.uk)
*********************************************************************************/
/**
* @file HomogeneousPointError.hpp
* @brief Header file for the HomogeneousPointError class.
* @author Stefan Leutenegger
*/
#ifndef INCLUDE_OKVIS_CERES_HOMOGENEOUSPOINTERROR_HPP_
#define INCLUDE_OKVIS_CERES_HOMOGENEOUSPOINTERROR_HPP_
#include <vector>
#include <ceres/ceres.h>
#include <Eigen/Core>
#include <okvis/ceres/ErrorInterface.hpp>
#include <okvis/assert_macros.hpp>
/// \brief okvis Main namespace of this package.
namespace okvis {
/// \brief ceres Namespace for ceres-related functionality implemented in okvis.
namespace ceres {
/// \brief Absolute error of a homogeneous point (landmark).
class HomogeneousPointError : public ::ceres::SizedCostFunction<
3 /* number of residuals */, 4 /* size of first parameter */>,
public ErrorInterface {
public:
EIGEN_MAKE_ALIGNED_OPERATOR_NEW
OKVIS_DEFINE_EXCEPTION(Exception,std::runtime_error)
/// \brief The base class type.
typedef ::ceres::SizedCostFunction<3, 4> base_t;
/// \brief Number of residuals (3)
static const int kNumResiduals = 3;
/// \brief The information matrix type (3x3).
typedef Eigen::Matrix<double, 3, 3> information_t;
/// \brief The covariance matrix type (same as information).
typedef Eigen::Matrix<double, 3, 3> covariance_t;
/// \brief Default constructor.
HomogeneousPointError();
/// \brief Construct with measurement and information matrix.
/// @param[in] measurement The measurement.
/// @param[in] information The information (weight) matrix.
HomogeneousPointError(const Eigen::Vector4d & measurement,
const information_t & information);
/// \brief Construct with measurement and variance.
/// @param[in] measurement The measurement.
/// @param[in] variance The variance of the measurement, i.e. information_ has variance in its diagonal.
HomogeneousPointError(const Eigen::Vector4d & measurement, double variance);
/// \brief Trivial destructor.
virtual ~HomogeneousPointError() {
}
// setters
/// \brief Set the measurement.
/// @param[in] measurement The measurement.
void setMeasurement(const Eigen::Vector4d & measurement) {
measurement_ = measurement;
}
/// \brief Set the information.
/// @param[in] information The information (weight) matrix.
void setInformation(const information_t & information);
// getters
/// \brief Get the measurement.
/// \return The measurement vector.
const Eigen::Vector4d& measurement() const {
return measurement_;
}
/// \brief Get the information matrix.
/// \return The information (weight) matrix.
const information_t& information() const {
return information_;
}
/// \brief Get the covariance matrix.
/// \return The inverse information (covariance) matrix.
const information_t& covariance() const {
return covariance_;
}
/**
* @brief This evaluates the error term and additionally computes the Jacobians.
* @param parameters Pointer to the parameters (see ceres)
* @param residuals Pointer to the residual vector (see ceres)
* @param jacobians Pointer to the Jacobians (see ceres)
* @return success of th evaluation.
*/
virtual bool Evaluate(double const* const * parameters, double* residuals,
double** jacobians) const;
/**
* @brief EvaluateWithMinimalJacobians This evaluates the error term and additionally computes
* the Jacobians in the minimal internal representation.
* @param parameters Pointer to the parameters (see ceres)
* @param residuals Pointer to the residual vector (see ceres)
* @param jacobians Pointer to the Jacobians (see ceres)
* @param jacobiansMinimal Pointer to the minimal Jacobians (equivalent to jacobians).
* @return Success of the evaluation.
*/
virtual bool EvaluateWithMinimalJacobians(double const* const * parameters,
double* residuals,
double** jacobians,
double** jacobiansMinimal) const;
// sizes
/// \brief Residual dimension.
size_t residualDim() const {
return kNumResiduals;
}
/// \brief Number of parameter blocks.
size_t parameterBlocks() const {
return base_t::parameter_block_sizes().size();
}
/// \brief Dimension of an individual parameter block.
/// @param[in] parameterBlockId ID of the parameter block of interest.
/// \return The dimension.
size_t parameterBlockDim(size_t parameterBlockId) const {
return base_t::parameter_block_sizes().at(parameterBlockId);
}
/// @brief Return parameter block type as string
virtual std::string typeInfo() const {
return "HomogeneousPointError";
}
protected:
// the measurement
Eigen::Vector4d measurement_; ///< The (4D) measurement.
// weighting related
information_t information_; ///< The 4x4 information matrix.
information_t _squareRootInformation; ///< The 4x4 square root information matrix.
covariance_t covariance_; ///< The 4x4 covariance matrix.
};
} // namespace ceres
} // namespace okvis
#endif /* INCLUDE_OKVIS_CERES_HOMOGENEOUSPOINTERROR_HPP_ */
```
|
```c++
// This file is part of libigl, a simple c++ geometry processing library.
//
//
// v. 2.0. If a copy of the MPL was not distributed with this file, You can
// obtain one at path_to_url
#include "ambient_occlusion.h"
#include "random_dir.h"
#include "ray_mesh_intersect.h"
#include "EPS.h"
#include "Hit.h"
#include "parallel_for.h"
#include <functional>
#include <vector>
#include <algorithm>
template <
typename DerivedP,
typename DerivedN,
typename DerivedS >
IGL_INLINE void igl::ambient_occlusion(
const std::function<
bool(
const Eigen::Vector3f&,
const Eigen::Vector3f&)
> & shoot_ray,
const Eigen::PlainObjectBase<DerivedP> & P,
const Eigen::PlainObjectBase<DerivedN> & N,
const int num_samples,
Eigen::PlainObjectBase<DerivedS> & S)
{
using namespace Eigen;
const int n = P.rows();
// Resize output
S.resize(n,1);
// Embree seems to be parallel when constructing but not when tracing rays
const MatrixXf D = random_dir_stratified(num_samples).cast<float>();
const auto & inner = [&P,&N,&num_samples,&D,&S,&shoot_ray](const int p)
{
const Vector3f origin = P.row(p).template cast<float>();
const Vector3f normal = N.row(p).template cast<float>();
int num_hits = 0;
for(int s = 0;s<num_samples;s++)
{
Vector3f d = D.row(s);
if(d.dot(normal) < 0)
{
// reverse ray
d *= -1;
}
if(shoot_ray(origin,d))
{
num_hits++;
}
}
S(p) = (double)num_hits/(double)num_samples;
};
parallel_for(n,inner,1000);
}
template <
typename DerivedV,
int DIM,
typename DerivedF,
typename DerivedP,
typename DerivedN,
typename DerivedS >
IGL_INLINE void igl::ambient_occlusion(
const igl::AABB<DerivedV,DIM> & aabb,
const Eigen::PlainObjectBase<DerivedV> & V,
const Eigen::PlainObjectBase<DerivedF> & F,
const Eigen::PlainObjectBase<DerivedP> & P,
const Eigen::PlainObjectBase<DerivedN> & N,
const int num_samples,
Eigen::PlainObjectBase<DerivedS> & S)
{
const auto & shoot_ray = [&aabb,&V,&F](
const Eigen::Vector3f& _s,
const Eigen::Vector3f& dir)->bool
{
Eigen::Vector3f s = _s+1e-4*dir;
igl::Hit hit;
return aabb.intersect_ray(
V,
F,
s .cast<typename DerivedV::Scalar>().eval(),
dir.cast<typename DerivedV::Scalar>().eval(),
hit);
};
return ambient_occlusion(shoot_ray,P,N,num_samples,S);
}
template <
typename DerivedV,
typename DerivedF,
typename DerivedP,
typename DerivedN,
typename DerivedS >
IGL_INLINE void igl::ambient_occlusion(
const Eigen::PlainObjectBase<DerivedV> & V,
const Eigen::PlainObjectBase<DerivedF> & F,
const Eigen::PlainObjectBase<DerivedP> & P,
const Eigen::PlainObjectBase<DerivedN> & N,
const int num_samples,
Eigen::PlainObjectBase<DerivedS> & S)
{
if(F.rows() < 100)
{
// Super naive
const auto & shoot_ray = [&V,&F](
const Eigen::Vector3f& _s,
const Eigen::Vector3f& dir)->bool
{
Eigen::Vector3f s = _s+1e-4*dir;
igl::Hit hit;
return ray_mesh_intersect(s,dir,V,F,hit);
};
return ambient_occlusion(shoot_ray,P,N,num_samples,S);
}
AABB<DerivedV,3> aabb;
aabb.init(V,F);
return ambient_occlusion(aabb,V,F,P,N,num_samples,S);
}
#ifdef IGL_STATIC_LIBRARY
// Explicit template instantiation
// generated by autoexplicit.sh
template void igl::ambient_occlusion<Eigen::Matrix<double, -1, -1, 0, -1, -1>, Eigen::Matrix<double, -1, -1, 0, -1, -1>, Eigen::Matrix<double, -1, 1, 0, -1, 1> >(std::function<bool (Eigen::Matrix<float, 3, 1, 0, 3, 1> const&, Eigen::Matrix<float, 3, 1, 0, 3, 1> const&)> const&, Eigen::PlainObjectBase<Eigen::Matrix<double, -1, -1, 0, -1, -1> > const&, Eigen::PlainObjectBase<Eigen::Matrix<double, -1, -1, 0, -1, -1> > const&, int, Eigen::PlainObjectBase<Eigen::Matrix<double, -1, 1, 0, -1, 1> >&);
// generated by autoexplicit.sh
template void igl::ambient_occlusion<Eigen::Matrix<double, -1, 3, 0, -1, 3>, Eigen::Matrix<double, -1, 3, 0, -1, 3>, Eigen::Matrix<double, -1, 1, 0, -1, 1> >(std::function<bool (Eigen::Matrix<float, 3, 1, 0, 3, 1> const&, Eigen::Matrix<float, 3, 1, 0, 3, 1> const&)> const&, Eigen::PlainObjectBase<Eigen::Matrix<double, -1, 3, 0, -1, 3> > const&, Eigen::PlainObjectBase<Eigen::Matrix<double, -1, 3, 0, -1, 3> > const&, int, Eigen::PlainObjectBase<Eigen::Matrix<double, -1, 1, 0, -1, 1> >&);
// generated by autoexplicit.sh
template void igl::ambient_occlusion<Eigen::Matrix<double, 1, 3, 1, 1, 3>, Eigen::Matrix<double, 1, 3, 1, 1, 3>, Eigen::Matrix<double, -1, 1, 0, -1, 1> >(std::function<bool (Eigen::Matrix<float, 3, 1, 0, 3, 1> const&, Eigen::Matrix<float, 3, 1, 0, 3, 1> const&)> const&, Eigen::PlainObjectBase<Eigen::Matrix<double, 1, 3, 1, 1, 3> > const&, Eigen::PlainObjectBase<Eigen::Matrix<double, 1, 3, 1, 1, 3> > const&, int, Eigen::PlainObjectBase<Eigen::Matrix<double, -1, 1, 0, -1, 1> >&);
template void igl::ambient_occlusion<Eigen::Matrix<double, -1, -1, 0, -1, -1>, Eigen::Matrix<double, -1, -1, 0, -1, -1>, Eigen::Matrix<double, -1, -1, 0, -1, -1> >(std::function<bool (Eigen::Matrix<float, 3, 1, 0, 3, 1> const&, Eigen::Matrix<float, 3, 1, 0, 3, 1> const&)> const&, Eigen::PlainObjectBase<Eigen::Matrix<double, -1, -1, 0, -1, -1> > const&, Eigen::PlainObjectBase<Eigen::Matrix<double, -1, -1, 0, -1, -1> > const&, int, Eigen::PlainObjectBase<Eigen::Matrix<double, -1, -1, 0, -1, -1> >&);
#endif
```
|
Magnussen is a surname. Notable people with the surname include:
Arne Magnussen (1884–1970), Norwegian trade unionist, newspaper editor and politician
Billy Magnussen (born 1985), American actor
Bjørn Magnussen (born 1998), Norwegian speed skater
Davur Juul Magnussen, Faroese trombonist
Einar Magnussen (1931–2004), Norwegian economist and politician
Fritz Magnussen (1878–1920), Danish film director and screenwriter
Harro Magnussen (1861–1908), German sculptor
James Magnussen (born 1991), Australian swimmer
Jan Magnussen (born 1973), Danish racing driver
Jon Magnussen (born 1959), Norwegian academic
Karen Magnussen, OC (born 1952), Canadian figure skater
Karin Magnussen (1908–1997), German biologist, teacher and researcher
Kevin Magnussen (born 1992), Danish racing driver
Ryan Magnussen, American businessperson and media entrepreneur
Trond Magnussen (born 1973), Norwegian ice hockey player
Ulf Magnussen (born 1946), Norwegian handball player
Fictional characters
Charles Augustus Magnussen, a character in the television series Sherlock
See also
Murder of Martine Vik Magnussen involves the rape and murder of a 23-year-old Norwegian female business student, Martine Vik Magnussen
Magnusson (disambiguation)
Patronymic surnames
Surnames of Scandinavian origin
|
```shell
#!/usr/bin/env bash
#
# 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
set -ex
ARCH=$(uname -m)
if [ "$ARCH" != "x86_64" ]; then
exit 0
fi
apt update
apt install -y attr ceph-common ceph-fuse ceph-mds ceph-mgr ceph-mon ceph-osd
```
|
The women's 100 metre butterfly event at the 11th FINA World Swimming Championships (25m) took place 15 – 16 December 2012 at the Sinan Erdem Dome.
Records
Prior to this competition, the existing world and championship records were as follows.
No new records were set during this competition.
Results
Heats
Semifinals
Final
The final was held at 19:49.
References
Butterfly 100 metre, women's
World Short Course Swimming Championships
2012 in women's swimming
|
The 9th Senate district of Wisconsin is one of 33 districts in the Wisconsin State Senate. Located in eastern Wisconsin, the district comprises most of Manitowoc and Sheboygan counties, as well as part of eastern Calumet County.
Current elected officials
Devin LeMahieu is the senator representing the 9th district. He was first elected in the 2014 general election.
Each Wisconsin State Senate district is composed of three Wisconsin State Assembly districts. The 9th Senate district comprises the 25th, 26th, and 27th Assembly districts. The current representatives of those districts are:
Assembly District 25: Paul Tittl (R–Manitowoc)
Assembly District 26: Terry Katsma (R–Oostburg)
Assembly District 27: Amy Binsfeld (R–Mosel)
The district is also located within Wisconsin's 6th congressional district, which is represented by U.S. Representative Glenn Grothman.
Past senators
Note: the boundaries of districts have changed repeatedly over history. Previous politicians of a specific numbered district have represented a completely different geographic area, due to redistricting.
The district has previously been represented by:
Notes
External links
9th Senate District, Senator Leibham in the Wisconsin Blue Book (2005–2006)
Joe Leibham official campaign site
Wisconsin Senate districts
Manitowoc County, Wisconsin
Sheboygan County, Wisconsin
Calumet County, Wisconsin
1848 establishments in Wisconsin
|
```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 formatter
import (
"bytes"
"fmt"
"github.com/google/go-jsonnet/ast"
)
type unparser struct {
buf bytes.Buffer
options Options
}
func (u *unparser) write(str string) {
u.buf.WriteString(str)
}
// fill Pretty-prints fodder.
// The crowded and separateToken params control whether single whitespace
// characters are added to keep tokens from joining together in the output.
// The intuition of crowded is that the caller passes true for crowded if the
// last thing printed would crowd whatever we're printing here. For example, if
// we just printed a ',' then crowded would be true. If we just printed a '('
// then crowded would be false because we don't want the space after the '('.
//
// If crowded is true, a space is printed after any fodder, unless
// separateToken is false or the fodder ended with a newline.
// If crowded is true and separateToken is false and the fodder begins with
// an interstitial, then the interstitial is prefixed with a single space, but
// there is no space after the interstitial.
// If crowded is false and separateToken is true then a space character
// is only printed when the fodder ended with an interstitial comment (which
// creates a crowded situation where there was not one before).
// If crowded is false and separateToken is false then no space is printed
// after or before the fodder, even if the last fodder was an interstitial.
func (u *unparser) fodderFill(fodder ast.Fodder, crowded bool, separateToken bool, final bool) {
var lastIndent int
for i, fod := range fodder {
skipTrailing := final && (i == (len(fodder) - 1))
switch fod.Kind {
case ast.FodderParagraph:
for i, l := range fod.Comment {
// Do not indent empty lines (note: first line is never empty).
if len(l) > 0 {
// First line is already indented by previous fod.
if i > 0 {
for i := 0; i < lastIndent; i++ {
u.write(" ")
}
}
u.write(l)
}
u.write("\n")
}
if !skipTrailing {
for i := 0; i < fod.Blanks; i++ {
u.write("\n")
}
for i := 0; i < fod.Indent; i++ {
u.write(" ")
}
}
lastIndent = fod.Indent
crowded = false
case ast.FodderLineEnd:
if len(fod.Comment) > 0 {
u.write(" ")
u.write(fod.Comment[0])
}
u.write("\n")
if !skipTrailing {
for i := 0; i < fod.Blanks; i++ {
u.write("\n")
}
for i := 0; i < fod.Indent; i++ {
u.write(" ")
}
}
lastIndent = fod.Indent
crowded = false
case ast.FodderInterstitial:
if crowded {
u.write(" ")
}
u.write(fod.Comment[0])
crowded = true
}
}
if separateToken && crowded {
u.write(" ")
}
}
func (u *unparser) fill(fodder ast.Fodder, crowded bool, separateToken bool) {
u.fodderFill(fodder, crowded, separateToken, false)
}
func (u *unparser) fillFinal(fodder ast.Fodder, crowded bool, separateToken bool) {
u.fodderFill(fodder, crowded, separateToken, true)
}
func (u *unparser) unparseSpecs(spec *ast.ForSpec) {
if spec.Outer != nil {
u.unparseSpecs(spec.Outer)
}
u.fill(spec.ForFodder, true, true)
u.write("for")
u.fill(spec.VarFodder, true, true)
u.write(string(spec.VarName))
u.fill(spec.InFodder, true, true)
u.write("in")
u.unparse(spec.Expr, true)
for _, cond := range spec.Conditions {
u.fill(cond.IfFodder, true, true)
u.write("if")
u.unparse(cond.Expr, true)
}
}
func (u *unparser) unparseParams(fodderL ast.Fodder, params []ast.Parameter, trailingComma bool, fodderR ast.Fodder) {
u.fill(fodderL, false, false)
u.write("(")
first := true
for _, param := range params {
if !first {
u.write(",")
}
u.fill(param.NameFodder, !first, true)
u.unparseID(param.Name)
if param.DefaultArg != nil {
u.fill(param.EqFodder, false, false)
u.write("=")
u.unparse(param.DefaultArg, false)
}
u.fill(param.CommaFodder, false, false)
first = false
}
if trailingComma {
u.write(",")
}
u.fill(fodderR, false, false)
u.write(")")
}
func (u *unparser) unparseFieldParams(field ast.ObjectField) {
m := field.Method
if m != nil {
u.unparseParams(m.ParenLeftFodder, m.Parameters, m.TrailingComma,
m.ParenRightFodder)
}
}
func (u *unparser) unparseFields(fields ast.ObjectFields, crowded bool) {
first := true
for _, field := range fields {
if !first {
u.write(",")
}
// An aux function so we don't repeat ourselves for the 3 kinds of
// basic field.
unparseFieldRemainder := func(field ast.ObjectField) {
u.unparseFieldParams(field)
u.fill(field.OpFodder, false, false)
if field.SuperSugar {
u.write("+")
}
switch field.Hide {
case ast.ObjectFieldInherit:
u.write(":")
case ast.ObjectFieldHidden:
u.write("::")
case ast.ObjectFieldVisible:
u.write(":::")
}
u.unparse(field.Expr2, true)
}
switch field.Kind {
case ast.ObjectLocal:
u.fill(field.Fodder1, !first || crowded, true)
u.write("local")
u.fill(field.Fodder2, true, true)
u.unparseID(*field.Id)
u.unparseFieldParams(field)
u.fill(field.OpFodder, true, true)
u.write("=")
u.unparse(field.Expr2, true)
case ast.ObjectFieldID:
u.fill(field.Fodder1, !first || crowded, true)
u.unparseID(*field.Id)
unparseFieldRemainder(field)
case ast.ObjectFieldStr:
u.unparse(field.Expr1, !first || crowded)
unparseFieldRemainder(field)
case ast.ObjectFieldExpr:
u.fill(field.Fodder1, !first || crowded, true)
u.write("[")
u.unparse(field.Expr1, false)
u.fill(field.Fodder2, false, false)
u.write("]")
unparseFieldRemainder(field)
case ast.ObjectAssert:
u.fill(field.Fodder1, !first || crowded, true)
u.write("assert")
u.unparse(field.Expr2, true)
if field.Expr3 != nil {
u.fill(field.OpFodder, true, true)
u.write(":")
u.unparse(field.Expr3, true)
}
}
first = false
u.fill(field.CommaFodder, false, false)
}
}
func (u *unparser) unparseID(id ast.Identifier) {
u.write(string(id))
}
func (u *unparser) unparse(expr ast.Node, crowded bool) {
if leftRecursive(expr) == nil {
u.fill(*expr.OpenFodder(), crowded, true)
}
switch node := expr.(type) {
case *ast.Apply:
u.unparse(node.Target, crowded)
u.fill(node.FodderLeft, false, false)
u.write("(")
first := true
for _, arg := range node.Arguments.Positional {
if !first {
u.write(",")
}
space := !first
u.unparse(arg.Expr, space)
u.fill(arg.CommaFodder, false, false)
first = false
}
for _, arg := range node.Arguments.Named {
if !first {
u.write(",")
}
space := !first
u.fill(arg.NameFodder, space, true)
u.unparseID(arg.Name)
space = false
u.write("=")
u.unparse(arg.Arg, space)
u.fill(arg.CommaFodder, false, false)
first = false
}
if node.TrailingComma {
u.write(",")
}
u.fill(node.FodderRight, false, false)
u.write(")")
if node.TailStrict {
u.fill(node.TailStrictFodder, true, true)
u.write("tailstrict")
}
case *ast.ApplyBrace:
u.unparse(node.Left, crowded)
u.unparse(node.Right, true)
case *ast.Array:
u.write("[")
first := true
for _, element := range node.Elements {
if !first {
u.write(",")
}
u.unparse(element.Expr, !first || u.options.PadArrays)
u.fill(element.CommaFodder, false, false)
first = false
}
if node.TrailingComma {
u.write(",")
}
u.fill(node.CloseFodder, len(node.Elements) > 0, u.options.PadArrays)
u.write("]")
case *ast.ArrayComp:
u.write("[")
u.unparse(node.Body, u.options.PadArrays)
u.fill(node.TrailingCommaFodder, false, false)
if node.TrailingComma {
u.write(",")
}
u.unparseSpecs(&node.Spec)
u.fill(node.CloseFodder, true, u.options.PadArrays)
u.write("]")
case *ast.Assert:
u.write("assert")
u.unparse(node.Cond, true)
if node.Message != nil {
u.fill(node.ColonFodder, true, true)
u.write(":")
u.unparse(node.Message, true)
}
u.fill(node.SemicolonFodder, false, false)
u.write(";")
u.unparse(node.Rest, true)
case *ast.Binary:
u.unparse(node.Left, crowded)
u.fill(node.OpFodder, true, true)
u.write(node.Op.String())
u.unparse(node.Right, true)
case *ast.Conditional:
u.write("if")
u.unparse(node.Cond, true)
u.fill(node.ThenFodder, true, true)
u.write("then")
u.unparse(node.BranchTrue, true)
if node.BranchFalse != nil {
u.fill(node.ElseFodder, true, true)
u.write("else")
u.unparse(node.BranchFalse, true)
}
case *ast.Dollar:
u.write("$")
case *ast.Error:
u.write("error")
u.unparse(node.Expr, true)
case *ast.Function:
u.write("function")
u.unparseParams(node.ParenLeftFodder, node.Parameters, node.TrailingComma, node.ParenRightFodder)
u.unparse(node.Body, true)
case *ast.Import:
u.write("import")
u.unparse(node.File, true)
case *ast.ImportStr:
u.write("importstr")
u.unparse(node.File, true)
case *ast.ImportBin:
u.write("importbin")
u.unparse(node.File, true)
case *ast.Index:
u.unparse(node.Target, crowded)
u.fill(node.LeftBracketFodder, false, false) // Can also be DotFodder
if node.Id != nil {
u.write(".")
u.fill(node.RightBracketFodder, false, false) // IdFodder
u.unparseID(*node.Id)
} else {
u.write("[")
u.unparse(node.Index, false)
u.fill(node.RightBracketFodder, false, false)
u.write("]")
}
case *ast.Slice:
u.unparse(node.Target, crowded)
u.fill(node.LeftBracketFodder, false, false)
u.write("[")
if node.BeginIndex != nil {
u.unparse(node.BeginIndex, false)
}
u.fill(node.EndColonFodder, false, false)
u.write(":")
if node.EndIndex != nil {
u.unparse(node.EndIndex, false)
}
if node.Step != nil || len(node.StepColonFodder) > 0 {
u.fill(node.StepColonFodder, false, false)
u.write(":")
if node.Step != nil {
u.unparse(node.Step, false)
}
}
u.fill(node.RightBracketFodder, false, false)
u.write("]")
case *ast.InSuper:
u.unparse(node.Index, true)
u.fill(node.InFodder, true, true)
u.write("in")
u.fill(node.SuperFodder, true, true)
u.write("super")
case *ast.Local:
u.write("local")
if len(node.Binds) == 0 {
panic("INTERNAL ERROR: local with no binds")
}
first := true
for _, bind := range node.Binds {
if !first {
u.write(",")
}
first = false
u.fill(bind.VarFodder, true, true)
u.unparseID(bind.Variable)
if bind.Fun != nil {
u.unparseParams(bind.Fun.ParenLeftFodder,
bind.Fun.Parameters,
bind.Fun.TrailingComma,
bind.Fun.ParenRightFodder)
}
u.fill(bind.EqFodder, true, true)
u.write("=")
u.unparse(bind.Body, true)
u.fill(bind.CloseFodder, false, false)
}
u.write(";")
u.unparse(node.Body, true)
case *ast.LiteralBoolean:
if node.Value {
u.write("true")
} else {
u.write("false")
}
case *ast.LiteralNumber:
u.write(node.OriginalString)
case *ast.LiteralString:
switch node.Kind {
case ast.StringDouble:
u.write("\"")
// The original escape codes are still in the string.
u.write(node.Value)
u.write("\"")
case ast.StringSingle:
u.write("'")
// The original escape codes are still in the string.
u.write(node.Value)
u.write("'")
case ast.StringBlock:
u.write("|||\n")
if node.Value[0] != '\n' {
u.write(node.BlockIndent)
}
for i, r := range node.Value {
// Formatter always outputs in unix mode.
if r == '\r' {
continue
}
u.write(string(r))
if r == '\n' && (i+1 < len(node.Value)) && node.Value[i+1] != '\n' {
u.write(node.BlockIndent)
}
}
u.write(node.BlockTermIndent)
u.write("|||")
case ast.VerbatimStringDouble:
u.write("@\"")
// Escapes were processed by the parser, so put them back in.
for _, r := range node.Value {
if r == '"' {
u.write("\"\"")
} else {
u.write(string(r))
}
}
u.write("\"")
case ast.VerbatimStringSingle:
u.write("@'")
// Escapes were processed by the parser, so put them back in.
for _, r := range node.Value {
if r == '\'' {
u.write("''")
} else {
u.write(string(r))
}
}
u.write("'")
}
case *ast.LiteralNull:
u.write("null")
case *ast.Object:
u.write("{")
u.unparseFields(node.Fields, u.options.PadObjects)
if node.TrailingComma {
u.write(",")
}
u.fill(node.CloseFodder, len(node.Fields) > 0, u.options.PadObjects)
u.write("}")
case *ast.ObjectComp:
u.write("{")
u.unparseFields(node.Fields, u.options.PadObjects)
if node.TrailingComma {
u.write(",")
}
u.unparseSpecs(&node.Spec)
u.fill(node.CloseFodder, true, u.options.PadObjects)
u.write("}")
case *ast.Parens:
u.write("(")
u.unparse(node.Inner, false)
u.fill(node.CloseFodder, false, false)
u.write(")")
case *ast.Self:
u.write("self")
case *ast.SuperIndex:
u.write("super")
u.fill(node.DotFodder, false, false)
if node.Id != nil {
u.write(".")
u.fill(node.IDFodder, false, false)
u.unparseID(*node.Id)
} else {
u.write("[")
u.unparse(node.Index, false)
u.fill(node.IDFodder, false, false)
u.write("]")
}
case *ast.Var:
u.unparseID(node.Id)
case *ast.Unary:
u.write(node.Op.String())
u.unparse(node.Expr, false)
default:
panic(fmt.Sprintf("INTERNAL ERROR: Unknown AST: %T", expr))
}
}
func (u *unparser) string() string {
return u.buf.String()
}
```
|
```turing
BEGIN {
if($ENV{PERL_CORE}) {
chdir 't';
@INC = '../lib';
}
}
use strict;
use warnings;
use Pod::Simple::Search;
use Test;
BEGIN { plan tests => 16 }
print "# Some basic sanity tests...\n";
my $x = Pod::Simple::Search->new;
die "Couldn't make an object!?" unless ok defined $x;
print "# New object: $x\n";
print "# Version: ", $x->VERSION, "\n";
ok defined $x->can('callback');
ok defined $x->can('dir_prefix');
ok defined $x->can('inc');
ok defined $x->can('laborious');
ok defined $x->can('limit_glob');
ok defined $x->can('limit_re');
ok defined $x->can('recurse');
ok defined $x->can('shadows');
ok defined $x->can('verbose');
ok defined $x->can('survey');
ok defined $x->can('_state_as_string');
ok defined $x->can('contains_pod');
ok defined $x->can('find');
ok defined $x->can('simplify_name');
print "# Testing state dumping...\n";
print $x->_state_as_string;
$x->inc("I\nLike Pie!\t!!");
print $x->_state_as_string;
print "# bye\n";
ok 1;
```
|
The Gibson ES series of semi-acoustic guitars (hollow body electric guitars) are manufactured by the Gibson Guitar Corporation.
The letters ES stand for Electric Spanish, to distinguish them from Hawaiian-style lap steel guitars which are played flat on the lap. Many of the original numbers referred to the price, in dollars, of the model. Suffixes in the names indicate additional appointments, for example "T" means "thinline" (a thinner profile than most) while "D" means "double pickup". Many of the models come with f-holes, though some, such as B.B. King's signature Lucille series, are made without f-holes. Some models are full-bodied models, while single- and double-cutaways are also available. Two different styles of cutaways are used, both named by Gibson after Italian cities. Florentine models had a sharper, more pointed end on the cutaway, while more rounded and contoured cutaways were called Venetian style.
Numerous signature models of the ES series exist, as well as some later hybrid models such as the "ES-Les Paul" that combines features of a Gibson Les Paul with those of the ES series.
ES Series guitars were built at Gibson's Memphis, Tennessee factory from 2000 until 2019. After Gibson's change of ownership in 2019, the Memphis factory was closed and production was moved back to Nashville, Tennessee.
Models
ES models
ES-5 (1949–1955) Three-pickup, full depth hollowbody. / (1955–1962) ES-5 Switchmaster
ES-100 (1938–1941) Entry-level archtop hollow-body model. (Renamed to ES-125)
ES-120T (1962–1971) Most basic student model, thinline
ES-125 (1941–1970) Successor of ES-100. / (1956–1960) ES-125T (thinline).
ES-130 (1954–1956) (Renamed to ES-135)
ES-135 (1956–1958) Thick-body version of ES-125TDC. / (1991–2002)
ES-137 (2002–2013) Upscaled ES-135 with Les Paul sound.
ES-139 (2013 only) Semi-hollow dealer exclusive, sized between a Les Paul and ES-135. No f-holes. Marketed as a lighter alternative to the Les Paul.
ES-140 (1950–1957) 3/4 size, short scale ES-175. / (1956–1968) ES-140T (thinline).
ES-150 (1936–1956) Gibson's first electric guitar, based on L-50. / (1937-?) EST–150 (tenor) and EPG–150 (plectrum) were shipped. / (1969–1974) ES-150DC resembling thick ES-335.
ES-165 (1991–2013) Single pickup ES-175 based on Herb Ellis's.
ES-175 (1949–) Full depth, florentine cutaway, maple top, 24 3/4" scale. / (1953-) ES-175D (dual pickup). / (1976–1979) ES-175T (thinline hollow-body)
ES-225T (1955–1959) Variation on ES-125T (thinline, florentine cutaway), with trapeze bridge.
ES-250 (1938–1940) Rare, fancier version of ES-150. Replaced by ES-300.
ES-260 (1982–1983) Resembling ES-125T/ES-225T (thinline, florentine cutaway), but semi-hollow with center block, stop tailpiece, and humbuckers instead of P90 pickups.
ES-295 (1952–1959) ES-175 resembling Les Paul Goldtop with trapeze bridge.
ES-300 (1940–1952) Successor of ES-250, with a slant-mounted long pickup. Short PU in 1941. Reintroduced with P-90 in 1946, added second P-90 in 1949. Replaced by ES-350.
ES-320TD (1971–1974) Similar to ES-330TD but with tune-o-matic and metal control plate.
ES-325 (1972–1979) Similar to ES-330TD but with mini-humbuckers, single f-hole, and a half-moon shaped plastic control plate
ES-330TD (1958–) Double rounded cutaway, thinline hollow-body
ES-333 (–2003) Stripped-down version of ES-335
ES-335 (1958–) World's first thinline archtop semi-acoustic (semi-hollow-body with center-block) / (2013–) ES-335 Bass
ES-336 (1996–2001) Replaced by CS-336.
ES-339 (2007–) Size of CS-336 with construction of ES-335.
ES-340TD (1968–1973) ES-335 with a master volume/mixer and phase switch
ES-345 (1958–1981) ES-335 construction, but with parallelogram inlays, Varitone, and stereo outputs.
ES-347 (1978–) Alternate ES-345 with a coil-tap switch instead of Varitone
ES-350 (1947–1956) Rounded cutaway ES-300. / (1955–1981) ES-350T as a plainer Byrdland.
ES-355 (1958–1982) Upscaled ES-345 (ebony fretboard, extra binding, etc.) with vibrato unit, optional Varitone and stereo outputs.
ES-359 (2008–) Upscaled ES-339 (ebony fretboard, extra binding, gold hardware, block inlays).
ES-369 (late 1970s–) ES-335 with Dirty Finger humbuckers, coil tap switch, and snakehead headstock.
ES-390 (2013–) Similar in size to the ES-339, but with the fully hollow construction of ES-330. Equipped with mini humbuckers (2013 model year) or dog-ear P90s (2014–present).
ES-775 (1990–1993) ES-175 with higher quality components
ES Artist (1979–) Upscale model of ES-335 without f-holes, with active circuit by Moog.
ES signature models
ES-333 signature
Tom DeLonge Signature ES-333 (2003–) Equipped with a single high-output Gibson Dirty Fingers bridge humbucker.
ES-335 signature
DG-335 (2007–?) Dave Grohl model based on Trini Lopez.
Trini Lopez (1964–1971) Trini Lopez two versions: one based on ES-335, other similar to Kessel model with diamond-shaped sound holes and a single-side headstock.
Chris Cornell (2013–) First edition released in 2013 with a limited edition run of 250 released in 2019 - green Olive Drab finish with Jason Lollar Gretsch Filtertron style Lollartron pickups, Bigsby vibrato, and Cornell's signature inlaid on the headstock
ES-355 derivative signature
Lucille (1980–1985) B.B. King model based on ES-355TD-SV without f-holes.
ES-330/ES-336 derivative signature
Johnny A. (2004–) ES-336 sized fully-hollow thinline body with sharp double cutaways that resemble the Barney Kessel model with three variants (all models have '57 Classic humbuckers and 25.5" scale unless otherwise noted):
Signature with Bigsby vibrato
Standard with Bigsby vibrato, which has less cosmetic appointments compared to the Signature, nickel instead of gold hardware, and a rosewood fretboard instead of ebony
Spruce Top, with a spruce top instead of maple and a stopbar tailpiece instead of a Bigsby vibrato, rosewood fretboard, and Alnico III CustomBuckers instead of '57 Classics
Derived models
335-S (1980–1983) Loosely related solidbody guitar similar in shape and controls to ES-335 with two Dirty Fingers pickups.
CS-336 (2001–?) Custom Shop's first "tonally carved" guitar.
CS-356 (2001–?) Upscaled CS-336 with goldplate parts, etc.
Vegas (2006) Offset semi-hollow with similar aesthetics to the Trini Lopez - non-reverse Firebird six-in-line headstock, diamond f-holes, and split-diamond inlays. Two variants:
Standard - Plain maple top, ebony fingerboard, '57 Classic humbuckers, four finishes: Ebony, Natural, Sunburst, Wine Red.
High Roller - AAA Flame maple top, gold hardware, block inlays, Burstbucker Pro humbuckers, four finishes: Desert Sunset, Felt Green, Neon, Roulette Red.
Les Paul Bantam/Florentine (1995/1996–) Custom Shop models with thinline semi-hollow-body with center-block. (Note: "Gibson USA Florentine" released in 2009 is a solid-body model)
ES-Les Paul (2014-2016) Mash up of Les Paul and ES-335
Les Paul Signature (–)
Midtown (2011–2016) Smaller chambered body with f-holes that came in five variants:
Standard with dot inlays and BurstBucker humbuckers, as well as optional Bigsby vibrato
Standard P-90 with trapezoid inlays and P-90 pickups
Custom with humbuckers, block inlays and split diamond headstock inlay, like an ES-355
Kalamazoo, with appointments referencing the Byrdland
Signature Bass
EB–2 bass (1958–1972)
EB-6 6-string bass/baritone guitar (1959–1961: hollow-body similar to EB–2, 1962–1965: SG-shaped solid-body similar to EB-3/EB-0)
Related models
Origin models
Note: in the 1920s, L-4 and L-5 were once electrified by Lloyd Loar, but halted by his end of contract in 1924.
L-4 (1911–) The bass model of ES-175 and its derivatives.
L-5 (1922–) The bass model of ES-5, Byrdland, ES-350T, possibly ES-225, and these derivatives.
Byrdland (1955–) Thinline, short-scale L-5 CES, named after Billy Byrd and Hank Garland.
Super 400 CES ([1934]/1950s–)
L-50 (1934–) The base model of the first Electro Spanish model, ES-150.
The Log (1940) A forerunner of the later center-block semi-hollow models, ES-335/345/355.
Related derivative models
EDS–1275 Double 12 (1958–) Doubleneck, hollow-body (1958–1962) or SG-shaped solid-body (1962-) guitar with 12 and 6 string guitar necks.Other doubleneck models include:
EMS–1235 Double Mandolin (mandolin or short neck guitar & normal guitar, hollow-body (1958–1962) or solid-body (1962-))
EBSF–1250 Double Bass (4 string bass & guitar, built-in fuzz effect)
EBS–1250 Double Bass (6 string bass & guitar)
EDS–1250 (6 string bass & 4 string bass)
Barney Kessel (1961–1974) Barney Kessel model. 3" deep, double florentine cutaway hollow-body (Two versions, Regular and Custom).
Johnny Smith (1961–) Later renamed as Gibson LeGrande.
Solid Formed (2015) - new style archtop using 1/2 the wood by bending it instead of traditional carving. 17" full hollowbody with a venetian cutaway and floating Johnny Smith style humbucker.
Blueshawk (1996–2006)
Little Lucille (1996–2006) another Lucille endorsed by B.B. King.
Related signature models
Tal Farlow (1962–1971) Tal Farlow model.
Howard Roberts Fusion (1980–) Howard Roberts model.
Chet Atkins Country Gentleman (1987–2000s) Gibson version of the Gretsch Chet Atkins signature model 6120, with Gibson 492R and 490T humbucking pickups instead of Gretsch Filtertrons.
Chet Atkins Tennessean (1990–2000s) Mid-priced Gibson Chet Atkins signature model designed by Gibson.
Gallery
This section provides the photographs of the above mentioned models, to easily identify and grasp each one at a glance.
ES models (with signatures and derivations)
Related models
Tree chart
References
Bibliography
Citations
External links
ES Series
Semi-acoustic guitars
|
```c++
/*
* POJ 1222: EXTENDED LIGHTS OUT
* 5x601
* +
*
*/
#include <cstdio>
int a[6][7], b[7][8];
int main() {
int T, tc = 0;
scanf("%d", &T);
while (T--) {
for (int i = 1; i <= 5; ++i)
for (int j = 1; j <= 6; ++j)
scanf("%d", &a[i][j]);
for (int k = (1 << 5) - 1; k >= 0; --k) {
int t = k;
for (int i = 1; i <= 5; ++i) {
b[i][1] = t & 1;
t >>= 1;
}
for (int j = 2; j <= 7; ++j)
for (int i = 1; i <= 5; ++i)
b[i][j] = a[i][j - 1] ^ b[i][j - 1] ^ b[i - 1][j - 1] ^ b[i + 1][j - 1] ^ b[i][j - 2];
bool ok = true;
for (int i = 1; i <= 5; ++i) {
if (b[i][7]) {
ok = false;
break;
}
}
if (ok) break;
}
printf("PUZZLE #%d\n", ++tc);
for (int i = 1; i <= 5; ++i) {
for (int j = 1; j < 6; ++j) {
printf("%d ", b[i][j]);
}
printf("%d\n", b[i][6]);
}
}
return 0;
}
```
|
Matteo Voltolini (born 30 July 1996) is an Italian professional footballer who plays as a goalkeeper for an amateur side US Montecchio.
Career
Born in Reggio Emilia, Voltolini started his career in local club Reggiana.
On 28 July 2016, he joined Serie D club Triestina.
On 7 September 2017, he signed with Serie C club Pisa. Voltolini made his professional debut on 21 January 2018 against Monza. On 2 August 2018, he was loaned to Fano for the 2018–19 season.
He returned to Reggiana in 2019.
Notes
References
External links
1996 births
Living people
Footballers from Reggio Emilia
Italian men's footballers
Men's association football goalkeepers
Serie C players
Serie D players
AC Reggiana 1919 players
US Triestina Calcio 1918 players
Pisa SC players
Alma Juventus Fano 1906 players
|
```go
package router // import "github.com/docker/docker/api/server/router"
import (
"context"
"net/http"
"github.com/docker/docker/api/server/httputils"
)
// ExperimentalRoute defines an experimental API route that can be enabled or disabled.
type ExperimentalRoute interface {
Route
Enable()
Disable()
}
// experimentalRoute defines an experimental API route that can be enabled or disabled.
// It implements ExperimentalRoute
type experimentalRoute struct {
local Route
handler httputils.APIFunc
}
// Enable enables this experimental route
func (r *experimentalRoute) Enable() {
r.handler = r.local.Handler()
}
// Disable disables the experimental route
func (r *experimentalRoute) Disable() {
r.handler = experimentalHandler
}
type notImplementedError struct{}
func (notImplementedError) Error() string {
return "This experimental feature is disabled by default. Start the Docker daemon in experimental mode in order to enable it."
}
func (notImplementedError) NotImplemented() {}
func experimentalHandler(ctx context.Context, w http.ResponseWriter, r *http.Request, vars map[string]string) error {
return notImplementedError{}
}
// Handler returns the APIFunc to let the server wrap it in middlewares.
func (r *experimentalRoute) Handler() httputils.APIFunc {
return r.handler
}
// Method returns the http method that the route responds to.
func (r *experimentalRoute) Method() string {
return r.local.Method()
}
// Path returns the subpath where the route responds to.
func (r *experimentalRoute) Path() string {
return r.local.Path()
}
// Experimental will mark a route as experimental.
func Experimental(r Route) Route {
return &experimentalRoute{
local: r,
handler: experimentalHandler,
}
}
```
|
Count Me Out () is a 1997 Icelandic comedy film directed by Ari Kristinsson. The film was selected as the Icelandic entry for the Best Foreign Language Film at the 71st Academy Awards, but was not accepted as a nominee.
Cast
Bergþóra Aradóttir as Hrefna
Freydís Kristófersdóttir as Yrsa
Edda Heidrún Backman as Yrsa's mom
Halldóra Björnsdóttir as Hrefna's mom
Maria Ellingsen as Pálina
Bergsveinn Eyland as Kerru strákur
Halldóra Geirharðsdóttir as Margrét 'Magga'
See also
List of submissions to the 71st Academy Awards for Best Foreign Language Film
List of Icelandic submissions for the Academy Award for Best Foreign Language Film
References
External links
1997 films
1997 comedy films
Icelandic comedy films
1990s Icelandic-language films
|
Taylor-Manning-Leppo House is a historic home located near Finksburg, Carroll County, Maryland. The original section was built about 1860, and is a 2 ½-story log and frame bank house. It rests on a stone foundation, with an exposed full story in height across the front of the building.
It was listed on the National Register of Historic Places in 2009.
References
External links
, including photo in 1989, at Maryland Historical Trust
Houses on the National Register of Historic Places in Maryland
Houses completed in 1860
Houses in Carroll County, Maryland
National Register of Historic Places in Carroll County, Maryland
|
```php
<?php
/**
* Raw RSA Key Handler
*
* PHP version 5
*
* An array containing two \phpseclib3\Math\BigInteger objects.
*
* The exponent can be indexed with any of the following:
*
* 0, e, exponent, publicExponent
*
* The modulus can be indexed with any of the following:
*
* 1, n, modulo, modulus
*
* @author Jim Wigginton <terrafrost@php.net>
* @copyright 2015 Jim Wigginton
* @link path_to_url
*/
namespace phpseclib3\Crypt\RSA\Formats\Keys;
use phpseclib3\Math\BigInteger;
/**
* Raw RSA Key Handler
*
* @author Jim Wigginton <terrafrost@php.net>
*/
abstract class Raw
{
/**
* Break a public or private key down into its constituent components
*
* @param string $key
* @param string $password optional
* @return array
*/
public static function load($key, $password = '')
{
if (!is_array($key)) {
throw new \UnexpectedValueException('Key should be a array - not a ' . gettype($key));
}
$key = array_change_key_case($key, CASE_LOWER);
$components = ['isPublicKey' => false];
foreach (['e', 'exponent', 'publicexponent', 0, 'privateexponent', 'd'] as $index) {
if (isset($key[$index])) {
$components['publicExponent'] = $key[$index];
break;
}
}
foreach (['n', 'modulo', 'modulus', 1] as $index) {
if (isset($key[$index])) {
$components['modulus'] = $key[$index];
break;
}
}
if (!isset($components['publicExponent']) || !isset($components['modulus'])) {
throw new \UnexpectedValueException('Modulus / exponent not present');
}
if (isset($key['primes'])) {
$components['primes'] = $key['primes'];
} elseif (isset($key['p']) && isset($key['q'])) {
$indices = [
['p', 'q'],
['prime1', 'prime2']
];
foreach ($indices as $index) {
list($i0, $i1) = $index;
if (isset($key[$i0]) && isset($key[$i1])) {
$components['primes'] = [1 => $key[$i0], $key[$i1]];
}
}
}
if (isset($key['exponents'])) {
$components['exponents'] = $key['exponents'];
} else {
$indices = [
['dp', 'dq'],
['exponent1', 'exponent2']
];
foreach ($indices as $index) {
list($i0, $i1) = $index;
if (isset($key[$i0]) && isset($key[$i1])) {
$components['exponents'] = [1 => $key[$i0], $key[$i1]];
}
}
}
if (isset($key['coefficients'])) {
$components['coefficients'] = $key['coefficients'];
} else {
foreach (['inverseq', 'q\'', 'coefficient'] as $index) {
if (isset($key[$index])) {
$components['coefficients'] = [2 => $key[$index]];
}
}
}
if (!isset($components['primes'])) {
$components['isPublicKey'] = true;
return $components;
}
if (!isset($components['exponents'])) {
$one = new BigInteger(1);
$temp = $components['primes'][1]->subtract($one);
$exponents = [1 => $components['publicExponent']->modInverse($temp)];
$temp = $components['primes'][2]->subtract($one);
$exponents[] = $components['publicExponent']->modInverse($temp);
$components['exponents'] = $exponents;
}
if (!isset($components['coefficients'])) {
$components['coefficients'] = [2 => $components['primes'][2]->modInverse($components['primes'][1])];
}
foreach (['privateexponent', 'd'] as $index) {
if (isset($key[$index])) {
$components['privateExponent'] = $key[$index];
break;
}
}
return $components;
}
/**
* Convert a private key to the appropriate format.
*
* @param \phpseclib3\Math\BigInteger $n
* @param \phpseclib3\Math\BigInteger $e
* @param \phpseclib3\Math\BigInteger $d
* @param array $primes
* @param array $exponents
* @param array $coefficients
* @param string $password optional
* @param array $options optional
* @return array
*/
public static function savePrivateKey(BigInteger $n, BigInteger $e, BigInteger $d, array $primes, array $exponents, array $coefficients, $password = '', array $options = [])
{
if (!empty($password) && is_string($password)) {
throw new UnsupportedFormatException('Raw private keys do not support encryption');
}
return [
'e' => clone $e,
'n' => clone $n,
'd' => clone $d,
'primes' => array_map(function ($var) {
return clone $var;
}, $primes),
'exponents' => array_map(function ($var) {
return clone $var;
}, $exponents),
'coefficients' => array_map(function ($var) {
return clone $var;
}, $coefficients)
];
}
/**
* Convert a public key to the appropriate format
*
* @param \phpseclib3\Math\BigInteger $n
* @param \phpseclib3\Math\BigInteger $e
* @return array
*/
public static function savePublicKey(BigInteger $n, BigInteger $e)
{
return ['e' => clone $e, 'n' => clone $n];
}
}
```
|
```yaml
models:
- columns:
- name: id
tests:
- unique
- not_null
- relationships:
field: id
to: ref('node_0')
name: node_1811
version: 2
```
|
```php
<?php
namespace Faker\Provider\fr_FR;
use Faker\Calculator\Luhn;
class Company extends \Faker\Provider\Company
{
/**
* @var array French company name formats.
*/
protected static $formats = array(
'{{lastName}} {{companySuffix}}',
'{{lastName}} {{lastName}} {{companySuffix}}',
'{{lastName}}',
'{{lastName}}',
);
/**
* @var array French catch phrase formats.
*/
protected static $catchPhraseFormats = array(
'{{catchPhraseNoun}} {{catchPhraseVerb}} {{catchPhraseAttribute}}',
);
/**
* @var array French nouns (used by the catch phrase format).
*/
protected static $noun = array(
'la scurit', 'le plaisir', 'le confort', 'la simplicit', "l'assurance", "l'art", 'le pouvoir', 'le droit',
'la possibilit', "l'avantage", 'la libert'
);
/**
* @var array French verbs (used by the catch phrase format).
*/
protected static $verb = array(
'de rouler', "d'avancer", "d'voluer", 'de changer', "d'innover", 'de louer', "d'atteindre vos buts",
'de concrtiser vos projets'
);
/**
* @var array End of sentences (used by the catch phrase format).
*/
protected static $attribute = array(
'de manire efficace', 'plus rapidement', 'plus facilement', 'plus simplement', 'en toute tranquilit',
'avant-tout', 'autrement', 'naturellement', ' la pointe', 'sans soucis', " l'tat pur",
' sa source', 'de manire sre', 'en toute scurit'
);
/**
* @var array Company suffixes.
*/
protected static $companySuffix = array('SA', 'S.A.', 'SARL', 'S.A.R.L.', 'S.A.S.', 'et Fils');
protected static $siretNicFormats = array('####', '0###', '00#%');
/**
* Returns a random catch phrase noun.
*
* @return string
*/
public function catchPhraseNoun()
{
return static::randomElement(static::$noun);
}
/**
* Returns a random catch phrase attribute.
*
* @return string
*/
public function catchPhraseAttribute()
{
return static::randomElement(static::$attribute);
}
/**
* Returns a random catch phrase verb.
*
* @return string
*/
public function catchPhraseVerb()
{
return static::randomElement(static::$verb);
}
/**
* Generates a french catch phrase.
*
* @return string
*/
public function catchPhrase()
{
do {
$format = static::randomElement(static::$catchPhraseFormats);
$catchPhrase = ucfirst($this->generator->parse($format));
if ($this->isCatchPhraseValid($catchPhrase)) {
break;
}
} while (true);
return $catchPhrase;
}
/**
* Generates a siret number (14 digits) that passes the Luhn check.
*
* @see path_to_url
* @return string
*/
public function siret($formatted = true)
{
$siret = $this->siren(false);
$nicFormat = static::randomElement(static::$siretNicFormats);
$siret .= $this->numerify($nicFormat);
$siret .= Luhn::computeCheckDigit($siret);
if ($formatted) {
$siret = substr($siret, 0, 3) . ' ' . substr($siret, 3, 3) . ' ' . substr($siret, 6, 3) . ' ' . substr($siret, 9, 5);
}
return $siret;
}
/**
* Generates a siren number (9 digits) that passes the Luhn check.
*
* @see path_to_url
* @return string
*/
public function siren($formatted = true)
{
$siren = $this->numerify('%#######');
$siren .= Luhn::computeCheckDigit($siren);
if ($formatted) {
$siren = substr($siren, 0, 3) . ' ' . substr($siren, 3, 3) . ' ' . substr($siren, 6, 3);
}
return $siren;
}
/**
* @var array An array containing string which should not appear twice in a catch phrase.
*/
protected static $wordsWhichShouldNotAppearTwice = array('scurit', 'simpl');
/**
* Validates a french catch phrase.
*
* @param string $catchPhrase The catch phrase to validate.
*
* @return boolean (true if valid, false otherwise)
*/
protected static function isCatchPhraseValid($catchPhrase)
{
foreach (static::$wordsWhichShouldNotAppearTwice as $word) {
// Fastest way to check if a piece of word does not appear twice.
$beginPos = strpos($catchPhrase, $word);
$endPos = strrpos($catchPhrase, $word);
if ($beginPos !== false && $beginPos != $endPos) {
return false;
}
}
return true;
}
}
```
|
```c
/* ====================================================================
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in
* the documentation and/or other materials provided with the
* distribution.
*
* 3. All advertising materials mentioning features or use of this
* software must display the following acknowledgment:
* "This product includes software developed by the OpenSSL Project
* for use in the OpenSSL Toolkit. (path_to_url"
*
* 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to
* endorse or promote products derived from this software without
* prior written permission. For written permission, please contact
* licensing@OpenSSL.org.
*
* 5. Products derived from this software may not be called "OpenSSL"
* nor may "OpenSSL" appear in their names without prior written
* permission of the OpenSSL Project.
*
* 6. Redistributions of any form whatsoever must retain the following
* acknowledgment:
* "This product includes software developed by the OpenSSL Project
* for use in the OpenSSL Toolkit (path_to_url"
*
* THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY
* EXPRESSED 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 OpenSSL PROJECT OR
* ITS 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.
* ====================================================================
*
* This product includes cryptographic software written by Eric Young
* (eay@cryptsoft.com). This product includes software written by Tim
* Hudson (tjh@cryptsoft.com).
*
*/
#include "eng_int.h"
/*
* If this symbol is defined then ENGINE_get_default_STORE(), the function
* that is used by STORE to hook in implementation code and cache defaults
* (etc), will display brief debugging summaries to stderr with the 'nid'.
*/
/* #define ENGINE_STORE_DEBUG */
static ENGINE_TABLE *store_table = NULL;
static const int dummy_nid = 1;
void ENGINE_unregister_STORE(ENGINE *e)
{
engine_table_unregister(&store_table, e);
}
static void engine_unregister_all_STORE(void)
{
engine_table_cleanup(&store_table);
}
int ENGINE_register_STORE(ENGINE *e)
{
if (e->store_meth)
return engine_table_register(&store_table,
engine_unregister_all_STORE, e,
&dummy_nid, 1, 0);
return 1;
}
void ENGINE_register_all_STORE()
{
ENGINE *e;
for (e = ENGINE_get_first(); e; e = ENGINE_get_next(e))
ENGINE_register_STORE(e);
}
/* The following two functions are removed because they're useless. */
#if 0
int ENGINE_set_default_STORE(ENGINE *e)
{
if (e->store_meth)
return engine_table_register(&store_table,
engine_unregister_all_STORE, e,
&dummy_nid, 1, 1);
return 1;
}
#endif
#if 0
/*
* Exposed API function to get a functional reference from the implementation
* table (ie. try to get a functional reference from the tabled structural
* references).
*/
ENGINE *ENGINE_get_default_STORE(void)
{
return engine_table_select(&store_table, dummy_nid);
}
#endif
/* Obtains an STORE implementation from an ENGINE functional reference */
const STORE_METHOD *ENGINE_get_STORE(const ENGINE *e)
{
return e->store_meth;
}
/* Sets an STORE implementation in an ENGINE structure */
int ENGINE_set_STORE(ENGINE *e, const STORE_METHOD *store_meth)
{
e->store_meth = store_meth;
return 1;
}
```
|
```javascript
class Foo {
foo() {
switch (1) {
case (MatrixType.IsScaling | MatrixType.IsTranslation):
}
}
bar() {
switch ((typeA << 4) | typeB) {}
}
}
```
|
Ralf Brueck (born 1966 Düsseldorf) is a German artist.
Ralf Brueck is a younger exponent of the Düsseldorf School of Photography, which has achieved worldwide renown through Andreas Gursky, Candida Höfer, Thomas Struth and Thomas Ruff, whose master student he became in 2002.
From 1996 to 2003, he studied at the Art Academy Düsseldorf.
Ralf Brueck was one of the last students of the Bernd and Hilla Becher class at the Kunstakademie Düsseldorf before he decided to become a student of Professor Thomas Ruff.
After graduating from the Academy he received the Villa Romana Prize Fellowship in 2004 and lived in Florence, Italy, for 12 months.
There followed several stays abroad in Europe, Asia and the USA between 2005 and 2011.
His large-format images are known for their radical editing. They also refer to pop cultural icons and are supported by their titles i.e. "Personal Jesus", "Pink Mist", "Transmission" and "You don´t look so good".
His earlier works were more influenced by the connection between the Düsseldorf School of Photography and the New American Photography. Since 2009 he has moved towards digital image manipulation. His series TRANSFORMER systematically questions the nature of photography and its representation of reality by isolating particular subjects and altering their proportions. It establishes a new dynamic dialogue between the images and the viewer since what is perceived runs counter to expectations.
2011 marks the beginning of the series DISTORTION which is characterized by a shift of pictorial structures. In DISTORTION Ralf Brueck extracts tonal elements from his works which are parts of the digital texture of the images and changes them by premeditated manipulation. The photographic representations therefore gain a new dimension by transforming the depicted reality.
The structures remind one of barcodes which so to speak expose the DNA of the images.
By this highly calculated use of barcode patterns Brueck contributes to an investigation into constructedness of images and the world itself.
Since 2012 his work has become more radical. His new series DECONSTRUKTION shows a drastic dissolution of images boundaries amounting to their complete destruction.
Ralf Brueck manipulations of images are not geared towards pointing out that contemporary digital photography is deficient in its representation of reality but argues that a photograph constitutes its own reality.
Awards
2001 Leo Award-Breuer, Rheinisches Landesmuseum Bonn
2002 Lovell's Arts Award
2003 NVV studio scholarship, Moenchengladbach
2004 Villa Romana prize
2005 NRW Arts Foundation
2005 Artist Exchange Program between Duesseldorf and Tampere, Finland
2008 Foundation Art Fund
2009 Transfer Project, Kulturbuero NRW, Germany
2010 Organhaus Art Space Residency together with Sichuan Fine Arts Institute, Chongqing, China
2010 Tapiola Studio Foundation residency, Espoo, Finland
2010 Thyll-Duerr-Foundation residency, Elba, Italy
Selected exhibitions
2021 Disappear, Kunst & Denker Contemporary, Duesseldorf, Germany
2020 Subjekt und Objekt, Kunsthalle Duesseldorf, Germany
2018 DECONSTRUCTION, Kunst & Denker Contemporary, Duesseldorf, Germany
2017 TZR Gallery Kai Brückner, Duesseldorf, Germany
2017 Princehouse Gallery, Mannheim, Germany
2016 "The typological view, Exhibition for Hilla Becher", Die Photographische Sammlung / SK Stiftung Kultur, Cologne, Germany
2016 NRW FORUM, Duesseldorf, Germany
2014 BLOG RE-BLOG Austin Center for Photography, Austin TX
2013 BLOG RE-BLOG Signal Gallery, New York NY
2013 Kunstmeile Wangen, Wangen, Germany
2012 Rethinking Reality, Kuckei + Kuckei, Berlin, Germany
2011 "DISTORTION THREE", so what gallery, Duesseldorf, Germany
2011 "DISTORTION TWO", Kunstverein Duisburg, Duisburg, Germany
2011 "DISTORTION", Gallery Muelhaupt, Cologne, Germany
2010 "2010 / 2010" Organhaus Sichuan Fine Arts Institute, Chongqing, China
2009 "ich liebe amerika und amerika liebt mich", Gallery Muelhaupt, Cologne, Germany
2009 "betonbar: ralf brueck", Mannheim, Germany
2009 "pain is weakness leaving the body", the bakery, Munich, Germany
2009 "w", Gallery aplanat, Hamburg, Germany
2009 "the good times are killing me", Gallery Pitrowski, Berlin, Germany
2008 "que onda guero", galerie januar ev., Bochum, Germany
2007 James Harris Gallery, Seattle, US
2006 "...im Ernst (being serious)", Rheinisches Landesmuseum Bonn, Germany
2006 "Finnlandfotos1" Goethe Institut Helsinki, Finland
2005 NVV scholarship end-exhibition, Mönchengladbach, Germany
2002 Galerie Haus Schneider, Karlsruhe
2000 Kunstverein Arnsberg, Germany
Works
"Ralf Brueck", Heart Breaker Magazine
Ralph Goertz (Hrsg.): Ralf Brueck. Deconstruction Distortion DAF Timecapsules. Wienand, Köln 2016, .
References
External links
Tonermagazine
Update/News
Artist's website
Photographers from North Rhine-Westphalia
1966 births
Artists from Düsseldorf
Living people
Kunstakademie Düsseldorf alumni
|
Alice Miceli (born 1980) is a Brazilian artist. She lives and works in Rio de Janeiro and New York.
Early life
She was born and raised in Rio de Janeiro, and studied film at the École supérieure d'études cinématographiques in Paris.
Career
Her work has been featured in group and solo exhibitions in various countries. She has been represented by art galleries such as Galeria Nara Roesler.
Miceli participated in the 2009 Festival Internacional de Artes Electrónicas y Video TRANSITIO_MX in Mexico City. She presented at the 2010 São Paulo Art Biennial, the 2014 Japan Media Arts Festival in Tokyo and the 2016 Moscow International Biennale for Young Art. Her work was exhibited at transmediale festivals in Berlin, at the Sydney Film Festival in 2008 and the Images Festival in Toronto in 2008.
In 2016, Miceli was a fellow at the Jan van Eyck Academie in Maastricht; she was a fellow at the Dora Maar House in Ménerbes, and at Yaddo and the MacDowell Colony.
In 2019, her work Projeto Chernobyl was presented for the first time in its complete form in the US, at the Americas Society, in New York. For this work, Miceli developed a method of image making to document the enduring effects of the Chernobyl nuclear plant explosion of April 26, 1986. Gamma radiation continues to be present. It is invisible to the naked eye and to traditional methods of photography that have been used to document the aftermath. With Projeto Chernobyl, Miceli made this contamination visible via direct contact between the radiation and film, which was exposed in the Chernobyl Exclusion Zone for months at a time.
Art
Miceli’s work "applies investigative travel and historical research to chart the virtual, physical and cultural manifestations of trauma inflicted on social and natural landscapes." She experiments with time-based media, notably camera and video to chart the effect of time in the context of societal and natural traumas. Her artwork has been described as haunting and beautiful, leaving audiences with feelings of reverence and introspection.
Her work has been praised by art critics and aficionados alike for its powerful emotional resonance and ability to convey complex histories and stories.
Recognition
PIPA Prize (2014)
Cisneros Fontanals Grants & Commissions Award (2015)
References
External links
1980 births
Living people
21st-century Brazilian women artists
21st-century Brazilian artists
|
Noli Me Tángere is a 1961 Philippine period drama film co-written and directed by Gerardo de León. Based on the 1887 novel of the same name by José Rizal, it stars Eduardo del Mar, Edita Vital, Johnny Monteiro, Oscar Keesee, Teody Belarmino, and Leopoldo Salcedo. The film was released on June 16, 1961, timed with the centenary of Rizal's birth.
Noli Me Tángere won five FAMAS Awards, including Best Picture and Best Director. The film is now considered a classic in Philippine cinema.
Cast
Eduardo del Mar as Crisostomo Ibarra
Edita Vital as Maria Clara
Johnny Monteiro as Padre Salvi
Oscar Keesee as Padre Damaso
Teody Belarmino as Tarcilo
Leopoldo Salcedo as Elias
Ramon d'Salva as Alferez
Ruben Rustia as Maestro
Max Alvarado as Lucas
Nello Nayo as Don Filipo
Engracio Ibarra as Don Tiago
Lilian Laing de Leon as Dña. Victorina
Veronica Palileo as Isabel
Joseph de Cordova as Pablo
Manny Ojeda as Tenyente Guevarra
Fred Gonzales as Pilosopong Tacio
Lito Anzures as Sarhento
Andres Centenera as Alkalde
Jose Garcia as Kapitan Heneral
Pianing Vidal as Dr. Espadaña
Dely Villanueva as Dña. Consolacion
Luis San Juan as Pedro
Francisco Cruz as Gobernadorcillo
Salvador Zaragoza as Sakristan Mayor
Jerry Pons as Linares
Lina Cariño as Sisa
Dik Trofeo
Production
Filipino painter Carlos V. Francisco served as the production designer for Noli Me Tángere.
Filmmaker Eddie Romero, who had intended to write his own film adaptation of José Rizal's Noli Me Tángere prior to the production of Gerardo de León's film, stated that de León had only a limited amount of time to create the film, and as a result, Romero found the film unable to fully adapt the novel as he would wish. Romero would eventually receive the opportunity to direct his television adaptation of the novel in 1992.
Restoration
In 1989, the only surviving film print of Noli Me Tángere was discovered to be in poor condition, upon which the German Embassy of the Philippines and Goethe-Institut requested the Federal Foreign Office of Germany to retrieve and rescue the film. In Koblenz, Germany, the film was successfully restored by Fruitzer Black Archive and the Federal Film Archive, and within the same year was sent back to the Philippines. The Philippine Information Agency later made a copy of the restored negative, with the duplicate print used for the 1990 premiere of the remastered version at the Cultural Center of the Philippines.
Re-release
As part of the 150th anniversary celebration of José Rizal's birth, Noli Me Tángere was given a re-release in select SM Cinemas throughout the Philippines in June 2011.
Accolades
References
1961 films
1960s historical drama films
Films about Catholic priests
Films about social issues
Films based on Philippine novels
Films directed by Gerardo de León
Films set in Laguna (province)
Films set in the 19th century
Philippine historical drama films
Tagalog-language films
|
```javascript
import { test } from '../../test';
export default test({
get props() {
return { x: false, things: ['a'] };
},
test({ assert, component, target, raf }) {
component.x = true;
const div1 = /** @type {HTMLDivElement & { foo: number }} */ (target.querySelector('div'));
raf.tick(0);
assert.equal(div1.foo, undefined);
raf.tick(100);
assert.equal(div1.foo, undefined);
component.things = ['a', 'b'];
assert.htmlEqual(target.innerHTML, '<div></div><div></div>');
const div2 = /** @type {HTMLDivElement & { foo: number }} */ (
target.querySelector('div:last-child')
);
raf.tick(100);
assert.equal(div1.foo, undefined);
assert.equal(div2.foo, 0);
raf.tick(200);
assert.equal(div1.foo, undefined);
assert.equal(div2.foo, 1);
component.x = false;
assert.htmlEqual(target.innerHTML, '');
}
});
```
|
```python
from botbuilder.dialogs import DialogTurnResult, ComponentDialog, DialogContext
from botbuilder.core import BotFrameworkAdapter
from botbuilder.schema import ActivityTypes
from botframework.connector.auth.user_token_client import UserTokenClient
class LogoutDialog(ComponentDialog):
def __init__(self, dialog_id: str, connection_name: str):
super(LogoutDialog, self).__init__(dialog_id)
self.connection_name = connection_name
async def on_begin_dialog(
self, inner_dc: DialogContext, options: object
) -> DialogTurnResult:
result = await self._interrupt(inner_dc)
if result:
return result
return await super().on_begin_dialog(inner_dc, options)
async def on_continue_dialog(self, inner_dc: DialogContext) -> DialogTurnResult:
result = await self._interrupt(inner_dc)
if result:
return result
return await super().on_continue_dialog(inner_dc)
async def _interrupt(self, inner_dc: DialogContext):
if inner_dc.context.activity.type == ActivityTypes.message:
text = inner_dc.context.activity.text.lower()
if text == "logout":
user_token_client: UserTokenClient = inner_dc.context.turn_state.get(
UserTokenClient.__name__, None
)
await user_token_client.sign_out_user(
inner_dc.context.activity.from_property.id,
self.connection_name,
inner_dc.context.activity.channel_id,
)
await inner_dc.context.send_activity("You have been signed out.")
return await inner_dc.cancel_all_dialogs()
```
|
ted northe (September 13, 1939 – March 30, 2014) was a Canadian drag queen and gay civil rights activist. He advocated for the decriminalization of homosexuality in Canada in the 1950s and 1960s. In 2017, ted northe Lane in Vancouver, British Columbia became named after him.
Background
Born in Edmonton, Alberta, northe grew up in Cooking Lake, Alberta. When he grew older he moved to America where he had hoped to pursue education to become a nurse. In America, northe began to develop his activism through the connections he made in Los Angeles, San Francisco, and Portland. Portland is where northe became involved with the Imperial Court System and was crowned as the Empress of Canada by the Rose Court in 1964 and held the title until his death in 2014.
Career
Activism
His activism was initially inspired by the Black civil rights movement happening in America. On August 18, 1958 northe organized his first protest on the steps of the Vancouver court house; in total there were five protesters. At this protest, and subsequent events, northe would always attend in full drag, due to the attention gathered by the then-illegal act of dressing up in drag. In order to avoid arrest he would wear the qualifying three pieces of men's clothing by stuffing his bra with two separate pairs of men's socks, and men's underwear.
During the 1960s, northe helped organize a national letter writing campaign, that caught the attention of both NDP leader Tommy Douglas, and Justice Minister then Prime Minister Pierre Elliot Trudeau. Having caught the attention of two prominent politicians, he was able to help advocate for the decriminalization of homosexuality. Once bill C-150 was passed in 1969, Trudeau, called northe infamously requesting to speak with "Your majesty".
Drag
In the 1971, northe founded the first Canadian Chapter of the Imperial Court System in Vancouver. The Imperial Court System was a non-profit organization and safe haven for the queer community. As northe was crowned the empress of Canada in 1964 to formation of the courts of Canada was a natural next step During his time as Empress of Canada he helped raise over ten million dollars for different charities.
Notes
References
1939 births
2014 deaths
Activists from Alberta
Canadian drag queens
Canadian civil rights activists
Canadian LGBT rights activists
People from Edmonton
20th-century Canadian LGBT people
21st-century Canadian LGBT people
|
```yaml
# The following images are published to gcr.io/k8s-prow even though they are not Prow images for legacy purposes.
images:
- dir: label_sync
- dir: robots/commenter
- dir: robots/pr-creator
- dir: robots/issue-creator
- dir: testgrid/cmd/configurator
- dir: gcsweb/cmd/gcsweb
- dir: gencred
- dir: experiment/ml/analyze
```
|
```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.
*/
// Code generated by applyconfiguration-gen. DO NOT EDIT.
package v1
// NodeDaemonEndpointsApplyConfiguration represents a declarative configuration of the NodeDaemonEndpoints type for use
// with apply.
type NodeDaemonEndpointsApplyConfiguration struct {
KubeletEndpoint *DaemonEndpointApplyConfiguration `json:"kubeletEndpoint,omitempty"`
}
// NodeDaemonEndpointsApplyConfiguration constructs a declarative configuration of the NodeDaemonEndpoints type for use with
// apply.
func NodeDaemonEndpoints() *NodeDaemonEndpointsApplyConfiguration {
return &NodeDaemonEndpointsApplyConfiguration{}
}
// WithKubeletEndpoint sets the KubeletEndpoint field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the KubeletEndpoint field is set to the value of the last call.
func (b *NodeDaemonEndpointsApplyConfiguration) WithKubeletEndpoint(value *DaemonEndpointApplyConfiguration) *NodeDaemonEndpointsApplyConfiguration {
b.KubeletEndpoint = value
return b
}
```
|
Proprietism is an economic system composed of a vast network of sole-proprietorships.
Origins
The rise of an independent workforce was documented by Daniel H. Pink in his 2001 book Free Agent Nation: The Future of Working for Yourself. Depending on the precise definition of an independent worker, reports on the topic estimate this type of worker to be somewhere between thirty and forty percent of the entire workforce in the United States, and analysis of the data reveals the trend to be rising. The ideology and term proprietism originated in the blogosphere, initially in 2012 by Nick Wilson of proprietist.com and then was further developed from 2013 onward by Paul Kurke of proprietism.com. Sara Horowitz has also acknowledged the rise of independent contract workers, and has encouraged the movement by creating the Freelancers Union, a non-profit organization for free agents.
Core Concepts
As in capitalism, the resources of a proprietist system are allocated through market forces, though proprietism differs from capitalism because the structure implies a more decentralized ownership of capital, similar to that of a company with an employee stock ownership plan. According to Kurke, proprietism has the potential to resolve the principal-agent problem by structurally realigning productivity and innovation with compensation, assuming advances in information systems continue. Kurke argues that proprietism already exists in the zeitgeist, especially among millennials.
See also
Distributism
References
Economic ideologies
Economic systems
|
Barkers Branch is a long 1st order tributary to Lanes Creek in Union County, North Carolina.
Course
Barkers Branch rises about 0.25 miles northeast of Allens Crossroads, North Carolina. Barkers Branch then flows northeast and then turns east to meet Lanes Creek about 2 miles north of Sturdivants Crossroads, North Carolina.
Watershed
Barkers Branch drains of area, receives about 48.2 in/year of precipitation, has a topographic wetness index of 434.32 and is about 38% forested.
References
Rivers of North Carolina
Rivers of Union County, North Carolina
Tributaries of the Pee Dee River
|
```c++
// -----------------------------------------------------------
//
//
// (See accompanying file LICENSE_1_0.txt or copy at
// path_to_url
//
// -----------------------------------------------------------
#ifndef BOOST_DYNAMIC_BITSET_FWD_HPP
#define BOOST_DYNAMIC_BITSET_FWD_HPP
#include <memory>
namespace boost {
template <typename Block = unsigned long,
typename Allocator = std::allocator<Block> >
class dynamic_bitset;
}
#endif // include guard
```
|
The Todd General Store is located 10 miles south of West Jefferson and 11 miles north of Boone, off Hwy 194, overlooking the South Fork of the New River, and on Railroad Grade Road, one of the most scenic bike routes in North Carolina.
The Todd General Store is a contributing property in the Todd Historic District, which is listed in the National Register of Historic Places.
According to Kirk Carrison of Preservation North Carolina, the Todd General Store is one of only five or six authentic general stores remaining in North Carolina. The Todd General Store is the oldest operating store in Ashe County and remains "the gathering place" for local residents where stories of days past are still swapped, relationships are built, and community spirit nourished.
Todd General Store suffered heavy damage from a fire that broke out on the evening of February 25, 2021.
The Past
Established in 1914, The Todd General Store (originally Cook Brothers General Store) was built by Walter and Monroe Cook in anticipation of the arrival of the Norfolk and Western "Virginia Creeper" railroad. Todd was the end of the line, the last of 13 stops for the train, which traveled from Abingdon, VA, to Todd's Elkland station twice a day.
Todd General Store carried a wide variety of general merchandise, clothing, shoes, hardware, food, feed, dried foraged herbs, and farm implements. Most of the items the store sold were brought in by train. It was one of nine stores that served a growing community that also included four doctors, a dentist, a Ford garage, a bank, grist mill, drug store, post office, train depot and four churches.
W.G. Cook Store
Walter bought out his brother's interest in 1917 and continued to operate the business as W.G. Cook Store. At that time most of the trade was conducted on the barter system, as money was scarce and almost non-existent in Todd prior to the arrival of the railroad. Ledgers were kept containing what was owed and what was traded. Customers would trade chickens, roots and herbs and other items of value for merchandise or receive "W.G. Cook" tokens that were only redeemable at this store. Many of the bartered items would then go to Virginia on the train.
The General Store was the center of the community and served all the shopping needs of the local residents. Customers would gather around the wood cookstove to swap stories and catch up on the town news. Most customers either rode horseback or walked. Only a select few could afford automobiles and the few roads that existed were full of potholes.
The Lean Years
The Norfolk & Western pulled up its tracks from Todd to West Jefferson between 1933 and 1936. This was also the time of the Great Depression and Todd's businesses begun to close one by one. The W.G. Cook Store was the only store that survived through those lean years. Cook was the store's proprietor for 43 years before selling it to Kenny Goodman, who then changed the name to Goodman's Grocery.
Goodmans Grocery
Kenny Goodman ran a thriving general store business for some 20 years. During the last years of his tenure, he began to see the decline of the traditional general store. Automobiles became common place, new and better roads were built and chain grocery stores and department stores were constructed in Boone and West Jefferson. With this new accessibility to the outside world people began traveling to town to buy their goods. Mr. Goodman decided to sell the store that had been the center of trade for so many years.
Three More Owners
The store changed ownership four times during the next eight years. Goodman sold the store to Bob Peet who changed the name to the Todd General Store. Peet was unable to keep up with the changing demands and business declined. Peet sold it to Al and Carol Shelly who ran it for a couple of years before selling it to Dennis and Alice Dent, who operated it for another couple of years. During the proprietorship of these three owners, the stock was depleted as the decline of the rural country general store continued.
The Morgans
Joe and Sheila Morgan purchased the Todd General Store at the beginning of 1985 and operated the store for the next 17 years.
In the first few months, the Morgans undertook needed structural repairs to the building, constructed bathrooms, brought in running water, put in an extensive septic system, and built a parking lot. They searched for replacement fixtures and advertising memorabilia in an attempt to recapture the look of the General Store as it had been in its heyday. Advertising was done throughout the region to attract visitors to the store hoping that their visits would add an economic base to allow the business to remain open year-round to serve the local community's needs.
The Mann's Store
Robert and Virginia Mann purchased the store at the start of 2002 and provided more structural repairs and updated the store's arrangements, providing more seating for audiences of the store's many musical and cultural events, an internet station, and adding a new wooden deck to the back of the store. The store was closed in 2016.
The Cook House
The W.G. Cook house (built in 1916) served as the residence of the store owners until the Morgan purchase. In 1986, the house was converted to use as retail space offering antiques, crafts and collectibles. In 1994, the house was again converted into a rental residential property until December 2000.
2021 Fire
On the evening of February 25, 2021, Todd General Store was heavily damaged by a fire that occurred around 9:45 pm EST.
References
Commercial buildings on the National Register of Historic Places in North Carolina
Buildings and structures in Ashe County, North Carolina
Historic district contributing properties in North Carolina
National Register of Historic Places in Ashe County, North Carolina
General stores in the United States
|
```objective-c
#pragma once
#include <Parsers/IAST.h>
#include <Storages/MergeTree/MergeTreeDataFormatVersion.h>
#include <base/types.h>
#include <Storages/StorageInMemoryMetadata.h>
#include <IO/ReadBufferFromString.h>
namespace DB
{
class MergeTreeData;
class WriteBuffer;
class ReadBuffer;
/** The basic parameters of ReplicatedMergeTree table engine for saving in ZooKeeper.
* Lets you verify that they match local ones.
*/
struct ReplicatedMergeTreeTableMetadata
{
static constexpr int REPLICATED_MERGE_TREE_METADATA_LEGACY_VERSION = 1;
static constexpr int REPLICATED_MERGE_TREE_METADATA_WITH_ALL_MERGE_PARAMETERS = 2;
String date_column;
String sampling_expression;
UInt64 index_granularity;
/// Merging related params
int merging_params_mode;
int merge_params_version = REPLICATED_MERGE_TREE_METADATA_WITH_ALL_MERGE_PARAMETERS;
String sign_column;
String version_column;
String is_deleted_column;
String columns_to_sum;
String graphite_params_hash;
String primary_key;
MergeTreeDataFormatVersion data_format_version;
String partition_key;
String sorting_key;
String skip_indices;
String projections;
String constraints;
String ttl_table;
UInt64 index_granularity_bytes;
ReplicatedMergeTreeTableMetadata() = default;
explicit ReplicatedMergeTreeTableMetadata(const MergeTreeData & data, const StorageMetadataPtr & metadata_snapshot);
void read(ReadBuffer & in);
static ReplicatedMergeTreeTableMetadata parse(const String & s);
void write(WriteBuffer & out) const;
String toString() const;
struct Diff
{
bool sorting_key_changed = false;
String new_sorting_key;
bool sampling_expression_changed = false;
String new_sampling_expression;
bool skip_indices_changed = false;
String new_skip_indices;
bool constraints_changed = false;
String new_constraints;
bool projections_changed = false;
String new_projections;
bool ttl_table_changed = false;
String new_ttl_table;
bool empty() const
{
return !sorting_key_changed && !sampling_expression_changed && !skip_indices_changed && !projections_changed
&& !ttl_table_changed && !constraints_changed;
}
StorageInMemoryMetadata getNewMetadata(const ColumnsDescription & new_columns, ContextPtr context, const StorageInMemoryMetadata & old_metadata) const;
};
void checkEquals(const ReplicatedMergeTreeTableMetadata & from_zk, const ColumnsDescription & columns, ContextPtr context) const;
Diff checkAndFindDiff(const ReplicatedMergeTreeTableMetadata & from_zk, const ColumnsDescription & columns, ContextPtr context) const;
private:
void checkImmutableFieldsEquals(const ReplicatedMergeTreeTableMetadata & from_zk, const ColumnsDescription & columns, ContextPtr context) const;
bool index_granularity_bytes_found_in_zk = false;
};
}
```
|
Caerhowel Bridge () is a two-arch cast-iron, Grade II listed bridge over the River Severn, west of Caerhowel, Powys, Wales. The bridge was built on the site of a previous bridge which was possibly destroyed around the late 13th century. A redesigned timber bridge was destroyed after the River Severn flooded in 1852 and a subsequent bridge fell in 1858. The present-day bridge was designed by Thomas Penson making it the third cast-iron bridge in Montgomeryshire and was renovated in the early 21st century.
Description
Caerhowel Bridge is located approximately south of the A483 road at Garthmyl and the bridge carries the B4385 road. The bridge is made of cast-iron, with stone abutments and one central pier. It is wide and is broader than its equivalents in the villages of Llandinam and Abermule. The bridge's pier extends to the east (upstream) side which forms a low-level cutwater. Its deck is installed with cast-iron outer girders with raised panel ornament which bear the inscriptions 'Thomas Penson County Surveyor 1858' and 'Brymbo Company Iron Founders 1858'.
The bridge has two symmetrical arches which have a span of and consist of five parallel lattice X-shaped ribs which are deep and are braced by wrought iron tie-bars which connect spandrel struts. Lateral stiffening is ensured with rectangular diaphragms at the segment joints and adjacent ribs are linked with diagonal bracing. Traffic lights are located at both ends of the bridge to control the flow of single-line traffic and two footpaths exist for pedestrians to use.
History
An earlier bridge was built around 1250 and was called Baldwin's Bridge. It was possibly destroyed sometime in the latter half of the 13th century although later records recorded a timber bridge at the site around 1600; it had various names such as Montgomery Bridge, Severn Bridge or New Bridge. The timber bridge was destroyed in 1852, when the River Severn flooded. Thomas Penson, the county surveyor of Montgomeryshire, recommended to the local council the authorisation of the construction of a single-arch iron bridge which was rejected in favour of a suspension bridge designed by civil engineer James Dredge, Sr. The new designed bridge opened in 1854; it was designed on Dredge's patented taper-chain principle and was supported by chains. It collapsed in early 1858 whilst lime from Garthmyl Wharf was being transported by horse; a man called Richard Grist was killed. At an inquest into the collapse it was determined that Caerhowel Bridge had not been maintained sufficiently to secure the safety of transport crossing the bridge.
Penson commissioned the present bridge which was cast at Brymbo Iron Foundry and became third iron-cast bridge in Montgomeryshire. It was maintained by the Hundreds of Newtown and Montgomeryshire and later became a county bridge under the Local Act 1830. The bridge's Grade II listed status was conferred onto it on 30 March 1983. By 1997 a nearby bailey bridge was erected across the roadbed to redirect traffic as Caerhowel Bridge had become unsuited to modern-day traffic demands. Caerhowel Bridge was renovated by Alun Griffiths Contractors of Abergavenny between 2003 and 2004 which strengthened the bridge and allowed for heavy load vehicles to use the bridge. Remnants of the previous timber bridge were discovered against the river's east side after a large flood in 2006.
See also
Crossings of the River Severn
References
Bridges across the River Severn
Bridges in Powys
Grade II listed bridges in Wales
Montgomery, Powys
|
Degs and Gabba, formerly known as Tom's Story, is an indie instrumental rock trio based in Manila, Philippines. The band is composed of original members: Tom Naval on bass, Gabba Santiago on guitars, and Christer "Degs" de Guia on drums.
The band independently released its self-titled album in 2016, and is currently managed by A Spur of the Moment Project, an independent record label.
History
The band started in 2010 during their senior years in high school (and at that time, the trio were friends since 2007), due to their musical influences such as Taking Back Sunday and Circa Survive. Although they were never played until in 2011, the trio started their first gig by playing Taking Back Sunday covers at a bar in Parañaque. Originally intended to be punk rock, the band switched to post-rock and math rock but keeping their instrumental rock genre as the main focus.
In 2015, they played their first overseas gig in San Francisco, California.
In 2016, their self-titled debut album was independently-released, with "Anchors" as their first original single, followed by two-part sequels "Dream" and "Catcher". On March 4, 2017, the band performed at Wanderland Music and Arts Festival in Filinvest Alabang.
In January 2019, Naval announced his departure from Tom's Story. Santiago and De Guia, as well as their record label, released their own statement on the former member's exit with an added statement involving a serious incident.
Discography
Studio albums
Tom's Story (2016)
Singles
References
External links
Filipino rock music groups
Math rock groups
Post-rock groups
Musical groups from Manila
Musical groups established in 2010
2010 establishments in the Philippines
|
Edward John Ziemba (born May 2, 1932) is a Canadian former politician in Ontario, Canada. He was a New Democratic member of the Legislative Assembly of Ontario from 1975 to 1981 who represented the downtown Toronto riding of High Park—Swansea.
Background
Ziemba was born in Regina, Saskatchewan and came to Toronto as a young boy. In the 1950s he adopted a new name and was known as Eddie John Harris. Ziemba said, "It was a good way to do business, to adopt an Anglicized name." Operating under this name he worked as an amateur boxer, a television repairman and a private investigator. He also operated a ladies fashion store on Bloor Street West. When he married he signed the licence as Edward Harris, but he decided to revert to his original name when his first child was born. These revelations did not come to light until after Ziemba was elected to the provincial legislature. Morton Shulman who preceded Ziemba as the member for High Park-Swansea stood by him. Shulman said, "I know nothing disreputable about him. He is a dedicated socialist and temperance man."
In the 1970s, Ziemba was secretary for the West Toronto Inter-Church Temperance Federation. William Temple, founder of the group said that Ziemba played a major part in keeping alcohol out of the Bloor West area of Toronto. Temple described Ziemba as "clean living and concerned about the welfare of the weak and helpless in his riding. He goes out of his way to help those in need."
Politics
In 1974, Ziemba ran for a seat on Toronto City Council. He placed third behind incumbents Bill Boytchuk and Elizabeth Eayrs. In the 1975 provincial election he ran as the New Democratic Party candidate in the riding of High Park-Swansea. He defeated, Progressive Conservative candidate Yuri Shymko by 1,773 votes. He was re-elected in 1977 this time defeating his old municipal rival Bill Boytchuk by 788 votes.
He was defeated in the 1981 provincial election by Progressive Conservative Yuri Shymko, who made an issue of Ziemba's six-month expulsion from the legislature after he accused the Conservative government of persuading two opposition MPPs of giving up their seats immediately prior to the 1977 election campaign by offering them patronage positions, allowing the Conservatives to win the seats. "The Tories bought those seats. Those seats have been bought and paid for on the installment plan - and it adds up to $100,000 a year," said Ziemba in 1980 in regards to appointments given to former Liberal MPPs Philip Givens and Vernon Singer.
An outspoken and controversial politician, Ziemba spent six days in Toronto's Don Jail in 1977 for contempt of court when he refused to reveal his informant for allegations that the principals of Abko Laboratories were defrauding the Ontario Health Insurance Plan. The owners of the lab were charged with fraud following a police investigation and Ziemba was called as a witness and refused to reveal his informant on the stand, saying he would not betray his informant's trust. In 1976, Ziemba also sparked an uproar in the legislature when he leaked a list of 812 doctors earning more than $100,000 a year in OHIP billings.
In 1982, he attempted a political comeback by running for Toronto City Council in Ward 1 but was unsuccessful. In the 1990 provincial election, his sister-in-law, Elaine Ziemba, regained the High Park—Swansea seat for the NDP.
After politics
Following his political career, Ziemba worked as a representative of the International Ladies Garment Workers Union in Toronto.
References
External links
1932 births
Canadian people of Polish descent
Trade unionists from Ontario
Living people
Ontario New Democratic Party MPPs
Politicians from Regina, Saskatchewan
|
```objective-c
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef V8_BASE_UTILS_RANDOM_NUMBER_GENERATOR_H_
#define V8_BASE_UTILS_RANDOM_NUMBER_GENERATOR_H_
#include <unordered_set>
#include <vector>
#include "src/base/base-export.h"
#include "src/base/macros.h"
namespace v8 {
namespace base {
// your_sha256_hash-------------
// RandomNumberGenerator
// This class is used to generate a stream of pseudo-random numbers. The class
// uses a 64-bit seed, which is passed through MurmurHash3 to create two 64-bit
// state values. This pair of state values is then used in xorshift128+.
// The resulting stream of pseudo-random numbers has a period length of 2^128-1.
// See Marsaglia: path_to_url
// And Vigna: path_to_url
// NOTE: Any changes to the algorithm must be tested against TestU01.
// Please find instructions for this in the internal repository.
// If two instances of RandomNumberGenerator are created with the same seed, and
// the same sequence of method calls is made for each, they will generate and
// return identical sequences of numbers.
// This class uses (probably) weak entropy by default, but it's sufficient,
// because it is the responsibility of the embedder to install an entropy source
// using v8::V8::SetEntropySource(), which provides reasonable entropy, see:
// path_to_url
// This class is neither reentrant nor threadsafe.
class V8_BASE_EXPORT RandomNumberGenerator final {
public:
// EntropySource is used as a callback function when V8 needs a source of
// entropy.
typedef bool (*EntropySource)(unsigned char* buffer, size_t buflen);
static void SetEntropySource(EntropySource entropy_source);
RandomNumberGenerator();
explicit RandomNumberGenerator(int64_t seed) { SetSeed(seed); }
// Returns the next pseudorandom, uniformly distributed int value from this
// random number generator's sequence. The general contract of |NextInt()| is
// that one int value is pseudorandomly generated and returned.
// All 2^32 possible integer values are produced with (approximately) equal
// probability.
V8_INLINE int NextInt() V8_WARN_UNUSED_RESULT { return Next(32); }
// Returns a pseudorandom, uniformly distributed int value between 0
// (inclusive) and the specified max value (exclusive), drawn from this random
// number generator's sequence. The general contract of |NextInt(int)| is that
// one int value in the specified range is pseudorandomly generated and
// returned. All max possible int values are produced with (approximately)
// equal probability.
int NextInt(int max) V8_WARN_UNUSED_RESULT;
// Returns the next pseudorandom, uniformly distributed boolean value from
// this random number generator's sequence. The general contract of
// |NextBoolean()| is that one boolean value is pseudorandomly generated and
// returned. The values true and false are produced with (approximately) equal
// probability.
V8_INLINE bool NextBool() V8_WARN_UNUSED_RESULT { return Next(1) != 0; }
// Returns the next pseudorandom, uniformly distributed double value between
// 0.0 and 1.0 from this random number generator's sequence.
// The general contract of |NextDouble()| is that one double value, chosen
// (approximately) uniformly from the range 0.0 (inclusive) to 1.0
// (exclusive), is pseudorandomly generated and returned.
double NextDouble() V8_WARN_UNUSED_RESULT;
// Returns the next pseudorandom, uniformly distributed int64 value from this
// random number generator's sequence. The general contract of |NextInt64()|
// is that one 64-bit int value is pseudorandomly generated and returned.
// All 2^64 possible integer values are produced with (approximately) equal
// probability.
int64_t NextInt64() V8_WARN_UNUSED_RESULT;
// Fills the elements of a specified array of bytes with random numbers.
void NextBytes(void* buffer, size_t buflen);
// Returns the next pseudorandom set of n unique uint64 values smaller than
// max.
// n must be less or equal to max.
std::vector<uint64_t> NextSample(uint64_t max,
size_t n) V8_WARN_UNUSED_RESULT;
// Returns the next pseudorandom set of n unique uint64 values smaller than
// max.
// n must be less or equal to max.
// max - |excluded| must be less or equal to n.
//
// Generates list of all possible values and removes random values from it
// until size reaches n.
std::vector<uint64_t> NextSampleSlow(
uint64_t max, size_t n,
const std::unordered_set<uint64_t>& excluded =
std::unordered_set<uint64_t>{}) V8_WARN_UNUSED_RESULT;
// Override the current ssed.
void SetSeed(int64_t seed);
int64_t initial_seed() const { return initial_seed_; }
// Static and exposed for external use.
static inline double ToDouble(uint64_t state0, uint64_t state1) {
// Exponent for double values for [1.0 .. 2.0)
static const uint64_t kExponentBits = uint64_t{0x3FF0000000000000};
static const uint64_t kMantissaMask = uint64_t{0x000FFFFFFFFFFFFF};
uint64_t random = ((state0 + state1) & kMantissaMask) | kExponentBits;
return bit_cast<double>(random) - 1;
}
// Static and exposed for external use.
static inline void XorShift128(uint64_t* state0, uint64_t* state1) {
uint64_t s1 = *state0;
uint64_t s0 = *state1;
*state0 = s0;
s1 ^= s1 << 23;
s1 ^= s1 >> 17;
s1 ^= s0;
s1 ^= s0 >> 26;
*state1 = s1;
}
private:
static const int64_t kMultiplier = V8_2PART_UINT64_C(0x5, deece66d);
static const int64_t kAddend = 0xb;
static const int64_t kMask = V8_2PART_UINT64_C(0xffff, ffffffff);
int Next(int bits) V8_WARN_UNUSED_RESULT;
static uint64_t MurmurHash3(uint64_t);
int64_t initial_seed_;
uint64_t state0_;
uint64_t state1_;
};
} // namespace base
} // namespace v8
#endif // V8_BASE_UTILS_RANDOM_NUMBER_GENERATOR_H_
```
|
```c++
#include <stdio.h>
class c{
public:
long long f;
};
class c2{
public:
long long f2;
};
static class sss: public c, public c2{
public:
long long m;
} sss;
#define _offsetof(st,f) ((char *)&((st *) 16)->f - (char *) 16)
int main (void) {
printf ("++Class with longlong inhereting classes with longlong & longlong:\n");
printf ("size=%d,align=%d\n", sizeof (sss), __alignof__ (sss));
printf ("offset-f=%d,offset-f2=%d,offset-m=%d,\nalign-f=%d,align-f2=%d,align-m=%d\n",
_offsetof (class sss, f), _offsetof (class sss, f2), _offsetof (class sss, m),
__alignof__ (sss.f), __alignof__ (sss.f2), __alignof__ (sss.m));
return 0;
}
```
|
```c++
//your_sha256_hash---------------------------------------
//your_sha256_hash---------------------------------------
#include "RuntimeByteCodePch.h"
#if DBG_DUMP
static const char16 * const SymbolTypeNames[] = { _u("Function"), _u("Variable"), _u("MemberName"), _u("Formal"), _u("Unknown") };
#endif
bool Symbol::IsArguments() const
{
return decl != nullptr && (decl->grfpn & PNodeFlags::fpnArguments);
}
bool Symbol::IsSpecialSymbol() const
{
return decl != nullptr && (decl->grfpn & PNodeFlags::fpnSpecialSymbol);
}
Js::PropertyId Symbol::EnsurePosition(ByteCodeGenerator* byteCodeGenerator)
{
// Guarantee that a symbol's name has a property ID mapping.
if (this->position == Js::Constants::NoProperty)
{
this->position = this->EnsurePositionNoCheck(byteCodeGenerator->TopFuncInfo());
}
return this->position;
}
Js::PropertyId Symbol::EnsurePosition(FuncInfo *funcInfo)
{
// Guarantee that a symbol's name has a property ID mapping.
if (this->position == Js::Constants::NoProperty)
{
this->position = this->EnsurePositionNoCheck(funcInfo);
}
return this->position;
}
Js::PropertyId Symbol::EnsurePositionNoCheck(FuncInfo *funcInfo)
{
return funcInfo->byteCodeFunction->GetOrAddPropertyIdTracked(this->GetName());
}
void Symbol::SaveToPropIdArray(Symbol *sym, Js::PropertyIdArray *propIds, ByteCodeGenerator *byteCodeGenerator, Js::PropertyId *pFirstSlot /* = null */)
{
if (sym)
{
Js::PropertyId slot = sym->scopeSlot;
if (slot != Js::Constants::NoProperty)
{
Assert((uint32)slot < propIds->count);
propIds->elements[slot] = sym->EnsurePosition(byteCodeGenerator);
if (pFirstSlot && !sym->IsArguments())
{
if (*pFirstSlot == Js::Constants::NoProperty ||
*pFirstSlot > slot)
{
*pFirstSlot = slot;
}
}
}
}
}
bool Symbol::NeedsSlotAlloc(ByteCodeGenerator *byteCodeGenerator, FuncInfo *funcInfo)
{
return IsInSlot(byteCodeGenerator, funcInfo, true);
}
bool Symbol::IsInSlot(ByteCodeGenerator *byteCodeGenerator, FuncInfo *funcInfo, bool ensureSlotAlloc)
{
if (this->GetIsGlobal() || this->GetIsModuleExportStorage())
{
return false;
}
if (funcInfo->GetHasHeapArguments() && this->GetIsFormal() && byteCodeGenerator->NeedScopeObjectForArguments(funcInfo, funcInfo->root))
{
return true;
}
if (this->GetIsGlobalCatch())
{
return true;
}
if (this->scope->GetCapturesAll())
{
return true;
}
return this->GetHasNonLocalReference() && (ensureSlotAlloc || this->GetIsCommittedToSlot());
}
bool Symbol::GetIsCommittedToSlot() const
{
if (!PHASE_ON1(Js::DelayCapturePhase))
{
return true;
}
return isCommittedToSlot || this->scope->GetFunc()->GetCallsEval() || this->scope->GetFunc()->GetChildCallsEval();
}
Js::PropertyId Symbol::EnsureScopeSlot(ByteCodeGenerator *byteCodeGenerator, FuncInfo *funcInfo)
{
if (this->NeedsSlotAlloc(byteCodeGenerator, funcInfo) && this->scopeSlot == Js::Constants::NoProperty)
{
this->scopeSlot = this->scope->AddScopeSlot();
}
return this->scopeSlot;
}
void Symbol::SetHasNonLocalReference()
{
this->hasNonLocalReference = true;
this->scope->SetHasOwnLocalInClosure(true);
}
void Symbol::SetHasMaybeEscapedUse(ByteCodeGenerator * byteCodeGenerator)
{
Assert(!this->GetIsMember());
if (!hasMaybeEscapedUse)
{
SetHasMaybeEscapedUseInternal(byteCodeGenerator);
}
}
void Symbol::SetHasMaybeEscapedUseInternal(ByteCodeGenerator * byteCodeGenerator)
{
Assert(!hasMaybeEscapedUse);
Assert(!this->GetIsFormal());
hasMaybeEscapedUse = true;
if (PHASE_TESTTRACE(Js::StackFuncPhase, byteCodeGenerator->TopFuncInfo()->byteCodeFunction))
{
Output::Print(_u("HasMaybeEscapedUse: %s\n"), this->GetName().GetBuffer());
Output::Flush();
}
if (this->GetHasFuncAssignment())
{
this->GetScope()->GetFunc()->SetHasMaybeEscapedNestedFunc(
DebugOnly(this->symbolType == STFunction ? _u("MaybeEscapedUseFuncDecl") : _u("MaybeEscapedUse")));
}
}
void Symbol::SetHasFuncAssignment(ByteCodeGenerator * byteCodeGenerator)
{
Assert(!this->GetIsMember());
if (!hasFuncAssignment)
{
SetHasFuncAssignmentInternal(byteCodeGenerator);
}
}
void Symbol::SetHasFuncAssignmentInternal(ByteCodeGenerator * byteCodeGenerator)
{
Assert(!hasFuncAssignment);
hasFuncAssignment = true;
FuncInfo * top = byteCodeGenerator->TopFuncInfo();
if (PHASE_TESTTRACE(Js::StackFuncPhase, top->byteCodeFunction))
{
Output::Print(_u("HasFuncAssignment: %s\n"), this->GetName().GetBuffer());
Output::Flush();
}
if (this->GetHasMaybeEscapedUse() || this->GetScope()->GetIsObject())
{
byteCodeGenerator->TopFuncInfo()->SetHasMaybeEscapedNestedFunc(DebugOnly(
this->GetIsFormal() ? _u("FormalAssignment") :
this->GetScope()->GetIsObject() ? _u("ObjectScopeAssignment") :
_u("MaybeEscapedUse")));
}
}
void Symbol::RestoreHasFuncAssignment()
{
Assert(hasFuncAssignment == (this->symbolType == STFunction));
Assert(this->GetIsFormal() || !this->GetHasMaybeEscapedUse());
hasFuncAssignment = true;
if (PHASE_TESTTRACE1(Js::StackFuncPhase))
{
Output::Print(_u("RestoreHasFuncAssignment: %s\n"), this->GetName().GetBuffer());
Output::Flush();
}
}
Symbol * Symbol::GetFuncScopeVarSym() const
{
if (!this->GetIsBlockVar())
{
return nullptr;
}
FuncInfo * parentFuncInfo = this->GetScope()->GetFunc();
if (parentFuncInfo->GetIsStrictMode())
{
return nullptr;
}
Symbol *fncScopeSym = parentFuncInfo->GetBodyScope()->FindLocalSymbol(this->GetName());
if (fncScopeSym == nullptr && parentFuncInfo->GetParamScope() != nullptr)
{
// We couldn't find the sym in the body scope, try finding it in the parameter scope.
Scope* paramScope = parentFuncInfo->GetParamScope();
fncScopeSym = paramScope->FindLocalSymbol(this->GetName());
}
// Parser should have added a fake var decl node for block scoped functions in non-strict mode
// IsBlockVar() indicates a user let declared variable at function scope which
// shadows the function's var binding, thus only emit the var binding init if
// we do not have a block var symbol.
if (!fncScopeSym || fncScopeSym->GetIsBlockVar())
{
return nullptr;
}
return fncScopeSym;
}
#if DBG_DUMP
const char16 * Symbol::GetSymbolTypeName()
{
return SymbolTypeNames[symbolType];
}
#endif
```
|
```javascript
const path = require('path');
const fs = require('fs-extra');
const Handlebars = require('handlebars');
const Build = require('@jupyterlab/builder').Build;
const webpack = require('webpack');
const merge = require('webpack-merge').default;
const baseConfig = require('@jupyterlab/builder/lib/webpack.config.base');
const { ModuleFederationPlugin } = webpack.container;
const packageData = require('./package.json');
const jlab = packageData.jupyterlab;
// Create a list of application extensions and mime extensions from
// jlab.extensions
const extensions = {};
const mimeExtensions = {};
for (const key of jlab.extensions) {
const {
jupyterlab: { extension, mimeExtension }
} = require(`${key}/package.json`);
if (extension !== undefined) {
extensions[key] = extension === true ? '' : extension;
}
if (mimeExtension !== undefined) {
mimeExtensions[key] = mimeExtension === true ? '' : mimeExtension;
}
}
// buildDir is a temporary directory where files are copied before the build.
const buildDir = path.resolve(jlab.buildDir);
fs.emptyDirSync(buildDir);
// outputDir is where the final built assets go
const outputDir = path.resolve(jlab.outputDir);
fs.emptyDirSync(outputDir);
// <schemaDir>/schemas is where the settings schemas live
const schemaDir = path.resolve(jlab.schemaDir || outputDir);
// ensureAssets puts schemas in the schemas subdirectory
fs.emptyDirSync(path.join(schemaDir, 'schemas'));
// <themeDir>/themes is where theme assets live
const themeDir = path.resolve(jlab.themeDir || outputDir);
// ensureAssets puts themes in the themes subdirectory
fs.emptyDirSync(path.join(themeDir, 'themes'));
// Configuration to handle extension assets
const extensionAssetConfig = Build.ensureAssets({
packageNames: jlab.extensions,
output: buildDir,
schemaOutput: schemaDir,
themeOutput: themeDir
});
// Create the entry point and other assets in build directory.
const template = Handlebars.compile(
fs.readFileSync('index.template.js').toString()
);
fs.writeFileSync(
path.join(buildDir, 'index.js'),
template({ extensions, mimeExtensions })
);
// Create the bootstrap file that loads federated extensions and calls the
// initialization logic in index.js
const entryPoint = path.join(buildDir, 'bootstrap.js');
fs.copySync('./bootstrap.js', entryPoint);
/**
* Create the webpack ``shared`` configuration
*/
function createShared(packageData) {
// Set up module federation sharing config
const shared = {};
const extensionPackages = packageData.jupyterlab.extensions;
// Make sure any resolutions are shared
for (let [pkg, requiredVersion] of Object.entries(packageData.resolutions)) {
shared[pkg] = { requiredVersion };
}
// Add any extension packages that are not in resolutions (i.e., installed from npm)
for (let pkg of extensionPackages) {
if (!shared[pkg]) {
shared[pkg] = {
requiredVersion: require(`${pkg}/package.json`).version
};
}
}
// Add dependencies and sharedPackage config from extension packages if they
// are not already in the shared config. This means that if there is a
// conflict, the resolutions package version is the one that is shared.
const extraShared = [];
for (let pkg of extensionPackages) {
let pkgShared = {};
let {
dependencies = {},
jupyterlab: { sharedPackages = {} } = {}
} = require(`${pkg}/package.json`);
for (let [dep, requiredVersion] of Object.entries(dependencies)) {
if (!shared[dep]) {
pkgShared[dep] = { requiredVersion };
}
}
// Overwrite automatic dependency sharing with custom sharing config
for (let [dep, config] of Object.entries(sharedPackages)) {
if (config === false) {
delete pkgShared[dep];
} else {
if ('bundled' in config) {
config.import = config.bundled;
delete config.bundled;
}
pkgShared[dep] = config;
}
}
extraShared.push(pkgShared);
}
// Now merge the extra shared config
const mergedShare = {};
for (let sharedConfig of extraShared) {
for (let [pkg, config] of Object.entries(sharedConfig)) {
// Do not override the basic share config from resolutions
if (shared[pkg]) {
continue;
}
// Add if we haven't seen the config before
if (!mergedShare[pkg]) {
mergedShare[pkg] = config;
continue;
}
// Choose between the existing config and this new config. We do not try
// to merge configs, which may yield a config no one wants
let oldConfig = mergedShare[pkg];
// if the old one has import: false, use the new one
if (oldConfig.import === false) {
mergedShare[pkg] = config;
}
}
}
Object.assign(shared, mergedShare);
// Transform any file:// requiredVersion to the version number from the
// imported package. This assumes (for simplicity) that the version we get
// importing was installed from the file.
for (let [pkg, { requiredVersion }] of Object.entries(shared)) {
if (requiredVersion && requiredVersion.startsWith('file:')) {
shared[pkg].requiredVersion = require(`${pkg}/package.json`).version;
}
}
// Add singleton package information
for (let pkg of packageData.jupyterlab.singletonPackages) {
shared[pkg].singleton = true;
}
return shared;
}
const plugins = [
new ModuleFederationPlugin({
library: {
type: 'var',
name: ['_JUPYTERLAB', 'CORE_LIBRARY_FEDERATION']
},
name: 'CORE_FEDERATION',
shared: createShared(packageData)
})
];
module.exports = [
merge(baseConfig, {
mode: 'development',
devtool: 'source-map',
entry: ['./publicpath.js', entryPoint],
output: {
path: path.resolve(outputDir),
library: {
type: 'var',
name: ['_JUPYTERLAB', 'CORE_OUTPUT']
},
filename: 'bundle.js'
},
optimization: {
splitChunks: {
chunks: 'all',
cacheGroups: {
jlab_core: {
test: /[\\/](node_modules[\\/]@(jupyterlab|lumino)|packages)[\\/]/,
name: 'jlab_core'
}
}
}
},
plugins
})
].concat(extensionAssetConfig);
// For debugging, write the config out
fs.writeFileSync(
path.join(buildDir, 'webpack.config-log.json'),
JSON.stringify(module.exports, null, ' ')
);
```
|
Sergeant major signals (SMS) is a British Army appointment, formerly known as sergeant major instructor signals (SMIS). Normally a warrant officer class 2 in the British Army, selection for this post was the culmination of many years of experience with modern radio communications systems. During their careers it was possible to be trained in several evolving systems for example the movement from Larkspur and Clansman to the more recent Bowman radio communication equipment. Their duties included training personnel by the development and execution of in-house and in-theatre courses, keeping their signal sergeants up-to-date with amendments to policies and equipment, equipment husbandry, equipment procurement and high level custodian protection of electronic and paper codes. They had to produce communications electronic instructions containing relevant daily frequencies and associated information for radio operators.
Generally the SMS would be housed in the regimental training wing and was given numerous other roles to fulfil by the unit training officer. The SMS normally had a secondary roll as a troop sergeant major.
A sergeant major signals wore a warrant officer's crown on his sleeve.
A typical career ladder would be: basic training followed by a basic radio communicators course of approximately 3 weeks duration. Progress to an advanced level of about 4 – 6 weeks duration followed after roughly 3 or more years field experience. The soldier would also have to attend a junior cadre course, which built on basic soldiering skills and was a necessary step for selection for their first promotion. As they were competing for their second promotion the soldier would be selected to attend an assistant regimental instructor's course of approximately 6–8 weeks duration. This would supply individual companies (or similar sub-units) with experienced training staff. The assistant regimental instructor's course was a pre-requisite to selection for their third promotion to the signal sergeant's post but not as a pre-requisite for promotion to sergeant which was justified by the completion of the Education for Promotion Certificate. They would also have to attend the crew commander's course which was a more thorough cadre and be selected for further promotion by selection from other competing corporals (or equivalent). This was based on a scoring system derived from the confidential report forms that were annually completed since promotion to corporal.
Once a sergeant was employed as a signals sergeant for approximately 4 years he/she could gain further promotion by selection from other competing signal sergeants. This was based on a scoring system derived from the confidential report forms that were annually completed since promotion to sergeant. They would also have to pass the Education for Promotion Certificate Level 2.
Promotion to the role of SMS could be while still as a sergeant awaiting further promotion (but having been informed of that promotion). This may have been because of an inhibiting factor such as an outgoing SMS still in his post but awaiting to be posted elsewhere. In most cases where this happened the sergeant could be given a local (unpaid) promotion. Once the outgoing SMS had left the sergeant would be promoted to either staff sergeant or warrant officer. Providing a SMS gave a good account of his duties and he was a staff sergeant, his subsequent promotion to warrant officer class II would generally follow at the next promotions board.
A SMS could then be selected for further promotions to company sergeant major, battery sergeant major, regimental quartermaster sergeant, regimental sergeant major or regimental sergeant major instructor.
Military appointments of the British Army
Warrant officers
|
Vernon Patao (born February 13, 1970) is an American former weightlifter. He competed in the men's lightweight event at the 1992 Summer Olympics and the men's featherweight event at the 1996 Summer Olympics.
References
External links
1970 births
Living people
American male weightlifters
Olympic weightlifters for the United States
Weightlifters at the 1992 Summer Olympics
Weightlifters at the 1996 Summer Olympics
People from Wailuku, Hawaii
Sportspeople from Maui County, Hawaii
20th-century American people
21st-century American people
|
```go
package cmd
import (
"testing"
"github.com/sirupsen/logrus"
"github.com/spf13/cobra"
dbpkg "github.com/stellar/go/exp/services/recoverysigner/internal/db"
"github.com/stellar/go/exp/services/recoverysigner/internal/db/dbtest"
"github.com/stellar/go/support/log"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
func TestDBCommand_Migrate_upDownAll(t *testing.T) {
db := dbtest.OpenWithoutMigrations(t)
log := log.New()
dbCommand := DBCommand{
Logger: log,
DatabaseURL: db.DSN,
}
// Migrate Up
{
logsGet := log.StartTest(logrus.InfoLevel)
dbCommand.Migrate(&cobra.Command{}, []string{"up"})
session, err := dbpkg.Open(db.DSN)
require.NoError(t, err)
ids := []string{}
err = session.Select(&ids, `SELECT id FROM gorp_migrations`)
require.NoError(t, err)
wantIDs := []string{
"20200309000000-initial-1.sql",
"20200309000001-initial-2.sql",
"20200311000000-create-accounts.sql",
"20200311000001-create-identities.sql",
"20200311000002-create-auth-methods.sql",
"20200320000000-create-accounts-audit.sql",
"20200320000001-create-identities-audit.sql",
"20200320000002-create-auth-methods-audit.sql",
}
assert.Equal(t, wantIDs, ids)
logs := logsGet()
messages := []string{}
for _, l := range logs {
messages = append(messages, l.Message)
}
wantMessages := []string{
"Migrations to apply up: 20200309000000-initial-1.sql, 20200309000001-initial-2.sql, 20200311000000-create-accounts.sql, 20200311000001-create-identities.sql, 20200311000002-create-auth-methods.sql, 20200320000000-create-accounts-audit.sql, 20200320000001-create-identities-audit.sql, 20200320000002-create-auth-methods-audit.sql",
"Successfully applied 8 migrations up.",
}
assert.Equal(t, wantMessages, messages)
}
// Migrate Down
{
logsGet := log.StartTest(logrus.InfoLevel)
dbCommand.Migrate(&cobra.Command{}, []string{"down"})
session, err := dbpkg.Open(db.DSN)
require.NoError(t, err)
ids := []string{}
err = session.Select(&ids, `SELECT id FROM gorp_migrations`)
require.NoError(t, err)
assert.Empty(t, ids)
logs := logsGet()
messages := []string{}
for _, l := range logs {
messages = append(messages, l.Message)
}
wantMessages := []string{
"Migrations to apply down: 20200320000002-create-auth-methods-audit.sql, 20200320000001-create-identities-audit.sql, 20200320000000-create-accounts-audit.sql, 20200311000002-create-auth-methods.sql, 20200311000001-create-identities.sql, 20200311000000-create-accounts.sql, 20200309000001-initial-2.sql, 20200309000000-initial-1.sql",
"Successfully applied 8 migrations down.",
}
assert.Equal(t, wantMessages, messages)
}
}
func TestDBCommand_Migrate_upTwoDownOne(t *testing.T) {
db := dbtest.OpenWithoutMigrations(t)
log := log.New()
dbCommand := DBCommand{
Logger: log,
DatabaseURL: db.DSN,
}
// Migrate Up 2
{
logsGet := log.StartTest(logrus.InfoLevel)
dbCommand.Migrate(&cobra.Command{}, []string{"up", "2"})
session, err := dbpkg.Open(db.DSN)
require.NoError(t, err)
ids := []string{}
err = session.Unsafe().Select(&ids, `SELECT id FROM gorp_migrations`)
require.NoError(t, err)
wantIDs := []string{
"20200309000000-initial-1.sql",
"20200309000001-initial-2.sql",
}
assert.Equal(t, wantIDs, ids)
logs := logsGet()
messages := []string{}
for _, l := range logs {
messages = append(messages, l.Message)
}
wantMessages := []string{
"Migrations to apply up: 20200309000000-initial-1.sql, 20200309000001-initial-2.sql",
"Successfully applied 2 migrations up.",
}
assert.Equal(t, wantMessages, messages)
}
// Migrate Down 1
{
logsGet := log.StartTest(logrus.InfoLevel)
dbCommand.Migrate(&cobra.Command{}, []string{"down", "1"})
session, err := dbpkg.Open(db.DSN)
require.NoError(t, err)
ids := []string{}
err = session.Select(&ids, `SELECT id FROM gorp_migrations`)
require.NoError(t, err)
wantIDs := []string{
"20200309000000-initial-1.sql",
}
assert.Equal(t, wantIDs, ids)
logs := logsGet()
messages := []string{}
for _, l := range logs {
messages = append(messages, l.Message)
}
wantMessages := []string{
"Migrations to apply down: 20200309000001-initial-2.sql",
"Successfully applied 1 migrations down.",
}
assert.Equal(t, wantMessages, messages)
}
}
func TestDBCommand_Migrate_invalidDirection(t *testing.T) {
db := dbtest.OpenWithoutMigrations(t)
log := log.New()
dbCommand := DBCommand{
Logger: log,
DatabaseURL: db.DSN,
}
logsGet := log.StartTest(logrus.InfoLevel)
dbCommand.Migrate(&cobra.Command{}, []string{"invalid"})
session, err := dbpkg.Open(db.DSN)
require.NoError(t, err)
tables := []string{}
err = session.Select(&tables, `SELECT table_name FROM information_schema.tables WHERE table_schema='public'`)
require.NoError(t, err)
assert.Empty(t, tables)
logs := logsGet()
messages := []string{}
for _, l := range logs {
messages = append(messages, l.Message)
}
wantMessages := []string{
"Invalid migration direction, must be 'up' or 'down'.",
}
assert.Equal(t, wantMessages, messages)
}
func TestDBCommand_Migrate_invalidCount(t *testing.T) {
db := dbtest.OpenWithoutMigrations(t)
log := log.New()
dbCommand := DBCommand{
Logger: log,
DatabaseURL: db.DSN,
}
logsGet := log.StartTest(logrus.InfoLevel)
dbCommand.Migrate(&cobra.Command{}, []string{"down", "invalid"})
dbCommand.Migrate(&cobra.Command{}, []string{"up", "invalid"})
session, err := dbpkg.Open(db.DSN)
require.NoError(t, err)
tables := []string{}
err = session.Select(&tables, `SELECT table_name FROM information_schema.tables WHERE table_schema='public'`)
require.NoError(t, err)
assert.Empty(t, tables)
logs := logsGet()
messages := []string{}
for _, l := range logs {
messages = append(messages, l.Message)
}
wantMessages := []string{
"Invalid migration count, must be a number.",
"Invalid migration count, must be a number.",
}
assert.Equal(t, wantMessages, messages)
}
func TestDBCommand_Migrate_zeroCount(t *testing.T) {
db := dbtest.OpenWithoutMigrations(t)
log := log.New()
dbCommand := DBCommand{
Logger: log,
DatabaseURL: db.DSN,
}
logsGet := log.StartTest(logrus.InfoLevel)
dbCommand.Migrate(&cobra.Command{}, []string{"down", "0"})
dbCommand.Migrate(&cobra.Command{}, []string{"up", "0"})
session, err := dbpkg.Open(db.DSN)
require.NoError(t, err)
tables := []string{}
err = session.Select(&tables, `SELECT table_name FROM information_schema.tables WHERE table_schema='public'`)
require.NoError(t, err)
assert.Empty(t, tables)
logs := logsGet()
messages := []string{}
for _, l := range logs {
messages = append(messages, l.Message)
}
wantMessages := []string{
"Invalid migration count, must be a number greater than zero.",
"Invalid migration count, must be a number greater than zero.",
}
assert.Equal(t, wantMessages, messages)
}
```
|
Norberto Ladrón de Guevara Almeida (31 January 1892 – 23 October 1969) was a Chilean footballer. He played in two matches for the Chile national football team in 1917. He was also part of Chile's squad for the 1917 South American Championship.
References
External links
1892 births
1969 deaths
Chilean men's footballers
Chile men's international footballers
Men's association football midfielders
Footballers from Valparaíso
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.