我发现最好的做法是先从错误级别开始,然后启用警告级别,这可以很好地限制验证运行中显示的消息的数量。
I found that it was best to start with errors only, then enable the warning levels as a good way to limit the number of messages shown from the validation run.
在清单10中,我已经创建了一场马拉松,然后继续验证记录确实是在切分1中而非切分0中。
In Listing 10, I've created a marathon and then proceeded to verify that the record is indeed in Shard 1 and not in Shard 0.
例如,我可以写一个验证规则,用于断言指定参数不为null,然后在所有需要同样规则的方法中重用它。
For instance, I could write a validation rule asserting that a given parameter was not null and then reuse it across all methods needing the same rule.
我更喜欢使用控制器,因为我可以使用它来触发模型逻辑,然后进行某种验证处理,接着将用户路由到一个相应的错误处理或结果页。
I prefer to use a controller, because I can use it to fire the model logic, then do some validation processing, and then route the user to an error-handling or result page as appropriate.
于是,我要做的就是,当注册页面出现时,在邮件地址“@yourdomain.com” 前面加上一个数字以及输入验证码,然后点击“现在注册”按钮。
So all I had to do when the signup screen loaded was enter a number before the @ sign in email, enter the captcha, and click signup.
现在我已经基本上获得了通过TwitterOAuth验证用户的工作web应用程序,异步获得他或她的数据,然后异步更新网页。
Now I've essentially got a working web application that authenticates a user with Twitter's OAuth, grabs his or her data asynchronously, and then asynchronously updates a web page.
禁用信用卡验证后,我预订了从Toronto飞往London的航班,然后我决定预订一些其他航班。
After disabling credit card validation, I booked my flight from Toronto to London, and then I decided to book several other legs of my journey.
我也建议使用哈希的或者是加密过的密码而不是明文,然后一旦完成验证,就将它从内存中清除掉。
I also suggest working with hash'd or encrypted password instead of plain text and clearing it from memory as soon as authentication is completed.
我只会记录我的对与否,然后便是我最为感兴趣的走势判断,验证我的观察的准确与否;
It was rather a sort of record of my hits and misses, and next to the determination of probable movements I was most interested in verifying whether I had observed accurately;
总的来说,我对于如何影响及激励人们非常感兴趣。借助社会心理学的理论来建立假设,然后验证这些假设。
In general, I'm interested in how to influence and motivate people, drawing on theories from social psychology to create hypotheses and then test them.
然后我想说得是,新的大众健康法更加完善,当然,还有许多需要验证。
Then I tell them that it gets better, but there's a lot to know.
当我们遇到一个新单词,我们应该猜出它的意思然后再在字典里查找验证,我想,这是一个好的阅读方式。
When we come across a new word. We should guess its meaning through the contest first. then look it up in the dictionary to have a check. I think, it is a good way of reading.
我输入了验证码,然后点击了提交按钮。
我输入了验证码,然后点击了提交按钮。
应用推荐