2024,江端さんの忘備録

原作者(権利者)と二次創作者(権利者)との関係において、また痛ましい事件(自死)が発生しました。

Another tragic incident (suicide) has occurred in the relationship between the original creator (rights holder) and the secondary creator (rights holder).

本件に関して、どちら側からも主張(弁護)することができますが、私はもう疲れました。

You can argue (defend) either side on this matter, but I am tired of it.

そして、この事件のトリガーとなったのは、またもやSNSです。

And it was again social networking sites that triggered this incident.

だから、私は、これからも、

So I will continue to say,

―― 「SNSでの誹謗中傷はやめよう」とは言う人はいても、「SNSを使うのをやめよう」と言う人はいない

"There are people who say, "Let's stop slandering people on SNS," but there are no people who say, "Let's stop using SNS."

と言い続けます。

大丈夫です。SNSなくても、生きていけます。

Don't worry, you can live without social networking.

「断捨離」ならぬ、「断SNS」やってみませんか。

Why don't you try "SNS" instead of "decluttering"?

まずは1ヶ月間だけでも。

Just for a month first.

2024,江端さんの忘備録

最近、私は、バリカンで髪の毛を切り落しているのですが、家族に評判が良くありません ―― このお話は、これまで何度もしましたが。

自分の髪型に1mmのこだわりもなく、ただ、うっとうしい髪をとっとと処分したいだけ人には、「バリカン」の利用をご提案したいと思います。

Recently, I have been cutting off my hair with clippers, which my family has not received well -- I have told this story many times before.

ただでさえ人相が悪いのに、ここに丸刈りが加わると、その(外観の)凶悪さがハンパではなくなるらしい、です。

The face of the man is bad enough, and when the round-cropped head is added to it, the evilness of the face (in appearance) is worse, it seems.

しかし、私は、髪の毛がちょっとでも長くなると、髪の毛が鬱陶しくなって、仕事や勉学に集中できなくなります。

However, when my hair gets even a bit longer, it becomes depressing, and I find it hard to concentrate on my work or studies.

1000円理髪店(最近は値上りしていますが)は、10分で理髪してくれますが、その待ち時間は大体その3倍、下手すると1時間以上に達することがあります。

A 1,000-yen barbershop (although prices have increased recently) will give you a haircut in 10 minutes, but the wait time is usually three times that and can reach an hour or more if you are not careful.

これでは、「時短理髪」の意味がありません。

This makes "short haircuts" meaningless.

-----

そこで、先日、普通のはさみで、自分の髪を切り落としました。

So, the other day, I cut off my hair with regular scissors.

フローは以下の通りです。

The flow is as follows

(1)はさみを用意する

(1) Prepare scissors

(2)風呂場で全裸になる

(2) Naked in the bathroom

(3)鏡を見ながら髪の毛を切る(後ろの部分は、推測にながら切る)

(3) Cut hair while looking in the mirror (cut the back part while guessing)

(4)風呂場の髪の毛を、手で集めてビニール袋に入れて、ゴミ箱に放り込む。

(4) Collect hair in the bathroom by hand, put it in a plastic bag, and throw it in the trash.

(5)全身をシャワーで洗い流す

(5) Shower the entire body.

以上

the end

-----

判断基準は『嫁さんに、セルフ理髪がバレるか否か』でしたが ―― 簡単にバレました。

The criterion was "whether or not my wife would find out about my self-hairdressing" -- and she quickly did.

『耳元がハゲになっている』との指摘を受けましたが、それは1週間ガマンすれば自動的に復元します。

He pointed out that 'the area around the ear is bald,' but that will automatically be restored if you hold off for a week.

そもそも、今の私は、一週間に2回しか外出していません(会社と大学、それぞれ1回づつ)ので、あまり気にしないことにしています。

To begin with, I only go out twice a week now (once at work and once at college, respectively), so I don't worry too much about it.

-----

私の容姿は年齢と反比例して、どんどん「安く」なってきています。

My appearance is inversely proportional to my age, and I am getting "cheaper" by the minute.

安いデジタル腕時計、Amazonで購入したスラックス、100円老眼鏡、そして、自力理髪・・・

A cheap digital watch, slacks purchased from Amazon, 100 yen reading glasses, and a self-haircut...

これは、これからの私の人生において『外観でアピールする場面がない』ということの証拠だと思います(残っているのは、リアタイア後の再就職面接くらいかな)

