<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[leeafu的专栏]]></title><description><![CDATA[]]></description><link>https://blog.csdn.net/leeafu</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; leeafu]]></copyright><item><title><![CDATA[ADTS头包打包]]></title><link>https://blog.csdn.net/leeafu/article/details/39376437</link><guid>https://blog.csdn.net/leeafu/article/details/39376437</guid><author>leeafu</author><pubDate>Thu, 18 Sep 2014 18:03:18 +0800</pubDate><description><![CDATA[private void addADTStoPacket(unsigned char* packet, int packetLen) {
    int profile = 2;  //AAC LC
                      //39=MediaCodecInfo.CodecProfileLevel.AACObjectELD;
    int freqIdx = 3;  /]]></description><category></category></item><item><title><![CDATA[ie集成ocx事件]]></title><link>https://blog.csdn.net/leeafu/article/details/19986969</link><guid>https://blog.csdn.net/leeafu/article/details/19986969</guid><author>leeafu</author><pubDate>Wed, 26 Feb 2014 16:40:36 +0800</pubDate><description><![CDATA[http://social.msdn.microsoft.com/forums/wpapps/zh-cn/fb154d68-d5d0-4118-846d-4c219f0db806/addeventlistener-for-activex-events-in-ie11-crosspost-from-web-development?forum=ieextensiondevelopment]]></description><category></category></item><item><title><![CDATA[Mysql 1030 Got error -1 from storage engine]]></title><link>https://blog.csdn.net/leeafu/article/details/19819673</link><guid>https://blog.csdn.net/leeafu/article/details/19819673</guid><author>leeafu</author><pubDate>Mon, 24 Feb 2014 13:55:32 +0800</pubDate><description><![CDATA[转自：http://zhidao.baidu.com/link?url=Uj67YYCgFcc9XqvlbzCXf-FVblUpJTgmH78SpOJjZ0S3kNQrgkYLAF0s-sk0we5LvmBsvUX_XpjnlgEZp5JQ3a


检查你的my.cnf或my.ini，里面会有一个参数innodb_force_recovery,你看看他的值，默认是没有这个参数，没有的话，他的]]></description><category></category></item><item><title><![CDATA[Cannot convert value '0000-00-00 00:00:00' from column 1 to TIMESTAMP]]></title><link>https://blog.csdn.net/leeafu/article/details/18005567</link><guid>https://blog.csdn.net/leeafu/article/details/18005567</guid><author>leeafu</author><pubDate>Wed, 08 Jan 2014 17:15:56 +0800</pubDate><description><![CDATA[转自：http://hi.baidu.com/marlon_xiaoyu/item/41fee32f39ef570173863e2d




问题显示：

17:24:09.062 ERROR org.hibernate.util.JDBCExceptionReporter - Cannot convert value '0000-00-00 00:00:00' from colum]]></description><category></category></item><item><title><![CDATA[双网卡路由配置]]></title><link>https://blog.csdn.net/leeafu/article/details/17039337</link><guid>https://blog.csdn.net/leeafu/article/details/17039337</guid><author>leeafu</author><pubDate>Sat, 30 Nov 2013 11:41:41 +0800</pubDate><description><![CDATA[转自：http://zhidao.baidu.com/link?url=6evLhGnQ-jv0P7GFhLL5rxYawlwUavCXgJOSmkeEBXvvHDQq1R3QrfB9QrMjNLXJQzbeBXPCQXrmiH8NsgfQMK


我电脑上装有两块网卡，A卡，IP地址为：192.168.1.110 子网码：255.255.255.0 网关：192.168.1.1 （路由器地]]></description><category></category></item><item><title><![CDATA[网站的下次自动登录功能的实现方法]]></title><link>https://blog.csdn.net/leeafu/article/details/17038951</link><guid>https://blog.csdn.net/leeafu/article/details/17038951</guid><author>leeafu</author><pubDate>Sat, 30 Nov 2013 10:59:33 +0800</pubDate><description><![CDATA[转自：http://segmentfault.com/q/1010000000094837




我告诉你开源php框架的symfony中的一个很有名的扩展sfGuard是怎么做的，可能可以给你提供一些思路：
首先你的数据库需要一个rememberkey表：它包含了一下三个字段：
user_id, remember_key(string(32)，unique), ip_addres]]></description><category></category></item><item><title><![CDATA[java 发送邮件]]></title><link>https://blog.csdn.net/leeafu/article/details/16951475</link><guid>https://blog.csdn.net/leeafu/article/details/16951475</guid><author>leeafu</author><pubDate>Mon, 25 Nov 2013 21:15:27 +0800</pubDate><description><![CDATA[转自：http://supben.iteye.com/blog/814810


