2023,江端さんの技術メモ

公共交通指向型開発(TOD: Transit Oriented Development) - 公共交通機関に基盤を置き、自動車に依存しない社会を目指した都市開発。
「交通隣接型開発」(TAD:‘transit-adjacent development’) 公共交通拠点と隣接して、高密度、大規模開発を行うが、機能上に、互い協調的な開発モードが不足である。

未分類

ちょっと調べてみたところ、使えるみたいです
(いつ入手したのか忘れましたが、倉庫に入っていました)。

2023,江端さんの技術メモ

https://www.marble-lab.com/item_3412.html

を参考にさせていただき、自分用の手順書(マニュアル)を作成。

(Step 1) CSVファイルの作成
1行目に、各列の名前が入っていなければならない。
ファイルはこちら → test_user_list_14.csv

ファイルはこちら → test_user_list_14.csv

(Step 2) Google MAPの立ち上げ

(Step 3) Google MAPの立ち上げ

↓の赤丸をクリック

今は、こっちのインタフェースに、なっているようです。

(Step 4) 「マイプレイス」を選択

(Step 5) 「マイマップ」→「地図を作成」

(Step 6) 「インポート」を選択

(Step 7) ファイル(test_user_list_14.csv)をドラッグ

(Step 8) 緯度、経度を選択

(Step 9) マーカーのタイトルを選択

(Step 10) マーカーの色を変更する(→黒)

(Step 11) マーカーをクリックすると情報が表示される

以上

KeyWord: Google MAP、 マーカー、 アイコン、 csv, エクセル

2023,江端さんの忘備録

我が家の暖房器具は、基本的にはガスまたは石油ファンヒータです。

Our heating system is basically gas or oil fan heaters.

しかし、一台だけアナログの石油ストーブがあります。

However, there is one analog oil heater.

期間限定 個別送料無料】コロナ 石油ストーブ 木造6畳用 RX-2222YHD | 家電・電化製品 | ホームセンター通販【カインズ】

アナログ、とは、いわゆるコンセントのない、自立起動・運用ストーブであり ―― まあ、普通のストーブで、普段は全く使っていません。

Analog, is what is called an unplugged, self-starting and operating stove -- well, a normal stove, but we usually don't use it at all.

東日本大震災(2011年3月11日)の時、大規模なブラックアウト(停電)と、計画停電が発生しました。

During the Great East Japan Earthquake (March 11, 2011), there was a massive blackout and rolling blackouts.

加えて、現在の国内のエネルギー供給状況を考えると、近い未来に「数日~十数日間の停電」は発生するだろうと考えています。

In addition, given the current domestic energy supply situation, I believe that "several to a dozen days of power outages" will occur in the near future.

-----

で、先日、このストーブの実証実験を行ってみた結果、無事に、ストーブの起動と運用を確認したのですが

So, the other day, I conducted a combustion experiment on this stove, and I was able to confirm that the stove was up and operational, without incident, however,

―― 火力が弱すぎる

-- Too little firepower.

■ストーブの上に置いたヤカンの水が沸騰しない

- The water in the kettle on the stove does not boil.

■「対流熱」の効果が発生せず、リビングの温度が上っていかない

- The effect of "convective heat" does not occur and the living room temperature does not rise.

■ストーブに近寄って、直接手をかざして「放射熱」を得ることで精一杯

- What I do my best is to get "radiant heat" by approaching the stove and holding my hand directly over it.

という結果に、正直、呆然としています。

I am honestly stunned by the results.

-----

私が小学生の頃は、このようなストーブしかなく、大学の下宿でもこのタイプのストーブでした。

When I was in elementary school, this was the only type of stove available, and I used the same type of stove in my college boarding house.

そういえば、始めて石油ファンヒータを体験した時、あっと言う間に部屋の温度が上昇し、『魔法か!』と思ったことを思い出しました。

I remember the first time I experienced an oil fan heater, the room temperature rose so quickly that I thought, "Is it magic?"

逆に言えば、私達は、快適さの為に、あの頃と比較して、整数倍のエネルギー消費をしている、ということのようです。

Conversely, I seem to be consuming integer times more energy for comfort than we did back then.