This proves that 'there are no situations in my life from now on that will appeal to me in appearance' (I think the only thing left is a re-employment interview after I retire).

-----

まあ、そういう訳で、私の理髪が変なことになっていたとしても、皆さんが、それに触れなければ良いだけのことです。

That is why, even if my hairdressing is strange, you don't have to tell me about it.

これまで通り、よろしくお願い致します。

Thank you for your continued support.

2024,江端さんの忘備録

私の人生では、「鏡を見る」という習慣がありませんでした。

In my life, I have never had the habit of "looking in the mirror."

ところが、リモート会議で、カメラの位置を調整する為に、自分の姿を写すようになり、気持ちに変化が起きました。

However, my feelings changed when I started to take pictures of myself in remote meetings to adjust the camera's position.

―― というか、愕然としました

-- or rather, I was astonished.

『カメラに映る自分というのは、かくも見苦しいものなのか』と実感しました。

I realized how unsightly I was on camera.

----

リモートで化粧の加工をする技術があれば売れるかなぁ、とか考えていたのですが、

I was thinking that if I had the technology to process makeup remotely, I could sell it,

そんなものは、10年も前に開発されており、今、Zoomに実装されていることも確認しました("化粧"ではなく"フィルター"と称呼されているようですが)。

I have confirmed that such a thing was developed ten years ago and is now implemented in Zoom (although it seems to be called "filter" instead of "makeup").

まあ、そりゃそうですよね。顔のデジタル処理サービスは、リモート会議の基本中の基本ですよね。

Well, that's right. Face digital processing services are the foundation of remote conferencing, aren't they?

そもそも、他人の顔でリモート会議に参加できる技術があるのに、化粧の画像処理ができない訳がない。

To begin with, there is no reason why the technology that allows you to participate in a remote meeting with someone else's face can't be used to process makeup images.

-----

一部のイスラム文化や地域において、結婚初夜まで新婦の顔を見られないという風習があるようです。

In some Islamic cultures and regions, it is customary not to see the bride's face until the wedding night.

これからは、これに準ずる形の結婚が多くなるかもしれません。

In the future, we may see more and more marriages of a similar form.

さらに進んで、入籍だけして、生涯リモートだけで過す「リモート婚」という新しい婚姻形態が発生するのも「あり」と思います。

I think it would be "possible" to go further and create a new type of marriage called "remote marriage," in which a couple only registers and lives remotely for the rest of their lives.

我が国では、結婚の態様に制約がないので、相続や年金の受給、配偶者控除、医療費控除、在留資格、財産分与や年金分割などの、法的メリット"だけ"を受けることが可能になります。

In Japan, there are no restrictions on the type of marriage, which allows the couple to receive "only" legal benefits such as inheritance, pension benefits, spousal exemption, medical expense deduction, residency status, property division, and pension division.

逆に、このようなアプローチで、既存の「異性婚(*)」のみを前提とするシステムの崩壊を目指す、というのも面白いかもしれません。

Conversely, it would be interesting to see how such an approach could be used to disrupt the existing system of exclusively "heterosexual marriage(*).

■「高齢者を組織のトップから、ナチュラルに排除」する技術

-----

(*)ちなみに、ChatGPTに「同性婚の反意語は、異性婚でしょうか」と質問したら、『違う』と言われました。興味のある人は調べてみて下さい。

(*) By the way, I asked ChatGPT if the antonym of same-sex marriage is heterosexual marriage, and I was told 'no.' If you are interested, please look it up.

2024,江端さんの忘備録,江端さんの技術メモ

『6ヶ月』 ―― これが、私が計算と経験則から導き出した結論です。

Six months" is the conclusion I have drawn from my calculations and rule of thumb.

上記の私のコラムの5ページ目に、以下の記載があります。

You will find the following statement on page 5 of my column above.

■「この私」が、3・11の震災(東日本大震災)をどのように忘れていったのかを、定量的に知りたいと思いました。

- I wanted to know quantitatively how "this I" had forgotten about the 3/11 disaster (the Great East Japan)

■そこで、私がここ何年間、1日も欠かさずに記録し続けているブログを使って、以下のような調査をやってみました。

- I did the following survey using my blog, which I have kept track of without missing a single day for the past years.

-----

上記の私のコラムの6ページ目に、以下の記載があります。

You will find the following statement on page 6 of my column above.

