rails server (默认为开发环境)rails server -p503 -e production (指定为生产环境 ,并指定站点端口)rake RAILS_ENV=production assets:precompile --trace (预编译)intel app frame jque...
分类:
其他好文 时间:
2015-02-06 16:30:56
阅读次数:
191
// proc/exec1.c 8-8
#include "apue.h"
#include const char* env_init[] = { "USER=unknown", "PATH=/home/sunyj/apue/proc/", NULL }; int main(void)
{ pid_...
分类:
其他好文 时间:
2015-02-06 16:30:55
阅读次数:
131
UndefinedNullBooleanNumberStringjavascript有5种简单数据类型(也称基本数据类型)Undefined、Null、Boolean、Number和String用typeof操作符可以检测给定变量的数据类型:var message="some thing";aler...
分类:
其他好文 时间:
2015-02-06 16:30:20
阅读次数:
211
中国首批PgMP获证者组织PgMP年会(2014年1月26日,北京)项目管理者联盟项目集管理研究中心于2015年1月24日在北京知名的高艺术品位戏剧文化基地“繁星戏剧村”举办了首届项目集管理PgMP年会。本次PgMP年会参加人员约20人,聚集了中国第一批PgMP获证人员。PgMP作为全球最高端的项目...
分类:
其他好文 时间:
2015-02-06 16:27:50
阅读次数:
120
using dFun = function;using cdouble = const double;cdouble TOLERANCE = 0.00001;bool CloseEnough (cdouble &val1, cdouble &val2){ return (...
分类:
其他好文 时间:
2015-02-06 16:27:03
阅读次数:
86
问题在iOS/Mac中我们有许多方式去持久化存储数据:NSUserDefault、Key chain、C语言文件接口、NSFileHandle、基础框架中的write方法、归档等等。在实际应用中,我们经常需要将这些数据按一定格式转换为对象,并且进行一定的筛选等操作然后再使用,显得不是很方便。Appl...
分类:
其他好文 时间:
2015-02-06 16:27:54
阅读次数:
193
基础知识汇总 1.self 首先明确的是self只有在类的方法中才会有,独立的函数或方法是不必带有self的。self在定义类的方法时是必须有的,虽然在调用时不必传入相应的参数。self名称不是必须的,在python中self不是关键词,你可以定义成a或b或其它名字都可以,但是约定成俗,不要搞另类,...
分类:
其他好文 时间:
2015-02-06 16:28:51
阅读次数:
223
堆、栈的区别及其应用List、Set、Collection、IteratorArrayList 的get方法会使用到索引?数组也有用到?System.out.println(c);调用toString方法迭代器ArrayList vsLinkedListHashSet vsTreeSet vsLin...
分类:
其他好文 时间:
2015-02-06 16:27:08
阅读次数:
169
有篇文章http://www.cnblogs.com/xia520pi/archive/2012/05/16/2504205.html中介绍的这个接口可以实现序列化,这个WritableComparable接口跟java中的java.io.Serializable接口有什么区别?http://a12...
分类:
其他好文 时间:
2015-02-06 16:26:37
阅读次数:
139
现在比较熟悉的设计模式有:slf4j=》单例模式,工厂模式,门面(外观)模式工厂模式 vs 抽象工厂模式工厂模式接口,接口实现类,工厂类抽象工厂模式接口,借口实现类,工厂抽象类,具体的工厂实现类。红色句子是二者唯一的区别工厂模式 vs 建造者模式工厂模式是生产整个产品建造者模式是重点强调建造的过程模...
分类:
其他好文 时间:
2015-02-06 16:27:50
阅读次数:
124
http://www.zi-han.net/case/easyui/menu&button.html LinkButton - jQuery EasyUI Demo LinkButton Buttons can be created from link. enabl...
分类:
其他好文 时间:
2015-02-06 16:25:48
阅读次数:
221
#include#include#include#include#include#include#include#include#include#include#includeclass TextureVisitor:public osg::NodeVisitor{public:TextureVis...
分类:
其他好文 时间:
2015-02-06 16:24:50
阅读次数:
609
Buy TicketsTime Limit:4000MSMemory Limit:65536KB64bit IO Format:%I64d & %I64uSubmitStatusDescriptionRailway tickets were difficult to buy around the L...
分类:
其他好文 时间:
2015-02-06 16:26:29
阅读次数:
138
It’s relatively common for a try block to be followed by several catch blocks to handle various types of exceptions. If the bodies of several catch bl...
分类:
其他好文 时间:
2015-02-06 16:25:23
阅读次数:
167
1 父页面设置脚本(脚本必须在下):父页: 1 2 3 4 5 6 7 8 9 10 26 27 子页: 1 2 3 4 5 6 7 这是一个ifrmae,嵌入在http://snandy.g...
分类:
其他好文 时间:
2015-02-06 16:26:13
阅读次数:
154
参考下面这篇文章:http://blog.csdn.net/steveguoshao/article/details/12576849http://blog.csdn.net/mingli198611/article/details/10062791上面这篇文章解释了为什么hashCode里面要用3...
分类:
其他好文 时间:
2015-02-06 16:25:17
阅读次数:
114