ヒトラーと三島由紀夫

ヒトラー三島由紀夫

最近映画を見ました。

帰ってきたヒトラー 三島由紀夫vs東大全共闘 50年目の真実

の2本。2人についてもうっすらとは知っていただけだったけども。2人とも似ているなと思った。もはや二人は同一人物ではないのか。 まず演説がうまい。演説がうまいから人を惹きつける。人が惹きつくともっと人が集まる。そして力を持つ。

正直、三島由紀夫は何を話しているのかわからなかった。日本語なのに何を話しているのかわからなかった。マッチョなゴリゴリ短髪の男がわけのわからない哲学について話をしていた。何を伝えたかったのかも僕にはわからなかった。知識が足りないのだろうか。目的意識が足りないのだろうか。彼は元々作家らしい。代表作は「金閣寺」。読んだことはない。これから読むことがあるのかもわからないけども、今後金閣寺を見るたびに三島由紀夫を思い出すのだろうと思った。

ヒトラーについてはドイツを巻き込むほどの演説のうまさ。人をのせるのが抜群にうまいと思う。彼は画家を目指していたらしい。

この二人。。似てる!!!芸術家だ!

おわり

瞬間英作文の練習用例文 200問パート8 【英語学習】

瞬間英作文の練習用例文 200問パート8 【英語学習】

⑦はこちら

shahalam1.hatenablog.com

瞬間英作文とは、「日本語を見て、即座に英語に訳す(英作文を作る)」ことです。

日本語を見て、5秒以内に英語を声に出します。

 瞬間英作文が英語学習にとって有効なのは分かっているけど、例文に限りがあって次に新しい題材、教材はないかな?と思っている方へ。

瞬間英作文の練習ができるWEBサービスを運営しています。例文数は2000以上。無料で使えます。

その中の例題を200問載せてますので練習用にお使いください。

サイトの方が使いやすいのは間違いないので試してみてください。

5seconds-en.com

自信をもって。君ならできるよ。
Be confident. You can do it.

彼女は私たちと10年ちかく一緒にいました。 She was with us for almost ten years.

なんといえばいいかわからない。
I don't know what to say.

まだ私たちの部屋が掃除されてません。
Our room hasn't been cleaned yet.

どうしてそんなに時間がかかるの?
Why is it taking so long?

もう十分だ。
That's enough.

今すぐには決められない。
I can't decide right now.

少し考えさせて。
I need some time to think about it.

困っている。
I'm in trouble.

それをすると、君は困ったことになるよ。
If you do that, you'll be in trouble.

泣きたい気分だ。
I feel like crying.

どうしようもない。 There's nothing I can do.

ワクワクしてる。
I'm very excited about it

規則は規則。文句を言うな。 A rule is a rule. Don't complain.

からかうな。
Don't make fun of me.

ばかげてる。
This is ridiculous.

我慢できない。
I can't stand it.

すごく感動した。
It really touched me.

すごく感動した。
I was deeply moved.

パクとミソは結婚するよ。
Park and Miso are getting married.

そんなはずはない It can't be true!

本当に? Are you serious?

驚いた! That's surprising!

どこで夕食食べる? Where are you going to have dinner?

今日はポークチャーハンはありません。チキンチャーハンはどうですか? There is no pork fried rice today. What about chicken fried rice?

どこに座りたいですか? Where would you prefer to sit?

どんな料理がいいですか?アメリカン?もしくは韓国料理?
What kind of food do you prefer, Amerian or Korean?

何か軽いものが食べたいです。
I'd like to eat something light.

お茶を一杯注文していいですか?
May I order a glass of tea?

飲み物は何がいいですか?
What would you like for a drink?

ドリンクリストを見せてもらえますか?
May I see the drinking list?

今朝はコーヒーを飲む気分じゃない。他の飲み物を選んでもいい?
I don't feel like drinking cofee this morning.Can I choose some other drinks?

オレンジジュースを一杯ください。
I'd like a glass of orange juice, please.

すぐお持ちします。 I'll bring you at once.

もし助けが欲しい時は言ってね。
If you want any help, just ask me.

何人を招待して一人当たりいくら使う予定ですか?
How many people are you planning to invite and how much would you like to spend per person?

あなたのコーヒーショップは今開いてる?
Is your coffee shop open now?

申し訳ございません。ここでは喫煙禁止です。 I'm terribly sorry, smoking is not allowed here.

喫煙室はどこか教えてもらえますか? Can you tell me where the smoking room is?

好きなところにお座りください。
Sit anywhere you like.

あちらに新聞棚があります。 We have a newspaper rack over there.

満席です。空席がでるまでお待ちいただけますか?
All tables are taken. Would you mind waiting until one is free?

どのくらい待たないといけないですか?
How long do I have to wait?

ハンバーガーとポテトのLサイズ ください。 I'll have a hamburger and one large order of French fries.

こちらで食べますか?持ち帰りですか?
Will you be eating here or is this to go?

なんで外でそばを食べないといけないの?
Why do we have to eat soba outside?

かなりの努力をしないといけない。
You have to spend a lot of effort

かなりの努力が必要だろう。 Much effort will be needed.

大変な労力と時間が掛かるだろう。
You’ll spend a lot of effort and time.

走るだけで体重を落とせると思うのは大きな間違いだ。 It is a big mistake to think you can lose weight only by running.

パクの部屋はキムの部屋と同じフロアにある。 Park's room is on the same floor as Kim's

あなたにはいつも幸せでいて欲しい。 I want you to be happy all the time.

一日おきにジムに行く。
I go to the gym every other day.

何度も何度もその本を読んだ。
I read the book over and over again.

いつものように、そのコーヒーショップに行こう。
Let's go to the coffee shop as usual.

偶然にそのレストランを見つけた。
I found the restaurant by chance.

私たちの成功はブラッドのおかげだ。 We owe our success to Brad.

私たちはインターネットを当然のことと思っている。
We take the Internet for granted.

毎朝ランニングに行きます。 I go running every morning.

部屋に入って彼の隣に座った。
I went into the room and sat next to him.

あなたはもう子供じゃない。 You are no longer a child.

今はもう使われていません。 It is no longer used.

私はもうそれは必要ではない。
I no longer need it.

君はもうそれをやる必要はありません You no longer have to do it.

もう彼のことは信用できない。
I can no longer trust him.

彼は素早く皿を洗うことができる。
He is capable of washing dishes fast.

私はお寿司を握ることができる。
I’m capable of making sushi.

このテレビはインターネット接続機能がある。 This tv is capable of being connected to the Internet.

もし積極的な態度があれば、成功するよ。
If you have a positive attitude, you will succeed.

英語を習得するのに一番効率的な方法って何? What’s the most efficient way to learn English?

彼は、問題への最良の取り組み方を知っていた有能な社長だった。
He was an efficient CEO who always knew the best way to approach problems.

彼は有能です。 He's efficient.

水は健康に不可欠です。 Water is essential for good health.

その本は5カ国語に翻訳されている。
The book has been translated into five languages.

窓側のテーブルをお願いできますか? Could we have a table by the window?

これは割引後の値段ですか?
Is this the price after the discount?

少し値引きしてくれますか? Can you give me a little discount?

どうやってボリュームを調整できますか?
How do you adjust the volume?

この道は2人が通るにはせますぎる。
This road is too narrow for two people to pass.

彼が家にいるとは思わないが、とにかく電話してみる。 I don't think he is at home, but I'll call him anyway.

営業部につないでもらえますか?
Could you connect me to the Sales department?

営業部につないでもらえますか?
Could you put me through to the Sales department?

背中が痛むんです。 I have a pain in my back.

寒気がする。 I feel chilly.

吐き気がする。 I feel like throwing up.

頭が痛い。 My head hurts.

ロンドンで乗り継ぎがある。 I have a connecting flight in London.

このカバンは機内に持ち込めますか? Can I carry this bag into the cabin?

なぜ彼は嘘をついた? Why did he lie?

在宅勤務ができる人は引き続きそうすべきです。
Those who can work from home should continue to do so.

警察は規則に従っていない人たちを逮捕する権力を持っています。
Police have the power to arrest those who are not following the rules.

弊社を支えてくれたすべての人に感謝します。 We would like to thank all who have supported us.

このリゾートは小さい子どもを持つ人たちに最適です。 This resort is ideal for those who have small children.

彼らは家から出られない人に無料のオンラインレッスンを提供している。 They offer free online classes for those stuck at home.

これから10日間、在宅勤務します。 I’ll be working from home for the next 10 days.

在宅勤務は一般的になってきている。 Working from home is becoming more common.

リモートワークにしたいけど、会社が許可しないんだ。 I want to work remotely but the company doesn’t allow it.

私の会社はフレックスとリモートワークを許可している。
My company allows flexible hours and remote working.

酔い止めの薬はありますか? Do you have any medicine for airsickness?

貴重品を金庫で預かってもらえますか?
Could you keep my valuables in the safe?

公園に面した部屋が良いです。
I'd like a room facing the park.

