2023,江端さんの忘備録

突然ですが、三国志の中では、私は「司馬懿 v.s 諸葛亮」が好きですが、その中でも特に「五丈原の戦い」が好きです。

Suddenly, in the Romance of the Three Kingdoms, I like "Shiba I v.s Zhuge Liang," especially "Battle of Gojougen. "

(「五丈原の戦い」「夷陵の戦い」で、その後に「赤壁の戦い」が来る、という感じ)

("Battle of Gojougen" and "Battle of Iryo," followed by "Battle of Sekiheki," and so on).

もちろん、吉川英二先生の三国志ではなく、ドラマ"Three kingdoms"のこの辺りです。

Of course, I am not referring to Eiji Yoshikawa's "Three Kingdoms" but to the "Three Kingdoms" drama series.

それは、諸葛亮が司馬懿を挑発するために、「司馬懿に女物の衣服を贈る」という話です。

It is the story of Zhuge Liang's gift of women's clothing to Shiba I to provoke Shiba Ii.

しかし、それに激怒した部下の言動が良く理解できません。

However, I don't quite understand the words and actions of the outraged subordinate.

もちろん、部下の怒りが分からない訳ではないのですが、戦略的に明々白々の挑発に乗るほどのことか? とも思います。

Of course, I am not unaware of my subordinates' anger, but I wonder if it is strategically important enough to take advantage of a clear-cut provocation.

ただ、当時の常識から言えば、これは、相当の挑発であり侮辱なのだろうと思います。

However, from the common sense of the time, this would have been a considerable provocation and insult.

-----

なんとか激怒した部下の心情を、現代の考え方から理解する方法はないものかと考えてみました。

I wondered if there was some way to understand the feelings of my furious subordinate from a modern perspective.

―― 司令部にいる将軍(男性)が、女性用の派手なビキニの水着を贈られて、「着て見せろ」と言われた

"A general (male) at the command headquarters is presented a fancy bikini swimsuit for women and asked to try it."

という感じでしょうか。

I guess it is like that.

私が将軍なら、敵陣営に戦略核ミサイルを打ち込みかねないくらい激怒するでしょう。

If I were a general, I would be so furious that I might launch strategic nuclear missiles into the enemy camp.

ともあれ、歴史の逸話は、その登場人物の感情を理解するために、工夫が必要です。

Regardless, historical anecdotes require some ingenuity to understand the characters' emotions.

-----

ところで、司馬懿は、その女性用の衣服を着て『似合うか?』と、諸葛亮の使者に対して、逆に聞き返しています。

By the way, Shiba, I wore the women's clothes and asked 'look good?' to Zhuge Liang's messenger in reverse.

上記の「水着」と考え合わせることで、『司馬懿の度量の凄さ』を実感できると思います。

Considering the above "swimsuit," I think you can realize the "greatness of the degree of Shiba i. "

三国志ファンの方へのお願い

2023,江端さんの忘備録

―― 作った人が言う「簡単」と、それを使う人が直面する「簡単」の間には、100万倍の差がある

"There is a million-fold difference between "easy" as described by those who made it and "easy" as faced by those who use it."

私も長い間、気がつかなったのですが、最近、それを実感しています。

I have not noticed it for a long time, but recently I realized it.

----

最近、私は、他人の作ったシステムを改修するの仕事が多いのですが、この「簡単」の認識のズレで苦しめられています。

Recently, I have been doing a lot of work modifying systems created by others, and I have been suffering from this discrepancy in perception of "easy."

私にとって、私の作ったプログラムやシステムは「簡単」です。

The programs and systems I have created are "easy."

もう、それは『一体、このプログラムの何が分からないの?』というくらいの感じです。

It's like, 'What the heck do you not understand about this program?

しかし、私の作ったプログラムを「改造する人」から見れば、それは「簡単」どころか、ぶっちゃけ「呪文」であり「暗号」です。

However, from the point of view of the "modifiers" of my program, it is not "easy" but rather, quite frankly, a "spell" and a "cipher code."

はっきり言って、『自分で最初から作った方が早いんじゃないかな』と思える程に『難しい』。

To put it bluntly, it is so "difficult" that it would probably be faster to make it yourself from scratch.

これは、自分の作ったプログラムをベースに、だれかに改造を依頼する(ソフト外注さんも含む)時にも同じことが言えます。

