词汇:thing

n. 东西;事物;事情;情况

相关场景

we are in with production authentication for the entire system. all right one last thing, let me show how to turn this web application into a PWA as well.
>> 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
All right , let's save that and hop back,and see a reload here, now, we have a sign out button, and we can sign out, and that's all it should be. let's deploy this to production, we're gonna just check this thing into Git, deploy it straight to production, go back to our alpha.software...Oops! That didn't work. Why did that not work?
>> Rails 8.0.1 You are in good company
So that's just gonna be my email address and 123 password!We hop back into our CLI, and run rails db:seed, that's gonna run that file , I just showed you and set things up.
>> Rails 8.0.1 You are in good company
rails g authentication:
Now, let's add authentication to things as well. Authentication is one of the newer feature in Rails, it basically gives you a default setup for tracking sessions, tracking passwords, and even doing password resets.
>> Rails 8.0.1 You are in good company
By default, Kamal will use a docker volume to start these things up, but of course, you can configure that, and as I said, you can use S3 if you'd like as well.
>> Rails 8.0.1 You are in good company
And as you can see here, I sped things up a little bit, but it was about 80 seconds on my linux machine from a cold boot to do that.
>> Rails 8.0.1 You are in good company
And it will deploy it, push it out, do it in a red green deployment or blue green deployment such that there is no gap in that deployment as you set things up.
>> Rails 8.0.1 You are in good company
And you can pull that password from a bunch of different places, you can pull it from a credential store like one password, you can pull it straight out of Github command, as you can see here with the Github token above, or you can pull things out of ENV.
>> Rails 8.0.1 You are in good company
Your fun side might make things better.
你有趣的一面可能会让事情变得更好。
>> 56-Faster Than Sound!
So if we scroll down to the bottom here, we are ready. The first thing we're gonna do, we're gonna add a turbo stream from post to the show files to the show template.That's gonna set up the web socket connection and subscribe us to a channel named after that particular post that's pasted in.
>> Rails 8.0.1 You are in good company
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
And your comment is just be a text area for content. We could have made this a rich text field as well, but let's keep things simple and just keep it in plain text!
>> Rails 8.0.1 You are in good company
Now again, if you don't want any of this stuff, there is a way using JS bundler dash Rails to set things up in a more traditional way using ES build and what have you. But this is a wonderful way of developing modern web application.
>> Rails 8.0.1 You are in good company
This is exceptionally helpful for interacting with your domain model, updating things on the fly, and as you will later, updating things even once you've deployed this to production!
>> Rails 8.0.1 You are in good company
Now , Rails has a bunch of different ways you can do the CSS, there's also a path where you can use Tailwind. Lots of people like that for good reason, and there are a bunch of different options, all the major CSS frameworks are available, but by default, we ship with a no build, as I said, intention and simple CSS just make things look prettier without having to adorn anything with classes, or what have you.
>> 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
That post is just going to have a title that's string and a body that's a text, and as you can see here from what's being generated, we have everything that we need to set up a basic interface for that scaffold. There is a migration that'll set things up in the database. There is a controller, there are views, there's a model, there's even testing stubs and adjacent API on top. So let's run that migration, and as you can see here, we created the posts in the main schema file, and now, we're ready to have a look at the application that was generated here with the post scaffold.
>> Rails 8.0.1 You are in good company
Leijun:
All the setbacks and failures you have experienced, even those seemingly meaningless things that waste time, will become your most important and precious wealth.
>> Motivate yourself in the morning
One of the things that we must do is that we must be involved in working on achieving self mastery. You must work on yourself continuously. Never be satisfied with yourself, always know that as you invest the effort and time on you.That's the greatest ability that human beings have above animals.
>> Motivate yourself in the morning
Have a thought process around things that are complicated and you'll get better over life.
围绕复杂的事情进行思考,你会在生活中变得更好。
>> work hard but work smart
distractions television internet. all of these things that get in the way of you actually sitting down and doing the work and more you're able to use just a little bit of willpower to remove the distractions that are keeping you from practicing. the more likely you are to actually sit down and practice .
>> 20 hours and 4 steps to rapid skill acquisition
Keeping people positive is the most important thing.
>> Social Language
It means if you want to improve your Spanish, it will not help you to speak Spanish out loud in the car, as you drive to work in the morning. It will not help you to go to the bathroom, close the door, and speak Spanish to the mirror. I used to think those things help. now I think they don't.
>> comprehensible input - One way only one way to acquire a language
If comprehensible input is true, what we call the input Hypothesis is true, other things follow from it."Talking is not practicing."
如果可理解输入是真的,那么我们所说的输入假说就是真的,其他事情也会随之而来。“说话不是练习。”
>> comprehensible input - One way only one way to acquire a language