2021/05,江端さんの技術メモ

私は小心者なので、サーバにログインできなくなるだけで、青ざめてしまいます。

今日も、Amazon lightsailにsshログインできなくなって、パニックになっていました。

原因は、ウイルスチェックツールのClamAVのインストールと、AWS inspectorのインストール(Amazon lightsailでは動かない)が原因と考えられました。

『こういう場合、あわてて動くとロクなことがない』は経験則ですので、まずは、Amazonlightsailの内部情報をコンソールから見る方法をググってみました。

から「メトリクス」を選ぶと

CPUが100%のまま動いているグラフが出てきます。

間違いなく、ウイルススキャンがCPUを喰い捲っている、と思いましたので、いつかは下がるはず、と1時間くらい待ってみたところ、落ちてきました(ケースによっては、3時間、6時間コースもあるようなので、しばらく放っておく勇気が大切です)。

で、この間に、「使用率」と記載されているところをクリックして、「+アラームの追加」をクリックして、こういう状態になったらアラートが飛んでくるように設定しておきました。私の場合、以下のように設定しておきました。」

で、CPUも落ちついてきて、sshログインができるようになったので、早速パッケージのアンインストールを実施しました。

ubuntu@ip-123-45-67-89:~$ sudo apt-get remove --purge clamav clamav-daemon
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
clamav-base clamav-freshclam clamdscan libclamav9 libtfm1
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
clamav* clamav-daemon*
0 upgraded, 0 newly installed, 2 to remove and 0 not upgraded.
After this operation, 1881 kB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 196083 files and directories currently installed.)
Removing clamav (0.103.2+dfsg-0ubuntu0.20.04.2) ...
Removing clamav-daemon (0.103.2+dfsg-0ubuntu0.20.04.2) ...
Processing triggers for man-db (2.9.1-1) ...
(Reading database ... 196045 files and directories currently installed.)
Purging configuration files for clamav-daemon (0.103.2+dfsg-0ubuntu0.20.04.2) . ..
Processing triggers for systemd (245.4-4ubuntu3.6) ...

で、サービス状態を確認したら、まだ生き残っていたので、これも力付くで停止

ubuntu@ip-123-45-67-89:~$ systemctl list-unit-files | grep clamav
clamav-freshclam.service enabled enabled
ubuntu@ip-123-45-67-89:~$ sudo systemctl stop clamav-freshclam

さらに、AWS inspectorも強制アンインストールを実施

ubuntu@ip-172-26-7-19:~$ systemctl list-unit-files | grep aws
awsagent.service generated enabled

ubuntu@ip-172-26-7-19:~$ sudo apt-get remove --purge awsagent
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
clamav-base clamav-freshclam clamdscan libclamav9 libtfm1
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
awsagent*
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 196040 files and directories currently installed.)
Removing awsagent (1.1.1677.0-102677) ...
Stopping awsagent-agent service:
Stopping awsagent (via systemctl): awsagent.service.
Removing awsagent-agent service:
Killing existing AwsAgent Updater Cron Jobs:
Found existing awsagent updater cron job PID: 1462
Processing triggers for systemd (245.4-4ubuntu3.6) ...
(Reading database ... 196024 files and directories currently installed.)
Purging configuration files for awsagent (1.1.1677.0-102677) ...
dpkg: warning: while removing awsagent, directory '/opt/aws/awsagent/etc' not empty so not removed

最期に、sudo reboot をして、起動を確認しました。

 

教訓: メモリ1G程度の Amazon lightsailに、あまり凝った仕組みを組込むな

 

 

2021/05,江端さんの忘備録

趣味と仕事の両方で「メカ」に携わっている長女に、

I asked to my senior daughter, who is involved in "mechanics" as both a hobby and a job,

―― スノータイヤからノーマルタイヤへの交換やってみるか?

"Do you want to try changing from snow tires to normal tires?"

と尋ねてみたら、『やりたい』と言いましたので、私は一切手を出さずに、口で指示だけをして、ずっと見守っていました。

She said "I do try it", so I didn't help but watch her, just gave her verbal instructions.

なかなか、手際が良くて、ちょっと驚きました。