どこで朝食を取れますか?
Where can I have breakfast?

両替をお願いします。
Could you change some money?

すぐに直してください。
Please fix it immediately.

部屋にカギを忘れました。
I left my key in the room.

この街でおすすめの場所を教えてくれますか? Can you recommend some good places to visit in this town?

何に興味がありますか?
What are you interested in?

この街の若者は週末にどこに行くの? Where do young people in this town go on weekends?

地元の人に人気のレストランに行きたい。
I want to go to a restaurant that is popular among local people.

地元の人がつかう食料品店に行きたい。
I want to go to a grocery store local people use.

私は日常の食料品のほとんどを、近くのスーパーで買う。 I buy most of my groceries at a nearby supermarket.

ホテルに迎えに来てくれますか?
Can you pick us up at my hotel?

ホテルで降ろしてもらえますか?
Can you drop us off at my hotel?

アメリカの生活水準は高い。 The standard of living in America is high.

彼らの関係は近頃改善されてきた。
Relations between them have improved recently.

これはなんて驚くべき結末なんだ。
What a surprising conclusion this is!

その道はとても混みあっている。
The streets are very crowded.

世界はますます複雑になってきている。
The world is becoming more complex.

今朝はほんとうに湿気が多い。
It's really humid this morning.

いくつかの選択肢をよく考えている。 I am considering a number of options.

わたしたちはここが日本で最高のレストランだとみなしている。 We regard this to be the best restaurant in Japan.

彼はこのレストランをその街で一番だとみなしている。 He regards this restaurant as the best in the city.

嫌なことからは逃げちゃえばいいよ
You can run away from something you don’t like.

彼はメキシコに逃げた。
He ran away to Mexico.

あなたに迷惑を掛けるつもりではなかった。
I didn’t intend to cause you trouble.

アメリカに暮らすつもりだった。
I intended to live in America.

あなたと議論したくない。
I don't want to argue with you.

最新の情報を手に入れるのは難しい。 It's difficult to obtain the latest information.

彼はお金について何も言わなかった。 He didn't mention anything about money.

そのアドバイスに感謝しています。
I am grateful for the advice.

私は将来を心配している。
I'm anxious about my future.

そんな間違いをするなんてあなたは不注意だった。
It was careless of you to make such a mistake.

彼女だとわからなくて、とても恥ずかしく思った。
I was deeply ashamed not to have recognized her.

彼は自分のふるまいを恥じている。
He's ashamed of his behavior.

彼はそれが何であるかは言わなかった.
He didn't mention what it was.

健康的な食事は風邪を予防する良い方法だ。
Eating healthy is a good way to prevent a cold.

大雨のせいで外出できなかった。
Heavy rain prevented me from going out.

私は彼が塩をかけすぎるのをやめさせたい。
I want to prevent him from adding too much salt.

私が働いているとき、彼女はいつも邪魔をする。
She always disturbs me when I'm working.

たくさん質問して私の邪魔をしないで。
Don't bother me with a lot of questions.

睡眠中は邪魔をしないでください。
Please don't disturb me while I am sleeping.

あのレストランで働いてる女の子が気になる。 I am curious about a girl working in that restaurant.

彼が気になる。
I am fascinated by him.

彼がその知らせを聞いてどう思うか気になる.
I'm curious how he will receive the news.

明日のミーティングを来週の月曜日に延期してもらうことは可能ですか? Is it possible to postpone tomorrow’s meeting to next Monday?

明日の野球は雨が強そうだから延期することにしたよ。 We decided to push our baseball game back for a week because it looks like it will rain heavily.

水圧が弱いとシャワーを浴びた気がしない。
If the water pressure is weak, it doesn't feel like I took a shower.

レジはどこですか? Where is the cashier?

今日はたくさん買い物をしないといけない。
We have to buy a lot of things today.

友人にいくつかプレゼントを買いたいです。
I'd like to buy some presents for my friends.

見せてもらえますか? May I have a look?

あなたの邪魔をしたくない I don't want to bother you.

いくつか聞きたい事があるが今はあなたを煩わせたくはない。
I have some questions to ask, but I don't want to bother you now.

他になにか欲しいものある? Is there anything else you want?

あなたはそれらのバイクの中でどれが一番好きですか。 Which of those bikes do you like the best?

少しきつい気がする。 It feels a little tight.

もうアメリカの生活と気候には慣れた?
Are you used to the life and the weather in America yet?

ここには昔、駅があった。
There used to be a station here.

新しい街の生活に慣れてきています。 I am getting used to living in new town.

ニューヨークに住む事に慣れている。 I am used to living in New York.

かつては彼女が好きだったが、今はそうじゃない。
I used to like her, but now I don’t.

この暑さにも慣れるよ。
You will get used to the heat.

私はマックを使ったことがない。
I’ve never used Mac before.

もうここに住むのは慣れましたか?
Are you used to living here yet?

私に似合うと思う? Do you think it suits me?

私にサイズが合うと思う?
Do you think it fits me?

このTシャツは私にサイズがぴったりです。 This T‐shirt fits me very well.

欲張りすぎだよ。
You are too greedy.

それは求めすぎでしょう。
I think you are asking too much.

自分のために祈る人は欲張りです。
People who pray for themselves are greedy.

パクは欲張りで、さらに悪いことには大変なけちだ。
Park is greedy, and what is worse, very stingy.

砂糖をそうけちけちするな.
Don't be so stingy with the sugar.

なんでそんなに欲張りなの? Why are you so greedy?

彼女は私が知る限り一番欲張りな女だ。
She is the greediest woman I know.

彼はお金のことしか考えていない。本当に欲深い奴だ。 All he cares about is money. He’s so greedy.

夢に見ていたこと全てを達成した。
I achieved everything I have dreamed.

今あなたの動画を何個か見てるよ。
I've been watching a few of your videos now.

これはYoutube上で一番過小評価されてるチャンネルだ。
This is the most underrated channel on YouTube

あの映画は過小評価されてる!本当は最高なのに。
That movie is so underrated! That is actually awesome.

私はもっとうまくできたはずなのに。 I could have done better.

もっと時間があったら、もっとうまくやることが出来たはずのに。
I could have done better if I had more time.

最高だった。 It couldn't have been better.

僕がやりたかったのは何かほんとうに大きなものをつくることだった
All I wanted to do was create something really big.

寝ること以外は何もしたくない。
All I want to do is go to bed.

私がしたい事は買い物。
All I wanna do is go to shopping.

どうなるか様子をみよう。
Let’s see what happens.

何が起こってるか分かったよ。
I see what's happening

何が起こっているか、おわかりでしょう。
You can see what's going on here.

どうなってんの?
What’s happening here?

どうなってんの?
What’s going on?

なんで彼女が怒っているのかわからないよ。
I don't see why she is angry.

Twitchはゲームのライブストリーミングに特化したストリーミングサービスです。
Twitch is a video live streaming service that focuses on video game live streaming.

ボストンは魅力的で歴史的に有名な町です。
Boston is a stunning and historic city

そのサイトはいくつかのコンテンツカテゴリーに分けられている。
The site is divided into several content categories.

ゲームカテゴリーは特に早く成長しサイト上で一番人気のあるコンテンツになった。
The gaming category grew especially fast, and became the most popular content on the site.

その会社は6月には80人ほどの従業員がいたが、12月までに100人に増えた。
The compnay had about 80 employees in June, which increased to 100 by December.

その会社はベンチャーキャピタルからの500万ドルというかなりの投資によってサポートされている。 The company has been supported by significant investments of venture capital, with US$5 million

数日後に戻ってきます。
I'm coming back in the a few days.

以前のシステムより効率的にするためにその会社は新しいビデオシステムを実装した。
The company implemented a new video system to be more efficient than the previous system.

その新しいビデオシステムはユーザーから批判された。 The new video system was criticised by users.

5seconds-en.com

5seconds-en.com

瞬間英作文の練習用例文 200問パート7 【英語学習】

瞬間英作文の練習用例文 200問パート7 【英語学習】

⑥はこちら shahalam1.hatenablog.com

瞬間英作文とは、「日本語を見て、即座に英語に訳す(英作文を作る)」ことです。

日本語を見て、5秒以内に英語を声に出します。

 瞬間英作文が英語学習にとって有効なのは分かっているけど、例文に限りがあって次に新しい題材、教材はないかな?と思っている方へ。

瞬間英作文の練習ができるWEBサービスを運営しています。例文数は2000以上。無料で使えます。

その中の例題を200問載せてますので練習用にお使いください。

サイトの方が使いやすいのは間違いないので試してみてください。

5seconds-en.com

彼女は彼と5年以上知り合いです。
She has known him for over five years.

私は教育が人の性格に影響するとは思わない。 I don’t think education has an effect on one’s personality.

あの猫に食べ物を何かあげようか?
Shall we give the cat something to eat?

彼は英語の勉強を始めるためにパソコンを買うことを決めた?
Did he decide to buy a laptop to begin to study English?

