2009年5月19日
通过Date来设置时间 如果硬件的时间不正确
设置也是无效的。需要设置硬件的时间:
hwclock 查看硬件时钟 此command 只有root能使用 一般user无法使用
更改硬件时钟
例:
hwclock --set --date="12/01/2007 10:45:34"
月 日 年 时 分 秒
同步系统时间和硬件时间
hwclock --hctosys
date用法
例:
date 120110552007...
Tags:
2009年5月8日
模式 String.endwith 功能.
[CODE_LITE]
String.prototype.endwith = function(element) {
if (this.length > 0) {
if (element.length > 0) {
if (this.substring(this.length-element.length)==element) {
return true;
...
Tags:
2009年5月4日
[CODE_LITE]
function getMobileServices(mobile) {
if(mobile.startwith("0")==true){
mobile=mobile.substring(1);
}
if(mobile.startwith("+086")==true){
mobile=mobile.substring(4);
}
var chinaunicom=new Array("130","131","132","133");
var chinamo...
Tags:
2009年5月4日
在开发过程中使用了JS脚本.因对一些代码的使用频繁.对JS进行了一些扩展.
模拟类似与.Net中的一些功能.为以后的操作带来简便性.
1.String.startwith功能
[CODE_LITE]
String.prototype.startwith = function(element) {
var l = element.length;
if (this.length > 0) {
if (l > 0) {
if (...
Tags:
2009年4月19日
In response to many of the articles here, I receive feedback asking how to achieve the same results without using ASP.NET AJAX. As much as I’m a fan of ASP.NET AJAX, I must agree that its JavaScript payload can certainly be a drawback in some situati...
2009年2月21日
If you have worked with Visual Studio 2008 and tried creating Mobile Web Applications, you would have figured out that the "Mobile Web Form" template is missing. In the past, in Visual Studio .NET 2003 you had Mobile Web Forms that allow you to...
2008年10月15日
今天打算写一个Blog 建立数据库处理时发现了如下的提示:"SqlConnection”在命名空间“System.Data.SqlClient”中不明确"感觉很奇怪,查找了可能重名的空间或类.都无所获.然后进入Google搜索,得到的结果要不就是没有对System.Data.SqlClient的引用.要不就是说出现定义空间类重名了.经过仔细分析发现是 VS2008在新建Class项目时,自动引用了System.Data.DataSetExtensions该类包含了对System.Data.Sql...
Tags:
2008年6月3日
可以完全匹配邮件格式的正规表达式.支持用,;等隔开的邮件列表.
表达式如下:
(\"((\S)(?<!\"){1})+\")(\s){0,10}\<\w*\@(\w+([-.]\w+)*\.){1,}\w*\>|(\w*\@(\w+([-.]\w+)*\.){1,}\w*)
如邮件:"NASLOGWNDSYS@maersk-logistics.co" <NASLOGWNDSYS@maersk-logistics.com>, DG...
2007年9月28日
1.edit pptpd configuration file.
on the default pptpd.conf we can see detail expain
this set,we only need to ensure something following.
a).Path to the pptpd program,Default '/usr/sbin/pppd'
ppp /usr/sbin/pppd
b).Set localip and remoteip
...
2007年9月14日
Install VPN Server On debian Using PPTP
1.installing mppe support in kernel
Most people want their tunnels encrypted.check the version of your kernel,If it is below 2.6.15-rcl then you do not have MPPE support,To check further,test like this:...
Tags: