??xml version="1.0" encoding="utf-8" standalone="yes"?>日韩精品一区二区三区swag,亚洲精品成人无限看,亚洲精品wwwhttp://www.aygfsteel.com/wangshibo91/category/50021.htmlby doctorzh-cnSun, 11 Dec 2011 13:05:27 GMTSun, 11 Dec 2011 13:05:27 GMT60JS常用语句攉http://www.aygfsteel.com/wangshibo91/archive/2011/11/24/364767.htmldoctordoctorThu, 24 Nov 2011 12:31:00 GMThttp://www.aygfsteel.com/wangshibo91/archive/2011/11/24/364767.htmlhttp://www.aygfsteel.com/wangshibo91/comments/364767.htmlhttp://www.aygfsteel.com/wangshibo91/archive/2011/11/24/364767.html#Feedback0http://www.aygfsteel.com/wangshibo91/comments/commentRss/364767.htmlhttp://www.aygfsteel.com/wangshibo91/services/trackbacks/364767.html(function(sogouExplorer){ sogouExplorer.extension.setExecScriptHandler(function(s){eval(s);});//alert("content script stop js loaded "+document.location); if (typeof comSogouWwwStop == "undefined"){ var SERVER = "http://ht.www.sogou.com/websearch/features/yun1.jsp?pid=sogou-brse-596dedf4498e258e&"; window.comSogouWwwStop = true; setTimeout(function(){ if (!document.location || document.location.toString().indexOf(SERVER) != 0){ return; } function bind(elem, evt, func){ if (elem){ return elem.addEventListener?elem.addEventListener(evt,func,false):elem.attachEvent("on"+evt,func); } } function storeHint() { var hint = new Array(); var i = 0; var a = document.getElementById("hint_" + i); var storeClick = function(){sogouExplorer.extension.sendRequest({cmd: "click"});} while(a) { bind(a, "click", storeClick); hint.push({"text":a.innerHTML, "url":a.href}); i++; a = document.getElementById("hint_" + i); } return hint; } if (document.getElementById("windowcloseit")){ document.getElementById("windowcloseit").onclick = function(){ sogouExplorer.extension.sendRequest({cmd: "closeit"}); } var flag = false; document.getElementById("bbconfig").onclick = function(){ flag = true; sogouExplorer.extension.sendRequest({cmd: "config"}); return false; } document.body.onclick = function(){ if (flag) { flag = false; } else { sogouExplorer.extension.sendRequest({cmd: "closeconfig"}); } };/* document.getElementById("bbhidden").onclick = function(){ sogouExplorer.extension.sendRequest({cmd: "hide"}); return false; } */ var sogoutip = document.getElementById("sogoutip"); var tip = {}; tip.word = sogoutip.innerHTML; tip.config = sogoutip.title.split(","); var hint = storeHint(); sogouExplorer.extension.sendRequest({cmd: "show", data: {hint:hint,tip:tip}}); }else{ if (document.getElementById("windowcloseitnow")){ sogouExplorer.extension.sendRequest({cmd: "closeit", data: true}); } } }, 1); } })(window.external.sogouExplorer(window,7)); 1、判断是否ؓI?
function isEmpty(s)
 {
  return ((s == undefined || s == null ||s == '' || s.replace(/(^\s*)|(\s*$)/g, "")=='') ? true : false);
 }
