<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[佛缘的技术专栏]]></title><description><![CDATA[]]></description><link>https://blog.youkuaiyun.com/lhh1002</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; lhh1002]]></copyright><item><title><![CDATA[通过create-react-app创建的react项目，build以后，在tomcat中部署配置]]></title><link>https://blog.youkuaiyun.com/lhh1002/article/details/79641607</link><guid>https://blog.youkuaiyun.com/lhh1002/article/details/79641607</guid><author>lhh1002</author><pubDate>Wed, 21 Mar 2018 16:30:11 +0800</pubDate><description><![CDATA[最近一直做react项目，但是老版本是java的，新版本是react，因为项目没有整体移植，因此，就出现了javaweb和react共存的情况。说说我的操作方式：1，先build项目。2，上传build后的项目内容到webapps文件夹中的ROOT中，ROOT原有文件全部删除。我的目的是要在根目录访问，因此要用到ROOT文件夹。如果和我的不一样的，需要配置一下路由啦。3，单纯这样，可能在访问时会出...]]></description><category></category></item><item><title><![CDATA[Windows 7 下配置绿色解压版本的Mysql5]]></title><link>https://blog.youkuaiyun.com/lhh1002/article/details/7822706</link><guid>https://blog.youkuaiyun.com/lhh1002/article/details/7822706</guid><author>lhh1002</author><pubDate>Thu, 02 Aug 2012 14:05:19 +0800</pubDate><description><![CDATA[1. 解压缩mysql-5.5.25a-win32到目录D:\mysql5中
2. 创建环境变量MYSQL_HOME=D:\mysql5，在path变量后添加;%MYSQL_HOME%\bin
3. 进入DOS窗口到D:\mysql5\bin目录下，添加系统服务（添加成功后默认自动启动）
   eg：mysqld --install mysql --defaults-file=D:\mysq]]></description><category></category></item><item><title><![CDATA[ThinkPHP 连接Oracle数据库的详细教程(2)]]></title><link>https://blog.youkuaiyun.com/lhh1002/article/details/7750372</link><guid>https://blog.youkuaiyun.com/lhh1002/article/details/7750372</guid><author>lhh1002</author><pubDate>Mon, 16 Jul 2012 10:20:51 +0800</pubDate><description><![CDATA[最近收集了一些关于THinkPHP连接Oracle数据库的问题，有很多朋友按照连接mysql的方法来操作，导致有一些方法在Oreale中无法正常使用。比如说：findAll，Select方法无法使用，获取不到需要的数据。Create和add方法无法创建和写入数据到数据库中。

其实根据以前问题我做了几天调试，找到了问题所在，并成功在我自己一个小项目练习中使用正常，那么现在就将我的经验分享给大家]]></description><category></category></item><item><title><![CDATA[ThinkPHP 连接Oracle数据库的详细教程(1)]]></title><link>https://blog.youkuaiyun.com/lhh1002/article/details/7740668</link><guid>https://blog.youkuaiyun.com/lhh1002/article/details/7740668</guid><author>lhh1002</author><pubDate>Thu, 12 Jul 2012 15:32:29 +0800</pubDate><description><![CDATA[一、 操作环境搭建
系统：Windows7 旗舰版 64位
PHP环境：wampserver2.2e-php5.4.3-httpd2.2.22-mysql5.5.24  32位版
下载地址：http://www.wampserver.com/en/

ThinkPHP：3.0正式版
下载地址：http://thinkphp.cn/down.html