■ここから導かれる一つの仮説は、江戸時代以前の"寝たきり"とは、どんなに長くても半年程度であったということです。

- One hypothesis derived from this is that "bedridden" was only for about six months before the Edo period.

■当時の介護技術で、"寝たきり"を3年とか10年のオーダーで成立させるのは、無理だったはずです。

- With the care technology available at the time, it would have been impossible to keep a person "bedridden" for three or ten years.

-----

ウクライナ支援についても、各国の「支援疲れ」は、厳然たる事実です。

As for support for Ukraine, it is a stark fact that countries are "tired of supporting" Ukraine.

期限が定められていない支援に耐えられるほど、私たちは強くないのです。

We are not strong enough to withstand support without a set deadline.

-----

結論:

Conclusion:

(1)「他人への、条件のない愛情(無償の愛)のストックには上限がある」

(1) "There is an upper limit to the stock of unconditional love (free love) for others."

(2)「そのストックは、概ね6ヶ月で尽きる」

(2) "Its stock generally runs out in six months."

(3)「被災地支援、寝たきりの人への介護が「無償」で継続できる期間は、最長で"半年"である」

(3) "The maximum period during which support for disaster-affected areas and care for bedridden people can continue "free of charge" is "six months.

この現実をベースに、私たちは、被災者支援や高齢者介護を計画しなければならないと思います。

Based on this reality, we must plan to support the affected population and care for older people.

「無償の愛」を『無期限』とする計画は、必ず破綻します ―― "必ず"です。

The plan to make "free love" "indefinite" will surely fail -- "surely."

事業仕分けに関する一考察

 

2009,江端さんの忘備録

新しく政権党となった民主党はがんばっていると思います。

今のところ、「事業の見える化」は応援したいと考えています。

しかし、実際のところ、私達の仕事(システムの研究)に滅茶苦茶な影響を与えているのは事実です。

イメージとしては、銃弾が豪雨のように飛び回る戦場で、次々と横にいた仲間がバタバタと撃たれて倒れて、気がつくと私ひとりが立っているイメージです。

私も片腕くらいは、手榴弾で吹き飛ばされている感じですが、それでも「仕方ないな」と諦めています。

-----

だって「研究」だもの。

「研究」というのは、先行投資で、簡単にいえばバクチです。

『バクチの値段を抑えて、子供の飯を買う』と言われて反論できる論理付けなんぞ、できる訳ありません。

ただ、我田引水かもしれませんが、「研究」という奴は、単純な経済法則で「動かない」点が、ちょいと多くの人には分かりにくいと思うんですよ。

-----

私の勤務している会社の場合ですね、「金を設ける為に研究をしよう」という殊勝な野望をもっている研究員を見たことがないんですよ。

これは、研究者の「知に対する無償の愛」と語ることもできますが、「企業利潤を無視した確信的な犯罪」とも言えます。

「私心なき知の追求」が、経済成長の中にあった時はよかった。

「研究」と「金」が成立しえる余地があったからです。

-----

「スパコンが本当に必要ですか?」

「ロケットの一部にしかならないような計画が必要ですか?」

私は、計算機センターで、CPUを占拠する時間を延長させる姑息な手段を駆使してきた学生時代から、GPS信号のトリッキーな使い方を検討している現在に至っております。

そんな私ですら、至極当然のあたりまえの質問だと思います。

-----

『世界一を回復しなければならない』 ?

違うだろう。

『このスパコンの研究を続ければ、20年後に、24時間前の地震予測を95%で達成でき、経済効果は、2050年から100年間で50兆円、のべ500万人の人命が助けられます』

『このロケットの研究が具体化すれば、2050年には、火星上に我が国が主張しうる領土が担保され、2100年迄に、1000万人の火星移住を実現し、資源、環境問題などという瑣末な問題を全て解消します』

と、嘘でもいいから、なぜ言えない?

「俺が死んだあとに、俺を誰がどう評価しようが知ったことか」と、言える我が国の役人は、もういないのか?

-----

「じゃあ、お前には言えるのか」と問われれば、はっきりと答えましょう。

言えないです。研究者だからです。

「インディアン、嘘つかない」とはインディアン自身が言いますが、研究者は皆、嘘が「つけない」のです。

正しい倫理観、基本と正道の理念・・・ではなく、嘘をつくと、コスト負担が大きくなるからです。

面倒なことに、研究者という奴は、嘘と次の嘘の間にも一貫性を持たせようとします。

