上一页 1 ··· 3 4 5 6 7 8 9 10 11 12 下一页
摘要: 1Ext.Ajax.timeout=120000;//120seconds2Ext.override(Ext.form.Basic,{timeout:Ext.Ajax.timeout/1000});3Ext.override(Ext.data.proxy.Server,{timeout:Ext.Ajax.timeout});4Ext.override(Ext.data.Connection,{timeout:Ext.Ajax.timeout}); 阅读全文
posted @ 2012-10-14 20:45 易木 阅读(377) 评论(0) 推荐(0) 编辑
摘要: Encoding.ASCII.GetString(bytes, 0, bytesRec);这个是ASCII码转换,如果是中文就出错,所以解决办法改为Encoding.UTF8.GetString(bytes, 0, bytesRec);UTF-8格式,但是要注意,1中文占2个字符。 阅读全文
posted @ 2012-10-13 16:24 易木 阅读(2631) 评论(0) 推荐(1) 编辑
摘要: 1、将my documents路径恢复系统默认打开注册表编辑器regedit,查找[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders],在右侧窗口中,将Personal项的e:\My Documents改为C:\Documents and Settings\当前用户\My documents。2、在注册表搜索一下所有的e:\My Documents,全部改成C:\Documents and Settings\当前用户\My documents;有些软件可能会修改它的内容 阅读全文
posted @ 2012-10-13 12:23 易木 阅读(697) 评论(0) 推荐(0) 编辑
摘要: 由于我使用的Jetty 应用服务器,最终查询下来是版本太旧,升级到6.1.26版本 阅读全文
posted @ 2012-10-11 08:12 易木 阅读(167) 评论(0) 推荐(0) 编辑
摘要: setting->File Types-> PHP File 阅读全文
posted @ 2012-10-10 13:31 易木 阅读(408) 评论(0) 推荐(0) 编辑
摘要: 1、查询oracle的连接数select count(*) from v$session;2、查询oracle的并发连接数select count(*) from v$session where status='ACTIVE';3、查看不同用户的连接数select username,count(username) from v$session where username is not null group by username;4、查看所有用户:select * from all_users;5、查看用户或角色系统权限(直接赋值给用户或角色的系统权限):select * f 阅读全文
posted @ 2012-10-08 12:11 易木 阅读(254) 评论(0) 推荐(0) 编辑
摘要: 1Stringline;2StringBuilderbuilder=newStringBuilder();3BufferedReaderreader=newBufferedReader(newInputStreamReader(reqeust.getInputStream()));4while((line=reader.readLine())!=null){5builder.append(line);6} 阅读全文
posted @ 2012-10-07 07:04 易木 阅读(860) 评论(0) 推荐(0) 编辑
摘要: 1publicBgControlForm(string[]args)2{3InitializeComponent();4MessageBox.Show(args[0]);56System.Threading.Mutexmutex=newSystem.Threading.Mutex(true,Application.UserAppDataPath.Replace(@"\","_"),outbOnlyOneInstance);7if(!bOnlyOneInstance)8{9System.Environment.Exit(0);10return;11}12} 阅读全文
posted @ 2012-10-04 21:55 易木 阅读(280) 评论(0) 推荐(0) 编辑
摘要: Program.cs static class Program { /// <summary> /// 应用程序的主入口点。 /// </summary> [STAThread] static void Main(string[] args) { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); if (args.Length > 0) { Application.Run(ne... 阅读全文
posted @ 2012-10-04 21:44 易木 阅读(5313) 评论(0) 推荐(0) 编辑
摘要: 另,Class类还有一个getResourceAsStream方法,记得以前有个项目要读取在同一个包内的一个xml,就用的这个。1.如何获得当前文件路径常用:(1).Test.class.getResource("")得到的是当前类FileTest.class文件的URI目录。不包括自己!(2).Test.class.getResource("/")得到的是当前的classpath的绝对URI路径。(3).Thread.currentThread().getContextClassLoader().getResource("")得到的 阅读全文
posted @ 2012-10-02 21:26 易木 阅读(647) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 12 下一页