相信积累的力量

上一页 1 2 3 4 5 6 ··· 9 下一页
摘要: Python标准库05 存储对象 (pickle包,cPickle包)作者:Vamei 出处:http://www.cnblogs.com/vamei 欢迎转载,也请保留这段声明。谢谢!谢谢reverland纠错在之前对Python对象的介绍中 (面向对象的基本概念,面向对象的进一步拓展),我提到过Python“一切皆对象”的哲学,在Python中,无论是变量还是函数,都是一个对象。当Python运行时,对象存储在内存中,随时等待系统的调用。然而,内存里的数据会随着计算机关机和消失,如何将对象保存到文件,并储存在硬盘上呢?计算机的内存中存储的是二进制的序列 (当然,在Linux眼中,是文本流) 阅读全文
posted @ 2014-01-11 20:28 ThreeF 阅读(1811) 评论(0) 推荐(0) 编辑
摘要: http://en.wikipedia.org/wiki/Leftist_treeLeftist treeFrom Wikipedia, the free encyclopediaIncomputer science, aleftist treeorleftist heapis apriority queueimplemented with a variant of abinary heap. Every node has ans-valuewhich is the distance to the nearestleaf. In contrast to abinary heap, a left 阅读全文
posted @ 2014-01-11 20:06 ThreeF 阅读(470) 评论(0) 推荐(0) 编辑
摘要: Advanced Bash-Scripting Guide:PrevNextChapter 2. Starting Off With a Sha-BangShell programming is a 1950s juke box . . .--Larry WallTable of Contents2.1.Invoking the script2.2.Preliminary ExercisesIn the simplest case, a script is nothing more than a list of system commands stored in a file. At the 阅读全文
posted @ 2014-01-06 14:27 ThreeF 阅读(285) 评论(0) 推荐(0) 编辑
摘要: A working knowledge of shell scripting is essential to anyone wishing to become reasonably proficient at system administration, even if they do not anticipate ever having to actually write a script. Consider that as a Linux machine boots up, it executes the shell scripts in/etc/rc.dto restore the sy 阅读全文
posted @ 2014-01-06 14:21 ThreeF 阅读(200) 评论(0) 推荐(0) 编辑
摘要: The shell is a command interpreter. More than just the insulating layer between the operating system kernel and the user, it's also a fairly powerful programming language. A shell program, called ascript, is an easy-to-use tool for building applications by"gluing together"system calls, 阅读全文
posted @ 2014-01-06 13:43 ThreeF 阅读(209) 评论(0) 推荐(0) 编辑
摘要: Signals and Slots in PySideThis page describes the use of signals and slots in PySide. The emphasis is on illustrating the use of so-called new-style signals and slots, although the traditional syntax is also given as a reference.PyQt’s new-style signals and slots were introduced in PyQt v4.5. The m 阅读全文
posted @ 2013-11-29 19:55 ThreeF 阅读(1060) 评论(0) 推荐(0) 编辑
摘要: http://developer.baidu.com/wiki/index.php?title=docs/cplat/rt/python/cron简介Cron(定时任务)是云环境为开发者提供的分布式环境下的定时任务功能,可以通过指定一个URL、时间表和相关参数来创建一个任务,系统将按照时间表的规则调用用户指定的URL。管理在百度开发者中心登录后 进入“管理中心”,选择“管理”已托管在BAE上的应用,在“云环境(BAE)->服务管理->Cron(定时任务)”即可看到Cron服务的管理页面。创建定时任务并输入相关参数后即可在代码中直接调用,如下图:图:Cron管理创建相关选项说明1. 阅读全文
posted @ 2013-10-17 09:50 ThreeF 阅读(943) 评论(0) 推荐(0) 编辑
摘要: http://mysql-python.sourceforge.net/MySQLdb.htmlMySQLdb User's GuideContentsIntroductionInstallation_mysqlMySQL C API translationMySQL C API function mappingSome _mysql examplesMySQLdbFunctions and attributesConnection ObjectsCursor ObjectsSome examplesUsing and extendingEmbedded ServerIntroduct 阅读全文
posted @ 2013-10-16 18:29 ThreeF 阅读(637) 评论(0) 推荐(0) 编辑
摘要: http://webapp-improved.appspot.com/features.htmlwebapp2 featuresHere’s an overview of the main improvements of webapp2 compared to webapp.Table of Contentswebapp2 featuresCompatible with webappCompatible with latest WebObFull-featured response objectStatus code exceptionsImproved exception handlingL 阅读全文
posted @ 2013-10-16 15:30 ThreeF 阅读(817) 评论(0) 推荐(0) 编辑
摘要: http://webapp-improved.googlecode.com/hg/webapp2.py# -*- coding: utf-8 -*-""" webapp2 ======= Taking Google App Engine's webapp to the next level! :copyright: 2011 by tipfy.org. :license: Apache Sotware License, see LICENSE for details."""from __future__ import with 阅读全文
posted @ 2013-10-16 15:17 ThreeF 阅读(559) 评论(0) 推荐(0) 编辑
摘要: Beautiful Soup DocumentationBeautiful Soup is a Python library for pulling data out of HTML and XML files. It works with your favorite parser to provide idiomatic ways of navigating, searching, and modifying the parse tree. It commonly saves programmers hours or days of work.These instructions illus 阅读全文
posted @ 2013-10-15 21:47 ThreeF 阅读(920) 评论(0) 推荐(0) 编辑
摘要: https://www.google.com/search?q=python+getelementby+id&oq=python+getelementby+id&aqs=chrome..69i57.8360j0&sourceid=chrome&espv=210&es_sm=93&ie=UTF-819.8.xml.dom— The Document Object Model APINew in version 2.0.The Document Object Model, or “DOM,” is a cross-language API from 阅读全文
posted @ 2013-10-15 20:45 ThreeF 阅读(446) 评论(0) 推荐(0) 编辑
摘要: http://docs.python.org/2/library/htmlparser.html#HTMLParser.HTMLParser19.1.HTMLParser— Simple HTML and XHTML parserNoteTheHTMLParsermodule has been renamed tohtml.parserin Python 3. The2to3tool will automatically adapt imports when converting your sources to Python 3.New in version 2.2.Source code:L 阅读全文
posted @ 2013-10-15 20:12 ThreeF 阅读(763) 评论(0) 推荐(0) 编辑
摘要: Using the DatastoreStoring data in a scalable web application can be tricky. A user could be interacting with any of dozens of web servers at a given time, and the user’s next request could go to a different web server than the one that handled the previous request. All web servers need to be intera 阅读全文
posted @ 2013-10-15 19:11 ThreeF 阅读(326) 评论(0) 推荐(0) 编辑
摘要: http://webapp-improved.appspot.com/guide/request.htmlRequest dataThe request handler instance can access the request data using itsrequestproperty. This is initialized to a populatedWebObRequestobject by the application.The request object provides aget()method that returns values for arguments parse 阅读全文
posted @ 2013-10-14 21:02 ThreeF 阅读(314) 评论(0) 推荐(0) 编辑
摘要: Request handlersIn the webapp2 vocabulary,request handleror simplyhandleris a common term that refers to the callable that contains the application logic to handle a request. This sounds a lot abstract, but we will explain everything in details in this section.Handlers 101A handler is equivalent to 阅读全文
posted @ 2013-10-14 20:35 ThreeF 阅读(487) 评论(0) 推荐(0) 编辑
摘要: http://webapp-improved.appspot.com/guide/testing.htmlURI routingURI routingis the process of taking the requested URI and deciding which application handler will handle the current request. For this, we initialize theWSGIApplicationdefining a list ofroutes: eachrouteanalyses the current request and, 阅读全文
posted @ 2013-10-14 15:29 ThreeF 阅读(423) 评论(0) 推荐(0) 编辑
摘要: import java.util.Observable;import java.util.Observer;class ObservedObject extends Observable { private String watchedValue; public ObservedObject(String value) { watchedValue = value; } public void setValue(String value) { // if value has changed notify observers if(!wa... 阅读全文
posted @ 2013-10-11 16:45 ThreeF 阅读(232) 评论(0) 推荐(0) 编辑
摘要: http://www.cprogramming.com/tutorial/shared-libraries-linux-gcc.htmlShared libraries with GCC on LinuxBy anduril462Libraries are an indispensable tool for any programmer. They are pre-existing code that is compiled and ready for you to use. They often provide generic functionality, likelinked listso 阅读全文
posted @ 2013-10-10 22:57 ThreeF 阅读(516) 评论(0) 推荐(0) 编辑
摘要: One of the first questions new computer science students ask is “what language should I learn?” The answer to this question is more complicated than you might assume. Different languages have different capabilities and applications. Some languages are more commonly used in enterprise settings (examp 阅读全文
posted @ 2013-10-08 20:44 ThreeF 阅读(250) 评论(0) 推荐(0) 编辑
摘要: http://www.cnblogs.com/xuxm2007/archive/2010/08/04/1792463.html 当你打开一个.py文件时,经常会在代码的最下面看到if __name__ == '__main__':,现在就来介 绍一下它的作用. 模块是对象,并且所有的模块都有一个内置 阅读全文
posted @ 2013-10-07 15:08 ThreeF 阅读(204) 评论(0) 推荐(0) 编辑
摘要: If you’ve moved to Vim from an editor like Notepad++ or TextMate, you’ll be used to working with the idea of tabs in a text editor in a certain way. S 阅读全文
posted @ 2013-10-07 13:44 ThreeF 阅读(362) 评论(0) 推荐(0) 编辑
摘要: 转自:http://blog.bcchinese.net/happyjet/archive/2005/05/24/22545.aspx__cdecl__stdcallC和C++程序的缺省调用规范为了使用这种调用规范,需要你明确的加上__stdcall(或WINAPI)文字。即return-type__stdcallfunction-name[(argument-list)]在被调用函数(Callee)返回后,由调用方(Caller)调整堆栈。1.调用方的函数调用2.被调用函数的执行3.被调用函数的结果返回4.调用方清除调整堆栈 在被调用函数(Callee)返回前,由被调用函数(Callee)调 阅读全文
posted @ 2013-10-07 13:23 ThreeF 阅读(470) 评论(0) 推荐(0) 编辑
摘要: improt xxx时,python 会在一些路径中寻找:http://docs.python.org/2/tutorial/modules.htmlWhen a module namedspamis imported, the interpreter first searches for a built-in module with that name. If not found, it then searches for a file namedspam.pyin a list of directories given by the variablesys.path.sys.pathis 阅读全文
posted @ 2013-10-06 22:35 ThreeF 阅读(635) 评论(0) 推荐(0) 编辑
摘要: http://www.cnblogs.com/baizx/archive/2010/08/09/1796120.html Git 系列之二:Windows 下 Git 客户端的选择,及 msysGit 各种中文问题的解决-转载 Git 系列之二:Windows 下 Git 客户端的选择,及 msys 阅读全文
posted @ 2013-10-06 14:07 ThreeF 阅读(963) 评论(0) 推荐(0) 编辑
摘要: http://wolfprojects.altervista.org/articles/dll-in-c-for-python/his article explains how to write aDLL/SOin C/C++ for PythonNote:Cythoncan also be used to create and wrap C libraries for Python, and might be a good alternative to the approach explained in this article.Create a new file and write, fo 阅读全文
posted @ 2013-10-06 12:43 ThreeF 阅读(555) 评论(0) 推荐(0) 编辑
摘要: http://docs.python.org/2/library/ctypes.html15.17.ctypes— A foreign function library for PythonNew in version 2.5.ctypesis a foreign function library for Python. It provides C compatible data types, and allows calling functions in DLLs or shared libraries. It can be used to wrap these libraries in p 阅读全文
posted @ 2013-10-06 12:32 ThreeF 阅读(1242) 评论(0) 推荐(0) 编辑
摘要: lib文件百度百科:http://baike.baidu.com/link?url=sbdM3usXfhcklKPhOfL9Gi7GeM8sQRFdXuJIS_VhNV0uJDIVZq7hXsKI8gl-nTMP3q6lMcETpH1WeM0569aCtalib文件目 录1意义2使用2.1静态编译2.2动态编译3详细说明3.1内容3.2使用步骤4与dll区别5加载方法5.1直接加入5.2设置5.3程序代码1意义.lib是一种文件名后缀该文件为Windows操作系统中的库文件,相当于Linux中的.a或.o、.so文件lib有静态lib和动态lib之分。2使用lib文件通过编译才可以使用编译分静 阅读全文
posted @ 2013-10-06 11:02 ThreeF 阅读(521) 评论(0) 推荐(0) 编辑
摘要: http://blog.csdn.net/csfreebird/article/details/6429946 阅读全文
posted @ 2013-10-05 11:23 ThreeF 阅读(188) 评论(0) 推荐(0) 编辑
摘要: Windows Python VersionDLL NameVC++ RedistributableLink to installer2.4, 2.5 [32 bit]msvcr71.dll, msvcp72.dllMicrosoft Visual C++ 2003 (7.1), included with .net 1.1http://msdn.microsoft.com/en-us/netframework/aa5692642.6, 2.7, 3.0, 3.1, 3.2 [32 bit]msvcr90.dll, msvcp90.dllMicrosoft Visual C++ 2008 Re 阅读全文
posted @ 2013-10-04 17:29 ThreeF 阅读(319) 评论(0) 推荐(0) 编辑
摘要: http://blog.csdn.net/yao_qinwei/article/details/7578924在我们实际的开发过程中,我们当前这样定位前端、后端开发人员。1)前端开发人员:精通JS,能熟练应用JQuery,懂CSS,能熟练运用这些知识,进行交互效果的开发。2)后端开发人员:会写Java代码,会写SQL语句,能做简单的数据库设计,会Spring和iBatis,懂一些设计模式等。现在来看,我们对前后端的要求还是蛮低的,尤其是后端,新员工经过培训之后都是可以参与到后端开发的,没有太高的技术门槛,唯一需要做的就是先变成熟练工种,这个阶段没有涉及到设计模式、架构、效率等一些列问题。还是先 阅读全文
posted @ 2013-10-04 16:50 ThreeF 阅读(321) 评论(0) 推荐(0) 编辑
摘要: http://blog.csdn.net/adonis1620/article/details/5913903动态链接库*.so的编译与使用- -动态库*.so在linux下用c和c++编程时经常会碰到,最近在网站找了几篇文章介绍动态库的编译和链接,总算搞懂了这个之前一直不太了解得东东,这里做个笔记,也为其它正为动态库链接库而苦恼的兄弟们提供一点帮助。1、动态库的编译下面通过一个例子来介绍如何生成一个动态库。这里有一个头文件:so_test.h,三个.c文件:test_a.c、test_b.c、test_c.c,我们将这几个文件编译成一个动态库:libtest.so。so_test.h:#in 阅读全文
posted @ 2013-10-03 19:02 ThreeF 阅读(1339) 评论(0) 推荐(0) 编辑
摘要: http://blog.csdn.net/adonis1620/article/details/5794797Trolltech提供的界面所见即所得工具designer极大的简化了开发者花费在UI布局上的时间。但一部分喜欢在终端上开发的工程师认为拖拖拉拉这种伎俩实在是”雕虫小技,壮夫不为“也。即使专门的界面设计师为他设计.ui文件的话,他也嫌来来回回的重新编译麻烦。乐于自己通过QLayout手写代码进行设计。那么QUiLoader这个工具,则可以真正做到程序师和界面师做到“鸡犬相闻,不相往来”, .ui文件不需要重新编译,就可以被程序加载,生成新的外观。我们来看QUiLoader的实用方法QU 阅读全文
posted @ 2013-10-03 18:52 ThreeF 阅读(794) 评论(0) 推荐(0) 编辑
摘要: qt 与 js 交互:QFile file("./s.js"); if (!file.open(QIODevice::ReadOnly)) { qDebug() applicationDirPath(); qDebug() << str; file.close(); QScriptEngine e; QScriptValue v = e.evaluate(str); if (e.hasUncaughtException()) { qDebug() << "error!" << endl; } QScript... 阅读全文
posted @ 2013-10-03 18:16 ThreeF 阅读(333) 评论(0) 推荐(0) 编辑
摘要: ---恢复内容开始---http://coolshell.cn/articles/5426.htmlvim的学习曲线相当的大(参看各种文本编辑器的学习曲线),所以,如果你一开始看到的是一大堆VIM的命令分类,你一定会对这个编辑器失去兴趣的。下面的文章翻译自《Learn Vim Progressively》,我觉得这是给新手最好的VIM的升级教程了,没有列举所有的命令,只是列举了那些最有用的命令。非常不错。——————————正文开始——————————你想以最快的速度学习人类史上最好的文本编辑器VIM吗?你先得懂得如何在VIM幸存下来,然后一点一点地学习各种戏法。Vimthe Six Bill 阅读全文
posted @ 2013-10-02 20:55 ThreeF 阅读(1170) 评论(1) 推荐(1) 编辑
摘要: 来源:http://blog.csdn.net/clever101决心学习Makefile,一方面是为了解决编译开源代码时需要跨编译平台的问题(发现一些开源代码已经在使用VS2010开发,但我还没安装VS2010,我想在VS2008下编译这些代码);另一方面源码在服务器端编译的话,使用IDE的方式编译还是不太方便。本文主要分为三部分:第一部分讲述namke工具使用makefile的用法;第二部分讲述makefile的主要语法;第三部分讲述自己动手实践学习写makefile文件。第四部分是编写一个工具将vc工程文件转化为Makefile文件。首先要清楚的是在VS环境下使用Makefile的工具是 阅读全文
posted @ 2013-10-02 18:52 ThreeF 阅读(2229) 评论(0) 推荐(0) 编辑
摘要: http://blog.csdn.net/shuyi18/article/details/5983008使用Qt插件和编写Qt插件需要注意:Making an application extensible through plugins involves the following steps:Define a set of interfaces (classes with only pure virtual functions) used to talk to the plugins.Use theQ_DECLARE_INTERFACE() macro to tell Qt'smet 阅读全文
posted @ 2013-10-02 16:10 ThreeF 阅读(626) 评论(0) 推荐(0) 编辑
摘要: 【教程】手把手教你如何利用工具(IE9的F12)去分析模拟登陆网站(百度首页)的内部逻辑过程 http://www.crifan.com/emulate_login_website_using_python/ 阅读全文
posted @ 2013-10-01 21:01 ThreeF 阅读(164) 评论(0) 推荐(0) 编辑
摘要: 写的太好了:http://www.blogjava.net/wxb_nudt/archive/2007/09/11/144371.htmlDLL编写教程半年不能上网,最近网络终于通了,终于可以更新博客了,写点什么呢?决定最近写一个编程技术系列,其内容是一些通用的编程技术。例如DLL,COM,Socket,多线程等等。这些技术的特点就是使用广泛,但是误解很多;网上教程很多,但是几乎没有什么优质良品。我以近几个月来的编程经验发现,很有必要好好的总结一下这些编程技术了。一来对自己是总结提高,二来可以方便光顾我博客的朋友。好了,废话少说,言归正传。第一篇就是《DLL编写教程》,为什么起这么土的名字呢? 阅读全文
posted @ 2013-09-28 20:24 ThreeF 阅读(373) 评论(0) 推荐(0) 编辑
摘要: 注意引用动态库文件工程文件加入LIB += *.lib文件加入加入库:win32:CONFIG(release, debug|release): LIBS += -L$$PWD/../DllTest-build-Desktop_Qt_5_0_0_MSVC2010_32bit_SDK-Debug/release/ -lDllTestelse:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/../DllTest-build-Desktop_Qt_5_0_0_MSVC2010_32bit_SDK-Debug/debug/ -lDllTestIN 阅读全文
posted @ 2013-09-28 20:22 ThreeF 阅读(419) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 9 下一页

相信积累的力量