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

本日、家族全員で、劇団キャラメルボックスの「サンタクロースが歌ってくれた」を観劇してきました。

Today, my whole family went to see the play "Singin' with Santa Claus" by the Caramel Box Theater Company.

2019年5月に活動を休止したと連絡を受けた時には、『これから、我が家のクリスマスイベントはどうすればいいんだ?』と、うろたえたものです。

When I got the call in May 2019 that they had suspended their activities, I was stumped, 'What am I going to do about our family's Christmas events now?'

その後、キャラメルボックスの代替となる劇団が見つけられずに、江端家の冬の観劇イベントも休止を余儀なくされてきました。

Since then, we have been unable to find a replacement for Caramel Box and have been forced to suspend the Ebata family's winter theater events.

2年半ぶりの復活を聞きた時は、喜んだものです。

I was delighted when I heard that it was back after two and a half years.

-----

嫁さんから、今回の観劇の「希望する日時と時間」を尋ねられたのです、

My wife asked me for my "preferred date and time" for this play.

『仕事なんてどうでもいい。チケットが取れた時間が、私のスケジュールだ』

'You don't care about my work. The time we get the ticket is my schedule,'

と言い切りました。

I said.

-----

笑って、泣いて、これまで同様『外れのない』キャラメルボックスの舞台を、十分に堪能させて頂きました。

We laughed, we cried, and we fully enjoyed the stage performance of Caramel Box, which has never failed us.

うん、やっぱり、キャラメルボックスの演劇は最高です。

Yes, after all, Caramel Box plays are the best.

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

三国志で(基本的には悪役で)登場する「曹操」は、人材マニアとして有名なようです。

Cao Cao", who appears (basically as a villain) in the Romance of the Three Kingdoms, seems to be famous as a human resources enthusiast.

武勇のみならず、芸術、技術に長じた者、そして、軍師なども片っ端から集めていたそうです。

He collected all kinds of people who were skilled in military valor, art, and technology, as well as military strategists.

しかし、私は、

However I think that

―― 軍師なんぞをたくさん集めて、どうするんだ?

"What was he going to do with a bunch of military strategists?"

と思うのです。

-----

軍師とは、軍を指揮する君主や将軍の、戦略指揮に助言を与える者のことです。

A military strategist is a person who advises the monarch or general commanding an army on strategic command.

そんなのがたくさんいて、それが異なった意見を言いあったら、君主や将軍は作戦立案で悩むだけだろう、と思うのです。

I think that if there were many such people, all of whom had different opinions, monarchs and generals would have a hard time planning their strategies.

ノルマンディ上陸作戦を立案したアイゼンハワー将軍は、『"私1人が作戦の最終決定者"という条件でなければ、作戦の指揮は引き受けない』と言ったそうです。

General Eisenhower, who planned the Normandy landings, said, "I will not accept the command of the operation unless I alone am the final decision-maker.

(これは裏を取れていませんが)、MicrosoftのWindowsOSのコアは、基本的に1ケタの人間のチームで作っている、という話も聞きました。

(I haven't been able to find any evidence of this.) I was also told that the core of Microsoft's Windows OS is basically built by a team of a few people.

-----

デスマーチに陥いったチームに人材を投入するのは組織の常道ですが、それは現場にどえらい混乱を与えます。

It is a common practice for organizations to put people into a team that is in a death march, but it causes a lot of confusion in the field.

新メンバの教育コストに、チームのリソースを持っていかれるからです。

This is because the cost of training new members takes up a lot of the team's resources.

私、一度、このような炎上したチームに投入されたことがあるのですが、何も命じられなかったので、何もしませんでした ―― 実に3ヶ月間。

I was put on such a flaming team once, but I didn't do anything because I wasn't ordered to -- for three months, actually.

この3ヶ月間で、私はLinuxカーネルのコードを、じっくりと勉強することができました。

Over the past three months, I have been able to study the Linux kernel code at length.

もちろん、定期報告会では、適当な作り話をでっち上げて、報告していましたが。

Of course, I had to make up some random story to report at the regular briefing.

-----

「曹操」に集められた軍師の大多数も、適当なことをやって 禄を食んでいたんじゃないかなー、と思っています。

I believe that the majority of the military strategists gathered by Cao Cao were also doing random things to earn their stipends.

だって、三国志に登場する曹操の軍師って、結局3人くらいしかおらず、大体その3人が作戦を提案していますから。

Because, after all, there are only about three military strategists for Cao Cao in the Romance of the Three Kingdoms, and those three are usually the ones who propose the strategy.

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

先日、テレビを見ていたときのことです。

The other day, when I was watching TV, I heard the story.

『学生のころに、人気者だったり、成績が優秀だったり、異性にモテていた奴が、社会的に成功していない』

"The guys who were popular, got good grades, and were popular with the opposite sex in school have not been successful in society.

という話が出ていました。

私もかねてより、そう思っていましたので、『やっぱりそうなのか』と深く納得しました。

I had been thinking that way for a long time, so I was deeply convinced that it was true.

-----

私、この理由について、一つの仮説があります。

I have a hypothesis about the reason for this.

『学生のころに、人気者だったり、成績が優秀だったり、異性にモテていた奴は、学生時代の連続線上に、社会人の人生があると勘違いしてしまうから』

"Those who were popular, got good grades, or were popular with the opposite sex when they were in school will mistakenly believe that their working life is on the same continuum as their school days"

学生の頃のノリと軽さと要領良さは ―― もちろん社会人になっても役に立つことはあります。

Of course, being easy and smart in a college period, can come in handy in the working world.

しかし、社会人の人生は長いので、ノリと軽さと要領良さだけで、対応できる時間は短いのです。

However, the life of a working adult is long, so, being the time for easy and smart becomes short.

つまるところ、真面目、誠実、勤勉、そして粘り強いこととの方が、社会人としては重要です。

At the end of the day, seriousness, honesty, diligence, and persistence are more important for a working person.

なぜか。それは、それらに人間としての価値があるから ―― ではありません。

Why? It's not because they have value as human beings.

ぶっちゃけ、そんなことは、どーでも良いことです。

To be honest, it doesn't really matter.

一言で言えば、社会人は長期戦だからです。

In a nutshell, it is because working people have to fight a long-term battle.

長期戦を闘うパートナーが、ノリの軽さと要領良さだけの奴であれば、私が困るんです。

I'd be in trouble if my partner is just easy and smart in a long-term battle.

これを、私は「戦略としての誠実」と称呼しています。

I call this "integrity as a strategy".

-----

で、何が言いたいかというと、

So, what I'm trying to say is...

ノリの軽さ、要領良さもなく、そして、真面目、誠実、勤勉、粘り強さもない、この私が ――

I'm not easy, I'm not smart, and I'm not serious, honest, diligent, or tenacious.

『社会的に成功していない』というのは、極めて理にかなっているなぁ、と思っているだけです。

I just think that it is natural that "I'm not socially successful".

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

何だか分からんけど、動いたのでメモっておきます。

/C/Users/ebata/kese/VSC_C++_test

というディレクトリに、main.cpp とsub.cppを置く。

#include <stdio.h>

int sub(int, int);

int main() {
    int a = sub(2, 3);
    printf("%d\n", a);

    return 0;
}
#include <stdio.h>

int sub(int a, int b) {
    int c;
    c = a + b;

    return c;
}
  • 「Ctrl+Shift+P」 で、コマンドパレットを開く
  • 「C/C++: Edit configurations...」 を選択
  • 「.vscode」 フォルダの中に 「c_cpp_properties.json」 ファイルが作成される

c_cpp_properties.jsonは、以下のようになっている。

{
    "configurations": [
        {
            "name": "Win32",
            "includePath": [
                "${workspaceFolder}/**"
            ],
            "defines": [
                "_DEBUG",
                "UNICODE",
                "_UNICODE"
            ],
            "compilerPath": "C:\\msys64\\mingw64\\bin\\gcc.exe",
            "cStandard": "gnu17",
            "cppStandard": "gnu++14",
            "intelliSenseMode": "windows-gcc-x64"
        }
    ],
    "version": 4
}
  • 「Ctrl+Shift+P」 で、コマンドパレットを開く
  • 「Tasks: Configure Task」 を選択する
  • 「テンプレートから tasks.json を生成」 をクリック
  • 「Others 任意の外部コマンドを実行する例」 をクリック
  • 「.vscode」 フォルの中に 「tasks.json」 ファイルが作成される
  • 「tasks.json」 を下記のように変更する
{
    "version": "2.0.0",
    "tasks": [
        {
            "label": "sample",
            "type": "shell",
            "command": "g++",
            "args": [
                "-g",
                "main.cpp"
            ],
            "group": "build"
        },
        {
            "type": "cppbuild",
            "label": "C/C++: g++.exe アクティブなファイルのビルド",
            "command": "C:\\msys64\\mingw64\\bin\\g++.exe",
            "args": [
                "-fdiagnostics-color=always",
                "-g",
                "${file}",
                "sub.cpp" // ←ここがポイント
                "-o",
                "${fileDirname}\\${fileBasenameNoExtension}.exe"
            ],
            "options": {
                "cwd": "${fileDirname}"
            },
            "problemMatcher": [
                "$gcc"
            ],
            "group": {
                "kind": "build",
                "isDefault": true
            },
            "detail": "デバッガーによって生成されたタスク。"
        }
    ]
}
  • 「Ctrl+Shift+D」 でデバッグを実行する
  • 環境の選択のドロップダウンで、「C++ (GDB/LLDB)」を選択
  • 「.vscode」 フォルの中に 「launch.json」 ファイルが作成される
{
    // IntelliSense を使用して利用可能な属性を学べます。
    // 既存の属性の説明をホバーして表示します。
    // 詳細情報は次を確認してください: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [
        {
            "name": "g++.exe - アクティブ ファイルのビルドとデバッグ",
            "type": "cppdbg",
            "request": "launch",
            "program": "${fileDirname}\\${fileBasenameNoExtension}.exe",
            "args": [],
            "stopAtEntry": false,
            "cwd": "${fileDirname}",
            "environment": [],
            "externalConsole": false,
            "MIMode": "gdb",
            "miDebuggerPath": "C:\\msys64\\mingw64\\bin\\gdb.exe",
            "setupCommands": [
                {
                    "description": "gdb の再フォーマットを有効にする",
                    "text": "-enable-pretty-printing",
                    "ignoreFailures": true
                },
                {
                    "description": "逆アセンブリ フレーバーを Intel に設定",
                    "text": "-gdb-set disassembly-flavor intel",
                    "ignoreFailures": true
                }
            ],
            "preLaunchTask": "C/C++: g++.exe アクティブなファイルのビルド"
        }
    ]
}

こんな感じで出てくる。

現時点では動いたり動かなかったりと、安定していません。

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

「ファイル」 → 「フォルダを開く」でフォルダを選択すれば、settings.jsonが出てこなくなる

フォルダの中に、".vscode"のディレクトリがって、その中には、以下のファイルが入っていることも必要(多分)

Visual Studio Code C/C++ 検討中

 

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

今週末は、コラム原稿締切前の週末 ―― 修羅場週末です。

This weekend is the weekend before the deadline for my column manuscript -- the Weekend of Carnage

次女へのインタビューメモの写真で、ご勘弁下さい。

Please bear with me as I only have pictures of my interview notes for my second daughter.

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

■スマートシティはなぜ失敗し続けるのか

"Why do smart cities keep failing?"

■スマートシティにおいて、データ収集は悪なのか? トロントとサイドウォーク・ラボが失敗したワケ

"Is data collection a bad thing in smart cities? Why Toronto and Sidewalk Labs Failed"

■スマートシティ計画が“スマート”には進まなかった都市の教訓

"Lessons from cities where smart city plans did not go 'smart'"

などの、刺激的な題目の記事があります。

There are articles with provocative titles as the above.

私の私見ですが、その理由は「ITだから」だと思います。

In my opinion, the reason is "IT".

もっと簡単に言えば「何をやっているか分からないから」です。

