2022/03,江端さんの忘備録

ウクライナ支援が、私の人生では見たことのないペースで世界に広がっています。

Ukrainian aid is spreading around the world at a pace I have never seen in my life.

支援に関しては、

As for the aid,

―― 御託(ごたく)はいいんだよ! 金出せ、コノヤロー!!(泉谷しげるさん風)

"You don't care what someone says! Give me the money, motherfucker! (Shigeru Izumitani style)

のスタンスで、全然O.K.だと思っています。

I think this stance is totally O.K.

例え、メディアやSNSによる情宣に影響されていたとしても ――

Even if we are influenced by media and social networking propaganda --

ある国の国内で子どもが殺されている映像があって、

There was a video of a child being killed within the borders of a country.

他方の国の国内で子どもが殺されている映像がなければ、

Unless there are images of children being killed on the other country's soil.

私は「思考停止」していい、と思っています。

I am willing to "stop thinking".

子どもが殺されている国を支援するのに、これ以上の理由は必要ありません。

No better reason is needed to support a country where children are being killed.

-----

私は、この自分の感情に従いたいのですが、ある(他の人から見ればどうでもいい)ことに拘っています。

I want to follow this feeling of mine, but I am concerned about certain (unimportant to others) things.

アフガニスタン、ミャンマー、チベット、ウイグル ―― 私は、何もしてこなかったなぁ、と。

Afghanistan, Myanmar, Tibet, Uyghur -- I have done nothing.

この、形容しがたい「後ろめたさ」が、私が動くのを躊躇させています。

This formidable "guilt" is holding me back from making me move.

なにか「個人的理由」に関わるものでもあれば、私は簡単に「発火」するんだけどなー

If something was about "personal reasons", I'd "fire" easily...

-----

今、私は、せっせとGISソフトウェアの開発をしているのですが、昨夜、APIの使い方が分からなくて、前提となるOSS(leaflet)を調べていました。

PrumeMobileを使ってみた結果(1st_trialとadp_test)

I'm working hard on GIS software right now, and last night I was looking up the prerequisite OSS (leaflet) because I couldn't figure out how to use the API.

そこで、このページに辿りつきました。

That is how I came across this page.

そして、そこに書かれているフレーズに目が引付けられました。

And the phrase written there caught my attention.

"If an appeal to humanity doesn't work for you, I'll appeal to your egoism: the future of Ukrainian citizens is the future of Leaflet."

(もし、あなたの人道主義に訴えないのであれば、私は、あなたの利己主義に訴えます:ウクライナ市民の未来は、Leafletの未来です)

-----

よくぞ言ってくれた! そう言って欲しかった!!

Well said! I wish you would have said so!!!!

このフレーズで、私の「利己主義」に"火"が付きました。

This phrase ignited my "selfishness".

私は、人道的ではなく、あくまで利己的に、Leafletを守るため「だけ」に、ウクライナを圧倒的かつ絶対的に支援します。

I support Ukraine overwhelmingly and absolutely, not humanely, but only selfishly, "only" to save Leaflet.

ウクライナを守ることは、私のリタイア後の生きる術(GISソフトウェア開発)を死守することと同義です。

Defending Ukraine is synonymous with defending my retirement way of life (GIS software development) to the death.

『Leafletの開発者に、避難先からキエフに戻ってもらって、これからも、Leaflet開発に励んで頂く』

"I am asking the developers of Leaflet to return to Kiev from their evacuation site and continue to work hard on Leaflet development"

私の「ウクライナの支援」の理由としては、これで十分です。

This is sufficient reason for my "support of Ukraine".

未分類

=6371 * ACOS(COS(A2*PI()/180) * COS(A3*PI()/180) * COS(B3*PI()/180-B2*PI()/180) + SIN(A2*PI()/180) * SIN(A3*PI()/180) )

参考文献 緯度経度から2地点間の距離を計算する!Google方式とヒュベニ式・表計算ソフトで計算できる・GPSデータも使える

こちらがエクセル表のサンプル → Book1.xlsx

2022/03,江端さんの忘備録

昨日、確定申告の締切日(?)でしたが、e-Taxシステム(国税電子申告・納税システム)にシステム障害が発生していて、騒ぎになっています。

