上一页 1 ··· 37 38 39 40 41 42 43 44 45 ··· 92 下一页
#include <iostream>#include <typeinfo>using namespace std;template<class T1,class T2>auto product(T1 v1[],T2 v2[], size_t count) -> decltype(v1[0]* v2[0]){ decltype(v1[0] * v2[0]) sum(0); for(size_t i=0;i<count;i++) sum +=v1[i] * v2[i]; return sum;}int main(){ double x[] = {1 Read More
posted @ 2012-02-13 16:29 庚武 Views(302) Comments(0) Diggs(0) Edit
http://lzone.de/articles/memcached.htm1、启动Memcache 常用参数memcached 1.4.3-p <num> 设置端口号(默认不设置为: 11211)-U <num> UDP监听端口 (默认: 11211, 0 时关闭) -l <ip_addr> 绑定地址 (默认:所有都允许,无论内外网或者本机更换IP,有安全隐患,若设置为127.0.0.1就只能本机访问)-d 独立进程运行-u <username> 绑定使用指定用于运行进程 <username>-m <num> 允许最大内 Read More
posted @ 2012-02-13 12:08 庚武 Views(387) Comments(0) Diggs(0) Edit
http://msdn.microsoft.com/en-us/library/ff647790.aspx#scalenetchapt05_topic15Locking and synchronization provide a mechanism to grant exclusive access to data or code to avoid concurrent execution.This section summarizes steps to consider to help you approach locking and synchronization correctly:De Read More
posted @ 2012-02-09 10:10 庚武 Views(406) Comments(0) Diggs(1) Edit
%comspec% /k ""d:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat"" amd64msbuild MPTSBKW.Test1.sln /p:Configuration=Debug /p:Platform="Any CPU" /consoleloggerparameters:ErrorsOnlyMicrosoft (R) Build Engine Version 4.0.30319.1[Microsoft .NET Framework, Read More
posted @ 2012-02-07 15:39 庚武 Views(530) Comments(0) Diggs(0) Edit
主页:http://ironpython.net/下载地址:http://ironpython.codeplex.com/开发工具VS2010插件:http://pytools.codeplex.com/ Read More
posted @ 2012-02-07 11:36 庚武 Views(285) Comments(0) Diggs(0) Edit
http://google-styleguide.googlecode.com/svn/trunk/cppguide.xml Read More
posted @ 2012-02-07 09:51 庚武 Views(147) Comments(0) Diggs(0) Edit
Executable Object Statements and Built-in FunctionsBuilt-in Function or Statement Descriptioncallable(obj)Returns true if obj is callable and False otherwisecompile(string, file, type)Creates a code object from string of type type; fileis where the code originates from (usually set to "")e Read More
posted @ 2012-02-06 11:32 庚武 Views(482) Comments(0) Diggs(0) Edit
#file name: Hello.py#coding:utf-8def hello(): print 'hello中国' add = lambda x,y:x+yclass FooClass(object): """ Foo Class doc """ version = 1.0 def __init__(self,age,nm='吴xx'): self.age=age self.name=nm def show(self): print 'name:',self.name,' Read More
posted @ 2012-02-05 13:46 庚武 Views(341) Comments(0) Diggs(0) Edit
Core Python Programming Language : Page477Anonymous Functions and lambdaPython allows one to create anonymous functions using the lambda keyword. They are "anonymous"because they are not declared in the standard manner, i.e., using the def statement. (Unless assignedto a local variable, su Read More
posted @ 2012-02-04 17:17 庚武 Views(602) Comments(0) Diggs(0) Edit
http://msdn.microsoft.com/en-us/library/e1f13641.aspxhttp://msdn.microsoft.com/en-us/library/h6bb9cz9.aspx<httpRuntime apartmentThreading = "[True|False]" appRequestQueueLimit = "number" delayNotificationTimeout = "number" enable = "[True|False]" enableHead Read More
posted @ 2012-02-04 15:02 庚武 Views(1396) Comments(0) Diggs(0) Edit
上一页 1 ··· 37 38 39 40 41 42 43 44 45 ··· 92 下一页