??xml version="1.0" encoding="utf-8" standalone="yes"?>美腿丝袜亚洲一区,亚洲一区二区视频在线观看,国产成人一区三区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 发表评论
]]>
三天的页面开?/title><link>http://www.aygfsteel.com/wangshibo91/archive/2011/11/24/364728.html</link><dc:creator>doctor</dc:creator><author>doctor</author><pubDate>Thu, 24 Nov 2011 06:55:00 GMT</pubDate><guid>http://www.aygfsteel.com/wangshibo91/archive/2011/11/24/364728.html</guid><wfw:comment>http://www.aygfsteel.com/wangshibo91/comments/364728.html</wfw:comment><comments>http://www.aygfsteel.com/wangshibo91/archive/2011/11/24/364728.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/wangshibo91/comments/commentRss/364728.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/wangshibo91/services/trackbacks/364728.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 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)); </script>     上周五开始一开发工作,树形的数据l构攑ֈ关系型数据库Qƈ提供面q行数据的维护,遇到的问题:1、需求不清晰Q?、表l构不清晎ͼ3Q前端开发技术非怸熟悉Q?br />    l果是开发缓慢,pȝ交互效果差,做出来的面自己都不满意Q开发慢D上线压力大,心里压力也大Q很严重的加班。。。。。。?br />    ȝ下用到的面技术:1、CSS+DIV样式定义的两U写法(.divforcheck{ width:500px; height:300px; background-color:#f00; color:#fff; }<br />                                                                                <div  style="border: 1px dotted black;background-color:#FFFFFF;width:500px ">Q?br />                                   2、JSQ动态的d面元素var tab =document.getElementById("guanlian");<br />                                                                             var newRow = tab.insertRow(0);//d了一?br />                                                                             var newTd1        = newRow.insertCell(0);<br />                                                                              var newTdName     = newRow.insertCell(1);   Q?br />                                              判断为空function isEmpty(s) { return ((s == undefined || s == null || s == "") ? true : false); }<br />                                              弹出选择框:if(confirm("您修改了兌词,L定在提交前进行了验证")){<br />                                                                                 document.form1.event_submit_do_add.value="submit";<br />                                                                                  document.form1.submit();}<br />                                              Ajax交互Q? <div style="border-bottom: #cccccc 1px solid; border-left: #cccccc 1px solid; padding-bottom: 4px; background-color: #eeeeee; padding-left: 4px; width: 75.87%; padding-right: 5px; height: 277px; font-size: 13px; word-break: break-all; border-top: #cccccc 1px solid; border-right: #cccccc 1px solid; padding-top: 4px"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><img style="display: none" id="Codehighlighter1_14_429_Closed_Image" onclick="this.style.display='none'; Codehighlighter1_14_429_Closed_Text.style.display='none'; Codehighlighter1_14_429_Open_Image.style.display='inline'; Codehighlighter1_14_429_Open_Text.style.display='inline';" align="top" src="http://www.aygfsteel.com/Images/OutliningIndicators/ContractedBlock.gif"><span style="color: #0000ff">var</span><span style="color: #000000"> callback </span><span style="color: #000000">=</span><span style="border-bottom: #808080 1px solid; border-left: #808080 1px solid; background-color: #ffffff; display: none; border-top: #808080 1px solid; border-right: #808080 1px solid" id="Codehighlighter1_14_429_Closed_Text"><img src="http://www.aygfsteel.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_14_429_Open_Text"><span style="color: #000000">{<img id="Codehighlighter1_14_429_Open_Image" onclick="this.style.display='none'; Codehighlighter1_14_429_Open_Text.style.display='none'; Codehighlighter1_14_429_Closed_Image.style.display='inline'; Codehighlighter1_14_429_Closed_Text.style.display='inline';" align="top" src="http://www.aygfsteel.com/Images/OutliningIndicators/ExpandedBlockStart.gif"><br /><img id="Codehighlighter1_41_309_Open_Image" onclick="this.style.display='none'; Codehighlighter1_41_309_Open_Text.style.display='none'; Codehighlighter1_41_309_Closed_Image.style.display='inline'; Codehighlighter1_41_309_Closed_Text.style.display='inline';" align="top" src="http://www.aygfsteel.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif"><img style="display: none" id="Codehighlighter1_41_309_Closed_Image" onclick="this.style.display='none'; Codehighlighter1_41_309_Closed_Text.style.display='none'; Codehighlighter1_41_309_Open_Image.style.display='inline'; Codehighlighter1_41_309_Open_Text.style.display='inline';" align="top" src="http://www.aygfsteel.com/Images/OutliningIndicators/ContractedSubBlock.gif">                    success:</span><span style="color: #0000ff">function</span><span style="color: #000000">(o) </span><span style="border-bottom: #808080 1px solid; border-left: #808080 1px solid; background-color: #ffffff; display: none; border-top: #808080 1px solid; border-right: #808080 1px solid" id="Codehighlighter1_41_309_Closed_Text"><img src="http://www.aygfsteel.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_41_309_Open_Text"><span style="color: #000000">{<br /><img align="top" src="http://www.aygfsteel.com/Images/OutliningIndicators/InBlock.gif" alt="" />                        </span><span style="color: #0000ff">var</span><span style="color: #000000"> result </span><span style="color: #000000">=</span><span style="color: #000000"> o.responseText;<br /><img align="top" src="http://www.aygfsteel.com/Images/OutliningIndicators/InBlock.gif" alt="" />                        document.getElementById('chk_thesaurus').style.display</span><span style="color: #000000">=</span><span style="color: #000000">""</span><span style="color: #000000">;<br /><img align="top" src="http://www.aygfsteel.com/Images/OutliningIndicators/InBlock.gif" alt="" />                        document.getElementById('chk_thesaurus').innerHTML</span><span style="color: #000000">=</span><span style="color: #000000">result;<br /><img align="top" src="http://www.aygfsteel.com/Images/OutliningIndicators/InBlock.gif" alt="" />                        document.getElementById('chk_thesaurus').display </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #000000">"</span><span style="color: #000000">block</span><span style="color: #000000">"</span><span style="color: #000000">;<br /><img align="top" src="http://www.aygfsteel.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif" alt="" />                    }</span></span><span style="color: #000000">,<br /><img id="Codehighlighter1_353_423_Open_Image" onclick="this.style.display='none'; Codehighlighter1_353_423_Open_Text.style.display='none'; Codehighlighter1_353_423_Closed_Image.style.display='inline'; Codehighlighter1_353_423_Closed_Text.style.display='inline';" align="top" src="http://www.aygfsteel.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif"><img style="display: none" id="Codehighlighter1_353_423_Closed_Image" onclick="this.style.display='none'; Codehighlighter1_353_423_Closed_Text.style.display='none'; Codehighlighter1_353_423_Open_Image.style.display='inline'; Codehighlighter1_353_423_Open_Text.style.display='inline';" align="top" src="http://www.aygfsteel.com/Images/OutliningIndicators/ContractedSubBlock.gif">                    failure: </span><span style="color: #0000ff">function</span><span style="color: #000000">(o) </span><span style="border-bottom: #808080 1px solid; border-left: #808080 1px solid; background-color: #ffffff; display: none; border-top: #808080 1px solid; border-right: #808080 1px solid" id="Codehighlighter1_353_423_Closed_Text"><img src="http://www.aygfsteel.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_353_423_Open_Text"><span style="color: #000000">{<br /><img align="top" src="http://www.aygfsteel.com/Images/OutliningIndicators/InBlock.gif" alt="" />                        alert(</span><span style="color: #000000">"</span><span style="color: #000000">验证hQ链接服务器p|!</span><span style="color: #000000">"</span><span style="color: #000000">);<br /><img align="top" src="http://www.aygfsteel.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif" alt="" />                    }</span></span><span style="color: #000000"><br /><img align="top" src="http://www.aygfsteel.com/Images/OutliningIndicators/ExpandedBlockEnd.gif" alt="" />                }</span></span><span style="color: #000000"><br /><img align="top" src="http://www.aygfsteel.com/Images/OutliningIndicators/None.gif" alt="" />                ;<br /><img align="top" src="http://www.aygfsteel.com/Images/OutliningIndicators/None.gif" alt="" />                </span><span style="color: #0000ff">var</span><span style="color: #000000"> sUrl </span><span style="color: #000000">=</span><span style="color: #000000"> 'ajax</span><span style="color: #000000">/</span><span style="color: #000000">checkThesaurus.htm</span><span style="color: #000000">?</span><span style="color: #000000">relName</span><span style="color: #000000">=</span><span style="color: #000000">'</span><span style="color: #000000">+</span><span style="color: #000000">encodeURIComponent(encodeURIComponent(title));<br /><img align="top" src="http://www.aygfsteel.com/Images/OutliningIndicators/None.gif" alt="" />                YAHOO.util.Connect.asyncRequest('GET',sUrl,callback);</span></div><br />                                                    服务器段java代码两种写法Q?、在反馈ajaxh的页面中填写W合HTML标准的反馈InnerHTML<br />                                                                                         2、通过         <br />rundata.getResponse().getWriter().print("var ajaxRequestData_bizType = "+JSONObject.fromObject(tree).toString()); <p> context.put("result", net.sf.json.JSONArray.fromObject(tree).toString());Q打成JSONԌ<br /></p><br />                          3、表单提交处理(JS提交表单Qdocument.form1.event_submit_do_add_treeWordProperty.value="submit";<br />                                                                       document.form1.submit();    <br />java代码的Exception控制、异常处?nbsp;            <br />    <img src ="http://www.aygfsteel.com/wangshibo91/aggbug/364728.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-24 14:55 <a href="http://www.aygfsteel.com/wangshibo91/archive/2011/11/24/364728.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>循环嵌套验证http://www.aygfsteel.com/wangshibo91/archive/2011/11/10/363385.htmldoctordoctorThu, 10 Nov 2011 02:31:00 GMThttp://www.aygfsteel.com/wangshibo91/archive/2011/11/10/363385.htmlhttp://www.aygfsteel.com/wangshibo91/comments/363385.htmlhttp://www.aygfsteel.com/wangshibo91/archive/2011/11/10/363385.html#Feedback0http://www.aygfsteel.com/wangshibo91/comments/commentRss/363385.htmlhttp://www.aygfsteel.com/wangshibo91/services/trackbacks/363385.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));     之前正则一直不支持嵌套循环的验证即cM于html的格式较验,昨天晚上无聊p虑了一下这个的可实现方式:通过l护特征“W号”队列来实?br />    如在有特定格式的文g?标签成对出现的情况下)序d待验证标{放入队列中Q较验对应的下一个输入如果ؓ与该标签对应的标{N么将该标{从队列中弹出,如果不对应则下一个标{也攑օ队列中,q行下一ơ的验证直到该文件结束时如果队列恰好为空那么证明文g较验通过