I was a little surprised at how well she did it.

-----

実際のところ、タイヤ交換は、機材さえ揃っていれば、そんなに難しくありません。

In fact, changing a tire is not that difficult, as long as you have the right equipment.

少なくとも、英語しゃべるより簡単だし、スマホの操作よりも簡単です。

At least it's easier than speaking English, and easier than operating a smartphone.

こちらが、私の記録用の映像なのですが(YouTubeに繋がります) ――

Here's my video for the record (it leads to YouTube) --.

娘の映像を記録しておけば、もっとPV上がるな ―― と気がついた時は、作業が終っていました。

If I record my daughter's video, I'll get more PV...and when I realized that, the work was done.

2021/05,江端さんの忘備録

今日、一昨年度、高視聴率だったドラマのカップルの主人公が、結婚を発表しました。

Today, the main characters of a couple of dramas that had high ratings the year before last announced their engagement.

私には、江端家用のLINEで連絡が来ました。

I was contacted by LINE for the Ebata family.

もちろん、結婚はおめでたいことです。その気持ちに嘘偽りはありません ―― が、

Of course, marriage is something to be celebrated. There's no lie in that feeling -- however, I also think,

―― でも、赤の他人だよね?

"They are strangers, aren't they?"

とも思います。

これについては、

About this issue, in my column,

『違いがあるとすれば、私はその友人を良く知っているのですが、逆に、その友人は私のことを全然知らない、という、ただそれだけのことなのです』

"If there is a difference, it is that I know my friend well, but they don't know me at all"

にて、言及しておりますので、今回は割愛します。

So, I will skip this section as I have already mentioned it in my previous article.

-----

テレビのニュースでインタビューを見ていると、どれも当たり障りのない、面白くないものばかりだと感じます。

When I watch interviews on TV news, I find that they are all bland and uninteresting.

これは、普通の婚約ではなく、芸能人同士の婚約なのです。

This is not an ordinary marriage, but a marriage between two celebrities.

ここは一発、捻りのあるコメントが欲しいところです。

I would like them to have a shot at a comment with a twist here.

『いやー、大変おめでたいです。彼らの結婚生活が、5年間も続けられれば、もう、それは『勝ったも同然』ですよね』

"Well, I'm very happy for them. In addition, if their marriage lasts for five years, it's as good as a win, isn't it?"

という、ウイットに富むコメントを紹介して貰いたいものです。

I'd like to see to introduce some witty comments on the subject.

-----

―― という話を嫁さんにしたら、凄く嫌な顔をされました。

-- When I mentioned this to my wife, she gave me a very unpleasant look.

2021/05,江端さんの忘備録

バグが存在しないプログラムはありません。

"No bug, no program"

そんなプログラムがあったらお目にかかりたいものです。

If you know a program that the bug does not exist, please show it to me.

バグが発生しないプログラムは、単にバグの通過するルーチンを通過していないだけです。

A program that doesn't have bugs is simply not going through the routines that bugs go through.

そんなことは、プログラム開発の常識中の常識です。

Such things are common knowledge in program development.

そして、私が作ったプログラムも、しばしば他人にバグを発見されては、それを指摘されています。

And my programs are often found to be buggy by others, who then point them out to me.

それは、とても恥しいことで、死ぬほど屈辱的なことで、バグを見つけた奴に殺意さえ覚えます。

It's so embarrassing, so humiliating to the point of death, that it even makes me want to kill the guy who found the bug.

-----

しかし、それでも、歯をくいしばって、引きつる笑顔を受かべながら、

But even so, I gritted my teeth, and with a tight smile on my face,

『私のプログラムのバグを見付けて下さって、誠にありがとうございます』

"Thank you very much for finding the bug in my program"

と、お礼の言葉を述べるのが、プログラムの世界に携わる住人のコモンセンスです。

It is the common sense of the inhabitants of the program world to say thank you in this way.

―― 分かんないだろーなー、と思います。

"You wouldn't understand, I guess"

特に、面子とかを死にほど気にする反社の連中にとっては、とても信じられない世界観だろうと思います。

