使用 RenderPage加载子视图@RenderPage("~/Shared/Component/Dialog.cshtml", new { title = "Hello world!", content="Nani?" })Razor子视图里使用 Page 来获取传递的数据 ...
分类:
Web程序 时间:
2014-09-15 15:30:19
阅读次数:
208
本人一开始eclipse luna版本为32位,而安装的jdk位64位因而报如下错误:Failed to load the JNI shared library jvm.dll 后来将jdk换位32位,eclipse就可以启动了。操作系统为64位的系统可以向下兼容32位的(大部分)软件,因而安装32位的jdk也是可以的。当然大家也可以换成64位的eclpse,只要jdk跟eclipse的版本一...
分类:
系统相关 时间:
2014-09-14 18:08:07
阅读次数:
172
之前给南京某客户优化一套OLTP数据库,其数据库中在某个时间段,会执行大量结构非常相似的查询语句,造成shared_pool被大量占用,导致数据库性能下降。碰到这种情况,其实最佳优化方案,就是让应用厂商修改相应代码,通过增加绑定变量,来有效减少相似SQL语句执行时的硬解析数,降低对shared_pool的消耗。下面来做一个关于绑定变量的测试:
1.创建测试用户并赋予权限
[oracle...
分类:
其他好文 时间:
2014-09-14 16:44:27
阅读次数:
278
多线程版Libevent//保存线程的结构体struct LibeventThread{ LibEvtServer* that; //用作传参 std::shared_ptr spThread; // 线程 struc...
分类:
编程语言 时间:
2014-09-14 01:21:26
阅读次数:
1197
[leetcode]Given an array S of n integers, are there elements a, b, c, and d in S such that a + b + c + d = target? Find all unique quadruplets in the array which gives the sum of target....
分类:
其他好文 时间:
2014-09-13 13:25:25
阅读次数:
180
installing the Devel\gettext package should solve your problem. git-submodule requires that. Unfortunately this is not marked as dependency.附apt-cyg工具...
MinGW编译wxWidgetMinGW编译wxWidgetWXWIN:源代码根目录解压源码进入到%WXWIN%\build\msw清理项目mingw32-make -f makefile.gcc SHARED=1 UNICODE=1 BUILD=release clean编译动态库,发行版ming...
分类:
其他好文 时间:
2014-09-12 23:25:14
阅读次数:
230
rpm-e--nodepsmysql-libsyum-yinstalllibaiorpm-ivhMySQL-shared-compat-5.6.20-1.el6.x86_64.rpmrpm-ivhMySQL-shared-5.6.20-1.el6.x86_64.rpmrpm-ivhMySQL-server-5.6.20-1.el6.x86_64.rpmrpm-ivhMySQL-client-5.6.20-1.el6.x86_64.rpmservicemysqlstart;chkconfigmysqloncat..
分类:
数据库 时间:
2014-09-12 02:29:13
阅读次数:
216
Start from Difficulty 1:1, Remove specified elem from unsorted array: 2 pointers, one is to iterate all the elements in the array, the other is to inc...
分类:
编程语言 时间:
2014-09-11 23:46:42
阅读次数:
250
??
1静态库和共享库
*本节就如何创建和使用程序库进行论述。所谓“程序库”,简单说,就是包含了数据
和执行码的文件。其不能单独执行,可以作为其它执行程序的一部分来完成某些功能。库的
存在,可以使得程序模块化,可以加快程序的再编译,可以实现代码重用,可以使得程序便
于升级。程序库可分静态库(static library)和共享库(shared
object)。
...
分类:
其他好文 时间:
2014-09-11 20:59:32
阅读次数:
288