2023,江端さんの忘備録

以前、家族に、

Earlier, to a family member, I said that

「『北朝鮮に学ぶ弱者戦略』というシリーズを構想している」

"I have an idea for a series called 'How to learn Weaker's Strategies from North Korea.'"

と言ったら、かなり真剣に止められたことがあります。

However, I was stopped quite seriously by them.

まあ、仕方ないですよね。

Well, it can't be helped.

でも、<<北>>のやり方には学ぶことは多いと思います(しつこい)。

But I think we have a lot to learn from the way <<North>> does things.

-----

多分、でも、こっちのシリーズなら大丈夫かと思います。

Maybe, but I think the following series would be accepted.

『ChatGPTに学ぶ、"真摯な私"の演じ方』

『ChatGPTは、もの凄く真摯な言葉で、嘘をつく』

ChatGPT's lesson on playing the "sincere me."

このコラムの続編として。

As a sequel to this column.

-----

しかし、目下の重大な懸案は、体を壊さない範囲でのコラムを執筆する時間の捻出方法です。

However, a serious concern is finding the time to write columns while maintaining good health.

2023,江端さんの忘備録

私はプログラムやシステムが上手く動くと、簡単に喜びます。

I am easily pleased when my program or system works well.

そんでブログに書いたり、人に言ったりしてしまいます ―― 嬉しそうに。

Then I blog about it and tell people about it -- happily.

-----

でも、同僚を見ていると、そういう感情を見せることなく、淡々と業務として報告をする人もいます。

But when I look at my colleagues, I see that some do not show such emotions but report casually as part of their duties.

―― 大人だなぁ

-- They're an adult.

と感心します。

I admire them.

大人の社会人たるもの、プログラムやシステムごときで、一喜一憂するものではないのかもしれません。

As an adult members of society, we should not be happy or sad about a program or a system.

そういう落ち着いた感じの人を見ていると、

When I see people who are calm like that, I think

―― 単に、私が幼稚なんだな

--, I must be childish.

と思います。

-----

私、自分の豪邸や高価な自動車や宝飾品やブランド品を、テレビ番組などで開示する人の心理が、良く分かりません。

I don't understand the psychology of people who disclose their mansions, expensive cars, jewelry, and brand-name goods on TV programs.

第1に、持たざる者である私が見ても、そんな番組楽しい訳がない ―― むしろ嫉妬の対象になりえる。

First, from my point of view as a have-not, there is no way I would enjoy such a program -- in fact, I would be jealous of it.

第2に、そもそも開示することにメリットがない ―― むしろ犯罪に巻き込まれるリスクを高めるだけである。

Second, there is no benefit to disclosing it in the first place -- in fact, it only increases the risk of being involved in a crime.

うん、多分間違っていない、と思う。

Yes, maybe this logic is not wrong, I think.

-----

しかし、私の『プログラムやシステムが上手く動くと、喜びます』の行動原理と、上記の行動には、何か似たようなところがあるような気がします。

However, there is some similarity between my 'I'm happy when a program or system works well' principle of behavior and the above behavior.

それはどういうことかと言えば、

What does that mean? That meas,

『嬉しいことは、ちゃんと記録に残さないと、簡単に忘れてしまう』

"If we don't record what makes us happy, it's easy to forget."

ということです。

心理学を学ぶまでもなく、悲しい記憶は何年でも続きますが、嬉しい記憶は下手すると1時間足らずで消滅してしまいます。

Without studying psychology, sad memories can last for years, but happy memories can disappear in less than an hour if they are bad.

まあ、簡単な例は『入試の合否』ですね。合格した喜びはその日で消えることがあります。しかし、不合格の悲しみは、それと比較して、2桁から3桁の倍数くらいは継続します。

A simple example is "passing or failing an entrance exam." The joy of a pass disappears within the day. In comparison, however, the sadness of a rejection lasts about two or three orders of magnitude longer.

―― ポジティブな感情は、超揮発性

-- Positive emotions are hyper-volatile

は、間違いないです。

