<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
 <channel>
  <title>hellophper.COM</title>
  <link>http://hellophper.com</link>
  
  <pubDate>Sun, 04 May 2008 04:05:31 GMT</pubDate>
  <language>zh-CN</language>
  <image>
   <link>http://hellophper.com</link>
   <url>http://hellophper.com/images/logo.png</url>
   <title>hellophper.COM</title>
  </image><item>
   <title>jquery,js编辑器</title>
   <link>http://hellophper.com/htm/5/413.html</link>
	 
   <description>jquery编写，功能不强大，但基本够用
直接运行demo.htm可观看，php POST方式获取编辑器中的文本内容
php代码
echo $_POST[words]可查看
点击下载
演示就是留言的地方
如果有什么问题，可以联系我 ...</description>
   <pubDate>2010.07.26 06:07:24</pubDate>
   <guid>http://hellophper.com/htm/5/413.html</guid>
  </item><item>
   <title>oracle清空表sql语句</title>
   <link>http://hellophper.com/htm/5/411.html</link>
	 
   <description>oracle sql语句
  

Truncate Table [表名]
  

db2 sql语句
  

delete from Table [表名]
   ...</description>
   <pubDate>2010.07.27 20:07:41</pubDate>
   <guid>http://hellophper.com/htm/5/411.html</guid>
  </item><item>
   <title>oracle,db2表复制</title>
   <link>http://hellophper.com/htm/5/410.html</link>
	 
   <description>oracle语句
  

create table bin_test as select * from t_qx_jgxx
db2
create table bin_test like t_qx_jgxx ...</description>
   <pubDate>2010.07.20 23:07:59</pubDate>
   <guid>http://hellophper.com/htm/5/410.html</guid>
  </item><item>
   <title>db2导入excel数据</title>
   <link>http://hellophper.com/htm/5/409.html</link>
	 
   <description>sql语句
  

import   from   "c:\Booknow.csv"   OF   DEL   messages   "d:\msg.out"     INSERT   INTO   lw_bin
   ...</description>
   <pubDate>2010.07.21 00:07:04</pubDate>
   <guid>http://hellophper.com/htm/5/409.html</guid>
  </item><item>
   <title>db2创建表sql语句</title>
   <link>http://hellophper.com/htm/5/406.html</link>
	 
   <description>sql语句
DROP TABLE lw_bin;
create table lw_bin
(
  XH INTEGER not null generated by default as identity,
  GJ_DM CHAR(3) not null,
  GJ_MC VARCHAR(100) not null,
  GJ_JC VARCHAR(80) not null,
  XYBZ  CHAR(1) not null,
  primary key (XH)
);
 comment on table TMP_ZYGJ is '主要国家';
 comment on column TMP_ZYGJ.XH is '报表序号';
 comment on column TMP_ZYGJ.GJ_DM is '国家代码';
 comment on column TMP_ZYGJ.GJ_MC is '国家名称';
 comment on column TMP_ZYGJ.GJ_JC is '国家简称';
 comment on column TMP_ZYGJ.XYBZ is '选用标志';
 ...</description>
   <pubDate>2010.07.20 23:07:47</pubDate>
   <guid>http://hellophper.com/htm/5/406.html</guid>
  </item><item>
   <title>dwr异步问题 dwr循环出错 js冲突</title>
   <link>http://hellophper.com/htm/5/405.html</link>
	 
   <description>在js中使用for循环的时候使用dwr，经常在还没有获取数据的时候就已经执行dwr函数了，这个是因为dwr是异步执行，也就是说在还没有for循环的时候就已经把所有的dwr执行了，也就是说dwr取的数据是第一个for时的数据，解决问题的办法是加如下代码
  

DWREngine.setAsync(false);

   ...</description>
   <pubDate>2010.07.11 19:07:53</pubDate>
   <guid>http://hellophper.com/htm/5/405.html</guid>
  </item><item>
   <title>liunx(红旗)下搭建svn</title>
   <link>http://hellophper.com/htm/5/404.html</link>
	 
   <description>liunx(红旗)下搭建svn
1：先下载 
http://subversion.tigris.org/downloads/subversion-1.6.12.tar.gz 
http://subversion.tigris.org/downloads/subversion-deps-1.6.12.tar.gz 
2:解压
cd到下载的目录下
运行解压命令

tar xvzf subversion-1.6.12.tar.gz

tar xvzf subversion-deps-1.6.12.tar.gz


进入解压后的目录

cd subversion-1.6.12/


3：运行命令

./configure --prefix=/opt/svn --without-berkeley-db