Especially for gangsters who care about their pride to death, I think it would be a very unbelievable worldview.

-----

政治家や自衛隊の皆さんも、「面子」が大切な組織だと思います。

I believe that politicians and the Self-Defense Forces are also organizations where "pride" is important.

ですので、

So, I can understand that

―― ワクチン大規模接種システムの検証報道に防衛大臣が「悪質だ」と抗議

"Defense Minister protests against reports of verification of large-scale vaccination system, calling it "malicious"

という気持ちは分かります。

でも、それは違うのです。

But that's not the right way to behave.

私は、朝日新聞や、毎日新聞のシンパなんぞではありません。

I am not a sympathizer of the Asahi Shimbun or the Mainichi Shimbun.

しかし、この件だけに関して言えば、

However, as far as this one thing goes.

『システム上の不具合を見つけて頂き、ありがとうございました』

"Thank you for finding the glitch in the system"

が正しいのです。

is correct

-----

私は、こんな短期間で「新型コロナウイルスワクチンの大規模接種センターの予約システム」を、曲がりなりにも稼動させてみせた皆さんに、心からの敬意を払っています。

I have the utmost respect for all of you who have managed, in such a short period of time, to get the "reservation system for the large-scale vaccination center for the new coronavirus vaccine" up and running.

加えて、私は、稼動中のシステムに、そのような例外処理の対策を組込むのがいかに難しいことかであるかも、よく分かっています。

In addition, I am well aware of how difficult it is to incorporate such exception handling measures into a working system.

システムエンジニアであるこの私は、「国民の善意を前提に稼動させ続けなければならないシステム」のジレンマを、心の底から理解できる一人です。

As a system engineer, I am one of those who can truly understand the dilemma of "a system that must continue to operate based on the goodwill of the people"

-----

それでもなお、防衛大臣は、この件に関してだけは、

And yet, the Minister of Defense has to say,

『ありがとうございました』

'Thank you very much'

と言わなければならないのです ―― はらわたが煮えくり返るほど悔しいでしょうけど。

just for this. I'm sure you must be so frustrated that your guts are boiling over.

2021/05,江端さんの忘備録

今日、安定剤を貰いに、近くのクリニックに来たのですが、「話の長いおばさん」に、辟易してしまいます。

Today, I came to a nearby clinic to get some stabilizers, but I was fed up with the "long-talk old woman".

彼女は、コロナのワクチン摂取の予約が取れない事情を、長々と、クリニックの受付で語り続けていました。

She was talking at the reception desk of the clinic about how she couldn't get an appointment to get the Corona vaccine.

待合室で話を聞いていた私の方が、キレそうになりました。

I was listening to the conversation in the waiting room, and I almost lost my temper.

『結論を先に言え!』と、そのおばさんに説教しそうになりました。

"Tell me the conclusion first!" I was almost to lecture the old woman.

-----

私が、『偉いなぁ、立派だなぁ』と思ったのは、おばさんの話に割り込むことなく、話を聞き続けていた、受付のお姉さんでした。

What I thought was great and admirable was the lady at the reception desk who kept listening to the old woman's conversation without interrupting.

これからは、こういう「非ロジカルトーク」を上手く捌ける人間が、必要となってくるのだろうと思います。

From now on, I think we will need people who can handle this kind of "non-logical talk" well.

なぜなら、私たち(私も含めて)、ロジカルに語ることや、ロジカルに記載することが、苦手だからです。

This is because we (myself included) are not very good at talking logically or describing things logically.

ロジカルトークや、ロジカルライティングは、それだけでトレーニングの対象(対価が発生する)になるほど、難しい技術です。

Logical talk and logical writing are such difficult skills that they should be the subject of training (for a price) on their own.

これを、全ての人に強いるのは、普通に「暴力」です。

It is usually "violence" to force this on everyone.

それはよく分かってはいるのですが、『30秒で説明できることを、4回繰り返して、5分以上もしゃべる続けること』も「暴力」だよな、とも思います。

I am well aware of this, but I also think that 'repeating four times what can be explained in 30 seconds and talking for more than five minutes' is also 'violence'.

-----

