2023,江端さんの忘備録

私は、高度経済成長期の日本(の後半)と、その後の凋落を観測し続けてきました。

I have continued to observe Japan (in the second half of its high economic growth period) and its subsequent decline.

特に、オイルショック(1973年)あたりの物価の高騰については、子どもながら『何かとんでもないことが起こっているんだ』と実感したものです。

In particular, the sharp rise in prices around the oil crisis (1973) made me realize, even as a child, that something terrible was happening.

 

 

それでも、『なんとなく、そのように感覚していた』というレベルを越えません。

Still, it does not go beyond the level of 'somehow I had a sense of it that way.

-----

今、私は、物価高を『実感』として感じています。

I am now 'really feeling' the high prices.

- トーストのパンが小さい

- Toast bread is small.

- ほうれんそうの値段の乱高下が激しい

- The price of spinach is wildly fluctuating.

- 長ネギ、玉ネギが手に入らないことが多い

- Onions and leeks are often unavailable

- 最近、『鶏モモ』ではなく『ささみ』ばかりを食べている

- Lately, I have been eating only "white meat" instead of "chicken thighs".

-----

という訳で、私、新しいダイエットを提唱してみたいと思います。

Therefore I would like to advocate a new diet.

―― インフレダイエット

"Inflation diet"

世界経済と連動する"ダイエット"としては、多分、世界初ではないかと自負しています。

I am proud to say that this is probably the first "diet" in the world that is linked to the global economy.

さあ、反論のある奴は、かかってこい。

 

2023,江端さんの忘備録

私たちは、多様性を認めなければならない世界に生きていますが、多様性を個人が理解するというのは難しく、社会が認めるのはさらに難しいです。

We live in a world that must recognize diversity, but it is difficult for individuals to understand diversity, and even more difficult for society to recognize it.

マイノリティーの人々は、世間の無理解に対する根気強い、長期間(四半世紀から100年オーダ)の闘いが必要となります。

Minorities will need a persistent, long-term (quarter century to century order) struggle against public incomprehension.

しかし、個人が(×社会が)多様性を認める手っ取り早い方法があります。

However, there is a quick way for individuals (x society) to recognize diversity.

マイノリティの当事者になることです。

It is to be a minority party.

-----

仕事の出張帰りの新幹線の中、3席シートの通路側に座っていた時のことです。

I was sitting on the aisle side of a three-seat seat on the Shinkansen bullet train on my way home from a business trip.

窓際の席に座っている、私と同程度の年齢のごっつい風体の男性が、数枚のスナップ写真を熱心に見ていました。

A burly-looking man about my age, seated by the window, was looking intently at several snapshots.

私がトイレに立ったとき、たまたま、その写真が目に入りました。

When I stood up to use the restroom, I happened to see that picture.

それは、その男性とアイドルコスチュームで装ったティーン風の女の子が、笑顔で一緒に写っている写真でした。

It was a picture of the man and a teen-like girl dressed in an idol costume, smiling together.

女の子がアイドルコスチュームさえ着ていなければ、明らかに親子、という感じの写真でした。

If only the girls weren't wearing idol costumes, they were clearly parent and child.

『新幹線に乗って、アイドルを追っかけるおっさん』というのは、もはや珍しい存在ではありません ―― アニメとか小説の中では。

The "old man on a bullet train, chasing after idols" is no longer an uncommon existence -- in anime and novels in my mind.

しかし、現実に生身の人間を見ると、ちょっとビックリというかビビってしまう ―― これは、私の人間としての器の小ささと言えましょう。

However, when I see a live person in real life, I am a bit surprised or scared -- this is my small human capacity, I guess you could say.

アイドルとのツーショットのスナップ写真を眺める中年から初老の男性を、一月に1回見るくらいの頻度があれば、私も「引く」ことはなくなると思うのですが。

If I could see a middle-aged to early-aged man looking at snapshots of himself with his idols once a month, I would not "put off" as often.

しかし、それには、これからも長い時間が必要になるだろう、と思いました。

But it will take a long time from now, I thought.

-----

で、思ったんですよ。

And I thought that,

この多様性を理解するためには、私自身が『アイドルの追っかけ』に参入しなければならない、と。

In order to understand this diversity, I have to enter the "idol chase" myself.

というわけで、一応、人生のToDoリストには入れているのですが、現時点では、そのリストの最下位くらいです。

So, in a nutshell, I have it on my to-do list for life, but at this point, it is about at the bottom of that list.

『"紅天女"なんぞに、どれだけのコストと時間をかけているんだ?』と

