词汇:when
conj. 既然;当…时;考虑到
相关场景
- In American movies, all the heroes at the beginning the look like a bad guy, but when terrible things come, the become a hero. And finally, they all survived.>> People lose hope lose vision
- If the term "agree" is used, the action will be performed by the person who agreed, when "consent" is used, the action will be performed by the other person and will be tolerated by the first.
如果使用“同意”一词,则行动将由同意的人执行,当使用“同意“时,行动将由另一人执行,并得到第一人的容忍。>> 68-Persistent- Please watch out when you cross the street.>> 9 About Traffic
- Just take it easy when climbing the Great Wall.>> 6. Taking care of the tourists of the group
- When will our company give an annual party?>> 60-The Future
- 4:
- When will the flight arrive? E.T.A of the flight is eight fifteen. The flight is going to arrive at 12:30 pm. The airplane will land at the Capital International Airport around midnight.>> 1. Making preparations 1-11
- We're not gonna change that for this little example, but now let's check in that PWA files, and then let's deploy to production one more time. and as you can see, look in the top right corner, when I reload it, we now have that little install icon in Chrome. and if I click that little install icon, I'm gonna get this prompt, and boom! I have a PWA running in production for my Rails application.>> Rails 8.0.1 You are in good company
- So, be careful when you create things, that are gonna be created on the server side in your real database.The database, by the way? we haven't talked much about that, and that is because we're using SQLite. So, there is nothing to configure,there's nothing to set up, SQLite is now a suitable database for production with Rails. we have tuned it with all the right pragmas,to run SQLite well in production, you of course still need to set up a way to back that up, but everything else is preconfigured for you.>> Rails 8.0.1 You are in good company
- Now, if we hop back onto local host, and we try to log in with first the wrong password. we're actually gonna see something here , when I added the authentication, it added another gem, it added bcrypt, that's what we're using to keep password secure, so we have to hop back in here and restart our development server!>> Rails 8.0.1 You are in good company
- And that's basically the rhythm you will be in when you're working on a Rails and application and you're deploying to production.>> Rails 8.0.1 You are in good company
- You'll need to change that if you're working with other people of course, because you don't wanna check that master key into your Git repository,you're gonna wanna pull that out of one password when you go for real.>> Rails 8.0.1 You are in good company
- And when you learn something it removes a little bit of the insecurity, so that it makes it slightly easier to try again.
当你们学到一些东西时,它会消除一点不安全感,这样就更容易再试一次。>> Confidence is action- Now, let's set things up to be dynamic, such that when we add a new comment to one of these, it's going to update the other as well. This is how we use web sockets in Rails using action cable, one of the frameworks that we have to create updates that are distributed automatically without folks having to reload their browser.>> Rails 8.0.1 You are in good company
- When it is nested, we get the fact that it's gonna be slash post slash on slash comments, and we have the association is set up nicely. Now, let's reload! Now it works, we have our comments field underneath. we can add the first comment. And as you can see here, this is my first comment a second ago that was the local time doing its time ago conversion.
当它被嵌套时,我们得到的事实是,它将是斜线后斜线对斜线注释,并且我们已经很好地建立了关联。现在,让我们重新加载!现在它工作了,我们在下面有我们的评论字段。我们可以添加第一条评论。正如你在这里看到的,这是我一秒钟前的第一条评论,当时当地时间正在进行时间转换。>> Rails 8.0.1 You are in good company- All right, let's save that and hop back into our browser. Oop! I made a mistake here! When we generated the resource,it added a route for the new comments,but that route was not nested by default. We actually need to go into our routes.rb, that resource we added needs to be nested.>> Rails 8.0.1 You are in good company
- We are pacing in the comment, and we're using that same time tag as we were using with the post, but this time, we are going to use time ago, so we get that nice two minutes ago on when something went posted rather than a local time spelled out with AM PM set up.>> Rails 8.0.1 You are in good company
- As you can see here, there is now a full WYSIWYG interface for creating the body. It comes with a default set of styles for the toolbar, you can change those, those styles are generated straight into your application, so you can make it look nice for yourself. Let's give some bold and italic text here, you see, that was all that was needed. but I think what's even nicer to look at here is if we do an upload and we add a file, you will see that file gets added with a preview directly to the WYSIWYG editor. And if we save that and we update the post, it is added to the post itself. And that then went through the whole process of doing a direct upload of the file when we dropped it into the editor, that uploads it straight to active storage. And then, we have access to that, and rendering it directly from whatever storage backend active storage is using. In this example , we're just storing on disk, but you could be storing your active storage in S3 or another object storage.>> Rails 8.0.1 You are in good company
- Active Storage is a way to deal with attachments and other files in your Rails application. When you run it through action_text:install, it'll automatically set up those active storage tables that we need, there is one for blob,and then we have one for text here.We run migrations to set that up again, and now that we've run action_text:install, it also added a couple of gems, so we need to restart our development server. I do that just by exiting out and just running the server again!>> Rails 8.0.1 You are in good company
- And you can help diagnose whatever issue that it is that you have ! But let's remove that again and then let's look at the console from another angle. Now, you can get the console as I just showed you when an exception raised, but you can also get the console if you just run rails console.>> Rails 8.0.1 You are in good company
- This is the thing you're gonna see, when you start up a new Rails application, it'll tell you which version you're on, both for the ruby version, the Rails version, and the Rack version. That's running on localhost:3000 by default. But if we do slash posts here, you'll see the scaffold interface that we generated. Now, this is the index action, the one we just looked at in the view and from the controller. But if we click the New, you see here we have form for creating the new post with its title and its body. it's quiet basic, to put it mildly right now, but all the actions are mapped out. This scaffold interface is not meant for shipping into production, it is meant to showing you how to build a Rails application with the basics, and then you make it look pretty, you make it look nice.>> Rails 8.0.1 You are in good company
- find it straight off an ID:
- And if you scroll down here, you can see we have everything served in two flavors, we have both the HTML setup that'll render views directly, and then you have JSON that'll render for and an API. And as you can see here, we're also setting up a new post for some of those actions that require that, we're gonna find it straight off an ID passed in through the URL, and the post parameters are the ones we're using when we're creating and updating the application.>> Rails 8.0.1 You are in good company
- When you listen to tapes, listen with relaxed belief, believing that this can happen for you. And by listening to them, listen to them over and over and over again. And you will get a breakthrough, you can listen to the same tape for months and all of a sudden you hear something you never heard before, and have a special meaning for you. Or you can read the same book over again and you'll find some special insight, you said I can't believe I didn't see that the first time.>> Motivate yourself in the morning
- So you want to work on yourself, you want to read books that inspire you and motivate you, you want to listen to tapes over and over and over again, and I suggest that you listen to tapes when you first get up in the morning. You want to control the spirit of your day, when you first wake up in the morning your mind is operating at 10.5 wave cycles per second. that's when the subconscious mind is most impressionable. Whatever you hear in the first 20 minutes when you wake up, that will affect the spirit of your day.>> Motivate yourself in the morning
- 1.难点练习答案 A 1 which 2 denied 3 fetched4 too 5 jobs 6 One…a…who 7 past 8 next 9 watching 10 continually 11 remarked 12 robbed B (sample sentences)I'm sorry to cause you such trouble. Have you ever seen such beautiful pictures before? It's such a nice day that we can'tstay indoors! I'm feeling so tired that I shall have to stop work. C 1 He had no sooner come home than they rang him up from the office. 2 The plane had no sooner taken off than it returned to the airport. D 1 made 2 do 3 make 4 do 5 Do 6 make 7 made8 does E 1 out 2 up 3 up 4 up…away 5 up 6 out 7 back 8 up with 9 up with F (sample sentences) If you don't stop that noise at once, you'll have to go to bed. I'm at a loss to know what to do. It's stopped raining at last! He's very busy and can't accept any more work at present. I'll be at home tonight. 2.多项选择题答案 1. c 根据课文第3-4行 I tried to say something, but my mouth was full of cotton wool 可判断只有c. There was something in his mouth 最符合课文的真实情况,这也是作者不能讲话的唯一原因,其他3个选择都不是原因,所以只能选c. 2. b 根据课文第8-10行I suddenly felt very worried,…when the dentist at last removed the cotton wool… I was able to tell him that he had pulled out the wrong tooth 可以判断b. he thought the dentist had pulled out the wrong tooth 是作者着急的唯一原因,其他3个选择都不是他着急的原因,所以选b. 3. c 只有选c. cannot 才能使句子同前一句It is impossible for him to answer.(他是不可能回答的)意义相同,所以c.是正确答案.a. might not 与d .may not 都不符合题目意思. b. could not 时态不对. 4. b 本句是将前一句中表示命令请求的间接引语变成了直接引语(祈使句)。 a. To rest 是动词不定式,不能做祈使句的谓语; c. Do you rest是疑问句,不能表示请求; d. Resting 是动名词也不能做祈使句的谓语; 只有b. Rest 可以做祈使句的谓语,所以选b. 5. a 本句是将前一句中的间接疑问句...how my brother was 变成直接疑问句,因此时态和语序都要作相应改变。 b. your brother was, c. your brother is 都不是疑问句语序,所以都不对。 d. was your brother 语序正确,但时态不对:间接引语是过去时,直接引语应该是现在时才正确。只有a. is your brother 语序和时态都正确,所以应该选a. 6. c 这是一个疑问句,a. It likes you , b. Does it like you 和d. Like you 这3个选择都意思不通,不符合题目意思,只有c. Do you like 意思通顺,符合疑问句语序,因此只能选c. 7. b 介词by 后面加动名词可以表示方式。 本句只能选b. nodding(点头),因为它是动名词,可以放在by 后面作方式状语。 其他3个选择都不能放在介词by 后面,所以选b. 8. b 本句需要选一个同前一句中时间短语for a while (一会儿)意义相同的短语。a. quietly (安静地),c. while he spoke to me (当他跟我说话时),d. for a long time (很久)这3个选择都与for a while 的意义不符。 只有b. for a short time (短时间)同for a while 的含义相同,因此选b. 9. d a. assembly (集会,聚会),b. gathering (聚集,收集抽象的东西,如消息等),c. congregation (聚集,聚合) , d. collection (收集,收藏如邮票,硬币等),只有d最适合这个句子,其他3个选择都不能与火柴盒连用,所以选d. 10. a 前一句 I nodded(我点头)表示同意,只有a. agreed (同意)才是这一动作所表达的含义。b. said no (说不),c. shouted (高喊),d. whispered (耳语) 这3个选择都不是nodded所表达的含义,所以选a. 11. b 本句需要选出同前一句中的Meanwhile(同时)意义相同的词或短语。 a. However(不过,然而);b. In the mean time(同时);c. Never the less(尽管如此,不过);d. Although(虽然);这4个选择中只有b.同Meanwhile 的意义相同,所以选b. 12. c a. took it off (脱下),b. took it in (理解),c. took it out (取出),和d. took it up (从事于)4个选择中只有c. took it out 同前一句He removed the cotton wool from my mouth(他将药棉从我嘴里取出)的含义相同,所以选c.>> 48-Did You Want to Tell Me Something?
- Find 3 to 5 resources(books or DVD...). Learn just enough that you can actually practice and self correct or self edit as you practice , so the learning becomes a way of getting better at noticing when you're making a mistake and doing something a little different .>> 20 hours and 4 steps to rapid skill acquisition