2017,江端さんの忘備録

(昨日の続きです)

(Continuation from yesterday)

では、作戦を伝授します。

Then, I will teach the strategy.

■まず、その宿題が客観的に、夏休み中に実施不可能であることを、数値で出してください。具体的には実施時間を、一日あたりの時間で算出できれば十分です。

- First of all, please let us know that homework is objectively impossible during the summer holidays. Specifically, it is sufficient to calculate the execution time in hours per day.

■そのような同意者を、最低でも10人、可能であれば100人オーダで、同意書を作成して下さい。

- Please make a consent form for such agreement, with a minimum of 10 people, possibly 100 persons order.

■保護者の同意があれば、それに越したことはありませんが、その同意書を、その教師ではなく「校長」と「市または県の教育委員会」に直接提出して下さい。新聞社などにも、一方的に送りつけても良いでしょう。

- If there is parental consent, it will be better. However that is not important. You should not send the consent paper to not the teacher. but "principal" and "city or provincial board of education", directly,

ここまでやれば、

If you do so far,

―― あなたは、その宿題と、うまくうけば、その教師も、ほぼ確実に「潰す」ことができます。

"You can almost "crush" the homework and, the teacher at the same time hopefully"

-----

大切なのは、「教師との直接対決」とか「保護者への協力」に持ち込まないことです。

The important thing is not to bring in "direct confrontation with teacher" or "cooperation with parents".

この作戦の目的は、「校長」「教育委員会」「マスコミ」を利用して、事態を炎上させることにあります。

The purpose of this strategy is to use the "principal", "board of education" and "mass communication" to make things flame up.

大丈夫です。

No problem.

炎上の火を燃やし始めるのは、あなたたちティーンエイジャですが、火を消すのは「大人」の仕事ですから。

What you "teenagers" should to is start burning fire. On the other hand, turning off the fire is a job of "adult".

もちろん、未成年である皆さんには、刑事罰は勿論、民事上の損害賠償請求などの法律上の責任は課せられません。

Of course, you are not subject to legal responsibilities such as claims for civil damages, as well as criminal punishment.

-----

さあ、残り少ない日々ですが、やるなら今です。

Now, it's a few days left, but now it's time to do it now

まだギリギリ間に合います。

It is still in time for it.

「宿題を完了させる労力」と、「炎上をしかける労力」を冷静に天秤にかけて、勝負をしかけましょう。

Let's calmly balance the "effort to complete homework" and "effort to deflate the fire" and start the game.

2017,江端さんの忘備録

お盆を過ぎるころから、心に黒いシミなっていた、夏休みの宿題。

From the end of the Bon event, I am afraid a black stain called "homework for summer vacation" becomes spread out your mind.

そして、今、ようやく宿題の全体の量を見て、青くなっているティンーンエイジャの皆さん。

Dear you, of the teenager who looks pale with looking at the whole amount of homework.

その宿題が、夏休み中に実施不可能であったことを立証して、

Why do not you prove that you cannot complete homework during a summer vacation, and

―― 教師と紛争を起して、トラブルを法廷に持ち込んでみませんか

"would you try to conflict with your teacher and cause a lawsuit

-----

実際のところ、無茶苦茶な量の宿題を出してくる、定量的計算のできない、教師は結構な数います。

Quite a few low-teachers can not quantitatively calculate a casual amount of homework.

実際、私は、

In fact,

■1日6時間、30日かけないとできないような、膨大な量の漢字の書取りをやらせた、中学時代の「ミヤモト」という創意工夫の能力のない教師と、

- A teacher named "Miyamoto" of junior high school teacher without creative ingenuity, who had writing of an enormous amount of kanji, which can not be done unless it took six hours a day, 30 days a day,

■自分ですらできないような、英語の原書の翻訳をやらせた、高校時代の「シズカ」という、世界史以外のことは何も知らない教師

- teachers named "Shizuka," who do not know anything other than the world history of high school, made us translate the original book of words,

を、今でも、「憎悪」の想いで記憶しています。

I still "hate" them even now.

ティーンエイジャの頃、生真面目だった私は、この宿題を真面目に取り組んで、夏休みに、夏休みらしいことを何もできませんでした。