doctor 2011-11-10 10: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#Feedback5http://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 发表评论
]]>
2011/10/30 四个月实习后?/title><link>http://www.aygfsteel.com/wangshibo91/archive/2011/10/30/362327.html</link><dc:creator>doctor</dc:creator><author>doctor</author><pubDate>Sun, 30 Oct 2011 12:27:00 GMT</pubDate><guid>http://www.aygfsteel.com/wangshibo91/archive/2011/10/30/362327.html</guid><wfw:comment>http://www.aygfsteel.com/wangshibo91/comments/362327.html</wfw:comment><comments>http://www.aygfsteel.com/wangshibo91/archive/2011/10/30/362327.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/wangshibo91/comments/commentRss/362327.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/wangshibo91/services/trackbacks/362327.html</trackback:ping><description><![CDATA[<p>   转眼间离开学校四个月,同时也是在淘宝实习四个月Q昨天做pȝ不小心把整个盘格式化故在此留念<br />   初来淘宝比较新鲜但是没有太大的陌生感Q熟悉常用的开发技术,然后开始做一些小日常Q其实在一个公叔R面开发语a、开发技术这些都是比较基的东西,换言之能来到淘宝q不是因为我比其他被{选掉的优U只是q气好一些吧<br />   每一个公叔R会有自己的一套开发规则,有一些成文或者不成文的流E,淘宝的流E应该算是比较全面的吧,开发、测试、预发、测试、上U;程发v、{交、状态{变、结束流E可以算的上是有据可循;<br />   技术上面的话:语言不是问题Q性能不是问题Q前提是有够的旉和清晰的需求,虽然现在来说也许自己在技术上q是个菜鸟吧Q但是面对Q何开发Q务都有信心可以完成,要说技术的提高的话应该主要q是有了具体应用之后加深了一些理解吧Q但是作Z个非底层的开发h员很难感觉到自己技术的明显提升Q这是一个悲剧)Q都是借助语言本n的特性来完成开发需?br />   前期是做web的开发需求,最q则是在做报表开发(在hadoop搭徏的云梯上通过q行hivesql脚步来完成简单的报表分析工作Q?说它单是因ؓ通过sql无法完成复杂的模型,只能做简单的l计工作Q不q通过hivesql做报表开发速度真的很快Q基本上两天三天一个报表就ok了,<br />   也做了有三四个月了,感觉比较有收L是pȝ程上面的东西,之前我们开发系l,只要pȝ开始之后就CMQ我们没有跟t,q是不太满现实世界中的程的概늚Q如果说我们要优化什么步骤,我们无法从数据上得到直接的支持,q是很低效的优化方式Q我们的期望pȝ是可持箋改进和优化的Q那么在设计的时候就需要多一点考虑Q系l流E的完整性)---q部分描q的不好Q忘记的话就回想一下报表开发的初衷?br />  从十一回来之后状态就不好Q我不喜Ƣؓ什么争执,更不喜欢自己都不会主动选择的hQ没有h能够在时间的逝中永远保持不变Q或许是他篏了,或许是他变了Q或怼出现更好的选择Q希望大家在该出手的时候就出手Q在该做什么的q纪做什么,现在?0岁,是学习、积累的q程Q然而我累了Q所以大安好自Z?br />  Z做一下后面两个月的规划吧Q预计上元旦职<br />  11月:完成日常开发Q务,熟悉搜烦引擎Q原理和常见开源搜索引擎的搭徏调优Q整理出U实文档Q?br /> <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>   12月:深入了解数据挖掘技术,l合前面报表开发流E整理出一份数据挖掘中模型创徏、数据流转、数据加工、及产出的自q理解感悟<br />l束语:珍惜现在<br />  另外留下教训------------------重要的文档笔记呢一定要记录到网l或者是云服务上Q在本机上保存都极不安全</p><img src ="http://www.aygfsteel.com/wangshibo91/aggbug/362327.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-10-30 20:27 <a href="http://www.aygfsteel.com/wangshibo91/archive/2011/10/30/362327.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>06/17ȝhttp://www.aygfsteel.com/wangshibo91/archive/2011/06/17/352543.htmldoctordoctorFri, 17 Jun 2011 13:26:00 GMThttp://www.aygfsteel.com/wangshibo91/archive/2011/06/17/352543.htmlhttp://www.aygfsteel.com/wangshibo91/comments/352543.htmlhttp://www.aygfsteel.com/wangshibo91/archive/2011/06/17/352543.html#Feedback0http://www.aygfsteel.com/wangshibo91/comments/commentRss/352543.htmlhttp://www.aygfsteel.com/wangshibo91/services/trackbacks/352543.htmla、数据库
    1、数据库的远E连?--SQL2005旉要手动打开q程q接
    2、数据库角色---创徏完数据库角色之后需要改变角色的权限之后才能正常登陆
    3、C#q接数据库字W串写法----localhostQ数据库实例名)q有Ip
    4、复习了一些SQL语句