Yesterday was the deadline for filing tax returns, but there was a system failure in the e-Tax system (National Tax Electronic Filing and Payment System), which caused a commotion.

ちなみに、私は、一週間前に提出を終えて、セーフでしたが。

Since I finished the submission a week ago, I was O.K.

原因は不明とのことですが、私は『締切日前の負荷集中が原因だろう』と思っています。

The cause is unknown, but I believe it is 'probably due to the concentration of load before the deadline'.

-----

多くの人は、「サイバー攻撃」がとても高度な技術と思っているかもしれませんが、基本的には、今回の、e-Taxシステムのシステム障害と同じことを、人為的にやっているだけです。

Many people may think that a "cyber attack" is a very sophisticated technology, but it is basically just an artificial attempt to do the same thing as the recent system failure of the e-Tax system.

サーバに対して、怒涛のようなアクセスを仕掛ければ、どんなサーバでも(基本的には)ダウンします。

Any server will (basically) go down if you set up a raging access against it.

若い頃に、私はスパムメールの発信元のサーバに対して、コンピュータに自動生成した膨大な数の抗議のメールを、サーバに返信させ続けたことがあります(時効成立済み)。

When I was younger, I used to keep sending a huge number of computer-generated protest e-mails to the servers of spammers (statute of limitations has expired).

その後、そのサーバはアクセスできない状態になりました。

The server was then inaccessible.

もっとも、これは「サーバをダウンさせるだけ」の攻撃であり、「乗っ取りする」とか「コンテンツを書き換える」などの攻撃には、もう数段の高度な技が必要になります。

However, this is an attack that "only brings down the server." In order to "hijack" or "rewrite content," a more advanced technique is required.

ドメイン名を持っているサーバ(インターネットで公開されているサーバ)は、そのサーバ立ち上げの瞬間から、クラッキングされます。

A server that has a domain name (a server that is publicly available on the Internet) can be cracked from the moment it is launched.

私のサーバ(kobore.net)も例外ではありません。

My server (kobore.net) is no exception.

-----

ロシア政府のWebサーバへのアクセスができなくなるという状況が、発生したと聞いています。

I have heard that the Russian government's web server was inaccessible.

そして、私も、現在、ロシアかウクライナにある(と推定されている)サーバのサービスが受けられなくなっています。

And I, too, am currently unable to get service on a server that is (presumably) in Russia or Ukraine.

今や、我が国のサーバも、サイバー攻撃の標的になっていることは確実です。

It is certain that our nation's servers are now the target of cyber attacks.

『私はサーバの運用などやっていないから大丈夫』と思っている人が多いかもしれませんが、「サーバ攻撃に加担させらている」可能性はあります。

Many people may think, "I don't run servers, so I don't have to worry about it," but there is a possibility that they are being forced to participate in server attacks.

サーバをダウンさせるためには、怒涛のようなアクセスを仕掛ける必要があるのですが、例えば、1000台のPCを乗っ取ることができれば、1000台からのサイバー攻撃が可能となります。

In order to bring down a server system, it is necessary to plant a raging access. For example, if 1,000 PCs can be hijacked, the cyber attack can be launched from 1,000 PCs.

「自分のパソコンを乗っ取られて、自国のインフラシステムを攻撃する兵器」にしない為にも、少なくとも、定期的に"Windows Update"くらいはしておきましょう。

To prevent your computer from being hijacked and used as a weapon to attack your country's infrastructure, you should at least perform "Windows Update" regularly.

-----

よい機会です ―― ここは一つ、「サイバー攻撃教育」を、真面目に検討してみませんか?

This is a good opportunity -- why don't we take a serious look at "cyber attack education"?

2022/03,江端さんの技術メモ

1. サーバの方の改造
(a) POPUP int `json:"popup"` の追加

// GetLoc GetLoc
type GetLoc struct {
	ID    int     `json:"id"`
	Lat   float64 `json:"lat"`
	Lng   float64 `json:"lng"`
	TYPE  string  `json:"type"` // "PERSON","BUS","CONTROL
	POPUP int     `json:"popup"`
	//Address string  `json:"address"`
}

(b) javascriptに、this.popup = popup;を追加

function obj(id, lat, lng, type, popup){
	this.id = id;
	this.lat = lat;
	this.lng = lng;
	this.type = type;
	this.popup = popup;
}

(c) javascriptに、

var i = obj.popup;

popup: "Person " + i,

を追加

var i = obj.popup;

		if (obj.id == 0) {
			if (obj.type == "PERSON"){
				var marker = new PruneCluster.Marker(obj.lat, obj.lng, {
					popup: "Person " + i,
					icon: L.icon({
						iconUrl: 'http://localhost:8080/static/person-icon.png', 
					})
				});
			}
			else if (obj.type == "BUS"){
				var marker = new PruneCluster.Marker(obj.lat, obj.lng, {
					popup: "Bus " + i,
					icon: L.icon({
						iconUrl: 'http://localhost:8080/static/bus-icon.png', 
					})
				});

			}

2. クライアントの方の改造

(1)以下はサーバと同じ
// GetLoc GetLoc
type GetLoc struct {
	ID    int     `json:"id"`
	Lat   float64 `json:"lat"`
	Lng   float64 `json:"lng"`
	TYPE  string  `json:"type"` // "USER","BUS","CONTROL
	POPUP int     `json:"popup"`
	//Address string  `json:"address"`
}
gl := ldarp.GetLoc{
		ID: 0, // "0"としなければならない
		//	Lat:  35.64553503, // 初期の場所
		//	Lng:  139.78468208,
		TYPE: "PERSON", // "PERSON","BUS","CENTER"のいずれかが選べる
	}

	// glの要素を外出し
	gl.Lat = person.Destination.Lat
	gl.Lng = person.Destination.Lon
	gl.POPUP = person_num

keyword ポップアップ PruneMobile PruneCluster  Golang JavaScript

2022/03,江端さんの忘備録

私が法学ゼミに通っていた頃、講師に教えて貰った言葉に、

When I was a student at a law seminar, my instructor taught me the following phrase.

―― 「憲法違反」と言い出した弁護士は、裁判官に対して「敗北宣言」をしている

"Lawyers who say "violation of the Constitution" are "declaring defeat" to the judge"

がありました。

裁判とは、基本的には民法や刑法などの、具体的な法律の条文を持ちいて、被告の行った行為に適用できるか否かを争うバトルです。

"Judge" is basically a battle to determine whether or not a specific article of law, such as the Civil Code or the Criminal Code, can be applied to the defendant's conduct.

つまり「被告の行った行為と、一般法の条文とのマッチング」です。

In other words, "matching the defendant's conduct with the text of the general law.

「憲法」は、法律の最高法規でありますが、基本的には「コンセプト(概念とか理念)」です。

The "Constitution" is the supreme law of the land, but it is basically a "concept" (or idea).

「憲法」を持ち出して判決をすること自体が、かなりのレアケースです。

Bringing up the "Constitution" to make a ruling is in itself a pretty rare case.

レアケースである理由は、その事件の内容が、この国の司法のみならず社会全体に与える影響がハンパではないからです。

The reason why it is a rare case is because the impact of the case on not only the judiciary of this country, but also on society as a whole, is not humbling.

それゆえ、憲法違反を理由とする裁判の判決は、重大なニュースソースになるのです。

Hence, a court ruling on a constitutional violation is a significant news source.

同性婚や、最近の優性保護法による除斥期間に関する判決は、一般法とのマッチングでは、判断できない重要な案件だったのです。

Same-sex marriage and the recent ruling on the exclusionary period under the Superiority Protection Act were important cases that could not be decided by matching them with the general law.

-----

このような感じで言うと、

Let me put it this way, I can say,

―― 「核兵器の使用」を言い出した国家元首は、戦争に対して「敗北宣言」をしている

"Any head of state who says "use nuclear weapons" is "declaring defeat" for the war"

とも言えます。

ただ、核兵器の使用権(いわゆる「核のボタン」)は、その国の統治者に一任されていますので、結局のところ

However, the right to use nuclear weapons (the so-called "nuclear button") is left entirely up to the ruler of the country, so in the end

『私が死んだ後の世界がどうなろうが、知ったことか』

"I don't care what happens to the world after I die"

と開き直った統治者だけが、「世界でたった一人の勝利者」となる、ということになります。

Thus, only the ruler who become defiant will be the "one and only winner in the world," and so on.

-----

実際に、私が知っているだけでも、過去、システムエラーで"4回"核戦争の危機がありましたが、現場の判断で回避されました。

In fact, as far as I know, there have been "four times" in the past when nuclear war was threatened due to system errors, but the situation was averted due to on-site decisions.

しかし、人間のエラー(開き直った統治者)を、システムが止める ―― そういう逆転現象は、あまり期待できないと思います。

However, I don't think we can expect such a reversal -- like, the system stops a human error (defiant ruler).

2022/03,江端さんの技術メモ

参考文献  【レッツカスタマイズ】Visual Code StudioにGo言語の開発環境を整えてみよう!

1. Goの開発環境をインストール

2. setting.jsonにgopathを書き込む

Windowsの場合は、"C:\go"は、"C:\\go"と書かないと動かない(みたい)

3. (Ctr+Shift+P)でショートカットで検索バーを表示し、「GO: Install/Update tools」を入力してヒットしたメニューをクリック

全部選んで、インストールする

4. VSCodeを離れて、コマンドプロンプトから、以下のコマンドを実行する

$ go get -u -v github.com/go-delve/delve/cmd/dlv

5. launch.jsonに以下のように書き込む

{
    // IntelliSense を使用して利用可能な属性を学べます。
    // 既存の属性の説明をホバーして表示します。
    // 詳細情報は次を確認してください: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Launch",
            "type": "go",
            "request": "launch",
            "mode": "auto",
            "program": "${fileDirname}",
            "env": {},
            "args": []
        }
    ]
}