is no doubt.

私は、嬉しい記憶を忘れない内に残して、それを後で見直すことで、日々を生き延びるという ―― 非常にちっちゃい生き方をしている訳です。

I am a person who survives each day by keeping happy memories before I forget them and revisiting them later -- as a narrow-minded person.

-----

自分の豪邸や高価な自動車や宝飾品やブランド品は、私が思うに『嬉しさを継続させるものではない』のだと思います。

I think mansions, expensive cars, jewelry, and brand-name goods are not what 'keeps the joy going.'

ポジティブな感情は、差分方程式で表現される、というのは、よく知られているは話です。

It is a well-known fact that "difference equations express positive emotions.

揮発性のポジティブな感情を再認識する為には、『他人に自慢する』『他人から羨しいと思って貰う』という手段が、てっとり早いのだろう、と思います。

The quickest way to reaffirm volatile positive emotions is to "brag to others" and "have others envy you.

嫉妬や犯罪リスクを犯してまで、個人情報を開示するのは、嬉しさを維持するための、ちっちゃい生き方の一つのメソッドなのだと思います ―― 私と同様に。

I think disclosing personal information, even at the risk of jealousy and criminal threat, is one method of a narrow-minded life to maintain a sense of joy -- just like me.

―― 江端さんの「貧困な人脈」で、見えなくなっているだけじゃないですか?

2023,江端さんの技術メモ

BFS-U3-89S6C-C(カメラ)を先ず動かす。

私が購入したときは、15K円くらいだったのですが、今、倍になっています。ラズパイって高価になっているんですね ―― それはさておき。

Raspberry Pi 4Bは、USB3対応のようですが、どちらのポートか分かりません。この写真を見ると右側のようです。

