C#在foreach循环中修改字典等集合出错:System.InvalidOperationException: Collection was modified; enumeration operation may not execute.这是因为在foreach中不允许修改集合,可通过如下方式修改...
分类:
其他好文 时间:
2014-08-26 17:11:46
阅读次数:
489
PHP运行模式有4钟:1)cgi 通用网关接口(Common Gateway Interface)) 2) fast-cgi 常驻 (long-live) 型的 CGI 3) cli 命令行运行 (Command Line Interface) 4)web模块模式 (apache等web服务器运行的...
分类:
Web程序 时间:
2014-08-26 16:45:36
阅读次数:
264
使用Python的MySQLdb模块连接并操作MySQL的时候,对于中文,查询时候查不出来,插入数据时候是乱码。很头疼。最后的解决办法如下:
conn = MySQLdb.connect(...)
cur = conn.cursor()
cur.execute("SET NAMES utf8;")
cur.execute("SET CHARACTER SET utf8;")
cur.exec...
分类:
数据库 时间:
2014-08-26 13:42:10
阅读次数:
246
理论上Struts 2.0的Action无须实现任何接口或继承任何类型,但是,我们为了方便实现Action,大多数情况下都会继承 com.opensymphony.xwork2.ActionSupport类,并重载(Override)此类里的String execute()方法。由JavaDoc可知...
分类:
其他好文 时间:
2014-08-26 09:41:45
阅读次数:
164
Run the following command first to start the mongo servermongod run --config /usr/local/etc/mongod.confAssuming you installed mongo usingBrew.More inf...
分类:
数据库 时间:
2014-08-26 00:10:15
阅读次数:
554
http://herongyang.com/jtool/jdb.htmlhttp://www.rhcedan.com/2010/06/22/killing-a-java-thread/用处:上去杀死一个线程,!"jdb" Command"jdb": A command line tool that ...
分类:
数据库 时间:
2014-08-25 19:10:54
阅读次数:
508
----2014.8.25日期类型转成刻度字符串select to_char(back_date,'DD-MM-YYYY HH:MI:SS') from BACKUP_SERVICE_LOG;insert into出错可以做Log记录EXECUTE DBMS_ERRLOG.CREATE_ERROR_...
分类:
数据库 时间:
2014-08-25 18:48:44
阅读次数:
243
1. Program -- > execute in background ---- >2. output device: MAIL ---- > PRINT OUT immediately3. setup the datetime schedule
分类:
其他好文 时间:
2014-08-25 16:20:04
阅读次数:
178
setup.py install 报错
error: command 'mt.exe' failed: No such file or directory
或者 Unable to find vcvarsall.bat
于是 用 setup.py insall build --compiler=mingw32
担心没装 mingw32,但是喜悦地发现以前装 ...
分类:
其他好文 时间:
2014-08-25 02:20:13
阅读次数:
238