これで、

GO_1_could not launch process: not an executable file_CC课堂-CSDN博客

加えて、(バカみたいな感じもするが)ライブラリのコードでブレークする場合であっても、main.goのウインドウの方をアクティブにしておかなければならないみたい

これで、エラーは出てこなくなる(みたい)。

 

2022/03,江端さんの忘備録

私は、見たくないものからは、目を背けるようにしています。

I try to turn away from things I don't want to see.

見たくないものを見るのは、「辛い」ことだからです。

It is "hard" to see what I don't want to see.

ですので、私は、見たいものだけを見て、都合よくそれらとだけ、付き合うことにしています。

So I will only see what I want to see, and only follow them, conveniently.

これを「卑怯」ということはできますが、

You can call this "cowardly," but

―― SNSで通り一遍の批判をするだけで、立ち去るやつらと、大して変わらん

"I'm not much different from the guys on social media who just make passing criticisms and walk away."

と分かってからは、この「卑怯」を公言するようになりました。

I began to profess this "cowardice" after I found out that

-----

現在、私は、目を逸らし続けている事項が沢山ありますが、その中の一つに「子どもへの虐待」があります。

Currently, there are many matters that I continue to turn a blind eye to, one of which is 'abuse of children'.

この問題、

This problem is the ultimate evil, like,

―― 無限暴力装置(虐待する親)を設置した密室(自宅)に、子どもを放置し続ける

"Continuing to leave children in a closed room (home) with an endless violent device (abusive parent)"

という、究極の悪です。

しかし、多くの人が奮闘努力しているのにも関わらず、これを解決する決定的な方法が見つかっていません。

However, despite the efforts of many people struggling to find a solution, no definitive method has been found to solve this problem.

『子どもが親に殺される続ける現状に、何もできない』という現実を、真正面から見ることは、本当に『辛い』ことです。

It is really 'painful' to see head-on the reality that 'nothing can be done about the current situation where children keep getting killed by their parents'.

ですので、私は、この問題から目を逸らし続けてきました。

So I have continued to turn a blind eye to this problem.

 

-----

先日、コラムの編集作業をしながら、NetFlixで「コタローは1人暮らし」というアニメの第1話を見て、その後、これを一気に全話見てしまいました。

The other day, while editing my column, I watched the first episode of an anime called "Kotaro Lives Alone" on NetFlix, and then watched all the episodes of this one at once!

過激な描写やストーリが一切登場してこない、楽しいアニメでしたが、

It was an enjoyable animation, though, with no extreme depictions or storied scenes appearing.

―― この問題から逃げ続けてきた私には、視聴後に、地味に、じわじわと、そのツケが回ってくるような

