Listing 2 shows how to switch the type of access when the project is already open.
列表2显示了当这个项目已经被打开时如何转换它的存取类型。
As the article steps through the lines in this script file, you can either follow along with the code shown in Listing 1 or open the script file in your favorite text editor.
因为本文将逐步介绍该脚本文件中的代码行,所以您既可以参照清单1所示的代码,也可以用您偏爱的文本编辑器打开该脚本文件。
In Listing 1, you'll find a short program that tries to open a file that is unlikely to exist and reports the error to whomever is running the program, using two different techniques.
在清单1中,您将看到一个简短程序,该程序尝试打开一个不太可能存在的文件,并使用两种不同的方法向运行该程序的用户报告错误。
Listing 3 contains this function, which attempts to open the database (if not already opened) and query the database.
清单3包含有这个函数,它尝试打开数据库(如果尚未打开的话)并查询数据库。
Listing 2 shows an example of handling multiple open results.
清单2展示的是一个处理多重打开结果的示例。
You'll use this function to set the value of the currently open tag, as shown in Listing 5.
您将使用此函数设置当前打开标记的值,如清单5 所示。
But when expo workers in Queens pried open the wooden crate, they found the massive marble masterpiece listing dangerously to one side, just a bump away from catastrophe.
然而到了皇后区,世博会工作人员撬开木箱,却发现这个硕大的大理石雕塑巨作倾向一侧,非常危险,只差一点点就要酿成大祸。
Listing 2 shows the files open for the sendmail process with the TXT files filtered out.
清单2显示了sendmail进程打开的文件,并使用txt对这些文件进行筛选。
With your preferred text editor, open the settings.py file and change it to match the Settings provided in Listing 4.
利用自己喜欢的文本编辑器,打开settings. py文件并改变它来匹配清单4内所示的设置。
For example, get Eclipse (see Resources), open a new project, copy and paste the code from Listing 1 into a new document, edit, and you are well on your way to a structured resume data file.
例如,获取Eclipse(参见参考资料),打开一个新项目,将清单1中的代码复制并粘贴到一个新文档中,编辑,您将很快创建一个结构化简历数据文件。
Open the file in Eclipse by double-clicking it, and then paste the code shown in listing 6.
在Eclipse中双击该文件打开它,然后将清单6中的代码复制粘贴到其中。
The simplest method is to open Notepad, create a new file, copy the following code (Listing 2) into the new Notepad file, and save as PresentBlox.jsp.
最简单的方法是打开记事本,新建一个文件,将下列代码(清单2)复制到新记事本文件中,然后另存为 PresentBlox.jsp。
The first step is easy, you add a connection parameter to the servlet class you are creating, and then use the connection example, as shown above, to open the connection, as shown in Listing 7 below.
第一个步骤非常简单,您在所创建的servlet类中添加一个连接参数,然后使用这个连接示例,如上所述,打开该连接,如下面的清单7所示。
The code in Listing 4 shows how you can open a client socket from flex.
清单4中的代码展示了如何通过Flex打开客户端套接字?
Open your favorite text editor and create a widget.xml file using the code snippet shown in listing 1.
打开您最喜欢的文本编辑器并使用清单1所示的代码片段创建一个widget . xml文件。
In fact, if you were to open that index.html file, you'd see something like the markup in Listing 1.
事实上,如果您打开这个index . html文件,会看到类似于清单1中的标记。
In Listing 4, if valid is returned as false, an alert box will open, and the link will not be followed, as the event handler has returned a false value.
在清单4中,如果valid返回false,将打开一个警告框,链接不会被遵循,因为事件处理程序返回一个false值。
With your favorite text editor, open the file url.py in the root of your project and change the code to match Listing 5.
用自己喜欢的文本编辑器,打开项目根内的文件url .py并参照清单5更改代码。
In Listing 12 you can see that you open a simple HTTP connection to Twitter, and tell the system that you will write to and read from that connection.
在清单12中,我们打开一个连接到Twitter的简单HTTP连接,并告诉系统我们将通过这个连接进行读写。
To create it, open a new file at $WASP_ROOT/app/lib/validator/PriceRangeCustomValidator.class.php, and fill it with the code in Listing 17.
要创建它,在 $WASP_ROOT/app/lib/validator/PriceRangeCustomValidator.class.php打开一个新文件,并使用清单17中的代码填充它。
Now walk through the in Listing 3. You may find it easier to open your favorite editor and view the AtomGenerator file, as the source is included as the download along with this document.
现在看看清单3。可以下载本文提供的源代码,打开自己喜欢的编辑器并查看AtomGenerator文件。
Listing 5 shows how we would open an HTTP connection with a specified request method of GET, passing a parameter with the name size and a value of large.
清单5显示了如何用特定请求方法GET和一个名为size值为large的参数打开一个HTTP连接。
Create and open OrdersView.jsp (in the interportletmessagingusingajax/jsp/html directory) and add the code in Listing 7 to it
创建并打开OrdersView.jsp(在interportletmessagingusingajax/jsp/html目录),并把清单7中的代码添加到它
You can see the problem in Listing 2, which is a code snippet from Tomcat, the open source web application server.
您可以在清单2中看到这个问题,这是节选自开源web应用服务器Tomcat的代码片断。
Now, we open the datagram channel and set up the options for multicasting, as shown in Listing 4.
现在,打开数据报通道并设置多播选项,如清单4所示。
To do this, open the UML2ObjCClassRule class and add the import statements shown in Listing 10.
请打开UML2ObjCClassRule类,然后添加列表10中所示的导入语句。
All the listing options open a corresponding TAB, listing all objects of specified type with title, tags, last updated timestamp, rating, and author.
这些选项分别打开对应的选项卡,其中列出指定类型的所有对象以及标题、标签、最后更新时间戳、级别和作者。
Open your text editor and create a new file, adding the contents of Listing 2 to it.
打开文本编辑器并创建一个新的文件,将清单2中的内容添加到该文件中。
Photographs from a 2007 real estate listing show a stone-encircled swimming pool and an open-air sitting room with views of the ocean.
从一份2007年房地产清单照片来看,有一个石头围成的游泳池,一个能看到海的露天起居室。
Open this file with your favorite text editor, and add the following lines in Listing 1 to the bottom of the file.
使用您最喜欢的文本编辑打开该文件,然后将清单1中的行添加到该文件的底部。
应用推荐