判断文章中文字符数量
dim WINNT_CHINESE
WINNT_CHINESE = (len("论坛")=2)
function strLength(str)
ON ERROR RESUME NEXT
if WINNT_CHINESE then
dim l,t,c
dim i
l=len(str)
t=l
for i=1 to l
c=asc(mid(...
分类:
其他好文 时间:
2014-05-10 04:30:47
阅读次数:
266
需要每隔一段时间选取最老的商户更新时间戳:
update DP_Shop set DP_Shop.LastDate = now() where DP_Shop.ShopId in (select ShopId from DP_Shop order by LastDate limit 5);
ERROR 1235 (42000): This version of MySQL doesn't ...
分类:
数据库 时间:
2014-05-10 04:22:58
阅读次数:
423
将IP表存入SQL里的程序
写得比较粗糙,还有一点错误,不过能达到效果,请大家测试
create.asp
-----------------------------------------------------------------------
'Option Explicit
Server.Scripttimeout = 1000
On Error Resume N...
分类:
数据库 时间:
2014-05-10 04:22:32
阅读次数:
563
configure: error: APR not found. Please read the documentation.
configure: error: APR-util not found. Please read the documentation....
分类:
其他好文 时间:
2014-05-10 04:20:35
阅读次数:
316
系统配置的yum源是163的镜像站,本来想用lsb_release命令查看一下系统的版本等信息,结果显示没有此命令,那就安装其相关软件包吧,用yum-yinstallredhat-lsb相依属性列出了40个软件包,本来没想安装这么多,愣了个神还没有按y键呢系统自己就莫名其妙又继续了,继续就继续吧,..
分类:
其他好文 时间:
2014-05-10 04:01:38
阅读次数:
649
'EXCELa.VBS '直接将查询数据结果生成 EXCEL 表,稍做修改后即可
'改成ASP文件放在服务器上面向客户
option Explicit
dim conn,strConnString
Set conn = WScript.CreateObject("ADODB.Connection")
on error resume next
strConnString ="Provid...
分类:
其他好文 时间:
2014-05-10 03:43:27
阅读次数:
375
简单说下实现苹果通知推送服务(APNs)客户端的一些要注意的地方:
使用长连接;sanbox服务器是没用的,调试时直接用“gateway.push.apple.com”域名;对于错误的Notification,苹果会回应一个Error response,里面有个identifier,在这个identifier之后的Notification全都失败;
因此发送者要缓存已经发送的Not...
分类:
移动开发 时间:
2014-05-10 03:33:21
阅读次数:
473
public class InsertSort{ public static void
main(String[] args){ int[] sortArray = new int[]{5,7,4,2,9,8,3,6};
System.out.println("before sorting ,t.....
分类:
编程语言 时间:
2014-05-10 03:13:15
阅读次数:
342
SYSCTL(8) System Administration SYSCTL(8)名字 sysctl
- 在运行时配置内核参数语法 sysctl [options] [variable[=value]]...
分类:
其他好文 时间:
2014-05-10 02:55:31
阅读次数:
290
MOUNT(8) System Administration MOUNT(8)名称 mount -
挂载文件系统语法 mount [-lh...
分类:
其他好文 时间:
2014-05-10 02:38:33
阅读次数:
506