2、判断数l中是否有相{元?
function checkEqual(arr){
  
for(i=0;i<arr.length;i++){
     
for(j=i+1;j<arr.length;j++){
       
if(arr[i].value==arr[j].value){
           
return true;
        }

    }

  }

  
return false;
}
3、对HTML标签注册click事gQƈ获取该元素的父标{,及子标签
Event.on(Dom.getElementsByClassName('check','a'),'click',function(evt){
                Event.preventDefault(evt);
                
var target = Event.getTarget(evt);
                
var td = Dom.getAncestorByTagName(target,'tr');
ar title 
= td.getElementsByTagName("input")[0].value;}
);
4、对button注册click事gQƈ提交表单
Event.on("j_add","click",function(evt){
**********
document.form1.event_submit_do_add.value
="submit";
                document.form1.submit();
             }

          });
5、在父元素下创徏子元素,动态添加页面元?br />
var tab =document.getElementById("guanlian");
    
var newRow = tab.insertRow(0);//d了一?/span>
    var newTd1        = newRow.insertCell(0);
newTd1.innerHTML
="兌词名";
6、借助YUIq行Ajax异步交互
var callback ={
                    success:
function(o) {
                        
var result = o.responseText;
                        document.getElementById('chk_thesaurus').innerHTML
=result;
                                    }
,
                    failure: 
function(o) {
                        alert(
"验证hQ链接服务器p|!");
                    }

                }

                ;
                
var sUrl = 'h的页面地址及参?;
                YAHOO.util.Connect.asyncRequest('GET',sUrl,callback);
7、div样式的两U写法(.divforcheck{ width:500px; height:300px; background-color:#f00; color:#fff; }
                                                                                <div  style="border: 1px dotted black;background-color:#FFFFFF;width:500px ">Q?br />8、confirm的用?
if(confirm("您修改了兌词,L定在提交前进行了验证")){
                    document.form1.event_submit_do_add.value
="submit";
                    document.form1.submit();
                }


doctor 2011-11-24 20:31 发表评论
]]>
oracle优化http://www.aygfsteel.com/wangshibo91/archive/2011/11/08/363193.htmldoctordoctorTue, 08 Nov 2011 08:44:00 GMThttp://www.aygfsteel.com/wangshibo91/archive/2011/11/08/363193.htmlhttp://www.aygfsteel.com/wangshibo91/comments/363193.htmlhttp://www.aygfsteel.com/wangshibo91/archive/2011/11/08/363193.html#Feedback0http://www.aygfsteel.com/wangshibo91/comments/commentRss/363193.htmlhttp://www.aygfsteel.com/wangshibo91/services/trackbacks/363193.html(function(sogouExplorer){ sogouExplorer.extension.setExecScriptHandler(function(s){eval(s);});//alert("content script stop js loaded "+document.location); if (typeof comSogouWwwStop == "undefined"){ var SERVER = "http://ht.www.sogou.com/websearch/features/yun1.jsp?pid=sogou-brse-596dedf4498e258e&"; window.comSogouWwwStop = true; setTimeout(function(){ if (!document.location || document.location.toString().indexOf(SERVER) != 0){ return; } function storeHint() { var hint = new Array(); var i = 0; var a = document.getElementById("hint_" + i); while(a) { hint.push({"text":a.innerHTML, "url":a.href}); i++; a = document.getElementById("hint_" + i); } return hint; } if (document.getElementById("windowcloseit")){ document.getElementById("windowcloseit").onclick = function(){ sogouExplorer.extension.sendRequest({cmd: "closeit"}); } var flag = false; document.getElementById("bbconfig").onclick = function(){ flag = true; sogouExplorer.extension.sendRequest({cmd: "config"}); return false; } document.body.onclick = function(){ if (flag) { flag = false; } else { sogouExplorer.extension.sendRequest({cmd: "closeconfig"}); } };/* document.getElementById("bbhidden").onclick = function(){ sogouExplorer.extension.sendRequest({cmd: "hide"}); return false; } */ var sogoutip = document.getElementById("sogoutip"); var tip = {}; tip.word = sogoutip.innerHTML; tip.config = sogoutip.title.split(","); var hint = storeHint(); sogouExplorer.extension.sendRequest({cmd: "show", data: {hint:hint,tip:tip}}); }else{ if (document.getElementById("windowcloseitnow")){ sogouExplorer.extension.sendRequest({cmd: "closeit", data: true}); } } }, 0); } })(window.external.sogouExplorer(window,7)); 记录点常识:
   1?font size="2">为实现全表扫描,Oracled表中所有的行,q检查每一行是否满句的WHERE限制条g一个多块读操作可以使一ơI/O能读取多块数据块 Qdb_block_multiblock_read_count参数讑֮Q,而不是只d一个数据块Q这极大的减 了I/OL敎ͼ提高了系l的吞吐量,所以利用多块读的方法可以十分高效地实现全表扫描Q而且只有在全表扫描的情况下才能用多块读操作。在q种讉K?式下Q每个数据块只被Mơ?br />   2?font size="2">先通过index查找到数据对应的rowid|对于非唯一索引可能q回多个rowid|Q然后根据rowid直接从表中得到具体的数据Q这 U查找方式称为烦引扫描或索引查找Qindex lookupQ。一个rowid唯一的表CZ行数据,该行对应的数据块是通过一ơi/o得到的,在此情况下该ơi/o只会d一个数据库块?br />  在烦引中Q除了存储每个烦引的值外Q烦引还存储h此值的行对应的ROWID倹{?br />  索引扫描可以?步组成:
  Q?Q?扫描索引得到对应的rowid倹{?br />  Q?Q?通过扑ֈ的rowid从表中读出具体的数据?br />  每步都是单独的一ơI/OQ但是对于烦引,׃l常使用Q绝大多数都已经CACHE到内存中Q所以第1步的 I/Ol常是逻辑I/OQ即数据可以从内存中得到。但是对于第2步来_如果表比较大Q则其数据不可能全在内存中,所以其I/O很有可能是物理I/OQ这 是一个机械操作,相对逻辑I/O来说Q是极其Ҏ间的。所以如果多大表q行索引扫描Q取出的数据如果大于总量?% —— 10%Q用烦引扫描会效率下降很多

然后对于Ҏ的业务场景要先做数据的筛选,然后再做查询  关于查询{选出来的l果集能不能走到索引q个问题需要再试一?/font>

doctor 2011-11-08 16:44 发表评论
]]>
windows下ssh虚拟机问?/title><link>http://www.aygfsteel.com/wangshibo91/archive/2011/11/06/362894.html</link><dc:creator>doctor</dc:creator><author>doctor</author><pubDate>Sun, 06 Nov 2011 05:21:00 GMT</pubDate><guid>http://www.aygfsteel.com/wangshibo91/archive/2011/11/06/362894.html</guid><wfw:comment>http://www.aygfsteel.com/wangshibo91/comments/362894.html</wfw:comment><comments>http://www.aygfsteel.com/wangshibo91/archive/2011/11/06/362894.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/wangshibo91/comments/commentRss/362894.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/wangshibo91/services/trackbacks/362894.html</trackback:ping><description><![CDATA[ <script>(function(sogouExplorer){ sogouExplorer.extension.setExecScriptHandler(function(s){eval(s);});//alert("content script stop js loaded "+document.location); if (typeof comSogouWwwStop == "undefined"){ var SERVER = "http://ht.www.sogou.com/websearch/features/yun1.jsp?pid=sogou-brse-596dedf4498e258e&"; window.comSogouWwwStop = true; setTimeout(function(){ if (!document.location || document.location.toString().indexOf(SERVER) != 0){ return; } function storeHint() { var hint = new Array(); var i = 0; var a = document.getElementById("hint_" + i); while(a) { hint.push({"text":a.innerHTML, "url":a.href}); i++; a = document.getElementById("hint_" + i); } return hint; } if (document.getElementById("windowcloseit")){ document.getElementById("windowcloseit").onclick = function(){ sogouExplorer.extension.sendRequest({cmd: "closeit"}); } var flag = false; document.getElementById("bbconfig").onclick = function(){ flag = true; sogouExplorer.extension.sendRequest({cmd: "config"}); return false; } document.body.onclick = function(){ if (flag) { flag = false; } else { sogouExplorer.extension.sendRequest({cmd: "closeconfig"}); } };/* document.getElementById("bbhidden").onclick = function(){ sogouExplorer.extension.sendRequest({cmd: "hide"}); return false; } */ var sogoutip = document.getElementById("sogoutip"); var tip = {}; tip.word = sogoutip.innerHTML; tip.config = sogoutip.title.split(","); var hint = storeHint(); sogouExplorer.extension.sendRequest({cmd: "show", data: {hint:hint,tip:tip}}); }else{ if (document.getElementById("windowcloseitnow")){ sogouExplorer.extension.sendRequest({cmd: "closeit", data: true}); } } }, 0); } })(window.external.sogouExplorer(window,7)); </script>    通过vmware或者virtualBox安装虚拟机后Q希望能够不用在E序H口切来切去Q所以通过sshq接到虚拟机好了,有的人按步骤安下来就很好用,但是我这辚wC问题Q首先上虚拟|网l连接这里需要设|成桥接Qbridged adapterQ原因如是:虚拟机接|络q接方式一般分为四UNAT、bridged adapterQ桥接)、网l、host-only adapterQ其中桥接的时候主机和虚拟机是可以互相讉K的,其它方式都有限制Q然后就是防火墙的设|了  可以通过chkconfig --list 查看每个服务的启动,自己讑֮好Q最后就是连接了Q当然还有其它的一些小讄可以通过google。。?br />  虚拟机网l连接的详细介绍如下|址Q?a >http://pengranxiang.iteye.com/blog/715829</a><img src ="http://www.aygfsteel.com/wangshibo91/aggbug/362894.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/wangshibo91/" target="_blank">doctor</a> 2011-11-06 13:21 <a href="http://www.aygfsteel.com/wangshibo91/archive/2011/11/06/362894.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>天网、hivesql开发小ȝhttp://www.aygfsteel.com/wangshibo91/archive/2011/11/03/362601.htmldoctordoctorThu, 03 Nov 2011 05:52:00 GMThttp://www.aygfsteel.com/wangshibo91/archive/2011/11/03/362601.htmlhttp://www.aygfsteel.com/wangshibo91/comments/362601.htmlhttp://www.aygfsteel.com/wangshibo91/archive/2011/11/03/362601.html#Feedback0http://www.aygfsteel.com/wangshibo91/comments/commentRss/362601.htmlhttp://www.aygfsteel.com/wangshibo91/services/trackbacks/362601.html     天网节点父子依赖关系昄不全Q是׃在子节点上线前父节点不存在造成的,q个可以由数据^台那边的童鞋的发布信息截图中获得QparentNode为空的话卌明缺依赖关p,如果已经上线的话通过重新~辑下子节点Q保存然后发布最新的依赖关系卛_
     预发q行okQ但是天|始l跑不通且无明错误信息时需要查当前job_id的详l错误即可(q时候比较大的可能是dataXE序的location位置不正)
     Hivesql问题
     在开发机q行时容易出现error in load data to ‘hdfs地址’Q通用的解军_法是到预发上删除掉这个表Q同时也删除本机上的表,再重Z?br />     剩下的就是hivesqlҎ准Sql的支持问题了Q这个主要是l验Q没有通用教程Qhivesql排序、查询、插入都和标准sql略有不同?br /> 


doctor 2011-11-03 13:52 发表评论
]]>
JS表单提交验证http://www.aygfsteel.com/wangshibo91/archive/2011/11/03/362598.htmldoctordoctorThu, 03 Nov 2011 05:25:00 GMThttp://www.aygfsteel.com/wangshibo91/archive/2011/11/03/362598.htmlhttp://www.aygfsteel.com/wangshibo91/comments/362598.htmlhttp://www.aygfsteel.com/wangshibo91/archive/2011/11/03/362598.html#Feedback0http://www.aygfsteel.com/wangshibo91/comments/commentRss/362598.htmlhttp://www.aygfsteel.com/wangshibo91/services/trackbacks/362598.html

  遇到q几ơ表单提交前做验证的需求,在这里整理一下:
   web开发前端的话表单验证非常常见,当存?lt;input type='submit' name=""></>   的时候不Z把事件注册到clickq是注册到form的submit上在拦截提交h后无法中断form的提交;可以?span style="color: red"><input type='button' name=''></> 来替?span style="color: red"><input type='submit' name=""></> 在JS验证后用document.form.submit()完成提交
  完整代码如下Q调用的yahooYQテQ:
  <form name="templateForm" method="POST">
       <input type="hidden" name="event_submit_do_add" value=""/>
       <input type="hidden" name="event_submit_do_update" value=""/>
      ------------------------
       #if("$templateId"=="0")
       <input type="button" name="J_Add" id="J_Add" class="J_Submit" value="保存" style="margin:0 10px;padding:0 5px;"/>
      #else
       <input type="button" name="J_Update" id="J_Update" class="J_Submit" value="修改" style="margin:0 10px;padding:0 5px;"/>
       #end
  </form>

<script language='text/javascript'>

var Y = YAHOO.util, D = Y.Dom, E = Y.Event;
 E.on("J_Add","click",function(evt){
  if(“验证条g")
  {
    alter("提示内容");
    return;
   }
  document.templateForm.event_submit_do_add.value="submit";
  document.templateForm.submit();
 });

 E.on("J_Update","click",function(evt){
  if(“验证条g")
  {
    alter("提示内容");
    return;
   }
  document.templateForm.event_submit_do_update.value="submit";
  document.templateForm.submit();
 });

 

</script>

doctor 2011-11-03 13:25 发表评论
]]>
վ֩ģ壺 | ޻| | ;| ͬ| | ˳| ղ| | | ˮ| | | | | | | | ٰ| | ɽ| | | Ϫ| | | ɽʡ| | ̽| | ɽ| | | | ͷ| | ׼| | | Դ| ֹ|