postgresql9.6.zip


-
postgresql9.6的RPM安装包
6.14MB
postgres9.6 rpm包.zip
2019-09-19这是postgres9.6 rpm包.zip安装,可以使用rpm -ivh 的命令进行安装
177.48MB
postgresql-9.6.18-1-windows-x64-binaries.zip
2020-05-21postgresql-9.6.18-1-windows-x64-binaries.zip
193.51MB
postgresql9.6和对应版本的postgis.zip
2020-06-08文件夹中包含postgresql9,6和postGIS这两个开源软件,下载解压后,先安装postgresql,之后将postGIS安装在同一路径下,因为两个软件都是.exe文件,所以直接运行并且一直点击“下一步”就可以了
73.89MB
Postgresql中国用户大会 2016(PG大象会)所有PPT汇总.zip
2017-01-10文档内包含的PPT有: CK Tan-VITESSE DATA-DeepGreen DB- 性能优化、开发方向.pdf 楼方鑫-平民软件-Spark_over_OneProxy_Postgresql.pdf Mason Sharp-华为-Scaling with PostgreSQL 9.6 and Postgres-XL.pdf 陆公瑜-Pivotal- Greenplum 5.0及规划.pdf Sylvain - CodeBunker - The power of PostgreSQL exposed with automatically generated API endpoints.pdf 宋光旋-华东师范大学-窗口函数优化.pdf 曾文旌-阿里云-使用 PostgreSQL 去 O 的冰与火.pdf 孙鹏-英资教育-数据库设计中对JSON的使用.pdf 陈飚-Cloudera-Hadoop最新结构化存储利器Kudu.pdf 唐成-云徙科技-数据库多版本实现内幕.pdf 陈飚-Cloudera-HBase佳实践及优化.pdf 汪洋-平安科技-PG+金融架构演进之路.pdf 陈刚-平安科技-PostgreSQL数据库源码浅析.pdf 王鹏冲-平安科技-从ACID的D看三种主流关系型数据库.pdf 陈旭-平安壹钱包-大数据实时流计算风云榜.pdf 王青松-飞象数据-实现PostgreSQL逻辑复制实战.pdf 德哥-阿里云 - PostgreSQL开发最佳实践.pdf 王硕-瀚高软件-PostgreSQL WAL日志解析与应用.pdf 德哥-阿里云-PostgreSQL前世今生.pdf 叶金荣-知数堂-抽丝剥茧之MySQL疑难杂症排查.pdf 德哥-阿里云-sharding单元化(based on postgres_fdw)最佳实践.pdf 余星-平安壹钱包-浅谈PostgreSQL 高可用架构.pdf 范孝剑-阿里云-PG优化器浅析.pdf 张广舟-阿里云-ApsaraDB for Greenplum介绍.pdf 高金芳-平安科技-PostgreSQL反向代理redis.pdf 张文杰-阿里云-PostgreSQL流复制优化.pdf 何祖文-贵州云飞-PG与智慧物流.pdf 张文升-探探科技-PostgreSQL和探探见证四亿次心动.pdf 姜瑞海-瀚高软件-PostgreSQL自适应流复制.pdf 张晓通-平安壹钱包-从金融架构的视角看数据库.pdf 赖伟-飞象数据-Sybase向PG迁移实践.pdf 张友东-阿里云-MongoDB分布式架构演进.pdf 兰海-武汉大学-从PostgreSQL实现Flashback谈如何内核开发.pdf 赵振平-太阳塔科技-工业大数据初探.pdf 李跃森-腾讯科技-PGXZ在微信支付中的应用.pdf 钟勇-上海宝存-固态硬盘的前世今生.pdf 梁海安-平安科技-金融级PostgreSQL数据库监控与优化.pdf 朱贤文-文武信息-Run your PG on ZFS.pdf
15.91MB
pg9.6_rpm.zip
2020-12-25离线pg9.6安装包
189KB
pg库oracle兼容函数包orafce-3.3.0.zip
2018-11-18PostgresSQL数据库安装orafce-3.3.0函数兼容程序包,适用于postgres9.6 或其它版本
21KB
等待事件的抽样统计Pg-wait-sampling.zip
2019-07-19Pg-wait-samplingPg-wait-sampling 是等待事件的抽样统计。介绍PostgreSQL 9.6 提供了有关特定进程当前等待事件的信息。然而,为了收集服务器行为的描述性统计,用户必须多次采样当前等待事件。Pg-wait-sampling 是用于收集等待事件的采样统计信息的扩展。 它收集两种统计。等待事件的历史记录。它被实现为内存中环形缓冲区,其中每个进程的样本等待事件用给定(可配置)周期写入。因此,对于每个运行的进程,用户可以根据历史数据的大小(可配置)看到一些最近的样本。假设有一个客户端定期读取此历史记录并将其转储到某处,用户可以有连续的历史记录。等待配置文件。它被实现为内存中散列表,其中每个进程和每个等待事件被样本计数累积。该哈希表可以通过用户请求重置。假设有一个客户端定期转储配置文件并重置它,用户可以根据等待事件的时间性设置统计强度。
61KB
远程管理-源码
2021-02-18网站的远程管理 撰写者:Duncan Sutter,Samantha Tripp和Michael Milette 初始版本:2020年7月执照:麻省理工学院 注意:这是文档的初稿。 该脚本是远程管理的主要入口点。 操作是: 后备 恢复 有关更多信息和其他选项,请参阅。 它已经在Moodle和Drupal网站上进行了测试。 备份功能仅包括您的应用程序和数据文件以及数据库,而不包括操作系统。 贡献 有关贡献的更多信息,请参见 。 编码准则 请遵循PHP标准建议书。 安装 依存关系 PHP 7.3或7.4(将来可能支持PHP 8.x) PostgreSQL 9.6 / 10.2或更高版本(将来可能支持MySQL / MariaDB) AWS S3存储桶 作曲家 Info-ZIP 64位 Drush(仅适用于Drupal) 仅在RedHat 8 Linux上进行了测试,但可能与其他系
1.46MB
Python Cookbook, 2nd Edition
2009-05-17• Table of Contents • Index • Reviews • Reader Reviews • Errata • Academic Python Cookbook, 2nd Edition By David Ascher, Alex Martelli, Anna Ravenscroft Publisher : O'Reilly Pub Date : March 2005 ISBN : 0-596-00797-3 Pages : 844 Copyright Preface The Design of the Book The Implementation of the Book Using the Code from This Book Audience Organization Further Reading Conventions Used in This Book How to Contact Us Safari® Enabled Acknowledgments Chapter 1. Text Introduction Recipe 1.1. Processing a String One Character at a Time Recipe 1.2. Converting Between Characters and Numeric Codes Recipe 1.3. Testing Whether an Object Is String-like Recipe 1.4. Aligning Strings Recipe 1.5. Trimming Space from the Ends of a String Recipe 1.6. Combining Strings Recipe 1.7. Reversing a String by Words or Characters Recipe 1.8. Checking Whether a String Contains a Set of Characters Recipe 1.9. Simplifying Usage of Strings' translate Method Recipe 1.10. Filtering a String for a Set of Characters Recipe 1.11. Checking Whether a String Is Text or Binary Recipe 1.12. Controlling Case Recipe 1.13. Accessing Substrings Recipe 1.14. Changing the Indentation of a Multiline String Recipe 1.15. Expanding and Compressing Tabs Recipe 1.16. Interpolating Variables in a String Recipe 1.17. Interpolating Variables in a Stringin Python 2.4 Recipe 1.18. Replacing Multiple Patterns in a Single Pass Recipe 1.19. Checking a String for Any of Multiple Endings Recipe 1.20. Handling International Text with Unicode Recipe 1.21. Converting Between Unicode and Plain Strings Recipe 1.22. Printing Unicode Charactersto Standard Output Recipe 1.23. Encoding Unicode Data for XML and HTML Recipe 1.24. Making Some Strings Case-Insensitive Recipe 1.25. Converting HTML Documents to Texton a Unix Terminal Chapter 2. Files Introduction Recipe 2.1. Reading from a File Recipe 2.2. Writing to a File Recipe 2.3. Searching and Replacing Text in a File Recipe 2.4. Reading a Specific Line from a File Recipe 2.5. Counting Lines in a File Recipe 2.6. Processing Every Word in a File Recipe 2.7. Using Random-Access Input/Output Recipe 2.8. Updating a Random-Access File Recipe 2.9. Reading Data from zip Files Recipe 2.10. Handling a zip File Inside a String Recipe 2.11. Archiving a Tree of Files into a Compressed tar File Recipe 2.12. Sending Binary Data to Standard Output Under Windows Recipe 2.13. Using a C++-like iostream Syntax Recipe 2.14. Rewinding an Input File to the Beginning Recipe 2.15. Adapting a File-like Object to a True File Object Recipe 2.16. Walking Directory Trees Recipe 2.17. Swapping One File Extension for Another Throughout a Directory Tree Recipe 2.18. Finding a File Given a Search Path Recipe 2.19. Finding Files Given a Search Path and a Pattern Recipe 2.20. Finding a File on the Python Search Path Recipe 2.21. Dynamically Changing the PythonSearch Path Recipe 2.22. Computing the Relative Path from One Directory to Another Recipe 2.23. Reading an Unbuffered Character in a Cross-Platform Way Recipe 2.24. Counting Pages of PDF Documents on Mac OS X Recipe 2.25. Changing File Attributes on Windows Recipe 2.26. Extracting Text from OpenOffice.org Documents Recipe 2.27. Extracting Text from Microsoft Word Documents Recipe 2.28. File Locking Using a Cross-Platform API Recipe 2.29. Versioning Filenames Recipe 2.30. Calculating CRC-64 Cyclic Redundancy Checks Chapter 3. Time and Money Introduction Recipe 3.1. Calculating Yesterday and Tomorrow Recipe 3.2. Finding Last Friday Recipe 3.3. Calculating Time Periods in a Date Range Recipe 3.4. Summing Durations of Songs Recipe 3.5. Calculating the Number of Weekdays Between Two Dates Recipe 3.6. Looking up Holidays Automatically Recipe 3.7. Fuzzy Parsing of Dates Recipe 3.8. Checking Whether Daylight Saving Time Is Currently in Effect Recipe 3.9. Converting Time Zones Recipe 3.10. Running a Command Repeatedly Recipe 3.11. Scheduling Commands Recipe 3.12. Doing Decimal Arithmetic Recipe 3.13. Formatting Decimals as Currency Recipe 3.14. Using Python as a Simple Adding Machine Recipe 3.15. Checking a Credit Card Checksum Recipe 3.16. Watching Foreign Exchange Rates Chapter 4. Python Shortcuts Introduction Recipe 4.1. Copying an Object Recipe 4.2. Constructing Lists with List Comprehensions Recipe 4.3. Returning an Element of a List If It Exists Recipe 4.4. Looping over Items and Their Indices in a Sequence Recipe 4.5. Creating Lists of Lists Without Sharing References Recipe 4.6. Flattening a Nested Sequence Recipe 4.7. Removing or Reordering Columnsin a List of Rows Recipe 4.8. Transposing Two-Dimensional Arrays Recipe 4.9. Getting a Value from a Dictionary Recipe 4.10. Adding an Entry to a Dictionary Recipe 4.11. Building a Dictionary Without Excessive Quoting Recipe 4.12. Building a Dict from a List of Alternating Keys and Values Recipe 4.13. Extracting a Subset of a Dictionary Recipe 4.14. Inverting a Dictionary Recipe 4.15. Associating Multiple Values with Each Key in a Dictionary Recipe 4.16. Using a Dictionary to Dispatch Methods or Functions Recipe 4.17. Finding Unions and Intersections of Dictionaries Recipe 4.18. Collecting a Bunch of Named Items Recipe 4.19. Assigning and Testing with One Statement Recipe 4.20. Using printf in Python Recipe 4.21. Randomly Picking Items with Given Probabilities Recipe 4.22. Handling Exceptions Within an Expression Recipe 4.23. Ensuring a Name Is Defined in a Given Module Chapter 5. Searching and Sorting Introduction Recipe 5.1. Sorting a Dictionary Recipe 5.2. Sorting a List of Strings Case-Insensitively Recipe 5.3. Sorting a List of Objects by an Attribute of the Objects Recipe 5.4. Sorting Keys or Indices Basedon the Corresponding Values Recipe 5.5. Sorting Strings with Embedded Numbers Recipe 5.6. Processing All of a List's Items in Random Order Recipe 5.7. Keeping a Sequence Ordered as Items Are Added Recipe 5.8. Getting the First Few Smallest Items of a Sequence Recipe 5.9. Looking for Items in a Sorted Sequence Recipe 5.10. Selecting the nth Smallest Element of a Sequence Recipe 5.11. Showing off quicksort in Three Lines Recipe 5.12. Performing Frequent Membership Tests on a Sequence Recipe 5.13. Finding Subsequences Recipe 5.14. Enriching the Dictionary Type with Ratings Functionality Recipe 5.15. Sorting Names and Separating Them by Initials Chapter 6. Object-Oriented Programming Introduction Recipe 6.1. Converting Among Temperature Scales Recipe 6.2. Defining Constants Recipe 6.3. Restricting Attribute Setting Recipe 6.4. Chaining Dictionary Lookups Recipe 6.5. Delegating Automatically as an Alternative to Inheritance Recipe 6.6. Delegating Special Methods in Proxies Recipe 6.7. Implementing Tuples with Named Items Recipe 6.8. Avoiding Boilerplate Accessors for Properties Recipe 6.9. Making a Fast Copy of an Object Recipe 6.10. Keeping References to Bound Methods Without Inhibiting Garbage Collection Recipe 6.11. Implementing a Ring Buffer Recipe 6.12. Checking an Instance for Any State Changes Recipe 6.13. Checking Whether an Object Has Necessary Attributes Recipe 6.14. Implementing the State Design Pattern Recipe 6.15. Implementing the "Singleton" Design Pattern Recipe 6.16. Avoiding the "Singleton" Design Pattern with the Borg Idiom Recipe 6.17. Implementing the Null Object Design Pattern Recipe 6.18. Automatically Initializing Instance Variables from _ _init_ _ Arguments Recipe 6.19. Calling a Superclass _ _init_ _ Method If It Exists Recipe 6.20. Using Cooperative Supercalls Concisely and Safely Chapter 7. Persistence and Databases Introduction Recipe 7.1. Serializing Data Using the marshal Module Recipe 7.2. Serializing Data Using the pickle and cPickle Modules Recipe 7.3. Using Compression with Pickling Recipe 7.4. Using the cPickle Module on Classes and Instances Recipe 7.5. Holding Bound Methods in a Picklable Way Recipe 7.6. Pickling Code Objects Recipe 7.7. Mutating Objects with shelve Recipe 7.8. Using the Berkeley DB Database Recipe 7.9. Accesssing a MySQL Database Recipe 7.10. Storing a BLOB in a MySQL Database Recipe 7.11. Storing a BLOB in a PostgreSQL Database Recipe 7.12. Storing a BLOB in a SQLite Database Recipe 7.13. Generating a Dictionary Mapping Field Names to Column Numbers Recipe 7.14. Using dtuple for Flexible Accessto Query Results Recipe 7.15. Pretty-Printing the Contents of Database Cursors Recipe 7.16. Using a Single Parameter-Passing Style Across Various DB API Modules Recipe 7.17. Using Microsoft Jet via ADO Recipe 7.18. Accessing a JDBC Database from a Jython Servlet Recipe 7.19. Using ODBC to Get Excel Data with Jython Chapter 8. Debugging and Testing Introduction Recipe 8.1. Disabling Execution of Some Conditionals and Loops Recipe 8.2. Measuring Memory Usage on Linux Recipe 8.3. Debugging the Garbage-Collection Process Recipe 8.4. Trapping and Recording Exceptions Recipe 8.5. Tracing Expressions and Comments in Debug Mode Recipe 8.6. Getting More Information from Tracebacks Recipe 8.7. Starting the Debugger Automatically After an Uncaught Exception Recipe 8.8. Running Unit Tests Most Simply Recipe 8.9. Running Unit Tests Automatically Recipe 8.10. Using doctest with unittest in Python 2.4 Recipe 8.11. Checking Values Against Intervals in Unit Testing Chapter 9. Processes, Threads, and Synchronization Introduction Recipe 9.1. Synchronizing All Methods in an Object Recipe 9.2. Terminating a Thread Recipe 9.3. Using a Queue.Queue as a Priority Queue Recipe 9.4. Working with a Thread Pool Recipe 9.5. Executing a Function in Parallel on Multiple Argument Sets Recipe 9.6. Coordinating Threads by Simple Message Passing Recipe 9.7. Storing Per-Thread Information Recipe 9.8. Multitasking Cooperatively Without Threads Recipe 9.9. Determining Whether Another Instanceof a Script Is Already Running in Windows Recipe 9.10. Processing Windows Messages Using MsgWaitForMultipleObjects Recipe 9.11. Driving an External Process with popen Recipe 9.12. Capturing the Output and Error Streams from a Unix Shell Command Recipe 9.13. Forking a Daemon Process on Unix Chapter 10. System Administration Introduction Recipe 10.1. Generating Random Passwords Recipe 10.2. Generating Easily Remembered Somewhat-Random Passwords Recipe 10.3. Authenticating Users by Means of a POP Server Recipe 10.4. Calculating Apache Hits per IP Address Recipe 10.5. Calculating the Rate of Client Cache Hits on Apache Recipe 10.6. Spawning an Editor from a Script Recipe 10.7. Backing Up Files Recipe 10.8. Selectively Copying a Mailbox File Recipe 10.9. Building a Whitelist of Email Addresses From a Mailbox Recipe 10.10. Blocking Duplicate Mails Recipe 10.11. Checking Your Windows Sound System Recipe 10.12. Registering or Unregistering a DLL on Windows Recipe 10.13. Checking and Modifying the Set of Tasks Windows Automatically Runs at Login Recipe 10.14. Creating a Share on Windows Recipe 10.15. Connecting to an Already Running Instance of Internet Explorer Recipe 10.16. Reading Microsoft Outlook Contacts Recipe 10.17. Gathering Detailed System Informationon Mac OS X Chapter 11. User Interfaces Introduction Recipe 11.1. Showing a Progress Indicator on a Text Console Recipe 11.2. Avoiding lambda in Writing Callback Functions Recipe 11.3. Using Default Values and Bounds with tkSimpleDialog Functions Recipe 11.4. Adding Drag and Drop Reordering to a Tkinter Listbox Recipe 11.5. Entering Accented Characters in Tkinter Widgets Recipe 11.6. Embedding Inline GIFs Using Tkinter Recipe 11.7. Converting Among Image Formats Recipe 11.8. Implementing a Stopwatch in Tkinter Recipe 11.9. Combining GUIs and Asynchronous I/Owith Threads Recipe 11.10. Using IDLE's Tree Widget in Tkinter Recipe 11.11. Supporting Multiple Values per Row in a Tkinter Listbox Recipe 11.12. Copying Geometry Methods and Options Between Tkinter Widgets Recipe 11.13. Implementing a Tabbed Notebook for Tkinter Recipe 11.14. Using a wxPython Notebook with Panels Recipe 11.15. Implementing an ImageJ Plug-in in Jython Recipe 11.16. Viewing an Image from a URL with Swing and Jython Recipe 11.17. Getting User Input on Mac OS Recipe 11.18. Building a Python Cocoa GUI Programmatically Recipe 11.19. Implementing Fade-in Windows with IronPython Chapter 12. Processing XML Introduction Recipe 12.1. Checking XML Well-Formedness Recipe 12.2. Counting Tags in a Document Recipe 12.3. Extracting Text from an XML Document Recipe 12.4. Autodetecting XML Encoding Recipe 12.5. Converting an XML Document into a Tree of Python Objects Recipe 12.6. Removing Whitespace-only Text Nodes from an XML DOM Node's Subtree Recipe 12.7. Parsing Microsoft Excel's XML Recipe 12.8. Validating XML Documents Recipe 12.9. Filtering Elements and Attributes Belonging to a Given Namespace Recipe 12.10. Merging Continuous Text Events with a SAX Filter Recipe 12.11. Using MSHTML to Parse XML or HTML Chapter 13. Network Programming Introduction Recipe 13.1. Passing Messages with Socket Datagrams Recipe 13.2. Grabbing a Document from the Web Recipe 13.3. Filtering a List of FTP Sites Recipe 13.4. Getting Time from a Server via the SNTP Protocol Recipe 13.5. Sending HTML Mail Recipe 13.6. Bundling Files in a MIME Message Recipe 13.7. Unpacking a Multipart MIME Message Recipe 13.8. Removing Attachments from an Email Message Recipe 13.9. Fixing Messages Parsed by Python 2.4 email.FeedParser Recipe 13.10. Inspecting a POP3 Mailbox Interactively Recipe 13.11. Detecting Inactive Computers Recipe 13.12. Monitoring a Network with HTTP Recipe 13.13. Forwarding and Redirecting Network Ports Recipe 13.14. Tunneling SSL Through a Proxy Recipe 13.15. Implementing the Dynamic IP Protocol Recipe 13.16. Connecting to IRC and Logging Messages to Disk Recipe 13.17. Accessing LDAP Servers Chapter 14. Web Programming Introduction Recipe 14.1. Testing Whether CGI Is Working Recipe 14.2. Handling URLs Within a CGI Script Recipe 14.3. Uploading Files with CGI Recipe 14.4. Checking for a Web Page's Existence Recipe 14.5. Checking Content Type via HTTP Recipe 14.6. Resuming the HTTP Download of a File Recipe 14.7. Handling Cookies While Fetching Web Pages Recipe 14.8. Authenticating with a Proxy for HTTPS Navigation Recipe 14.9. Running a Servlet with Jython Recipe 14.10. Finding an Internet Explorer Cookie Recipe 14.11. Generating OPML Files Recipe 14.12. Aggregating RSS Feeds Recipe 14.13. Turning Data into Web Pages Through Templates Recipe 14.14. Rendering Arbitrary Objects with Nevow Chapter 15. Distributed Programming Introduction Recipe 15.1. Making an XML-RPC Method Call Recipe 15.2. Serving XML-RPC Requests Recipe 15.3. Using XML-RPC with Medusa Recipe 15.4. Enabling an XML-RPC Server to Be Terminated Remotely Recipe 15.5. Implementing SimpleXMLRPCServer Niceties Recipe 15.6. Giving an XML-RPC Server a wxPython GUI Recipe 15.7. Using Twisted Perspective Broker Recipe 15.8. Implementing a CORBA Server and Client Recipe 15.9. Performing Remote Logins Using telnetlib Recipe 15.10. Performing Remote Logins with SSH Recipe 15.11. Authenticating an SSL Client over HTTPS Chapter 16. Programs About Programs Introduction Recipe 16.1. Verifying Whether a String Represents a Valid Number Recipe 16.2. Importing a Dynamically Generated Module Recipe 16.3. Importing from a Module Whose Name Is Determined at Runtime Recipe 16.4. Associating Parameters with a Function (Currying) Recipe 16.5. Composing Functions Recipe 16.6. Colorizing Python Source Using the Built-in Tokenizer Recipe 16.7. Merging and Splitting Tokens Recipe 16.8. Checking Whether a String Has Balanced Parentheses Recipe 16.9. Simulating Enumerations in Python Recipe 16.10. Referring to a List Comprehension While Building It Recipe 16.11. Automating the py2exe Compilation of Scripts into Windows Executables Recipe 16.12. Binding Main Script and Modules into One Executable on Unix Chapter 17. Extending and Embedding Introduction Recipe 17.1. Implementing a Simple Extension Type Recipe 17.2. Implementing a Simple Extension Type with Pyrex Recipe 17.3. Exposing a C++ Library to Python Recipe 17.4. Calling Functions from a Windows DLL Recipe 17.5. Using SWIG-Generated Modules in a Multithreaded Environment Recipe 17.6. Translating a Python Sequence into a C Array with the PySequence_Fast Protocol Recipe 17.7. Accessing a Python Sequence Item-by-Item with the Iterator Protocol Recipe 17.8. Returning None from a Python-Callable C Function Recipe 17.9. Debugging Dynamically Loaded C Extensions with gdb Recipe 17.10. Debugging Memory Problems Chapter 18. Algorithms Introduction Recipe 18.1. Removing Duplicates from a Sequence Recipe 18.2. Removing Duplicates from a Sequence While Maintaining Sequence Order Recipe 18.3. Generating Random Samples with Replacement Recipe 18.4. Generating Random Samples Without Replacement Recipe 18.5. Memoizing (Caching) the Return Values of Functions Recipe 18.6. Implementing a FIFO Container Recipe 18.7. Caching Objects with a FIFO Pruning Strategy Recipe 18.8. Implementing a Bag (Multiset) Collection Type Recipe 18.9. Simulating the Ternary Operator in Python Recipe 18.10. Computing Prime Numbers Recipe 18.11. Formatting Integers as Binary Strings Recipe 18.12. Formatting Integers as Strings in Arbitrary Bases Recipe 18.13. Converting Numbers to Rationals via Farey Fractions Recipe 18.14. Doing Arithmetic with Error Propagation Recipe 18.15. Summing Numbers with Maximal Accuracy Recipe 18.16. Simulating Floating Point Recipe 18.17. Computing the Convex Hulls and Diameters of 2D Point Sets Chapter 19. Iterators and Generators Introduction Recipe 19.1. Writing a range-like Function with Float Increments Recipe 19.2. Building a List from Any Iterable Recipe 19.3. Generating the Fibonacci Sequence Recipe 19.4. Unpacking a Few Items in a Multiple Assignment Recipe 19.5. Automatically Unpacking the Needed Number of Items Recipe 19.6. Dividing an Iterable into n Slices of Stride n Recipe 19.7. Looping on a Sequence by Overlapping Windows Recipe 19.8. Looping Through Multiple Iterables in Parallel Recipe 19.9. Looping Through the Cross-Product of Multiple Iterables Recipe 19.10. Reading a Text File by Paragraphs Recipe 19.11. Reading Lines with Continuation Characters Recipe 19.12. Iterating on a Stream of Data Blocks as a Stream of Lines Recipe 19.13. Fetching Large Record Sets from a Database with a Generator Recipe 19.14. Merging Sorted Sequences Recipe 19.15. Generating Permutations, Combinations, and Selections Recipe 19.16. Generating the Partitions of an Integer Recipe 19.17. Duplicating an Iterator Recipe 19.18. Looking Ahead into an Iterator Recipe 19.19. Simplifying Queue-Consumer Threads Recipe 19.20. Running an Iterator in Another Thread Recipe 19.21. Computing a Summary Report with itertools.groupby Chapter 20. Descriptors, Decorators,and Metaclasses Introduction Recipe 20.1. Getting Fresh Default Values at Each Function Call Recipe 20.2. Coding Properties as Nested Functions Recipe 20.3. Aliasing Attribute Values Recipe 20.4. Caching Attribute Values Recipe 20.5. Using One Method as Accessorfor Multiple Attributes Recipe 20.6. Adding Functionality to a Class by Wrapping a Method Recipe 20.7. Adding Functionality to a Class by Enriching All Methods Recipe 20.8. Adding a Method to a Class Instance at Runtime Recipe 20.9. Checking Whether Interfaces Are Implemented Recipe 20.10. Using _ _new_ _ and _ _init_ _ Appropriately in Custom Metaclasses Recipe 20.11. Allowing Chaining of Mutating List Methods Recipe 20.12. Using Cooperative Super calls with Terser Syntax Recipe 20.13. Initializing Instance Attributes Without Using _ _init_ _ Recipe 20.14. Automatic Initialization of Instance Attributes Recipe 20.15. Upgrading Class Instances Automatically on reload Recipe 20.16. Binding Constants at Compile Time Recipe 20.17. Solving Metaclass Conflicts Colophon Index
66.60MB
开源软件之道(中文高清版)
2013-03-20第1篇 了解开源软件 第1章 开源软件概述 1.1 开源软件的理解 1.2 开源软件的定义 1.3 开源软件定义的意义 1.4 开源软件和其他类型软件的比较 第2章 开源软件的历史与未来 2.1 开源软件的历史 2.2 开源运动背后的理想与现实 2.2.1 理想主义的兴起 2.2.2 技术精英的推动 2.2.3 现实业界的需求 2.3 开源社区的壮大 2.4 开源软件的领袖 2.5 开源软件的未来 第3章 开源软件的好处 3.1 高质量 3.2 零许可证费 3.3 开放和自由 3.4 灵活可定制 3.5 公开透明 3.6 良好的学习平台 第4章 开源软件的成本 4.1 部署和迁移成本 4.2 人员和培训成本 4.3 管理维护和技术支持成本 4.4 风险控制成本 第2篇 使用开源软件 第5章 正确使用开源软件 5.1 管理体制 5.2 法律风险 5.2.1 法律因素之著作权 5.2.2 法律因素之许可证 5.2.3 法律因素之专利 5.2.4 问题解析 5.2.5 验证著作权,正本清源 5.2.6 调查专利,借力打力 5.2.7 解读许可证,明察秋毫 5.3 成熟度 5.3.1 优秀的领导者 5.3.2 差异化的开发者社区 5.3.3 庞大的优质用户群 5.3.4 健康的项目“脉动” 5.3.5 健全的安全补丁体制 5.3.6 较完善的文档 5.4 服务 5.5 寻找合适的开源软件 第6章 开源软件之语言和平台 6.1 Harmony 6.2 Android 6.3 Python 6.4 Ruby 6.5 PHP 6.6 Groovy 6.7 Perl 6.8 Flex 6.9 OpenLaszlo 第7章 开源软件之框架和库 7.1 Spring 7.2 Struts 7.3 JBossSeam 7.4 Equinox 7.5 Hibernate 7.6 iBATIS 7.7 Lucene 7.8 Webkit 第8章 开源软件之服务器软件 8.1 ApacheHTTP服务器 8.2 Tomcat 8.3 Jetty 8.4 Geronimo 8.5 JBoss 8.6 GlassFish 8.7 MySQL 8.8 PostgreSQL 8.9 Derby 8.10 FileZillaServer 第9章 开源软件之开发工具 9.1 Eclipse 9.2 NetBeans 9.3 ApacheAnt 9.4 ApacheMaven 9.5 CVS 9.6 Subversion 9.7 GIT 9.8 Bugzilla 9.9 JUnit 9.10 TestNG 第10章 开源软件之桌面应用 10.1 GNOME 10.2 OpenOffice.org 10.3 Emacs 10.4 Firefox 10.5 Thunderbird 10.6 GIMP 10.7 FreeMind 10.8 7-Zip 第3篇 参与开源项目 第11章 开源社区的基础设施 11.1 基础设施 11.1.1 主页(HomePage) 11.1.2 代码库(CodeRepository) 11.1.3 邮件列表(MailingList) 11.1.4 缺陷追踪系统(BugTrackingSystem) 11.1.5 Wiki 11.1.6 其他 11.2 开源项目托管网站 第12章 开源组织和社区 12.1 Apache软件基金会 12.1.1 Apache的历史 …… 第13章 商业模式与实例 第14章 参与开源社区 第15章 开创事业
1.54MB
Python Cookbook英文版
2013-06-28Python Cookbook英文版 Table of Contents Foreword Preface 1. Python Shortcuts 1.1 Swapping Values Without Using a Temporary Variable 1.2 Constructing a Dictionary Without Excessive Quoting 1.3 Getting a Value from a Dictionary 1.4 Adding an Entry to a Dictionary 1.5 Associating Multiple Values with Each Key in a Dictionary 1.6 Dispatching Using a Dictionary 1.7 Collecting a Bunch of Named Items 1.8 Finding the Intersection of Two Dictionaries 1.9 Assigning and Testing with One Statement 1.10 Using List Comprehensions Instead of map and filter 1.11 Unzipping Simple List-Like Objects 1.12 Flattening a Nested Sequence 1.13 Looping in Parallel over Index and Sequence Items 1.14 Looping Through Multiple Lists 1.15 Spanning a Range Defined by Floats 1.16 Transposing Two-Dimensional Arrays 1.17 Creating Lists of Lists Without Sharing References 2. Searching and Sorting 2.1 Sorting a Dictionary 2.2 Processing Selected Pairs of Structured Data Efficiently 2.3 Sorting While Guaranteeing Sort Stability 2.4 Sorting by One Field, Then by Another 2.5 Looking for Items in a Sorted Sequence Using Binary Search 2.6 Sorting a List of Objects by an Attribute of the Objects 2.7 Sorting by Item or by Attribute 2.8 Selecting Random Elements from a List Without Repetition 2.9 Performing Frequent Membership Tests on a Sequence 2.10 Finding the Deep Index of an Item in an Embedded Sequence 2.11 Showing Off Quicksort in Three Lines 2.12 Sorting Objects Using SQL's ORDER BY Syntax 3. Text 3.1 Processing a String One Character at a Time 3.2 Testing if an Object Is String-Like 3.3 Aligning Strings 3.4 Trimming Space from the Ends of a String 3.5 Combining Strings 3.6 Checking Whether a String Contains a Set of Characters 3.7 Filtering a String for a Set of Characters 3.8 Controlling Case 3.9 Reversing a String by Words or Characters 3.10 Accessing Substrings 3.11 Changing the Indentation of a Multiline String 3.12 Testing Whether a String Represents an Integer 3.13 Expanding and Compressing Tabs 3.14 Replacing Multiple Patterns in a Single Pass 3.15 Converting Between Different Naming Conventions 3.16 Converting Between Characters and Values 3.17 Converting Between Unicode and Plain Strings 3.18 Printing Unicode Characters to Standard Output 3.19 Dispatching Based on Pattern Matches 3.20 Evaluating Code Inside Strings 3.21 Replacing Python Code with the Results of Executing That Code 3.22 Module: Yet Another Python Templating Utility (YAPTU) 3.23 Module: Roman Numerals 4. Files 4.1 Reading from a File 4.2 Writing to a File 4.3 Searching and Replacing Text in a File 4.4 Reading a Particular Line from a File 4.5 Retrieving a Line at Random from a File of Unknown Size 4.6 Counting Lines in a File 4.7 Processing Every Word in a File 4.8 Reading a Text File by Paragraphs 4.9 Reading Lines with Continuation Characters 4.10 Reading Data from ZIP Files 4.11 Reading INI Configuration Files 4.12 Sending Binary Data to Standard Output Under Windows 4.13 Using Random-Access Input/Output 4.14 Updating a Random-Access File 4.15 Splitting a Path into All of Its Parts 4.16 Treating Pathnames as Objects 4.17 Creating Directories Including Necessary Parent Directories 4.18 Walking Directory Trees 4.19 Swapping One File Extension for Another Throughout a Directory Tree 4.20 Finding a File Given an Arbitrary Search Path 4.21 Finding a File on the Python Search Path 4.22 Dynamically Changing the Python Search Path 4.23 Computing Directory Sizes in a Cross-Platform Way 4.24 File Locking Using a Cross-Platform API 4.25 Versioning Filenames 4.26 Module: Versioned Backups 5. Object-Oriented Programming 5.1 Overriding a Built-In Method 5.2 Getting All Members of a Class Hierarchy 5.3 Calling a Superclass _ _init_ _ Method if It Exists 5.4 Calling a Superclass Implementation of a Method 5.5 Implementing Properties 5.6 Implementing Static Methods 5.7 Implementing Class Methods 5.8 Delegating Automatically as an Alternative to Inheritance 5.9 Decorating an Object with Print-Like Methods 5.10 Checking if an Object Has Necessary Attributes 5.11 Making a Fast Copy of an Object 5.12 Adding Methods to a Class at Runtime 5.13 Modifying the Class Hierarchy of an Instance 5.14 Keeping References to Bound Methods Without Inhibiting Garbage Collection 5.15 Defining Constants 5.16 Managing Options 5.17 Implementing a Set Class 5.18 Implementing a Ring Buffer 5.19 Implementing a Collection 5.20 Delegating Messages to Multiple Objects 5.21 Implementing the Singleton Design Pattern 5.22 Avoiding the Singleton Design Pattern with the Borg Idiom 5.23 Implementing the Null Object Design Pattern 6. Threads, Processes, and Synchronization 6.1 Storing Per-Thread Information 6.2 Terminating a Thread 6.3 Allowing Multithreaded Read Access While Maintaining a Write Lock 6.4 Running Functions in the Future 6.5 Synchronizing All Methods in an Object 6.6 Capturing the Output and Error Streams from a Unix Shell Command 6.7 Forking a Daemon Process on Unix 6.8 Determining if Another Instance of a Script Is Already Running in Windows 6.9 Processing Windows Messages Using MsgWaitForMultipleObjects 7. System Administration 7.1 Running a Command Repeatedly 7.2 Generating Random Passwords 7.3 Generating Non-Totally Random Passwords 7.4 Checking the Status of a Unix Network Interface 7.5 Calculating Apache Hits per IP Address 7.6 Calculating the Rate of Client Cache Hits on Apache 7.7 Manipulating the Environment on Windows NT/2000/XP 7.8 Checking and Modifying the Set of Tasks Windows Automatically Runs at Logon 7.9 Examining the Microsoft Windows Registry for a List of Name Server Addresses 7.10 Getting Information About the Current User on Windows NT/2000 7.11 Getting the Windows Service Name from Its Long Name 7.12 Manipulating Windows Services 7.13 Impersonating Principals on Windows 7.14 Changing a Windows NT Password Using ADSI 7.15 Working with Windows Scripting Host (WSH) from Python 7.16 Displaying Decoded Hotkeys for Shortcuts in Windows 8. Databases and Persistence 8.1 Serializing Data Using the marshal Module 8.2 Serializing Data Using the pickle and cPickle Modules 8.3 Using the cPickle Module on Classes and Instances 8.4 Mutating Objects with shelve 8.5 Accesssing a MySQL Database 8.6 Storing a BLOB in a MySQL Database 8.7 Storing a BLOB in a PostgreSQL Database 8.8 Generating a Dictionary Mapping from Field Names to Column Numbers 8.9 Using dtuple for Flexible Access to Query Results 8.10 Pretty-Printing the Contents of Database Cursors 8.11 Establishing Database Connections Lazily 8.12 Accessing a JDBC Database from a Jython Servlet 8.13 Module: jet2sql-Creating a SQL DDL from an Access Database 9. User Interfaces 9.1 Avoiding lambda in Writing Callback Functions 9.2 Creating Menus with Tkinter 9.3 Creating Dialog Boxes with Tkinter 9.4 Supporting Multiple Values per Row in a Tkinter Listbox 9.5 Embedding Inline GIFs Using Tkinter 9.6 Combining Tkinter and Asynchronous I/O with Threads 9.7 Using a wxPython Notebook with Panels 9.8 Giving the User Unobtrusive Feedback During Data Entry with Qt 9.9 Building GUI Solutions Independent of the Specific GUI Toolkit 9.10 Creating Color Scales 9.11 Using Publish/Subscribe Broadcasting to Loosen the Coupling Between GUI and Business Logic Systems 9.12 Module: Building GTK GUIs Interactively 10. Network Programming 10.1 Writing a TCP Client 10.2 Writing a TCP Server 10.3 Passing Messages with Socket Datagrams 10.4 Finding Your Own Name and Address 10.5 Converting IP Addresses 10.6 Grabbing a Document from the Web 10.7 Being an FTP Client 10.8 Sending HTML Mail 10.9 Sending Multipart MIME Email 10.10 Bundling Files in a MIME Message 10.11 Unpacking a Multipart MIME Message 10.12 Module: PyHeartBeat-Detecting Inactive Computers 10.13 Module: Interactive POP3 Mailbox Inspector 10.14 Module: Watching for New IMAP Mail Using a GUI 11. Web Programming 11.1 Testing Whether CGI Is Working 11.2 Writing a CGI Script 11.3 Using a Simple Dictionary for CGI Parameters 11.4 Handling URLs Within a CGI Script 11.5 Resuming the HTTP Download of a File 11.6 Stripping Dangerous Tags and Javascript from HTML 11.7 Running a Servlet with Jython 11.8 Accessing Netscape Cookie Information 11.9 Finding an Internet Explorer Cookie 11.10 Module: Fetching Latitude/Longitude Data from the Web 12. Processing XML 12.1 Checking XML Well-Formedness 12.2 Counting Tags in a Document 12.3 Extracting Text from an XML Document 12.4 Transforming an XML Document Using XSLT 12.5 Transforming an XML Document Using Python 12.6 Parsing an XML File with xml.parsers.expat 12.7 Converting Ad-Hoc Text into XML Markup 12.8 Normalizing an XML Document 12.9 Controlling XSLT Stylesheet Loading 12.10 Autodetecting XML Encoding 12.11 Module: XML Lexing (Shallow Parsing) 12.12 Module: Converting a List of Equal-Length Lists into XML 13. Distributed Programming 13.1 Making an XML-RPC Method Call 13.2 Serving XML-RPC Requests 13.3 Using XML-RPC with Medusa 13.4 Writing a Web Service That Supports Both XML-RPC and SOAP 13.5 Implementing a CORBA Client and Server 13.6 Performing Remote Logins Using telnetlib 13.7 Using Publish/Subscribe in a Distributed Middleware Architecture 13.8 Using Request/Reply in a Distributed Middleware Architecture 14. Debugging and Testing 14.1 Reloading All Loaded Modules 14.2 Tracing Expressions and Comments in Debug Mode 14.3 Wrapping Tracebacks in HTML 14.4 Getting More Information from Tracebacks 14.5 Starting the Debugger Automatically After an Uncaught Exception 14.6 Logging and Tracing Across Platforms 14.7 Determining the Name of the Current Function 14.8 Introspecting the Call Stack with Older Versions of Python 14.9 Debugging the Garbage-Collection Process 14.10 Tracking Instances of Particular Classes 15. Programs About Programs 15.1 Colorizing Python Source Using the Built-in Tokenizer 15.2 Importing a Dynamically Generated Module 15.3 Importing from a Module Whose Name Is Determined at Runtime 15.4 Importing Modules with Automatic End-of-Line Conversions 15.5 Simulating Enumerations in Python 15.6 Modifying Methods in Place 15.7 Associating Parameters with a Function (Currying) 15.8 Composing Functions 15.9 Adding Functionality to a Class 15.10 Adding a Method to a Class Instance at Runtime 15.11 Defining a Custom Metaclass to Control Class Behavior 15.12 Module: Allowing the Python Profiler to Profile C Modules 16. Extending and Embedding 16.1 Implementing a Simple Extension Type 16.2 Translating a Python Sequence into a C Array with the PySequence_Fast Protocol 16.3 Accessing a Python Sequence Item-by-Item with the Iterator Protocol 16.4 Returning None from a Python-Callable C Function 16.5 Coding the Methods of a Python Class in C 16.6 Implementing C Function Callbacks to a Python Function 16.7 Debugging Dynamically Loaded C Extensions with gdb 16.8 Debugging Memory Problems 16.9 Using SWIG-Generated Modules in a Multithreaded Environment 17. Algorithms 17.1 Testing if a Variable Is Defined 17.2 Evaluating Predicate Tests Across Sequences 17.3 Removing Duplicates from a Sequence 17.4 Removing Duplicates from a Sequence While Maintaining Sequence Order 17.5 Simulating the Ternary Operator in Python 17.6 Counting Items and Sorting by Incidence (Histograms) 17.7 Memoizing (Caching) the Return Values of Functions 17.8 Looking Up Words by Sound Similarity 17.9 Computing Factorials with lambda 17.10 Generating the Fibonacci Sequence 17.11 Wrapping an Unbounded Iterator to Restrict Its Output 17.12 Operating on Iterators 17.13 Rolling Dice 17.14 Implementing a First-In First-Out Container 17.15 Modeling a Priority Queue 17.16 Converting Numbers to Rationals via Farey Fractions 17.17 Evaluating a Polynomial 17.18 Module: Finding the Convex Hull of a Set of 2D Points 17.19 Module: Parsing a String into a Date/Time Object Portably
57.21MB
Python Cookbook
2013-07-31第1章 文本 1 引言 1 1.1 每次处理一个字符 6 1.2 字符和字符值之间的转换 7 1.3 测试一个对象是否是类字符串 8 1.4 字符串对齐 10 1.5 去除字符串两端的空格 11 1.6 合并字符串 11 1.7 将字符串逐字符或逐词反转 14 1.8 检查字符串中是否包含某字符集合中的字符 15 1.9 简化字符串的translate方法的使用 18 1.10 过滤字符串中不属于指定集合的字符 20 1.11 检查一个字符串是文本还是二进制 23 1.12 控制大小写 25 1.13 访问子字符串 26 1.14 改变多行文本字符串的缩进 29 1.15 扩展和压缩制表符 31 1.16 替换字符串中的子串 33 1.17 替换字符串中的子串-Python 2.4 34 1.18 一次完成多个替换 36 1.19 检查字符串中的结束标记 39 1.20 使用Unicode来处理国际化文本 40 1.21 在Unicode和普通字符串之间转换 43 1.22 在标准输出中打印Unicode字符 45 1.23 对Unicode数据编码并用于XML和HTML 46 1.24 让某些字符串大小写不敏感 49 1.25 将HTML文档转化为文本显示到UNIX终端上 52 第2章 文件 55 引言 55 2.1 读取文件 59 2.2 写入文件 62 2.3 搜索和替换文件中的文本 64 2.4 从文件中读取指定的行 65 2.5 计算文件的行数 66 2.6 处理文件中的每个词 68 2.7 随机输入/输出 70 2.8 更新随机存取文件 71 2.9 从zip文件中读取数据 73 2.10 处理字符串中的zip文件 74 2.11 将文件树归档到一个压缩的tar文件 76 2.12 将二进制数据发送到Windows的标准输出 77 2.13 使用C++的类iostream语法 78 2.14 回退输入文件到起点 80 2.15 用类文件对象适配真实文件对象 83 2.16 遍历目录树 84 2.17 在目录树中改变文件扩展名 85 2.18 从指定的搜索路径寻找文件 86 2.19 根据指定的搜索路径和模式寻找文件 87 2.20 在Python的搜索路径中寻找文件 88 2.21 动态地改变Python搜索路径 89 2.22 计算目录间的相对路径 91 2.23 跨平台地读取无缓存的字符 93 2.24 在Mac OS X平台上统计PDF文档的页数 94 2.25 在Windows平台上修改文件属性 95 2.26 从OpenOffice.org文档中提取文本 96 2.27 从微软Word文档中抽取文本 97 2.28 使用跨平台的文件锁 98 2.29 带版本号的文件名 100 2.30 计算CRC-64循环冗余码校验 102 第3章 时间和财务计算 105 引言 105 3.1 计算昨天和明天的日期 111 3.2 寻找上一个星期五 112 3.3 计算日期之间的时段 114 3.4 计算歌曲的总播放时间 115 3.5 计算日期之间的工作日 116 3.6 自动查询节日 118 3.7 日期的模糊查询 121 3.8 检查夏令时是否正在实行 123 3.9 时区转换 124 3.10 反复执行某个命令 125 3.11 定时执行命令 127 3.12 十进制数学计算 129 3.13 将十进制数用于货币处理 130 3.14 用Python实现的简单加法器 133 3.15 检查信用卡校验和 136 3.16 查看汇率 137 第4章 Python技巧 139 引言 139 4.1 对象拷贝 140 4.2 通过列表推导构建列表 144 4.3 若列表中某元素存在则返回之 146 4.4 循环访问序列中的元素和索引 147 4.5 在无须共享引用的条件下创建列表的列表 148 4.6 展开一个嵌套的序列 149 4.7 在行列表中完成对列的删除和排序 152 4.8 二维阵列变换 154 4.9 从字典中取值 155 4.10 给字典增加一个条目 157 4.11 在无须过多援引的情况下创建字典 158 4.12 将列表元素交替地作为键和值来创建字典 159 4.13 获取字典的一个子集 161 4.14 反转字典 163 4.15 字典的一键多值 164 4.16 用字典分派方法和函数 166 4.17 字典的并集与交集 167 4.18 搜集命名的子项 169 4.19 用一条语句完成赋值和测试 171 4.20 在Python中使用printf 174 4.21 以指定的概率获取元素 174 4.22 在表达式中处理异常 176 4.23 确保名字已经在给定模块中被定义 178 第5章 搜索和排序 180 引言 180 5.1 对字典排序 185 5.2 不区分大小写对字符串列表排序 185 5.3 根据对象的属性将对象列表排序 187 5.4 根据对应值将键或索引排序 189 5.5 根据内嵌的数字将字符串排序 192 5.6 以随机顺序处理列表的元素 193 5.7 在增加元素时保持序列的顺序 195 5.8 获取序列中最小的几个元素 197 5.9 在排序完毕的序列中寻找元素 199 5.10 选取序列中最小的第n个元素 200 5.11 三行代码的快速排序 203 5.12 检查序列的成员 206 5.13 寻找子序列 208 5.14 给字典类型增加排名功能 210 5.15 根据姓的首字母将人名排序和分组 214 第6章 面向对象编程 217 引言 217 6.1 温标的转换 223 6.2 定义常量 225 6.3 限制属性的设置 227 6.4 链式字典查询 229 6.5 继承的替代方案-自动托管 231 6.6 在代理中托管特殊方法 234 6.7 有命名子项的元组 237 6.8 避免属性读写的冗余代码 239 6.9 快速复制对象 240 6.10 保留对被绑定方法的引用且支持垃圾回收 243 6.11 缓存环的实现 245 6.12 检查一个实例的状态变化 249 6.13 检查一个对象是否包含某种必要的属性 252 6.14 实现状态设计模式 255 6.15 实现单例模式 257 6.16 用Borg惯用法来避免“单例”模式 259 6.17 Null对象设计模式的实现 263 6.18 用_ _init_ _参数自动初始化实例变量 266 6.19 调用超类的_ _init_ _方法 267 6.20 精确和安全地使用协作的超类调用 270 第7章 持久化和数据库 273 引言 273 7.1 使用marshal模块序列化数据 275 7.2 使用pickle和cPickle模块序列化数据 277 7.3 在Pickling的时候压缩 280 7.4 对类和实例使用cPickle模块 281 7.5 Pickling被绑定方法 284 7.6 Pickling代码对象 286 7.7 通过shelve修改对象 288 7.8 使用Berkeley DB数据库 291 7.9 访问MySQL数据库 294 7.10 在MySQL数据库中储存BLOB 295 7.11 在PostgreSQL中储存BLOB 296 7.12 在SQLite中储存BLOB 298 7.13 生成一个字典将字段名映射为列号 300 7.14 利用dtuple实现对查询结果的灵活访问 302 7.15 打印数据库游标的内容 304 7.16 适用于各种DB API模块的单参数传递风格 306 7.17 通过ADO使用Microsoft Jet 308 7.18 从Jython Servlet访问JDBC数据库 310 7.19 通过Jython和ODBC获得Excel数据 313 第8章 调试和测试 315 引言 315 8.1 阻止某些条件和循环的执行 316 8.2 在Linux上测量内存使用 317 8.3 调试垃圾回收进程 318 8.4 捕获和记录异常 320 8.5 在调试模式中跟踪表达式和注释 322 8.6 从traceback中获得更多信息 324 8.7 当未捕获异常发生时自动启用调试器 327 8.8 简单的使用单元测试 328 8.9 自动运行单元测试 330 8.10 在Python 2.4中使用doctest和unittest 331 8.11 在单元测试中检查区间 334 第9章 进程、线程和同步 336 引言 336 9.1 同步对象中的所有方法 339 9.2 终止线程 342 9.3 将Queue.Queue用作优先级队列 344 9.4 使用线程池 346 9.5 以多组参数并行执行函数 349 9.6 用简单的消息传递协调线程 351 9.7 储存线程信息 353 9.8 无线程的多任务协作 357 9.9 在Windows中探测另一个脚本实例的运行 359 9.10 使用MsgWaitForMultipleObjects处理Windows消息 360 9.11 用popen驱动外部进程 363 9.12 获取UNIX Shell命令的输出流和错误流 364 9.13 在UNIX中fork一个守护进程 367 第10章 系统管理 370 引言 370 10.1 生成随机密码 371 10.2 生成易记的伪随机密码 372 10.3 以POP服务器的方式验证用户 375 10.4 统计Apache中每个IP的点击率 376 10.5 统计Apache的客户缓存的命中率 378 10.6 在脚本中调用编辑器 379 10.7 备份文件 381 10.8 选择性地复制邮箱文件 383 10.9 通过邮箱创建一个邮件地址的白名单 384 10.10 阻塞重复邮件 386 10.11 检查你的Windows声音系统 388 10.12 在Windows中注册和反注册DLL 388 10.13 检查并修改Windows自动运行任务 390 10.14 在Windows中创建共享 391 10.15 连接一个正在运行的Internet Explorer实例 392 10.16 读取Microsoft Outlook Contacts 393 10.17 在Mac OS X中收集详细的系统信息 396 第11章 用户界面 400 引言 400 11.1 在文本控制台中显示进度条 402 11.2 避免在编写回调函数时使用lambda 404 11.3 在tkSimpleDialog函数中使用默认值和区间 405 11.4 给Tkinter列表框增加拖曳排序能力 406 11.5 在Tkinter部件中输入一个重音字符 408 11.6 在Tkinter中嵌入内联的GIF 410 11.7 转换图片格式 412 11.8 在Tkinter中实现一个秒表 415 11.9 用线程实现GUI和异步I/O 的结合 417 11.10 在Tkinter中使用IDLE的 Tree部件 421 11.11 在Tkinter Listbox中支持单行多值 423 11.12 在Tkinter部件之间复制Geometry方法和选项 427 11.13 在Tkinter中实现一个带标签的记事本 429 11.14 使用wxPython实现带面板的记事本 431 11.15 在Jython中实现一个ImageJ插件 433 11.16 用Swing和Jython来通过URL查看图片 434 11.17 在Mac OS中获得用户输入 434 11.18 程序化地创建Python Cocoa GUI 437 11.19 用IronPython实现淡入窗口 439 第12章 XML处理 441 引言 441 12.1 检查XML的格式完好性 443 12.2 计算文档中标签的个数 444 12.3 获得XML文档中的文本 445 12.4 自动探测XML的编码 447 12.5 将一个XML文档转化成Python对象树 449 12.6 从XML DOM节点的子树中删除仅有空白符的文本节点 451 12.7 解析Microsoft Excel的XML 452 12.8 验证XML文档 454 12.9 过滤属于指定命名空间的元素和属性 455 12.10 用SAX合并连续的文本事件 458 12.11 使用MSHTML来解析XML或HTML 461 第13章 网络编程 462 引言 462 13.1 通过Socket数据报传输消息 464 13.2 从Web抓取文档 466 13.3 过滤FTP站点列表 467 13.4 通过SNTP协议从服务器获取时间 468 13.5 发送HTML邮件 469 13.6 在MIME消息中绑入文件 471 13.7 拆解一个分段MIME消息 474 13.8 删除邮件消息中的附件 475 13.9 修复Python 2.4的email.FeedParser 解析的消息 477 13.10 交互式地检查POP3邮箱 479 13.11 探测不活动的计算机 482 13.12 用HTTP监视网络 487 13.13 网络端口的转发和重定向 489 13.14 通过代理建立SSL隧道 492 13.15 实现动态IP协议 495 13.16 登录到IRC并将消息记录到磁盘 498 13.17 访问LDAP服务 500 第14章 Web编程 502 引言 502 14.1 测试CGI是否在工作 503 14.2 用CGI脚本处理URL 506 14.3 用CGI上传文件 507 14.4 检查web页面的存在 509 14.5 通过HTTP检查内容类型 510 14.6 续传HTTP下载文件 512 14.7 抓取Web页面时处理Cookie 513 14.8 通过带身份验证的代理进行HTTPS导航 516 14.9 用Jython实现Servlet 517 14.10 寻找Internet Explorer的cookie 519 14.11 生成OPML文件 521 14.12 聚合RSS Feed 524 14.13 通过模板将数据放入Web页面 527 14.14 在Nevow中呈现任意对象 530 第15章 分布式编程 534 引言 534 15.1 实现一个XML-RPC方法调用 536 15.2 服务XML-RPC请求 537 15.3 在Medusa中使用XML-RPC 539 15.4 允许XML-RPC服务被远程终止 541 15.5 SimpleXMLRPCServer的一些细节 542 15.6 给一个XML-RPC服务提供一个wxPython GUI 544 15.7 使用Twisted的Perspective Broker 546 15.8 实现一个CORBA服务和客户 549 15.9 使用telnetlib执行远程登录 551 15.10 使用SSH执行远程登录 554 15.11 通过HTTPS验证一个SSL客户端 557 第16章 关于程序的程序 559 引言 559 16.1 验证字符串是否代表着一个合法的数字 564 16.2 导入一个动态生成的模块 565 16.3 导入一个名字在运行时被确定的模块 567 16.4 将参数和函数联系起来 568 16.5 组合函数 571 16.6 使用内建的Tokenizer给Python源码上色 572 16.7 合并和拆解Token 575 16.8 检查字符串是否有平衡的圆括号 577 16.9 在Python中模拟枚举 580 16.10 在创建列表推导时引用它自身 583 16.11 自动化py2exe将脚本编译成Windows可执行文件的过程 585 16.12 在UNIX中将主脚本和模块绑成一个可执行文件 587 第17章 扩展和嵌入 590 引言 590 17.1 实现一个简单的扩展类型 592 17.2 用Pyrex实现一个简单的扩展类型 597 17.3 在Python中使用C++库 598 17.4 调用Windows DLL的函数 601 17.5 在多线程环境中使用SWIG生成的模块 603 17.6 用PySequence_Fast将Python序列转为 C数组 604 17.7 用迭代器逐个访问Python序列的元素 608 17.8 从Python可调用的C函数中返回None 611 17.9 用gdb调试动态载入的C扩展 613 17.10 调试内存问题 614 第18章 算法 616 引言 616 18.1 消除序列中的重复 619 18.2 在保留序列顺序的前提下消除其中的重复 621 18.3 生成回置采样 625 18.4 生成无回置的抽样 626 18.5 缓存函数的返回值 627 18.6 实现一个FIFO容器 629 18.7 使用FIFO策略来缓存对象 631 18.8 实现一个Bag(Multiset)收集类型 634 18.9 在Python模拟三元操作符 637 18.10 计算素数 640 18.11 将整数格式化为二进制字符串 642 18.12 以任意数为基将整数格式化为字符串 644 18.13 通过法雷分数将数字转成有理数 646 18.14 带误差传递的数学计算 648 18.15 以最大精度求和 651 18.16 模拟浮点数 653 18.17 计算二维点集的凸包和直径 656 第19章 迭代器和生成器 660 引言 660 19.1 编写一个类似range的浮点数递增的函数 663 19.2 从任意可迭代对象创建列表 665 19.3 生成Fibonacci序列 667 19.4 在多重赋值中拆解部分项 669 19.5 自动拆解出需要的数目的项 670 19.6 以步长n将一个可迭代对象切成n片 672 19.7 通过重叠窗口循环序列 674 19.8 并行地循环多个可迭代对象 678 19.9 循环多个可迭代对象的矢量积 680 19.10 逐段读取文本文件 683 19.11 读取带有延续符的行 685 19.12 将一个数据块流处理成行流 687 19.13 用生成器从数据库中抓取大记录集 688 19.14 合并有序序列 690 19.15 生成排列、组合以及选择 694 19.16 生成整数的划分 696 19.17 复制迭代器 697 19.18 迭代器的前瞻 701 19.19 简化队列消费者线程 703 19.20 在另一个线程中运行迭代器 705 19.21 用itertools.groupby来计算汇总报告 706 第20章 描述符、装饰器和元类 710 引言 710 20.1 在函数调用中获得常新的默认值 712 20.2 用嵌套函数来编写property属性 715 20.3 给属性值起别名 717 20.4 缓存属性值 719 20.5 用同一个方法访问多个属性 722 20.6 封装一个方法来给类增加功能 723 20.7 增强所有方法来给类增加功能 726 20.8 在运行时给一个类实例添加方法 728 20.9 检查接口的实现 730 20.10 在自定义元类中正确地使用_ _new_ _和_ _init_ _ 732 20.11 允许对List的可变方法的链式调用 734 20.12 通过更紧凑的语法使用协作的超类调用 736 20.13 不使用_ _init_ _来初始化实例属性 738 20.14 实例属性的自动初始化 740 20.15 重新加载时自动更新类实例 743 20.16 在编译时绑定常量 747 20.17 解决元类冲突 752
高并发下的Nginx性能优化实战
2019-12-24<p> <b><span style="background-color:#FFE500;">【超实用课程内容】</span></b> </p> <p> <br /> </p> <p> <br /> </p> <p> 本课程内容包含讲解<span>解读Nginx的基础知识,</span><span>解读Nginx的核心知识、带领学员进行</span>高并发环境下的Nginx性能优化实战,让学生能够快速将所学融合到企业应用中。 </p> <p> <br /> </p> <p style="font-family:Helvetica;color:#3A4151;font-size:14px;background-color:#FFFFFF;"> <b><br /> </b> </p> <p style="font-family:Helvetica;color:#3A4151;font-size:14px;background-color:#FFFFFF;"> <b><span style="background-color:#FFE500;">【课程如何观看?】</span></b> </p> <p style="font-family:Helvetica;color:#3A4151;font-size:14px;background-color:#FFFFFF;"> PC端:<a href="https://edu.csdn.net/course/detail/26277"><span id="__kindeditor_bookmark_start_21__"></span></a><a href="https://edu.csdn.net/course/detail/27216">https://edu.csdn.net/course/detail/27216</a> </p> <p style="font-family:Helvetica;color:#3A4151;font-size:14px;background-color:#FFFFFF;"> 移动端:CSDN 学院APP(注意不是CSDN APP哦) </p> <p style="font-family:Helvetica;color:#3A4151;font-size:14px;background-color:#FFFFFF;"> 本课程为录播课,课程永久有效观看时长,大家可以抓紧时间学习后一起讨论哦~ </p> <p style="font-family:"color:#3A4151;font-size:14px;background-color:#FFFFFF;"> <br /> </p> <p class="ql-long-24357476" style="font-family:"color:#3A4151;font-size:14px;background-color:#FFFFFF;"> <strong><span style="background-color:#FFE500;">【学员专享增值服务】</span></strong> </p> <p class="ql-long-24357476" style="font-family:"color:#3A4151;font-size:14px;background-color:#FFFFFF;"> <b>源码开放</b> </p> <p class="ql-long-24357476" style="font-family:"color:#3A4151;font-size:14px;background-color:#FFFFFF;"> 课件、课程案例代码完全开放给你,你可以根据所学知识,自行修改、优化 </p> <p class="ql-long-24357476" style="font-family:"color:#3A4151;font-size:14px;background-color:#FFFFFF;"> 下载方式:电脑登录<a href="https://edu.csdn.net/course/detail/26277"></a><a href="https://edu.csdn.net/course/detail/27216">https://edu.csdn.net/course/detail/27216</a>,播放页面右侧点击课件进行资料打包下载 </p> <p> <br /> </p> <p> <br /> </p> <p> <br /> </p>
Java8零基础入门视频教程
2016-09-29这门课程基于主流的java8平台,由浅入深的详细讲解了java SE的开发技术,可以使java方向的入门学员,快速扎实的掌握java开发技术!
Java基础与实践
2018-07-31Java语言是目前流行的一门程序设计语言。本课程是一套全面讲解Java语言程序设计的开发类课程,由浅入深地介绍Java基础内容,主要包括基本类型及运算符、控制执行流程、字符串、面向对象、集合与数组、文件及流、异常、多线程等完整的Java知识体系。
手把手教你蓝牙协议栈入门
2020-07-16<p> 本课程定位是:引领想学习蓝牙协议栈的学生或者从事蓝牙,但是对蓝牙没有一个系统概念的工程师快速入门 </p> <p> 课程是多年从事蓝牙经验总结出来的,希望能让你看完有一种醍醐灌顶的感觉。 </p> <p> 不要在摸着石头过河了·学习完这些你肯定还是要继续学习蓝牙协议栈,但是至少懂了蓝牙的一些概念以及适合高效的学习方法 </p> <p> 本课程一共分为4个小节: </p> <p> 1)蓝牙教程计划.mp4 ,主要介绍下我们的视频规划以及后续的蓝牙教程规划 </p> <p> 2)蓝牙的前生后世.mp4 主要介绍下蓝牙的产生背景概念,以及蓝牙从开始产生到现在最新的5.2的发展过程,新赠的功能特性 </p> <p> 3)市面蓝牙架构调查.mp4 主要介绍市面蓝牙产品的架构以及HCI蓝牙芯片的详细架构,让你对蓝牙有一个整体的认识,对于后续做蓝牙产品选型大有帮助 </p> <p> 4)快速学习蓝牙文档介绍_工具介绍.mp4 主要介绍HCI蓝牙芯片的协议栈以及profile获取途径以及学习蓝牙的高效工具,引领你快速找到适合自己的方法来学习蓝牙 </p>
基于SSM技术的在线商城系统[实战视频]
2018-07-04本课程基于【SSM】【Maven】【BootStrap】【MySQL】【BootStrap】技术,使用IntelliJ IDEA开发工具。 主要是锻炼SSM技术的运用,通过项目实战,加强对框架技术的理解和运用,如果你是SSM的初学者,这套视频课程适合你!!
C语言入门--必须基础17讲
2017-07-28适合没有基础的人群学习C语言,简单的入门教程。帮助小白理解什么是开发,什么是编程。做的很简单,很多细节没有详细讲解,不适合用来深入研究。学了这个,你能理解什么是编程,什么是C语言。
SpringBoot实战教程:SpringBoot企业级线上商城项目讲解
2019-09-27<div style="color:rgba(0,0,0,.75);"> <span style="color:#4d4d4d;"> </span> <div style="color:rgba(0,0,0,.75);"> <span style="color:#4d4d4d;"> </span> <div style="color:rgba(0,0,0,.75);"> <div style="color:rgba(0,0,0,.75);"> <span style="color:#4d4d4d;">当前课程中商城项目的实战源码是我发布在 GitHub 上的开源项目 newbee-mall (新蜂商城),目前已有 6300 多个 star,</span><span style="color:#4d4d4d;">本课程是一个 Spring Boot 技术栈的实战类课程,课程共分为 3 大部分,前面两个部分为基础环境准备和相关概念介绍,第三个部分是 Spring Boot 商城项目功能的讲解,让大家实际操作并实践上手一个大型的线上商城项目,并学习到一定的开发经验以及其中的开发技巧。<br /> 商城项目所涉及的功能结构图整理如下:<br /> </span> </div> <div style="color:rgba(0,0,0,.75);"> </div> <div style="color:rgba(0,0,0,.75);"> <p style="color:#4d4d4d;"> <img alt="modules" src="https://imgconvert.csdnimg.cn/aHR0cHM6Ly9uZXdiZWUtbWFsbC5vc3MtY24tYmVpamluZy5hbGl5dW5jcy5jb20vcG9zdGVyL3N0b3JlL25ld2JlZS1tYWxsLXMucG5n?x-oss-process=image/format,png" /> </p> </div> <p style="color:rgba(0,0,0,.75);"> <strong><span style="color:#e53333;">课程特色</span></strong> </p> <p style="color:rgba(0,0,0,.75);"> </p> <div style="color:rgba(0,0,0,.75);"> </div> <div style="color:rgba(0,0,0,.75);"> <ul> <li> 对新手开发者十分友好,无需复杂的操作步骤,仅需 2 秒就可以启动这个完整的商城项目 </li> <li> 最终的实战项目是一个企业级别的 Spring Boot 大型项目,对于各个阶段的 Java 开发者都是极佳的选择 </li> <li> 实践项目页面美观且实用,交互效果完美 </li> <li> 教程详细开发教程详细完整、文档资源齐全 </li> <li> 代码+讲解+演示网站全方位保证,向 Hello World 教程说拜拜 </li> <li> 技术栈新颖且知识点丰富,学习后可以提升大家对于知识的理解和掌握,可以进一步提升你的市场竞争力 </li> </ul> </div> <p style="color:rgba(0,0,0,.75);"> </p> <p style="color:rgba(0,0,0,.75);"> <span style="color:#e53333;">课程预览</span> </p> <p style="color:rgba(0,0,0,.75);"> </p> <div style="color:rgba(0,0,0,.75);"> </div> <div style="color:rgba(0,0,0,.75);"> <p style="color:#4d4d4d;"> 以下为商城项目的页面和功能展示,分别为: </p> </div> <div style="color:rgba(0,0,0,.75);"> <ul> <li> 商城首页 1<br /> <img alt="" src="https://img-bss.csdnimg.cn/202103050347585499.gif" /> </li> <li> 商城首页 2<br /> <img alt="" src="https://img-bss.csdn.net/202005181054413605.png" /> </li> <li> </li> <li> 购物车<br /> <img alt="cart" src="https://imgconvert.csdnimg.cn/aHR0cHM6Ly9uZXdiZWUtbWFsbC5vc3MtY24tYmVpamluZy5hbGl5dW5jcy5jb20vcG9zdGVyL3Byb2R1Y3QvY2FydC5wbmc?x-oss-process=image/format,png" /> </li> <li> 订单结算<br /> <img alt="settle" src="https://imgconvert.csdnimg.cn/aHR0cHM6Ly9uZXdiZWUtbWFsbC5vc3MtY24tYmVpamluZy5hbGl5dW5jcy5jb20vcG9zdGVyL3Byb2R1Y3Qvc2V0dGxlLnBuZw?x-oss-process=image/format,png" /> </li> <li> 订单列表<br /> <img alt="orders" src="https://imgconvert.csdnimg.cn/aHR0cHM6Ly9uZXdiZWUtbWFsbC5vc3MtY24tYmVpamluZy5hbGl5dW5jcy5jb20vcG9zdGVyL3Byb2R1Y3Qvb3JkZXJzLnBuZw?x-oss-process=image/format,png" /> </li> <li> 支付页面<br /> <img alt="" src="https://img-bss.csdn.net/201909280301493716.jpg" /> </li> <li> 后台管理系统登录页<br /> <img alt="login" src="https://imgconvert.csdnimg.cn/aHR0cHM6Ly9uZXdiZWUtbWFsbC5vc3MtY24tYmVpamluZy5hbGl5dW5jcy5jb20vcG9zdGVyL3Byb2R1Y3QvbWFuYWdlLWxvZ2luLnBuZw?x-oss-process=image/format,png" /> </li> <li> 商品管理<br /> <img alt="goods" src="https://imgconvert.csdnimg.cn/aHR0cHM6Ly9uZXdiZWUtbWFsbC5vc3MtY24tYmVpamluZy5hbGl5dW5jcy5jb20vcG9zdGVyL3Byb2R1Y3QvbWFuYWdlLWdvb2RzLnBuZw?x-oss-process=image/format,png" /> </li> <li> 商品编辑<br /> <img alt="" src="https://img-bss.csdnimg.cn/202103050348242799.png" /> </li> </ul> </div> </div> </div> </div>
Python进阶-Pandas数据分析库
2018-12-18<p> <br /> </p> <p style="font-family:"color:#3D3D3D;font-size:16px;background-color:#FFFFFF;"> 您观看课程学习后<br /> 免费入群领取【超全Python资料包+17本学习电子书】 </p> <p style="font-family:"color:#3D3D3D;font-size:16px;background-color:#FFFFFF;"> <img src="https://img-bss.csdn.net/201909261022146699.jpg" alt="" /> </p> <p> <br /> </p> <p> Pandas是python中非常常用的数据分析库,在数据分析,机器学习,深度学习等领域经常被使用。本课程会讲解到pandas中最核心的一些知识点,包括Series以及DataFrame的构建,赋值,操作,选择数据,合并等等,以及使用pandas对文件进行读取和写入,使用pandas绘图等等。 </p>
Java软件开发工程师全套课程(笔记+项目实战案例)
2020-06-08Java软件开发系列课程,一站式学习全套Java技术。 包含三个阶段课程: 第一阶段: Java基础入门——JavaSE核心技术 本阶段为Java基础入门,包含:初识Java、变量、运算符、选择结构、循环结构、方法、数组、面向对象、抽象类和接口、常用类、枚举、泛型、内部类、集合、异常、I/O、设计模式、数据库、JDBC、项目实战 第二阶段: Java进阶开发——Web开发技术 本阶段为JavaWeb开发技术,包含:HTML、CSS、JavaScript、jQuery、Bootstrap、Servlet、JSP、Ajax、MVC等 第三阶段: Java高级开发——JavaEE框架技术 Java框架技术,包含:IDEA、Maven、MyBatis、Spring、SpringMVC、SpringBoot、SpringCloud、Shiro、Redis、ZooKeeper、Dubbo、Kafka、Nginx、Git、Docker、Vue.js、在线商城实战等 教学全程采用笔记+代码案例的形式讲解,由浅入深,每个知识点都有详细的讲解,通俗易懂!
-
下载
基于FastICA算法的混合声信号分离技术.pdf
基于FastICA算法的混合声信号分离技术.pdf
-
下载
xmind的帮助文件.rar
xmind的帮助文件.rar
-
下载
sicp-中英文材料-epub-pdf.zip
sicp-中英文材料-epub-pdf.zip
-
下载
JLinkProgramTool.zip
JLinkProgramTool.zip
-
下载
软件设计师中级历年真题.zip
软件设计师中级历年真题.zip
-
下载
test-output.json
test-output.json
-
下载
Si9000软件安装包.rar
Si9000软件安装包.rar
-
下载
RedisUtil.java
RedisUtil.java
-
下载
新建Hibernate项目web.rar
新建Hibernate项目web.rar
-
下载
01 计算机的硬件组成.pdf
01 计算机的硬件组成.pdf