このパソコンは誰かに使われたことがあると思う?
Do you think that this laptop has ever been used?

この記事は声に出して読まれなければいけない。
This article must be read aloud.

手を洗わずに食べ物を食べたらだめだよ。
You must not eat foods without washing your hands.

先月日本に来たその男性は私に日本語のレッスンをするよう頼んだ。
The man who came to Japan last month asked me to give him Japanese lessons.

彼に次いつ来るのか聞いてほしい。
I want you to ask him when he will come next time.

なぜキムは長く一緒に暮らしていた娘と別れたんだろうか。
I wonder why Kim has broken up with the girl he has lived with for a long time.

綺麗にしている自分の部屋を他人に使われたくない。
I don't want my room I keep clean to be used by others.

5年以上知り合いのその男は来月会社を辞めるつもりだ。
A man who I have known for over five years is going to quit the company next month.

彼女はずっとほしかったそのバッグが他の誰かに買われてしまったことを知った。 She found that the bag she wanted to buy had been bought by someone else.

迎えに行きましょうか?
Do you want me to pick you up?

窓を開けましょうか?
Do you want me to open the window?

彼から電話させましょうか? Would you like me to have him call you back?

今夜食事に行きませんか?
Why don’t we go to dinner tonight?

この時計は高価にちがいない。
This watch must be expensive.

あなたはそこに行かなくてよい
You don’t have to go there.

メアリーが旦那を捨てたのは大きなショックだった。
It was a big shock when Mary left her husband.

財布を奪われた。
I was robbed of my wallet.

その車は壁に衝突した。
The car crushed into the wall.

その医者は私たちに彼女は良くなると保証した。
The doctor has assured us that she will be fine.

全てのリクエストはできるだけはやく処理されることを保証します。
We assure you that all requests will be processed as quicklly as possible.

明日、7時に起こしてもらえますか?
Could you please wake me up at seven tomorrow?

騒音のせいで昼寝から目覚めた。
The noise woke me up from my nap.

夜遅く起きている時、コーヒーはいつも目を覚ましてくれる。
Coffee always wake me up when I stay up late at night.

毎朝6時に起きます。
I wake up at six every morning.

良い睡眠は不可欠です。
A good sleep is essential for us.

状況は把握しています。
I am aware of the situation.

ジョンはその時点で危険を認識していた。
John was aware of the risk at that time.

私はパクが私を見ていることに気づいていた。 I was aware of Park looking at me.

ミソは自分の長所と短所を認識している。
Miso is aware of her strength and weakness.

状況を認識しています。
I recognize the situation.

お飲み物はどうですか?
What about something to drink?

散歩に行かない?
What about going for a walk?

コーヒーでもいかが?
What about a cup of coffee?

映画を見に行こうよ。
How about going to the movies?

スイミングのレッスンを受けている。 I’m taking swimming lessons.

彼らは2年間、ボクシングのレッスンを受けていたが、昨日が最後だった。
They had been taking boxing lessons for two years, but yesterday was the last one.

もし二人の人間が長い間同じ部屋にいたら明らかに口論するだろう。
Obviously if two people are in the same room for a long time, they are going to bump heads.

私は妻と彼女の金の使い方のことで言い争いをした.
I had an argument with my wife over her spending habits.

トラックが私たちの車にぶつかった
A truck bumped our car.

このスクールはマンツーマンのレッスンを提供している。
This school offers one-on-one lessons.

彼は私を殴った! He hit me!

最近受け取っているすべての問い合わせメールの処理を助けてもらうために、臨時社員を雇わなければいけなかった。 We've had to hire a temp to help us process all the e-mail inquiries we're receiving these days.

注文は通常5営業日以内に処理されます。 Orders are usually processed within five business days

この情報を処理するために時間が必要だ。
I need some time to process all this information.

月末にパーティーを計画しようと思う。
I'm going to organize a party at the end of this month.

全ての書類を処理するのに、2~3週間かかります。
It will take a couple of weeks to process all the paperwork.

ドナルドは億万長者、彼は行くところすべてに家族を連れてるよ。
Donald is a billionaire. He keeps his family everywhere he goes.

彼の子供たち、彼の妻は彼と一緒にいたるところにいます。
His children, his wife are everywhere with him.

彼の子供たちはどこにでも彼といく。 His children go everywhere with him.

先月一緒にレストランに行ったその娘はぼくの知らない別の男とそのレストランに行った。 The girl I went to a restaurant with last month went to the restaurant with another guy I don't know.

彼女は彼が美しい女性とコーヒーショップから出てくるのを見た。
She had seen him come out of a coffee shop with a beautiful woman.

僕が捕まえた魚はぼくがいない間にママに食べられた。 The fish I caught was eaten by my father, while I was away.

牛乳が新鮮かわからなかったので、弟に飲ませた。
Since I didn't know if the milk is fresh enough to drink, I made my brother drink it.

彼女が作る料理はそんなにおいしくはないけど、彼はそれを言えない。
Although the food she cooks isn't very tasty, he can't tell her it.

川がとても深かったので、泳ぐなと言われた。 Since the river was very deep, we were told not to swim there.

虫がこわい。 I'm scared of bugs.

そこら中走り回ってるネズミがいる。 There's a rat running everywhere.

私が毎朝走る公園は多くの人に訪れられる。 The park which I run every morning is visited by many people.

5年前にアメリカに行ったその男性は一度も家族に電話していない。 The man who went to America five years ago has never called his family.

彼にバナナどのくらい欲しいか聞いたら、もう欲しくないと言った。
When I asked him how many bananas he wanted, he said that he didn't want any more.

彼女は英語を話せないので、僕に、キムに好きな食べ物を聞くように頼んだ。
As she didn't speak English, she asked me to ask Kim what food he liked.

もしオレが帰る前に家に着けば、オレが先月買った車を見れるよ。
If you get home before I leave, you will be able to see the car I bougth last month.

寝ている間は窓を閉めてって、彼女は言わなかった?
Didn't she tell you to keep the window closed while you were sleeping?

俺は 楽観的だ。ポジティブだよ。
I'm optimistic. I am positive.

600万ドルが減ることを彼らが正当化できるとは全く思えない。
I don't think they're gonna be able to justify cutting six hundred dollars totally.

彼女はあかの他人だ。 She is totally a stranger.

かなりたくさんのアメリカ人が経済的に困窮するだろう。
I think so many Americans would fall off a financial cliff.

彼が今言ったことはまったく容認できない。
What he just said is totally unacceptable.

スピードを出していて大きな罰金をくらった。 I was speeding and got a big fine

二度としない。 I won’t do it again.

彼は大学で講義をした。 He gave a lecture at the university.

次は絶対来るべきだよ! You should definitely come next time!

金は何でもできる。 Money can do anything.

ほんの一瞬で、彼は貧しい労働者階級からトップ1%の高所得者のメンバーになった。
In just moments, he went from a poor working-class man to a member of the elite one percent of top earners.

彼は草原が見渡せる200万ドルのこの巨大な土地を買った。
He bought this gigantic 2 million dollars propery overlooking the plains.

このメールにファイルを添付してます。
I have attached the file to this email.

本メールにファイルを添付致します。 I will attach the file to this email.

本メールに5つのファイルを添付致します。
The five files are attached to this email.

今月の請求書を添付致します。
The invoice for this month is attached.

三つのファイルを添付としてお送りします。
I am sending the file as an attachment.

すみませんがファイルを添付し忘れました。本メールにファイルを添付します。
I am very sorry, but I forgot to attach the file. I am sending it with this email.

なぜか添付したファイルが見れません。再送してもらえますか? For some reason, I am not able to see the attachment that you sent me. Could you please send it to me again?

あいにくですが、お送りいただいたファイルを開けません。
Unfortunately, I can’t open the attachment that you sent me.

ファイルを添付してます。 You'll find the attachment below.

必要書類を添付してます。 The requested document is attached to this email.

なぜか電話が切れちゃった。 I got cut off for some reason.

今月お金なさすぎて携帯止められた。 This month I didn’t have enough money, so my phone got cut off.

よく聞こえないよ。 I’m having trouble hearing you.

今日はわたしの携帯は園外になるよ。 My cellphone is going to be out of range today.

充電切れそう My phone batteries are about to die.

他の選択肢がなかったでしょう。 You had no choice.

たまごをどうしても食べたくてしょうがない。 I can’t help eating eggs.

航空券が買えなかった。 I couldn’t buy the plane ticket.

お金が無くては何もできない。 We can't do anything without money.

お金を稼ぐ前に使うな。 Never spend your money before you have earned it.

金持ちは時間に投資する。貧乏人はお金に投資する。 The rich invest in time, the poor invest in money.

時間ではなく、頭脳で稼ぎなさい。 Earn with your mind, not your time.

必要のないものを買うのをやめなさい。 Stop buying things you don't need.

あなたが持っているお金があなたに自由を与える。 The money you have gives you freedom.

お金はお金で買えるものに使え。時間はお金で買えないものに使え。
Spend your money on the things money can buy. Spend your time on the things money can't buy.