To put it more simply, it's because "we don't know what they're doing".

-----

当然ですが、スマートシティをデザインしている人は、上空から都市を眺めるような「神の視点」で都市を把握します。

Naturally, those who design smart cities grasp the city from a "God's perspective," as if looking at it from air

しかし、スマートシティの利用者には、そのようなデザイン―― 文字通りの「トップダウン・デザイン」―― は見えません。

However, smart city users do not see such design - literally "top-down design" - as such.

そういう意味では、ビルとか、施設とか、交通機関とか、あるいは、庁舎・学校・公民館・博物館・テーマパークなどの「ハコモノ」と言われているものの用が、「何をやっているか」は分かります。

In this sense, we can understand what is being done in buildings, facilities, transportation, or "hakomono" such as government buildings, schools, community centers, museums, and theme parks.

さらに、利用者の視点で、それらの「失敗」と「成功」もクリアです。

In addition, those "failures" and "successes" are also clear from the user's perspective.

なにより、「失敗」した場合に、責め立てる相手(個人も法人も)が明確になる点は、大きいです。

Above all, it is important to clarify who to blame (both individuals and corporations) in case of "failure".

-----

スマートシティは、その効果を明確に言えば、利用者の理解も得られると思います。

I believe that smart cities can be understood by users if their effects can be clearly stated.

例えば、

For example.

「私たちの街の利用エネルギーを半分にするけど、移動サービスは現状のまま維持できます」

"We'll cut our city's energy use in half, but we'll still be able to maintain our mobility services."

とか、

or

「この街では、自家用車を持たなくても問題なく生活できる街です」

"In this city, you don't need to have your own car to get by"

とか、「利用者側の言葉」で、ちゃんと言えるモノにすれば良いのです。

It is enough if they can say it properly in the "user's language".

-----

ただ、スマートシティのサービスプロバイダが「行政」になるという点が面倒なのです。

However, the fact that the service provider for smart cities will be the "government" is troublesome.

『市役所の人数を半分にしますが、行政サービスは現状のまま維持できます』

"We will halve the number of people at City Hall, but maintain the current level of government services."

と、市役所の人自身に言わせることができるか。

The question is, can they say the above phrase to the people at city hall themselves?

スマートシティを推進すると、スマートシティを推進する人たちの首を締める ――

Promoting smart cities strangles the people who promote smart cities --

ここに、スマートシティのジレンマがあります。

This is the dilemma of smart cities.

未分類

#include <stdio.h>

int main() {
    printf("Hello World\n");
    return 0;
}

■launch.json

{
    // IntelliSense を使用して利用可能な属性を学べます。
    // 既存の属性の説明をホバーして表示します。
    // 詳細情報は次を確認してください: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [
        {
            "name": "g++.exe - アクティブ ファイルのビルドとデバッグ",
            "type": "cppdbg",
            "request": "launch",
            "program": "${fileDirname}\\${fileBasenameNoExtension}.exe",
            "args": [],
            "stopAtEntry": false,
            "cwd": "${fileDirname}",
            "environment": [],
            "externalConsole": false,
            "MIMode": "gdb",
            "miDebuggerPath": "C:\\msys64\\mingw64\\bin\\gdb.exe",
            "setupCommands": [
                {
                    "description": "gdb の再フォーマットを有効にする",
                    "text": "-enable-pretty-printing",
                    "ignoreFailures": true
                },
                {
                    "description": "逆アセンブリ フレーバーを Intel に設定",
                    "text": "-gdb-set disassembly-flavor intel",
                    "ignoreFailures": true
                }
            ],
            "preLaunchTask": "C/C++: g++.exe アクティブなファイルのビルド"
        }
    ]
}

■task.json