I have been running away from this issue, and it seems to me that the bill for it was coming soberly, slowly after watching this anime.

作品でした。

ともあれ、コメディ風に描かれている絵もストーリーもとても愉快ですから、身構えることもなく、普通に作品を楽しんで貰いたいです。

Anyway, both the pictures and the story, which are drawn in a comedic style, are very funny, so I hope that you will enjoy the work in a normal way without getting defensive.

-----

私も ―― 「コタローは1人暮らし」のような、

I hope to deliver such works (columns, etc.) to many people, like "Kotaro lives alone",

『世間の人々が、そのままでは食べにくい食べ物(生野菜)を、上手く調理して、食べやすい食事として提供する』

"The food (raw vegetables), which is difficult for people to eat as it is, is prepared well and served as an easy-to-eat meal"

というような作品(コラム等)を、多くの人に届けられたらいいなぁ、と思っています。

2022/03,江端さんの忘備録

―― 老害が世界を支配する

"Fogy rules the world"

を実感しています。

I realize this phrase deeply.

-----

ある本の一節に、

There is the following phrase in one of the books I read before.

『右(右派)であれ、左(左派)であれ、全ての理念や理想は、不死なるもの ―― 国家 ―― に辿りつく』

All ideals , whether of the right (right-wing) or the left (left-wing), are traced to the immortal -- the state.

というものがありました。

ティーンエイジャの時に『なるほどなぁ』と感心したことを覚えています。

I remember being impressed when I was a teenager and thinking, 'I see'.

人間の肉体は、100年以上は保ちません。

The human body does not last more than 100 years.

だから、その自分の依代(よりしよ)を、国家というものに求める、ということです。

Therefore, they seek their dependence on the nation.

-----

もちろん、ここで言う「国家」とは、国土のことではありません。

Of course, "nation" here does not mean land.

政治権力、または、思想や、宗教のことです。

They are political power, or ideology, or religion.

しかし、「国家」も、結構、簡単にコロコロ死にます。

However, the "nation" also dies quite easily.

コロコロ死ぬから、歴史の勉強はあんなに膨大で面倒くさいのです。

Any nation become easy to die, which is why studying history is such an enormous and tedious task.

-----

国家の死は、歴史の必然です。

The death of a nation is an inevitable part of history.

ただ、老人が『国家の死を、自分の世代で終わるところだけは見たくはない』とは思う気持ちは理解できます。

However, I can understand why an old person might think, 'I don't want to see the death of a nation, only to see it end in my generation'.

そして、原則として、人間は自分を変えることはできません。

And as a rule, people cannot change themselves.

変わる為には膨大なエネルギーが必要です。

It takes an enormous amount of energy to change.

変わっていく価値観を、自分の中に取り入れることは、痛いです。激痛です ―― それは、よく知っています。

It is painful to incorporate changing values into your life. It is intense pain -- I know it well.

そして、老人は、若い人より「権力」そのものになりやすいです。

And old people are more likely to become "power" itself than young people.

なにしろ、経験値が違いますから。

After all, they are very experienced.

そして、権力を持った老人は、ルール(定年や任期)を変えることに躊躇がありません。

And old people in power have no hesitation in changing the rules (retirement and term of office).

老人の権力は、雪ダルマ的に、増大していきます。

Thus, the power of the old person increases in a snowball-like fashion.

そして、時代の変化や価値観に対応できない老人は、社会の害悪 ―― 老害になります。

And old people who cannot adapt to the changing times and values become a blight on society -- "fogy".

こうして、

Thus,

―― 老害が世界を支配する

"Fogy rules the world"

が、完成する ―― を、ウクライナ侵攻のニュースを見ながら、実感しています。

is completed. I realize this, watching the news of the Russian military invasion of Ukraine.

-----

私が「権力を持たない老人」のままでいることは、それ自体が、大きな価値であると、再認識しています。

I reaffirm that my remaining an "old man without power" is, in itself, of great value.

今日も、私は、「世界平和」に貢献しています。

Today, I am still contributing to "world peace".

2022/03,江端さんの忘備録

■戦争を始める前にやっておかなければならないことリスト

The following list are things that must be done before starting a war.

(1) 立法府(議会)の掌握

(1) Seize control of the legislature (Congress)