私がお金を持っていた時、みんなが私を兄貴と呼んだ。 When I had money, everyone called me brother.

人生で私のお気に入りのことは一切お金がかからない。 My favorite things in life don’t cost any money.

私たちが持っている最も貴重な資源は時間だというのは明らかだ。
It’s really clear that the most precious resource we all have is time.

富とはたくさんのお金があることじゃない。たくさんの選択肢があることだ。
Wealth is not about having a lot of money; it’s about having a lot of options.

お金を稼ぎたくない。私はただ素敵になりたい。
I don’t want to make money. I just want to be wonderful.

金は終わりのない数字。幸せになるためにお金がかかるなら、幸せを求めることに終わりはない。
Money is numbers and numbers never end. If it takes money to be happy, your search for happiness will never end.

億万長者になるための一番の方法は10億の人を助けること。
The best way to become a billionaire is to help a billion people.

金持ちはお金を投資して残ったお金を使う。貧乏人はお金を使って残ったお金を投資する。 The rich invest their money and spend what is left; the poor spend their money and invest what is left.

顧客はあらゆる個人情報のコピーを要求する権利があります。
Customers have the right to request a copy of any personal data.

わたしの全てのデータのコピーをもらえますか?
Can I have a copy of all my data?

私に関するすべての情報を消してください。
Delete all information you have on me.

愛していることをやってお金がもらえるなら、すべての給料はボーナスだ。
If you can get paid for doing what you love, every paycheck is a bonus.

ひどい雨のせいでここに着くまでに5時間かかった。 It took us five hours to get here due to the heavy rain.

お金は幸せを買わない。自由を買う。 Money doesn’t buy happiness. It buys freedom.

金持ちは大きく考える。貧乏人は小さく考える。 Rich people think big. Poor people think small.

もし自分の感情をコントロールできないなら、自分のお金もコントロールできない。
If you cannot control your emotions, you cannot control your money.

ご参加ありがとうございます。 We thank you in advance for your participation.

たいていの役に立つサイトは英語で書かれている。 Most useful websites are written in English.

私たちは山に到達するために平原を横断する We will cross the plains to reach the mountains

広大な平原が 600 マイルにわたって広がっている。 The vast plains stretch for 600 miles.

あなたにわかるように説明しましょう I will try to make it plain to you.

彼女の間違いは見た目にも明白だった Her mistake was plain to see.

彼は多額の金を本に使う. He spends a lot of money on books.

答えになってない。 That's not the correct response.

私はあなたのような素敵な女性になりたい。 I want to be a wonderful lady like you.

お金を稼がないといけない。 I need to make money.

金をつくるには金が必要だ。 It takes money to make money.

今夜読む本はある? Do you have any books to read tonight?

どれくらいのお金がかかるか、彼はわかっているのかなぁ。 I wonder if he has any idea how much it costs.

私は米なしでも、どんな食べ物でも食べられます。 I can eat any food without rice.

リンクを送るよ。 I'll send you the link.

すごく役に立つサイトを見つけた。 I found a really useful website.

爆弾はその建物の前で爆発した。 The bomb exploded in front of the building.

彼女はその事故で車を台無しにした。 She ruined her car in the accident.

そこに行くのにどんな交通手段を使ったの?
What kind of transportation did you use to get there?

荷物はいくつお持ちですか? How much baggage do you have?

私たちは中古車を買おうと考えている。 We are thinking about buying a used car.

すぐにこの食べ物に慣れた。 I quickly got used to this foods.

彼は静かでシャイな男の子だ。 He is a quiet, shy boy.

彼はこの仕事をする能力がある。 He has the ability to do this job.

そのプロジェクトで私は上司の信頼を得た。
I won my boss' confidence by the project.

自分に全く自信がない。 I don't have any confidence in myself.

君はもう少し自信をつける必要がある。
You just need to build up some more confidence.

そのチームの勝利を確信している。 I am confident of the team's victory.

彼を信頼している I have confidence in him.

彼は私たちに別のプランを提案した。 He suggested a different plan to us.

彼はメールに返信しなかった。 He didn't reply to my email.

君は変わったね。 You have changed.

その会社は10店舗閉鎖するプランを発表した。
The company announced a plan to close 10 stores.

ジョンはずっと無罪を主張している。 John has always insisted on his innocence.

これが先日あなたに話した本です。 This is the book I spoke to you about the other day.

最近は寝不足に悩まされています。 I have been suffering from a lack of sleep lately.

今では手軽に海外へ行くことができる Nowadays we can go abroad easily.

最近どうしてる? How are you doing these days?

彼は最近ユーチューバーとして有名になった。 He has become famous as a youtuber recently.

最近、たくさん本を読んでいる。 I’ve been reading a lot lately.

最近トレーニングをしている。 I’ve been working out recently.

なんて時間と金の無駄だ! What a waste of time and money!

その会社は廃物を減らすためにリサイクル紙を使っている。
The company is using recycled paper to reduce waste.

パクはその時、酔っていた。 Park was drunk at the time.

私にメッセージはありますか? Are there any messages for me?

彼は、私に砂糖がほしいと頼んだ。 He asked me for some sugar.

私には兄弟はいない。あなたにはいる? I have no brothers. Do you have any?

前にお会いしたことある? Have we met before?

サリーを紹介してくれますか? Could you introduce me to Sally?

お会いするのを楽しみにしてました。 I've been looking forward to meeting you.

ご無沙汰してすみません。 Sorry I haven't kept in touch.

失礼します。 I'm leaving now.

見送りに来てくれてありがとう。 Thank you for coming to see me off.

ご無沙汰しております。 Sorry I haven't been in touch for a while.

あなたに会えなくなるとさびしくなります。 I'll miss you.

また来てね。 Come to visit us again.

手伝ってくれてありがとう。 Thank you for your help.

空港まで送るよ。 I'll drive you to the airport.

私の誤りでした。お詫びします。 It was my fault. I apologize.

あなたが貸してくれた本を無くした。 I lost the book you lent to me.

あなたに謝らないといけない。 I have to apologize to you.

空港まで送ってくれますか? Would you drive me to the airport.

お願いがあるんだけど。 May I ask you a favor?

あなたの写真を撮ってもいい? Do you mind if I take your picture?

たぶんそこにいくにはバスでの方がはやいよ。 Maybe it's faster to go there by bus.

何か食べに行こうよ。 Let's go out to eat something.

肉料理が好きじゃないんだ。-僕も。 I don't like meat dishes. - Me, neither.

この映画は名作だ。 This film is a masterpiece.

今夜は外食したい? -いや、そうでもない。 Do you want to eat out tonight? -Not really.

逃げてもいい ただ諦めるな You can run away, but don't give up.

ハンガリーにこんなことわざがあります。逃げるのは恥、だが役にたつ。 In Hungary, they have a proverb that goes like this... Running away is shameful, but useful.

この用紙に記入して並んでください。 Fill in this form and wait in line.

もう少し大きい声で話してください。 Please speak a little louder.

それは面白い。 That's interesting.

ずっと一生懸命働いてきた。 I've been working very hard.

いま何時? Do you have the time?

何か落としましたよ。 You dropped something.

話があります。 I have something to tell you.

あなたならうまくできるよ。 I know you'll do well.

あなたの成功を祈ってます。 I wish you success.

5seconds-en.com

ガチャガチャ英単語 | ガチャガチャ日本語 ランダムに単語を3つ出します。英単語verと日本語verあり。組み合わせによるアイデア出し、英作文の練習、お題の選定、ランダムな言葉でひらめきを得たい際にお使いください。自由に遊んでみてください。

v-forを使わずにarrayを展開する[Vue.js] ガチャガチャ英単語と日本語

はじめに

template内で配列を展開する場合はv-forで展開ができます。 今回やりたかったのはLaravelから取った配列データを保存すること。 Vueにまだ詳しくないからまったくやりかたのイメージがつかなかったので完成するまでに2日かかりました。 色々な書き方を試して、ググって書いてエラーが出てロジックが間違えてるかもと思ってゼロからやり直すことも考えました。

ためしたこと

まずは既存のカラムにtextareaもしくはinputにv-modelでv-forを使ってデータを渡す。展開して保存。inputと併用。 →できない。できるわけない。

新しくpostテーブルにselected_wordsカラムを追加した。配列データを別のテーブルのカラムにstringで登録することにしました。 →たぶん正しい。けど、どうすれば保存できるのかわからず苦戦。

Laravelのコントローラー内でメソッドの戻り値をそのまま保存 →できない。できるのか?

とりあえずいろいろ調べて試してを繰り返した。。。。

2日後。

Vueの基礎から調べなおして、dataに直接書こうとしていたことが間違いだと気づきました。色々間違えてましたがここが大きな間違いです。 dataの値は直接変更はできない。基本ここで何らかの処理を行えない。 もし、dataプロパティに何らかの処理を加えたい場合はcomputedプロパティを使います。

