php
mail()函数在windows不能用,需要安装sendmail1.从http://glob.com.au/sendmail/下载sendmail.zip2.解压到C:下,例如C:\php\sendmail,最好短路径,长路径名有可能产生问题。3.修改php.ini如下sendmail_pa...
分类:
Web程序 时间:
2014-06-06 07:45:57
阅读次数:
350
longtime=System.currentTimeMillis(); System.out.println(time); SimpleDateFormatformat=newSimpleDateFormat("yyyy-MM-ddHH:mm:ss"); java.util.Dated1=newDate(time); Stringnow=format.format(d1); System.out.println(now); longt=0; try{ java.util.Dated2=format.pa..
分类:
移动开发 时间:
2014-06-04 12:51:10
阅读次数:
474
auto_ptr是C++标准库中()为了解决资源泄漏的问题提供的一个智能指针类模板(注意:这只是一种简单的智能指针)auto_ptr的实现原理其实就是RAII,在构造的时候获取资源,在析构的时候释放资源,并进行相关指针操作的重载,使用起来就像普通的指针。std::auto_ptr
pa(new Cl...
分类:
其他好文 时间:
2014-06-02 17:12:02
阅读次数:
210
Given a stringS, find the longest palindromic
substring inS. You may assume that the maximum length ofSis 1000, and there
exists one unique longest pa...
分类:
编程语言 时间:
2014-06-02 09:22:03
阅读次数:
328
安装11.2.0.3RACgrid执行root.sh报错
rootwallet
rootwalletcert
rootcertexport
peerwallet
profilereaderwallet
pawallet
peerwalletkeys
pawalletkeys
peercertrequest
pacertrequest
peercert
pacert
peerrootcertTP
profilereaderrootcertTP
parootcertTP
peerpacertTP
pa..
分类:
其他好文 时间:
2014-06-02 03:43:48
阅读次数:
224
WIA-PA其全称是《Wireless Networks for Industrial
Automation Process
Automation》,译为《面向工业过程自动化的工业无线网络标准技术》国产标准,中科院沈阳自动化研究所提出的标准。基于IEEE
802.15.4,事实上是在TI cc243...
分类:
其他好文 时间:
2014-05-31 15:36:31
阅读次数:
235
NSBundle:一个NSBundle代表一个文件夹mainBundle可以访问软件资源包中的任何文件
//获得mainBundleNSBundle *bundle = [NSBundle mainBundle]; // 获得imageData.plist的全路径
NSString *pa...
分类:
其他好文 时间:
2014-05-28 14:39:30
阅读次数:
215
基础练习 Huffuman树
时间限制:1.0s 内存限制:512.0MB
问题描述
Huffman树在编码中有着广泛的应用。在这里,我们只关心Huffman树的构造过程。
给出一列数{pi}={p0, p1, …, pn-1},用这列数构造Huffman树的过程如下:
1. 找到{pi}中最小的两个数,设为pa和pb,将pa和pb从{pi}中...
分类:
其他好文 时间:
2014-05-26 03:39:18
阅读次数:
200
隔了差不多三周没写博文了,感觉一写就停不下来呀!因为心里面积攒很多想说的话,很多自己在近段时间思考的小收获。不过还是先回归到这个问题上去吧!分三部分:对我自己遇到的题进行概述给出相应的解决办法附加上其他错误的解决方案!=====================================pa..
错误的代码HttpClient httpclient = new
DefaultHttpClient();HttpUriRequest request = new HttpGet(uri);HttpParams p = new
BasicHttpParams();p.setParameter("pa...
分类:
其他好文 时间:
2014-05-24 13:21:37
阅读次数:
217