「set」を含む日記 RSS

はてなキーワード: setとは

2023-09-26

万物黎明』は人類歴史を誤解している・続きの続きの続きの続き

国家に反対すること

フラナリーやマーカス、スコットらに倣えば、最近まですべての階級社会における中心的な政治闘争は、誰が土地を耕し、誰が食料を手に入れるかをめぐるものだった。グレーバーとウェングローの見方は異なる。彼らにとって中心的な問題権力であり、中心的な敵は国家である。そのため、彼らはいくつかの点で階級無視している。これは彼らがアナーキストからではない。ほとんどのアナーキストは、常に階級権力を同時に重視することができる。

しかし、『万物黎明』における省略は重要である。グレーバーとウェングローは、合意的で参加型の集会を支持する議論推し進めようと躍起になっているように見えるが、そのために私たちに一連の謎を残している。4つの簡単な例を挙げれば、その問題がよくわかるだろう。

著者たちは、都市における国家に先行することが多い、村落における階級格差の拡大には関心がなく、その文献を否定している。また、小王国領主爵位にも興味がない。中央集権的な大国家が存在しなければそれでいいのだ。私たちは、複雑な採集民に関する彼らの説明の中に、このような紆余曲折をいくつか見てきた。このようなことは、他の多くの例にも現れている。

インダス

インダス川沿いの古代都市モヘンジョ=ダロでは、約4万人が階級的不平等国家もなく暮らしていた。

そして彼らは、ヒンドゥトヴァ派の歴史家たちと同様に、モヘンジョ=ダロは実際に南アジアカーストに沿って組織されていたと示唆する。しかし、グレーバーとウェングローは、これは平等主義的なカーストであったと言う。最初は驚かされるが、彼らが言いたいのは、王のいないカーストの不平等容認できるということである[11]。

ナチェス

彼らは一貫して伝統的な王権の力を最小限に抑えている。ミシシッピ川流域のナチェズ王国がその好例である。グレーバーとウェングローは、太陽王権力凶悪な残虐性は彼の村の外には及ばなかったと言う。しかし実際には、ナチェズは白人プランター奉仕する奴隷貿易における主要な地域勢力であった[12]。

人間犠牲

グレーバーとウェングローは、残酷人身御供祭り世界中の初期の州で見られるという重要事実を正しく強調している。数十人から数百人が生け贄にされ、その多くは戦争捕虜若い女性、貧しい人々であった。

彼らは当然憤慨している。しかし、これらの生け贄の目的は、敵である他国の人々を恐怖に陥れることであったとも感じている。それとは対照的に、私たちは、流血の主な目的は、流血の実際の聴衆である残酷地方国家臣民を恐怖に陥れることだったと考えている。

実際、このような残酷さが、それぞれの国家の初期の歴史に特徴的なのはそのためだろう。国家正当性がまだ弱く、恐怖が最も必要とされていた時代である国家権力が強化されるにつれて、戦乱や敵対は続くものの、壮大な犠牲が消えていくのもそのためだろう。

集会

集会のもの重要最後の例である。グレーバーとウェングローは、古代メソポタミア王国国家における都市集会の力を極めて正しく指摘している。彼らは、これは王がすべての権力を持っていたわけではないという証拠だと言う。これは正しい。これらの王国階級闘争が止まっていたと考えるのは、よほどナイーブでなければならないだろう。

しかし、グレイバーとウェングローは飛躍する。彼らは、これらの都市議会は、参加型民主主義を掲げる「占拠せよ!」やその他の社会正義運動集会に似ていると指摘する。

古代メソポタミアでは、参加型民主主義いかなる形態についても、これといった証拠はない。しかし、他の階級社会における都市全体や全国的議会については、膨大な証拠がある。そのどれもが、富裕層や有力な一族によって支配されていた。古代スパルタでは地主支配していた。ローマ元老院も同様だった。ジョン王や男爵家もそうだった。そしてごく最近まで、ヨーロッパのすべての議会有権者富裕層に限られていた。

この近視眼は重要である。他の多くの人々と同様、私たち王国国家を、不平等社会における支配階級ルールを強化し、強制するために集まる方法として理解している。『万物黎明』では、そのプロセスは目に見えない。

* *

グレーバーとウェングローは怒っている。この怒りには、私たちのようにグローバルな不平等絶望し、グローバル・エリート政治を憎み、気候の混乱を恐れる読者を喜ばせるエネルギーがある。

多くの点で、彼らの本は新鮮な風を吹き込んでくれる。そして私たちは、既存のすべての国家に対する敵意を共有している。しかし、今後、気候変動を食い止めるためには、階級環境の中心的重要性を含む人間の条件に関する理解必要である

脚注

[1] Fredrich Engels, 1884, The Origin of the Family, Private Property and the State. The book was revived as a key text by socialist and Marxist feminists in debates about women’s liberation. Pace the 19th century social Darwinism which clearly took a lead from the Old Testament, it is now quite clear that both pastoralism and slash and burn agriculture appeared after, and not before, the advent of settled agriculture.

[2] Franz Boas, The Mind of Primitive Man, 1911; Claudia Ruth Pierpoint, ‘The Measure of America’, 2004; Ned Blackhawk and Isaiah Lorado Wilner, Indigenous Visions: Rediscovering the World of Franz Boas, 2018; Rosemary Lévy, Franz Boas: The Emergence of the Anthropologist, 2019.

[3] Very good examples of this work include Sara Hdry, Mothers and Others: The Evolutionary Origins of Mutual Understanding, 2005; Elizabeth Marshall Thomas, The Old Way, 2001; two articles by Steven Kuhn and Mary Stiner: ‘What’s a Mother To Do’, 2006 and ‘How Hearth and Home Made us Human’, 2019; Loretta Cormier and Sharon Jones, The Domesticated Penis: How Womanhood has Shaped Manhood, 2015; a key paper by Joanna Overing, ‘Men Control Women? The “Catch-22” in the Analysis of Gender’, 1987; two books by Christopher Boehm: Hierarchy in the Forest and the Evolution of Egalitarian Behavior, 1999, and Moral Origins, 2012; every book by the primatologist Frans de Waal; the two chapters by Brian Ferguson in Douglas Fry, ed., War, Peace and Human Nature, 2013; Richard Wrangham, Catching Fire: How Cooking Made Us Human, 2010; and two books by the trans biologist Joan Roughgarden: Evolution’s Rainbow: Diversity, Gender and Sexuality in Nature and People, 2004, and The Genial Gene: Deconstructing Darwinian Selfishness, 2009.

[4] Our favourites among the ethnographies of our near contemporary hunter-gatherers are Marjorie Shostack, Nisa: The Life and Words of a !Kung Woman, 1981; Jean Briggs, Inuit Morality Play: The Emotional Education of a Three-Year-Old, 1998; Phyllis Kaberry, Aboriginal Women: Sacred and Profane, 1938, Karen Endicott and Kirk Endicott: The Headman was a Woman: The Gender Egalitarian Batek of Malaysia, 2008; Richard Lee, The !Kung San: Men, Women and Work in a Foraging Society, 1978; and Colin Turnbull, Wayward Servants: The Two Worlds of the African Pygmies, 1978.

[5] Kent Flannery and Joyce Marcus, The Creation of Inequality: How Our Prehistorical Ancestors Set the Stage for Monarchy, Slavery and Empire, 2012; and James C. Scott, The Art of Not Being Governed: An Anarchist History of Upland South-East Asia, 2009; Scott, Against the Grain: A Deep History of the Earliest States, 2017. Martin Jones, Feast: Why Humans Share Food, 2007, is also very useful.

[6] Edmund Leach had made a similar argument in 1954 in Political Systems of Highland Burma, and radically changed anthropology. For a brilliant ethnography of one group of anti-class hill rebels at the end of the twentieth century, see Shanshan Du, Chopsticks Only Work in Pairs: Gender Unity and Gender Equality Among the Lahu of Southeastern China, 2003. For Scott’s recent extension of his argument to ancient Mesopotamia, see Against the Grain.

[7] This is all succinctly described in Brian Hayden, ‘Transegalitarian Societies on the American Northwest Plateau: Social Dynamics and Cultural/Technological Changes,’ in Orlando Cerasuolo, ed., The Archaeology of Inequality, 2021.

[8] Start with Philip Drucker and Robert Heizer, 1967, To Make My Name Good: A Reexamination of the Southern Kwakiutl Potlatch; and Eric Wolf, Envisioning Power: Ideologies of Dominance and Crisis, 1999, 69-132.

[9] Jeanne Arnold, ‘Credit where Credit is Due: The History of the Chumash Oceangoing Plank Canoe’, 2007; and Lynn Gamble, The Chumash World at European Contact: Power, Trade and Fighting among Complex Hunter-Gatherers, 2011.

