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年11月5日
Problem 1If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23.Find the sum of all the multiples of 3 or 5 below 1000.如果我们罗列10以下的能被3或5整除的自然数,我们可以得到3,5和9.他们的和为23.请计算出1000以下能被3和...
Tags:
2008年10月21日
从昨天到今天maersk的WND关于新系统的事情 访问公司.大致的介绍了下新HJ System的一些情况.从Introduction中可以看出有如下的几个特点.1.SO的唯一性.这个就要求business 做完善认真的工作.并且跟Client做详细的跟踪.2.Carton ID的Scan.这个是大的工作量.但是能满足一些Client的需求.容后的Client requirement有了更好的处理.3.Flow Control.正如低版本的操作.做的更加的完善与跟踪处理.4.Pre-ASN. 这个...
Tags:
2008年10月15日
今天打算写一个Blog 建立数据库处理时发现了如下的提示:"SqlConnection”在命名空间“System.Data.SqlClient”中不明确"感觉很奇怪,查找了可能重名的空间或类.都无所获.然后进入Google搜索,得到的结果要不就是没有对System.Data.SqlClient的引用.要不就是说出现定义空间类重名了.经过仔细分析发现是 VS2008在新建Class项目时,自动引用了System.Data.DataSetExtensions该类包含了对System.Data.Sql...
Tags:
2008年10月15日
想想还是有些不怎么舍得.有些工作的日记还是要记录的.还好域名当时就明智的保留了下来....
Tags: