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

長女が125CCのバイクに乗り替えてから、放置し続けてきたバイクが動かなくなった、というので、廃棄処分にするか相談を受けていたのですが ―― 私には、どうにも故障に見えない。

 

バイク屋で見て貰った時間は、3秒くらい。

簡単に言えば、「スピードメータに、オイル交換やらバッテリーやらの電飾表示が出ないので、充電してもダメ」ということらしい。ただし「スターターが壊れている可能性もあるが、まずはバッテリーを交換してみないと分からん」と言われました。

で、早速Amazonで購入。もっとも安いもので2000円、リチウムは16000円もするのでスコープ外として、今回はこれにしました。

購入の判断は、評価者数の多さと(1040個の評価)と、

評価の分布でした。私は、こういう正規分布に近い評価を見ると、安心できます。

さて、これが届くまでの間、バイクの空気圧の補充をしに、ガススタンドにいっていました。150~200PKは必要なのに、90くらいしか入っていませんでした。


本日の昼前にバッテリーが届いたので、さきほど5分くらいで、バッテリー交換しました(一度やっているので、コツは掴んでいる)。

ちゃんと充電されて配送されてきた。感心、感心。

バッテリーボックスの回りにガムテープを貼っているのは・・・以前、きちんとバッテリー収納ボックスを開けてみたはいいが、閉めれなかったんだろうな~、と推測。 → 保険証を貼りつけていたことを思い出した。

古いバッテリーを取り出す。

新しいバッテリーに交換。

無事、インジケータの表示とセル起動を確認して、バイク復活を確認しました。

バッテリー不良ごときで、バイクが廃棄されたかもしれないかも、と考えると、さすがの私も「もったいない」と思います。

敢えていうのであれば、「面倒くさい」あたりがしっくりきます。

3000円程度であれば、今後もバッテリー交換を繰替えせば良いと思うけど、もしかしたら、バッテリー液交換(で遊ぶ)かもしれないので、自分の為に、マニュアルを添付しておきます。

しかし、我が家には、当然のように、テスターや、電圧可変ができる安定化電源(ジャンク屋で拾ってきた)があるのだけど、一般家庭にはないかもしれません。

こういうDIYをサクっとできるのは、そういうことが好きな人間だけの特権かもしれません。

以上

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

先日、こちらの内容を公開しました。

A few days ago, I publishded the following diary.

―― 『とある宗教団体』を直撃する内容

予想を越える人数の方からの「購読希望」のメールが来ていまして、驚いています。

I was surprised to receive "subscription request" e-mails from more people than I expected.

(応募者が0人が、連続2日を経過した段階で、配布を予定しております)

(After zero applicant after two consecutive days, I will publish it. )

-----

今回のコラムの反応の少なさを見て、

Watching the reactions of this columns,

『外したかなぁ』とガッカリしていたのですが、今は、自分でもどう評価したらいいのか分からなくなっています。

I was disappointed, saying "I missed the mark", however, now I don't know the how to evaluate this column.

仮説ですが、

Just a hypothesis,

―― 宗教団体のネタにコメントすると、面倒くさいことになる

"I will be in trouble if I comment about a cult religion group"

という実情を反映しているかもしれないなぁ、と思っています。

I wonder if some readers might know the reality well.

-----

実際に、面倒くさいです ―― 私は、よく知っています。

In fact, they are the worst. I know well that.

江端さんの技術メモ

Golangは「一つのディレクトリの中に、一つの実行形式を作る」というスタイルようです。

で、そのディレクトリから、"go run ." とやるだけで、動き出すので、直感的に取扱いが良いです(まあ、好みの問題とは思います)。

├── RASSimulator
│   ├── bike.go
│   ├── cert.pem
│   ├── channel.go
│   ├── key.pem
│   ├── person.go
│   ├── real_person.go
│   ├── routing
│   │   └── librouting.go
│   ├── simulator.go
│   ├── util.go
│   └── virtual_person.go
├── REALSimulator
│   ├── bike.go
│   ├── cert.pem
│   ├── channel.go
│   ├── key.pem
│   ├── person.go
│   ├── real_person.go
│   ├── routing
│   │   └── librouting.go
│   ├── simulator.go
│   ├── util.go
│   └── virtual_person.go

で、現在、RASSimulator REALSimulator  の中身は、simulator.go 以外は、全く同じ となっていまして、simulator.go以外のファイルを変更する時は、その変更が同時に反映する必要があります(ライブラリ化するのが面倒くさい、という理由もある)。

一方のディレクトリのファイルを変更すれば、他方のディレクトリに直ちに反映されれば、良いのです。

これは、Unix系では"ln"コマンドを使えば、一発で解決する内容なのですが、これがWindows10でもできるかどうかかが分かりませんでしたが、どうやら、その方法はあるようです。

https://www.wannko.net/windows10/etc/sinlink.html

に記載がありました。

(というか、Microsoftも意地はらんと、Command.comのコマンド、全部UNIX系に全部合わせていけばいいのに、と思うんだが・・権利関係かなぁ? しかし、コマンドなんぞに権利が発生するのかなぁ?)

管理者モードでコマンドプロンプトを開いて、以下のようにフルパスで記載すると作成できるようです(私の場合フルパスで書かなかった場合失敗しました)

c:\Users\ebata\20220830rev196kai>mklink /D c:\users\ebata\20220830rev196kai\REALSimulator c:\users\ebata\20220830rev196kai\RASSimulator
c:\users\ebata\20220830rev196kai\REALSimulator <<===>> c:\users\ebata\20220830rev196kai\RASSimulator のシンボリック リンクが作成されました
ただ、このようにディレクトリを丸ごとリンクしてしまうと、ディレクトリにファイルを追加しても、他方のディレクトリにも反映されてしまって、困ったことになりました。
という訳で、面倒ですが、simulator.go以外のファイルは全て手動でリンクするようにします。
まずリンクを解除するために、REALSimulatorを削除します。
現在、こんな感じです。
c:\Users\ebata\20220830rev196kai>ls -la REALSimulator
lrwxrwxrwx 1 ebata ebata 45 Sep 5 15:53 REALSimulator -> /c/users/ebata/20220830rev196kai/RASSimulator
で、
c:\Users\ebata\20220830rev196kai>rm REALSimulator
c:\Users\ebata\20220830rev196kai>ls -la REALSimulator
ls: cannot access 'REALSimulator': No such file or directory
c:\Users\ebata\20220830rev196kai>ls -la RASSimulator
total 112
drwxr-xr-x 1 ebata ebata     0 Sep  5 15:59 .
drwxr-xr-x 1 ebata ebata     0 Sep  5 16:05 ..
-rw-r--r-- 1 ebata ebata 11551 Sep  3 20:41 bike.go
-rw-r--r-- 1 ebata ebata  1643 Jul 19 19:45 cert.pem
-rw-r--r-- 1 ebata ebata  5952 Aug 17 18:31 channel.go
drwxr-xr-x 1 ebata ebata     0 Sep  2 01:32 data
-rw-r--r-- 1 ebata ebata  1704 Jul 19 19:45 key.pem
-rw-r--r-- 1 ebata ebata 13029 Aug 28 19:50 person.go
-rw-r--r-- 1 ebata ebata  4259 Sep  3 16:33 real_person.go
drwxr-xr-x 1 ebata ebata     0 Sep  2 01:32 routing
-rw-r--r-- 1 ebata ebata 13164 Sep  5 15:58 simulator.go
-rw-r--r-- 1 ebata ebata 13163 Sep  5 15:57 simulator.go~
-rw-r--r-- 1 ebata ebata  8633 Sep  2 14:43 util.go
-rw-r--r-- 1 ebata ebata  3164 Sep  3 20:39 virtual_person.go
c:\Users\ebata\20220830rev196kai>
OK。これで、元の状態に戻っています。
では、迂遠ではありますが、simulator.go を除いたリンクを一斉に貼ります。
mklink c:\users\ebata\20220830rev196kai\REALSimulator\bike.go c:\users\ebata\20220830rev196kai\RASSimulator\bike.go
mklink c:\users\ebata\20220830rev196kai\REALSimulator\cert.pem c:\users\ebata\20220830rev196kai\RASSimulator\cert.pem
mklink c:\users\ebata\20220830rev196kai\REALSimulator\channel.go c:\users\ebata\20220830rev196kai\RASSimulator\channel.go
mklink c:\users\ebata\20220830rev196kai\REALSimulator\key.pem c:\users\ebata\20220830rev196kai\RASSimulator\key.pem
mklink c:\users\ebata\20220830rev196kai\REALSimulator\person.go c:\users\ebata\20220830rev196kai\RASSimulator\person.go
mklink c:\users\ebata\20220830rev196kai\REALSimulator\real_person.go c:\users\ebata\20220830rev196kai\RASSimulator\real_person.go
mklink c:\users\ebata\20220830rev196kai\REALSimulator\util.go c:\users\ebata\20220830rev196kai\RASSimulator\util.go
mklink c:\users\ebata\20220830rev196kai\REALSimulator\virtual_person.go c:\users\ebata\20220830rev196kai\RASSimulator\virtual_person.go
mklink /D c:\users\ebata\20220830rev196kai\REALSimulator\data c:\users\ebata\20220830rev196kai\RASSimulator\data
mklink /D c:\users\ebata\20220830rev196kai\REALSimulator\routing c:\users\ebata\20220830rev196kai\RASSimulator\routing

