新的语言
WWDC简短的介绍,新的语言Swift就问世了,虽然新语言的名字导致贴吧下歌手粉丝和开发者们争抢地盘- -,不过雨燕就是这么来了。
WWDC keynote里给Swift打上了很多标签:
Closures,Generics,Namespaces,Type inference,Multiple return types
闭包,泛型支持,支持命名空间,去除隐式...
分类:
其他好文 时间:
2014-06-20 11:19:51
阅读次数:
207
Execute shell commandsThere are a number of
different ways to run shell commands from Ruby.TheexeccommandKernel#execreplaces
the current process and r...
分类:
其他好文 时间:
2014-06-12 06:50:15
阅读次数:
281
Multiple markers at this line...
分类:
其他好文 时间:
2014-06-11 06:47:53
阅读次数:
266
??
管理集群中的 crs 管理员
oracle Managing CRS Administrators in the Cluster
Use the following commands to manage CRS Administrators in the cluster:
The CRS Administrator is a predefined administrator role...
分类:
其他好文 时间:
2014-06-10 11:00:29
阅读次数:
238
有时候我们展示给用户的表单中的checkbox,radio,selec等标签的一些项是默认选中的。比如:当用户修改文章的时候,如果对应的栏目为下拉框的话,那么它的默认选中值应该是原来的栏目位置。
可以使用jquery中的val()方法给select、checkbox、radio设置默认选中项。
对于multiple类型的select和checkbox还可以设置多个默认值。
效果图:
...
分类:
其他好文 时间:
2014-06-08 16:16:19
阅读次数:
233
POJ 2356 find multiple
题意:
输入一个正整数 N ,接着输入 N 和 正整数 nums[1], nums[2], ... ... , nums[N],
试问可否从这 N 个正整数中找出一组连续的数,它们的和能被 N 整除。
思路:
鸽巢原理,构造一个序列 sums[1] = nums[1], sums[2] = nums[1] + nums[2], ... ....
分类:
其他好文 时间:
2014-06-08 15:12:34
阅读次数:
213
MDI窗体设计:(Multiple-Document Interface)
用途:用于同时显示多个文档,每个文档显示在各自的窗体中。
起到容器作用的窗体被称为"父窗体",可放在父窗体中的其他窗体称为"子窗体",也称为"MDI子窗体"。每个应用程序只能有一个父窗体,并且其他子窗体不能移出父窗体的框架区域。
1.设置父窗体:在窗体的属性面板 将IsMdiContainer属性设置为True即可...
Variablesvar myInt = 1var myExplicitInt: Int = 1 //
explicit typevar x = 1, y = 2, z = 3 // declare multiple integersmyExplicitInt =
2 // set to anoth...
分类:
移动开发 时间:
2014-06-07 17:03:36
阅读次数:
357
首先通过VMWare修改虚拟机参数,增加虚拟机磁盘空间(请参考相关资料),其次在虚拟机中加入扩容的磁盘空间。
1、使用parted查看可分配的空间
[root@stest ~]# parted
GNU Parted 1.8.1
使用 /dev/sda
Welcome to GNU Parted! Type 'help' to view a list of commands.
(part...
分类:
系统相关 时间:
2014-06-07 15:34:37
阅读次数:
296
这篇文章几乎是对Push SSH public keys to multiple
host的翻译,谢谢该作者。使用SSH登陆、执行命令到远程机器需要输入密码,很多系统需要免输密码访问远程机器,比如hadoop主节点访问子节点时,这时可以使用ssh-copy-id命令将公钥拷贝到远程机器上,比如:
s...
分类:
其他好文 时间:
2014-06-07 10:42:57
阅读次数:
208