搜索到与相关的文章
C#

C#备份还原MySql数据库

调用MySql的工具mysqldump来实现。类Cmd来实现调用cmd命令,要启动的进程所在的目录是说mysql自动的备份还原数据库工具mysqldump和mysql所在目录,当然,这个方法可以执行别的命令行工具。代码usingSystem;usingSystem.Collections.Generic;usingSystem.Text;usingSystem.Diagnostics;publicclassCmd{//////执行Cmd命

系统 2019-08-12 01:32:56 3803

PHP

PHP多线程批量采集下载图片

使用curl的多线程,另外curl可以设置请求时间,遇到很慢的url资源,可以果断的放弃,这样没有阻塞,另外有多线程请求,效率应该比较高,参考:《CURL的学习和应用[附多线程]》,我们再来测试一下;核心代码:/***curl多线程**@paramarray$array并行网址*@paramint$timeout超时时间*@returnmix*/publicfunctionCurl_http($array,$timeout='15'){$res=array

系统 2019-08-29 23:08:51 3802

Ubuntu

Installing Software in Ubuntu

InstallingSoftwareinUbuntuIntroductionMostWindowsuserswhomigratetoUbuntuendupconfusedaboutsoftwareinstallation.Theygotoawebsite,downloada.tar.gzfile,double-clickit,anddon'tseeaNext-Next-Next-Finishwizard.Thistutorialisintendedtoin

系统 2019-08-12 09:27:37 3801

Oracle

fedora 16 x64 安装oracle instantclient、pdo_

参考文件http://www.linuxeden.com/html/netadmin/20111020/115199.html一、准备文件1)oracle客户端rpm包,http://www.oracle.com/technology/tech/oci/instantclient/instantclient.html下载#oracle-instantclient11.2-basic-11.2.0.1.0-1.x86_64.rpm#oracle-instan

系统 2019-08-12 01:53:43 3801

Linux

linux下配置tomcat开机启动 linux下配置tomcat

Tomcat启动可以用自带的确jsvc来实现:jsvc本来要从http://jakarta.apache.org/下载commons-daemon-1.0-Alpha,不过tomcat已经自己带了一个了,在tomcat/bin目录下有一个jsvc.tar.gz解压,编译:#tar-xzvfjsvc.tar.gz#cdjsvc-src运行#shsupport/buildconf.sh#./configure--with-java=/usr/java#make

系统 2019-08-12 01:32:34 3801

Oracle

oracle函数编写

函数定义:CREATE[ORREPLACE]FUNCTION<过程名>[(参数列表)]RETURN数据类型IS[局部变量声明]BEGIN可执行语句EXCEPTION异常处理语句END[<过程名>];变量的类型:in为默认类型,表示输入;out表示只输出;inout表示即输入又输出;使用:示例:创建函数:createorreplacefunctionf_1(nnumber)returnnumberisremp%rowtype;BEGINdbms_output

系统 2019-08-29 22:50:27 3800

redis

Redis集群环境安装指南

环境RHLinux-6.4-64-EN,红帽6.464位,英文正式公布版。Redis3.0.0redis2.x版本号还不支持集群,3.0版本号将会支持,如今3.0版本号还在开发中,如今是beta-3版本号(截止2014-5-8),但功能是可用的。下载Redis3.0.0beta-3版本号,点击这里下载。Redis3的安装能够參照之前的单机安装指南操作。创建Redis集群实例创建集群节点的目录,先创建cluster-test目录,再以port为名称创建子目录

系统 2019-08-12 01:54:12 3800

IOS

[iOS]用instancetype代替id作返回类型有什么好

苹果在iOS8中全面使用instancetype代替idStevenFisher:只要一个类返回自身的实例,用instancetype就有好处。@interfaceFoo:NSObject-(id)initWithBar:(NSInteger)bar;//initializer+(id)fooWithBar:(NSInteger)bar;//convenienceconstructor@end对于简易构造函数(convenienceconstructor)

系统 2019-08-12 01:52:35 3800

Python

python计算导数并绘图

importmathimportnumpyasnpimportmatplotlib.pyplotaspltfromsympyimport*#用于求导积分等科学计算defdif(left,right,step):#求导左右区间以及间隔x,y=symbols('xy')#引入xy变量expr=pow(x,5)#计算表达式x_value=[]#savexvaluey_value=[]#savexf(x)valuey_value_dif=[]#savexf(x)_

系统 2019-09-27 17:57:14 3799

C#

使用C#创建webservice及三种调用方式

使用C#创建webservice及三种调用方式GB2312http://csharp.xdowns.com/trackback.php?id=299&encode=gb2312UTF-8http://csharp.xdowns.com/trackback.php?id=299&encode=utf-8微软.NET战略的一个比较重要的部分就是webservice,利用webservice我们可以创建真正有效的分布式应用程序。下面,我们对webservice做

系统 2019-08-29 23:49:48 3799