Niigata bugyō

Niigata bugyō (新潟奉行) were officials of the Tokugawa shogunate in Edo period Japan. Appointments to this prominent office were usually fudai daimyōs, but this was amongst the senior administrative posts open to those who were not daimyōs.[1] Conventional interpretations have construed these Japanese titles as "commissioner" or "overseer" or "governor".

The city of Niigata is the largest city in what was once Echigo Province. It lies on the northwest coast of Honshū, the largest island of Japan. The port on the Sea of Japan faces west towards Sado Island. In 1858, Niigata was designated as one of the five ports to be opened for international trade in the Treaty of Amity and Commerce between Japan and the United States; however, the shallow water level in the port delayed the actual opening to foreign ships until 1869.

This bakufu tile identifies an official responsible for administration of the port city of Niigata. The numbers of men holding the title concurrently would vary over time.[1]

List of Niigata bugyō

gollark: It's ARBITRARY C!
gollark: HOW?!
gollark: WHY(JIT) is capable of arbitrary IO.
gollark: Er, you'd need to sandbox it.
gollark: ```python#!/usr/bin/env python3import argparseimport subprocessimport randomimport stringparser = argparse.ArgumentParser(description="Compile a WHY program using WHYJIT.")parser.add_argument("input", help="File containing WHY source code")parser.add_argument("-o", "--output", help="Filename of the output executable to make", default="./a.why")parser.add_argument("-O", "--optimize", help="Optimization level", type=int, default="0")args = parser.parse_args()def randomword(length): letters = string.ascii_lowercase return ''.join(random.choice(letters) for i in range(length))def which(program): proc = subprocess.run(["which", program], stdout=subprocess.PIPE) if proc.returncode == 0: return proc.stdout.replace(b"\n", b"") else: return Nonedef find_C_compiler(): compilers = ["gcc", "clang", "tcc", "cc"] for compiler in compilers: path = which(compiler) if path != None: return pathdef build_output(code, mx): C_code = f"""#define QUITELONG long long intconst QUITELONG max = {mx};int main() {{ volatile QUITELONG i = 0; // disable some "optimizations" that RUIN OUR BEAUTIFUL CODE! while (i < max) {{ i++; }} {code}}} """ heredoc = randomword(100) devnull = "2>/dev/null" shell_script = f"""#!/bin/shTMP1=/tmp/ignore-meTMP2=/tmp/ignore-me-tooTMP3=/tmp/dont-look-here cat << {heredoc} > $TMP1{C_code}{heredoc}sed -e '1,/^exit \$?$/d' "$0" > $TMP3chmod +x $TMP3$TMP3 -x c -o $TMP2 $TMP1chmod +x $TMP2$TMP2exit $?""".encode("utf-8") with open(find_C_compiler(), "rb") as f: return shell_script + f.read()input = args.inputoutput = args.outputwith open(input, "r") as f: contents = f.read() looplen = max(1000, (2 ** -args.optimize) * 1000000000) code = build_output( contents, looplen ) with open(output, "wb") as out: out.write(code)```

See also

Notes

  1. Beasley, William G. (1955). Select Documents on Japanese Foreign Policy, 1853–1868, p. 325.

References

  • Beasley, William G. (1955). Select Documents on Japanese Foreign Policy, 1853-1868. London: Oxford University Press. [reprinted by RoutledgeCurzon, London, 2001. ISBN 978-0-19-713508-2 (cloth)]


This article is issued from Wikipedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.