Oracle：Orcale_1]]></description><category></category></item><item><title><![CDATA[原创版discuzX2.0论坛免激活修改方法]]></title><link>https://blog.youkuaiyun.com/lhh1002/article/details/7609764</link><guid>https://blog.youkuaiyun.com/lhh1002/article/details/7609764</guid><author>lhh1002</author><pubDate>Mon, 28 May 2012 16:29:11 +0800</pubDate><description><![CDATA[discuzX2.0/api/uc.phpfunction synlogin($get, $post) { 
    global $_G;     
    
    if(!API_SYNLOGIN) {    
     
        return API_RETURN_FORBIDDEN;  
           
    }
     
    header('P3P: CP="C]]></description><category></category></item><item><title><![CDATA[windows 7 64位下PHP的配置]]></title><link>https://blog.youkuaiyun.com/lhh1002/article/details/7431521</link><guid>https://blog.youkuaiyun.com/lhh1002/article/details/7431521</guid><author>lhh1002</author><pubDate>Fri, 06 Apr 2012 11:23:12 +0800</pubDate><description><![CDATA[公司的网站是ASP.NET 4.0 的网站 + PHP的论坛结构，准备将服务器的换成2008的系统，因此要对IIS对PHP的支持，和重写进行研究，保证换系统后，网站和论坛能正常运行。多的话不说，今天只解决一个问题，就是IIS配置PHP的环境。关于重写和.NET网站与PHP论坛同步注册登录的问题，以后讨论。
1，系统环境
   Windows 7 64位
   IIS 7.5 （其实和7.0没]]></description><category></category></item><item><title><![CDATA[discuz 论坛词语过滤功能，如何只过滤内容，不替换主题]]></title><link>https://blog.youkuaiyun.com/lhh1002/article/details/7324192</link><guid>https://blog.youkuaiyun.com/lhh1002/article/details/7324192</guid><author>lhh1002</author><pubDate>Tue, 06 Mar 2012 11:53:31 +0800</pubDate><description><![CDATA[找到以下文件夹
\source\module\forum
 
其中有个forum_post.php文件，找到210行，的这段代码
$subject = isset($_G['gp_subject']) ? dhtmlspecialchars(censor(trim($_G['gp_subject']))) : '';



 
改为
 
$subject = isset($_]]></description><category></category></item><item><title><![CDATA[C#获取高清缩略图]]></title><link>https://blog.youkuaiyun.com/lhh1002/article/details/7300911</link><guid>https://blog.youkuaiyun.com/lhh1002/article/details/7300911</guid><author>lhh1002</author><pubDate>Tue, 28 Feb 2012 10:05:13 +0800</pubDate><description><![CDATA[谈到获取缩略图，C#的Image类提供了一个GetThumbnailImage的方法获取，但是我试了一下~得到的缩略图相当模糊~
那怎么获取高清的呢？查了MSDN，拼命死锁后得到这样一个启示：缩略图不就是原图按比例缩小，那我们将原图读入按比例缩放后再在画布上重绘一个不就可以了么？
OK~思路有了~那我们就试试~
下面先贴出Image.GetThumbnailImage的方法：]]></description><category></category></item><item><title><![CDATA[C#UDP通讯]]></title><link>https://blog.youkuaiyun.com/lhh1002/article/details/7300898</link><guid>https://blog.youkuaiyun.com/lhh1002/article/details/7300898</guid><author>lhh1002</author><pubDate>Tue, 28 Feb 2012 10:03:19 +0800</pubDate><description><![CDATA[namespace UDPServer
{
    class Program
    {
        static void Main(string[] args)
        {
            int recv;
            byte[] data = new byte[1024]; 

            //构建TCP 服务器

            /]]></description><category></category></item><item><title><![CDATA[一步步打造防止重复提交按钮]]></title><link>https://blog.youkuaiyun.com/lhh1002/article/details/7300887</link><guid>https://blog.youkuaiyun.com/lhh1002/article/details/7300887</guid><author>lhh1002</author><pubDate>Tue, 28 Feb 2012 10:01:59 +0800</pubDate><description><![CDATA[首先说说防止重复提交按钮是啥东西：
我们在访问有的网站，输入表单完成以后，单击提交按钮进行提交以后，提交按钮就会变为灰色，用户不能再单击第二次，直到重新加载页面或者跳转。这样，可以一定程度上防止用户重复提交导致应用程序上逻辑错误。有朋友说，这个按钮完全可以用js来做，是的。不过当你需要大量这种按钮时，是否为每一个都去编程而不封装一个呢？
另外，为了增加其功能性，我们除了让他有防止重复提交的功能]]></description><category></category></item><item><title><![CDATA[.NET下URL重写及PostBack处理]]></title><link>https://blog.youkuaiyun.com/lhh1002/article/details/7300865</link><guid>https://blog.youkuaiyun.com/lhh1002/article/details/7300865</guid><author>lhh1002</author><pubDate>Tue, 28 Feb 2012 09:58:50 +0800</pubDate><description><![CDATA[URL重写是截取传入Web 请求并自动将请求重定向到其他 URL 的过程。
 
比如:浏览器发来请求 http://localhost:90/URLRewriter/1.html ，
 
服务器自动将这个请求中定向为http://localhost:90/URLRewriter/url.aspx?id=1
 
URLRewriter下载编译后提取其中的URLRewriter.dll和A]]></description><category></category></item><item><title><![CDATA[.net 4.0 ValidateRequest="false" 无效]]></title><link>https://blog.youkuaiyun.com/lhh1002/article/details/7300846</link><guid>https://blog.youkuaiyun.com/lhh1002/article/details/7300846</guid><author>lhh1002</author><pubDate>Tue, 28 Feb 2012 09:54:53 +0800</pubDate><description><![CDATA[昨天安装了VisualStudio 2010 Ultimate，今天把最近的一个项目升级到了4.0下，结果跑了一下，发现关于页面启用 ValidateRequest="false" 的部份失效。于是把web站点的版本及项目版本都降回原来的版本后，错误就消失了，于是搜索了一下，找到如下资料：

