<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[jphaoren的专栏]]></title><description><![CDATA[]]></description><link>https://blog.csdn.net/jphaoren</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; jphaoren]]></copyright><item><title><![CDATA[外观模式（Façade Pattern）]]></title><link>https://blog.csdn.net/jphaoren/article/details/7280418</link><guid>https://blog.csdn.net/jphaoren/article/details/7280418</guid><author>jphaoren</author><pubDate>Tue, 21 Feb 2012 17:10:40 +0800</pubDate><description><![CDATA[转自：http://terrylee.cnblogs.com/archive/2006/03/17/352349.html



外观模式（Façade Pattern）

——.NET设计模式系列之十二
Terrylee，2006年3月
概述

在软件开发系统中，客户程序经常会与复杂系统的内部子系统之间产生耦合，而导致客户程序随着子系统的变化而变化。那么如何简化客户程序与子系]]></description><category></category></item><item><title><![CDATA[mysql bigint类型和datetime类型的转换]]></title><link>https://blog.csdn.net/jphaoren/article/details/7280392</link><guid>https://blog.csdn.net/jphaoren/article/details/7280392</guid><author>jphaoren</author><pubDate>Tue, 21 Feb 2012 17:05:03 +0800</pubDate><description><![CDATA[转自：http://lbyzx123.iteye.com/blog/1073467





1、bigint类型转换为datetime类型
-- 假设 1164691264437 是 Java 里的“日期时间”：即：自1970-01-01 00:00:00以来的毫秒数