一の嘘を論理的に帰納させる為には、指数関数的に増大する嘘の連鎖を、矛盾なく完成させなければならないという滅茶苦茶な労力が発生し、

そして、何より我々が最も辛い一言が、

「それ、論理矛盾していない?」

です。

-----

研究者を友人、または伴侶に持っている方は一度試されると良いかもしれません。

その友人や伴侶が、訳の分からないことを喋っていて、困った時にに言うセリフは、「よく分からない」ではありません。

内容はどうでも良いです。

とにかく、

「それ、論理矛盾していない?」

と言ってみて下さい。

相当、面白いものが見れるはずです。精神的には、研究者を即死させ得る一言です。

閑話休題

-----

資源のない我が国にとって、国家からの科学技術研究の投資削減は自殺行為だと、私も思います

それでも、科学技術の研究費は削られ、コスト意識なき研究は、成立しないでしょう。

純粋な学術研究の徒は消え、狡っからいマーケット理論や、嘘臭いビジネスモデルの提案に長けた、いけすかない似非研究者が跋扈することになるでしょう。

いや、もうすでに、そうなっています。

なにしろ、私も、そのように看板を取り替えないと、研究で生きていけないのですから。

-----

何年か後に、日本の最後の砦であった「科学技術」が事実上、消滅して国際競争力が全くなくなった時、「あの時、民主党が・・・」とは、私は言わないし、そして、私は誰にも言わせない。

ただ一点。

『為政者ではなく、私を含めた我々国民自身が、「科学技術」に「コストリターン」の導入すべきことを、国是として認めた』ということ。

どんな未来が来たとしても、この一点だけは、絶対に譲らないつもりです。

2024,江端さんの忘備録

『東アジア反日武装戦線の桐島聡を確保』 ―― このニュースを聞いた時に、私は、本当に驚きました。

"Satoshi Kirishima of the East Asian Anti-Japanese Armed Front secured" -- When I heard this news, I was shocked.

日本人であれば誰でも知っている顔です(交番の前に、必ず写真が貼ってあったはずです)。

Any Japanese person would recognize his face (you could always find a picture of it posted in front of the police box).

彼は、連続企業爆破事件のテロの主犯です。

He is the leading terrorist responsible for a series of business bombings.

といっても、私の知識も書物程度です。

However, my knowledge is also limited to books.

何しろ爆破事件があった時、私、小学生でしたから。

After all, I was in elementary school when the bombing occurred.

-----

私が、"中革"、"革マル"の大手2大スーパーマーケットのような過激派(今や後継者不足で、経営難ですが)の、次に私の頭に思い浮ぶ過激派が「東アジア反日武装戦線」です。

The next extremist group that comes to my mind after the two major supermarkets of "Chu-Kaku" and "Kanmaru" (now in financial difficulties due to lack of successors) is the "East Asian Anti-Japanese Armed Front."

(ちなみに『革命を否定していない(暴力革命は否定?)』という点では、最大大手スーパーは「日本共産党」です)

これは「悪い」のではありません。「そういうもの」なのです。