A potentially dangerous Request.Form value was dete]]></description><category></category></item><item><title><![CDATA[FCKeditor 上传自动重命名、按月创建文件夹和基本操作]]></title><link>https://blog.youkuaiyun.com/lhh1002/article/details/7300737</link><guid>https://blog.youkuaiyun.com/lhh1002/article/details/7300737</guid><author>lhh1002</author><pubDate>Tue, 28 Feb 2012 09:34:07 +0800</pubDate><description><![CDATA[现在做的项目，用到了编辑器，而FCK都出到了2.6.3所以就把他改成自己想要的，发现跟原来的不一样了，还要重新找，现在就把过程发给大家分享一下吧！

一、自定义 FCKeditor 的 BasePath
BasePath 即FCKeditor在网站中的相对路径，默认值是 /fckeditor/，最好在Web.config appSettings中对其进行配置：


 
这样做有诸多优]]></description><category></category></item><item><title><![CDATA[sql2005数据库加锁后解锁]]></title><link>https://blog.youkuaiyun.com/lhh1002/article/details/7208562</link><guid>https://blog.youkuaiyun.com/lhh1002/article/details/7208562</guid><author>lhh1002</author><pubDate>Wed, 18 Jan 2012 10:35:07 +0800</pubDate><description><![CDATA[如何察看当前数据库被锁的表 :

 SELECT request_session_id spid,OBJECT_NAME(resource_associated_entity_id) FROM  sys.dm_tran_locks WHERE resource_type='OBJECT'

spid   就是锁住表的进程 
tableName   就是被锁的表名 

