caching=true;/*开启缓存*/
$smarty->template_dir="./templates";/*缓存的路径*/
$smarty->compile_dir="./templates_c";/*编译的目录...
分类:
其他 时间:
2014-12-07 23:16:36
收藏:
0 评论:
0 赞:
0 阅读:
373
输入一个二叉树,输出其镜像。
解法:交换所有非叶子结点的左右结点。
#include
#include
using namespace std;
struct BinaryTreeNode{
int value;
BinaryTreeNode* left;
BinaryTreeNode* right;
};
//树的镜像
void reseverBinaryTree(B...
分类:
其他 时间:
2014-12-07 23:16:26
收藏:
0 评论:
0 赞:
0 阅读:
363
ios地图开发的基本知识,概含地图显示、定位、大头针和overlay等。...
分类:
移动平台 时间:
2014-12-07 23:16:16
收藏:
0 评论:
0 赞:
0 阅读:
467
今年做了一些音视频编码工作,此前做图形、图像类工作多一些,做了音视频编解码才知道,这项工作还是很有趣的,很神奇的。比如采集几十M的视频数据,经过编码存储后,文件体积仅仅有几十K,这当中就需要x264来发挥神奇了。下面将手机端ios及android两个平台下x264编译脚本分享出来,希望对正在做相关工作的同学有帮助。x264源码地址:http://www.videolan.org/developer...
分类:
移动平台 时间:
2014-12-07 23:16:06
收藏:
0 评论:
0 赞:
0 阅读:
741
Ioc概念:
包括两个内容:控制&反转
对于软件来说,是某一接口具体实现类的选择控制权从调用类中移除,转交给第三方决定。DI(依赖注入:Dependency Injection)即让调用类对某一接口实现类的依赖由第三方(容器或协作类)注入,以移除调用类对某一接口实现类的依赖。
Ioc类型:从注入方法上看,主要可以划分为三种类型:构造函数注入、属性注入和接口注入。
反射在Io...
分类:
编程语言 时间:
2014-12-07 23:15:57
收藏:
0 评论:
0 赞:
0 阅读:
473
#/*
# *File : Makefile
# *Author : DavidLin
# *Date : 2014-12-07pm
# *Email : linpeng1577@163.com or linpeng1577@gmail.com
# *world : the city of SZ, in China
# *...
分类:
系统服务 时间:
2014-12-07 23:15:46
收藏:
0 评论:
0 赞:
0 阅读:
392
<?php
$con=mysql_connect("localhost","root","") or die("failed to connect db");
mysql_select_db("lio")or die ("failed to select db");
$user=$_GET['user'];
$passwd=$_GET['passwd'];
$i="INSERT INTO...
分类:
移动平台 时间:
2014-12-07 23:15:36
收藏:
0 评论:
0 赞:
0 阅读:
354
UIBezierPath和CGContext类中的方法详细...
分类:
其他 时间:
2014-12-07 23:15:26
收藏:
0 评论:
0 赞:
0 阅读:
464
/*
*File : test.c
*Author : DavidLin
*Date : 2014-12-07pm
*Email : linpeng1577@163.com or linpeng1577@gmail.com
*world : the city of SZ, in China
*Ver ...
分类:
系统服务 时间:
2014-12-07 23:15:16
收藏:
0 评论:
0 赞:
0 阅读:
377
maven 添加memcached.jar配置方法...
分类:
编程语言 时间:
2014-12-07 23:15:06
收藏:
0 评论:
0 赞:
0 阅读:
592
最近在研究c#局部刷新重绘的功能,来提高用户体验,但是在OnPaint事件中接收到的e.ClipRectangle和我在其它方法中调用mainForm.Invalidate(cutOutRect, false);时传递的大小不一致,经过一番排查才发现,是Windows底层做了处理!!!!我们来看图1:上面是调用mainForm.Invalidate(cutOutRect, false);前输出的信...
分类:
其他 时间:
2014-12-07 23:14:47
收藏:
0 评论:
0 赞:
0 阅读:
480
编译型:通过编译器编译成可执行文件
或者通过编译器生成多个目标文件,一个模块会对应一个目标文件,最后由链接器生成可执行文件、
一次性将所有代码转换成机器码
速度快
C++
解释型:程序运行前一刻,还只有源程序没有可执行程序,当运行到某一行时,由一个解释器的外壳将该内容转...
分类:
编程语言 时间:
2014-12-07 23:14:36
收藏:
0 评论:
0 赞:
0 阅读:
383
简单工厂模式c#上简单例子
namespace simplefactory
{
public partial class Form1 : Form
{
private void button1_Click(object sender, EventArgs e)//用户层次
{
Operation operatio...
分类:
Windows开发 时间:
2014-12-07 23:14:16
收藏:
0 评论:
0 赞:
0 阅读:
434
本文通过分析cocos2dx提供的示例程序HelloCpp来分析cocos2dx的启动过程。 我们从HelloCpp.java开始:[java] view plaincopy在CODE上查看代码片派生到我的代码片01.package org.cocos2dx.hellocpp; 02. 03.import org.cocos2dx.lib.Cocos2dxActivity; 04. 05.impo...
分类:
移动平台 时间:
2014-12-07 23:13:58
收藏:
0 评论:
0 赞:
0 阅读:
683
function f=WTF(I);
% compute the 128-D wavelet transform feature of image I
% Input:
% I: the input image
% Output:
% f:128-D feature
%%warning:normalization must be performed after all the features a...
分类:
其他 时间:
2014-12-07 23:13:46
收藏:
0 评论:
0 赞:
0 阅读:
450
/*
*File : test.c
*Author : DavidLin
*Date : 2014-12-07pm
*Email : linpeng1577@163.com or linpeng1577@gmail.com
*world : the city of SZ, in China
*Ver...
分类:
系统服务 时间:
2014-12-07 23:13:36
收藏:
0 评论:
0 赞:
0 阅读:
331
POJ 2195 & HDU 1533 Going Home(最小费用最大流)...
分类:
其他 时间:
2014-12-07 23:13:26
收藏:
0 评论:
0 赞:
0 阅读:
398
HTML(HyperText Mark-up Language)是一种表示页面内容及样式的语言,它是事实上的web展示标准,被所有浏览器支持,也是它让你的页面可移植的出现在不同的系统和平台之上。
HTML结构
如下一段最简单的HTML代码:
HTML页面
应用记事本编写HT...
分类:
Web开发 时间:
2014-12-07 23:13:16
收藏:
0 评论:
0 赞:
0 阅读:
434
从widow转到ubuntu环境,折腾了几天,遇到不少问题,现记录如下:
开发工具
1.anroid开发环境,eclipse jdk adt插件 或者 androidstudio。这个介绍的很多。
2.adb 64位兼容包 在终端中输入adb devices 提示sudo: adb: command not found。但是明明已经配置好android开发环境和路径。原因在于...
分类:
移动平台 时间:
2014-12-07 23:13:06
收藏:
0 评论:
0 赞:
0 阅读:
559
In the lastduring, I am studying the basic about struts2.
At be ginning,I always am confused by the namespace of struts2 xml configuration file.
Cause, sometimes I shall read some examples...
分类:
其他 时间:
2014-12-07 23:12:36
收藏:
0 评论:
0 赞:
0 阅读:
396