[10] On the Calusa, see The Dawn, 150-2; Fernando Santos-Cranero, 2010, Vital Enemies: Slavery, Predation and the Amerindian Political Economy of Life, 2010; and John Hann, Missions to the Calusa, 1991.

[11] Rita Wright, The Ancient Indus: Urbanism, Economy and Society, 2010; and Andrew Robinson, The Indus: Lost Civilizations, 2015.

[12] Robbie Ethridge and Sheri M. Shuck-Hall, Mapping the Mississippian Shatter Zone, 2009; and George Edward Milne, Natchez Country: Indians, Colonists and the Landscape of Race in French Louisiana, 2015.

2023-08-25

test

https://chat.openai.com/share/c80d83ea-752b-4561-a162-7ea0bd116d56

CSVVBAエクセル

Option Explicit

Dim objExcel, objWorkbook, objWorksheet

Dim strFolderPath, strSourceFile, strTargetFile, strSearchString, strReplaceString

Dim intLastRow, intRow, intColumn

' Excelオブジェクト作成

Set objExcel = CreateObject("Excel.Application")

objExcel.Visible = True

' フォルダパスファイル名の設定

strFolderPath = ".\" ' スクリプトと同じフォルダにあることを仮定

strSourceFile = "変更一覧.xlsx"

strTargetFile = "変更一覧.xlsx"

' Excelファイルを開く

Set objWorkbook = objExcel.Workbooks.Open(strFolderPath & strSourceFile)

' シートのコピー名前の変更

objWorkbook.Sheets("1月").Copy , objWorkbook.Sheets("1月").Index

objWorkbook.Sheets("1月 (2)").Name = "2月"

' セルの値の置換

Set objWorksheet = objWorkbook.Sheets("2月")

objWorksheet.Cells(1, 1).Value = Replace(objWorksheet.Cells(1, 1).Value, "1月", "2月")

objWorksheet.Cells(2, 7).Value = Replace(objWorksheet.Cells(2, 7).Value, "2023/2/14", "2023/3/14")

' 最終行の取得

intLastRow = objWorksheet.Cells(objWorksheet.Rows.Count, 1).End(-4162).Row ' xlUp

' 値のクリア

For intRow = 8 To intLastRow

For intColumn = 1 To 6

objWorksheet.Cells(intRow, intColumn).ClearContents

Next

Next

' テキストファイルの読み込み

Dim objFSO, objTextFile, strContents, arrLines, arrFields, strNewContents

Set objFSO = CreateObject("Scripting.FileSystemObject")

Set objTextFile = objFSO.OpenTextFile(strFolderPath & "変更一覧.txt", 1)

strContents = objTextFile.ReadAll

objTextFile.Close

' フィールド区切り文字カンマに設定してデータを分割

arrLines = Split(strContents, vbNewLine)

For Each strContents In arrLines

arrFields = Split(strContents, ",")

For Each strContents In arrFields

If IsNumeric(strContents) Then

strNewContents = strNewContents & "'" & strContents & ","

Else

strNewContents = strNewContents & strContents & ","

End If

Next

strNewContents = Left(strNewContents, Len(strNewContents) - 1) & vbNewLine

Next

' データをシートに貼り付け

Set objWorksheet = objWorkbook.Sheets("2月")

objWorksheet.Cells(1, 8).Value = strNewContents

' セルの値の置換

objWorksheet.Cells(123, 1).Value = Replace(objWorksheet.Cells(123, 1).Value, "F", "FH")

' Excelファイルを保存して閉じる

objWorkbook.Save

objWorkbook.Close

objExcel.Quit

' オブジェクト解放

Set objWorksheet = Nothing

Set objWorkbook = Nothing

Set objExcel = Nothing

Set objFSO = Nothing

Set objTextFile = Nothing

WScript.Echo "スクリプトの実行が完了しました。"

2023-08-16

get wildがあるならset wildは?

setWild(&tough)

2023-07-04

8. オブジェクトとリスト

Python勉強メモ

ゼロからPython入門講座

8. オブジェクトリスト

https://www.python.jp/train/list/index.html

 

以下、気になったところ。

 

Pythonの型とオブジェクト

Pythonでは、整数実数文字列などのデータのことを、オブジェクト(Object) という用語で呼びます

Object英語で「物」とか「対象」とかい意味言葉ですが、Pythonでは、Python操作するいろいろな種類のデータプログラムなどのことを、まとめて オブジェクト と呼びます

 

オブジェクトの種類のことを、型 と呼びます

たとえば、数字の2は、整数型のオブジェクト文字列abc は、文字列型のオブジェクト という呼び方します。

次のプログラムは、関数 foo() を定義していますが、

def foo():

  print("hi!")

この foo も、 関数型のfooオブジェクト です。

import 文を使ってロードした モジュールオブジェクトです。

 

オブジェクト範囲

オブジェクトではないもの

演算子やwhile文 ・ if文 などはPythonに対する実行命令で、実体のあるオブジェクトではありません。

数値などの値のように、変数に代入したり、関数のように関数名を指定したりと、プログラマ名前をつけられるものオブジェクト

whileのようにつけられないものオブジェクトではない、

と考えると良いと思います

 

この説明だけでは、Pythonオブジェクトについて曖昧さが残りスッキリしない。

Python言語仕様で、オブジェクトはどうなっているのか?検索してみた。

 

google:python オブジェクト

 

cf.Python入門]Pythonオブジェクトとは - ITmedia

https://atmarkit.itmedia.co.jp/ait/articles/1907/12/news019.html

Python公式サイトにあるドキュメントオブジェクト、値、および型」では、Pythonにおけるオブジェクトとは「データ抽象的に表したもの」と表現されている。

まりPythonで書いたプログラム操作したり、処理したりするデータのことを「オブジェクト」という。

