1.首先是如何激发Session_End()方法因为这个方法只支持InProc(进程内的)类型的Session,所以我们将Web.config配置如下:2、Global.asax中的Application_Start定义全局对象:C#
code?1234567voidApplication_Star...
分类:
其他好文 时间:
2014-05-23 05:58:14
阅读次数:
414
1 #include 2 //quickSort 3 int partition(int
a[],int start,int end) { 4 int node = a[start]; //初始节点 5 while(start= node
&& end > start) ...
分类:
其他好文 时间:
2014-05-23 04:04:22
阅读次数:
304
1.Routing : 路由
主要是比对通过浏览器传来的http要求与响应适当的网址给浏览器。@Html.ActionLink("关于","About","Home")
这段代码生成的HTML超连接: 关于 2. 默认情况下 网址路由规则定义在 App_Start\RouteConfig.cs...
分类:
Web程序 时间:
2014-05-23 03:53:47
阅读次数:
405
The start index: this is inclusive, i.e. this
will be the first index value in the loopThe end index: this is exclusive, so it
won’t be processed in t...
分类:
Web程序 时间:
2014-05-22 15:59:26
阅读次数:
264
裝好ssh後,發覺無法用root登入,可是sshd_config接正確。後來發現原因在於,Ubuntu沒有root帳號,但是可以透過sudo
-s拿到root權限。su root 密碼怎樣打也行不通,不過sudo -s卻可以。總之就是要用sudo -s 後 執行passwd
建立帳號ref.http...
分类:
其他好文 时间:
2014-05-21 18:13:49
阅读次数:
296
最近开发,兄弟们问我这个问题,写出来解决方法和大家分享一下。
当控制台出现:
Failed to install ***.apk on device '019417a3': Unable to open sync connection!
java.io.IOException: Unable to open sync connection!
Launch canceled!
...
分类:
其他好文 时间:
2014-05-21 14:13:00
阅读次数:
496
Apache2 iptables
安装指令:sudo apt-get install apache2
2.产生的启动和停止文件是:/etc/init.d/apache2
3.启动:sudo apache2ctl -k start
4,停止:sudo apache2ctl -k stop
5,重新启动:sudo apache2ctl -k restart
...
分类:
其他好文 时间:
2014-05-21 14:05:17
阅读次数:
206
phpStorm 软件打开运行提示 failed to create JVM的解决办法。
修改文件 D:\Program Files (x86)\JetBrains\PhpStorm 7.1.3\bin\PhpStorm.exe.vmoptions
把内存值改成标准值,文件全部内容如下:
-server
-Xms128m
-Xmx512m
-XX:MaxPermSize=250m
-XX...
分类:
Web程序 时间:
2014-05-21 13:44:53
阅读次数:
556
接上文
遗留问题
对于Java多线程的理解,我以前仅仅局限于实现Runnable接口或者继承Thread类,然后重写run()方法,最后start()调用就算完事,但是一旦涉及死锁以及对共享资源的访问和随时监控线程的状态和执行顺序和线程返回值等就不行了。
Callable 和 Future 简介
Callable接口代表一段可以调用并返回结果的代码;Future接口表示是执行异步任务...
分类:
移动开发 时间:
2014-05-21 13:40:13
阅读次数:
371
ibm存储适用,其他存储有类似参数。 1、调整全局cache参数1、1 start and stop cache flush:这两个参数影响控制器处理cache区域的操作,在这中情况下是按照先进先出的原则往磁盘上写数据。这只对打开了写cache的情况下适用。 在一般的情况下,在决大多数时候start的值大于stop的值。但是也有少量的情况下start等于stop的值。如start=stop=80%...
分类:
其他好文 时间:
2014-05-21 13:27:28
阅读次数:
218