2023,江端さんの技術メモ

package main

import (
	"fmt"
)

// (1)
var m = make(map[int]int)  // (2)をコメントアウトするならこっちを使う

func main() {

	// (2)
	//m := map[int]int{} // (1)をコメントアウトするならこっちを使う

	m[3124] = 9
	m[1992] = 2
	m[2020] = 3

	// キーのみ取り出す
	for key := range m {
		fmt.Println(key)
	}

	//3124
	//1992
	//2020

	fmt.Println()

	// キーと値
	for key, value := range m {
		fmt.Println(key, value)
	}
	fmt.Println()

	//1992 2
	//2020 3
	//3124 9

	// 値のみ必要な場合
	for _, value := range m {
		fmt.Println(value)
	}

	//9
	//2
	//3

	fmt.Println()

	// ループの回数を数える
	i := 0
	for key, value := range m {
		fmt.Println(key, value)
		i++
	}

	//3124 9
	//1992 2
	//2020 3

	fmt.Println()
	fmt.Println("delete(m, 1992)")
	delete(m, 1992)
	for key, value := range m {
		fmt.Println(key, value)
	}

	//delete(m, 1992)
	//2020 3
	//3124 9


	fmt.Println()
	fmt.Println("add as m[2999] = 2")
	m[2999] = 2
	for key, value := range m {
		fmt.Println(key, value)
	}

	//add as m[2999] = 2
	//3124 9
	//2999 2
	//2020 3

	_, ok := m[100]
	if ok {
		fmt.Println("OK")
	} else {
		fmt.Println("NG")
	}

	// NG

	_, ok = m[2999]
	if ok {
		fmt.Println("OK")
	} else {
		fmt.Println("NG")
	}

	// OK

	fmt.Println(m)
	// map[2020:3 2999:2 3124:9]

	m[2020]++

	fmt.Println(m)
	// map[2020:4 2999:2 3124:9]



}

2023,江端さんの技術メモ

問題

現在、192.168.0.23/postgresにアクセスを確認

で、A5:SQL Mk-2は接続成功している様子

だが、publicの下の「テーブル」「ビュー」などを叩いても何も出てこない。

念のためpgAdAdmin4 で試してみたが、こちらも問題なし

解決(T研究所のKさんに教えて貰いました)

『データベースを登録する際に、データベース名に「agent_db」 を指定していただく必要があります』

 

参考文献

https://izit-infobox.net/blog/2021/07/15/a5sql-mk-2/

2023,江端さんの技術メモ

研究室の学生さんたちに負荷テストに協力してもらっています。

今、"cannot parse invalid wire-format data" のエラーでGTFS_HUBのダウンを確認しました。

PrumeMobileの方は、そのままにして、GTFS_HUBの再起動をかけました。

(以下、後日対応)

2023,江端さんの忘備録

最近、この問題でずっと困っていました。

Recently, I have been in trouble about this problem.

repeated read on failed websocket connection (一応解決)

金曜日の日深夜(正確には土曜日の未明)に『これで動くはず』というコードを仕込んで、動くことを祈りながら、床につきました。

Last Friday midnight(early Saturday morning to be precise), I completed the code that "should be worked" I expected and went to bed.

あの時点で、プログラムを走らせたら、そのデバッグに取り組み始めて、完全に徹夜作業になって、結果として、体調を崩すという確信があったからです。

If I would try to execute the program, I should have started debugging for all night, and I confirmed that I was convinced that I would get sick.

ですから、土曜日の朝、2箇所程度の修正で動いた時は、本当に嬉しかった。

Therefore, I was very happy that I confirmed the program worked well with just two modifications.

このプログラムを、AWS(正確には、廉価版AWSであるAmazon Lightsail)にアップして稼動実験を続けていました。

I uploaded this program to AWS (correctly, Amazon Lightsail, a low-cost version of AWS) and continued the test run.

取り敢えず、サーバ稼動することが確認できxたので、月曜日に同僚やゼミ生に協力して貰って、負荷テストをしたいと思っています。

Anyway, I could confirm that this program is working as a server, I am going to ask my workers and students to do the test run.

-----

このサーバ化は、実は仕事でもなく、単に興味でやっています。

The reason I am trying to make the server, is not for work but for my interest.

誰に命じられたという訳でもなく、私の直感が『将来、これでラクできる』と言っているだけですが。

No one ordered me to do that, it is just that my intuition is telling me "this wil make my work easier in the future"

2023,江端さんの忘備録

NHK BS1スペシャル『ウクライナ大統領府 軍事侵攻・緊迫の72時間 完全版』を、嫁さんと3日がかりで見ました。