まあ、そう遠くない未来、私も「そう」なります。

Well, in the not-too-distant future, I will be "that" too.

ロジカルかどうかはさておき、私たちの最期は、(1)認知症にならずに死ぬか、(2)認知症なって死ぬか、の二択しかありません。

Logical or not, we have only two choices at the end of our lives: (1) die without dementia, or (2) die with dementia.

そして、今や、(2)になる可能性が「圧倒的」です。

And now there is an "overwhelming" chance that it will be (2).

(さらに、50%以上の確率でガンで死にます)。

(Furthermore, there is a greater than 50% chance that we will die of cancer).

自分が、何をしゃべりたいのか上手く纏められない時に、回りから『結論を先に言え!』と罵しられるのは、『さぞ辛いことだろうな』とは思います。

When I can't speak well and people around me are cursing me, "Speak your conclusion first!". I can imagine that this is absolutely painful for me.

しかし、その一方で、

But on the other hand...

―― どうせ、いずれ自分が罵しられることになるなら、今、他人を罵しっておいた方がおトクかな

"If I'm going to be abused sooner or later, it's better to abuse others now"

という、下衆(ゲス)なことも考えています。

I also think about the despicable matter.

2021/05,江端さんの忘備録

『保護者がラディカル(過激)だと、子どもはコンサバ(保守的)になる』 ―― という仮説を考えています。

I have a hypothesis: "If parents are radical, children will be conservative.

私は、高齢化や、安楽死(尊厳死)などの、いわゆる「口にし難い社会問題」であったとしても、

I am a weekend engineer and writer who does not listen to (or refer to) other people's opinions (people who are said to be authorities),

人の意見(権威と言われている人)を聞かず(参照せず)に、自分で集めたデータとプログラムで突っ込んでいく週末エンジニア&ライターです。

even when it comes to so-called "social issues that are hard to talk about," such as aging and euthanasia (death with dignity), and I use the data and programs I have collected to go into them.

ぶっちゃけ、家族からは、問題児扱いされています。

To be frank, my family treats me as a problem child.

『パパがテロの対象になるのはいいんだけど、私たちに類が及ぶのは勘弁して欲しい』

"We don't care if you're a target of terrorism, but please don't let that happen to us"

と、本当にぶっちゃけられています。

They are really frank.

特に、「天皇制」について言及した時は、『本当にヤバイってば!』と、さんざん警告されていました。

In particular, when I mentioned the "emperor system," they warned me, "It's really bad!"

-----

以前、『「中核派(*1)」と「革マル派(*2)」と「日本赤軍」について書きたい』と、後輩にしゃべったところ、「江端さん。ご家族は人質なんですよ!」と強く反対されたことがあります。

I once told a junior colleague that I wanted to write about the Chuukaku-ha (*1), Kakumaru-ha (*2), and the Japanese Red Army, and he said, "Mr. Ebata. Your family is a hostage! I was strongly opposed to the idea"

(*1)革命的共産主義者同盟全国委員会

(*1)National Committee of the Revolutionary Communist League

(*2)日本革命的共産主義者同盟革命的マルクス主義派

(*2)Revolutionary Marxist Faction of the Japanese Revolutionary Communist League

最近、「北朝鮮」について書きたいと呟いたところ、娘たちの猛反対を受けました。

Recently, when I mumbled about wanting to write about "North Korea," I was met with fierce opposition from my daughters.

うん、これは分かる ―― 間違いなく、巻き添え喰らうのは、娘たちだから。

Yeah, I know what this is -- it's definitely my daughters who are going to be the collateral damage.

という訳で、

So,

『保護者がラディカルだと、子どもがコンサバなる』

"If parents are radical, children will be conservative"

という仮説は、結構、正しいのではないかと思っています。

I believe that this hypothesis is quite correct.

-----

その仮説を支える傍証としては、

As a corollary to that hypothesis, there is an example,

『保護者(父:故人)が町工場の経営者だと、子ども(私)は典型的なサラリーマンになる』

"If the guardian (my father: deceased) is the owner of a factory in town, the child (me) becomes in a typical business person"

があります。

―― 中小企業の経営者は、毎日を地獄の中で生きている