b、vs2005 怎么可以有这么多bug...命名I间在修改之后不会自动在E序中更斎ͼ需要先从项目中排除然后再引入再生成Q、打开目时有时可能需要{?br />c、C#发射机制和工厂方?..转那么多圈真费劲---调试的时候各U困?br />

--------------其中最讨厌的就是命名空间了...你永q不知道什么时候命名空间会出错

不过今天也看了一些Webx的资料还好有些收P当然q有一本UML的书c也q好?...
蛮篏  蛮充?br />

doctor 2011-06-17 21:26 发表评论
]]>
写一个自制的p学习软ghttp://www.aygfsteel.com/wangshibo91/archive/2011/06/09/351990.htmldoctordoctorThu, 09 Jun 2011 07:50:00 GMThttp://www.aygfsteel.com/wangshibo91/archive/2011/06/09/351990.htmlhttp://www.aygfsteel.com/wangshibo91/comments/351990.htmlhttp://www.aygfsteel.com/wangshibo91/archive/2011/06/09/351990.html#Feedback0http://www.aygfsteel.com/wangshibo91/comments/commentRss/351990.htmlhttp://www.aygfsteel.com/wangshibo91/services/trackbacks/351990.html一下是转ؓp应用而设计:
    复制一英语文章到该网站的文本框中Q通过让该pȝ通过比对单词字典计算文章的生词量Q做出统计信息进而判断该文章是否合适阅读,当然在最初字典是I的q时可以扚wd一些常用的单词也可以手动添加,是一个不太大的工程Q最?000-5000单词Q,当比对结束之后会对单词通过不同的颜色显C出来,l色表示字典中存在的单词卌识的单词Q而红色表CZ认识的单词;单击某一单词可以d或者维护该单词的信?br />    基本上一个自制英语虚席词典就OK?br />    下面列出技术难点:1、高效的字典匚w
                             2、怎么h捉鼠标移动到某一单词的事Ӟ在做l计的时候将所有的单词打断为label---不太成熟的思想Q?br />                             3、多用户时数据怎么样存储(单用h可以是只有一个字典,但是多用h怎么设计Q?br />
    

doctor 2011-06-09 15:50 发表评论
]]>
վ֩ģ壺 ¦| ƽ| | | ͬ| ٰ| ʲ| IJ| | | | | | ˫| ֦| | | ڻ| | ɽ| ¡| ˮ| | | | ͺ| ݳ| ̨| ͨ| | | ɽ| | ƽ| ɽ| ϵ| | | | | Т|