説明
int 整数」を表現する型
float 浮動小数点数」を表現する型
bool TrueFalseのいずれかの値を取り、真偽値(条件が成立しているかどうか)を表現する型
strUnicodeコードポイント値を任意の数だけ並べた「文字列」を表現する型(変更不可能
list 任意の型の要素を任意の数だけ並べた「リスト」を表現する型(変更可能
tuple 任意の型の要素を任意の数だけ並べた「タプル」を表現する型(変更不可能
dict キーと値の組からなる要素を任意の数だけ並べた「辞書」を表現する型(変更可能
set/frozenset任意の型の要素を任意の数だけ並べた順序のない「集合」を表現する型(setは変更可能。frozensetは変更不可能
function 関数」を表現する型
moduleモジュール」や「パッケージ」を表現する型

 

cf. 3. データモデルPython 3.11.4 ドキュメント

https://docs.python.org/ja/3/reference/datamodel.html#objects-values-and-types

Python における オブジェクト (object) とは、データ抽象的に表したものです。

Python プログラムにおけるデータは全て、オブジェクトまたはオブジェクト間の関係として表されます

(ある意味では、プログラムコードもまたオブジェクトとして表されます。これはフォン・ノイマン: Von Neumann の "プログラム記憶方式コンピュータ: stored program computer" のモデルに適合します。)

 

先に「プログラムデータ+処理」という話を挙げたが、

要するにPythonプログラムの中で処理(操作)できる対象すべてがデータであり、なおかつオブジェクトである」ということらしい。

 

上記の型の表を見ると、Pythonには「function」という関数オブジェクトもあるので、関数それ自体を1つのデータとして扱うことも可能

これを、「第一オブジェクト」という。

 

cf. 第一オブジェクト - Wikipedia

https://w.wiki/6wz4

第一オブジェクトファーストクラスオブジェクト、first-class object)は、あるプログラミング言語において、たとえば生成、代入、演算、(引数戻り値としての)受け渡しといったその言語における基本的操作制限なしに使用できる対象のことである

ここで「オブジェクト」とは広く対象物・客体を意味し、必ずしもオブジェクト指向プログラミングにおけるオブジェクト意味しない。

第一オブジェクトは「第一データ型に属す」という。

この言葉1960年代クリストファー・ストレイチーによって「functions as first-class citizens」という文脈で初めて使われた。

 

言語によって異なるが、第一オブジェクトは概ね次のような性質もつ

 

リスト

決まった順番に並んだ値で構成される情報は、Pythonでは リストオブジェクト表現します。

リストオブジェクトは、他のオブジェクトを 要素 として登録できるオブジェクトで、他のプログラミング言語では配列などと呼ばれることもあります

 

リストオブジェクトは、次のように 角カッコ [ と ] で作成します。

 

[要素1, 要素2, ...]

 

[ と ] の間には、リストの要素となるオブジェクトを、, で区切って指定します。

 

要素が登録されていない、空のリストは [] だけで作成します。

 

要素の参照

リストオブジェクト登録した要素は、次のような式で参照できます

 

リストオブジェクト[要素の順番]

 

リストオブジェクト登録した要素を参照するときは、リストオブジェクトに、参照する要素の順番を指定します。

最初の要素を参照するときは 0、その次は 1、のように指定します。

 

インデックス(添字)

ここで指定している要素の順番のことを、インデックス(添字) と言います

リスト最後の要素のインデックスは、リストの要素数 - 1 となります

 

インデックス(添字)は、1から始まるのではなく、0から始まる点に注意が必要

 

リスト操作

要素の挿入

リストに要素を追加するときには、リストメソッド である insert() を使用します。

 

挿入位置として、インデックスの最大値以上の値を指定すると、リストの末尾に要素を追加します。

 

要素の置き換え

登録済みの要素を別の要素に置き換えるときは、次のように記述します。

 

リストオブジェクト[インデックス] = 値

 

変数 の代入文とおなじ形式ですね。

代入文の左辺に指定できるインデックス値は、リストオブジェクト最後インデックス値 までです。

 

要素の削除

リストオブジェクト登録されている要素を削除するときには、del 文を使います

 

del リストオブジェクト[インデックス]

 

リストオブジェクトから指定したインデックスの要素を削除します。

del 文で指定できる要素のインデックスは、要素の置き換え と同じように、リストオブジェクト最後インデックス値 までです。

無効インデックス値を指定すると、エラーになります

 

while文を使ったリストループ処理

リストの長さを測るメソッド len()

リストオブジェクトの要素数を教えてくれる、len() という関数があります

関数 len() は、引数リストオブジェクト指定すると、その要素数を返してくれる関数です。

 

values = [1,2,3,4] # 要素数4のリスト

print(len(values))

4

 

for文によるループ

リストの要素を順番に参照する処理は非常によく行われるため、もっと簡単に書けるように、for 文 という、専用の文法が用意されています

 

for文の書き方

for 文は、次の形式記述します。

 

for 変数名 in リストオブジェクト:

  処理1

  処理2

  ...

 

for 文は、リストオブジェクト から要素を一つずつ順番に取り出し、それぞれの要素ごとに、for 文に続けて記述した処理を、一度ずつ実行します。

変数名 には、リストオブジェクトから取り出した要素を参照する変数名を指定します。

 

まとめ

2023-07-02

アメリカ最高裁判所大学入学決定に人種を利用する判決アファーマティブ・アクション拒否

この判決は非常に重要もので、朝日新聞とかが馬鹿みたいに批判しているけど、当然です。

実力もないのに人種だけで大学に入れてしまう。

これ、反差別界隈とかジェンダー平等も同じね。実力ではなくマイノリティとか女性というだけで就職できたり、学者になれたり、マスコミ記者になれる。

そうすると、本来はいるはずだった人がはじかれます

結果的には国家の損失です。

現に、暇空茜は報道しない。ジャニーズ犯罪者と決めつけて報道する極悪女存在します。

まともな女性杉田水脈程度です。

次に批判人種理論というトンデモ理論蔓延しています

アメリカ文系社会学者は全員カスと言っていい。

https://www.foxnews.com/politics/supreme-court-rejects-affirmative-action-ruling-universities-using-race-admissions-decisions

最高裁判所大学入学決定に人種を利用する判決アファーマティブ・アクション拒否

6-3のアファーマティブ・アクション意見で、最高裁判所大学入学の要素として人種を利用することは憲法修正第14条に違反するとの判決を下した。

アンダースハグトロム、 ブリアナハーリービル・ミアーズ、 シャノン・ブリーム、 ヘイリー・チーシン| 著 フォックス・ニュース

SCOTUS積極的差別是正措置判決判事の間で「激化」:シャノン・ブリーム

 主任法務記者シャノン・ブリームが、アファーマティブ・アクションに対する最高裁判所判決を解き明かします。

 米国最高裁判所木曜日アファーマティブ・アクションに関する重要判決を下し、大学入学の要素として人種を利用することは憲法修正第14条の平等保護条項違反するとして却下した。

 ジョン・ロバーツ首席判事は6対3の判決で、多数派意見の中で、「例えば、人種差別を克服した学生への利益は、その学生勇気と決意と結び付けられなければならない」と述べた。

 「あるいは、その伝統文化リーダーシップ役割を引き受けたり、特定目標を達成したりする動機となった学生への利益は、その学生大学に貢献する独自能力と結び付けられている必要があります。言い換えれば、学生は以下の基準に基づいて扱われなければなりません」人種に基づくものではなく、個人としての経験だ」と意見書には書かれている。

 「多くの大学は、あまりにも長い間、その逆のことを行ってきました。そしてそうすることで、個人アイデンティティ試金石は、乗り越えた課題、培ったスキル、学んだ教訓ではなく、肌の色であるという誤った結論を下してしまいました。歴史はその選択容認していない」と意見書は述べている。

 ロバーツ判事にはクラレンス・トーマス判事サミュエル・アリト判事ニール・ゴーサッチ判事、ブレット・カバノー判事エイミー・コニーバレット判事も加わった。

 ソニア・ソトマイヨール判事が主な反対意見を書き、エレナ・ケーガン判事と、ハーバード大学監督委員会での以前の役割理由ハーバード大学訴訟から身を引いたケタンジ・ブラウンジャクソン判事も一部参加した。

 バイデン大統領木曜日午後12時30分にこの決定についてコメントを発表する予定だ。

 判事らは、私立ハーバード大学公立ノースカロライナ大学教室の定員をどのように決定するかについて、2つの別々の法的異議を申し立てた。

 これらの有名な学校は、自分たち基準には、将来のリーダーのために堅牢知的多様性のあるキャンパスを推進するという、裁判所によって数十年にわたって支持されてきた、より大きな社会的目標があると主張している。

 しかし、アジア系アメリカ人学生連合は、この基準は「人種ペナルティー」で差別されており、多くの黒人ヒスパニック系の学生よりも選択的に高い基準を課していると主張している。

 学生活動団体「Students for Fair Admissions」は、ハーバード大学ノースカロライナ大学の両大学に対して訴訟を起こした。同団体は当初、2014年公民権法第6編に違反したとしてハーバード大学告訴したが、同法は「連邦資金やその他の連邦財政援助を受けるプログラム活動において、人種、肌の色、国籍に基づく差別禁止する」と定めている。

 ハーバード大学に対する訴状では、ハーバード大学慣行アジア系アメリカ人学生不利益を与え、人種中立的慣行採用できなかったと主張している。ノースカロライナ州の訴訟では、人種に基づいていない慣行学校学力を低下させたり、キャンパス多様性から得られる利益に悪影響を及ぼしたりすることを示さずに、大学非人種に基づく慣行使用拒否できるかどうかという問題が提起された。

 判事ハーバード大学、UNC最高裁判所アファーマティブ・アクションをめぐる議論を審理

 米国第一巡回控訴裁判所は、地方裁判所裁判員裁判の結果を支持し、ハーバード大学に有利な判決を下していた。地方裁判所は、ハーバード大学に対する証拠は決定的ではなく、「観察された差別」は少数のアジア系アメリカ人学生にのみ影響を与えたと述べた。SFFAはこの訴訟において資格を有さないとの判決を下した。

 UNCの訴訟では、連邦地方裁判所は同校の入学慣行は厳しい監視に耐えたとして、同校に有利な判決を下した。

 ロバーツ氏は多数派意見の中で、ハーバード大学とUNCの入学プログラムはいずれも「人種の利用を正当化する十分に焦点を絞った測定可能目標が欠けており、人種否定的な形で採用せざるを得ず、人種的な固定観念を伴い、有意義な最終目標を欠いている」と述べた。

 「我々は入学プログラムがそのような形で機能することをこれまで一度も許可したことがないし、今日もそうするつもりはない」と同氏は述べた。

 クラレンス・トーマス判事は多数意見同意しながらも、自身の考えについては別の同意書を書いた。

 同氏は、「今回の決定は、大学入学政策ありのままに見るものだ。入学するクラス特定人種を確実に混入させるよう設計された、舵のない人種に基づく優先政策である。これらの政策は、色盲憲法国家平等に反するものである」と述べた。端的に言えば、それらは明白に、そして大胆に憲法違反である。」

 「私は、私の人種差別に苦しむすべての人々に降りかかった社会的経済的惨状を痛感しているが、この国が独立宣言憲法で明確に宣言された原則を遵守するよう、私は絶え間ない希望を抱いている。米国:すべての人間平等に生まれ平等国民であり、法の下で平等に扱われなければならない」とトーマスは書いた。

 アファーマティブ・アクション訴訟は、ジョン・ロバーツ首席判事サミュエル・アリト判事ハーバード大学弁護士セスワックスマン氏を激しく非難するなど、この期間に最高裁判所建物内で行われた中で最も活発な法廷討論の一つを引き起こした。

 アリト氏はワックスマン氏に、アジア系アメリカ人学生が他の人種に比べて出願書類個人スコアがいつも低いのはなぜかと尋ねた。ワックスマン判事質問を迂回して話したため、アリトは弁護士に不満を抱いた。

 アリト氏は「アジア人に与えられる個人スコアの差についてはまだ説明を聞いていない」と語った。

 その後、ワックスマンロバーツと緊迫したやりとりを繰り広げた。判事は、ロバーツによれば人種は何らかの影響を与えるに違いないが、そうでなければ人種考慮に入れられないのに、なぜワックスマン入学決定の要素として人種を軽視したのかを尋ねた。

 ワックスマン氏は、「ハーバードラドクリフ管弦楽団オーボエ奏者必要としている年に…オーボエ奏者であること」と同じように、「一部の優秀な応募者にとって」人種は決定的なものだったと認めた。

 「私たちオーボエ奏者を巡って内戦を戦ったわけではない」とロバーツ氏は言い返した。「私たち人種差別をなくすために内戦を戦ったのです。」

 オコナー率いる法廷多数派は、少数派のロースクール志願者に対するミシガン大学アファーマティブ・アクション政策を支持しながら、次のように警告した:「我々は、今から25年後には、利益を促進するために人種的嗜好を利用する必要はなくなると予想している」本日承認されました。」

 19 年が経ち、6 対 3 の保守派多数派現在大学競争入学プロセスの一部として人種を利用することを阻止しています

 FOXニュースタイラー・オルソン氏がこのレポート寄稿した。

コメントから

Makes sense. So, does this also mean "AA" in employment, handouts, government loans, and other areas of life are also unconstitutional? (And yes, corporate America says there are no race-based quotas for hiring in large meetings but then set up individual manager & HR meetings where hiring is analyzed for the manager's team and managers are told to focus on certain groups based on race.)

理にかなっています。 では、これは、雇用給付金政府融資、その他の生活分野における「AA」も憲法違反ということになるのでしょうか? (そう、アメリカ企業は、大規模な会議では採用人種に基づくノルマはないと言っているが、個別マネージャーと人事会議を設定し、そこでマネージャーのチームの採用分析され、マネージャー人種に基づいて特定グループに焦点を当てるように指示されている。)

これに対するトップリプライが次

That's not true. There are plenty of examples on Linkedin and other public forums of corporations hiring for a specific race

それは真実ではない。 Linkedin やその他の公開フォーラムには、特定人種向けに企業雇用する例がたくさんあります

これジョークね。

This is a fantastically accurate ruling. It is about time the court affirms what is basic common sense. Judging anyone (positively or negatively) based on race IS racist. The simple statement "we want to make sure we have diversity", goes in with the racist assumption that race defines the diversity of who you are. Every individual is diverse. Their life experience is unique. There are some shared experiences for individuals of certain similar upbringing, but the assumption that a certain "race" brings "diversity" IS racist.

これは驚くほど正確な判決だ。 そろそろ法廷基本的常識肯定する時期が来ている。 人種に基づいて誰かを(肯定的または否定的に)判断することは人種差別主義者です。 「私たち多様性を確保したいと考えています」という単純な発言は、人種によって人間多様性が決まるという人種差別的な思い込みと結びついています。 すべての個人は多様です。 彼らの人生経験ユニークです。 特定の似たような生い立ちを持った個人の間で共有される経験はいくつかありますが、特定の「人種」が「多様性」をもたらすという仮定人種差別的です。

何でもかんでも差別にするバカげたロジックうんざりしているわけです。

https://twitter.com/ElonMuskAOC/status/1675268446089773056

The reason I set a “View Limit” is because we are all Twitter addicts and need to go outside.

I’m doing a good deed for the world here.

Also, that’s another view you just used.

による英語から翻訳

私が「閲覧制限」を設定した理由は、私たちは皆 Twitter 中毒者なので、外に出る必要があるからです。

私はここで世界のために善行を行っています

また、これは先ほど使用した別のビューです。

2023-05-21

世間一般的に読みにくいコードというと、コメントついてないとか

コーディング規約がどうとか言う話がよく出てくるけど、

本当に読みにくいのは名前が狂っているコード

インデントが狂ってるコードだと思う。

インデント説明することないから置いておくとして、

名前が狂ってるというのは、

JSONParserとか言いながらJSON関係していないクラスとか、

getUserみたいなメソッド名なのに引数としてuserを渡すとかそういうやつ。

JSONParserクラス名前を付けた奴は、中のコードからすると、

どうもネストした連想配列のことをJSONだと思っていたらしい。

ネストした連想配列から個別の値を取得するのがJSONParserだった。

JSONはそういうのじゃなくてデータを表す文字列から

文字列を受け取って、ネストした連想配列を返すparserメソッド

あるクラスであればJSONParserという名前で合っている。

getUseruserIdフィールドだけ値を設定したUserインスタンス

引数に渡して他の値を設定するメソッドだった。

getとか言いながらsetすんなよ。

書いた奴は、データベースから値を取得するのをgetだと思っていたのだろう。

この類の名前で嘘をつくクラスとかメソッドが多々あると強烈に読みにくい。

2023-05-15

[]なんか勝手に見ているページから情報を抜き出すんだな…

GPT-4 AI Tutor Prompt: A tool for creating personalized learning experiences using GPT-4 and LangchainJS, a drag and drop UI for building LLM flows.

Pandas AI: A Python library that adds generative AI capabilities to Pandas dataframes, making them conversational.

FigmaChain: A set of Python scripts that use GPT-3 to generate HTML/CSS code from Figma designs. It also has a chatbot interface for interactive code generation.

Sui: A smart contract platform with high performance and an asset-oriented programming model based on the Move language.

Jailbreak for ChatGPT: A project that allows ChatGPT to predict the future, opine on controversial topics, and assess what is true. It may help us understand LLM bias.

ML Observability in a Notebook: A tool to uncover insights, surface problems, monitor, and fine-tune generative LLM, CV and Tabular models.

System Design Primer: A resource to learn how to design large-scale systems and prepare for the system design interview. It includes Anki flashcards.

Next.js 13 App: An open source application that showcases the new features of Next.js 13, such as router, server components, and more.

TypeScript: A superset of JavaScript that compiles to clean JavaScript output.

Media Downloader: A desktop utility to download images/videos/music/text from various websites, and more.

AI Pull Request Fixer: A tool to fix issues with AI-generated pull requests, powered by ChatGPT.

Chat Chat: An app that lets you deploy your own AI interface and chat with different LLMs in one place.

[]20ドル払ったら解決するのかなぁ

User

LOAD DATA INFILEでCSVを分割して読み込むことは可能なのでしょうか。そのときautoincrementのidがあった場合はどうしたらよろしいでしょうか。

ChatGPT

はい、LOAD DATA INFILEステートメント使用してCSVファイルを分割して読み込むことは可能です。CSVファイルを分割するには、LOAD DATA INFILEステートメントファイル名の部分にワイルドカード使用することができます

以下は、例としてMySQLデータベースでのLOAD DATA INFILEステートメント使用方法です。

LOAD DATA INFILE 'path/to/files/file*.csv'
INTO TABLE your_table
FIELDS TERMINATED BY ','
LINES TERMINATED BY '\n'
(col1, col2, col3); -- 列のリスト

上記の例では、path/to/files/ディレクトリ内のfile*.csvというパターンに一致するすべてのCSVファイルが読み込まれます。また、FIELDS TERMINATED BY句とLINES TERMINATED BY句を使用して、フィールドと行の区切り文字指定していますさらに、col1, col2, col3のように列のリスト指定することで、CSVファイル対応する列とテーブルの列をマッピングします。

autoincrementのidがある場合、LOAD DATA INFILEステートメントでは自動的に次の値を生成することはできません。そのため、CSVファイル内に明示的にid列が存在する場合は、id列を指定して読み込む必要がありますid列がCSVファイル存在しない場合は、テーブル定義id列をautoincrementに設定しておく必要があります。その場合データベース自動的に新しい値を生成します。

例えば、以下のようなテーブル定義があるとします。

CREATE TABLE your_table (
  id INT AUTO_INCREMENT PRIMARY KEY,
  col1 VARCHAR(50),
  col2 VARCHAR(50),
  col3 VARCHAR(50)
);

この場合、LOAD DATA INFILEステートメントid列を省略することで、自動的に新しい値が生成されます

LOAD DATA INFILE 'path/to/files/file*.csv'
INTO TABLE your_table
FIELDS TERMINATED BY ','
LINES TERMINATED BY '\n'
(col1, col2, col3);

このようにして、CSVファイルデータを分割して読み込むことができます。ただし、autoincrementのid列は明示的に指定するか、データベースによって自動的に生成されるようにテーブルを設定する必要があります

結論

SETしないと動かない。

分割するとauto incrementの値が飛ぶ。

結局問題解決になってない。

2023-05-14

ChatGPTにウソ書かれたんで、ここに質問書くわ

LOAD DATA INFILEでCSVを分割して読み込むことは可能なのでしょうか。

そのときauto incrementのidがあった場合はどうしたらよろしいでしょうか。

現象としては、分割して読み込ませるとid連続しないで飛ぶ。

1.csvを読み込ませた最後idが1378だと、次の2.csvに読み込ませたのは2048から始まってる。

CSV一括で読み込ませるしか方法がないのか?

LOAD DATA LOCAL
	INFILE '***.csv' 
	INTO TABLE ***
	FIELDS
		TERMINATED BY '\t'
	LINES
		TERMINATED BY '\n'
(@pref_name, @type, @name, @zip, @address, @tel, @fax, @lat, @lng)
SET
...

2023-04-26

メモ

Sub CheckForGarbledCharacters()

Dim ws As Worksheet

Dim rng As Range

Dim cell As Range

Dim char As String

Dim i As Integer

Dim garbledFound As Boolean

Dim unicodeVal As Long

garbledFound = False

' すべてのワークシートをチェックします。

For Each ws In ThisWorkbook.Worksheets

Set rng = ws.UsedRange

' 各セルスキャンして文字化けがないかチェックします。

For Each cell In rng

For i = 1 To Len(cell.Value)

char = Mid(cell.Value, i, 1)

unicodeVal = AscW(char)

' ASCII範囲日本語範囲を除外

If Not ((32 <= unicodeVal And unicodeVal <= 126) Or (12353 <= unicodeVal And unicodeVal <= 12447) Or (12448 <= unicodeVal And unicodeVal <= 12543) Or (65382 <= unicodeVal And unicodeVal <= 65439) Or (19968 <= unicodeVal And unicodeVal <= 40959)) Then

MsgBox "文字化けが見つかりました: " & vbCrLf & _

"ワークシート: " & ws.Name & vbCrLf & _

"セル: " & cell.Address & vbCrLf & _

"セルの値: " & cell.Value & vbCrLf & _

"文字化けしている文字: " & char, vbExclamation

garbledFound = True

Exit For

End If

Next i

' 文字化けが見つかった場合、次のワークシートへ移動します。

If garbledFound Then Exit For

Next cell

If garbledFound Then Exit For

Next ws

If Not garbledFound Then

MsgBox "文字化けが見つかりませんでした。", vbInformation

End If

End Sub

2023-04-25

メモ

Sub ImportTextFileWithoutDelimiter()

Dim fileName As String

Dim targetSheet As Worksheet

Dim fileNo As Integer

Dim content As String

Dim lines As Variant

Dim i As Long

' テキストファイルパス指定します。

fileName = "C:\path\to\your\file.txt"

' インポート先のワークシートを指定します。

Set targetSheet = ThisWorkbook.Worksheets("Sheet1")

' ファイルを開き、内容を読み込みます

fileNo = FreeFile()

Open fileName For Input As fileNo

content = Input(LOF(fileNo), fileNo)

Close fileNo

' 改行で分割し、配列に格納します。

lines = Split(content, vbCrLf)

' 各行をワークシートに貼り付けます

For i = LBound(lines) To UBound(lines)

targetSheet.Cells(i + 1, 1).Value = lines(i)

Next i

End Sub

Option Explicit

Sub ListFilesInFolder()

Dim folderPath As String

Dim targetSheet As Worksheet

Dim fso As Object, folder As Object, file As Object

Dim nextRow As Long

' フォルダパス指定します。

folderPath = "C:\path\to\your\folder"

' インポート先のワークシートを指定します。

Set targetSheet = ThisWorkbook.Worksheets("Sheet1")

' FileSystemObject作成します。

Set fso = CreateObject("Scripting.FileSystemObject")

Set folder = fso.GetFolder(folderPath)

' ヘッダーを書き込みます

With targetSheet

.Cells(1, 1).Value = "File Name"

.Cells(1, 2).Value = "File Size"

.Cells(1, 3).Value = "Timestamp"

End With

' 次の行番号を取得します。

nextRow = 2

' フォルダ内のファイル情報を取得し、ワークシートに書き込みます

For Each file In folder.Files

With targetSheet

.Cells(nextRow, 1).Value = file.Name

.Cells(nextRow, 2).Value = file.Size

.Cells(nextRow, 3).Value = file.DateLastModified

End With

nextRow = nextRow + 1

Next file

' オブジェクト解放します。

Set fso = Nothing

Set folder = Nothing

Set file = Nothing

End Sub

2023-04-13

はてなーというかブクマカがいう欧州北欧って具体的にどこなの?

保育料月額50万、30万、20万、15万って珍しくないし、

北欧限定してもあん日本(保育料の平均は認可保育園で2万円程度、認可外保育園で3〜5万円)と変わらないと思うのですが?

bingちゃんに聞いても下記のように返すで

Childcare fees in Norway vary by location, but the national average is SEK 3,106 per month.1 However, childcare fees are set at no more than 6% of a family's total capital and personal income, with the maximum amount set at the parent's maximum childcare fee.

ノルウェーの保育料金は、場所によって異なりますが、全国平均で月額3,106クローネ(約4万円)です1。ただし、保育料金は、家族総資本個人所得の6%を超えないように設定されており、最大額は親の最大保育料金に設定されています2。

According to a Danish web site1, the cost of nursery and kindergarten for children younger than 3 is DKK 3,673 without lunch and DKK 4,331 with lunch included. Nursery and kindergarten for children 3 years and older is DKK 2,020 without lunch, and DKK 2,762 including lunch, from the 1st of the month your child turns 3.

 

デンマークWebサイト1 によると、3歳未満の子もの保育園幼稚園費用は、ランチなしで3,673DKK(72,201円)、ランチ付きで4,331DKK(85,131円)です。3歳以上のお子さんの保育園幼稚園は、お子さんが3歳になった月の1日からランチなしで2,020DKK(39,705円)、ランチ付きで2,762DKK(54,289円)です。

Preschool childcare is not free in Sweden, but fees are income-based, with a maximum fee across the country 1,572 kronor (€145) per child per month (fees for 2022)1.

 

スウェーデンでは就学前保育は無料ではなく、料金は所得に応じて設定されており、全国で子ども1人あたり月1,572クローナ20,260円)が上限となっています2022年の料金)1。

 

単純にお金があってもより良い環境子どもを過ごさせたくないとかいう話なんですかね?

 

つか、日本はそれなり教育させる保育園(たとえばプリスクールとか)とか選んでもガチ富裕層向けでもなくば15〜20万で利用できるけども?

anond:20230413093255 anond:20230412145932

2023-03-25

ChatGPTによるラノベ「英語の餅兵衛」

Mochibei loved mochi. He loved it so much that he spent every waking moment thinking about it. He dreamed of the perfect mochi, the texture, the sweetness, the way it would melt in his mouth.

 

One day, he decided to make his dream a reality. He set out on a journey to find the best ingredients, the finest rice, and the sweetest red bean paste. He studied the art of mochi-making, learning from the masters and perfecting his craft.

 

Finally, after years of hard work, Mochibei created the most delicious mochi in the land. People came from far and wide just to taste it, and soon he became known as the "Mochi King".

 

But Mochibei was not satisfied. He wanted to share his love of mochi with the world, so he set out on a new journey to teach others his art. He traveled to far-off lands, where he met people who had never tasted mochi before. He taught them how to make it, and soon mochi became popular all over the world.

 

Mochibei's legacy lived on long after he passed away, and his name became synonymous with the sweet, chewy treat that he loved so much. Even today, people still make mochi in his honor, and his spirit lives on in every bite.

 

日本語翻訳してください。)

英語の餅兵衛」

 

餅兵衛は餅が大好きで、常にそれを考えていた。完璧な餅、食感や甘さ、口の中で溶けるような感触を夢見ていた。

 

ある日、彼はその夢を実現することを決めた。彼は最高の材料、最高品質の米、そして最も甘い小豆ペーストを探すための旅に出た。彼は餅作りの技術を学び、師匠から学び、その技術を磨いた。

 

長年の努力の結果、餅兵衛は最も美味しい餅を作り出した。人々は遠くから訪れ、その餅を味わうためにやって来た。やがて彼は「餅の王」として知られるようになった。

 

しかし、餅兵衛は満足していなかった。彼は世界中の人々と餅の愛を共有したかったので、新しい旅に出た。彼は遠い地に旅し、餅を食べたことがない人々に会った。彼らに餅作りを教え、やがて餅は世界中で人気を博するようになった。

 

餅兵衛の遺産は彼が亡くなった後も長く続き、彼の名前は彼が大好きだった甘くてもちもちしたお菓子同義語となった。今でも人々は彼に敬意を表して餅を作り続け、彼の精神はそれぞれの一口に生き続けている。

2023-03-21

anond:20230321134908

「猿でも分かるプロンプト活用術」というタイトル電子書籍を書いてください

「猿でも分かるプロンプト活用術」というタイトルでの電子書籍について、以下に簡単な目次と章ごとの概要を示します。実際の書籍作成するには、これらの各セクションを詳細に説明し、例や図を追加する必要があります

目次:

1. はじめに

2. コマンドプロンプトとは何か

3. コマンドプロンプトの基本操作

4. ファイル操作コマンド

5. ネットワーク操作コマンド

6. システム管理コマンド

7. コマンドプロンプトの高度な活用

8. まとめ

9. はじめに

・本書の目的対象読者の紹介

コマンドプロンプト重要性と利点の説明

10. コマンドプロンプトとは何か

コマンドプロンプト定義歴史

グラフィカルユーザーインターフェイス(GUI)との違い

コマンドプロンプト提供する機能概要

11. コマンドプロンプトの基本操作

コマンドプロンプトの開き方

基本的コマンドの使い方(例:help、cls、exit

コマンドの構文と引数理解

12. ファイル操作コマンド

ディレクトリ操作(例:cd、mkdir、rmdir)

ファイル操作(例:copy、move、del、ren

ファイル検索(例:find、findstr)

13. ネットワーク操作コマンド

IPアドレス情報の表示(例:ipconfig

ネットワーク接続確認(例:ping、tracert)

ネットワークリソース操作(例:netコマンド

14. システム管理コマンド

システム情報の表示(例:systeminfo)

タスク管理(例:tasklist、taskkill)

環境変数操作(例:setsetx)

コマンドプロンプトの高度な活用

...



「はじめに」の文章をお願いします。

はじめに

コンピュータ世界は日々進化し続けており、我々が日常的に使用するデバイスソフトウェアは常に更新され、より使いやすく、効率的になっていますしかしながら、コンピュータ基本的操作理解には、依然として古くから存在するコマンドプロンプトという強力なツールがあります。このツールは、多くのユーザーにとって未知の存在であり、その力を十分に発揮できていないかもしれません。

本書「猿でも分かるプロンプト活用術」は、コマンドプロンプトをこれまで使ったことがない方や、基本的操作しか知らない方を対象に、この強力なツール効果的に利用する方法をわかりやす解説します。また、既にコマンドプロンプト使用している中級者にも、さらなる活用方法を学んでいただける内容となっています

コマンドプロンプトは、グラフィカルユーザーインターフェイスGUI)に慣れ親しんだ現代ユーザーにとっては、最初は少し難しく感じるかもしれません。しかし、本書を通じて、コマンドプロンプトの基本操作から高度な活用法までを習得し、日々の業務パソコン操作に役立てることができるようになります

各章では、具体的なコマンドの例やスクリーンショットを用いて、わかりやす説明を行います。また、章ごとに練習問題チャレンジを設けていますので、学んだ知識をすぐに実践して確認することができます

この本を通して、コマンドプロンプトの力を最大限に引き出し、あなたコンピュータスキルを向上させることができることを願っています。それでは、さっそく「猿でも分かるプロンプト活用術」の世界に飛び込んでみましょう!

電子書籍プラットフォームがクソ本で溢れそうだ・・・

2023-03-17

The First Black Samurai-Yasuke

Please improve the following novel to be more engaging and adding plot point of Yasuke returnig to being a missionary quitting Samurai " rologue:

The sun sank behind the horizon, casting the Japanese countryside in a warm, golden glow. In the courtyard of Nobunaga's castle knelt Yasuke, a tall, muscular African man with skin as dark as midnight. His journey to this moment had been long and treacherous, but it was only the beginning.

Chapter 1: A World Away

Yasuke lived an ordinary life in a small village on the Mozambique coast, unaware of the extraordinary destiny that awaited him. Captured by slave traders and torn from his homeland, he endured a grueling voyage across the Indian Ocean, finally arriving in the bustling port of Goa, India.

It was there that Yasuke's fate took an unexpected turn when he was purchased by Jesuit missionaries. In their service, he learned about Christianity, new languages, and the ways of the Western world. But his journey was far from over.

Chapter 2: The Land of the Rising Sun

As a loyal servant to the missionaries, Yasuke accompanied them on their journey to Japan, a land of mystique and intrigue. The beauty of the land, the complexity of its customs, and the elegance of its people captivated him. As the first African to set foot in Japan, he attracted attention and curiosity from all those who encountered him.

Chapter 3: The Encounter

In Kyoto, the capital of feudal Japan, Yasuke's life changed forever when he met Oda Nobunaga, one of the most powerful and influential daimyos of the time. Nobunaga was captivated by the African's physical prowess, intelligence, and unique background. Seeing potential in Yasuke, Nobunaga decided to take him into his service as a samurai.

Chapter 4: The Path of the Warrior

Yasuke's transformation from a slave to a samurai was fraught with challenges. He had to adapt to the rigorous training, strict code of honor, and the intricacies of Japanese society. But Yasuke's strength, resilience, and determination allowed him to excel, earning the respect of his fellow samurai and the trust of Nobunaga.

Chapter 5: The Unfolding War

As Nobunaga sought to unify Japan under his rule, Yasuke fought by his side in numerous battles. The African samurai's legend grew with each victory, as did his bond with Nobunaga. Together, they faced both triumph and tragedy, navigating the treacherous landscape of alliances and betrayals that defined the era.

Chapter 6: The Turning Tide

Yasuke's reputation as a skilled and loyal samurai grew, as did his bond with Lord Nobunaga. But in the shadows, the tides of change were brewing. Mitsuhide Akechi, once a loyal ally, had grown disillusioned with Nobunaga's rule. The resentment smoldered within him, fueled by a series of perceived slights and political maneuverings. Mitsuhide's ambition and desire for power began to cloud his judgment.

Yasuke sensed the shift in Mitsuhide's demeanor and grew increasingly wary of the samurai lord. However, loyalty to Nobunaga prevented him from openly voicing his concerns. He instead focused on his duties, ever vigilant and ready to protect his lord at a moment's notice.

One fateful evening, the Oda clan gathered to celebrate their recent victories. Unbeknownst to the revelers, Mitsuhide Akechi's treacherous plan was already in motion.

As the sun rose, the first cries of battle rang out. Mitsuhide's forces had launched a surprise attack on Nobunaga's residence at the Honno-ji Temple. Yasuke fought his way to Nobunaga's side, his sword cutting through the trait "

Prologue:

The sun dipped below the horizon, bathing the Japanese countryside in a warm, amber embrace. Yasuke, a towering, powerfully built African man with skin as dark as midnight, knelt in the courtyard of Nobunaga's castle, his heart thundering with anticipation. A perilous journey had brought him to this moment, and yet, it was only the beginning of a story that would span continents and rewrite history.

Chapter 1: A World Away

In a small village on the Mozambique coast, Yasuke led a simple life, blissfully unaware of the extraordinary destiny that lay before him. His world shattered when slave traders captured him, ripping him from his homeland and thrusting him into a brutal odyssey across the Indian Ocean. Fate, however, had other plans when he reached the bustling port of Goa, India.

Chapter 2: Destiny's Winds

In Goa, Jesuit missionaries purchased Yasuke, altering the course of his life. Under their guidance, he embraced Christianity, mastered new languages, and absorbed the ways of the Western world. But the wind had not finished carrying him to his ultimate destination.

Chapter 3: The Enchanted Isles

Loyal to the missionaries, Yasuke accompanied them to Japan, a land shrouded in mystery and allure. He was captivated by its breathtaking landscapes, intricate customs, and refined people. As the first African in Japan, he sparked fascination and intrigue wherever he went.

Chapter 4: Fateful Encounters

Kyoto, the heart of feudal Japan, bore witness to the meeting that would forever change Yasuke's life. Oda Nobunaga, a formidable and influential daimyo, was entranced by Yasuke's physical prowess, intellect, and exotic origins. Recognizing Yasuke's potential, Nobunaga welcomed him into his service as a samurai.

Chapter 5: A Warrior Forged

Yasuke's metamorphosis from slave to samurai was laden with trials. He navigated the grueling training, a rigid code of honor, and the complexities of Japanese society. Undaunted, he flourished, earning the admiration of his fellow samurai and the unwavering trust of Nobunaga.

Chapter 6: A Land Divided

As Nobunaga pursued his vision of a united Japan, Yasuke fought valiantly by his side in countless battles. The legend of the African samurai swelled with each victory, and their unbreakable bond deepened. Together, they braved the treacherous world of shifting alliances and betrayals that shaped the era.

Chapter 7: Whispers of Betrayal

Yasuke's renown as a skilled and devoted samurai expanded, as did his connection with Lord Nobunaga. But beneath the surface, a storm was brewing. Mitsuhide Akechi, once a staunch ally, had grown disillusioned with Nobunaga's leadership. His bitterness festered, fed by perceived slights and political machinations. Consumed by ambition and lust for power, Mitsuhide's judgment faltered.

Chapter 8: The Price of Loyalty

Yasuke detected the change in Mitsuhide's spirit and grew increasingly apprehensive. But his unwavering loyalty to Nobunaga held him back from voicing his suspicions. Instead, he redoubled his efforts, ever watchful and prepared to defend his lord at any cost.

Chapter 9: A Night of Shadows

On a fateful evening, the Oda clan gathered to revel in their recent triumphs, oblivious to the treachery that lurked in the shadows. Mitsuhide Akechi's nefarious scheme had been set in motion.

Chapter 9: A Night of Shadows

As dawn broke, the piercing cries of battle shattered the night's tranquility. Mitsuhide's forces had launched a devastating surprise attack on Nobunaga's residence at the Honno-ji Temple. Yasuke fought relentlessly, his sword cleaving through the treacherous warriors as he made his way to Nobunaga's side.

Chapter 10: Flames of Betrayal

The Honno-ji Temple, once a sanctuary of peace, was now engulfed in flames and chaos. Yasuke and Nobunaga fought back to back, their swords a blur of steel, as Mitsuhide's forces closed in. Despite their valiant efforts, they were outnumbered, and Yasuke could sense the battle was lost. With a heavy heart, he whispered a prayer for Nobunaga's soul, knowing that his lord would never surrender.

Chapter 11: A Promise Unbroken

As the temple crumbled around them, Yasuke was captured by Mitsuhide's soldiers. Imprisoned and stripped of his samurai status, he reflected on the path that had led him to this moment. Amidst the darkness, he found solace in the memories of his life with Nobunaga and his time as a missionary. A fire kindled within him, reigniting a long-forgotten purpose.

Chapter 12: The Road to Redemption

In the chaos following Mitsuhide's coup, Yasuke seized an opportunity to escape. He journeyed across war-torn Japan, seeking refuge and a chance to reclaim his former life. His determination and faith guided him, as did the memory of the missionaries who had once saved him from a life of slavery.

Chapter 13: Rebirth of a Missionary

Yasuke found solace and purpose among a group of missionaries in a remote village. Embracing his past, he became an instrumental figure in their community, sharing his knowledge of Christianity, languages, and the Western world. As he nurtured their faith, Yasuke felt the shadows of his life as a samurai slowly fade, replaced by the warm embrace of spiritual fulfillment.

Chapter 14: A Legacy Unforgotten

Though Yasuke had left the life of a warrior behind, the legend of the African samurai continued to grow. His story inspired generations, a testament to the power of resilience, courage, and the human spirit. It was a tale that transcended borders and time, a reminder that even in the darkest moments, hope and redemption could be found.

Epilogue:

As twilight draped the Japanese countryside, Yasuke stood atop a hill, gazing at the village he now called home. His journey had been one of unimaginable hardship, transformation, and ultimately, redemption. And as the sun dipped below the horizon, Yasuke knew that his story, like the sun's eternal cycle, would continue to inspire and illuminate the hearts of those who heard it.

2023-03-16

Title: The Black Samurai - A Tale of Yasuke


Prologue

The sun sank behind the horizon as the last vestiges of light bathed the Japanese countryside in a warm, golden glow. Yasuke, a tall, muscular African man with skin as dark as midnight, knelt in the courtyard of Nobunaga's castle, tending to his duties. Though he had traveled a long and treacherous path to reach this moment, his journey had just begun.

Chapter 1: A World Away

In a small village on the Mozambique coast, a young Yasuke lived an ordinary life, unaware of the extraordinary destiny that awaited him. Captured by slave traders and torn from his homeland, he endured a grueling voyage across the Indian Ocean, finally arriving in the bustling port of Goa, India.

It was there that Yasuke's fate took an unexpected turn when he was purchased by Jesuit missionaries. In their service, he learned about Christianity, new languages, and the ways of the Western world.

Chapter 2: The Land of the Rising Sun

As a loyal servant to the missionaries, Yasuke accompanied them on their journey to Japan, a land of mystique and intrigue. The beauty of the land, the complexity of its customs, and the elegance of its people captivated him. As the first African to set foot in Japan, he attracted attention and curiosity from all those who encountered him.

Chapter 3: The Encounter

In Kyoto, the capital of feudal Japan, Yasuke's life changed forever when he met Oda Nobunaga, one of the most powerful and influential daimyos of the time. Nobunaga was captivated by the African's physical prowess, intelligence, and unique background. Seeing potential in Yasuke, Nobunaga decided to take him into his service as a samurai.

Chapter 4: The Path of the Warrior

Yasuke's transformation from a slave to a samurai was fraught with challenges. He had to adapt to the rigorous training, strict code of honor, and the intricacies of Japanese society. Despite these obstacles, Yasuke's strength, resilience, and determination allowed him to excel, earning the respect of his fellow samurai and the trust of Nobunaga.

Chapter 5: The Unfolding War

As Nobunaga sought to unify Japan under his rule, Yasuke fought by his side in numerous battles. The African samurai's legend grew with each victory, as did his bond with Nobunaga. Together, they faced both triumph and tragedy, navigating the treacherous landscape of alliances and betrayals that defined the era.

Chapter 6: The Turning Tide

Yasuke's reputation as a skilled and loyal samurai grew, as did his bond with Lord Nobunaga. The warlord respected Yasuke's dedication and resilience, a stark contrast to the treachery and self-serving ambitions that plagued many samurai of the era.

Word of Yasuke's prowess reached other daimyos, and whispers of the formidable black samurai began to spread across the provinces. The year was 1579, and the Oda clan had just emerged victorious in the Battle of Tedorigawa. Yasuke had fought valiantly, his towering presence and unmatched strength striking fear into the hearts of his enemies.

As the Oda clan continued to expand its territories, Yasuke's friendship with Nobunaga deepened, and he became a trusted advisor. He learned more about Japanese culture, studied the language, and embraced the customs of his new home.

In the shadows, however, the tides of change were brewing. Mitsuhide Akechi, once a loyal ally, had grown disillusioned with Nobunaga's rule. The resentment smoldered within him, fueled by a series of perceived slights and political maneuverings. Mitsuhide's ambition and desire for power began to cloud his judgment.

Yasuke had sensed the shift in Mitsuhide's demeanor and grew increasingly wary of the samurai lord. However, loyalty to Nobunaga prevented him from openly voicing his concerns. He instead focused on his duties, ever vigilant and ready to protect his lord at a moment's notice.

One fateful evening, the air was heavy with the scent of cherry blossoms, as the Oda clan gathered to celebrate their recent victories. Laughter and the clinking of sake cups filled the air. Unbeknownst to the revelers, Mitsuhide Akechi's treacherous plan was already in motion.

As the sun rose, the first cries of battle rang out. Mitsuhide's forces had launched a surprise attack on Nobunaga's residence at the Honno-ji Temple. The chaos was overwhelming, as friend turned against friend, and the air filled with the acrid smell of smoke and blood.

Yasuke fought his way to Nobunaga's side, his sword cutting through the traitorous samurai with brutal efficiency. The two men made their final stand together, back-to-back, against the relentless onslaught.

In the end, however, they were outnumbered. As Nobunaga fell, mortally wounded, Yasuke continued to fight, but he too was eventually captured. Mitsuhide Akechi, in a twisted display of respect, spared Yasuke's life, acknowledging the loyalty and prowess of the black samurai. Yasuke was sent to the Jesuit missionaries, his future uncertain.

Yasuke's journey had been a remarkable one, from a slave in a foreign land to a trusted advisor and samurai. Despite his extraordinary circumstances, he remained true to himself and his values. His story of strength, resilience, and loyalty would be remembered and honored for generations to come.

Epilogue:

As the sun set on another day in Japan, the whisper of the wind carried the tale of the black samurai, Yasuke, across the land. It would weave its way through the ages, inspiring countless others to rise above adversity and carve their own paths through the storms of life.

[] 無限の探求 マルチバースへの旅

In the year 3000, humanity had finally discovered the secrets of the multiverse. Using their most advanced technology, they had found a way to travel between different parallel universes, each with their own unique physical laws and structures.

As the first explorers set out on their journeys, they encountered a myriad of strange and wondrous worlds. Some universes were filled with infinite copies of themselves, while others were constantly shifting and changing, their physical laws in a state of constant flux.

As they traveled deeper into the multiverse, the explorers encountered universes that seemed to follow completely different sets of physical laws. In some, time flowed backwards, and cause and effect were reversed. In others, matter was made up of entirely different particles, and energy behaved in completely unexpected ways.

As the explorers continued to journey further, they began to encounter universes that seemed to be simulations, created by beings in higher dimensions. They encountered universes where the laws of physics were entirely mathematical, and others where the very fabric of reality was made up of pure information.

At last, the explorers came to a universe that seemed to encompass all of the many-worlds interpretations. In this universe, every possible outcome of every possible event was played out in infinite parallel realities. The explorers marveled at the incredible complexity and diversity of this universe, as they watched endless versions of themselves carrying out endless variations of their own adventures.

As they prepared to leave this universe and return home, the explorers realized that they had only scratched the surface of the multiverse. They knew that there were still countless more universes to explore, each with their own unique physical laws and structures.

And so, they set out once more, to journey deeper into the multiverse, and to discover the secrets of the infinite many-worlds that lay waiting to be explored.

As the explorers continued their journey, they encountered a universe where time did not exist, and another where the laws of physics were governed by emotion rather than math. In yet another universe, they discovered that consciousness itself was the fundamental building block of reality.

As they explored further, the explorers encountered universes where the laws of physics were not constants but varied across space and time. They found a universe where entropy decreased over time, and another where gravity was repulsive rather than attractive.

At the edge of the multiverse, the explorers discovered a universe that seemed to contain all of the other universes within it. This universe was infinite in size and contained infinite variations of itself, each one a slightly different version of the universe they knew.

As they traveled through this universe, the explorers encountered versions of themselves that had made different choices and lived different lives. Some of these versions were almost identical to their own, while others were wildly different, with entirely different personalities and goals.

At last, the explorers returned to their own universe, their minds reeling from the incredible sights and experiences they had witnessed. They knew that the multiverse was an endless sea of possibility, and that there were still countless more universes to explore.

As they shared their discoveries with the rest of humanity, they realized that the true nature of the multiverse was still a mystery. They knew that there were many theories and hypotheses, but no one could say for sure which one was right.

And so, the explorers continued their journey, driven by a hunger to uncover the secrets of the multiverse and to understand the true nature of reality itself.

sHU2uEFZltSiv44bZEskqqwLmJpwM58GVdcmntcEZlWl9f6C_xmyortYKIGA97okYRnsRxxxJv4wfGA3AqWspArs7I5fjadr2Z7VUu8CzfCvh3DjnzLo7aLe894M85CjNn_2jnSJVL3DKqyGcmKS9d62NzhiZpyxyUz_f1jB5QMDndMKOOq6uKEquFjFnpgsDnFyxBvGylDZZKIKz_uJadKb5PRse1S6Bbsfey7TqHjy2HCKAvxHksTzgB8AvEkMBCdZrTAHCXfC8CcMfXHtQSLffQvjOthbjfOO0xIwNgAYZ5peAgwcldWXV1d6b1MxM350Il4Fqf3Cz0wNFf3i2BUe6Gq8Lhmqn2cVTr80CIuzFohW2YPCUBg2Ed5E7KBTHkIsZN74INQYoMmyNRQ7kxoa6bmPR9vsA6EZbfgOF9JTIdhI46FAQMta_Rtnn4xiYqbBs8osmqhCDUjlwo_YylzSnbH4plzU1JjkosWtTtpYQcdTyNBV572VKLB6wzxSp5o877avuAlkym7H3nV9Wfxu6Wi4k37td2x2L4PsOwe_PcjfxPBbZfZV36D125rJGfnnRgzMHf8LCWlsPtuuPXyd5V6xZeS6zD_naTNhsvCxduG16z27HdUV01VWvaW3VJZaHb9ziXsteVdGkKo9EHlmnX3m_QnWfJyByeLQVbHP9afNNxgIKpb0fYYedjDiLr_ZafVm8TPSRYBthjAXGLyuZ8l5bRwc9lD7mYx0Y6B5qEMgvpZku5FWeo61Jr8AC5acJ5y8RtkNzPB_o20HR6wK8PduyUjv3H3q2JxsYBFil6vY5o2R5xFZOrf6WCUD17jtUjRm4k2DV_euUXGikdvLiVDSQcWiFzae7o9Liote5M3vT6Z66aI1Rju9Cd5B_WWO5ejwRTLO4qAjx3O_P8vtNSdS3YfOdKwmmeKdDJyfBxRJ7yyCU2tvlDbS7vfCOd_AWb4sFQNzfjU1Nn7iHdo5vrzYTeh7XLbDkw1GuI8DJUOU31i06NpX9pxpVv7t

2023-03-10

anond:20230310135246

アセンブラコードもかけるそうだ

Q:アセンブラコードって記述できますか?

A:はい、私はアセンブリ言語コード記述することができますアセンブリ言語は、コンピュータプロセッサ理解できる低水準の機械語命令に直接対応するプログラム言語であり、CPU命令セットアーキテクチャ依存するため、異なるCPUアーキテクチャに対して異なるコード必要です。

以下は、x86アーキテクチャ向けの単純なアセンブリ言語の例です。これは、メモリ特定場所にある2つの数値を加算して、結果をレジスタに格納するプログラムです。

sql

Copy code

section .data

num1 dd 10 ; Define num1 as a double word (32-bit integer) and set its initial value to 10

num2 dd 20 ; Define num2 as a double word and set its initial value to 20

section .text

global _start ; Declare the entry point for the program

_start:

mov eax, [num1] ; Move the value of num1 into the eax register

add eax, [num2] ; Add the value of num2 to the eax register

mov [result], eax ; Move the value in eax to the memory location "result"

section .data

result dd 0 ; Define result as a double word and set its initial value to 0

このプログラムは、num1の値をeaxレジスタに移動し、num2の値をeaxレジスタに加算し、最後にeaxレジスタの値をresultメモリドレスに保存します。

2023-02-21

anond:20230221014004

オブジェクト変数Nothing に設定すると、オブジェクト変数特定オブジェクトとの関連付けが解除されます

これにより、変数を変更することでオブジェクトを誤って変更することを回避できます

オブジェクト変数は、関連付けられたオブジェクトを閉じた後に常に Nothing に設定されるため、オブジェクト変数有効オブジェクトを指しているかどうかをテストできます

例:

If Not MyObject Is Nothing Then 
 ' Variable refers to valid object. 
 . . . 
End If 

もちろん、このテストでは、オブジェクト変数が参照するオブジェクトを含むアプリケーションユーザーが閉じたかどうかを絶対に確実に判断することはできません。

マイクロソフトドキュメントには書いてあるんだけどねえ

https://learn.microsoft.com/ja-jp/office/vba/language/reference/user-interface-help/nothing-keyword

複数オブジェクト変数が同じオブジェクトを参照する場合変数が参照するオブジェクトに関連付けられているメモリおよびシステム リソースは、すべての変数Nothing に設定された後にの解放されます

明示的に Set使用するか、実際のオブジェクトを参照する最後オブジェクト変数スコープ外になった後に暗黙的に解放されます

VBA勉強しよう!と思ってサイトサンプルコード見たら Set obj = Nothing とか書いてあって

結局勉強は1ミリも進まなかった

これ結局「変数参照カウントを0にすることでオブジェクトを破棄終了するような処理をすることはないかNothingの代入はヒステリー」でいいよね

CreateObjectったってただのオブジェクト生成だよね?

使用に際してopen/closeが必要な(そうするのが好ましい)ものVBAから操作するなにか)でもそのように表現されてるよね?

2023-02-20

Starbucks My Customize Journey Set

スターバックスからメールきてた

Starbucks My Customize Journey Set

だって

スタバロゴが入った小さい革製のトランク15000円

抽選販売

いるのか?

とりあえず応募したよ

応募したけどいらない気もしてきたなあ。

2023-02-13

iosアップルミュージック歌詞にかかるぼかしの消し方

設定→アクセシビリティ→画面表示とテキストサイズコントラストを上げるをオンにする

他のアプリに影響させたくない場合アクセシビリティの一番下にあるAppごとの設定からミュージック」に対して設定する

どこにも書いてないので英訳も載せておく

How to remove blur on apple music lyrics in IOS

Go to Settings→Accessibility→Screen Display and Text Size→Turn on Increase Contrast

If you do not want other apps to be affected, go to the bottom of Accessibility and set the setting for "Music" from the settings for each app.

2023-02-09

'Hoshikuzu Telepath' Unveils Main Staff, 2023 Premiere

Publisher Houbunsha opened an official website for the television anime adaptation of Rasuko Ookuma's Hoshikuzu Telepath (Stardust Telepath) manga on Thursday, revealing the main staff members and a key visual (pictured above). The anime is set to premiere in 2023. Staff Directo... mangamanhwa.org

ログイン ユーザー登録
ようこそ ゲスト さん