"Small business owners live in hell every day"

というのは、私が目の前で見てきた、紛れもない事実です。

This is an undeniable fact that I have witnessed firsthand.

-----

先日、BS1スペシャル「潜入10年 北朝鮮・武器ビジネスの闇」を、嫁さんと二人で見ていました。

The other day, my wife and I were watching the BS1 special "10 Years of Infiltration: The Dark Side of North Korea's Arms Business.

そこらの小説や映画より怖かったです。

It was scarier than those novels and movies.

娘たちの懸案は、結構正しいと、実感しています。

I realize that my daughters' concerns are quite correct.

2021/05,江端さんの忘備録

5月11日付の全国紙3紙の朝刊に、宝島社による見開き2ページの企業広告が掲載されました。

A two-page spread advertisement by Takarajimasha (publisher) appeared in the morning editions of three national newspapers on May 11.

内容は、戦時中の子どもたちの軍事教練の写真に

The content is based on photos of children's military training during the war.

「ワクチンもない。クスリもない。タケヤリで戦えというのか。このままじゃ、政治に殺される」

"No vaccine. No drugs. We're supposed to fight with bamboo bullets? Politics will kill us."

という文言を添えて、政府の新型コロナウイルス対策を批判したものです。

With this statement, the publisher criticized the government's measures against the new coronavirus.

-----

現時点で、私は、この社の出版物の調査も購読もしていませんので、コメントはできません。

At this time, I have not researched or subscribed to any of their publications, so I cannot comment on them.

なので、これから、調査と購読を開始します。

So, I will now start researching and subscribing.

私は、ネットニュースも、SNSも見ません。データと証拠を伴わないコメントは、全て排除します。

I do not watch online news or social networking sites. I eliminate all comments that are not accompanied by data and evidence.

自分の頭で考えて、自分の力で計算して、自分の言葉だけで、語りたいと思います。

I think with my own mind, calculate with my own computer, and speak only with my own words.

-----

ちなみに、

Incidentally,

『見開き2ページの企業広告』の値段は、

The price of a "two-page spread" corporate ad is

朝日新聞: 7971 万円

Asahi Shimbun: \79,710,000

読売新聞: 9582万円

Yomiuri Shimbun: \95,820,000

毎日新聞: 5184万円

Mainichi Shimbun: \51,840,000

合計、2億2千737万円

Total: \227,370,000

のようです。

-----

例えば、今回の広告を、コロナ関連の書籍をベストセラーにしようとする戦略、と仮説してみます。

For example, let's hypothesize that this ad is a strategy to make a book about Corona a best seller.

著者、出版社、取次、書店(+ 印刷会社、運送会社)をステークホルダと考えて、

Considering authors, publishers, distributors, bookstores (plus printing companies and shipping companies) as stakeholders.

著者(10%):出版社(60%):取次(10%):書店(20%) となっているらしいです。

The distribution is apparently author (10%):publisher (60%):distributor (10%):bookstore (20%).

ですので、コロナ関連の書籍の本を800円とすると、出版社の利益は480円となります。

So, if a book of Corona-related books costs 800 yen, the publisher's profit is 480 yen.

ですから、この広告費を回収しようとすると、

So, in an attempt to recoup this advertising cost,

2億2千737万円 ÷ 480円 = 47万3688冊

227.37 million yen ÷ 480 yen = 473,688 books

ふむ、ミリオンセラー(100万冊)に届かなくても、十分にペイする計算になります。

Hmm, even if it doesn't reach the million-seller mark (one million books), it will still be enough to pay for itself.

―― さて、この一件、果たしてペイするかな?

"Now, will this investment pay off?"

私は、興味深く観測し続けています。

I continue to observe with great interest.

未分類

restrictive about → limited in terms of

Our hypothesis is → We hypothesize that

in the bay area of Tokyo → in the Tokyo Bay area

From the viewpoint of "easy to use" → The key points of ease of use

However, neither of the two transportation systems could worded well from the both viewpoints of ease of use and from anywhere → しかし、この2つの交通システムは、「使いやすさ」と「どこからでも使える」という両方の観点から、うまく言い表せない。