しかし、その一方で、石油ファンヒータに内蔵されたセンサとコンピュータが無駄なエネルギー消費を留めている、とも言えるようで、正確な比較はできてないです。

On the other hand, however, it seems that the sensors and computers built into the oil fan heaters are holding back unnecessary energy consumption, and I have not been able to make an accurate comparison.

というのは、今回の燃焼実験では「アナログ石油ストーブの石油消費の速度が、石油ファンヒータよりも早かった」ように思えたからです。

This is because in this combustion experiment, "the rate of oil consumption of the analog oil heater seemed to be faster than that of the oil fan heater.

-----

ともあれ、我が家では、「停電に供えたアナログストーブの準備」は完了し、ホッとしています。

Anyway, I am relieved that the "preparation of analog stoves for power outages" was complete in our home.

『ブラックアウトになったら、ストーブの前に家族が固まって暖を取る』という目処はつきました。

I could get a good prospect of 'When the blackout hits, the family will gather in front of the stove to keep warm'

2023,江端さんの忘備録

現在、私は、PCにSAIをインストールして、マウスを使ってイラストを作っています。

I currently have SAI installed on my PC and use a mouse to create illustrations.

本格的にデジ絵をマスターしたい訳ではないのですが、iPadのibisPaintを使って、リモートワークのホワイトボード代わりに使えないかな、と思っています。

I don't want to master digital painting in earnest, but I am wondering if I can use ibisPaint on my iPad as a whiteboard for remote work.

で、今悩んでいるのは、Apple Penを買うか、廉価版を買うか、です。

So now I am wondering if I should buy the Apple Pen or the lower priced version.

- Apple Pen(第2世代)は、19000円以上

- Apple Pen (2nd generation) is over 19,000 yen

- KINGONEスタイラスペンは、3000円以下

- KINGONE stylus pen is less than 3000 yen

です。

『Apple Pen2本 + αで 、iPadが1台買える』と思うと、Apple Penの購入には、抵抗があります。

I am reluctant to buy an Apple Pen when I think that "two Apple Pens + α can buy one iPad".

調べているうちに、Apple Penのメリットは、筆圧検知らしい、ということが分かってきました。

In the course of my research, I have learned that the advantage of the Apple Pen seems to be pressure detection.

太い線と細い線を、筆圧で変化させられる、という点が、デジ絵を仕事または趣味にしている人には、非常に重要らしいのです。

The ability to change between thick and thin lines with brush pressure is said to be very important for people who are into digital painting as a job or a hobby.

これ、分かります。

I understand this.

現在、私も、SAIを使っていて、実際、線の太さを変えるのに、一度メニューに戻らなければならないのですが、これが、『結構うっとうしい』のです。

I am also currently using SAI and actually have to go back to the menu once to change the line thickness, which is "quite annoying".

-----

という訳で、今、悩んでいます。

So, I am now struggling.

これまで通り、PC + SAI + マウスで絵を作り続けてもいいのですが、

I can continue to create pictures with my PC + SAI + mouse as I have in the past, but

『次女が、iPad + ibisPaint + Apple Pen で、サクサクと、高品質の作品を量産しているのを見ていると、なんか対抗したくなる』

"When I see my second daughter creating high quality works with her iPad, ibisPaint, and Apple Pen, I feel like competing with her"

・・・ではなくて、

is not true.

「絵心ゼロ」の私が、自分のコラムのイラストであれば、自己責任で、自力でイラストを描ける時代になっているのです。

I, who have "zero artistic ability," can now illustrate my own columns on my own, at my own risk.

目の前に、パーソナルなお絵描きの環境があるなら、やれることなら、やるべきでしょう。

If I have a personal painting environment in front of me, I should do what I can.

-----

よし、Apple Penにしよう。

Okay, let's go with the Apple Pen.

ただし"第一世代"の"中古"を探そう(5500円くらいで、手に入りそうです)。

However, I should look for a "used" "first generation" (about 5500 yen).

いつでも、私は、土壇場で意気地がないのです。

At all times, I am a coward at the last minute.

2023,江端さんの技術メモ

PostgreSQLで、新規のデータならinsert, 書き換えならupdate をしようと思ったのですが、なんか面倒くさいので、初期テーブルを沢山作っておくことで対応することしました。