で、simulator.goだけは本体をコピペして、こんな感じになりました。

以上

 

 

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

アルコールを摂取しなくなってから、異様なほど「甘味」を欲するようになりました。

After stopping drinking, I come to prefer to get "sweets".

以前は、ケーキやシュークリームなどの洋菓子が好きだったのですが、現在は、もっぱら和菓子を食べています。

I used to like western sweets such as cakes and cream puffs, but now I prefer to eat Japanese sweets.

まず、洋菓子は和菓子よりカロリーが格段に多いことに加えて、和菓子は腹持ちがいいという感じがします(主観ですが)。

First of all,the calories of westren sweet is several times higer than those of Japanese sweets, and Japanese sweets seem to feel full subjectively.

夜中に、漫画「であいもん」などを読んでいると、和菓子が食したくなって、軽いパニックになります。

When I read the comic "Deaimon" in midnight, I come to panic to want to eat Japanese sweets.

和菓子専門店でなくても、スーパーで売っている、4つ入りで188円くらいの大福餅も、十分に美味しいです。

Daifukumochi, sold in supermarkets, even if that is not in Japanese sweets specialist, for about 188 yen for a pack of four, is good enough.

昔、安い和菓子はこんなに美味しくなかったような気がします ―― メーカー各社の営業努力に感謝です。

I don't think cheap Japanese sweets used to taste good. We appreciate the sales efforts of the manufacturers.

-----

総じて、最近、味覚のパラダイムシフトが激しいような気がします。

In general, I feel that there has been a severe paradigm shift in my taste recently.

この夏に一人で実家に帰省した際には、ずっと外食していました ―― 父も母もいない家で、食事を作って、キッチンを汚すのも面倒だな、と思いまして。

When going back to the country house, I was eating out all the time. Though I like cooking, I didn't like to dirty the kitchen in the house without my father and mother.

あんなに美味しいと思っていた「餃子の王将」定食や「吉野家」の牛丼が、昔のように感じられないことにショックを受けています。

I am shocked that the "Gyoza no Ousho" set meals and "Yoshinoya" beef bowls, which I thought were so delicious, do not feel like I used to.

『中華料理専門店の中華料理は、とても美味しい』ということを、今ごろ再発見しています。

I am rediscovering nowadays that 'Chinese food at Chinese specialty restaurants is very delicious'.

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

先日、こちらのコラムをリリースして頂きました。

Recently I released a column of mine.

先週金曜日に、EE Times Japan編集部から前半全面削除の提案を受けたのち、週末に江端が頭を抱えながら捻り出した、100%江端オリジナルの新しいカルト宗教が「江端教」です。

こちらにも書いてある通り、今回の原稿は、編集部からの「前半の全面削除」の提案を受け受けて、私から「前半の全面書き直し」を逆提案させて、書き直したものになっています。

As noted here, this column was rewritten in response to the editorial board's proposal to "delete the first half in its entirety" and my counter-proposal to "rewrite the first half in its entirety.

今回のコラムを読んで頂いた方は、すでにピーンと来ているとは思いますが、今回の私の「書き直し前のオリジナルの原稿」は、

If you've read this column, I'm sure you've already noticed. The "original column before the rewrite" is a

―― 『とある宗教団体』を直撃する内容

"Direct attack on 'a certain religious group'"

となっています。

-----

『せっかく書いたのだから、誰かに読んで貰いたいなぁ』と思っています。

I hope that, "I want someone to read it, since I completed it".

そこで、オリジナル原稿を、こっそり配布させて頂こうかと考えています。

Therefore, we would like to distribute the original manuscript in secret.

もし、購読ご希望の方がいらっしゃったら、このメールアドレスのサブジェクトに『オリジナル原稿購読希望』とだけ記載して、私に送付して下さい。

If you want to read it, please mail me with the mail-address adding the subject "Original manuscript subscription request".

あいさつ、自己紹介等、一切不要です。

No greetings, self-introductions, etc. are required.

