希望在这里留下自己成长的足迹1 public class Hello2 {3 public static void Main()4 {5 Console.WriteLine("hello world!");6 }7 }
分类:
其他好文 时间:
2014-08-05 15:43:09
阅读次数:
205
如果有时候我们忘记对构造函数使用new的话,构造函数的this将指向window function Person(){ this.name = 'Julie'; } var good_moring = Person(); console.log(good_...
分类:
编程语言 时间:
2014-08-05 15:27:19
阅读次数:
229
虽然关于null的一切争论永不停息,但根据实际开发经历,很多时候需要判断无聊的null,并且有些的判断是可有可无的,尤其是在表现层。 string e = null; if (e != null) { Console.WriteLine(e.ToString()); }上述代码如果能换成这样...
分类:
其他好文 时间:
2014-08-05 15:26:49
阅读次数:
203
Redirect "all" output to a single file: Run: test.bat?>?test.txt?2>&1 and you‘ll get this text on screen (we‘ll never get rid of this line on screen, as it is sent to the Console and cannot be r...
1.设计接口类: public interface IBase{ void Somefun();}2.设计扩展插件类: class PluginCls:IBase{ public void Somefun() { Console.WriteLine("hello ,i am derived clas...
分类:
其他好文 时间:
2014-08-05 13:45:39
阅读次数:
159
web敏捷开发 p317depot > ruby script/console>>rs = ActionController::Routing::routes可以简单测试比如>>puts rs.routes>>rs.recognize_path "/store">>rs.generate :cont...
分类:
其他好文 时间:
2014-08-05 00:31:58
阅读次数:
252
定义好实体类和上下文类在 Package Manager Console 输入以下命令1、Enable-Migrations启用数据迁移功能,该命令通常会在项目根目录下生成 Migrations 文件夹,文件夹内通常会有两个文件201408020650593_InitialCreate.cs --....
分类:
数据库 时间:
2014-08-05 00:16:38
阅读次数:
1213
转载请注明出处,谢谢!
linux下的终端及串口的相关概念有:
tty,控制台,虚拟终端,串口,console(控制台终端)详解
部分内容整理于网络。
终端/控制台
终端和控制台都不是个人电脑的概念,而是多人共用的小型中型大型计算机上的概念.
1.终端
一台主机,连很多终端,终端为主机提供了人机接口,每个人都通过终端使用主机的资源. 终端有字符哑终端和图形终端两种.
控制台...
分类:
系统相关 时间:
2014-08-04 21:47:08
阅读次数:
401
ActiveMQ是Apache出品,最流行的,能力强劲的开源消息总线。ActiveMQ是一个完全支持JMS1.1和J2EE1.4规范的JMSProvider实现,尽管JMS规范出台已经是很久的事情了,但是JMS在当今的J2EE应用中间仍然扮演着特殊的地位。1安装定义activemq安装目录为/usr/local/activemq定义activem..
分类:
其他好文 时间:
2014-08-04 18:08:29
阅读次数:
211
1,概述CommonJS是服务器端模块的规范,Node.js采用了这个规范。根据CommonJS规范,一个单独的文件就是一个模块。加载模块使用require方法,该方法读取一个文件并执行,最后返回文件内部的exports对象。下面就是一个简单的模块文件example.js。console.log("...
分类:
Web程序 时间:
2014-08-04 17:33:37
阅读次数:
300