上一页 1 ··· 27 28 29 30 31 32 33 34 35 ··· 54 下一页
摘要: 利用命令行安装包 阅读全文
posted @ 2013-08-10 20:39 Master HaKu 阅读(1274) 评论(0) 推荐(0)
摘要: Thread.Join()在MSDN中的解释很模糊:Blocks the calling thread until a thread terminates有两个主要问题:1.什么是the calling thread? 2.什么是a thread? 首先来看一下有关的概念: 我们执行一个.exe文件实际上就是开启了一个进程,同时开启了至少一个线程,但是真正干活的是线程,就好比一个Team有好几个人,但是真正干活的是人不是Team. 具体到代码来说,以Console Application为例:程序Test.exe从Main函数开始运行,实际上是有一个线程在执行Main函数... 阅读全文
posted @ 2013-08-08 21:30 Master HaKu 阅读(506) 评论(0) 推荐(0)
摘要: What’s New in C# 3.0 Language Integrated Query(LINQ) - LINQ enables queries to be written in C# program to query both local collections (such as lists or XML documents) or remote data sources (such as a database) Implicitly typed local variables - let you omit the variable type in a declaration stat 阅读全文
posted @ 2013-07-22 11:05 Master HaKu 阅读(367) 评论(0) 推荐(0)
摘要: SQL行转列是比较经典的问题:比如有如下数据表,有如下某一款号(表1): 颜色 尺码 库存 红色 S 10 红色 M 80 白色 L 50 白色 S 60要将上面的表转化为如下格式(表2):颜色 S M L红色 10 80 0白色 60 0 50动态sql:create table #tbl_0( color nvarchar(12), nsize nchar(1), store int)insert into #tbl_0select 'red', 'S', '10' union allselect 'red', 'M& 阅读全文
posted @ 2013-07-19 17:15 Master HaKu 阅读(452) 评论(0) 推荐(0)
摘要: 错误:/bin/bash^M: bad interpreter: 没有那个文件或目录解决方案:运行脚本时出现了这样一个错误,打开之后并没有找到所谓的^M,查了之后才知道原来是文件格式的问题,也就是linux和windows之间的不完全兼容。。。具体细节不管,如果验证:vim test.sh:set ff?如果出现fileforma=dos那么就基本可以确定是这个问题了。:set fileformat=unix:wq! 阅读全文
posted @ 2013-07-05 11:22 Master HaKu 阅读(1185) 评论(0) 推荐(0)
摘要: 1. 登录mysql mysql -uroot -p2. 执行脚本 mysql>use dbname; mysql>source /home/db/xx.sql 阅读全文
posted @ 2013-07-05 10:02 Master HaKu 阅读(685) 评论(0) 推荐(0)
摘要: Objects and classesA class consists primarily of two things: variables that can store data and methodsthat can perform operations.SubclassesClasses can also inherit functionality from an existing classInstance and class variablesChanging the value of an instance variable in one objectwill not affect 阅读全文
posted @ 2013-06-09 17:34 Master HaKu 阅读(187) 评论(0) 推荐(0)
摘要: Return Types of Action:1. Content()Returns a ContentResult that renders arbitrary text, e.g., “Hello, world!”2. File()Returns a FileResult that renders the contents of a file, e.g., a PDF.3. HttpNotFound()Returns an HttpNotFoundResult that renders a 404 HTTP status code response.4. JavaScript()Retur 阅读全文
posted @ 2013-06-08 13:53 Master HaKu 阅读(215) 评论(0) 推荐(0)
摘要: functin(arg) { var arg2 = ....; arguments.callee(arg2); ...} 阅读全文
posted @ 2013-06-06 17:30 Master HaKu 阅读(203) 评论(0) 推荐(0)
摘要: VS: /// + EnterEclipse: /** + Enter 阅读全文
posted @ 2013-06-06 11:08 Master HaKu 阅读(191) 评论(0) 推荐(0)
上一页 1 ··· 27 28 29 30 31 32 33 34 35 ··· 54 下一页