This is also true when you ask someone (including software subcontractors) to make modifications based on a program you have created.

『簡単』を簡単に使用しない方が良いと思います。

It is better not to use 'easy' easily.

なぜ、その「好き」と「楽しい」に論理付けして、一般化までして、他人に「簡単」を押しつけてくるのか?

特に、他の人の手によってチューンナップされた開発環境やコーディングルールは、(他の人は知りませんが)、私にとっては、

The development environment and coding rules that others have tuned up (I don't know about others) are, to me,

『地獄の開発環境』です。

the 'development environment from hell.'

-----

この話は、「他人」だけではなく「自分」にも当てはまります。

This story applies not only to "others" but also to "myself."

私が、このサイトで、病的なほど技術メモを書き残している理由は、

The reason I am writing morbidly technical notes on this site is,

「過去の自分にとって『簡単』だったものは、時間が経過すれば、それは『地獄』に変化する」

"What was 'easy' for me in the past turns into 'hell' over time."

ということを、誰よりもよく理解しているからです。

I understand this better than anyone else.

私のサイトに来訪頂いている方にとって、"SQLクエリ"だの"Go言語"だの、本当にどーでもいいことですよね。

For those visiting my site, "SQL queries" and "Go language" are unimportant.

でも、私にとっては、このようなメモを残すかどうかは、本当に死活問題なんです。

But for me, whether or not to keep such notes is really a matter of life and death.

2023,江端さんの忘備録

今日は、講義での発表の日でした。

Today was the day of the presentation at the lecture.

作成した40ページの英文資料を、1時間かけてプレゼンをしてきました ―― 英語で。

I spent an hour presenting the 40-page English document I created in English.

大学の講義は、原則として英語で行われるので、徹底した予習をしておかないと、さっぱり分かりませんが、まあ、これは、時間をかければ、なんとかなります。

As a rule, university lectures are given in English, so unless you do thorough preparation, you will have no idea what to expect, but, well, you can manage this if you put in the time.

ところが、英語の発表は、その練習量に比例し、かつ、その日のコンディションもあります。

However, English presentation is proportional to the amount of practice and the day's conditions.

私はこれを、

I say

『今日の英語はスベる』

"Today's English is slippery."

と言います。

-----

調子の悪い時は、良いフレーズが、良い文法で、スラスラ(というのはウソですが)と、しゃべった気になります。

When I'm not in good shape, I feel like I speak with good phrases and grammar but slurred speech (which is incorrect).

比して、調子の悪い時は ―― そりゃ、もう、酷いもんです。

When I'm in bad form, I'm in terrible shape.

動詞と名詞を逆に使っていたり、過去形や未来形が混在していたりします。

Verbs and nouns may be used reversely, or past and future tenses may be mixed.

複数の英単語が、氷上の上をでたらめにスベっている、という感じです。

It's like multiple English words are slipping over the ice in a bullshit way.

喋っている自分とは異なるもう独りの私が、『なんちゅー、みっともない、発表してやがるんだ』と、呆れて見ているのを感じます。

I can feel the other me, who is different from the one speaking, looking at me with dismay, saying, 'What a disgraceful, shabby presentation you are making.

-----

結論: 今日のプレゼンは、見事なくらいにスベっていました。

Conclusion: Today's presentation was brilliantly slippery

―― 今の私の選択を、一番喜んでくれているのは、父と母のような気がする

2023,江端さんの忘備録

憲法改正なんて、簡単だ ―― と、私が言ったら、多くの人はウソだと思うでしょう。

Many people would think I lied if I told them that amending the Constitution would be easy.

でも、隣国(遠国でもいいけど)、我が国に侵攻してきたら、我が国の国民はあっという間に、憲法改正に傾くと思うんです。

But if a neighboring country (or even a distant country) invades our land, I think our people would be inclined to amend the Constitution in a heartbeat.

「9条改正」などという次元を飛びこえて、『自衛隊が日本国軍として再編されるまである』と思うんです。

I believe the "Self-Defense Forces will be reorganized as the Japanese Armed Forces" beyond the dimension of the "revision of Article 9.

さらには、「日本国憲法第9条の全文放棄」というような、もの凄いことが起こるかもしれません。

Furthermore, something as terrible as "abandoning the entire text of Article 9 of the Japanese Constitution" could happen.

-----

外国からの侵攻をきっかけとする憲法改正アプローチを、机上シミュレーションしてみました。

I have created a desktop simulation of a constitutional amendment approach triggered by a foreign invasion.

最大の懸案は、憲法改正をする為の時間確保ですね。

The biggest concern is finding the time to amend the Constitution.

戦時下での国民投票は、とんでもないハードミッションです。

A referendum in wartime will be a tough mission.

国会と行政府が占領される前に、憲法改正を完遂する為には、(国防の理念には反しますが)やはり第一の目標は、首都防衛になると思います。

To complete the constitutional reform before the parliament and the executive branch are occupied, the primary goal (although it goes against the principle of national defense) would still be the defense of the capital.

-----

ともあれ、『だから、まあ、そう、焦らなくていいんじゃないかな~』と、私は、のんきに考えています。

Anyway, I think carefree, 'So, well, yeah, I guess we don't have to rush to revise the Constitution.

もちろん、国民全員での、十分な時間をかけた徹底した議論を経て、憲法改正を行うことが望ましいのは言うまでもありません。

The Constitution should be revised only after a thorough, enough time debate among all citizens.

しかし、多分、このような、『場当たりでドタバタ的な憲法改正アプローチ』の方が、私にはイメージしやすいです。

But perhaps I can more easily imagine this kind of " ad hoc, slapstick approach to constitutional reform."

-----

ちなみに、私は、以前から申し上げている通り『偏差値52くらいの"護憲派"』です。

As I have said, I am a "Constitutionalist" with a deviation of about 52.

夏休みの最後の週になって、目の前の宿題に青冷める子供たちのように ―― 今の私たちは、今、膨大な宿題を目の前にして、やっと、テキストを開き始めたところなのです。

2023,江端さんの忘備録

書くべきか、書かないべきか、本当に迷ったのですが ―― 油の煮えたぎった釜の中に投じられる覚悟で記載してみます。

I wondered whether I should write about it, but I'm prepared to be thrown into a cauldron of simmering oil and try to describe it.

『北朝鮮に対して、なんの条件も付けることなく、拉致被害者1人の返還に対して、20億円を支払う』

"We will pay North Korea 2 billion yen for the return of one abductee without any conditions attached."

というような解決策を唱えている人がいないかなぁ、と調べてみましたが、現時点で、見つけられませんでした。

I have looked to see if anyone is advocating such a solution, but at this time, I have not found one.

-----

我が国の政府が、この措置を取れない理由は、いくらでも挙げることができます。

One can cite any number of reasons why our government cannot take this step.

一言で纏めれば、『我が国がテロに屈した』ことになります。

In a nutshell, this means that "our country will succumb to terrorism.

(「テロ」というと、どこかに大義がありように見えるので、むしろこれは「卑劣にして悪辣」と言うべきでしょう)

("Terrorism" makes it seem like there is a cause somewhere, so I would rather call this a "despicable and vicious nation.")

このような解決(テロ国家との交渉)は、法治国家としての日本国の威信を著しく低下させることになります。

Such a solution (negotiations with a terrorist state) would seriously diminish the prestige of Japan as a nation governed by the rule of law.

さらに、国連決議に違反して、他国の領空を許可なく通過させるようなミサイルをバカスカ打ち上げている国家に、軍事費の支援をすることにもなります。

Furthermore, it would mean providing military spending support to a nation that, in violation of UN resolutions, foolishly launches missiles that pass through the airspace of other nations without permission.

参考文献:「K君の話」

Reference: "K-kun's Story."

K君の話

そして最悪のシナリオは、日米安全保証条約の破棄、日米韓国軍事連携の崩壊です。

The worst-case scenario involves the abrogation of the Japan-U.S. Security Assurance Treaty and the collapse of the Japan-U.S.-South Korea military partnership.

-----

ただ、このような事例が『これまでに一度もなかったか』と言われれば、そうでもないのです。

However, if you ask whether such cases have 'never happened before,' it is not so.

典型的なのが、これです。

This is a typical case.

私、この週末に、「超法的措置」の法的根拠を、かなり真剣に探しました

今回、再度調べてみたら、色々分かりました。

This time, I looked into it again and found out a lot.

(1)2003年に民主党が「緊急事態基本法」の構想を提案したことがある

(1) In 2003, the Democratic Party of Japan proposed the concept of a "Basic Law on Emergency Situations.

(2)しかし、この「緊急事態基本法」は法律として成立していないため、現在の日本の法律体系においては、緊急事態における政府の裁量権に関する明確な法的根拠は存在しない。

(2) since the "Basic Law on Emergency Situations" has not been passed, the current Japanese legal system lacks a clear legal basis for the government's discretionary authority in emergencies.

(3)上記(1)(2)より、緊急事態における政府の行動は、現行の法律や憲法の枠組み内での判断と解釈に依存することになる。

(3) From (1) and (2) above, government action in a state of emergency will depend on decisions and interpretations within the framework of existing laws and the Constitution.

ふむふむ、なるほど。つまり、明文化されていないけど、政府には超法的措置を施行する権限が、慣例的に認められている、ということらしいです。

Hmmm...I see. So, it seems the government is customarily authorized to enforce extra-legal measures, although it is not explicitly stated.

と、いうことは、

And so, I can say,

政府が、拉致被害を『緊急事態』であると認定すれば、北朝鮮の拉致被害者を『身代金と交換に奪還する』ということは、"論理的には可能"である

"If the government recognizes the abductions as a state of emergency, it is "logically possible" to "recover the North Korean abductees in exchange for ransom."

ということですね。

-----

私は、この解決法が良いとは思っていません。

I do not believe this solution is a good one.

日本国民全体の国益としては、むしろ悪いと思えます。

It doesn't seem suitable for the Japanese people's national interest.

それに、北朝鮮が交渉に応じる可能性については、全く未知数です。

Besides, the possibility of North Korea agreeing to negotiations is entirely unknown.

とはいえ、こういう発言をする国会議員が1人や2人くらいいてもいいのではないか、と思うのです。

Nevertheless, I think there should be at least one or two members of Congress who make these kinds of statements.

(ちゃんと調べたら、こういう発言をした議員はいるかもしれませんので、ご存知の方は私に教えて下さい。というか、政府(内閣府とか外務省)は、多分、もう検討済みだろうと思う)

(A legislator may have made these statements if I did my research correctly. If you know of any, please let me know. Besides, I think the government (Cabinet Office or Ministry of Foreign Affairs) has probably already considered it.)

こういう話を言語化してしまえば、私たち国民も『国会が本気になって、政府を叩き始めた』と実感できると思うのです。

If we verbalize these stories, we, the people, will realize that 'the Diet is severe and has started to beat the government.

私には、『こういう発言で、一度、日本中を大炎上させる』ことくらいしか、この問題を動かす方法が思いつけませんでした。

The only way I could think of to move the issue along was to 'send the whole country into flames once with a statement like this.

-----

現在、政府が、拉致問題にどれほどの予算を付けているのかは、私は知りません。

I do not know how much the government is currently budgeting for the abduction issue.

ですので、私なりに「数字を回してみました」

So, in my way, I "turned the numbers around."

仮に、全ての日本人が、この問題に対して、1回に限り1万円を負担するとして、1.257億人 x 1万円 = 1.257兆円。

Assuming that every Japanese person will bear 10,000 yen for this issue at one time only, 125.7 billion people x 10,000 yen = 1.257 trillion yen.

1.257兆円(12570億円 ÷ 20億円) = 628.5人分。

1.257 trillion yen (1257 billion yen ÷ 2 billion yen) = 628.5 persons.

現在日本国政府が公式に認定している北朝鮮拉致被害者数は17名です。

Currently, the number of North Korean abductees officially recognized by the Japanese government is 17.

民間の機関の調査結果では、470人という説もあります。

Some private institutions have suggested that the number is 470.

-----

『江端の提案は、乱暴で、安直で、単純で、低能すぎる』という批判は、甘んじて受ける覚悟です。

I am prepared to accept the criticism that "Ebata's proposal is too wild, straightforward, simplistic, and low.

しかし、私を含めて、国民のほとんどは、この問題の難しさや複雑さを理解していません。

However, most of the public, myself included, does not understand the difficulty and complexity of this issue.

私は、ほぞを噛み続けながらニュースを見るのが、辛いのです。

I have a hard time watching the news by biting my tongue.

ならば、いっそのこと『乱暴で安直で単純で低能』でもいいから、"ここ"から始めてみるのは、どうでしょうか?

Then, how about starting from "here," even if it is "wild, straightforward, simple, and low"?

2023,江端さんの忘備録

ChatGPTに、

I asked ChatGPT,

「『給食を残さず食べれなかった子は、早世している、または病弱である』という説を検証したデータ、論文、コラムはありますか」

"Are there any data, papers, or columns that verify the theory that 'children who fail to eat their school lunch without leaving any leftovers have an earlier or sicker life'?"

という質問をしてみました。

ChatGPTが出してきた答え(サマリ)は、

The answer (summary) that ChatGPT has come up with is,

『給食を残さず食べることが子供たちの健康に一般的に良い影響を与えていることを示していますが、給食を残すことと早世や病弱との直接的な関連については言及していません』

Some papers show that leaving school lunches unattended has a generally positive impact on children's health. However, do not mention a direct link between school lunches and early life or infirmity."

ということでした。

-----

―― では、あの、『居残りさせてまで、給食を食べさせる』という(教育という名の)拷問は、なぜ発生していたのか

"Then, why was the torture (in the name of education) of "making students eat school lunches until they were given detention" occurring?"

多分、これは、現場の教師が、「自分のクラスの生徒の完食」が『ノルマ』として与えられていたのではないかと推認します。

I surmise this was probably because the teachers on site were given a 'quota' of 'complete meals for the students in their class.'

で、その『ノルマ』を達成しないと、上司であるところの『校長』から叱責される。

And if they don't achieve their "quota," they are reprimanded by the "principal," who is their boss.

で、その『校長』は、『教育委員会』からクレームを付けられる。

And the 'principal' is complained by the 'school board'.

で、『教育委員会』は『(当時の)文部省』から指導をされる。

The "Board of Education" was instructed by the "Ministry of Education (at that time).

で、文部省は『子どもたちの健康に配慮している』という姿勢を、世間に示す必要があった、と。

So, the Ministry of Education needed to show the public that it was 'concerned about the children's health.

つまり『あの拷問の犯人』は、どこにもいない ―― ということです。

In other words, the "torturers" are nowhere to be found.

-----

I also asked the following question,

「40年以上も前、部活動の最中に『水を飲むとバテる』と言われて、真夏でさえ水を飲むことを禁止されていました。今は、これは完全なナンセンスとして否定されていますが、このような考え方が常識とされていたのは何故でしょうか?」

"More than 40 years ago, people were forbidden to drink water, even in the middle of summer, because they were told that 'drinking water would make you batty' during club activities. Now, this is dismissed as complete nonsense, but why was this way of thinking considered common sense?"

という質問もしてみました。

なかなか興味深い回答を得られました(長文なので割愛します)。

I got a rather interesting answer (it's a long story, so I'll spare you).

さらに、

Moreover, I asked,

「このような誤った考え方で、当時『熱中症』や『熱中死』に至った子どもがいた、というようなエビデンスはありませんか?」

"Is there any evidence that such erroneous thinking led to "heat stroke" or "heat death" in some children at that time?"

加えて、

In addition, I push ChatGPT to the following,

『「過去の熱中症や関連する健康問題についての一般的なデータは存在します」の出展を具体的に教えて下さい』

"Could you please be more specific about the exhibit "General data exists on past heat stroke and related health issues."

と畳み込んでみたところ、

この文献のフレーズを紹介して貰えました。

I was introduced to the phrases in this literature.

-----

最後に

Finally, I asked,

『この件に関して、指導的立場として、自己批判している人はいますか?』

'Is there anyone in a leadership position who is self-critical on this matter?'

と尋ねてみたのですが、

and I got the answer

「過去の慣習や指導方法について具体的に反省や自己批判を行っている指導者に関する情報は明らかになっていません」

"We have not been able to identify leaders specifically reflecting on or self-criticizing their past practices or teaching methods."

だそうです。

つまり、

That means,

「真夏に水も飲ませずに部活動を指導していた者(教師など)の中で、そのことに対して自己批判や謝罪をしている人間は一人もいない」

"Not a single person (teacher, etc.) who led club activities without giving them water to drink in the middle of summer has ever criticized themselves or apologized for doing so."

ということです。

-----

この件に関して、私が言えることは、

All I can say on the matter is,

「部活動の最中に、『うがい』と称して、水をたらふく飲んでいた私は、正しかった」

"I was right when I drank plenty of water during club activities, calling it 'gargling.'

ということくらいです。

他人のことなど、どうでも良い

未分類

Y: Latitude: Lat :経度:南北 35.3715607
X: Longitude:Lng,Log:経度:東西 139.6268272,

2023,江端さんの技術メモ

f:/しゅらばしゅう/有吉先生データ/Moove/2023-07/fit_track3.go
BusRouteの点で繋がれた線とみなして、trackingDataの各点から、その線からの最短距離を算出するようなプログラムの改造をお願いできますか?
はい、バス路線の各点を線とみなして、トラッキングデータの各点からその線までの最短距離を計算するプログラムの改造を行います。planar.DistanceFrom 関数を使用して、各トラッキングポイントからバス路線を形成する線への最短距離を計算できます。

 

package main

import (
	"fmt"

	"github.com/paulmach/orb"
	"github.com/paulmach/orb/planar"
)

// Point はデータ番号と緯度、経度を保持する構造体です
type Point struct {
	Number   int
	Lat, Lon float64
}

// トラッキングデータとバス路線データの変換
func convertToOrbPoint(p Point) orb.Point {
	return orb.Point{p.Lon, p.Lat}
}

func main() {
	// トラッキングデータ
	trackingData := []Point{
		{1, 139.6268272, 35.3715607},
		{2, 139.627135, 35.3719136},
		{3, 139.6274291, 35.3721591},
		{11, 139.6276967, 35.3724112},
		{101, 139.6276253, 35.372575},
		{59, 139.6274377, 35.3727348},
		{7, 139.6272077, 35.3728485},
		{99, 139.6263279, 35.3728985},
		{111, 139.6262229, 35.3728182},
		{131, 139.6260982, 35.3726421},
		{200, 139.6260349, 35.3724965},
		{32, 139.6257477, 35.3720127},
		{42, 139.6254685, 35.3705626},
		{44, 139.6254273, 35.3703156},
		{46, 139.62361383758, 35.36644117332},
	}

	// バス路線データ
	busRoute := []Point{
		{0, 139.6272077, 35.3728485},
		{0, 139.6263279, 35.3728985},
		{0, 139.6262229, 35.3728182},
		{0, 139.6260982, 35.3726421},
		{0, 139.6260349, 35.3724965},
		{0, 139.6257477, 35.3720127},
		{0, 139.6254685, 35.3705626},
		{0, 139.6254273, 35.3703156},
		{0, 139.62361383758, 35.36644117332},
		{0, 139.62386146588, 35.3665604971},
		{0, 139.62412597981, 35.36668746811},
		{0, 139.6245189, 35.3668106},
		{0, 139.6250347, 35.367043},
		{0, 139.62548981146, 35.36726113676},
	}

	// orbライブラリを使用して、トラッキングデータとバス路線データをorb.Pointのスライスに変換
	var trackingPoints []orb.Point
	var busRoutePoints []orb.Point
	for _, p := range trackingData {
		trackingPoints = append(trackingPoints, convertToOrbPoint(p))
	}
	for _, p := range busRoute {
		busRoutePoints = append(busRoutePoints, convertToOrbPoint(p))
	}

	// トラッキングポイントからバス路線上の最も近い点までの距離を計算し、データ番号とともに出力
	for _, trackPoint := range trackingData {
		distance := planar.DistanceFrom(orb.LineString(busRoutePoints), convertToOrbPoint(trackPoint))
		fmt.Printf("Tracking Point %d: Lat: %v, Lng: %v, Distance: %v meters\n", trackPoint.Number, trackPoint.Lat, trackPoint.Lon, distance)
	}
}

出力結果

Tracking Point 1: Lat: 139.6268272, Lng: 35.3715607, Distance: 0.001145488357906135 meters
Tracking Point 2: Lat: 139.627135, Lng: 35.3719136, Distance: 0.0009375188544507943 meters
Tracking Point 3: Lat: 139.6274291, Lng: 35.3721591, Distance: 0.0007240789459736531 meters
Tracking Point 11: Lat: 139.6276967, Lng: 35.3724112, Distance: 0.0006560124160327593 meters
Tracking Point 101: Lat: 139.6276253, Lng: 35.372575, Distance: 0.0004991913560911751 meters
Tracking Point 59: Lat: 139.6274377, Lng: 35.3727348, Distance: 0.000256569074508911 meters
Tracking Point 7: Lat: 139.6272077, Lng: 35.3728485, Distance: 0 meters
Tracking Point 99: Lat: 139.6263279, Lng: 35.3728985, Distance: 0 meters
Tracking Point 111: Lat: 139.6262229, Lng: 35.3728182, Distance: 0 meters
Tracking Point 131: Lat: 139.6260982, Lng: 35.3726421, Distance: 0 meters
Tracking Point 200: Lat: 139.6260349, Lng: 35.3724965, Distance: 0 meters
Tracking Point 32: Lat: 139.6257477, Lng: 35.3720127, Distance: 0 meters
Tracking Point 42: Lat: 139.6254685, Lng: 35.3705626, Distance: 0 meters
Tracking Point 44: Lat: 139.6254273, Lng: 35.3703156, Distance: 0 meters
Tracking Point 46: Lat: 139.62361383758, Lng: 35.36644117332, Distance: 0 meters

2023,江端さんの忘備録

『アニメは、それほど好きではない』という嫁さんに、満を持して、今クール、2作品紹介しました。

I introduced two works this season to my wife, who says, "I don't like anime that much.

今回は、上手く当ったようです。

This time, it seems to have hit the mark well.

「葬送のフリーレン」と、「薬屋のひとりごと」です。

There are "Souna Freilin" and "The Pharmacist's Monologue."

「薬屋のひとりごと」

-----

「薬屋のひとりごと」は、コミカライズ版を読んでいた時から、

I was sure about "The Pharmacist's Monologue" after reading the comic book version.

『間違いなくアニメ化されて、主人公の声優もあの人になるだろうな』

"It will undoubtedly be animated, and the voice actress for the main character will be that person."

と、思っていましたので、別段驚いてはいません。

Therefore, I was not surprised at all.

ただ、オープニングはちょっと驚いています。

However, I am a little surprised at the opening.

私は、オープニングは、「狼と香辛料」第1期のような、マイナー調でメロウな楽曲になると、勝手に思っていました。

I had assumed the opening would be a mellow song in a minor key, like the first season of "Wolf and Spice."

もちろん、このOPも良いのですが ―― とは言え、『どういう経緯で、このコンセプトのOPになったんだろうか?』と次女と共に首をかしげています。

Of course, this OP is good -- although, 'how did they come up with this concept?' I am scratching my head together with my second daughter.

-----

私:「今シーズンで、『猫猫(主人公)の父親(7巻)』の話まで持っていけるかな?」

Me: "Do you think they can get to the story of 'MaoMao's (main character's) father (volume 7)' this season?"

次女:「無理だと思う」

Second daughter: "I don't think they can."

今、ちょっと進捗を調べてみたのですが、コミックの2巻の中ほどですので、多分、『蜂蜜(3巻)』あたりで、第一クールは終了でしょう。

I just checked the progress, and it is about the middle of the second volume of the comic, so the first season will probably end around "Honey (Volume 3)".

ちなみに、7巻は「泣けます」し、そんでもって「笑えます」。

Incidentally, Volume 7 "makes you cry," and then "makes you laugh.

(上記の出展の巻数は、サンデーGXコミックス版です)

(The volume numbers in the exhibit above are the Sunday GX Comics edition.)

-----

「葬送のフリーレン」は、原作も読んでいたのですが、正直、私は『そんなに凄い作品かな(*)』と思っていました。

I had read the original story of "Souna Freilin," and honestly, I thought, 'Is it that great a piece of work(*)?

(*)第14回マンガ大賞、第25回手塚治虫文化賞新生賞受賞作

(*) Winner of the 14th Manga Grand Prize and the 25th Tezuka Osamu Cultural Prize Shinsei Award.

しかしアニメを視聴して、『これは凄い』と驚いています。

But after watching the animation, I was amazed, saying, 'This is great.

-----

ところで、私は、どんなコンテンツであっても、様々なメディア展開を否定する人間ではありません。

By the way, I cannot deny the development of any content in various media.

そもそも、私にはその権利がありません。

In the first place, I have no right to do so.

権利があるのは、著作複製権(著作権第21条)、著作翻案権(第27条)、二次的著作物の利用に関する原著作者の権利(第28条)、その他(21条~28条の全て)を持っている、原作者とその関係者だけです。

Only the original author and their related parties have the right to reproduce the work (Article 21), the right of adaptation (Article 27), the original author's right to use derivative works (Article 28), and others (all of Articles 21 to 28).

―― 油断していると、簡単に「原理主義者」になってしまうぞ

こちらで、記載している、『まあ「イスラム原理主義者」だけでなく、「アニメの実写化を狂ったように反対する若者」も、私にとっては「原理主義者」です』の立場です。

My policy is like the stated, 'Well, not only "Islamic fundamentalists" but also "young people who are madly opposed to live-action anime" are "fundamentalists."

しかし、『「葬送のフリーレン」の実写化』というのは ―― もうすでに話は上がっているかもしれませんが、かなり難しそうな気がします。

However, the live-action adaptation of "Souna Freilin" -- I think it may have already been discussed, but I think it would be tough.

ただ、実写化には、成功事例もあります。

However, there are some success stories in the live-action adaptation.

―― 『変異株』とは、COVID-19世界における『実写版 るろうに剣心』である

まずは、やってみないことには、分かりません。

"Having to try first to find out."

2023,江端さんの技術メモ

SELECT * FROM records WHERE start_at = '2023-03-20 05:03:00'; start_atの時間順に表示するSQLを教えて下さい。
SELECT * FROM records ORDER BY start_at ASC;

降順(新しいものから古いものへ)に並べ替えたい場合は、ASCDESC に変更します:
SELECT * FROM records ORDER BY start_at DESC;

select user_id, start_at, end_at from records order by start_at ASC where user_id = 7; のSQLは何が間違っていますか?
SELECT user_id, start_at, end_at FROM records WHERE user_id = 7 ORDER BY start_at ASC;

moove=# select place from records where id = 2; place ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- [{"lat": 34.7325, "lng": 135.4986}, {"lat": 34.7326, "lng": 135.4989}, {"lat": 34.7326, "lng": 135.4989}, {"lat": 34.7327, "lng": 135.4995}, {"lat": 34.7327, "lng": 135.5}, {"lat": 34.7328, "lng": 135.5002}, {"lat": 34.733, "lng": 135.5006}, {"lat": 34.7331, "lng": 135.501}, {"lat": 34.7334, "lng": 135.5015}, {"lat": 34.7336, "lng": 135.5018}, {"lat": 34.7336, "lng": 135.5018}, {"lat": 34.7336, "lng": 135.5019}, {"lat": 34.7337, "lng": 135.5021}, {"lat": 34.734, "lng": 135.5024}, {"lat": 34.7343, "lng": 135.5026}, {"lat": 34.7346, "lng": 135.5024}, {"lat": 34.7347, "lng": 135.5024}, {"lat": 34.7346, "lng": 135.5024}, {"lat": 34.7345, "lng": 135.5025}, {"lat": 34.7343, "lng": 135.5027}, {"lat": 34.7343, "lng": 135.5029}, {"lat": 34.7342, "lng": 135.5031}, {"lat": 34.7344, "lng": 135.5035}, {"lat": 34.7344, "lng": 135.5035}, {"lat": 34.7344, "lng": 135.5035}] (1 row) で登場する、最初の{"lat": 34.7325, "lng": 135.4986}と、最後の {"lat": 34.7344, "lng": 135.5035}だけを取り出すSQL文を書いて下さい
WITH places AS (
SELECT jsonb_array_elements(place) AS place_elements
FROM records
WHERE id = 2
)
SELECT
(SELECT place_elements FROM places LIMIT 1) AS first_place,
(SELECT place_elements FROM places ORDER BY jsonb_array_length(place) DESC LIMIT 1) AS last_place
FROM records
WHERE id = 2;

select user_id from records; で出てくる異なるuser_id(整数)をピックアップするSQL文を教えて下さい
SELECT DISTINCT user_id FROM records;

ありがとうございます。では、これを降順に並べる方法も教えてください
SELECT DISTINCT user_id FROM records ORDER BY user_id DESC;
昇順ならどうなりますか
SELECT DISTINCT user_id FROM records ORDER BY user_id ASC;