(Incidentally, the largest supermarket in terms of "not denying revolution (denying violent revolution?)" is the "Japanese Communist Party. )

それはさておき。

Aside from that.

-----

このニュースを聞いた時、

When I heard this news,

―― 日本の警察って、スゲーなぁ

"Japanese police are amazing!"

と感心したのですが、警察の捜査と関係のないところで、本人が明らかになったようです。

I was impressed, but it seems that the person himself was revealed in a way unrelated to the police investigation.

末期がんになった本人が、自ら本名を自白したとのことです。

He, who had terminal cancer, seemed to confess his real name to us himself.

なんか、私、昨日から、モヤモヤ感が拭えません。

For some reason, I have not been able to shake the feeling of bewilderment since yesterday.

- 最期に全てを自白して果てるとは、良い覚悟だ

- It's an excellent resolution to confess everything at the end.

- 最期になってから全てを自白するとは、情けない野郎だ

- He's a pathetic son of a bitch, confessing everything at the last minute.

- 革命戦士としての矜持があるなら、無名の戦士として消えていくべきだ

- If he is proud to be a revolutionary warrior, he should have disappeared as an unknown warrior.

- 革命戦士としての総括するのであれば、残りの力を振り絞って、事件の全容を語り尽くせ

- If he is going to sum up as a revolutionary warrior, then use all his remaining strength to tell the whole story of the incident.

と、なんか、この爆弾テロリスト(多分、テロリストとして"確定"で良いと思う)を、どう評価して良いのか分からず、昨日から揺れております。

I have been annoyed since yesterday, not knowing how to evaluate this terrorist bombing (I think it is probably "confirmed" that he is a terrorist).
-----

京アニ放火殺人事件の青葉被告に死刑判決(但し一審判決で、現在控訴中)が出たタイミングで、桐島聡の身柄のニュースです。

The news of Satoshi Kirishima's custody comes at a time when the defendant Aoba in the Kyo-Ani arson and murder case has been sentenced to death (but only at the first trial and is currently on appeal).

1974年の三菱重工本社ビル爆破事件では、8人が殺害され、108人が重軽傷を負いました。

The 1974 bombing of the Mitsubishi Heavy Industries headquarters building killed eight people and seriously injured 108 others.

テロ事件という意味では、この2つは、同じカテゴリーと考えて良いと思います。

Regarding terrorist incidents, the two can be considered in the same category.

-----

末期ガンであろうがなんであろうが、なんか彼を生かせ続けて、あの事件(連続企業爆破事件)を本人がどのように総括するのかを、私は、彼の口から聞きたいのです ――

I would like to hear from him how he would sum up that incident (the serial business bombings) by keeping him alive, terminal cancer or not.

何が何でも。

Whatever it takes.

 

2024,江端さんの忘備録

映画「翔んで埼玉」は、2作目もヒットしたとの話を聞いております。

I have heard that the second movie "Sho de Saitama" was also a hit.

「翔んで埼玉」は、楽しい映画ではありましたが、私は『爆笑して卒倒する』という程ではありませんでした(まあ、そんな映画、滅多にありませんが)。

Sho de Saitama" was an enjoyable movie, but not so much that I "burst out laughing and swooned" (well, such movies are rare).

-----

昨日、YouTubeで見た、中川家さんの『中川家の寄席2022「東京で賃貸物件探し」』の方にヒットしました(YouTubeに飛びます)。

Yesterday, I was hit by "The Nakagawa Yosei 2022 "Finding a Property for Rent in Tokyo" by the Nakagawa, which I watched on YouTube (jump to YouTube).

 

"小田急沿線"、"下北沢いじり"、"新百合ヶ丘越え"、"南武線"という、私に馴染みの路線に加えて、

In addition to the Odakyu line, Shimokitazawa, Shinyurigaoka, and Nambu line, which I am familiar with,

(正直大阪は良く分からかったのですが)"梅田"、"京都"、"大津"は、大学時代の私のテリトリーでしたので、

(To be honest, I didn't know much about Osaka.) "Umeda," "Kyoto," and "Otsu" were my territory when I was in college,

―― 笑いました。

-- I laughed.

家族にもLineを送りました。

I also sent a Line to my family.

-----

このコントに登場する、(1)大阪(京都を含む)と(2)東京(の西側)は、私の過去と現在のテリトリーでした。

(1) Osaka (including Kyoto) and (2) the west side of Tokyo (the west side of Tokyo), which appear in this contrast, were my past and present territories.

「地元いじり」をして貰えるというのは、なんというか"嬉しい"ものです。

It is a pleasure to have someone "tinker" with the local community.

地味な地元に、スポットライトを当てて貰えるような感じです。

It is like having a spotlight shined on a humble local community.

「翔んで埼玉」が埼玉県の人に大ヒットしたというのは、至極当然のことでしょう。

It is quite natural that "Sho de Saitama" was a big hit with the people of Saitama Prefecture.

ただ、これは、いわゆる「身内ウケ」のようなもので、マスマーケティング的には美味しくなさそうな気がします。

However, I feel that this is what is called "private favour" and does not seem to be tasty from a mass marketing perspective.

-----

ちなみに、私は名古屋(の隣の市)の出身でもありますので、TVアニメ「八十亀ちゃんかんさつにっき」も笑えます。

By the way, I am also from Nagoya (the city next door), so I can also laugh at the TV anime "Yajukame-chan kansatsu nikki".

『地元ネタで笑える』ということが『地元を愛している』と同義かと問われると、ちょっと違和感を感じますが ――

I'm not sure if "laughing at local stories" is synonymous with "loving your hometown," though,

『愛』に近い"何か"があるんだろうな、とは思っています。

I think there is something similar to "love.

『なんで、披露宴まできてお前に説教されなきゃならん』と本気で腹が立ってきます

2015,江端さんの忘備録

(昨日の続きです)

(Continuation from yesterday)

■まず「長い」というスピーチは最悪です。

First of all, "long speech" is the worst.

そもそも、芸人でもない私達一般人の話術が楽しかろう訳がない。

First, we are not professional performers, so our verbal skills will never be splendid.

その程度の自己評価もできていない人間が、さらに長いスピーチをしたら、そこにあるのは「苦痛」という名の「地獄」です。

Even the person who cannot evaluate oneself, try a long speech, it is going "hell" that is called "pain".

■次に「ローカルネタだけ」というスピーチも最悪です。

Secondly, "local talk" is also the worst.

ローカルネタは、それを出席者全体が共有できるレベルにまで引っ張り込める技量を持っていることがが前提で、そんな技量を持っている人は、恐しく少ないです。

To speak the "local talk," a speaker should have a unique technique to spread the talk to other attendees to share the joy. However, few people have the technique.

■「格言や名言の引用」というスピーチも最悪です。

Finally, "apothegmatize" is the worst.

『なんで、披露宴まできて、お前に説教されなきゃならん』と本気で腹が立ってきます。だいたい、赤の他人からそんなもの聞かされて楽しいと思うか。馬鹿野郎めが。

I become to burn the anger with thinking "Why I have to hear your useless sermon this private party?" "Above all, If you were me, do you think your sermon is "God-given ?" Don't be silly.

そもそもスピーチの内容を真面目に聞いている人間など、全体の10%程度で、その内容を覚えているのは10%を切ります(実際は、もっと少ないだろうと思う)。

First, about 10% of a party hears a speech seriously, and less than 10% of the persons will forget the contents of the speech. ( I think it might be smaller.)

とすると、「楽しい」スピーチの発生率は多く見積っても1%未満であり、あとの99%以上は「苦痛だけ」のスピーチである、という解釈も可能です。

This estimation shows that the possibility of "amusing speech" is less than 1%, and the remaining more than 99% is "painful speech".

-----

下手くそなスピーチに共通することは、

I think all of these miserable speakers are missing the following.

『私の言葉など、1mmたりとも人の心に届かない』

"My words never arrive, all right."

という客観性を、徹頭徹尾、欠いていることですね。

They lose the objectivity from start to finish.

客層を意識していない、空腹でイライラしている、などの配慮がないことも勿論、話題が脈絡なく続くスピーチが、論理性を欠き、出席者をどんどん不快にさせていくことに気がついていない。

They ignore the layers of guest and the unpleasure of hunger, and the topics of their speech are not consistent, concise, and logical. They never understand that they are annoying attendees.

―― 会社で偉い立場の人間だか何だか知らんが、その程度のプレゼンスキルで、その地位にいられるものだ

"I don't know your job title, though. I cannot understand your title because of your terrible speech."

と、ついには、その人の「下手くそなスピーチ」が、新郎や新婦の属する評価まで下げてしまいます(私の中では)。

In my mind, the terrible speech is a downgrading assessment of the bridal couple, at last.

これは、結婚披露宴の趣旨を、著しく損うことになっていないでしょうか。

This is a sort of destroyer of bridal ceremony.

(続く)

(To be continued)

2024,江端さんの忘備録

■startkick.py

import httpx
import sys
import asyncio

async def call_start_endpoint(value: int):
    url = "http://localhost:8000/start"  # 1つ目のFastAPIアプリケーションのエンドポイントURLを指定

    input_data = {"value": value}

    async with httpx.AsyncClient() as client:
        #response = await client.post(url, json=input_data)
        response = await client.post(url, json=input_data, timeout=10.0) #10秒間応答を待つ

    if response.status_code == 200:
        data = response.json()
        return data
    else:
        print(f"エラーが発生しました。ステータスコード: {response.status_code}")
        return None

if __name__ == "__main__":
    if len(sys.argv) != 2:
        print("使用法: python startkick.py <数値>")
        sys.exit(1)

    try:
        value_to_send = int(sys.argv[1])  # コマンドライン引数から数値を取得
    except ValueError:
        print("数値を指定してください。")
        sys.exit(1)

    result = asyncio.run(call_start_endpoint(value_to_send))
    if result:
        print(f"1つ目のFastAPIアプリケーションの結果: {result}")

■app1.py

from fastapi import FastAPI
import httpx
from pydantic import BaseModel

app = FastAPI()

class InputData(BaseModel): # json形式の場合これが必要。これが無いと422エラーで弾かれる
    value: int

@app.post("/start")
#async def start(value: int):  # json形式を無視した場合
async def start(input_data: InputData):
    # 2つ目のFastAPIアプリケーションのprocessエンドポイントを呼び出す
    url = "http://localhost:8001/process"  # 2つ目のアプリケーションのエンドポイントURLを指定

    value2 = input_data.value
    input_data2 = {"value": value2}

    async with httpx.AsyncClient() as client:
        response = await client.post(url, json=input_data2, timeout=10.0) #10秒間応答を待つ

    if response.status_code == 200:
        data = response.json()
        return data
    else:
        return {"error": f"エラーが発生しました。ステータスコード: {response.status_code}"}

■app2.py

from fastapi import FastAPI
from pydantic import BaseModel
import asyncio

app = FastAPI()

class InputData(BaseModel):
    value: int

class OutputData(BaseModel):
    result: int

@app.post("/process")
async def process(input_data: InputData):
    value = input_data.value

    # 5秒間の待機
    await asyncio.sleep(5)


    # ここで2つ目のFastAPIアプリケーション独自の処理を行う(例: valueを2倍にする)
    result = value * 2
    return {"result": result}

2024,江端さんの忘備録

今、ビッグネームの芸人さんが、性加害の疑いをかけられて、芸能活動を停止されています。

Now, a big-name comedian has been suspended from performing due to allegations of sexual assault.

今の私は、その"真偽"に至る確証がありませんので、これについては言及しません。

I have no proof of the "truth" of this, " so I will not mention it.

今の私が探しているのは、

What I am looking for now,

―― このビッグネームの芸人さんについて、今年の運勢について語っていた占い師または占い番組

-- Fortune tellers or fortune-telling shows that talked about this big-name comedian and his fortune for this year.

です。

彼らは、

(1)「芸能活動の停止」という大事件を、ちゃんと予測していたのか?

(1) Did they properly predict the big event of "suspension of entertainment activities"?

(2)予測した上で、その対策をちゃんとサジェスチョン(提案)していたのか?

(2) Did they predict the above (1) and make suggestions for countermeasures?

上記(2)は難しいと思うのですが、上記(1)ができていなかったのであれば、その「占い師」は、"無能"または"嘘吐き"と言わないまでも、"無用"であるとは言えると思います。

I think (2) above is brutal, but if (1) above was not done, then the "fortune teller" is "useless," if not "incompetent" or "a liar.

そのようやスキャンダルの予防措置への警告も出せないような「占い師」や「占い番組」は結局のところ"無用"、もっと言えば"害悪"にさえなると思うのですが ―― 多くの人は、そう考えないのでしょうか?

I think that "fortune-tellers" and "fortune-telling shows" that fail to warn against such scandalous precautions are ultimately "useless" or even "harmful" -- don't most people think so?

-----

ちなみに、私がシミュレーションでやっていることは「計算」です。現在のやっていることを、1mmも変えることなく、このまま続けていくとどうなるかを見極める、単純な計算です。

By the way, I am doing a " calculation " in the simulation." It is a simple calculation to determine what will happen if we continue what we currently do without changing a single millimeter.

『毎月10万円の収入があって、毎月12万円の支出をしていれば、1年後にいくらの赤字になる?』(答え:24万円の赤字)ということです。

'If you have an income of 100,000 yen per month and spend 120,000 yen per month, how much of a deficit will you have after one year?' (Answer: 240,000 yen deficit). Those are what I did.

ですから、根拠のロジックもデータも示さず、個人の主観だけを一方的に語る『占い』ごときと、私のシミュレーションの計算を、一緒に扱われるのことは非常に不本意です。

Therefore, it is miserable that my simulation calculations are treated with "fortune-telling," a one-way subjective statement by an individual without any logic or data to support it.

-----

ともあれ、私は「この芸人さんについて、今年の運勢について語っていた昨年占い番組またはその占い師」を探しています。

Anyway, I am looking for "last year's fortune-telling show or its fortune-teller who talked about this comedian and his fortune for this year."

本調査にご協力頂けましたら、幸いです(メールアドレスはこちら)。

We would appreciate your cooperation in this survey (e-mail address here).

―― 「教育現場というシステム」は「性犯罪発生装置」として機能する