ようやくデータを保存できるようになったのですが、この2つのエラーが出てどうしても解決できませんでした。

[Vue warn]: Error in render: "TypeError: Cannot read property 'word' of undefined"
TypeError: Cannot read property 'word' of undefined
export default new Vuex.Store({
  state: {
    words: [],
  },
 mutations: {
    loadEnglishWord(state, data ) {
      state.words = data
     },
  },
  actions: {
loadEnglishWord({commit}) {
  axios.get("/en-words")
  .then((response) => {

    commit('loadEnglishWord', response.data.data)
    // console.log(response.data.data);
  })
  .catch(function (error) {
    console.log(error);
  });
},
})

↓の書き方でも問題なく動くのですが'word' of undefinedのエラーがでます。 this.$store.state.words[0] の値が undefined になっているときに undefined.word とプロパティを参照することになるため表示される警告です。 実際にはデータを取れてるので何が間違えてるのか、どうすれば解決できるのかが全く分かりませんでした。

EnglishCreateForm.vue

<template>
  <div >
       {{ loadSelectedWord }}
</div>
</template>
<script>
 import {mapState} from 'vuex'
export default {
  data() {
  return {
     post:{
        selected_words: ''   
      },
  }
  },
  computed: {
...mapState(['words']),
       loadSelectedWord(){
         let val = this.$store.state.words[0].word + '/' +  this.$store.state.words[1].word + '/'+  this.$store.state.words[2].word 
        return this.post.selected_words = val
      }
  },
}
</script>

computedのloadSelectedWordを下記のように変更。結果は変わらないのですが、エラーが消えました。 もしwords[0]が存在するならword、ないならブランク。if文ですね。元々確実にデータは取れてたのでブランクになることは無いのですが、エラーが消えてすっきりしました。

EnglishCreateForm.vue

      loadSelectedWord(){
        let val = (this.$store.state.words[0]?.word || '') + '/' +  (this.$store.state.words[1]?.word || '') + '/'+ (this.$store.state.words[2]?.word || '')
        return this.post.selected_words = val
      }
 

↓は別のファイルにTwiiter投稿用に書いていたもの。これもうごきます。動くのですが'word' of undefinedのエラーがでます。

EnglishWord.vue

  <a  :href="'https://twitter.com/intent/tweet?text=【次の3つで文章を作ってね】%0A'+ words[0].word+ '/' + words[0].word+ '/'+ words[0].word+'%0A%0A&hashtags=ガチャガチャ日本語'" id="tw" onClick="window.open(encodeURI(decodeURI(this.href)), 'tweetwindow', 'width=650, height=470, personalbar=0, toolbar=0, scrollbars=1, sizable=1'); return false;" rel="nofollow" class="twitter-link"> 
            <p class="text-sm font-medium leading-normal text-center py-2">
              Tweetする
            </p>
            </a>
 

訂正1。

dataプロパティにword1、word2、word3を作ってcomputedプロパティにTweetword1,2,3を作成。条件分岐させた戻り値を返します。'word' of undefinedのエラーが消えました。すっきりしました。ただ同じような関数を繰り返し書いているのでもう少し修正。

EnglishWord.vue

       <a  :href="'https://twitter.com/intent/tweet?text=【次の3つで文章を作ってね】%0A'+ Tweetword1 + '/' + Tweetword2 + '/'+ Tweetword3 +'%0A%0A&hashtags=ガチャガチャ日本語'" id="tw" onClick="window.open(encodeURI(decodeURI(this.href)), 'tweetwindow', 'width=650, height=470, personalbar=0, toolbar=0, scrollbars=1, sizable=1'); return false;" rel="nofollow" class="twitter-link"> 
            <p class="text-sm font-medium leading-normal text-center py-2">
              Tweetする
            </p>
            </a>
 <script>
 import {mapState} from 'vuex'
 import JPCreateForm from '../components/JPCreateForm'
export default {
  data: function () {
    return {
      post:{
        post:'' ,
      },
      word1:'',
      word2:'',
      word3:''
    };
  },

  created() {
    //actionsをdispatch
    this.$store.dispatch('loadJapaneseWord')
    this.$store.dispatch('loadJapaneseWordPost')
    
  },
  computed: {
...mapState(['words','posts']),
Tweetword1() {
  let word = this.$store.state.words[0]?.word || ''
  return this.word1 = word
},
Tweetword2() {
  let word = this.$store.state.words[1]?.word || ''
  return this.word2 = word
},
Tweetword3() {
  let word = this.$store.state.words[2]?.word || ''
  return this.word3 = word
},
  },
};
</script>

訂正2。

dataプロパティに forTweetWord:'',を作ってcomputedプロパティはTweetWordだけ。word1,2,3をそれぞれ条件分岐させたものをまとめた戻り値を返します。さっきよりもすっきりしました。エラーはありません。HTMLにもTweetWord だけを書けばいいので綺麗になりました。

EnglishWord.vue

       <a  :href="'https://twitter.com/intent/tweet?text=【次の3つで文章を作ってね】%0A'+ TweetWord + '%0A%0A&hashtags=ガチャガチャ日本語'" id="tw" onClick="window.open(encodeURI(decodeURI(this.href)), 'tweetwindow', 'width=650, height=470, personalbar=0, toolbar=0, scrollbars=1, sizable=1'); return false;" rel="nofollow" class="twitter-link"> 
            <p class="text-sm font-medium leading-normal text-center py-2">
              Tweetする
            </p>
            </a>
 <script>
 import {mapState} from 'vuex'
 import JPCreateForm from '../components/JPCreateForm'
export default {
  data: function () {
    return {
      post:{
        post:'' ,
      },
   forTweetWord:'',
    };
  },

  created() {
    //actionsをdispatch
    this.$store.dispatch('loadJapaneseWord')
    this.$store.dispatch('loadJapaneseWordPost')
    
  },
  computed: {
...mapState(['words','posts']),
TweetWord() {
  let word = this.$store.state.words[0]?.word || ''
  let word1 = this.$store.state.words[1]?.word || ''
  let word2 = this.$store.state.words[2]?.word || ''
  let total = word +'/'+  word1 +'/'+  word2 
  return  this.forTweetWord = total
}
  },
};
</script>

おわりに

VueはLaravelと違ってどこが具体的に間違えてるかわからず苦労しました。Console以外のデバッグの方法があれば知りたいです。。。

5seconds-en.com

Laravel * Vuex * axios。Vuexを使う場合と使わない場合で比較

初めに

最近勉強したVuexを使って実際に書いてみたいと思い使ってみました。

バックエンドはLaravelを使ってます。 新しくサイトをつくるのではなくて、以前作ったガチャガチャ英単語ガチャガチャ日本語の機能に追加する形で実装しました。エコです。

まだまだ分からないことだらけですがちょっとずつVueが分かってきてなんとか書けたので満足です。

Vuexを使わないでScriptに全部書く場合。

<template>
 <div>
 <p v-for="word in words" :key="word.id" >
 {{ word.word }}
 </p>

<form  @submit.prevent="formSubmit">  
<div>   
<h1>Make a sentence with the words</h1>
</div>
<p v-for="word in words" :key="word.id">
 {{ word.word }}
</p>
<textarea type="text" row="6" name="write"  v-model="post.post"> </textarea>
<label for="write" ></label>
<button </button>
 </form>  

 <p v-for="post in posts":key="post.id" >
 {{ post.post }}
 </p>
</div>
</template>

<script>

export default {
  data: function () {
    return {
      words: [],
      posts:[],
      post:{
        post:'' ,
      
      }
    };
  },
  created() {
    this.loadJapaneseWord();
    this.loadJapaneseWordPost();
  },

  methods: {
    loadJapaneseWord: function () {
      axios
        .get("/ja-words")
        .then((response) => {
          this.words = response.data.data;
          // console.log(this.words);
        })
        .catch(function (error) {
          console.log(error);
        });
    },
    loadJapaneseWordPost() {
          axios
        .get("/ja-words/post")
        .then((response) => {
          //  console.log( response)
          this.posts = response.data.data;
          // console.log(this.posts);
        })
        .catch(function (error) {
          console.log(error);
        });
    },
      formSubmit() {  
          axios.post('/ja-words/post/create', this.post)
          .then(res => console.log(res))
          .catch(err => console.log(err));
           this.loadJapaneseWordPost();
           this.post.post = ''
      }
  },
};
</script>

Vuexを使ってStoreに書く場合。

フォームをコポーネント化。データwords: ,posts:,を削除。

<template>
 <div>
 <p v-for="word in words" :key="word.id" >
 {{ word.word }}
 </p>

<CreateForm/>

 <p v-for="post in posts":key="post.id" >
 {{ post.post }}
 </p>
</div>
</template>

<script>
//mapState CreateForm をインポート
 import {mapState} from 'vuex'
 import CreateForm from '../components/CreateForm'

export default {
  data: function () {
    return {
      post:{
        post:'' ,
      }
    };
  },
//CreateForm
components: {
CreateForm
  },
//actions loadJapaneseWord loadJapaneseWordPostをdispatch
  created() {
    this.$store.dispatch('loadJapaneseWord')
    this.$store.dispatch('loadJapaneseWordPost')
  },
  computed: {
...mapState(['words','posts'])
  },
  methods: {
    loadJapaneseWord() {
        this.$store.dispatch('loadJapaneseWord')
          },
  },
};
</script>

子コポーネント。CreateForm.vue

<template>
 <div>
<form  @submit.prevent="formSubmit">  
<div>   
<h1>Make a sentence with the words</h1>
</div>
<p v-for="word in words" :key="word.id">
 {{ word.word }}
</p>
<textarea type="text" row="6" name="write"  v-model="post.post"> </textarea>
<label for="write" ></label>
<button </button>
 </form>  
</div>
</template>

<script>
import {mapState} from 'vuex'
export default {
  name:"CreateForm",
  data() {
  return {
     post:{
        post:'' ,
      }
  }
  },
  computed: {
...mapState(['words'])
  },
  methods:{
          formSubmit() {  
          axios.post('/ja-words/post/create', this.post)
          // .then(res => console.log(res))
          .catch(err => console.log(err));
          this.$store.dispatch('loadJapaneseWordPost')
           this.post.post = ''
      }
  }
}
</script>

Vuex。

import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    words: [],
    posts:[],
 
  },
  mutations: {
    loadJapaneseWord(state, data ) {
     state.words = data
    },
    loadJapaneseWordPost(state, data ) {
      state.posts = data
     },
  },
  actions: {
    loadJapaneseWord({commit}) {
      axios.get("/ja-words")
      .then((response) => {
   //loadJapaneseWord mutationsをコミット
        commit('loadJapaneseWord', response.data.data)
        // console.log(response.data);
      })
      .catch(function (error) {
        console.log(error);
      });
  },
  loadJapaneseWordPost({commit}) {
    axios.get("/ja-words/post")
    .then((response) => {
      commit('loadJapaneseWordPost', response.data.data)
      // console.log(response.data);
    })
    .catch(function (error) {
      console.log(error);
    });
},
  }
})