というか、そういうメソッドを準備しておいて欲しい→あるみたいですが、上手く動かせませんでした。

package main

import (
	"database/sql"
	"fmt"
	"log"

	_ "github.com/lib/pq" // ←これを追記
)

func main() {
	// user_log, bike_logへのアクセス
	dbAgent, err := sql.Open("postgres", "user=postgres password=password host=192.168.0.23 port=15432 dbname=agent_db sslmode=disable")
	if err != nil {
		log.Fatal("dbAgent OpenError: ", err)
	}
	defer dbAgent.Close()
	err = dbAgent.Ping()
	if err != nil {
		log.Fatal(err, "\nHint: dbAgent Database may not have started")
	}
	// user_logテーブルの内容の全削除
	dbAgent.Query("delete from bike_log;")

	// insertのテスト
	for i := 0; i < 10; i++ {
		str := fmt.Sprintf("insert into bike_log (stationid, num_bikes) values(%d, -1)", i)
		fmt.Println(str)
		dbAgent.Query(str)
	}

	// updateのテスト
	for i := 0; i < 10; i = i + 2 {
		str := fmt.Sprintf("update bike_log set num_bikes = %d where stationid = %d", i*2, i)
		fmt.Println(str)
		dbAgent.Query(str)
	}
}

出力結果

C:\Users\ebata\yamaguchi\src_try1\others> go run main4.go
insert into bike_log (stationid, num_bikes) values(0, -1)
insert into bike_log (stationid, num_bikes) values(1, -1)
insert into bike_log (stationid, num_bikes) values(2, -1)
insert into bike_log (stationid, num_bikes) values(3, -1)
insert into bike_log (stationid, num_bikes) values(4, -1)
insert into bike_log (stationid, num_bikes) values(5, -1)
insert into bike_log (stationid, num_bikes) values(6, -1)
insert into bike_log (stationid, num_bikes) values(7, -1)
insert into bike_log (stationid, num_bikes) values(8, -1)
insert into bike_log (stationid, num_bikes) values(9, -1)
update bike_log set num_bikes = 0 where stationid = 0
update bike_log set num_bikes = 4 where stationid = 2
update bike_log set num_bikes = 8 where stationid = 4
update bike_log set num_bikes = 12 where stationid = 6
update bike_log set num_bikes = 16 where stationid = 8

データベースの中身

agent_db=# select * from bike_log;
stationid | num_bikes
-----------+-----------
1 | -1
3 | -1
5 | -1
7 | -1
9 | -1
0 | 0
2 | 4
4 | 8
6 | 12
8 | 16
(10 rows)

 

2023,江端さんの忘備録

「「お金に愛されないエンジニア」のための新行動論」の最新記事が掲載されました。

The latest article on "New Behavioral Theory for 'Engineers Not Loved by Money'" has been published.

■最新記事

-Latest Articles

「お金がなくてもそこそこ幸せになれるのか」を宗教と幸福感から真剣に解析してみる

A serious analysis of "Can I be happy there without money?" from the perspective of religion and happiness.

今回は、「なぜ、カルトの信者はあんなに幸せそうなのか」という疑問に端を発して、「お金がなくてもそこそこ幸せになれるのか」を宗教と幸福感から真剣に解析してみました。

In this issue, I have seriously analyzed the question "Why do cult members seem so happy?" from the perspective of religion and happiness, starting with the question "Why do they seem so happy even without money?

 

2023,江端さんの技術メモ

最初はエクスポートです。