{
    // See https://go.microsoft.com/fwlink/?LinkId=733558
    // for the documentation about the tasks.json format
    "version": "2.0.0",
    "tasks": [
        {
            "label": "hello",
            "type": "shell",
            "command": "g++",
            "args": [
                "-g",
                "hello.cpp"
            ],
            "group": {
                "kind": "build",
                "isDefault": true
            },
            {
                "type": "cppbuild",
                "label": "C/C++: g++.exe アクティブなファイルのビルド",
                "command": "C:\\msys64\\mingw64\\bin\\g++.exe",
                "args": [
                    "-fdiagnostics-color=always",
                    "-g",
                    "${file}",
                    "-o",
                    "${fileDirname}\\${fileBasenameNoExtension}.exe"
                ],
                "options": {
                    "cwd": "${fileDirname}"
                },
                "problemMatcher": [
                    "$gcc"
                ],
                "group": "build",
                "detail": "コンパイラ: C:\\msys64\\mingw64\\bin\\g++.exe"
            }
        ]
    }

■c_cpp_properties.json

{
    "configurations": [
        {
            "name": "Win32",
            "includePath": [
                "${workspaceFolder}/**"
                "C:\\msys64\\mingw64\\include"
            ],
            "defines": [
                "_DEBUG",
                "UNICODE",
                "_UNICODE"
            ],
            "compilerPath": "C:\\msys64\\mingw64\\bin\\gcc.exe",
            "cStandard": "gnu17",
            "cppStandard": "gnu++14",
            "intelliSenseMode": "windows-gcc-x64"
        }
    ],
    "version": 4
}

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

著作権侵害の同人誌でも、コミケ会場なら許される?マンガ家の太鼓判「黙認ライセンス」

Copyright Infringing Doujinshi Allowed at Comiket? A manga artist's "tacit license".

というコラムを、以前寄稿致しました。

I contributed to a column titled, before.

この時、漫画家の赤松健先生にインタビューさせて頂きました。

At this time, I had the opportunity to interview the manga artist Ken Akamatsu.

インタビューの前に、著作権法、クリエイティブコモンライセンス、児童ポルノ禁止法等について、もの凄い勢いで勉強したのを覚えています。

I remember learning a tremendous amount about copyright law, creative common license, child pornography laws, etc. before the interview.

その後も、色々と調べて、自分なりの見解を書いてきました(なお、最新の改正まではレビューできていません)。

Since then, I have been doing a lot of research and writing my own views (yet I have not been able to review up to the latest revision).

-----

赤松健先生が、自民党から参院選出馬の意志を表明されているようです。

Mr. Ken Akamatsu has announced his intention to run for election to the House of Councillors from the Liberal Democratic Party.

『この問題は、赤松先生に担当して頂くのが適任だろう』と、ちょっとホッとした気持ちになっています。

I was a little relieved to hear that Mr. Akamatsu would be the best person to handle this problem.

ただ、『自民党かぁ・・・。あそこでやっていくのは大変だぞ』とも思っています。

But I'm also thinking, 'The Liberal Democratic Party.... It's going to be tough to make it in there,' I think.

自民党は、右はネオナチより過激で、左は日本共産党でも遠慮する極左がいる、という無数の頭をもつヒュドラのような化け物政党です。

The LDP is a hydra-like monstrosity with a myriad of heads: on the right, more radical than neo-Nazis, and on the left, a far left that even the JCP refrains from.

普段はバラバラで活動しているのに、いざ選挙戦に入ると、無数の頭が1つの頭になる ―― 勝つためなら、何でもやる ―― という政党です。

This is a party that usually works in isolation, but when it comes to the election campaign, the myriad heads become one -- doing whatever it takes to win.

-----

ところで、先週記載しました本件につきまして、応募して頂いた方1名にご進呈致しました。

By the way, I have given the prize to one person who applied for it, as mentioned last week.

ご報告まで。

Just to report.

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

Nスペの「デジタルハンター 謎のネット調査集団を追う~」を見ました。

I watched the N-SPE program "Digital Hunter: Chasing a Mysterious Internet Research Group".

公開されている情報(オープンソース)だけを使って、政府や犯罪集団を追い詰める、「オープン・ソース・インベスティゲーション」(公開情報調査)に関するキュメンタリー番組です。

This is a documentary program on "Open Source Investigations", which uses only publicly available information (Open Source) to hunt down governments and criminal groups.

- 出所不明の動画から、集団虐殺の場面の場所と、虐殺に参加した人間までも特定

- Identified the location of the massacre and the people who took part in it from the video of an unknown source.

- 新疆ウイグル自治区にある「職業訓練や反テロのための教育施設」を称呼する建物に注目して衛星画像を分析し、隔離施設であることを特定

- identified "quarantine facilities", that Chinese Government Calls for "Vocational Training and Educational Facilities for Anti-Terrorism" - Looking at buildings in Xinjiang Uyghur Autonomous Region, analyzing satellite images

- アメリカ政府が中東の砂漠に置いた秘密基地の存在を特定

- Identified the existence of a secret base placed by the US government in the deserts of the Middle East.

- マレーシア航空機の撃墜事件のロシアの関与を明らかにした上で、ロシア政府の情報機関の幹部や元幹部らを含む容疑者たちを特定

- Identified suspects, including senior and former members of the Russian government's intelligence community, in the case of Russia's involvement in the downing of the Malaysian airliner.

という成果を上げています。

These are the result of their efforts.

-----

この規模や成果には遠く及ばないのですが、私も、ツイッターのテキスト解析で、人身事故で運行遅延の被害にあった人の心理分析を行ったことがあります。

Although it is far from this scale and results, I have also conducted psychological analysis of people who were victims of delays due to personal injury by analyzing Twitter text.

その結果、なかなか興味深いことも分かりました。

As a result, I found out some interesting things.

例えば、事故に関してのリツイートは多くても、自分の意見を表明するツイートは、驚くほど少ない、ということなどです。

For example, there were many retweets about the accident, but surprisingly few tweets expressing their own opinions.

―― なるほど、言い難いことは『自分では語らずに、人に言わせる』のは当然だよなぁ

"I see, it's natural to 'let others say what's hard to say, without saying it ourselves"

と感心したものです。

I was impressed.

データアナリストの1人として、「たとえ匿名性の高いSNSといえども、自分の発言には注意した方が良い」とだけは、申し上げたいと思います。ひとたび、あなたが、性格や根性が悪いデータアナリストに目を付けられれば、サンプルにされ、真っ裸に解析されかねないことを、あらかじめ申し上げておきたいのです。国家権力が、その気になれば、もっと簡単に本人を特定(以下、自粛)
(同ページから抜粋)

-----

オープンソースだけでも、かなり多くのことが分かるものです。

Open source alone can tell you quite a lot about what is going on.

しかも、設備コスト(×時間リソース)は驚くほど安い。

Moreover, equipment costs (x time resources) are surprisingly low.

―― 彼らの武器はラップトップのパソコンだけ

"Their only weapon is a laptop computer"

という、フレーズもなかなかキャッチーで良いです。

This phrase is also quite catchy.

-----

『なんで、当時の私は、こういうアプローチができなかったのかなぁ』と、自分の学生時代を省みています。

I've been thinking about my own school days and wondering, 'Why couldn't I have taken this approach back then?'

まあ、当時は、インターネットもなかったし、情報公開請求もなかったかもしれないけど、それでも、理系学生としては、

Well, back then, there was no Internet, and there may not have been a FOIA request, but...

「資料と数値だけで、権力や当局を追い詰めていく」

"I could hunt down the powers that be and the authorities with nothing but data and numbers."

というやり方もあったはずなのに ―― と、少々落ち込んでいます。

As a science student... I am a little depressed.

まあ、そういった反動で、この連載を続けているのかもしれませんが。

Well, maybe it's because of those repercussions that I'm continuing with this series.