Vuexを使わないでScriptに全部書く場合。

gif1.gif

ezgif-4-2e8e5b243f1c.gif



Vuexを使ってStoreに書く場合。

gif3.gif

gif4.gif

同じ!!!!!

終わりに

小規模なのであまりありがたみはわかりにくいですが、すっきりまとまったような気がします。うまいこと整理ができると気持ちがいいですね。 コンポーネントがたくさんになった際には、Vuexないときつそうです。

これまでずっとLaravelばっかり触ってたけど、VueをやりはじめてVueも面白いなと思いました。むしろ個人で趣味で作るサイトならフロントが得意な方が面白いもの作れるんじゃないか?と思います。

ガチャガチャ英単語

ガチャガチャ日本語

参考 https://www.youtube.com/watch?v=hsmffuEzasM

Vuexの基本

はじめに

Vuexについて勉強したのでまとめてみます。

公式 https://vuex.vuejs.org/ja/

Store

Vuexを使う上でアプリケーションの状態(情報)を管理する役割。

Vuexとは

state management。データ(状態)を管理するもの。 Vuexがない環境ではコンポーネント間のデータの受け渡しには、propsや$emitによるイベントを利用して行います。しかし、コンポーネント間でのデータ受け渡しが頻繁に行われたり階層が増えてくるとporpsやemitでのデータ管理が難しくなる。複雑に構成されたコンポーネントでのデータ管理の難しさを解決するための仕組みがVuexです。Vuexという入れ物にデータを入れることでどのコンポーネントからでもVuex内に保持するデータへのアクセスが可能になります。 Vuexのstateはdataプロパティと同じもの。Vuexのstateにプロパティを追加することですべてのコンポーネントからアクセスが可能となる。Vuexは独立したデータ保管場所。

import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
  },
  getters: {
  },
  mutations: {
  },
  actions: {
  }
})

state→アプリケーションの状態(情報) getters→stateの一部やstateから返された値を保持する mutations→stateを更新(変化)させる action→非同期通信や外部APIとのやりとりを行う

この4つをまとめたものをモジュールと言います。

state

stateはdataオプションのような存在で、stateが変更されるとコンポーネントの算出プロパティやテンプレートへと反映されます。なんでもstateに情報を保持させるのではなく、コンポーネント内部でしか使わないようなものはこれまでと同様にdataオプションに、アプリケーション全体で管理するものはstore内で管理すると良いです。

getters

stateから別の値を算出する為に使われる。 gettersは算出プロパティcomputedと同じような働きをしてくれます。 値がキャシュされ、そのgettersが依存しているstateが更新されない限り再評価しません。 違う点は引数にstateと他のgettersを持つことで、それらを使って違う値を返します。 computedと同様に、計算した値を返す以外の処理は行うべきではありません。 computedプロパティだと記述したそのコンポーネント内でしか利用できないので、他のコンポーネントで同じ処理を行いたい場合は同じコードをコンポーネント毎に記述する必要がありまる。でもGettersを利用するとVuexのstoreの中に保存されているので、他のコンポーネントからも同じ方法で利用できます。