Microsoft Windows [Version 10.0.19044.2486]
(c) Microsoft Corporation. All rights reserved.
C:\Users\ebata>psql -U postgres -h 192.168.0.23 -p 15432
Password for user postgres:
psql (13.4, server 12.5 (Debian 12.5-1.pgdg100+1))
Type "help" for help.
postgres=# \c agent_db
psql (13.4, server 12.5 (Debian 12.5-1.pgdg100+1))
You are now connected to database "agent_db" as user "postgres".
agent_db=# \copy user_list to 'testtest.csv' WITH CSV DELIMITER ',';
COPY 20
agent_db=#
C:\Users\ebata に、testtest.csv ができています。
カラム名が必要な場合は、こちら(大抵の場合必要)。
agent_db=# \copy user_list to 'testtest.csv' WITH CSV HEADER;
次にインポートです。
以下のcsvファイルをインポートします。ファイル名はkai_20220522holyday18.csvです。
id,age,type,departure_name,departure_number,departure_lat,departure_lng,arrival_name,arrival_number,arrival_lat,arrival_lng
0,43,resident,,,34.173408,131.470684,,,34.155862,131.501246
1,24,resident,,,34.179449,131.482543,,,34.164116,131.471791
2,42,resident,,,34.168739,131.470768,,,34.160989,131.491124
3,21,resident,,,34.169494,131.469934,,,34.173498,131.471351
4,58,resident,,,34.185295,131.47414,,,34.191481,131.49456
5,48,resident,,,34.150778,131.480747,,,34.16536,131.471872
6,56,resident,,,34.16536,131.471872,,,34.174066,131.479312
7,73,resident,,,34.155731,131.500845,,,34.16776,131.472831
8,47,resident,,,34.167237,131.471785,,,34.155775,131.476531
9,21,resident,,,34.154931,131.50468,,,34.156678,131.49581
10,37,resident,,,34.16727,131.472899,,,34.171253,131.471177
11,40,resident,,,34.147241,131.474921,,,34.150675,131.486268
12,67,resident,,,34.173683,131.476347,,,34.173643,131.471027
13,28,resident,,,34.183079,131.484303,,,34.174245,131.474592
14,46,resident,,,34.146154,131.472711,,,34.159611,131.491548
15,25,resident,,,34.162497,131.489283,,,34.147212,131.475984
次に、テーブルをクリアにします。
agent_db=# delete from user_list;
DELETE 36
agent_db=# select * from user_list;
id | age | type | departure_name | departure_number | departure_lat | departure_lng | arrival_name | arrival_number | arrival_lat | arrival_lng
----+-----+------+----------------+------------------+---------------+---------------+--------------+----------------+-------------+-------------
(0 rows)
として、
agent_db=# \copy user_list from 'kai_20220522holyday18.csv' delimiter ',' csv header;
でインポートが完了します。
一応、確認します。
agent_db=# select * from user_list;
id | age | type | departure_name | departure_number | departure_lat | departure_lng | arrival_name | arrival_number | arrival_lat | arrival_lng
----+-----+----------+----------------+------------------+---------------+---------------+--------------+----------------+-------------+-------------
0 | 43 | resident | | | 34.173408 | 131.470684 | | | 34.155862 | 131.501246
1 | 24 | resident | | | 34.179449 | 131.482543 | | | 34.164116 | 131.471791
2 | 42 | resident | | | 34.168739 | 131.470768 | | | 34.160989 | 131.491124
3 | 21 | resident | | | 34.169494 | 131.469934 | | | 34.173498 | 131.471351
4 | 58 | resident | | | 34.185295 | 131.47414 | | | 34.191481 | 131.49456
5 | 48 | resident | | | 34.150778 | 131.480747 | | | 34.16536 | 131.471872
6 | 56 | resident | | | 34.16536 | 131.471872 | | | 34.174066 | 131.479312
7 | 73 | resident | | | 34.155731 | 131.500845 | | | 34.16776 | 131.472831
8 | 47 | resident | | | 34.167237 | 131.471785 | | | 34.155775 | 131.476531
9 | 21 | resident | | | 34.154931 | 131.50468 | | | 34.156678 | 131.49581
10 | 37 | resident | | | 34.16727 | 131.472899 | | | 34.171253 | 131.471177
11 | 40 | resident | | | 34.147241 | 131.474921 | | | 34.150675 | 131.486268
12 | 67 | resident | | | 34.173683 | 131.476347 | | | 34.173643 | 131.471027
13 | 28 | resident | | | 34.183079 | 131.484303 | | | 34.174245 | 131.474592
14 | 46 | resident | | | 34.146154 | 131.472711 | | | 34.159611 | 131.491548
15 | 25 | resident | | | 34.162497 | 131.489283 | | | 34.147212 | 131.475984
(16 rows)

2023,江端さんの忘備録

特許庁に特許明細書を提出(出願)するだけでは、特許権を得ることはできません。

Simply submitting a patent specification to the Patent Office (filing an application) is not enough to obtain a patent right.

