In this case, I rotate the line around the center of the movie with the code shown below.
在本例中,我用下面所示的代码使这条直线围绕动画的中心旋转。
In Listing 4, the first line of code takes each element of an array, calls the closure on it, and then builds a collection with the results.
在清单4中,第一行代码提取数组中的每个元素,并在此基础上调用闭包,然后用结果构建一个集合。
You do this by letting the agent perform a server-side redirect to your XML view as shown in the next line of code.
这是在代码的下一行中完成的,即让代理执行到您的xml视图的服务器端重定向操作。
Once you find the line of code in question, determine the value of the variables in that method, how the method was called, and specifically why the error occurred.
一旦您发现了代码中出错的行,请确定该方法中变量的值、方法被调用的方式以及关于错误如何发生的详细情况。
That is, if a function has a certain set or range of valid values for its arguments, an assertion to this effect can be placed as the first line of code in the function.
那就是说,如果函数有确定的有效值集合或范围可作为参数,可以将检验参数是否有效的断言放在该函数代码的第一行。
What happens now after we've executed this third line of code, what happens next in the story?
我执行完第三行代码会发生什么呢,在这之后会发生什么呢?
You can see the addition below in Figure 28; the new code starts on line 106.
您可以看到下图28中的附加内容;新的代码从106行开始。
To add a record definition, place the cursor on the last line of code in the editor.
要添加一条记录定义,将光标移到编辑器的最后一行代码上。
Starting at line 720, change the code shown in Listing 4 to that shown in Listing 5.
从第 720行开始,把清单4中所示的代码更改为清单5中的代码。
Add the code in Listing 7, starting at line 399.
从第399行开始,添加请单7中的代码。
In such cases, error logs from the application, or stack traces from the application dumps, often provide little or no help in pinpointing the exact line of code where the problem originates.
在这种情况下,应用程序错误日志、或应用程序转储中的堆栈跟踪,通常很难为找出产生问题的确切代码行提供实际的帮助。
If you look at the code for the script you just recorded, you should see a line of code similar to that in Listing 1.
如果您在刚刚记录的脚本里查看代码,您应当看到类似于列表1中的一行代码。
Finding a seemingly arbitrary number in the middle of a 40 line block of code is a maintenance nightmare.
在40行的代码块了中寻找一个不带任何表意的字符变量,对于维护工作来说简直是场噩梦。
If you compare the two applications, you'll see that there is just one line of extra code in Step 3 of Listing 5.
如果比较两个应用程序,就会看到清单5的步骤3中只有一行额外代码。
Note: in the preceding code example, the code normally appears as a single continuous line. In this instance, the lines of code are split into multiple lines for ease of formatting and printing.
注意:在上面的例子中,代码通常作为单独的连续行出现,但为了便于设置格式和打印,将它分成了多行。
This requires you to change only one line of code from the original code in Listing 2.
在清单2中的原始代码基础上只更改一行代码即可。
The first line of code in Listing 11 calculates the number of messages to be deleted according to the formula described above.
清单11中第一个代码行根据上面的公式计算要删除的消息数量。
It builds the URI, sets the request headers, and invokes the request in one line of code.
它构建URI,设置请求头,并在一行代码中调用请求。
So, I'm getting a string and so what really am I doing in this line of code?
那么,我得到一个字符串,这行代码实际上是干什么的呢?
What's more, developers have to reason about each and every line in the code, looking to see if it needs to be protected because too much synchronization is just as bad as too little.
此外,开发人员需要对每一行代码刨根知底,以确定是否需要保护它们,因为过度同步与过少同步同样有害。
The lcov tool generates an entire HTML tree that contains every line of code in the kernel and data on how many times, if any, each line was executed.
lcov工具会生成一棵完整的HTML 树,其中包含有内核中代码的每一行以及关于每一行执行了多少次的数据(如果有的话)。
There's one line of code in the sample that I think is violating that, and that's the IsAjaxRequest property.
在示例中只有一行代码破坏了这一点,那就是IsAjaxRequest属性。
This gem lets you fire off jobs in one line of code and implements a priority queue so that your important jobs don't wait behind routine jobs.
您可以在一行代码中使用这个gem清除所有任务和实现优先级队列,这样您的重要任务就不需要在例程作业后等待了。
Note that because I made synonyms read-only in Listing 3, Ruby denied my attempt in the last line of code in Listing 7.
注意,因为在清单3 中使 synonyms成为只读的,所以 Ruby拒绝执行清单7中的最后一行代码。
The one line of code in the class body of Order defines its relationship to the Item object.
在Order类体中有一行代码定义了它与Item对象的关系。
To see if an exception is raised in a certain line of code, you can add an assert false statement just after that line.
要查看在某行代码中是否抛出异常,您可以直接在这行代码之后加入assertfalse语句。
So really, the rule of thumb if you think back to Scratch is — that any time you write a statement — — something that does something in one line of code — you generally need the semicolon there.
实际上,根据经验,你们回忆一下在Scratch中,任何时候你们写一条语句-,处理一些操作的一行代码-,你们通常需要在那里加个分号。
This explains the use of substr (text, match [0], match [1]) in the last line of code.
这解释了最后一行代码中substr (text,match [0],match[1])的使用。
In the code, note the line cairo_stroke (cr), which appears after I've drawn the letters but before I've added the "Registered" mark.
请注意代码中的cairo_stroke (cr)行,这一行出现在绘制字母之后,但在添加注册标志之前。
In the code, note the line cairo_stroke (cr), which appears after I've drawn the letters but before I've added the "Registered" mark.
请注意代码中的cairo_stroke (cr)行,这一行出现在绘制字母之后,但在添加注册标志之前。
应用推荐