attempted to reflect the dissatisfactions in dynamic vehicle operating planning. → attempted to [use such dissatisfaction to create better dynamic routing?].

 

taking into account the dissatisfaction → on the basis of driver (company) and passenger dissatisfaction

2021/05,江端さんの忘備録

今期、私のイチオシのTVアニメは「スーパーカブ」です。

This season, my top choice of TV anime is "Super Cub".

キャッチフレーズからして、もう、凄い。

The catch phrase is already awesome.

―― 親はいない。お金もない。友達も趣味も、将来の目標もない

"I have no parents. No money. No friends, no hobbies, no future goals"

こんな凄いコンセプトで、女子高校生が登場するバイクのアニメが、今まであっただろうか?

Has the anime ever been about motorcycles animation of high school girls with such a surprised concept?

-----

私、受験浪人のころ、スーパーカブで新聞配達をやって、受験費用(の一部)を稼いでいました。

When I was a student who failed the entrance exam, I used to deliver newspapers with a Super Cub to pay for (part of) my exams.

ですので、スーパーカブについては、そこらの人よりはよく知っています。

So, I know more about Super Cub than most people do.

あのバイクは、我が国のエンジニアが作り出した「至宝」です。

That bike is a "treasure" created by our country's engineers.

とにかく、馬力がある、壊れない、燃費が抜群、天候に強い、長距離でもヘタれない、なにより、カッコイイ。

Anyway, it's got a lot of horsepower, it won't break down, it gets great gas mileage, it's weatherproof, it won't break down over long distances, and above all, it's cool.

その後、CB50, DT125, TRD250と乗り継いで、結婚後にバイクを引退しましたが ―― スーパーカブに次いで、DT125の機動力は凄かった。

After that, I rode a CB50, DT125, TRD250, and retired from motorcycles after I got married -- after the Super Cub, the DT125's mobility was amazing.

普通に、石の階段を登っていくことができましたからね。

I was able to climb up the stone stairs as normal by the DT125

まあ、私は、オフロード系の中型バイクのライダーだったのです。

Well, I was a rider of a medium-sized off-road motorcycle.

-----

意外にも、長女が、この私のライダーの属性を受け継ぎました。

Surprisingly, my eldest daughter inherited this attribute of my rider.

私は、高校生の時に、50ccバイクで、名古屋から京都旅行に出かけていきましたが ―― 長女から『50ccのバイクで箱根を攻めた』と聞いた時は、流石に青冷めました。

When I was a high school student, I took a trip to Kyoto from Nagoya on a 50cc motorcycle, but when my eldest daughter told me that she had attacked Hakone on a 50cc motorcycle, I was very cold.

ですので、長女が、中型バイクの免許取得の話を聞いた時、私は賛成しました。

So when my eldest daughter told me about getting a medium-sized motorcycle license, I agreed with her.

反対する嫁さんに、『交通法規を守って、正しく運転する限り、原付より中型バイクの方が安全である』と、娘の弁護に立ったくらいです。

I even stood up in my daughter's defense, telling my wife who disagreed, "As long as she obey traffic laws and drive correctly, a medium-sized motorcycle is safer than a moped.

-----

長女に、TVアニメ「スーパーカブ」を見せたのですが、

I showed my oldest daughter the animation TV series "Super Cub, we agreed with

―― このアニメにこそ、ライダーの原点がある

"The origin of the Rider is in this anime."

という意見で一致しました。

そして、爆音を出すようにバイクを改造し、集団で珍走することでしか自己承認欲求が満たせない、共依存の低能たちは、

And those codependent lowlifes who can only satisfy their need for self-approval by modifying their motorcycles to make explosive noises and riding in groups on week basis, is

『我々ライダーの憎悪すべき敵であり、唾棄すべきゴミである』

"An abominable enemy of our riders, and a spiteful piece of trash"

という認識でも、一致しました。

We also agreed that.

やつらに、どんなトラブルがあって、どんな心の闇を抱えていようとも、『そんなの関係ねぇ』です。

It doesn't matter what kind of trouble they have, what kind of darkness they have in their hearts.