有些应用需要在主程序启运前运行启动函数。
Certain applications need to invoke startup functions that run before the main program starts.
接下来,注意名为index的启动函数,它将加载welcome_message视图。
Next, notice the starter function called index , which loads a view called welcome_message.
在通过各种数据库配置参数配置了主备数据库并在备用位置恢复了主数据库之后,您就可以启动hadr函数了。
Once you configured the primary and standby databases through various database configuration parameters and restored the primary database at the standby location, you could start HADR function.
这个函数由服务器在启动时调用。
您可以通过启动合适的脚本编制向导,直接从这些文件夹创建新的SQL过程和函数。
You can create new SQL procedures and functions directly from these folders by launching the appropriate scripting wizard.
我们将介绍启动链中的几个主要函数,并解释一下到底在进行什么操作。
I walk through some of the major functions in the boot chain and explain what's happening.
这个函数启动AJAX请求并添加一个包含文本的div块。
This function is starting the AJAX request and adding an DIV Block with some more text.
对于这个应用程序,有用于GPS功能、在数据库中访问和保存数据以及启动和停止应用程序的回调函数。
For this application, there are callbacks for GPS functions, opening and saving data to the database, and starting and stopping the application.
最后一步是创建一个启动这个应用程序的主函数。
The last step is to create a main function that kicks off the application.
main函数和前面一样启动,创建一个到总线的连接。
The main function starts as before, creating a connection to the bus.
最后的标记定义了一个图像数组,然后使用load_slides和start_slides函数启动幻灯片放映。
The last tag defines an array of images, and then USES the load_slides and start_slides functions to start the slide show.
清单1中的最后一行展示如何通过调用Worker 的postMessage函数来启动它。
The last line of Listing 1 shows how the Worker is initiated—by calling its postMessage function.
这时,可以不必等待计划的cron作业的发生,而是使用execphp函数来启动这个脚本并转换该文件。
Rather than wait for the scheduled cron job to take place, you then use the exec PHP function to start the script and convert the file.
最后,请注意函数调用的分支目标并不是启动它的代码,而是.opd入点描述符。
Finally, notice that the branch target for the function call is not the code that starts it, but the.opd entry point descriptor.
当发生mouseout事件时,代码调用一个函数,它会取消本节前面启动的计时器,然后转换回Inactive状态。
When a mouseout event occurs, your code will call a function that cancels the timer started earlier in this section, and then transitions back to Inactive state.
启动文件能够创建别名、设置shell选项、创建函数、以及设置环境变量。
Startup files can create aliases, set shell options, create functions, and set environment variables.
调用下面的函数启动服务端。
最好在这个插件的关键函数中设置一些断点,然后在调试模式下启动LotusSametime,检查它的工作方式。
It's a good idea to set some breakpoints in the key functions in this plug-in and then launch Lotus Sametime in debug mode, to view how it works.
此函数接受模拟处理器拓扑作为其参数并在内部配置模拟器环境,同时启动用户空间Linux内核。
This function accepts as its argument the simulated processor topology and internally configures the simulator environment and starts the user-space Linux kernel.
代码从指定的URL获取XML内容,然后loadxmldoc函数启动Ajax请求。
The code grabs the XML content from a specified URL, then the loadXMLDoc function starts the Ajax request.
每次启动Jhyton时,为了使用该模块中的函数,您必须导入manager . py。
You must import the manager.py module each time you start Jython in order to use the functions contained in the module.
onMenuItemCommand 函数使用上一篇文章中的 XUL示例applet启动窗口。
The Stats.onMenuItemCommand function simply launches a window with the XUL example applet from the last article.
在stockquotegenerator类(一个单态类)的构造函数中,我们启动了一个新线程,并向该线程分配了一个Runnable对象。
In the constructor of StockQuoteGenerator class, which is a singleton class, we are starting a new thread and assigning a Runnable object to that thread.
start_slides函数从第一项开始启动幻灯片放映。
The start_slides function starts the slide show with the first item.
函数 start_kthread通过调用内核API kernel_thread 来启动这个线程。
The function start_kthread launches the thread by calling kernel API kernel_thread.
从您的角度来看,程序执行是从一个名为main的函数开始的;有些库的启动代码会获得从PPE中传递过来的参数,然后使用这些参数来调用main函数。
From your perspective, execution begins at a function called main ; some library startup code obtains the arguments passed in from the PPE and then calls your main function with those arguments.
最后调用Subscribe函数启动序列并计算结果。
Finally the Subscribe function is called to kick off the sequence and evaluate the result.
Xdebug将在49次函数调用后介入并得到图2(顺便说一句,main的初始调用用于启动程序计数作为第1次调用)。
Xdebug intervenes after 49 function calls and yields Figure 2. (By the way, the initial invocation of main to launch the program counts as the first frame.)
于是我编写了一个过滤器函数,判断给定的节点是否启动了一个XML岛,清单2显示了该代码。
So I wrote a filter function that, given a node, determines whether it starts an XML island. Listing 2 shows the code.
这个事件处理函数启动一个新的服务器,通过在它上面执行一系列命令来配置它。
The event handler starts a new server and configures it by executing a sequence of commands on it.
应用推荐