svn1.4的版本需要在后面加上--with-zlib
注意：前面是2个-号

make clean//红旗linux下不要运行

make

make install



4：创建svn本版库

svnadmin create test


运行后可以看到多了一个test文件夹

5：修改svn配置文件
conf/svnserve.conf

password-db = passwd

authz-db = authz 

anon-access = none



conf/authz

[groups]

[/]

harry = rw 



conf/passwd

[users]

harry = harryssecret

启动svn

svnserve -d -r "usr/local/svn/test"


停止svn

killall svnserve


几个需要注意的：
1：如果输入用户名和密码后出现乱码
conf/authz中没有加
[/]
2：显示未授权打开根进行编辑操作
anon-access = read 改为 none
   ...</description>
   <pubDate>2010.06.25 01:06:09</pubDate>
   <guid>http://hellophper.com/htm/5/404.html</guid>
  </item><item>
   <title>freeast</title>
   <link>http://hellophper.com/htm/4/399.html</link>
	 
   <description>何必呢？我的pr和浏览又不高 ...</description>
   <pubDate>2010.06.04 01:06:11</pubDate>
   <guid>http://hellophper.com/htm/4/399.html</guid>
  </item><item>
   <title>oracle字符串转时间</title>
   <link>http://hellophper.com/htm/4/398.html</link>
	 
   <description>sql代码


to_date($time$,'yyyymmddhh24mi')
 ...</description>
   <pubDate>2010.05.31 23:05:30</pubDate>
   <guid>http://hellophper.com/htm/4/398.html</guid>
  </item><item>
   <title>html5 audio标签 php版</title>
   <link>http://hellophper.com/htm/4/397.html</link>
	 
   <description>JS代码