解锁 
kil]]></description><category></category></item><item><title><![CDATA[再来二十一段救命的PHP代码]]></title><link>https://blog.youkuaiyun.com/lhh1002/article/details/6891984</link><guid>https://blog.youkuaiyun.com/lhh1002/article/details/6891984</guid><author>lhh1002</author><pubDate>Thu, 20 Oct 2011 20:46:31 +0800</pubDate><description><![CDATA[1. PHP可阅读随机字符串
　　此代码将创建一个可阅读的字符串，使其更接近词典中的单词，实用且具有密码验证功能。
/************** *@length - length of random string (must be a multiple of 2) **************/ function readable_random_string($length = 6){]]></description><category></category></item><item><title><![CDATA[mysql错误:Table XXX is marked as crashed and should be repaired]]></title><link>https://blog.youkuaiyun.com/lhh1002/article/details/6830869</link><guid>https://blog.youkuaiyun.com/lhh1002/article/details/6830869</guid><author>lhh1002</author><pubDate>Wed, 28 Sep 2011 16:47:13 +0800</pubDate><description><![CDATA[Table '.\Tablename\posts' is marked as crashed and should be repaired
提示说论坛的帖子表posts被标记有问题，需要修复。我记得以前也出现过类似的问题,但是只要点击Phpmyadmin上的repair按纽就自]]></description><category></category></item><item><title><![CDATA[50个必备的实用jQuery代码段]]></title><link>https://blog.youkuaiyun.com/lhh1002/article/details/6821741</link><guid>https://blog.youkuaiyun.com/lhh1002/article/details/6821741</guid><author>lhh1002</author><pubDate>Mon, 26 Sep 2011 11:54:39 +0800</pubDate><description><![CDATA[1. 如何创建嵌套的过滤器：
//允许你减少集合中的匹配元素的过滤器，
//只剩下那些与给定的选择器匹配的部分。在这种情况下，
//查询删除了任何没（:not）有（:has）
//包含class为“selected”（.selected）的子节点。
.filter(":]]></description><category></category></item><item><title><![CDATA[在ubuntu10.10配置一个Apache+MySQL+PHP环境]]></title><link>https://blog.youkuaiyun.com/lhh1002/article/details/6338637</link><guid>https://blog.youkuaiyun.com/lhh1002/article/details/6338637</guid><author>lhh1002</author><pubDate>Thu, 21 Apr 2011 14:36:00 +0800</pubDate><description><![CDATA[<br />安装ubuntu10.10后，如何配置一个Apache+MySQL+PHP环境? 请看下文：<br />1、 Apache<br />$ sudo apt-get install apache2<br /> <br />2、Mysql<br />$ sudo apt-get install mysql-server<br /> <br />3、PHP<br />$ sudo apt-get install php5<br /> <br />4、MySQL for Apache PHP （通信模板]]></description><category></category></item><item><title><![CDATA[IPhone开发三天上手纪实]]></title><link>https://blog.youkuaiyun.com/lhh1002/article/details/6258889</link><guid>https://blog.youkuaiyun.com/lhh1002/article/details/6258889</guid><author>lhh1002</author><pubDate>Fri, 18 Mar 2011 13:57:00 +0800</pubDate><description><![CDATA[<br />1、如果你有自己的Mac电脑，跳过这一步。如果没有，可以去下载这个：http://www.verycd.com/topics/2746139/，是个vmware镜像，非常完美，安装上vmware，解压就可以运行，速度不错(硬件当然要够，可以上网)。不过似乎AMD的CPU不行，如果你用的是AMD的，就别浪费带宽了。<br />　　2、启动进去以后就想办法去下载SDK，官方的下载速度还不错，用迅雷两个小时就搞定了，想办法传到Mac里面去(我是在windows里建了个serv-u的FTP，在Mac里面]]></description><category></category></item><item><title><![CDATA[ASP.NET 多个提交按钮页面，ENTER指定执行某一按钮]]></title><link>https://blog.youkuaiyun.com/lhh1002/article/details/6228188</link><guid>https://blog.youkuaiyun.com/lhh1002/article/details/6228188</guid><author>lhh1002</author><pubDate>Mon, 07 Mar 2011 09:39:00 +0800</pubDate><description><![CDATA[<br />在WEB页面上，通常SUBMIT类型的按钮会被默认指派为所在FORM表单的提交按钮。<br />我们在做ASP.net WEB应用的时候，常常遇到会在同一个页面里添加多个按钮，而每个按钮肯定都会触发页面回送事件。<br />在ASP.NET中，只能指定一个带有RUNAT=SERVER的FORM表单，因此，这个表单会指派哪个按钮为默认提交按钮呢？<br />不做任何处理的情况下是很难控制的，例如在同一个页面里做了N个搜索框，设计上理想的思路是在某一输入框输入关键字后，用户按ENTER键，执行当前输]]></description><category></category></item></channel></rss>