IBatis.net在多线程中报错“WebSessionStore: Could not obtain reference to HttpContext”分析:因为ibatis的ISqlMapSession是存储在Http.Request.Items上的,在你新开的线程里是不能操作IIS的上的线程的...
分类:
Web程序 时间:
2014-07-11 22:52:37
阅读次数:
331
Describe how you could use a single array to implement three stacks.Divide the array into three fixed parts, each stands for a stack./*Fixed Size Stac...
分类:
其他好文 时间:
2014-07-11 10:45:34
阅读次数:
189
错误代码:Failed to Initialize Windows Azure Storage EmulatorAdded reservation for http://127.0.0.1:10000/ in user account Richard-PC\Richard.Added reserva...
#!/usr/bin/env rubyclass MegaGreeter attr_accessor :names # 初始化這個物件 def initialize(names = "World") @names = names end # 向每個人說 hi def say_hi ...
分类:
其他好文 时间:
2014-07-09 17:12:13
阅读次数:
200
安装mysql出现Could NOT find Curses (missing: CURSES_LIBRARY CURSES_INCLUDE_PATH),提示解决方法[root@localhost software]# cd mysql-5.5.11[root@localhost mysql-5.5...
分类:
其他好文 时间:
2014-07-09 15:23:41
阅读次数:
228
原因:没有配置resolv.conf
解决方法:
到/etc目录下配置resolv.conf加入nameserver IP,如:
nameserver 8.8.8.8
nameserver 8.8.4.4
search localdomain
保存再次运行上面命令就可以。
关键一点 serach那一行要在nameserver的后面...
分类:
其他好文 时间:
2014-07-09 13:13:24
阅读次数:
137
题目
Given a binary tree containing digits from 0-9 only, each root-to-leaf path could represent
a number.
An example is the root-to-leaf path 1->2->3 which represents the number 123.
Find ...
分类:
其他好文 时间:
2014-07-08 21:43:08
阅读次数:
219
《Think in java·第 4 章初始化和清除》
本章介绍对象的创建和消除。
4.1 用构建器自动初始化
【You can imagine creating a method called initialize( ) for every class you write.】一句话的正确解读是,你(男生)将自己想象成为女生。所以,我专门用一节 《 编程导论(Java)·2.3.6 构造器...
分类:
其他好文 时间:
2014-07-08 15:52:03
阅读次数:
223
情景:在一台真机中运行项目。
提示:Could not change executable permissions on the application.
解决:真机中已经有一个同名的应用。bundle identifier 一样。删掉那个应用就可以了。
参考:http://stackoverflow.com/questions/12547706/could-not-change-execu...
分类:
移动开发 时间:
2014-07-08 14:22:34
阅读次数:
289
[root@centos64x64mysql-5.1.65]#/etc/init.d/mysqldrestartMySQLmanagerorserverPIDfilecouldnotbefound![FAILED]解决办法第一,先删除rm-rf/var/lib/mysql,然后重新初始化/usr/local/mysql/bin/mysql_install_db--user=mysql
分类:
数据库 时间:
2014-07-08 09:19:32
阅读次数:
281