privatevoidbutton1_Click(objectsender,EventArgse){Environment.SpecialFolderspecialFolder1=Environment.SpecialFolder.DesktopDirectory;textBox1.Text=Sys...
分类:
其他好文 时间:
2014-06-18 21:24:58
阅读次数:
302
[root@bgw-t ~]# vi /etc/init/control-alt-delete.conf#exec /sbin/shutdown -r now "Control-Alt-Delete pressed"注释掉原有的然后用 init q 命令使刚才的修改立即生效.init Q或init ...
分类:
其他好文 时间:
2014-06-18 19:57:48
阅读次数:
229
argv是在脚本内部使用,旨在接受命令传参比如,一个脚本argv.py,代码里面有,sys.argv[1],,sys.argv[2],那么运行这个脚本时,必须在后面跟两个参数,用空格隔开,如:python argv.py hello world 示例如下:首先编辑脚本 argv.py#coding:...
分类:
其他好文 时间:
2014-06-18 14:35:13
阅读次数:
191
我们这一节主要来看Controller Controller有两种: Primary Controller: 真正控制vswitch的flow table,vswitch会保持和controller的连接,如果失败,取决于bridge的fail mode。一个vswitch可以连接多个Control...
分类:
其他好文 时间:
2014-06-18 14:31:58
阅读次数:
530
TIWGrid 最终通过 Html Table 呈现; 其每个 Cell 都是一个 TIWGridCell 对象, Cell 对象的 Control 属性非常好, 可以非常方便地嵌入其他控件.TIWGrid 所在单元及继承链:IWCompGrids.TIWGrid 主要成员:property Cel...
分类:
Web程序 时间:
2014-06-18 13:45:37
阅读次数:
453
项目中引入Autofac的目的是为了实现控制反转,即IoC,Inversion of Control。控制反转可以有效的降低类之间的相互依赖关系,增加架构的弹性,降低软件复杂度。 示例代码: IProvinceRepository.csusing System;using System.Co...
分类:
Web程序 时间:
2014-06-18 13:07:58
阅读次数:
178
最近在网上查找了很多的ef5实现left join的方法,很遗憾没有找到满意的结果,经过自己的研究终于发现了点眉目,所以分享一下
EF5: var x = ef.SYS_MODULE.GroupJoin(ef.SYS_ROLEMODULES, m => m.MKID, n => n.MKID, (w, c) =>
new { A = c, v = w });
说明:上...
分类:
Web程序 时间:
2014-06-18 12:16:35
阅读次数:
283
Structural Things
An
active class is a class whose objects own one or
more processes or threads and therefore can initiate control activity. An active class is just like a class except that it...
分类:
其他好文 时间:
2014-06-17 22:44:27
阅读次数:
310
/** linux/kernel/printk.c** Copyright (C) 1991, 1992 Linus Torvalds** Modified to make sys_syslog() more flexible: added commands to* return the last ...
分类:
其他好文 时间:
2014-06-17 21:10:57
阅读次数:
275
2.1.1 IoC是什么Ioc—Inversion of Control,即“控制反转”,不是什么技术,而是一种设计思想。在Java开发中,Ioc意味着将你设计好的对象交给容器控制,而不是传统的在你的对象内部直接控制。如何理解好Ioc呢?理解好Ioc的关键是要明确“谁控制谁,控制什么,为何是反转(有...
分类:
编程语言 时间:
2014-06-17 20:56:13
阅读次数:
320