(出典 https://misoji-engineer.com/archives/raspberrypi-usb3.html)

まずは、ドライバのありかを探してみました。

https://www.flir.jp/support-center/iis/machine-vision/downloads/spinnaker-sdk-download/spinnaker-sdk--download-files/

あきらかに、これが当たりのように見えます。

ラズパイP4の石は、ARMのようです。

https://qiita.com/memakura/items/a77137856f91d6c4db43

何がどうなっているのかは分からないけど、

https://blog.csdn.net/weixin_42088912/article/details/118225949

を参考にして、/etc/udev/rule.d/40-flir-spinnaker.rules の

SUBSYSTEM=="usb", ATTRS{idVendor}=="1e10", GROUP="flirimaging"
SUBSYSTEM=="usb", ATTRS{idVendor}=="1724", GROUP="flirimaging"
SUBSYSTEM=="usb", ATTRS{idVendor}=="1e10", GROUP="flirimaging"
SUBSYSTEM=="usb", ATTRS{idVendor}=="1724", GROUP="flirimaging"

SUBSYSTEM=="usb", ATTRS{idVendor}=="1e10",ATTRS{idProduct}=="4000", MODE="0777", GROUP="flirimaging"
SUBSYSTEM=="usb", ATTRS{idVendor}=="1724", GROUP="flirimaging"

としたら、やっと"USB interface0"が出てきた

けど、映像が表示されないし、「SpinView_QTの応答がありません」、とか言われる。

sudo dmesg をやると

[ 533.947639] usb 2-1: Product: Blackfly S BFS-U3-89S6C
[ 533.947652] usb 2-1: Manufacturer: FLIR
[ 533.947663] usb 2-1: SerialNumber: 0126934F
[ 600.668167] usb 2-1: reset SuperSpeed USB device number 4 using xhci_hcd
[ 709.333799] xhci_hcd 0000:01:00.0: swiotlb buffer is full (sz: 16384 bytes), total 32768 (slots), used 32687 (slots)

のようなメッセージがでてくので、

https://zenn.dev/yonishi/scraps/e735a6ef11d8b5

を参考に対応。 改善なし。

https://wpitchoune.net/tricks/raspberry_pi3_increase_swap_size.html

の対応を実施

表示に成功! 詳しくは明日 ―― つかれはてました。

 

2023,江端さんの技術メモ

  1.  ターゲットのカメラ BFS-U3-89S6C-C
  2. 背景と目的
    『動かすこと』が仕事だからです(それ以上は秘密です)。
  3. 注意
    たまたま、以下の手順で動いただけで、これが正解かは分かりません。
  4. 手順
    1. USB3のセット
      デバイスマネージャーを起動する

      ドロップダウンリストを確認し、USB Root Hub (USB 3.0)を右クリック(またはタップ&ホールド)し、[Uninstall Device(デバイスのアンインストール)]を選択します(重複している場合は、1つずつすべてアンインストールしてください)。
      必要であれば動作を確認し、デバイスを再起動します。再起動すると、Windows 10が自動的にUSBドライバを再インストールするはずです(私は、リブートしました)。

    2. TELEDYNE FLIR のページにアクセス
      https://www.flir.jp/support/products/blackfly-s-usb3/#Overview あたりを叩くと、多分「アカウント作れ」と言われると思いますので、素直にアカウントを作ってログインします。
    3. そんでもって、https://statics.teams.cdn.office.net/evergreen-assets/safelinks/1/atp-safelinks.html から、

      をダウンロードして、インストールします。
      (理由はよく分かりませんが)ダウンロードした後にデバイスドライバを確認すると、デバイスがインストールされていました。

    4. SpinViewの起動
      メニューに、SpinViewが追加されているので、そこからアプリケーションを起動します。

      ここをクリックします。

      画面が出てくるので、以下のボタンを押して下さい。

      キャリブレーションに時間がかかるようですが、こんな感じの映像が出てきました

以上

 

2023,江端さんの忘備録

私、飲み会が苦手なのですが、先日、ようやくその理由が分かりました。

I wouldn't say I like drinking parties, and I finally found out why the other day.

―― 沈黙しなければならないから。

-- because I have to be silent.

ネタがない訳ではありません。それどころか、『私の人生にネタがない』という瞬間はなかったと思います。

It's not that I don't have a topic. On the contrary, I don't think there was ever a moment when I said, 'I don't have a topic.

ただ、『万人受けするネタとは限らない』という点がミソですが。

However, the key point is that 'not all topics are accepted by everyone.

(「イスラム」「タリバン」「パレスチナ」とか、その辺をイメージしてください)

("Islam," "Taliban," "Palestine," or something like that.)

ただ、ここで問題となるのは、『今や、上司も部下も、年下である』ということなのです。

However, the problem here is that both the boss and the subordinate are now younger than me.

『彼らが私に気を使う空気』が辛いんです。

I have a hard time with 'the air of care they have for me.

-----

今さら言うまでもないのですが、私、徹底したミーイズム主義者です。

I don't need to tell you now but I am a thorough me-ism.

この世界は、私が生きていくための手段であって、それ以上ではありません。

This world is a means for me to live, nothing more.

会社や組織は、「道具」と思っています。

I believe that companies and organizations are "tools."

『会社に対する貢献? なにそれ美味しいの?』を、そのまま貫き続けたと断言できます。

"Contribution to the company? What's that good for?" I can say with certainty that I have continued to follow the same line of thinking.

私が『自分でも凄いな』と思うのは、私は、ついにこの年に至るまで、私の「ミーイズム」が1mmも揺るがなかったことです。

What I think is 'amazing to me' is that my 'me-isms' did not waver one millimeter until I finally reached this age.

-----

しかし、ここに問題が発生します。

But here is where the problem arises.

例えば、私が、飲み会で『仕事なんぞ、生きていく手段の一つに過ぎず、そこに意義を求めるなんざ、アホくさい』などという発言をしたとしますよね。

For example, suppose I said something like, "Work is just a way of life, and it's stupid to seek meaning in it," at a drinking party.

さて、こうなると、年下の上司は、当然に困ります ―― 彼らは、上司として、(それを信じているかどうかはさておき)その真逆のことを、部下に言わなけらばならない立場にあります。

Now, when this happens, the younger bosses are naturally in trouble -- because they, as bosses, have to tell their subordinates (if they believe it or not) the exact opposite of that.

年下の部下は、もっと困ります ―― 彼らは、上司にも忖度しなければならず、同時に、江端を無視することもできないからです。

Younger subordinates are more troubled -- because they have to look out for their superiors and, simultaneously, cannot ignore Ebata.

では、このような場における、全体最適解は何か?

So, what is the overall optimal solution in such a situation?

―― 江端が沈黙を続けること

-- Ebata's continued silence

どう考えても、これ以外の解がありません。

In all likelihood, there is no other solution.

私の頭の中には、山のようなネタや小話、江端ポリシーも満載なのですが、これを黙り続けるのは ―― 冗談抜きで、本当に苦しいのです。

I have a mountain of stories and little tidbits in my head, as well as an Ebata policy, but to keep quiet about this -- no joke, it's excruciating for me.

ここに、『飲み会 = 苦行』のフレームワークが完成する訳です。

This is where the "drinking party = suffering" framework is completed.

-----

飲み会において、私は全ての人間に忖度され、全ての人間に忖度しなればならない。

At drinking parties, I have to be attentive to all people, and all people have to be careful of me.

しかも、今、私は断酒を継続中なので、『酒に飲まれて思わぬことを言い出す』という失態を犯すチャンスもありません。

Moreover, I am now in ongoing sobriety, so there is no chance for me to say something unexpected when I am sober.

加えて、覚めた頭で、酔っ払いの主張を聞かされることも、苦痛です。

In addition, being forced to listen to the claims of a drunken person with a waking head is also painful.

これまでの飲み会で私がやってきた『不幸自慢』を、別の他人がやっているのを見ていると、昔の自分の醜態を思い出して、転げ回りたくなるほど恥しいです。

When I see another stranger doing the 'misery boasting' I have done in previous drinking sessions, I am so embarrassed that I want to roll over, remembering the horror of my old life.

-----

以前、若いエンジニアに聞いてみたことがあります。

I once asked a young engineer.

江端:「君達、私が『これはこういうことだよね』と言われて、真っ向から、『江端さん、それは違います』って言える?」

Ebata: "Can you guys say, 'Ebata-san, that's not true,' when I say, 'This is what I'm talking about'?"

若手:「絶対に言えません。仮に同意できなくても『はあ、そうなんですね』という風に流すと思います」

Younger: "I can never say that. Even if I disagreed with you, I would just let it slide and say, 'Oh, I see.'

つまり ―― そういうことです。

In other words -- that's how it is.

飲み会における、最も優れた上司の振舞いは『しゃべらず、だまって、金だけ出す』です。

 

2023,江端さんの忘備録

『男性は、女性にとって、ゴキブリとハイエナを足して二で割ったようなものに見えていると思っておくくらいが丁度いい』

昨日の日記書いていて気がついたことがありました。

I noticed something when I was writing my diary yesterday.

私が、ソロツーリング、ソロキャンプをしていた時には、声をかけてきた奴に、露骨に嫌な顔をして対応していました

When I was solo touring and solo camping, I used to respond to guys who approached me with a blatantly disgusted look.

『テント作りを手伝う』などと申し出るキャンパーに対しては、

For campers who offer to "help make tents,"

―― 私のテント設営を楽しみを邪魔するな、ボケ!

"Don't interrupt my enjoyment of setting up my tent!"

と、心の中で罵倒していました。

I was cursing in my mind.

-----

私にとって『一人旅』とは、できるだけ誰にも関わることなく、一人で旅をすることです。

For me, "traveling alone" means traveling alone without getting involved with anyone as much as possible.

ですから、コミュニケーションは、必要最小限に留めてきました。

Therefore, communication has been kept to a minimum.

ソロスキーもそんな感じでした。

Solo skiing was like that.

■江端さんのひとりごと「戒厳令の夜」

-----

もしかしたら、私のような考え方を理解できない人もいるかもしれません。

Perhaps some people may not understand my way of thinking.

しかし『ソロキャンプ』とは、そういう人間にとっては、本当に大切な時間と場所なのです。

But 'solo camping' is a really important time and place for such people.

だから、ソロキャンプ中の女性キャンパーにナンパするような低能な男に対しては

So, I am 100% confident in saying to any lowlife who picks on a female camper while solo camping,

「死ね」

"Go to hell!"

と言い切れます。100%の自信もって。

2023,江端さんの忘備録

女性キャンパーがソロキャンプ中に男性から悪質なナンパを受けるという被害を受けました。

A female camper was victimized by a man who maliciously picked on her while camping solo.

この事件に関して、日本単独野営協会(男性)が、男性キャンパーに向けて、

The Japan Solo Encampment Association (male) addressed male campers regarding this incident,

『男性は、女性にとって、ゴキブリとハイエナを足して二で割ったようなものに見えていると思っておくくらいが丁度いい』

It's just as well to think that men are to women like a combination of a cockroach and a hyena divided by two.

というコメントをされています。

私は「その通り!」と、共感の声を上げました。

I said, "Exactly!" I said sympathetically.

-----

夜中の12時頃に、近くの信号交差点付近でフラフラしていた小学生の女の子を見つけた時、嫁さんを呼びに自宅に戻ったことがあります。

I returned home to call my wife when I found an elementary school girl dawdling near a nearby traffic light intersection around midnight.

女の子へのメンタルはもちろん、社会的にも、私は、自分が『ゴキブリとハイエナを足して二で割ったようなもの』という自覚があります。

Regarding my mentality towards girls and socially, I know I am 'like a cockroach and a hyena added together and divided by two.'

『直ぐに保護できない』というのはもどかしいですが、生命に関わる緊急自体でない限り、『男性は、女性にとって、ゴキブリとハイエナを足して二で割ったようなもの』の適用は、正しいのです。

It is frustrating that "immediate protection is not possible." Still, unless there is a life-threatening emergency, "' men are like a cockroach, and a hyena added together and divided by two is a good rule.

-----

バイクにのって一人旅のソロキャンプをしていた時、となりにテントを張ってきた人物に、恐怖を感じたくらいです。

While solo camping on my motorcycle, I was terrified of the person who pitched his tent next to me.

一番近い民家まで、数キロメートルという場所での野営で、しかも、テントは私のも含めて2つしかありませんでした。

We were camped a few kilometers from the nearest house, and there were only two tents, including mine.

となりのテントの人間が、殺意をもって私に襲いかかってきたら、絶対に助かりません。

If the person in the tent next to me attacked me, intending to kill me, I would never survive.

-----

ただ、この時に私、隣のテントに落ちていた本を見て、ちょっと安心したのを覚えています。

However, at this point, I was relieved to see a book that had fallen into the tent next to mine.

確か、夏目漱石の文庫だったと思います。

I believe it was Natsume Soseki's library.

もちろん、文豪の本を読んでいる殺人犯もいるでしょうが ―― そんなささいなことでも、少し安心できることに、自分でも驚いたのを覚えています。

Of course, some murderers read books by literary greats -- however, I was surprised to find myself a little relieved by such a trifle.

もし、あれが漱石ではなく、スポーツ新聞とか、大衆芸能誌などでしたら、一睡もできなかったと思います。

If it had been a sports newspaper or a popular entertainment magazine instead of Soseki, I would not have slept a wink.

-----

江端さんのひとりごと「江端さんのみちのく一人旅」

2023,江端さんの忘備録

ChatGPTが、困った時にプログラムのサンプルを提示してくれます。

ChatGPT will present me with sample programs when I need help.

これには大変助けられています。

This has helped me tremendously.

が、困ったこともあります。

But there are also some troubling times.

『ChatGPTは、もの凄く真摯な言葉で、嘘をつく』です。

"ChatGPT lies with great sincerity."

これについては、すでに、こちらで散々述べましたし、私は『ChatGPTが悪い』とも思っていません。

I have discussed this extensively here, and I don't think 'ChatGPT is bad.'

まあ、逆にChatGPTの内容が信用できない、ということを、定期的に確認している、という安心感すらあります。

On the contrary, I can confirm the contents of ChatGPT are not trustworthy, and I feel they relied on that.

-----

昨日の質問は、こんな感じでした。

The following is yesterday's question.

こんな風に説明されれば、このコード動くと思いますよね。

If I were explained like this, I would think this code would work.

でも、動かないんですよ。

But it doesn't work.

それどころか、このコードは、存在しないライブラリを勝手に追加していますし、おまけに他の言語(Python)の仕様を、それらしく勝手に組み込んでいました。

On the contrary, this code added libraries that did not exist and even incorporated the specifications of another language (Python) freely.

"それ"に気がつくのに、3時間かかりました。

It took me three hours to realize "it."

その結果、私はPythonでのトライアルを実施するはめになりました。

As a result, I had to conduct a trial in Python.

【Pythonで行う】因子分析

-----

しかし、まあ、ここまで、すがすがしく嘘を書かれると、むしろ気持ちがいいくらいです。

But, well, it is rather pleasant to see a lie written so refreshingly.

それに、Go言語やPython言語の統計手法についても調べることになり、さらに勉強することになりました。

Besides, I had to look into the statistical methods of the Go and Python languages, and I learned a lot.

結果オーライとも言えます。

It can be said that the result is all right.

-----

結論としては、『AI技術は、つきあってみて、上手く利用すること』という、私の主張は、そのままです。

In conclusion, my assertion that 'AI technology should be tried and used well' remains intact.

2023,江端さんの忘備録

昨日の日記を踏まえて、ChatGPTに以下をお願いしてみました。

『この程度の政治ビラなら、ChatGPTで、1分で作れる』が、正直な私の感想です。

Based on yesterday's diary, I asked ChatGPT to do the following

■共産党の選挙用のビラを作って

- Make election leaflets for the Communist Party.

■共産党の選挙用のビラの文言を作成して

- Create the wording for the Communist Party's election leaflets.

■共産党の選挙用の政権批判を記載したビラの文言を作成して

- Create the wording of leaflets containing criticism of the administration for the Communist Party's elections.

■共産党が政権与党を非難するビラの文章を考えて

- Consider the text of a leaflet in which the Communist Party condemns the ruling party.

■政権批判のビラの文言を作成して

- Create the wording for leaflets criticizing the administration.

■LGBT関連法案の問題点とは

- What are the problems with LGBT-related legislation?

-----

これらに目を通した、私の感想は、以下の通りです。

Having read through these, here are my impressions

『街頭演説のビラの方が、はるかにマシ』

"The leaflet from a street speech would be much better."

-----

『もっと、エッジの効いた文言を作れんのかなあ』と思っていました。

I thought, 'I wonder if it can make a more edgy statement.'

"RLHF"のブレーキが強すぎるのかな、とか考えていました。

I thought the brakes on "RLHF" were too strong.

2023,江端さんの技術メモ

【Pythonで行う】因子分析

wsl -d Ubuntu-20.04 で、

ebata@DESKTOP-P6KREM0:/mnt/c/Users/ebata/go-efa$ python main3.py

で実行可能。

ebata@DESKTOP-P6KREM0:/mnt/c/Users/ebata/go-efa$ python main3.py
[3.61634475 2.11925085 0.87875762 0.5678116 0.37337846 0.08163572
0.15971804 0.20310295]
第1因子 第2因子 共通性
x1 -0.196394 0.917136 0.879709
x2 0.859422 0.067413 0.743150
x3 0.829155 -0.161144 0.713466
x4 -0.017808 0.558695 0.312457
x5 0.984061 -0.063608 0.972421
x6 0.180765 0.850078 0.755308
x7 0.680743 -0.064480 0.467569
x8 0.532039 0.221023 0.331916
第1因子 第2因子
因子負荷量の二乗和 3.212520 1.963477
寄与率 0.401565 0.245435
累積寄与率 0.401565 0.647000