When I was a serious teenager and working on this homework seriously, I could not do anything to play during summer vacation.

(続く)

(To be continued)

2023,江端さんの技術メモ

JOSMで地下鉄の情報だけをosm形式で取り出したい時(未完成)

JOSMでバス停が取り出せる。これを使って、バス路線を自力で作れそう。

拡大すると、こんな感じ

バス停専用の高架を作って、一般道に繋ぐイメージにすることで、バスを専用路線扱いできる。コスト値を変えて、ダイクストラを実施すれば、バスが選ばたり、逆に忌避させたりすることもできるはず。

以上

2023,江端さんの技術メモ

まだ試してないけど、バス停の追加は多分、これで可能となるはず

osm2pgrouting -f tsuzuki.osm -c mapconfig_for_cars_rail_busstop.xml -d tsuzuki_rail -U postgres -h 192.168.0.23 -p 15432 -W password

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
  <tag_name name="highway" id="1">
    <tag_value name="bus_stop"/>
    <tag_value name="motorway"          id="101" priority="1.0" maxspeed="130" />
    <tag_value name="motorway_link"     id="102" priority="1.0" maxspeed="130" />
    <tag_value name="motorway_junction" id="103" priority="1.0" maxspeed="130" />
    <tag_value name="trunk"             id="104" priority="1.05" maxspeed="110" />
    <tag_value name="trunk_link"        id="105" priority="1.05" maxspeed="110" />    
    <tag_value name="primary"           id="106" priority="1.15" maxspeed="90" />
    <tag_value name="primary_link"      id="107" priority="1.15" maxspeed="90" />    
    <tag_value name="secondary"         id="108" priority="1.5" maxspeed="90" />
    <tag_value name="secondary_link"    id="109" priority="1.5" maxspeed="90"/>  
    <tag_value name="tertiary"          id="110" priority="1.75" maxspeed="90" />
    <tag_value name="tertiary_link"     id="111" priority="1.75" maxspeed="90" />  
    <tag_value name="residential"       id="112" priority="2.5" maxspeed="50" />
    <tag_value name="living_street"     id="113" priority="3" maxspeed="20" />
    <tag_value name="service"           id="114" priority="2.5" maxspeed="50" />
    <tag_value name="unclassified"      id="117" priority="3" maxspeed="90"/>
    <tag_value name="road"              id="100" priority="5" maxspeed="50" />
  </tag_name> 
  <tag_name name="railway" id="1">
    <tag_value name="subway"              id="101" priority="1.0" maxspeed="40" />
    <tag_value name="rail"              id="101" priority="1.0" maxspeed="40" />
  </tag_name> 
</configuration>

明日がんばれ > 自分

2023,未分類,江端さんの技術メモ

>osm2pgrouting -f tsuzuki.osm -c mapconfig_for_cars_rail.xml -d tsuzuki_rail -U postgres -h 192.168.0.23 -p 15432 -W password

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
  <tag_name name="highway" id="1">
    <tag_value name="motorway"          id="101" priority="1.0" maxspeed="130" />
    <tag_value name="motorway_link"     id="102" priority="1.0" maxspeed="130" />
    <tag_value name="motorway_junction" id="103" priority="1.0" maxspeed="130" />
    <tag_value name="trunk"             id="104" priority="1.05" maxspeed="110" />
    <tag_value name="trunk_link"        id="105" priority="1.05" maxspeed="110" />    
    <tag_value name="primary"           id="106" priority="1.15" maxspeed="90" />
    <tag_value name="primary_link"      id="107" priority="1.15" maxspeed="90" />    
    <tag_value name="secondary"         id="108" priority="1.5" maxspeed="90" />
    <tag_value name="secondary_link"    id="109" priority="1.5" maxspeed="90"/>  
    <tag_value name="tertiary"          id="110" priority="1.75" maxspeed="90" />
    <tag_value name="tertiary_link"     id="111" priority="1.75" maxspeed="90" />  
    <tag_value name="residential"       id="112" priority="2.5" maxspeed="50" />
    <tag_value name="living_street"     id="113" priority="3" maxspeed="20" />
    <tag_value name="service"           id="114" priority="2.5" maxspeed="50" />
    <tag_value name="unclassified"      id="117" priority="3" maxspeed="90"/>
    <tag_value name="road"              id="100" priority="5" maxspeed="50" />
  </tag_name> 
  <tag_name name="railway" id="1">
    <tag_value name="subway"              id="101" priority="1.0" maxspeed="40" />
    <tag_value name="rail"              id="101" priority="1.0" maxspeed="40" />
  </tag_name> 