function music_box(){
          var url=new Array();
          var name=new Array();
          var num = 0;
          var _this = this;
          this.init = function(){
                  jQuery(quot;#musicquot;).fadeIn(quot;slowquot;);
                  if(name.length == 0){

                       jQuery(quot;#filequot;).find(quot;dlquot;).each(function(){
                                    url.push(jQuery(this).html());
                             });
                      jQuery(quot;#filequot;).find(quot;ddquot;).each(function(){
                                    name.push(jQuery(this).html());
                             });
                             this.createMusicBox();
              }
              else{
              
                     jQuery(quot;#musiclistquot;).fadeIn(quot;slowquot;);
                     jQuery(quot;#musicboxquot;).fadeIn(quot;slowquot;);
                     document.getElementById(quot;music_audioquot;).play();
              }
       }
       
       this.createMusicBox = function(){
              
              jQuery(quot;#musiclistquot;).html(quot;quot;);
              jQuery(quot;#musicboxquot;).html(quot;quot;);
              if(name.length != 0){
                                   var html=quot;lt;ulgt;quot;;
                                   for(var i=0;i lt; name.length;i++){
                                          
                                          if(i==num)
                                                 html += quot;lt;li class='chose_music'gt;lt;a href='#' class='choose' onclick='music.choose(quot;+ i +quot;)'gt;quot; + name[i] + quot;lt;img src='quot;+ website + quot;/images/os/del.gif' onclick='music.del(quot;+ i +quot;)' href='#' class='music_del'gt;lt;/ligt;quot;;
                                          else
                                                 html += quot;lt;ligt;lt;a href='#' class='choose' onclick='music.choose(quot;+ i +quot;)'gt;quot; + name[i] + quot;lt;/agt;lt;img src='quot;+ website + quot;/images/os/del.gif' onclick='music.del(quot;+ i +quot;)' href='#' class='music_del'gt;lt;/ligt;quot;;
                                   }
                            }
              var music_box = quot;lt;audio autoplay='true' id='music_audio' controls='true' onended='music.next()'gt;lt;source src=quot;+url[num]+quot;/gt;您的浏览器不支持html5lt;/audiogt;quot;;
              jQuery(quot;#musiclistquot;).html(html);
              jQuery(quot;#musicboxquot;).html(music_box);
       }
       
       this.choose = function(i){
              num = i;
              this.createMusicBox();
       }
       
       this.next = function(){
              num++;
              if(num gt; name.length-1){
                     num = 0;
              }
              
              this.createMusicBox();
       }
       
       this.close = function(post){
              jQuery(quot;#musiclistquot;).fadeOut(quot;slowquot;);
              jQuery(quot;#musicboxquot;).fadeOut(quot;slowquot;);
              jQuery(quot;#musicquot;).fadeOut(quot;slowquot;);
              if(post != 'hide'){
                     document.getElementById(quot;music_audioquot;).pause();
                     
              }
       }
       
       this.chooseOne = function(music_name,music_url){
              url.push(music_url);
              name.push(music_name);
              this.createMusicBox();
       }
       
       this.hideMusicList = function(){
              jQuery(quot;#musiclistquot;).toggle(quot;slowquot;);
       }
       
       this.del = function(i){
              document.getElementById(quot;music_audioquot;).pause();
              name.splice(i,1);
              url.splice(i,1);
              this.createMusicBox();
              
       }
       this.clear = function(){
              document.getElementById(quot;music_audioquot;).pause();
              name = [];
              url = [];
              this.createMusicBox();
       }
  }

HTML代码

lt;div id=quot;musicquot;gt;
                            lt;img onclick='music.close()' style=quot;float:right;cursor:pointer;quot; src=quot;lt;? echo $website ?gt;/images/os/del.gifquot;/gt;
                            lt;div id=quot;musicboxquot;gt;
                            lt;/divgt;
                            lt;div id=quot;musicbuttonquot;gt;
                                   lt;button onclick='music.next()'gt;Nextlt;/buttongt;
                                   lt;button onclick='music.hideMusicList()'gt;Listlt;/buttongt;
                                   lt;button onclick=quot;music.close('hide')quot;gt;Hidelt;/buttongt;
                                   lt;button onclick=quot;music.clear()quot;gt;Clearlt;/buttongt;
                            lt;/divgt;
                            lt;div class=quot;clearquot;gt;lt;/divgt;
                            lt;div id=quot;musiclistquot;gt;
                            lt;/divgt;
                     lt;/divgt;
                     
                     lt;div id=quot;dropboxquot;gt;lt;/divgt;
 ...</description>
   <pubDate>2010.05.27 08:05:35</pubDate>
   <guid>http://hellophper.com/htm/4/397.html</guid>
  </item><item>
   <title>html5鼠标拖动上传 php版</title>
   <link>http://hellophper.com/htm/4/396.html</link>
	 
   <description>JS代码

              /************** html5上传初始化 ************************/
               var dropbox = document.getElementById(quot;dropboxquot;);
               dropbox.addEventListener(quot;dragenterquot;, dragenter, false);
               dropbox.addEventListener(quot;dragoverquot;, dragover, false);
               dropbox.addEventListener(quot;dropquot;, drop, false);



/************** html5上传函数 ************************/
       function dragenter(e) {
           e.stopPropagation();
           e.preventDefault();
       }

       function dragover(e) {
           e.stopPropagation();
           e.preventDefault();
       }

       function drop(e) {
           e.stopPropagation();
           e.preventDefault();

           handleFiles(e.dataTransfer.files);
          return false;
       }
     /************** html5上传关键函数 ************************/   
  function handleFiles(files) {
               
       for(var i=0; i lt; files.length; i++) {
              
                     
                     this.xhr = new XMLHttpRequest();
                     this.xhr.upload.addEventListener(quot;progressquot;, function(e) {       
                            if (e.lengthComputable) {       
                                   var percentage = Math.round((e.loaded * 100) / e.total);   
                                    
                                   //变量：percentage为上传进度，由0-100;   
                                   //可以用来做进度条   
                     }       
                     }, false);     
                     
                     this.xhr.upload.addEventListener(quot;loadquot;, function(e){     
                            alert(quot;上传完成quot;); 
                            refresh_page();
                            //上传完成事件！   
                     }, false); 
                     
                     this.xhr.open(quot;POSTquot;, website+quot;/admin/os/upload_file_html5.php?name=quot;+files[i].name+quot;am id=quot;+jQuery.query.get('id'));               
                     this.xhr.overrideMimeType('text/plain; charset=utf-8');   
                     //this.xhr.setRequestHeader('Content-Type', 'multipart/form-data'); 
                     this.xhr.setRequestHeader('Content-Type','multipart/form-data; charset=utf-8'); 
                     this.xhr.send(files[i]); 
                     
                 
               }
               
           }

PHP代码

lt;?php
                     header(quot;Content-Type:text/html; charset=utf-8quot;); 
                     $file_content = file_get_contents('php://input'); // 读取收到的文件内容
                     
                     
                     
                     //保存进数据库
                     $auto_id = $mysql_link-gt;select(quot; SHOW TABLE STATUS WHERE Name = 'lw_os_menu' quot;);
                     $auto_id = $auto_id[0]-gt;Auto_increment;
                     //$mssage = upfile($_FILES['file_name'],quot;$webroot/admin/os/user/$_COOKIE[$cookie_user]/upload/quot;,$auto_id);
                     $file_name = $_GET[name];
                            //获取文件后缀，匹配相对应的图标
                     $type = explode(quot;.quot;,$file_name);
                     $type = $type[count($type)-1];
                     $type = strtolower($type);//大写转小写
                     //把音乐文件转换成wav格式
                     //if($type == 'mp3' || $type == 'wma'){
                     //       $type = 'wav';
              //       }
                     file_put_contents(quot;$webroot/admin/os/user/$_COOKIE[$cookie_user]/upload/quot;.$auto_id.quot;.quot;.$type,$file_content);
                     $image = typeChooseIco($type);//获取对应图片的ico       
                     $url = quot;admin/os/user/$_COOKIE[$cookie_user]/upload/$auto_id.quot;.$type;       
                            $mysql_link-gt;insert(quot;lw_os_menuquot;,array (quot;idquot;=gt;quot;NULLquot;,quot;parent_idquot;=gt;quot;$_GET[id]quot;,quot;namequot;=gt;quot;$file_namequot;,quot;urlquot;=gt;quot;$urlquot;,quot;levelquot;=gt;quot;quot;,quot;icoquot;=gt;quot;quot;,quot;imagequot;=gt;$image,quot;userquot;=gt;quot;$_COOKIE[$cookie_user]quot;,quot;sortquot;=gt;quot;filequot;));
                     
?gt;
 ...</description>
   <pubDate>2010.05.27 07:05:31</pubDate>
   <guid>http://hellophper.com/htm/4/396.html</guid>
  </item><item>
   <title>html5 audio标签演示视频</title>
   <link>http://hellophper.com/htm/4/395.html</link>
	 
   <description>建议下载观看点击下载
 
 
 
 
　 
 ...</description>
   <pubDate>2010.06.03 20:06:44</pubDate>
   <guid>http://hellophper.com/htm/4/395.html</guid>
  </item><item>
   <title>SyntaxHighlighter代码高亮演示</title>
   <link>http://hellophper.com/htm/4/394.html</link>
	 
   <description>先引入

	lt;script type=quot;text/javascriptquot; src=quot;lt;?php echo $website; ?gt;/scripts/shCore.jsquot;gt;lt;/scriptgt;
lt;script type=quot;text/javascriptquot; src=quot;lt;?php echo $website; ?gt;/scripts/shBrushJScript.jsquot;gt;lt;/scriptgt;
lt;script type=quot;text/javascriptquot; src=quot;lt;?php echo $website; ?gt;/scripts/shBrushJava.jsquot;gt;lt;/scriptgt;
lt;script type=quot;text/javascriptquot; src=quot;lt;?php echo $website; ?gt;/scripts/shBrushJScript.jsquot;gt;lt;/scriptgt;
lt;script type=quot;text/javascriptquot; src=quot;lt;?php echo $website; ?gt;/scripts/shBrushPhp.jsquot;gt;lt;/scriptgt;
lt;script type=quot;text/javascriptquot; src=quot;lt;?php echo $website; ?gt;/scripts/shBrushSql.jsquot;gt;lt;/scriptgt;
lt;script type=quot;text/javascriptquot; src=quot;lt;?php echo $website; ?gt;/scripts/shBrushXml.jsquot;gt;lt;/scriptgt;
lt;script type=quot;text/javascriptquot; src=quot;lt;?php echo $website; ?gt;/scripts/shBrushCss.jsquot;gt;lt;/scriptgt;
lt;script type=quot;text/javascriptquot;gt;
       SyntaxHighlighter.config.clipboardSwf = 'clipboard.swf';//不是所有的浏览器都有权利进行'复制'动作,所以借助flash实现兼容.
       SyntaxHighlighter.all();
lt;/scriptgt;

再按照这样的格式

lt;pre class=quot;brush: js;quot;gt;
/**
* SyntaxHighlighter Test
*/
function synTest() {
       console.log('good ^^');
}
lt;/pregt;

 ...</description>
   <pubDate>2010.05.27 02:05:22</pubDate>
   <guid>http://hellophper.com/htm/4/394.html</guid>
  </item><item>
   <title>WebSphere 部署java程序(war)  DB2数据库 教程</title>
   <link>http://hellophper.com/htm/4/393.html</link>
	 
   <description> 	1：安装好后，点击验证     2：成功后进入控制台     https://127.0.0.1:9043/ibm/console   3：资源-》JDBC-》JDBC提供的程序   选择作用域后新建              完成后保存   成功后点击修改，如图       4:环境-》WebSphere 变量，选择作用域后新建刚刚填写的变量 ${DB2UNIVERSAL_JDBC_DRIVER_PATH}   填写相对应的位置后保存修改   5：资源-》JDBC-》数据源                 完成后保存修改 6：点击进入刚刚创建的数据源 JAAS － J2C 认证数据      填写数据源用户名和密码，完成后保存修改   7：5：资源-》JDBC-》数据源 安全性设置，完成后保存修改   8：把jar包复制到/IBM/WebSphere/AppServer/lib目录下 db2jcc.jar;db2jcc_license_cu.jar;db2jcc_license_cisuz.jar 9： 测试连接      10：应用程序-》新建应用程序-》企业应用程序 选择war文件                   11:成功后保存修改 程序部署在 IBMWebSphereAppServerprofilesAppSrv01installedAppspengbinNode01Cellxmove4_war.earxmove4.war  修 改 IBMWebSphereAppServerprofilesAppSrv01installedAppspengbinNode01Cellxmove4_war.earxmove4.warWEB-INFclasses    12：应用程序-》应用程序类型-》企业级应用程序     13：打开浏览器测试   ...</description>
   <pubDate>2010.03.27 18:03:56</pubDate>
   <guid>http://hellophper.com/htm/4/393.html</guid>
  </item><item>
   <title>Subversion无法新建文件夹</title>
   <link>http://hellophper.com/htm/4/392.html</link>
	 
   <description>修改
打开/conf/目录
passwd的
harry = harryssecret
sally = sallyssecret

svnserve.conf的
anon-access = read
auth-access = write
password-db = passwd ...</description>
   <pubDate>2010.03.27 16:03:16</pubDate>
   <guid>http://hellophper.com/htm/4/392.html</guid>
  </item><item>
   <title>windows 安装svn 并 变成windows服务 自动启动</title>
   <link>http://hellophper.com/htm/4/391.html</link>
	 
   <description>1：http://subversion.tigris.org/servlets/ProjectDocumentList?folderID=8100am expandFolder=8100am folderID=91
下载最新的msi版本,并安装

2:
svnadmin create E:svn

3:
修改
打开/conf/目录
passwd的
harry = harryssecret
sally = sallyssecret

svnserve.conf的
anon-access = read
auth-access = write
password-db = passwd

4:
运行
svnserve --daemon --root E:svn

5：
浏览器输入
svn://127.0.0.1

6：
注册成windows服务
sc create svnserve binPath= quot;D:Subversionininsvnserve.exequot; --service --root E:svnquot; displayname= quot;Subversionquot; depend= Tcpip start= auto 

保存为bat文件

7：
删除服务
sc delete quot;svnservequot;

   ...</description>
   <pubDate>2010.03.31 06:03:13</pubDate>
   <guid>http://hellophper.com/htm/4/391.html</guid>
  </item><item>
   <title>editplus 删除字母开头的行的正则</title>
   <link>http://hellophper.com/htm/4/390.html</link>
	 
   <description>^[a-z].*$ ...</description>
   <pubDate>2010.03.26 01:03:27</pubDate>
   <guid>http://hellophper.com/htm/4/390.html</guid>
  </item><item>
   <title>DB2 批量删除数据语句</title>
   <link>http://hellophper.com/htm/4/389.html</link>
	 
   <description>1：delete from T_XX_CLBJFSDH
2：commit ...</description>
   <pubDate>2010.03.18 23:03:41</pubDate>
   <guid>http://hellophper.com/htm/4/389.html</guid>
  </item><item>
   <title>struts2 修改er表达式标签</title>
   <link>http://hellophper.com/htm/4/388.html</link>
	 
   <description>   lt;functiongt;           
       lt;descriptiongt;yymmddhhmmlt;/descriptiongt;     //描述最好与方法名相一致
       lt;namegt;yymmddhhmmlt;/namegt;    //最好与方法名相一致
       lt;function-classgt;com.copote.xmove4Frame.util.StrutsStrChangelt;/function-classgt; //类名
       lt;function-signaturegt;
              java.lang.String yymmddhhmm(java.util.Date) //传入值的类型(返回类型)
       lt;/function-signaturegt;
   lt;/functiongt; ...</description>
   <pubDate>2010.03.14 07:03:06</pubDate>
   <guid>http://hellophper.com/htm/4/388.html</guid>
  </item><item>
   <title>struts2.18 支持 json</title>
   <link>http://hellophper.com/htm/4/387.html</link>
	 
   <description>导入jsonplugin-0.33.jar包 ...</description>
   <pubDate>2010.03.14 07:03:02</pubDate>
   <guid>http://hellophper.com/htm/4/387.html</guid>
  </item></channel>
</rss>