上一页 1 2 3 4 5 6 7 ··· 22 下一页
摘要: exec sp_msforeachtable N'exec sp_spaceused ''?''' -- 查询所有表exec sp_spaceused 'SiteLog' -- 查询单表truncate table SiteLog - 清除表的数据 阅读全文
posted @ 2012-01-16 22:39 无尽思绪 阅读(299) 评论(0) 推荐(0) 编辑
摘要: iptables类似windows firewall, 默认安装的centos minimal,80端口是没有开放的。在配置完nginx,发现除了本机,其他的机器都访问不了。抑郁了。参考文章:http://www.justlinux.com/nhf/Security/IPtables_Basics.html看了大半天,搞不定,郁闷啊。直接:service iptables stop停掉iptables后,其他机器可以访问了,但是centos重启后,iptables会自动开启的。郁闷。查了下,直接修改文件:vi /etc/sysconfig/iptables,然后依葫芦画瓢:-A INPUT - 阅读全文
posted @ 2012-01-07 11:16 无尽思绪 阅读(323) 评论(0) 推荐(0) 编辑
摘要: 首先配置DNSvi /etc/resolv.conf加入:nameserver 192.168.0.1其次配置网关:vi /etc/sysconfig/network加入:GATEWAY=192.168.0.1完整的如下:NETWORKING=yesHOSTNAME=localhost.localdomainGATEWAY=192.168.0.1然后编辑:vi /etc/sysconfig/network-scripts/ifcfg-eth0内容如下:DEVICE="eth0"HWADDR="00:0C:29:6C:BB:E6"#NM_CONTROLLE 阅读全文
posted @ 2012-01-04 21:39 无尽思绪 阅读(814) 评论(0) 推荐(1) 编辑
摘要: private void gvList_CellMouseClick(object sender, DataGridViewCellMouseEventArgs e) { if (e.Button == System.Windows.Forms.MouseButtons.Right) { DataGridView.HitTestInfo hitTestInfo = gvList.HitTest(e.X, e.Y); Point pt = gvList.PointToClient... 阅读全文
posted @ 2011-12-18 19:55 无尽思绪 阅读(231) 评论(0) 推荐(0) 编辑
摘要: 其实最开始一直没注意,用的是iis7的classic模式,结果导致很多问题。完全解释参见:http://go.microsoft.com/?LinkId=9394801 阅读全文
posted @ 2011-12-15 16:57 无尽思绪 阅读(126) 评论(0) 推荐(0) 编辑
摘要: void BindProvice() { ListController list = new ListController(); ListEntryInfoCollection lic = list.GetListEntryInfoCollection("Region", "Country.CA"); ddlProvince.DataSource = lic; ddlProvince.DataTextField = "Text"; ddlProvince.DataValueField = "Text"; ... 阅读全文
posted @ 2011-11-13 16:13 无尽思绪 阅读(424) 评论(0) 推荐(0) 编辑
摘要: public static void CreateDealerUserProfile(UserOfDealerEntity entity) { UserInfo ui = new UserInfo(); ui.FirstName = entity.FirstName; ui.LastName = entity.LastName; ui.DisplayName = ui.FirstName + " " + ui.LastName; ui.Email = entity.Ema... 阅读全文
posted @ 2011-11-13 15:42 无尽思绪 阅读(472) 评论(0) 推荐(0) 编辑
摘要: 参考:http://blog.whitesites.com/Debugging-Faulting-Application-w3wp-exe-Crashes__634424707278896484_blog.htm 阅读全文
posted @ 2011-11-10 15:10 无尽思绪 阅读(238) 评论(0) 推荐(0) 编辑
摘要: 很抑郁的一个问题,让我折腾了好久。1.如果你是单纯的使用tomcat, 可以在tomcat7\bin\catalina.bat里面修改:set JAVA_OPTS=%JAVA_OPTS% -Xms1536m -Xmx1536m -XX:NewSize=512m -XX:MaxNewSize=512m -XX:PermSize=512m -XX:+CMSClassUnloadingEnabled -XX:+CMSPermGenSweepingEnabled -XX:MaxPermSize=512m -XX:+DisableExplicitGC然后在cmd下,运行:catalina.bat run 阅读全文
posted @ 2011-10-18 12:02 无尽思绪 阅读(836) 评论(2) 推荐(0) 编辑
摘要: Installing servicesThe safest way to manually install the service is to use the providedservice.batscript. Administrator privileges are required to run this script. If necessary, you can use the/userswitch to specify a user to use for the installation of the service.NOTE:On Windows Vista or any othe 阅读全文
posted @ 2011-10-09 14:18 无尽思绪 阅读(345) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 22 下一页