MVC3的分部视图相当于webform的用户控件1,新建一个控制器PartialController.cs2,新建一个视图(新建视图的时候,在弹出框中选择创建为分部视图)Message.cshtml,把这个文件放在Views/Shared这个文件夹下(约定优先于配置)3,在视图中引用(Store/Index.cshtml)-----控制器..
分类:
Web程序 时间:
2014-11-27 18:44:11
阅读次数:
232
安装Sublime Text 2插件的方法:1.直接安装安装Sublime text 2插件很方便,可以直接下载安装包解压缩到Packages目录(菜单->preferences->packages)。2.使用Package Control组件安装也可以安装package control组件,然后直...
分类:
其他好文 时间:
2014-11-27 15:57:58
阅读次数:
186
【报错信息】
针对mysql官方社区版进行测试的时候,执行tpcc_load脚本提示缺少libperconaserverclient.so.18库文件:
time ./tpcc_load 127.0.0.1 tpcc1000 root"" 500
./tpcc_load: error while loading sharedlibraries: libperconaserverclient.so.18: cannot open shared object file: Nosuch file or direc...
分类:
数据库 时间:
2014-11-27 14:35:28
阅读次数:
377
[root@xiaopang2桌面]#rpm-eMySQL-shared-compat[root@xiaopang2桌面]#rpm-ivh/root/data/MySQL-client-5.6.21-1.el6.x86_64.rpmPreparing...###########################################[100%]1:MySQL-client###########################################[100%][root@xiaopan..
分类:
数据库 时间:
2014-11-27 08:03:27
阅读次数:
381
1.设置屏幕分辨率的大小,需要手动添加:2.去掉了所有CC开头的命名:3.所有的单例(以前是采用shared开头方法),全部改为getInstance();4.cocos3.x以上的版本支持C++11的特性,例如使用auto关键字,支持进行自动类型推导,也支持lamba表达式,bind等:5.设置Z...
分类:
其他好文 时间:
2014-11-27 01:35:07
阅读次数:
333
web编程开发tomcat(Tom猫服务器配置,以MyEclipse为例): windows-preferences-myeclipse Enterprise Workbench-tomcat 1.选择tomcat版本,tomcat server为Enable,tomcat home directo...
分类:
Web程序 时间:
2014-11-26 23:55:20
阅读次数:
292
erlang添加openssl支持(erlang连接mysql使用):1、配置openssl编译参数:./configure --prefix=/usr/local/service/openssl2、修改makefile编译选项,在CFLAG参数中加上-fPIC-shared 执行make&&mak...
分类:
其他好文 时间:
2014-11-26 06:38:53
阅读次数:
204
template class shared_ptr;template class weak_ptr;// This class is an internal implementation detail for shared_ptr.class SharedPtrControlBlock {tem.....
分类:
其他好文 时间:
2014-11-25 23:16:19
阅读次数:
207
gedit打开window下保存的文本文件,会出现中文乱码;原因当然是编码问题,Linux下默认的编码是UTF-8,而Windows下默认的编码是GB2312/GBK。解决方案:输入命令:『gsettings set org.gnome.gedit.preferences.encodings aut...
分类:
其他好文 时间:
2014-11-25 23:10:21
阅读次数:
183
1、Help->InstallNewSoftware->Workwith:UpdateSite-http://eclipse-color-theme.github.com/update->add->名字设置->OK->selectall->next->等待几分钟->next->finesh2、重启eclipse->Window->Preferences->General->Apperance->..
分类:
系统相关 时间:
2014-11-25 18:50:14
阅读次数:
137