希望者がまとまった時点で、一斉にURL(https://kobore.net/....)を、Bccで送付させて頂きます。

After some applicants come, I will send the URL(https://kobore.net/....) at the same time with Bcc style.

もちろん、送付して頂いたメールアドレスは、配送後に完全廃棄した上で、「江端ファイアウォール」を発動しますので、ご安心下さい。

「江端ファイアウォール」とは

Of course, please be assured that the email address you send us will be completely destroyed after delivery and the "Ebata Firewall" will be activated.

どれくらいの方が「オリジナル原稿」に興味を持たれるか、『私、気になります』("氷菓"風)。

I'm curious to see how many people will be interested in the "original manuscript" ("Hyouka" style).

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

本日、社内で、安全講話のプレゼン(?)してきました。

Today, I gave a presentation (?) on safety lectures in the company.

(以下、省略)

(Omitted hereafter.)

近日、詳細公開予定・・・できるかな?

More details will be released soon...I hope.

 

 

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

―― なぜ、江端は『サマータイムレンダ』についてのコメントを出さないのだ?

Why does not Ebata release his comments about "Summer Time Render"?

と思っている人がいるかもしれません。

Some people may think so.

時空間コンテンツフリークの江端が、沈黙を続けていることに、違和感を感じている方もいるかもしれません。

You may feel strange that Ebata, who is a space-time content freak, keeps silent about "Summer Time Render"

コメントを出さないのではなく、出せないのです。

I am not making a comment. I am unable to be making a comment.

なぜなら、途中の2話ほどをロストしているため、頭の中で話が繋がらないのです。

Because I failed to watch two episodes during the series,

もちろん、これは私の過失です。

You know, this is my fault.

シュタインズゲートの時は、イギリス出張中に、ホテルからノートPCで視聴していました。

At the time of Steins;Gate, I was on a business trip to England and watched it on my laptop from my hotel.

そんな私が、ここまで油断したのは、AmazonとNetFlixのせいです。

The reason I have been so caught off guard is because of Amazon and NetFlix.

大抵のアニメは、どちらかの動画サイトがフォローしていますが、『サマータイムレンダ』は、どっちもサポートしていませんでした。

Most anime is followed by one of the video sites, but "Summer Time Render" was not supported by either.

それを知ったときは、『マジか』と呟いて、頭が真っ白になりました。

When I knew it, I mumbled, 'Really?' and my mind went blank.

-----

時空間コンテンツは、その内容の性質上、連続視聴が必要になります。

A space-time content requires continues viewing due to the nature of its content.

まあ、その緊張感というのも、なんとも言えない楽しさなのですが。

Well, that tension is also an indescribable pleasure.

とは言え、どうしようかな?

Anyway, what shall we do?

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

本日は、コラムがリリースされた日なので、日記はお休みです。

Today, new my column is released, so I take a day off.

「お金に愛されないエンジニア」のための新行動論(6)

老後を生き残る「戦略としての信仰」は存在するのか

"A New Theory of Action for Engineers Who Are Not Loved by Money(6)"

Is there "faith as a strategy" for surviving in old age?

-----

今回の最後のページのレビューアーは、代打をお願いしています。

In the last part of this column as a reader's review, I asked for a substitute.

私のホームページの立ち上げ時からのお付き合い頂いている方には、「懐しい人が出てきたな」と思われているかもしれません。

Some people who have been with me since the launch of my website, may think that "it is him".

あいかわらず、キレキレのレビューです。お楽しみ下さい。

As usual, he gave me a keen review. Enjoy it.

それはさておき。

That's aside.

-----

今回のコラムの中では、カルト宗教団体「江端教」が登場します。

In this column, a cult group "Ebata-ism" will be featured.

万一、あなたが、その内容に「既視感」を覚えたとしても、それはあなたの錯覚です。

Even if you feel a sense of "deja vu" with the content, it is your illusion.

「江端教」は、先週金曜日に、EE Times Japan編集部から前半全面削除の提案を受けたのち、週末に、江端が頭を抱えながら捻り出した、100%江端オリジナルの新しいカルト宗教です。

Ebata-ism" is a new cult religion that I had major renovated over the last weekend, after receiving a proposal from the EE Times Japan editorial board last Friday to delete the first half in its entirety.

―― 決して、深く勘繰ってはなりません

"Never, ever, be too deeply in the dark"

そういうことをすると、あなたも私も編集部も、みんなが不幸になります。

That makes everyone unhappy, including you, me, and the editorial staff.

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

私、このテレビの運搬の経験をしてから、聖書の内容に疑義の目を向けています。

After this TV carrying experience, I have been skeptical of the Bible's content.

75kg超えのテレビを、普通の夫婦二人で、2階に運び、さらにタンスの上に上げる方法(後編)

ナザレのイエスは、重量70kg~90kgの十字架を背負って、ゴルゴダの丘までの1.6kmを歩かされたと言われています。

Jesus of Nazareth is said to have walked the 1.6 km to the Hill of Golgotha carrying a cross weighing 70 kg to 90 kg.

信じられません。

I can't believe it.

嫁さんとふたりで、75kgのプラズマディスプレイを、30cmの移動を試みただけで、腰に激痛が走りました。

My wife and I had severe pain in our lower back just trying to move a 75 kg plasma display by 30 cm.

私たち夫婦が、このテレビを二階に上げて、さらにタンスの上に上げるのに、どれだけのコストと時間をかけたことか。

I can't tell you how much money and time my wife and I spent getting this TV upstairs and further up the wardrobe.

イエスが、重量級のマッチョであったという聖書の記述はありませんし、あったとしても、取っ手などもない十字架を背負うことなどできる訳がありません。

There is no biblical account of Jesus being a heavyweight macho man, and even if he was, there is no way he could carry a cross with no handles.

重量70kg~90kgの十字架を移動させる(地面の上をずらす)速度は、時速2メートルが限界だと思います。

The speed at which a cross weighing 70 kg to 90 kg can be moved (shifted over the ground) is limited to 2 meters per hour.

とすれば、ゴルゴダの丘の到着時間は、800時間。

If so, the arrival time at Golgotha Hill is 800 hours.

24時間不眠不休で行ったとしても、33日間はかかる計算です。

Even if he worked 24 hours a day, sleepless nights, it would take 33 days to complete the project.

3日目経たずに、過労死は確実です。

Before the third day has passed, overwork is a certainty.

-----

さて、夏休み最終日前日ですね。

Well, it is the day before the last day of summer vacation.

夏の自由研究に困っているみんな。

Everyone who is having trouble with their summer free research.

お父さんかお母さんに頼んで、DIYショップで70kg相当の木材を購入してもらって、これを十字架形状に加工して、自分が実際にどのくらい運べるか、という検証実験をやってみよう!

Ask your father or mother to buy 70 kg worth of lumber at a DIY store, and then modify it into a cruciform shape and do an experiment to see how much you can actually carry!

多分、学校で大ウケすることは間違いなしです。

It will probably be a big hit at your school.

テレビ局が取材にくるかもしれませんよ。

TV stations might come to cover the event.

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

私は基本的に、日用品が壊れたら修理しています。

I basically fix commodities when they are broken.

20年前に購入した3980円の電波時計は、自分で3回の電池交換と、4回のバンド交換を行っています。(最近、秒の液晶が見えなくなってきました)。

I purchased a 3980-yen radio-controlled watch 20 years ago and have replaced the battery three times and the band four times myself. (Recently, the seconds LCD has become invisible).

バンド交換に必要な軸穴が欠けてしまっていますので、瞬間接着剤で、強制的にくっつけています。

The shaft hole required to replace the band is missing, so I used instant adhesive to force it to stick.

バッグやGパンの穴も、木工用ボンドで補修して、使っています。

I have also repaired holes in bags and trousers with wood glue and continue to use them.

パソコン、冷蔵庫、洗濯機、バイクも、マニュアル読んで、分解して直すことが多いです。

I often read manuals and disassemble and fix computers, refrigerators, washing machines, and even motorcycles.

ただ、私は、これを「美徳」とか考えていません。

However, I do not consider this a "virtue" or anything like that.

「もったいない精神」など、1mmも考えたこともありません。

I have never thought about the "mottainai spirit" even for a millimeter.

そして、「貧乏くさい」という訳でもないと思います ―― 日常品を買う程度のお金は持っているつもりです。

And I don't think I'm "poor" -- I think I have enough money to buy commodities.

-----

敢えていうのであれば、「面倒くさい」あたりがしっくりきます。

Frankly speaking, "bother" is good fit for me.

新しいものを購入して、それに「慣れる」までのプロセスが、私は面倒なのです。

I feel to bother to purchase something new and accustom it.

あとは「修理が好き」ということですね。

Basically, I like repair.

-----

上手く修理できると、「勝ったような気」がするのですが、この気持ちを、他の人に理解して貰おうとも思っていません。

When I successfully fix it, I feel "I won", however, I don't expect others to understand this feeling either.

嫁さんは、そんな私を、諦めているようですが。

My wife seems to have given up on me like that.