1、定义路由、路由规则 public static void RegisterRoutes(RouteCollection routes) { routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); routes.MapRoute( name: "Defa...
分类:
Web程序 时间:
2014-07-01 19:58:19
阅读次数:
284
今天试图用heidisql 导入一个150M的数据文件(.sql), 结果报out of memory 错误。在网上搜了很多案例,都没能解决问题。我甚至怀疑是mysql 的default的内存设置的太小了。于是跑到my.ini文件里修改了innodb_buffer_pool_size 为96M * ...
分类:
数据库 时间:
2014-07-01 16:59:24
阅读次数:
395
Given two integersnandk, return all possible combinations ofknumbers out of 1 ...n.For example,Ifn= 4 andk= 2, a solution is:[ [2,4], [3,4], [2,3],...
分类:
其他好文 时间:
2014-07-01 13:01:01
阅读次数:
177
Combinations:Given two integers n and k, return all possible combinations of k numbers out of 1 ... n.For example,If n = 4 and k = 2, a solution is:[ ...
分类:
其他好文 时间:
2014-07-01 12:58:20
阅读次数:
212
package com.print.xingzhuang;public class Print_SanJiaoXing { public static void main(String[] args) { System.out.println("------------第一行5个...
分类:
其他好文 时间:
2014-07-01 12:32:56
阅读次数:
194
Java Usage example:myMenuItem.setIcon(android.R.drawable.ic_menu_save);Resource Usage example:android:icon="@android:drawable/ic_menu_save"alert_dark_...
分类:
移动开发 时间:
2014-07-01 12:18:51
阅读次数:
490
1. 应用场景不同 ref主要是函数内部对函数外部的值进行改变 out主要是内部为外部变量赋值,一般用于函数有多个返回值的地方2. 初始化方式不同 ref使用之前必须先初始化,而out不需要初始化 原因:ref为引用,所有必须要先"有",才能引用 out是内部为外部赋值,不需要初始...
分类:
其他好文 时间:
2014-07-01 11:01:09
阅读次数:
213
编译 windows上编译lua源码
cl /MD /O2 /W3 /c /DLUA_BUILD_AS_DLL *.c
del *.o
ren lua.obj lua.o
ren luac.obj luac.o
ren print.obj print.o
link /DLL /IMPLIB:lua5.1.lib /OUT:lua5.1.dll *.obj
link /OUT:lua.ex...
分类:
其他好文 时间:
2014-07-01 07:21:11
阅读次数:
199
#include
#include
#include
static char out_ip[15] = "52.0.10.188";
static int out_port = 8888;
int main()
{
char sSendBuf[2049], sRecvBuf[2049];
int connfd = 0, iRet = 0, iSend...
分类:
其他好文 时间:
2014-07-01 06:31:44
阅读次数:
212
cas官网http://www.ja-sig.org/products/cas/。
ok,现在开始本文的重点内容讲解,先来了解一下cas 实现single sign out的原理,如图所示:
CAS" border="0" height="345" width="588">
图一
CAS"...
分类:
其他好文 时间:
2014-07-01 06:29:53
阅读次数:
224