环境:CentOS6.4(最小化安装)关闭防火墙和selinuxSendmail的配置文件/etc/mail/sendmail.cf:Sendmail的主配置文件;/etc/mail/access:中继访问控制;/etc/mail/domaintable;域名映射;/etc/mail/local-host-names;本地主机别名;/etc/mail/mailertable:为特定的域指定特殊的..
分类:
其他好文 时间:
2015-09-21 01:44:26
阅读次数:
676
Microsoft has introduced new feature – Loopback Security Check in Windows Server 2003 SP1 to prevent access to a web application using a fully qualifi...
分类:
移动开发 时间:
2015-09-20 13:05:35
阅读次数:
158
CREATE TABLE test( id int primary key not null identity, names varchar(20));declare @i int;set @i=1;while(@i( select max(id) from ( select top 40 ...
分类:
数据库 时间:
2015-09-19 00:46:03
阅读次数:
278
NOTE: 1.derived classes 内的名称会遮掩base classes内的名称。在public继承下从来没有人希望如此。 2.为了让被遮掩的名称再见天日,可使用using 声明方式或转交函数(forwarding functions)。
分类:
其他好文 时间:
2015-09-18 00:41:39
阅读次数:
137
今天发现linux中在shell中查看mysql数据库,中文显示乱码,但是取到网页中又是正常的。解决方法1: 在第一次进入mysql时,加一句 set names utf8 //设置编码解决方法2:修改/etc/my.cnf文件; 在[client]下添加 defau...
分类:
数据库 时间:
2015-09-17 01:06:02
阅读次数:
182
1.首先pb需要utf8格式,所以由ansi转换成utf8格式才能传输2.在接收端,需要将utf8转换成ansi才能用3.在插入数据库之前需要将sql从ansi转换成utf8格式4.数据库设置字符集为utf8ASSERT( 0 == Query(&m_con, "SET NAMES utf8", s...
分类:
数据库 时间:
2015-09-16 14:07:27
阅读次数:
159
1.普通逆序 可以任意申请内存或变量,对于指针版本,此方法不好,需要在函数内开辟空间,在函数结束前返回该空间首地址,由于不能释放该内存,出现内存泄漏 ,所以这里只提供引用版本: #define _CRT_SECURE_NO_WARNINGS #include #include using names...
分类:
其他好文 时间:
2015-09-16 06:22:52
阅读次数:
201
// <?php?
$link=mysqli_connect("localhost","root","");
$select=mysql_select_db("test");
$code=mysql_query("set?names?utf8");
$sql="select?*?from?t1";
$search=mysql_query($sql);
for($i=0;$i<6...
分类:
数据库 时间:
2015-09-16 01:11:01
阅读次数:
197
Get Files from Directory [C#]This example shows how to get list of file names from a directory (including subdirectories). You can filter the list by ...
Faking success in SSISAn article by DougbertA SQL Server Integration Services package has a set of properties with similar names that let you:force th...
分类:
其他好文 时间:
2015-09-13 21:29:16
阅读次数:
236