My wife and I watched the NHK BS1 special "The Ukrainian Presidency: Military Invasion, 72 Hours of Tension, Complete Version" over three days.

江端家の夕食は、"NHKニュース7"をベースに動いています。

The Ebata family's dinner is based on "NHK News 7.

その前後の時間を使って、嫁さんと一緒に別の番組を見ることにしています。

I use the time before and after to watch another program with my wife.

今回は、それが、3回分になったということになります。

In this case, we divided the program into 3 times.

-----

『現実にあったこととは思えない、もの凄い内容の映画を見たようだ』

It's like watching a movie with a lot of great content that I can't believe happened in real life."

という嫁さんに私も完全に同意しています。

I completely agree with my wife's opinions.

淡々と語られる72時間の出来事に呆然とし、

The events of the past 72 hours, told in a matter-of-fact manner, astonished me,

過剰な演出も、音楽もなく、作られた『愛』や『正義』が語られることなく、

There is no excessive staging, no music, no talk of made-up "love" or "justice",

それでも、番組の最後の方は、私も涙を抑えきれませんでした ―― 嫁さんはいわずもがなです。

Still, by the end of the program, I couldn't hold back my tears either -- not to mention my wife's.

-----

嫁さん:「日本が軍事侵攻されたら、パパも戦う?」

Wife: "If Japan is invaded militarily, will you fight too ?"

江端:「戦うと思う。私の場合、戦う理由に『愛国心』なんぞは1%もなく、ただ単に『腹が立つ』が100%になると思うけど」

『到底、勝目のない戦争。国内の犠牲者が出るだけだから、日本は、北海道をロシアに譲るべきだ』

Ebata: "I think I will fight. In my case, the reason for fighting is not even one percent 'patriotism,' but only 100 percent 'I'm angry.

嫁さん:「それで十分でしょう」

Wife: "That should be enough."

江端:「ただ私の場合、武器を装備したら2kmも行軍できないと思うから、サイバー戦の方に配置して貰いたいけど」

Ebata: "But in my case, I don't think I can march 2km when equipped with weapons, so I will ask to place me in cyber warfare."

ぶっちゃけ、戦争や権力への反抗心を持たない若者なんて ―― 『そんな若者なら、とっととやめちまえ!』と言いたいくらいです。

-----

この番組、アメリカか、イギリス、またはフランスあたりが制作されたものかと思っていたら、なんと、制作は、我が国のNHKでした。

I thought this program was produced in the U.S., the U.K., or France, but to my surprise, it was produced by Japan's NHK.

なんか嬉しかったです。制作された方々全てに、お昼御飯をおごりたい気持ちです。

I was kind of happy. I feel like buying lunch for everyone involved in the production.

NHKニュース、NHK語学プログラム、NHKニュース(地震速報、災害)、そして、NHKドキュメントで、少なくとも私は、NHK受信料の元を取っているという自覚があります。

With NHK News, NHK language programs, NHK News (earthquake bulletins, disaster), and NHK Documents, I am at least aware that I am getting my money's worth for the NHK subscription fee.

このような高い品質のドキュメンタリーが提供され続ける限り、私は、これからもNHKの言い値で、NHK受信料を払わさせて頂く所存です。

As long as NHK continues to provide documentaries of such high quality, I will continue to pay NHK subscription fees as NHK wants

2023,江端さんの忘備録

「人生最後に食べる食事」というのを、心から真剣に1分くらい考えたことがあります。

I once thought sincerely and seriously for about a minute about "the last meal of my life."

自分でも驚いたのですが、意外なモノが心に浮んできました。

To my own surprise, an unexpected meal came to mind.

―― 京都等持院駅にある『お好みジャンボ』の『お好み焼き』

"Okonomiyaki" at "Okonomiyaki Jumbo" at Kyoto Tojiin Station

学生時代の京都を、「和菓子」で思い出すような奴は、いないと思います(思いたい)。

-----

私、修士2年生(研究室のゼミの中で最年長)の時、ゼミ室に残っている全員分のお好みやきを買いに、自らバイクを出して、10人分くらいのお好み焼きを、テイクアウトして持ち返っていました。

When I was a second-year master's student (the oldest in my lab's seminar), I had taken my bike out to buy okonomiyaki for everyone remaining in the seminar room and had brought back take-out okonomiyaki for about 10 people.

今、GoogleMapでルート検索したのですが、結構な距離がありました(バイクで往復30分)。

I just searched the route on GoogleMap and it was quite a distance (30 minutes round trip by bike).