(2) 外国の経済制裁に対する自国経済のロバスト度の数値化と経済シミュレーション

(2) Quantification and economic simulation of the robustness of a country's economy against foreign economic sanctions

(3) 緊急事態宣言下での最高権力者による私権制限の強化の立法措置

(3) Legislative Measures to Strengthen Restrictions on Private Rights by the Supreme Authority under a Declaration of Emergency

(4) インターネット等の国内IPX(インタネットエクスチェンジ)の運用組織の掌握

(4) Seize control of domestic IPX (Internet Exchange) operating organizations such as Internet, etc.

(5) SNS等の運用禁止と、自国政府運用SNSサービスへの国民の誘導

(5) Prohibit the operation of social networking services, etc., and direct citizens to social networking services operated by their own government.

(6) 海外メディアの国外追放

(6) Deportation of foreign media

(7) 反体制勢力、アカデミズムへのスパイの潜入と組織内紛争(内ゲバ)の誘導

(7) Infiltration of spies into dissident forces and academia and induction of intra-institutional conflict (internal conflict)

(8) 「安全な原発攻撃の手順書」の配布と、現場司令官への原発メカニズムの教育の徹底

(8) Distribute safe nuclear power plant attack procedures and thoroughly educate field commanders on nuclear power plant mechanisms.

(9) 外国企業の国有化に関する立法化の(事前の)シナリオ策定

(9) Develop (pre-)scenarios for legislation on nationalization of foreign companies

(10) 敵国の核ミサイル開発疑惑と人体を使った細菌実験疑惑等の捏造証拠資料の、開戦「前」の作成完了と、検証される時間を与えないタイミングでの国外メディアへの開示

(10) Completion of the preparation of fabricated evidence, including allegations of the development of nuclear missiles by the enemy and of germ experiments using human bodies, "before" the outbreak of war, and disclosure to the foreign media at a time that does not give time to verify the evidence.

-----

このようなことが、毎日のニュースに登場してきて、その手数の多さに驚いています。

I am amazed at the number of hands this has appeared in the daily news.

まだまだ、これから、『本来なら、戦争を始める前にやっておかなければならなかったこと』のニュースが、続くのだろうと思います。

I am sure that there will still be more news of 'what should have been done before starting the war' to come.

やはり、戦争をしかけるのであれば、「最悪のシナリオを想定した周到な準備が必要だ」と、実感しました。

I realized that if we are going to start a war, we need to prepare carefully for the worst-case scenario.

-----

ちなみに、太平戦争中の日本も、世界中から経済制裁を受けつつ、政府も上記と同じような対応をしてきました。

Incidentally, during the Pacific War, Japan was also subjected to economic sanctions from around the world, while its government responded in the same way as described above.

つまり、ここ100年くらいの、戦争のパラダイムは、ほとんど変化していない、ということなのでしょう。

In other words, in the last 100 years or so, the paradigm of war has "changed little".

-----

それにしても、当時の我が国は、『太平洋戦争中の4年間、世界中から経済制裁を受けながら、よく戦争継続ができたものだ』と、感心しています。

Still, I am amazed at how our country was able to continue the war during the four years of the Pacific War while being subjected to economic sanctions from all over the world.

(いや、正確に言うと、経済制裁を受けたからこそ、エネルギー資源を求めて、南方進出(侵略)したのですが)

(No, to be precise, it was because of economic sanctions that they expanded (invaded) southward in search of energy resources.)

ともあれ、現在のロシア(の大統領)の考え方は、太平洋戦争前および戦争中の日本(の為政者や軍人)の思考形態と、びっくりするほど良く似ていることに気がつかされます。

At any rate, I notices that the current Russian (presidential) mindset is surprisingly similar to that of the Japanese (politicians and military) mindset before and during the Pacific War.

というか、そもそも、戦争の目的のほぼ100%が、『自国の生存権保障』を理由とした『隣国への攻撃(無力化、非軍事化)』なので、似ているのは当然とも言えますが。

In fact, it is not surprising that they are similar, since almost 100% of the purpose of war is to "attack (neutralize or demilitarize) a neighboring country" for the reason of "guaranteeing one's own right to exist".

未分類

  bus_num := b.(Ch2_info).Bus_number  ← 多分、ここを直す必要がある