getters

  getters: {
    users : function(state){
        return state.users.filter(user => user.age < 30);
    }

computedプロパティ 算出プロパティ(computed)はリアクティブな依存関係にもとづきキャッシュされる. 算出プロパティは、リアクティブな依存関係が更新されたときにだけ再評価されます

 computed:{
    users: function(){
        return this.$store.state.users.filter(user => user.age < 30);
    }
}

↑2つとも同じ結果になる。

mutations

mutations は state を更新する関数を登録します。 stateの更新を行うためには、mutationsを使う必要があります。 mutations はcommit 関数を使って発火させる。 実際に Vuex のストアの状態を変更できる唯一の方法は、mutationsをコミットすることです。 原則として、mutation以外でstateの更新を行うことを禁止。 commitにはpayloadで値を渡すことができる。

actions

actionsは、状態を変更するのではなく、mutationsをコミットします。 アクションは任意の非同期処理を含むことができます。 mutationsを実行するのはcommitですが、actionsを実行するためにはdispatchメソッドを使用します。


import Vue from 'vue';
import Vuex from 'vuex';

Vue.use(Vuex);

export const store = new Vuex.Store({
  strict: true,
  state: {
      products: [
          {name: 'Banana', price: 20},
          {name: 'Orange', price: 40},
          {name: 'Apple', price: 60},
          {name: 'Rice', price: 80}
      ]
  },
  getters: {
      saleProducts: (state) => {
          let saleProducts = state.products.map( product => {
              return {
                  name:  '**' + product.name + '**',
                  price: product.price / 2,
              };
          });
          return saleProducts;
      }
  },
  mutations: {
    reducePrice: (state)=> {
      state.products.forEach(product => {
        product.price -= 1
      });
    }
  },
  actions: {
    reducePrice: context => {
      setTimeout(function(){
          context.commit('reducePrice');
      }, 2000);
  }
  }
});

ビュー

<template>
    <div id="product-list-one">
        <h2>Product List One</h2>
        <ul>
            <li v-for="product in saleProducts">
                <span class="name">{{ product.name }}</span>
                <span class="price">£{{ product.price }}</span>
            </li>
        </ul>
        <button v-on:click="reducePrice">Reduce Price</button>
    </div>
</template>


メソッドでstateを変更するダメなパターン。使ってはダメ。 strictモードにするとError: [vuex] do not mutate vuex store state outside mutation handlers.のエラーが出る。

<script>
export default {
  computed: {
      saleProducts() {
     //gettersのsaleProductsのデータを取得
      return this.$store.getters.saleProducts
    },
  },
  methods: {
   reducePrice:function(){
     this.$store.state.products.forEach(product => {
       product.price -= 1
     });
   }
  }
}
</script>

メソッドでmutationsをコミットするパターン。

<script>
export default {
  computed: {
      saleProducts() {
      return this.$store.getters.saleProducts
    },
  },
  methods: {
   reducePrice:function(){
   this.$store.commit("reducePrice")
   }
  }
}
</script>

actionsをdispatchするパターン。

<script>
  methods: {
 this.$store.dispatch("reducePrice")
  }
</script>



payloadを使う場合。

  mutations: {
    reducePrice: (state, payload)=> {
      state.products.forEach(product => {
        product.price -= payload
      });
    }
  },
<script>
  methods: {
   reducePrice:function(amount){
    this.$store.commit("reducePrice",amount)
   }
  }
</script>

引数として4を渡す。2ずつ数字が減る。

 <button v-on:click="reducePrice(4)">Reduce Price</button>

同じくpayloadを使う場合。今回はactionsをdispatch。

<script>
  methods: {
   reducePrice:function(amount){
    this.$store.dispatch("reducePrice",amount)
   }
  }
</script>
  mutations: {
    reducePrice: (state, payload)=> {
      state.products.forEach(product => {
        product.price -= payload
      });
    }
  },
  actions: {
    reducePrice: (context) => {
      setTimeout(function(){ 
          context.commit('reducePrice', payload);
      }, 2000);
  }
  }


以上。

参考

6 Hour Vue.js & Firebase Project - FireBlogs - YouTube

Vuex Tutorial #6 - Mutations - YouTube

【Vuex】ストアの4つの概念まとめ【唯一の情報源】 https://qiita.com/kouki-iwahara/items/1a75daaa93657b0b56d7

入門者必読、vue.jsの状態管理Vuexがわかる https://reffect.co.jp/vue/understaind-vue-basic

VueとVuexの間の値の連携の仕方 https://qiita.com/yuyasat/items/ec439bfdc078da5f4122

瞬間英作文の練習用例文 200問パート6 【英語学習】

瞬間英作文の練習用例文 200問パート6 【英語学習】

⑤はこちら

shahalam1.hatenablog.com

瞬間英作文とは、「日本語を見て、即座に英語に訳す(英作文を作る)」ことです。

日本語を見て、5秒以内に英語を声に出します。

 瞬間英作文が英語学習にとって有効なのは分かっているけど、例文に限りがあって次に新しい題材、教材はないかな?と思っている方へ。

瞬間英作文の練習ができるWEBサービスを運営しています。例文数は2000以上。無料で使えます。

その中の例題を200問載せてますので練習用にお使いください。

サイトの方が使いやすいのは間違いないので試してみてください。

5seconds-en.com

彼女はその質問に答えるのを拒んだ。 She refused to answer the question.

そのオファーを断る特別な理由はなかった。
I didn't have a particular reason to refuse the offer.

彼は彼女の援助しようという申し出を断わった He rejected her offer to help.

彼はその問題を論じようとしなかった He refused to discuss the question.

この国では雪はまれだ。
Snow is rare in this country.

彼の説明はかなりわかりやすい。
His explanation is quite plain.

そのパーティーは新しい人たちと出会ういい機会だった。
The party was a great opportunity for meeting new people.

僕は中国の歴史に興味がある。
I'm interested in Chinese history.

その家具はほこりに覆われている。
The furniture is covered with dust.

暑くなってきている。
It's getting hot.

雨季がついに終わった。
Rainy season is finally over.

それを読むのにちょっと時間をください。
Please give me a moment to read it.

これは丁寧な言い方ですか?
Is this polite way of saying?

あなたの名前はどういうスペル?
How do you spell your name?

天気が悪いのでどこにも行けない。
I can't go anywhere because the weather is bad.

いつも通り。
Same as usual.

ジョンが来るかどうかは知らない。
I don't know whether John will come or not.

何のためにそれが必要なの? what do you need it for?

そのポルシェ借りていい?
Can I borrow the Porsche?

みんなで5000円ずつ出してそれを合わせて賭けて、当たったら賞金山分けしようよ!
Why don't we all pitch in 5000JPY, we'll pool our money together and then if we win, we'll split it!

片づけは私にやらせて。
Let me do the packing up.

僕が電話しない限り僕の家に13時にきて。
Come to my house at 1:00 pm unless I phone.

月曜を除いて毎日営業してます。
We're open every day except Monday.

ジョンのほかに数人の男の子がいる。 There are several boys besides John.

私の家はそのお店の向こうだ。
My house is beyond the shop.

その仕事は一週間以内似終わるでしょう。
The task will be finished within a week.

その病気は中国中に広がった。
The disease spread throughout China.

懸命の努力にもかかわらず、イベントは失敗に終わった。
Despite all our efforts, the event was failure.

時速60キロメートル
60 kilommeters per hour.

IT業界で仕事を得たい。
I want to get a job in IT industry.

この店の全ての商品は手作りです。
All the goods in this shop are handmade.

インターネットは僕たちに多くの恩恵をもたらした。
The Internet has brought us many benefits.

あなたが決めることです。あなた次第です
It’s your decision. It’s up to you.

ロスで落ち着くことにしました。
I decided to settle down in LA.

スケジュールがきつくて、その期間内に行きたい都市を全て回ることができませんでした
We were on a tight schedule. We couldn’t visit all the cities we wanted to within that time frame.

荷物をまとめてさっさと出よう。私たちの電車は1時間後に出発するよ。
Let’s pack up and go. Our train leaves in one hour.

その会社は3百万ドルの損失をだした。
The company had a loss of three million dollars.

彼はもう少し稼ぐ必要がある。
He needs to earn a little more money.

LAでアパートを借りるのは高い。
It's very expensive to rent an apartment in LA.

ジョンに遠距離通勤はさせられない。 I can't let John be the one who has to commute long distance.

とても感動した!
I'm so moved!

彼は人生で多くの困難を乗り越えた。 He overcame many difficulties in his life.

グラタンを焼こう。 Let's bake a gratin

私はよくラザニアを作ります。
I often bake lasagna.

彼はパンをオーブンで焼きました。
He baked the bread in the oven.

そのレストランは素晴らしい料理を出す。
The restaurant serves great food.

まだ心の準備が。。できてない。。
I'm still not mentally prepared .

ボスは私たちに日曜に働くことを強制した。
Our boss forced us to work on Sunday.

その被害者は頭のケガで死んだ。
The victim died of head injuries.

何て私はばかだったのか。
How stupid I was.

その時、誰があなたといた? Who was with you then?

その時、キムは誰といた?
Who was Kim with then?

彼女はその中国語で書かれた本を読んだの?
Did she read the book written in Chinese?

彼はうまく話そうとした?
Did he try to speak well?

私が言ったことを理解してないの?
Don't you understand what I said?

ママは僕に夕食の前にその仕事をするように言った。
My mom told me to do the task before dinner.

彼の名前はみんなに知られている。
His name is known to everybody.

私が言うことは君を驚かすだろう。
What I'm going to say will surprise you.

彼女は新しい治療を使って病気を克服すると言った
She said she will overcome the disease using a new therapy.

傷心を克服するのは難しい。 Heartbreak is difficult to overcome.

彼女は宝くじが当たったとき、喜びであふれた。
She was overcome with joy when she won the lottery.

お母さんは私に私の部屋を片付けさせた
My mom made me clean up my room.

どっちが彼の住んでいる家? Which is the house where he lives?

彼がバッグを置いたテーブルは鉄でできている。
The table where he put his bag is made of iron.

なぜ君がダンスを学ぶのに年を取りすぎていると考えるのか理解できない。
I don't understand why you think you are too old to learn dance.

両親は彼に結婚するには若すぎるというが、彼は彼女と結婚する。
Although his parents tell him that he is too young to get married, he will marry her.

彼は弟のために作った唐揚げを父に食べさせてあげた。 She let her father eat some of the fried chicken she made for her brother.

あなたが読み終わったらその本を貸してほしい。
I want you to lend me the book when you finish reading it.

先月買った車をもう売ったの?
Have you already sold the car you bought last month?

彼は忙しすぎて時間が取れない
He is too busy to schedule.

息子をプロ野球選手にならせたいその男は息子を毎日走らせた。 The man who wanted to make his son a professional baseball player made him run everyday.

時間通りにいかないといけない
I have to go according to schedule.

彼女は会食を延期したいと言っている She says she wants to reschedule the dinner to a later date.

彼女はぼくに、彼女が尊敬する作家が書いた本を読ませようとする。
She tries to make me read the books the writer she admires wrote.

彼は道に迷った男にそのレストランへの行き方を教えた。
He told the guy who had got lost how to get to the restaurant.

彼にその仕事をやらせるのは難しい。 It will de very hard to make him do the job.

その作家はあなたが先月読んだ本を15の時に書いた。 The writer wrote the novel you read last month when he was fifteen.

私はそれについて何も知らない。
I don't know anything about it.

またあなたに会う必要があるだろう。 I will have to see you again.

私たちは必要なことをする。 We will do what is necessary.

その猫に触ったことある?
Have you ever touched the cat?

ここにいる時間はない。
I don't have time to stay here.

彼にここに来てほしくない。 I don't want him to come here.

これは彼が作ったピザ? I s this pizza he made?

もしあした雪なら、家にいよう。
If it snows tomorrow, I'll stay home.

なぜその記事を読まなかったの? Why didn't you read the article?

彼女はアメリカに何度もいったことのあるその友達をうらやんでいる。
She envies her friend who has been America many times.

彼はその男性にどこでそのパンを買ったのか聞こうとした。
He tried to ask the guy where he had bought the bread.

魚が嫌いなその男は弟に魚を食べさせようとした。
The man who did not like fish tried to make his brother eat the fish.

君はミソがあなたの知らない男と歩いてるのを見た?
Did you see Miso walking with a man you did not know?

雪がたくさん降ったその日、ここではいくつか事故がありました。
There were several accidents here on the day when it snowed a lot.

たくさんの言語を話すその男は、これまでにいくつの国を訪れたのだろうか。
I wonder how many countries the man who speaks many languages has visited.

彼は5年前に撮られたその写真ではパクより痩せている。
She is thinner than Park in the picture taken five years ago.

明日僕の家に来るとき、先月貸したゲームを持ってきてほしい。 I want you to bring the game I lent you last month when you come to my house tomorrow.

誰が私のバッグを盗んだのかを知るのは不可能だと思う。
I find it impossible to find out who stole my bag.

来年ここにショッピングモールが建てられるって聞いた?
Did you hear that a shopping mall will be built here next year?

中国語を一生けんめい勉強している私の友達は、中国で5年過ごした別の友達よりかなりうまく中国語を話す。
A friend of mine who is studying Chinese hard speaks Chinese much better than another friend who spent five years in China.

私の父が来る日、君に家にいてほしい。
I want you to be home on the day when my father comes.

その犬に触ってもいいですか?
May I touch the dog?

何回アフリカに行ったことある?
How many times have you been to Africa?

その外国人は3年間英語を勉強している。 The foreigner has been studying English for three years.

私はあなたほど若くはない。 I am not as young as you.

彼女に初めて会ったとき、彼女は20歳だった。
When I first met her, she was twenty years old.

そのレストランへの道を教えて。
Can you tell me the way to the restaurant?

彼にここにいるよう頼んだ。 I begged him to stay here.

その歌は兄を思い出させる。 This song reminds me of my brother.

彼女がその事故でけがしていないと聞いて安心した。
I was relieved to know she was not hurt in the accident.

犬が川に浮かんでいた。
A dog was floating on the river.

助けが必要な時はためらわずに電話して。
Don't hesitate to call me if you need any help.

牛乳をコーンフレークに注いだ。
I poured the milk on the cereal.

彼はそのニュースを聞いてがっかりした。
He was disappointed to hear the news.

私はその決断をあとになって後悔した。
I later regretted the desicion.

私は政治にとても興味がある。
I am very interested in politics.

彼はコンピュータにデータを入力した。
He put the data into the computer.

その長旅は彼に影響を与えた。
The long trip had an effect on him.

朝食はたいていシリアルを食べます
I usually have cereal in the morning for breakfast.

朝ごはんはだいたいいつもコーンフレークです Normally, I have cereal for breakfast.

クリスマスに彼に何をあげるの?
What are you going to get him for Christmas?

彼にCDをあげた。 I got him a CD.

彼が私にバッグをくれた。
He got me a bag.

彼にコメを一粒あげた。
I got him a grain of rice.

食べ物がおいしすぎて彼は一粒も残さなかった。
The food was so good he didn't leave even one grain of rice in his bowl.

1カップに何粒の米が入ってるか当てれる?
Can you guess how many grains of rice are in one cup?

この用紙に記入してください。
Please fill out this form.

もう少し面白くするため、テーブルに値を入力してみましょう。 In order to make things a bit more interesting, let's populate our table with some values.

ソフトウエア開発は簡単さ 。 データベースへデータを入れるまでは、データ保護についての問題を抱えることはないからね。 Software development is easy - you don't have data protection problems until you start populating a database

ニューヨーク市は世界有数の人口密集都市です。
NY is one of the most densely populated cities in the world.

その女の子はもっと人口の多い地域に引っ越したい。
The girl wants to move to a more populated area.

家まで送ってくれない?
Could you give me a ride home?

彼はお金が全くなかったので、昨夜飯を食べることができなかった。
As he didn't have any money, he couldn't eat dinner last night.

彼はお金が全くなかったので、昨夜食べ物を買うことができなかった。
He didn't have any money, so he couldn't buy food last night.

昇進したから、新しい腕時計買った。 I bought a new watch because I got promoted!

パスワードは少なくとも5つの文字で構成されるべきです。 Your password should consist of at least 5 characters.

この箱にはたくさんの本が入っている。
This box contains a lot of books.

プロの音楽家になるには高度な技術が必要だ。 Being a professional musician requires a high level of skill.

ノートパソコンを毎日持ってくるのは必須です。
You are required to bring your laptop every day.

中国への入国にはパスポートとビザが必要だ。 Entry into China requires a passport and visa.

猫は私が思っていたほど多くのスペースを必要とはしない。
Cats don't require as much space as I thought.

私たちは新しいルールを採用した。
We adopted a new rule.

彼の方法は効果的であることが分かった。
HIs method proved to be effective.

この実験の目的は何?
What is the prupose of this experiment?

その理論は正しい。 The theory is correct.

大統領は声明を出した。
The President made a statement.

パクはハーバードへの奨学金を受け取った。
Park received a scholarship to Harvard.

私たちは十分にその問題を認識している。 We are fully aware of the problem.

何があったのかを知りたいだけです。 I simply want to find out what happened.

あしたは雨が降りそう。
It is likely to rain tomorrow.

彼女の英語は短期間で上達した。 Her English improved in a short period of time.

どんな種類の音楽が好き?
What sort of music do you like?

彼の第一印象はどうだった? What was your first impression of him?

最後まで戦い続ける覚悟はあるのですか?
Are you determined to fight until the end?

彼はアメリカに行く決心がついたと思う。
I think he's determined to go to the US.

彼は、どんな努力をしてでも成功すると決意していた。 He was determined to succeed at any cost.

日本の犯罪率は高くなりつつある。
Japan's crime rate is becoming higher.

化粧は見た目を変える。
Makeup can change your appearance.

どんな会社で働いていますか?
What kind of office do you work in?

こういった種類の車は好きじゃない。 I don’t like these types of cars.

この映画はちょっと面白い。 This film is sort of interesting.

その小説の著者は誰?
Who is the author of that novel?

その国は厳しい経済の問題を抱えている。
The country has severe economic problems.

彼女は2階へ行った。
She went upstairs.

ジョンは繁華街で働いている。
John works downtown.

彼女が読んでいるその本は彼に書かれた?
Was the book she is reading written by him?

先週私が書き終えた小説を彼に読んでほしい。 I want him to read the novel I finished writing last week.

韓国はとても難しいから、もっと簡単な外国語を学ぼうと思う。 As Korean is too difficult to learn, I think I will study a foreign language that is easier.

アメリカに5年住んでいるその少女は通訳になりたいの?
Does the girl who has lived in America for five years want to be an interpreter?

一年前に英語を習い始めたその男は今はかなり流暢に英語を話す。
The man, who started to learn English a year ago, now speaks English pretty fluently.

何か食べ物を持ってこようか?
Shall I bring you something to eat?

彼はこの町に5年以上住んでいると思うよ。 I think he has lived in this town for over five years.

そのテーブルは木でできていると思う?
Do you think that the table is made of wood?

この記事は誰に書かれた?
By whom was this article written?

トラはライオンよりもずっと強いと思う?
Do you think a tiger is much stronger than a lion?

何か飲み物を買いにセブンイレブンに行こう。 Let's go to the 7-eleven to buy something to drink.

友達にバナナをあげるなんて彼はなんて親切なんだ。
How kind he is to give a banaba to his friends.

ジョンが子供だったとき、毎日一生懸命勉強しなければいけなかった。
When John was a child, he had to study hard every day.

彼女は僕と話す時間は無いと言った。 She said that she didn't have any time to talk to me.

彼の部屋に入ったとき、彼はランチを食べていた。
When I went into his room, he was eating lunch.

誰がこの部屋を掃除しないといけない?
Who must clean this room?

彼はトラを見たことが無いと思うよ。 I think that he has never seen a tiger.

彼の部屋は僕の部屋よりずっと綺麗だと彼は言った。
He says that his room is much cleaner than mine.

どっちの本が読みたい?
Which book do you want to read?

今日起きてから何杯のコーヒーを飲んだ?
How many cups of coffee have you had since you got up?

私がいないときは、部屋には入らないで。
Don't go into my room while I'm away.

映画館の中へ入ろう。
Let’s go into the theater.

中に入りたい?
Do you want to go in?

彼はビルの中へ入っていった。
He went into the building.

問題ないよ。過去について話し合う必要はない。
It’s OK. We don’t need to go into the past.

彼は私に全て説明して欲しかったんだけど、私には詳しく話す時間がなかった。
He wanted me to explain everything, but I didn’t have time to go into details.

その店に入りたい? Do you want to go into the store?

本当に銃を持つ必要はある? Is it really necessary to have a gun?

警察はその犯罪を解決できなかった。 The police couldn't solve the crime.

男が家に侵入した。 A man broke into the house.

喫煙は健康に害を与えるだろう。
Smoking will do harm to your health.

財布を盗まれた。
I had my wallet stolen.

その部屋は誰に掃除された? By whom was the room cleaned?

いくつの言語を覚えようとしたことある?
How many languages have you tried to learn?

去年彼に合ったとき、彼は私より小さかった。 When I saw him last year, he was smaller than me.

そのアイスは彼に食べられてしまったと思うよ。
I think that the ice cream has been eaten by him.

彼は他のどんなことよりも読書が好きです。
He likes reading better than any other thing.

彼女が何回もアメリカに行ったことあるって知ってる? Do you know she has been to America many times?

5seconds-en.com