以下是两种邮件发送方式。 
给出的例子是是发送HTML格式带附件的邮件。(普通文本格式的邮件基本上可以不关心，现在的邮件都是HTML格式的！) 
如果不要发送附件，只要发送单纯的HTML邮件。只要把附件部分去掉即可 




Java代码  



/** 
*用spring mail ]]></description><category></category></item><item><title><![CDATA[MySQL二进制日志]]></title><link>https://blog.csdn.net/leeafu/article/details/16848555</link><guid>https://blog.csdn.net/leeafu/article/details/16848555</guid><author>leeafu</author><pubDate>Wed, 20 Nov 2013 19:23:13 +0800</pubDate><description><![CDATA[转自：http://www.cszhi.com/20120612/mysql-binlog.html




简介：
MySQL的二进制日志可以说或是MySQL最重要的日志了,它记录了所有的DDL和DML(除了数据查询语句)语句,以事件形式记录,还包含语句所执行的消耗的时间,MySQL的二进制日志是失误安全型的.
MySQL的二进制日志的作用是显而易见的，可以方便的备份这些日志以便做]]></description><category></category></item><item><title><![CDATA[xcode中混用arc和非arc模式]]></title><link>https://blog.csdn.net/leeafu/article/details/13093399</link><guid>https://blog.csdn.net/leeafu/article/details/13093399</guid><author>leeafu</author><pubDate>Sat, 26 Oct 2013 14:02:28 +0800</pubDate><description><![CDATA[Xcode 项目中我们可以使用 ARC 和非 ARC 的混合模式。

如果你的项目使用的非 ARC 模式，则为 ARC 模式的代码文件加入 -fobjc-arc 标签。

如果你的项目使用的是 ARC 模式，则为非 ARC 模式的代码文件加入 -fno-objc-arc 标签。

添加标签的方法：


打开：你的target -> Build Phases -> Compile]]></description><category></category></item><item><title><![CDATA[TCP连接建立和关闭流程]]></title><link>https://blog.csdn.net/leeafu/article/details/11067747</link><guid>https://blog.csdn.net/leeafu/article/details/11067747</guid><author>leeafu</author><pubDate>Wed, 04 Sep 2013 16:00:43 +0800</pubDate><description><![CDATA[三次握手来建立TCP连接
1. (B) –> SYN –> (A) 
2. (B) 
3. (B) 



四次握手用来关闭已建立的TCP连接 
1. (B) –> ACK/FIN –> (A) 
2. (B) 
3. (B) 
4. (B) –> ACK –> (A) 
由于TCP连接是双向连接, 因此关闭连接需要在两个方向上做。]]></description><category></category></item><item><title><![CDATA[Windows 服务被标记为禁用状态]]></title><link>https://blog.csdn.net/leeafu/article/details/9878479</link><guid>https://blog.csdn.net/leeafu/article/details/9878479</guid><author>leeafu</author><pubDate>Sat, 10 Aug 2013 15:33:10 +0800</pubDate><description><![CDATA[1、服务被标记为禁用状态
注意： 服务删除前需要先停止服务，否则服务被标记为禁用，并无法删除。原因：系统删除服务时，首先是标记服务为“删除”，等待服务的所有引用完全断开后，服务才被完全删除。当服务引用未完全断开时，就删除服务，系统将服务锁死为“禁用”状态，并禁止其他操作，注意此时服务尚未完全删除。所以对已删除后立即重装的服务，需要完全释放与服务相关的所有引用，此时系统才真正完全删除服务，之后才能]]></description><category></category></item><item><title><![CDATA[windows下如何确定程序占用端口]]></title><link>https://blog.csdn.net/leeafu/article/details/9000263</link><guid>https://blog.csdn.net/leeafu/article/details/9000263</guid><author>leeafu</author><pubDate>Fri, 31 May 2013 14:17:01 +0800</pubDate><description><![CDATA[1、查看端口占用的进程ID
输入 
netstat -ano|findstr "6608"


返回
        TCP 127.0.0.1:6608  0.0.0.0:0 LISTENING 2016
这表示端口被进程号为2016的进程占用


2、通过进程号查看进程
输入
        tasklist|findstr "2016"


返回]]></description><category></category></item><item><title><![CDATA[mysql 出现  Cannot proceed because system tables used by Event Scheduler were found damaged at server]]></title><link>https://blog.csdn.net/leeafu/article/details/9000216</link><guid>https://blog.csdn.net/leeafu/article/details/9000216</guid><author>leeafu</author><pubDate>Fri, 31 May 2013 14:00:12 +0800</pubDate><description><![CDATA[转自：http://www.52study.org/bencandy.php?fid-43-id-642-page-1.htm





mysql用客户端导出sql文件时出错  提示 “ Cannot proceed because system tables used by Event Scheduler were found damaged at server start” （在]]></description><category></category></item><item><title><![CDATA[msyql innodb表损坏，数据库无法启动]]></title><link>https://blog.csdn.net/leeafu/article/details/8827809</link><guid>https://blog.csdn.net/leeafu/article/details/8827809</guid><author>leeafu</author><pubDate>Sat, 20 Apr 2013 13:39:42 +0800</pubDate><description><![CDATA[以下是mysql启动日志信息，启动后，自动停止
130420 11:43:57 [Note] Plugin 'FEDERATED' is disabled.
130420 11:43:57 InnoDB: The InnoDB memory heap is disabled
130420 11:43:58 InnoDB: Mutexes and rw_locks use Windows in]]></description><category></category></item><item><title><![CDATA[CSS：多个DIV在同一行居中显示的一种实现方法]]></title><link>https://blog.csdn.net/leeafu/article/details/8712212</link><guid>https://blog.csdn.net/leeafu/article/details/8712212</guid><author>leeafu</author><pubDate>Sun, 24 Mar 2013 11:20:44 +0800</pubDate><description><![CDATA[转自：http://blog.csdn.net/hantiannan/article/details/7428566




在项目开发中，画面经常有多个DIV的内容显示在一行的要求。

比如HTML





[html] view
 plaincopy






div class="div_allinline">  
    div class=]]></description><category></category></item><item><title><![CDATA[getElementsByName 在IE下面的bug 的解决]]></title><link>https://blog.csdn.net/leeafu/article/details/8712173</link><guid>https://blog.csdn.net/leeafu/article/details/8712173</guid><author>leeafu</author><pubDate>Sun, 24 Mar 2013 11:06:57 +0800</pubDate><description><![CDATA[转自：http://www.fengfly.com/plus/view-183103-1.html


比如有这样一个问题。 

复制代码 代码如下:


 
 


在这div 中，加入一个播放吗列表。这列表用innerHTML 加入。 

复制代码 代码如下:


var plst = null; 
plst = player.getPlaylist();]]></description><category></category></item><item><title><![CDATA[mysql  'localhost'(10061)  错误]]></title><link>https://blog.csdn.net/leeafu/article/details/8694869</link><guid>https://blog.csdn.net/leeafu/article/details/8694869</guid><author>leeafu</author><pubDate>Wed, 20 Mar 2013 09:46:18 +0800</pubDate><description><![CDATA[转自：http://hi.baidu.com/ctrlaltz/item/586c3815878420fe746a8459


如果遇到Can't connect to MySQL server on 'localhost'(10061),错误,

实在找不到理由的话,试试在my.ini 里的[mysqld]  section里添加bind-address = 127.0.0.1试试.]]></description><category></category></item><item><title><![CDATA[如何在IE6中调试脚本]]></title><link>https://blog.csdn.net/leeafu/article/details/8593747</link><guid>https://blog.csdn.net/leeafu/article/details/8593747</guid><author>leeafu</author><pubDate>Wed, 20 Feb 2013 11:17:23 +0800</pubDate><description><![CDATA[官网地址：http://www.my-debugbar.com/wiki/CompanionJS/HomePage

具体使用方法为：
1、先下载Companion.JS安装文件，然后安装。
2、下载安装Microsoft Script Debugger，如果您的机器已经安装过了就可以免过这一步。
3、打开IE菜单“工具”--“Internet选项”--“高级”，找到“禁用脚本调试(Interne]]></description><category></category></item><item><title><![CDATA[Eclipse下Tomcat常用设置]]></title><link>https://blog.csdn.net/leeafu/article/details/8586112</link><guid>https://blog.csdn.net/leeafu/article/details/8586112</guid><author>leeafu</author><pubDate>Sun, 17 Feb 2013 20:08:42 +0800</pubDate><description><![CDATA[转自：http://limingnihao.iteye.com/blog/825394




1，Eclipse建立Tomcat服务

1.1 新建Server


 首先这里是指，jee版的Eclipse。Eclipse是没有像MyEclipse那样集成Tomcat的，需要我们自己设置。

 New -> Other -> Server ，然后选择Apache下的tom]]></description><category></category></item><item><title><![CDATA[char格式化linux和windows区别]]></title><link>https://blog.csdn.net/leeafu/article/details/8563416</link><guid>https://blog.csdn.net/leeafu/article/details/8563416</guid><author>leeafu</author><pubDate>Fri, 01 Feb 2013 15:50:13 +0800</pubDate><description><![CDATA[在windows下可以使用  ''%C"，将char字符格式化输入成大写字母
而linux只能使用 "%c"进行格式化输入]]></description><category></category></item></channel></rss>