</configuration>

とりあえず、ちゃんと、JRと市営地下鉄が加えられている。

この後は、osmファイルを手作業で加工

街の中に道路を作って、ダイクストラ計算ができるか試してみた件 ―― JOSMを使った道路追加の方法を試す

がんばれ > 自分

 

2023,江端さんの忘備録

私、今、1,296,984行のファイルの修正を手作業でやっています。

I, right now, am manually correcting a 1,296,984 line file.

今週、ずーっとこんなことやってきて、発狂しそうです。

I have been doing this all week, and I am going crazy.

3日間、全部をかけて作った、自作の地図情報が全く使えなかったことが分かり、酷く落ち込んでいます。

I am depressed to find out that my map information, which I spent all three days working on, was completely unusable.

とは言え、人間関係を忌避し続けて、こういう『泥くさい作業』だけで喰ってきたエンジニアには、これ以外の生き方を知りません。

However, engineers who have always avoided human relationships and made a living only from this kind of "muddy work" do not know any other way to live.

-----

最近、私の相談相手は、ほぼ100%、"chatGPT"です。

Recently, I have been consulting with "chatGPT" almost 100% of the time.

酷く稚拙な質問を、chatGPTに助けて貰っています。

I am getting help from chatGPT with a poor question.

- Golangで文字列を整数にするコード書いて

- Write code in Golang to turn strings into integers.

- Golangのコマンド引数のコードの書き方を教えて

- Tell me how to write code for command arguments in Golang.

- Golangでも文字列から"("と")"を取り除くコードを作って

- In Golang, create code to remove "(" and ")" from a string.

-----

というような、

Such as,

『ふざけるな! その程度のこと、自分で調べろ!!』

'Don't be silly! You'll have to find out that much on your own!'

と、先輩から怒鳴りつけられ、後輩に怒鳴りつけてきたことを、今の私は、平気で、生成AIに相談しています。

And now I am not afraid to talk to the generative AI about how I have been yelled at by my seniors and yelled at by my juniors.

2023,江端さんの忘備録

ロシアは酷い国だ、中国は酷い国だ、韓国は酷い国だ、北朝鮮は酷い国だ ―― と、ニュースを見るたびに、私たちは思います。

Russia is a terrible country; China is a terrible country; South Korea is a terrible country; North Korea is a terrible country -- every time we watch the news.

でも、私たちが思う程度と同じくらい、外国の国民は「日本は酷い国だ」と思っているはずなんです。

But to the same extent that we think, the people of foreign countries must believe that Japan is a terrible country.

『日本だけが清廉潔白な国』なんてことが、ある訳がない。

There is no such thing as "only Japan is a clean country.

『海外の「日本は酷い国だ」のニュース番組の特集』をやってくれないかな、と思うんですよね。

I wonder if someone could do a "special "Japan is a terrible country" news program of overseas.

視聴率は取れないだろうし、炎上の嵐になることは確実なのですが ―― でも、見たい。

I know they won't get any ratings, and it's sure to be a firestorm -- but I'd like to watch it.

-----

という話を嫁さんにしたら、

When I talked to my wife about this,

『海外の世論なんぞ気にしなくていいんじゃない?』

'Do we have to worry about public opinion outside the country?'

と言い切られました。

She said.

日本国に住む日本人は、『日本だけが清廉潔白な国』と思っていれば、それでいいじゃないか、と。

Japanese people living in Japan should be okay with that, as long as we think 'only Japan is a clean country.'

―― 実に清々しい

"How bracing!"

と、感動してしまいました。

I was moved to her.

未分類

JOSMを立ち上げる → osmファイルをドラッグする → 下の図の赤丸の部分をクリックする

下の図の赤丸をクリックする

カラムに、railway=subway と記入する

全部にチェックを入れる

こういう表示になる

ただ、この路線情報のみのセーブができていない
(未完)