1:进入cmd2:命令:mysql -u root mysql -p 回车输入密码:3:use mysql;4:命令:update user set password=password('新密码') where user='root'; //最后分号不要丢5:命令:flush privileges....
分类:
数据库 时间:
2014-07-16 23:20:34
阅读次数:
260
//进入页面执行 //读取保存的Cookie信息 HttpCookie cookies = Request.Cookies["USER_COOKIE"]; if (cookies != nul...
分类:
其他好文 时间:
2014-07-16 23:19:58
阅读次数:
245
git init # 初始化本地git仓库(创建新仓库)git config --global user.name "xxx" # 配置用户名git conf...
分类:
其他好文 时间:
2014-07-16 23:14:18
阅读次数:
223
原文:IE10、IE11 User-Agent 导致的 ASP.Net 网站无法写入Cookie 问题 你是否遇到过当使用一个涉及到Cookie操作的网站或者管理系统时,IE 6、7、8、9下都跑的好好的,唯独到了IE10、11这些高版本浏览器就不行了?好吧,这个问题码农连续2天内遇到了2次。那么,...
分类:
Web程序 时间:
2014-07-16 23:13:07
阅读次数:
334
>>> import psutil获取cpu信息>>> psutil.cpu_times()scputimes(user=128258.38, nice=12.29, system=88369.31, idle=6713420.33, iowait=3290.63, irq=1069.04, sof...
分类:
编程语言 时间:
2014-07-16 23:11:20
阅读次数:
365
1. add a new branch cd workspace git branch user1/newbranch1 git checkout user1/newbranch1 or git checkout -b user2/newbranch2 2. when user1/newbranch...
分类:
其他好文 时间:
2014-07-16 23:09:50
阅读次数:
164
Implement regular expression matching with support for '.' and '*'.'.' Matches any single character.'*' Matches zero or more of the preceding element....
分类:
其他好文 时间:
2014-07-12 13:17:10
阅读次数:
248
1.单一职责原则
单一职责原则的核心思想就是:系统中的每一个对象都应该只有一个单独的职责,而所有对象所关注的就是自身职责的完成。英文缩写SRP Single Responsibility Principle
单一职责原则——》“高内聚,低耦合”,每个类应该只有一个职责,此外只能提供一种功能,而引起类变化的原因应该只有一个。在设计模式中,所有的设计模式都遵循这一原则。
...
分类:
其他好文 时间:
2014-06-28 07:22:31
阅读次数:
276
我勒个去,上午刚搞好MySQL的编译安装,玛德一重启计算机然后重启服务又报错:[root@localhostmysql-5.5.13]#/usr/local/mysql/scripts/mysql_install_db--user=mysqlFATALERROR:Couldnotfind./bin/my_print_defaultsIfyoucompiledfromsource,youneedtorun‘makeinstall‘tocopyt..
分类:
其他好文 时间:
2014-06-28 06:21:53
阅读次数:
313
Gem::Ext::BuildError:ERROR:Failedtobuildgemnativeextension./home/chenwei/.rvm/rubies/ruby-1.9.3-p547/bin/rubyextconf.rbcheckingforruby/thread.h...nocheckingforrb_thread_blocking_region()...yescheckingforrb_wait_for_single_fd()...yescheckingforrb_hash_dup()...
分类:
其他好文 时间:
2014-06-28 00:32:22
阅读次数:
296