06 2011 档案

摘要:新开一个终端,对,就是要输入jobs后没有输出的终端。1终止MYSQL服务。sudo killall mysqld2特殊运行MYSQLmysqld_safe --skip-grant-tables &登录mysql -u root设密码 mysql> use mysql; Reading table information for completion of table and column names You can turn off this feature to get a quicker startup with -A Database changed mysql> 阅读全文
posted @ 2011-06-29 21:08 snowlueng 阅读(164) 评论(0) 推荐(0) 编辑
摘要:[Ctrl-z]是当前任务转到后台中断。fg 1可以把1的任务转回来当前终端。bg 1可以把1的任务转回到后台终端。jobs -l 可以查看当前进行的任务。当一个任务bg时,当前的treminal关闭就会关闭,可以用nohup来标识可以继续运行(nohup->no hang up不挂断)命令是nohup command & 阅读全文
posted @ 2011-06-27 17:10 snowlueng 阅读(318) 评论(0) 推荐(0) 编辑
摘要:无语,我看网上的教程都是2007的了……我今天才开始读,没错,我在上学的时候还在看泛型(错了,上课那些根本不是泛型……)天啊,进正题吧!linq走不掉的就是2.0时代就有的匿名delegate.lamba表达式是一种语法,生成的IL和匿名delegate是一样的。(不知有没有错)()=>{} 这个是原型吧……其中有协变和逆变, 是关于返回值和参数的……其实lamba早有了,linq新的是基于扩展方法的语法。写法就是from x in xenumerableselect x其中可以加where,orderby,等等。这些也有对应的扩展方法,如where()等。返回的是一个IEnumerab 阅读全文
posted @ 2011-06-26 23:12 snowlueng 阅读(440) 评论(0) 推荐(0) 编辑
摘要:是一个Console的app使用方法 :把Translate.exe放到system32的文件夹中,打开cmd,输入Translate空格hello ,就可以查到hello在google上的解释。如果不放在system32中就要自己设定系统环境变量Path使用的是.net4.0。源码:1usingSystem.Net;2usingSystem.IO;3usingSystem.Text;4usingSystem;56namespaceTranslate7{8classProgram9{10staticvoidMain(string[]args)11{12HttpWebRequestwebrequ 阅读全文
posted @ 2011-06-26 22:20 snowlueng 阅读(1148) 评论(4) 推荐(0) 编辑