我个人并不太喜欢smarty的语法,写起来比较啰嗦易出现匹配出错,但是旧项目中有许多工程都是采用它作模板。最近需要在此上稍微加一些PHP的内容,但我不想在模板控制层去一个一个assign,而想在模板文件中直接嵌入PHP的代码。搜索了一下smarty中确实有直接使用PHP代码的标签,是{php}//P...
分类:
Web程序 时间:
2014-05-24 05:18:34
阅读次数:
352
string $sel[]=`ls -sl`;float $T[]=`xform -q -ws -t
$sel[0]`;float $R[]=`xform -q -ws -ro $sel[0]`;if (`exists ($sel[0]+"_Con")`==0)
{delete ($sel[0]+"...
分类:
其他好文 时间:
2014-05-23 23:23:38
阅读次数:
318
MySQL学习系列2--MySQL执行计划分析EXPLAINhttp://www.cnblogs.com/cfinder010/p/3427477.htmlhttp://www.cnblogs.com/suixinpeng/p/3698965.html1.Explain语法
EXPLAIN SEL....
分类:
数据库 时间:
2014-05-23 12:47:29
阅读次数:
573
assign: 简单赋值,不更改索引计数copy:
建立一个索引计数为1的对象,然后释放旧对象retain:释放旧的对象,将旧对象的值赋予输入对象,再提高输入对象的索引计数为1Copy其实是建立了一个相同的对象,而retain不是:比如一个NSString对象,地址为0×1111,内容为@”STR”...
分类:
移动开发 时间:
2014-05-23 11:44:35
阅读次数:
336
问题: 在Hadoop中,新建一个目录,报错了,提示mkdir: org.apache.hadoop.hdfs.server.namenode.SafeModeException: Cannot create directory,该如何解决呢?...
分类:
其他好文 时间:
2014-05-22 11:31:11
阅读次数:
304
java.lang.ClassCastException: android.content.res.XmlBlock$Parser cannot be cast to android.view.animation.Animation...
分类:
移动开发 时间:
2014-05-22 09:26:20
阅读次数:
590
1、初始化+ (NSTimer
*)timerWithTimeInterval:(NSTimeInterval)ti target:(id)aTarget
selector:(SEL)aSelector userInfo:(id)userInfo repeats:(BOOL)yesOrNo;+ (N...
分类:
移动开发 时间:
2014-05-22 05:38:01
阅读次数:
320
C++ string class copy constructor and assign
constructor.
分类:
其他好文 时间:
2014-05-22 02:10:40
阅读次数:
325
最近在做毕设的收尾工作,很多程序都要部署到linux下来运行,遇到了挺多问题,昨天就集中性遇到了 在编译应用时,遇到了/usr/bin/ld: cannot
find -lxxx这种情况是系统找不到对应的库文件,其中,-lxxx表示链接库文件 libxxx.so。其命名规则是:lib+库名(即xxx...
分类:
其他好文 时间:
2014-05-19 21:30:52
阅读次数:
226
1、初始化
+ (NSTimer *)timerWithTimeInterval:(NSTimeInterval)ti target:(id)aTarget selector:(SEL)aSelector userInfo:(id)userInfo repeats:(BOOL)yesOrNo;
+ (NSTimer *)scheduledTimerWithTimeInterval:(NSTim...
分类:
移动开发 时间:
2014-05-18 08:52:17
阅读次数:
327