大学在学中、結構な頻度で通っていた、という記憶があります。

I remember that I went there quite often while I was in college.

今の『孤食の江端』からは(私ですら)想像もできないのですが ―― ゼミ生たちと一緒になって、騒ぎながら食べるお好み焼きは、本当に美味しかったのです。

I can't imagine (even I can't) from the "solitary Ebata" of today -- the okonomiyaki was really delicious with getting together with the seminar students and making a lot of noise.

-----

本日、今通っている大学のゼミの新人歓迎会に参加させて頂き、同じくゼミ室でピザを食してきました。

Today, I attended a welcome party for newcomers to the seminar at the university I currently belong, and had pizza in the seminar room with them.

出席者の半分くらいは、国際留学生だったので、この機会に『日本/日本人に対して言いたいこと』を聞き出し回っていました ―― コラムのネタの仕込みも兼ねて。

About half of the attendees were international students, so I took the opportunity to go around asking them what they wanted to say to Japan/Japanese people -- as well as preparing material for my column.

後日、このお話もしたいと思います。

I would like to talk about this later.

-----

ともあれ、彼らが、私と同じように、このピザの味が、「最後の食事」としてエントリーされるような思い出になるといいんだけどな、と思いながら、このパーティを眺めていました。

Anyway, I watched the party, hoping that they could remember the taste of pizza as the "last meal", like me.

2023,江端さんの忘備録

今日は新学期始めての全体ゼミの発表の日です。

Today is the day of the presentation of the first general seminar of the new semester.

発表時間は7分ですが、調子にのって、資料を46ページも作ってしまいました。

The presentation time is 7 minutes, but I ended up making 46 pages of materials.

コラム執筆のノリで作ってしまいました。

I made it with the feel of writing column.

しかし、修正している時間がないので、プレゼン発表の方でなんとかします。

However, I don't have time to fix it, so I will do something about it in the presentation presentation.

つまり、『運用』でなんとかします。

In other words, we will do something with "operation".

-----

バグのあるプログラムを、バグを修正しないままにリリースしなければならないことがあります。

Sometimes I have needed to release a buggy program without fixing the bug.

この場合、そのプログラムの利用者に対して『こういう操作をしないようにお願いする』という対応があります。

In this case, there is a response to the user of the program to "ask not to perform this kind of operation".

これを『運用で対応する』という言い方をします。

This is called "responding with operation".

『過去の私と現在の私の間で行われる、共同開発』

-----

私の人生において『運用で対応する』は、もっとも使われてきたフレーズの一つです。

In my life, "respond with operations" is one of the most used phrases.

"入試"であれ、"仕事"であれ ―― そして"結婚生活"であれ。

Even if it's "entrance exams", "work" or "marriage."

2023,江端さんの忘備録

GO言語のhttp.HandleFunc()の解釈を豪快に間違えていました。

I was boldly misinterpreting http.HandleFunc() in the GO language.

Golangのサーバなんか大嫌い

加えて、長期間ウソを垂れ流してきました。

In addition, I have been lying for a long period of time.

本当に申し訳ありません ―― が、誰からもクレームが付かないということは、もはや「オオカミ少年」と同じ扱いなのかもれれません(単に興味がないだけかも)

I am truly sorry -- but the fact that no one has complained about it suggests that it is now treated like the "boy who warned wolf coming" (or maybe they are just not interested in it).

私、これでも研究員なので、ファクトチェックには気を付けるようにしているです。まあ、努力目標ですが。

I am still a researcher in this, so I try to be careful about fact-checking. Well, it is an effort goal.

-----

これを発見することができたのは、自分の作ったプログラムの動作不良です。

I was able to discover this because of a malfunctioning program I created.

repeated read on failed websocket connection

というか、『今まで、よく問題なく動いてきたなぁ』と逆に感心してしまったくらいです。

In fact, I was so impressed that I was even saying to myself, 'How has it been working without any problems up to now?

これまで専用端末として使っていたものを、公開サービスに作りかえようとして、今回の発見に至りました。

I came to this discovery in an attempt to recreate what I had been using as a dedicated terminal into a public service.

ですが、私は、すでに間違った解釈のプログラムを、バラまいています。

But I am already spreading around a program that is misinterpreted.

-----

『他人の作ったプログラムを、安易に流用すると、こういう怖いリスクが待っている』

"If you easily use a program created by someone else, this kind of scary risk awaits you."

ということは、覚えておいて欲しいです。

So, please keep that in mind.

決して『言い訳』ではありません。

It is never an 'excuse'.