出願から3年以内に、特許庁に自分の発明を審査して貰う請求をする必要があります。

You must file a request to have your invention examined by the Patent Office within three years of filing the application.

これを「出願審査請求」と言います。

This is called a "request for application examination".

この請求をすることで、はじめて特許の審査官と出願人(発明者)とのバトルが開始されることになります。

By filing this request, the battle between the patent examiner and the applicant (inventor) will begin for the first time.

請求をしなければ、その発明を、特許発明にバージョンアップさせることはできません(つまり、特許権は得られない)。

If you do not file a claim, you cannot have your invention upgraded to a patented invention (i.e., you cannot obtain a patent right).

ところが「出願審査請求」は値段が高いのです。

However, the "request for application examination" is expensive.

=====

特許出願 14,000円

Patent application 14,000 yen

出願審査請求 138,000円+(請求項の数×4,000円)

Request for application examination: 138,000 yen + (number of claims x 4,000 yen)

=====

ですので、普通の会社においては、出願数に対して、出願審査請求の数を絞ることになります。

So, in an ordinary company, the number of requests for application examination is narrowed down in relation to the number of applications.

-----

さて、この「出願審査請求」を誰が判断するか? ―― 多くの場合、発明者本人です。

Now, who makes the decision on this "request for application examination"? -- in many cases, the inventor himself/herself.

なぜなら、他人の発明を理解することは、もの凄く難しいからです。

This is because it is extremely difficult to understand other people's inventions.

ところが、ここに問題があります。

However, there is a problem here.

企業の発明者の中には、

There are two types of inventors in a company.

(1)凄く優れた発明をしたのに、自己評価レベルが低すぎて、簡単に出願審査請求を諦めてしまう人

(1) Those who have made a very good invention, but their self-evaluation level is too low and they easily give up on their request for application examination.

(2)恐しく凡庸な発明なのに、自己評価レベルが高すぎて、バシバシ出願審査請求をしてしまう人

(2) Those who request application examination too frequently because their self-evaluation level is too high, even though their invention is terribly mediocre.

の2種類がいます。

つまり、

In other words,

―― 優れた発明が出願審査請求されず、どーでもいい凡庸な発明が出願審査請求される

"Excellent inventions are not requested for application examination, while mediocre inventions are requested for application examination."

という事態が発生してしまうのです。

This above situation occurs.

-----

で、私がどういうタイプの人間かというと、当然、上記(2)です。

And what type of person am I, of course, (2) above.

会社(というか社会)においては、『努力をしている奴』よりも、『能力がある奴』よりも、『騒いでいる奴』の方が強い、というのは、ある意味、事実です。

In a sense, it is a true that in a company (or rather, society), "those who make a fuss" are stronger than "those who make an effort" or "those who are capable".

嫌な話だとは思いますが。

I know it is a disgusting story.

2023,江端さんの忘備録

今、壮絶に凹んでいます。

昨日の続きですが、江端家では、凹んだり、鬱(うつ)になると、

As a continuation of yesterday's diary, in the Ebata family, when we feel down or depressed,

―― <北>が核ミサイルを打ち込むなら、「今」やってくれないかな

-- If the is going to launch nuclear missiles, I hope they do it "now".

―― 都心ではではなく、多摩地区に直撃で

-- not in the center of Tokyo, but directly in the Tama area.

という、会話を、(主に長女と二人)でします。

We have conversations (mainly with my eldest daughter) about this.

これって、「死刑になりたくて、人を殺害しようとした」という奴より、悪質と言えるかもしれません。

This could be considered more vicious than the guy who "wanted to be executed and tried to murder people.

-----

『死刑になりたいから事件を起こした』

という訳で、私に言わせれば「死にたいけど、死にきれない」だの、「死刑になりたい」だの言っている奴は、『覚悟が足りない』のです。

―― 殺害対象が『誰でもいい』って、どういうこと? そんでもって『捕まって死刑になりたい』って、どういうこと?

上記のような文を偉そうに書いている奴の正体は、実際は、この程度の豆腐のようなメンタルの持ち主です。

The guy who writes the above diary pretending a great writer, is, in fact, of this level of tofu-like mentality.

笑ってやって下さい。

Please laugh at me.