/*

getTime

public long getTime()Returns the numb]]></description><category></category></item><item><title><![CDATA[我是如何在12周内由零基础成为一名程序员的（转）]]></title><link>https://blog.csdn.net/jphaoren/article/details/7063781</link><guid>https://blog.csdn.net/jphaoren/article/details/7063781</guid><author>jphaoren</author><pubDate>Mon, 12 Dec 2011 15:33:48 +0800</pubDate><description><![CDATA[我是如何在12周内由零基础成为一名程序员的

我的故事

在海军陆战队服役超过10年后，我于去年7月份退役了。随后在8月份找到了一份赌场的工作做公关，到今年2月中旬的时候又被辞退了。到5月中旬的时候我在DE协会找到了一份临时的“初级用户体验工程师”工作，而到了8月底我则成了正式的“用户体验工程师”。

当我丢掉赌场的那份工作时，我就在想公关这行可能真的不适合我。我想做一名程序员。于是我]]></description><category></category></item><item><title><![CDATA[一个容易上手的2D游戏引擎love2d （lua）]]></title><link>https://blog.csdn.net/jphaoren/article/details/7029897</link><guid>https://blog.csdn.net/jphaoren/article/details/7029897</guid><author>jphaoren</author><pubDate>Thu, 01 Dec 2011 10:28:44 +0800</pubDate><description><![CDATA[给大家推荐一个容易上手的2D游戏引擎love2d



该游戏引擎包括一个图形引擎和一个物理引擎Box2d，整体表现效果不俗，且使用Lua作为编程接口，比较容易上手。love2d的网址是：
http://love2d.org/]]></description><category></category></item><item><title><![CDATA[LINUX平台可以用GDB进行反汇编和调试。]]></title><link>https://blog.csdn.net/jphaoren/article/details/7014525</link><guid>https://blog.csdn.net/jphaoren/article/details/7014525</guid><author>jphaoren</author><pubDate>Sat, 26 Nov 2011 14:32:46 +0800</pubDate><description><![CDATA[转自：http://www.cppblog.com/liu1061/articles/53762.html

如果在Linux平台可以用gdb进行反汇编和调试。(转)
2. 最简C代码分析

    为简化问题，来分析一下最简的c代码生成的汇编代码：
    # vi test1.c
      
    int main()
    {
        return 0;]]></description><category></category></item><item><title><![CDATA[C++虚函数调用的反汇编解析]]></title><link>https://blog.csdn.net/jphaoren/article/details/6956585</link><guid>https://blog.csdn.net/jphaoren/article/details/6956585</guid><author>jphaoren</author><pubDate>Thu, 10 Nov 2011 15:57:53 +0800</pubDate><description><![CDATA[转自：http://blog.csdn.net/apemancsdn/article/details/82606



虚函数的调用如何能实现其“虚”？作为C++多态的表现手段，估计很多人对其实现机制感兴趣。大约一般的教科书就说到这个C++强大机制的时候，就是教大家怎么用，何时用，而不会去探究一下这个虚函数的真正实现细节。（当然，因为不同的编译器厂家，可能对虚函数有自己的实现，呵呵，这就算]]></description><category></category></item><item><title><![CDATA[常用代码段 rep movsw/rep movsw]]></title><link>https://blog.csdn.net/jphaoren/article/details/6954376</link><guid>https://blog.csdn.net/jphaoren/article/details/6954376</guid><author>jphaoren</author><pubDate>Wed, 09 Nov 2011 23:42:43 +0800</pubDate><description><![CDATA[转自：http://apps.hi.baidu.com/share/detail/32932237




移动代码段：

rep movsw

              mov    ax,#BOOTSEG
             mov    ds,ax
             mov    ax,#INITSEG
             mov    es,a]]></description><category></category></item><item><title><![CDATA[c++编程中的调试技巧(C++编程思想)]]></title><link>https://blog.csdn.net/jphaoren/article/details/6948696</link><guid>https://blog.csdn.net/jphaoren/article/details/6948696</guid><author>jphaoren</author><pubDate>Tue, 08 Nov 2011 16:39:38 +0800</pubDate><description><![CDATA[转自：http://hhfighting.blog.163.com/blog/static/55700323200922093543827/
1.调试标记

    适用预处理#define定义一个或多个调试标记，在代码中把调试部分使用#ifdef 和#endif 进行管理。当程序最终调试完成后，只需要使用#undef标记，调试代码就会消失。常用的调试标记为DEBUG, 语句序列：]]></description><category></category></item><item><title><![CDATA[mysql 5.1 存储过程例子]]></title><link>https://blog.csdn.net/jphaoren/article/details/6915734</link><guid>https://blog.csdn.net/jphaoren/article/details/6915734</guid><author>jphaoren</author><pubDate>Fri, 28 Oct 2011 21:14:03 +0800</pubDate><description><![CDATA[CREATE   PROCEDURE `temp_test`()
begin
  declare a int;
  declare b int;
  declare c int;
declare cur1 CURSOR  for select aid  from  t_test;
declare continue handler for not found set b = 1;
op]]></description><category></category></item><item><title><![CDATA[windows 平台下 生成Dump文件例子]]></title><link>https://blog.csdn.net/jphaoren/article/details/6912672</link><guid>https://blog.csdn.net/jphaoren/article/details/6912672</guid><author>jphaoren</author><pubDate>Fri, 28 Oct 2011 02:02:55 +0800</pubDate><description><![CDATA[///////////////////////////////////////////////////////////////////////////////
//
// MiniDump.cpp 
//
// Sample approach to collecting data with MiniDumpWriteDump and MiniDumpCallback 
// 
// A]]></description><category></category></item><item><title><![CDATA[c++异常处理机制示例及讲解]]></title><link>https://blog.csdn.net/jphaoren/article/details/6899327</link><guid>https://blog.csdn.net/jphaoren/article/details/6899327</guid><author>jphaoren</author><pubDate>Mon, 24 Oct 2011 00:09:44 +0800</pubDate><description><![CDATA[转自： 
http://ticktick.blog.51cto.com/823160/191881

 
原创作品，允许转载，转载时请务必以超链接形式标明文章 
原始出处 、作者信息和本声明。否则将追究法律责任。http://ticktick.blog.51cto.com/823160/191881


      这两天我写了一个测试c++异常处理机制的例子，感觉有很好的示范作用]]></description><category></category></item><item><title><![CDATA[一个因为sql语句引起的服务器挂掉]]></title><link>https://blog.csdn.net/jphaoren/article/details/6831605</link><guid>https://blog.csdn.net/jphaoren/article/details/6831605</guid><author>jphaoren</author><pubDate>Wed, 28 Sep 2011 20:22:03 +0800</pubDate><description><![CDATA[没时间总结，有空的话再整理下。

SQL LEFT JOIN 关键字


Previous PageNext Page


SQL LEFT JOIN 关键字
LEFT JOIN 关键字会从左表 (table_name1) 那里返回所有的行，即使在右表 (tab]]></description><category></category></item><item><title><![CDATA[网络游戏服务器设计浅析]]></title><link>https://blog.csdn.net/jphaoren/article/details/6719674</link><guid>https://blog.csdn.net/jphaoren/article/details/6719674</guid><author>jphaoren</author><pubDate>Thu, 25 Aug 2011 20:30:01 +0800</pubDate><description><![CDATA[转自：http://www.ha97.com/3461.html
网络游戏服务器设计浅析
 
谈这个话题之前，首先要让大家知道，什么是服务器。在中，服务器所扮演的角色是同步，广播和服务器主动的一些行为，比如说天气，NPC AI之类的，之所以现在的很多网络游戏服务器都需要负担]]></description><category></category></item><item><title><![CDATA[http://edu.codepub.com/2010/1108/27051.php]]></title><link>https://blog.csdn.net/jphaoren/article/details/6615615</link><guid>https://blog.csdn.net/jphaoren/article/details/6615615</guid><author>jphaoren</author><pubDate>Tue, 19 Jul 2011 00:05:37 +0800</pubDate><description><![CDATA[http://edu.codepub.com/2010/1108/27051.php]]></description><category></category></item><item><title><![CDATA[Notepad++的字体设置加Consolas和微软雅黑混合字体 ]]></title><link>https://blog.csdn.net/jphaoren/article/details/6454783</link><guid>https://blog.csdn.net/jphaoren/article/details/6454783</guid><author>jphaoren</author><pubDate>Mon, 30 May 2011 15:07:00 +0800</pubDate><description><![CDATA[<br />如图1 <br />图1 <br /> <br />选择“字体格式”。注意红框内的设置。 <br />其中一定要勾选“使用全局字体” 、 “使用全局字体大小”。 <br />如图2<br /><br />图2 <br /> <br /> <br />建议大家使用Consolas和微软雅黑混合字体。consolas是公认的很好用的编程字体。 <br />微软雅黑大家都耳熟能详了。 <br />转载地址：http://www.iamle.com/archives/461.html<br />注意：文]]></description><category></category></item><item><title><![CDATA[vsprintf  与 vsnprintf]]></title><link>https://blog.csdn.net/jphaoren/article/details/6430472</link><guid>https://blog.csdn.net/jphaoren/article/details/6430472</guid><author>jphaoren</author><pubDate>Wed, 18 May 2011 20:14:00 +0800</pubDate><description><![CDATA[vsprintf<br />　　/*　函数名: vsprintf 　　功 能: 送格式化输出到串中 　　返回值: 正常情况下返回生成字串的长度(除去/0),错误情况返回负值 　　用 法: int vsprintf(char *string, char *format, va_list param); 　　注: 该函数会出现内存溢出情况,建议使用vsnprintf 　　程序例: 　　*/ 　　#include <stdarg.h> 　　char buffer[80]; 　　int vspf(char *fmt]]></description><category></category></item><item><title><![CDATA[遍历二叉树的非递归算法]]></title><link>https://blog.csdn.net/jphaoren/article/details/6425187</link><guid>https://blog.csdn.net/jphaoren/article/details/6425187</guid><author>jphaoren</author><pubDate>Mon, 16 May 2011 19:31:00 +0800</pubDate><description><![CDATA[<br />编写的方法：根据树中结点的遍历规律及顺序直接写出其非递归算法。<br />先序非递归算法<br />【思路】<br />假设：T是要遍历树的根指针，若T != NULL<br />对于非递归算法，引入栈模拟递归工作栈，初始时栈为空。<br />问题：如何用栈来保存信息，使得在先序遍历过左子树后，能利用栈顶信息获取T的右子树的根指针？<br />方法1：访问T->data后，将T入栈，遍历左子树；遍历完左子树返回时，栈顶元素应为T，出栈，再先序遍历T的右子树。<br />方法2：访问T->data]]></description><category></category></item><item><title><![CDATA[算法复杂度的计算]]></title><link>https://blog.csdn.net/jphaoren/article/details/6424761</link><guid>https://blog.csdn.net/jphaoren/article/details/6424761</guid><author>jphaoren</author><pubDate>Mon, 16 May 2011 16:35:00 +0800</pubDate><description><![CDATA[<br />算法复杂度是在《数据结构》这门课程的第一章里出现的，因为它稍微涉及到一些数学问题，所以很多同学感觉很难，加上这个概念也不是那么具体，更让许多同学学起来无从下手，下面我们就这个问题给各位考生进行分析。<br />首先了解一下几个概念。一个是时间复杂度，一个是渐近时间复杂度。前者是某个算法的时间耗费，它是该算法所求解问题规模n的函数，而后者是指当问题规模趋向无穷大时，该算法时间复杂度的数量级。<br />当我们评价一个算法的时间性能时，主要标准就是算法的渐近时间复杂度，因此，在算法分析时，往往对两者]]></description><category></category></item><item><title><![CDATA[lua 取一个数字的整数部分 ]]></title><link>https://blog.csdn.net/jphaoren/article/details/6395016</link><guid>https://blog.csdn.net/jphaoren/article/details/6395016</guid><author>jphaoren</author><pubDate>Wed, 04 May 2011 20:23:00 +0800</pubDate><description><![CDATA[<br />lua在对两个整数进行除法操作时不会向C那样将结果转换成整数，而是自动转换成浮点数。（lua没有数据类型之分）。如果要实现此功能需要取得结果中的整数部分。math.ceil (x)<br />Returns the smallest integer larger than or equal to x.<br />--取一个数的整数部分<br />function getIntPart(x)<br />if x <= 0 then<br />   return math.ceil(x);<br /]]></description><category></category></item><item><title><![CDATA[VS2008反汇编小解]]></title><link>https://blog.csdn.net/jphaoren/article/details/6372797</link><guid>https://blog.csdn.net/jphaoren/article/details/6372797</guid><author>jphaoren</author><pubDate>Fri, 29 Apr 2011 20:23:00 +0800</pubDate><description><![CDATA[<br />了解反汇编的一些小知识对于我们在开发软件时进行编程与调试大有好处，下面以VS2008环境下的VC++简单介绍一下反汇编的一些小东西！如果有些解释有问题的地方，希望大家能够指出。<br />1、新建简单的VC控制台应用程序（对此熟悉的同学可以略过）<br />A、打开Microsoft Visual Studio 2008，选择主菜单“File”<br />B、选择子菜单“New”下面的“Project”，打开“New Project”对话框。<br />C、左边选择Visual C++下的win]]></description><category></category></item></channel></rss>