string path = Server.MapPath("copycode/code.txt");
string[] allCodeLine = System.IO.File.ReadAllLines(path, System.Text.Encoding.UTF8);
System.Text.StringBuilder strb = new Sys...
分类:
Web程序 时间:
2014-07-22 23:02:54
阅读次数:
366
用apache来处理外界的请求,再把请求转发给wls,这样就能够突破wls express版本的5用户限制
具体配置如下
copy ${WLS_Server}/server/lib下的mod_wl_20.so到${apache_home}/modules下
修改httpd.conf文件
LoadModule weblogic_module modules\mod_wl_20.so
...
分类:
Web程序 时间:
2014-05-01 17:58:03
阅读次数:
417
我采用Database First,用Sql很容易就可以做到对一个表进行压缩。如以下:
CREATE TABLE [dbo].[Entities](
[Id] [int] IDENTITY(1,1) NOT NULL,
[Name] [nvarchar](max) NULL,
Primary Key Clustered ([Id] ASC) WITH (DATA_...
分类:
数据库 时间:
2014-04-30 22:23:39
阅读次数:
436
经常会遇到一个会话中存在sql性能问题,但无法定位哪一个sql导致DB性能问题较高,这是我们需要对这个session进行监控可以通过dbms_monitor包来实现。
首先确定要监控的会话sid及serial#,可以通过v$session视图获得
select sid, serial#, username from v$session where ...
确定session...
分类:
数据库 时间:
2014-04-30 22:23:38
阅读次数:
413
下载地址CKEditor
我下载的版本ckfinder_java_2.4
解压之后,会看到一个CKFinderJava-2.4.war文件,直接放到Tomcat/webapps发布目录下,把服务打开就自动解压了,然后将ckfinder目录Copy到你项目WebRoot下。
步骤一:将CKFinderJava-2.4下的jar包Copy到你的项目下,还有WEB-INF/config.xml文件...
分类:
编程语言 时间:
2014-04-30 22:18:39
阅读次数:
559
Background:
It's fairly common for businesses to want to provide some high availability for their SQL Server databases, and one option is to have two SQL Server databases on separate machines with a SQL Server database mirrored....
分类:
数据库 时间:
2014-04-30 22:11:38
阅读次数:
520
最近项目需求,需要在JTextPane上添加行号等信息,网上找了好久只找到JTextArea添加行号信息,copy网上的程序研究了下,发现自己改改就可以让JTextPane显示行号!
代码:
package com.cml.line;
import java.awt.Color;
import java.awt.FontMetrics;
import java.awt.Compo...
分类:
其他好文 时间:
2014-04-29 13:33:22
阅读次数:
266
Problem:
You are trying to setup a mirroring on a Database called xxxDB(SQL server 2012).
You are getting this error while trying to setup mirroring.
“Neither the partner nor the witness server ins...
分类:
数据库 时间:
2014-04-29 13:33:20
阅读次数:
444
/*
*
* Copyright (c) 1994
* Hewlett-Packard Company
*
* Permission to use, copy, modify, distribute and sell this software
* and its documentation for any purpose is hereby granted without fee,
...
分类:
其他好文 时间:
2014-04-29 13:28:21
阅读次数:
398
/*
*
* Copyright (c) 1994
* Hewlett-Packard Company
*
* Permission to use, copy, modify, distribute and sell this software
* and its documentation for any purpose is hereby granted without fee,
...
分类:
其他好文 时间:
2014-04-29 13:13:21
阅读次数:
309