1.输入完成后按下Done键关闭键盘在Interface Builder中选择TextField,然后在Text Field Attributes中找到Text Input Traits,选择Return Key为Done。Ios代码 //按下Done键关闭键盘-(IBAction)textFiel...
分类:
其他好文 时间:
2014-11-09 16:38:27
阅读次数:
180
Named Pipes命名管道(Named Pipes)A little known way to connect with an Erlang node that requires no explicit distribution is through named pipes. This can be done by starting Erlang with run_erl, which wra...
分类:
其他好文 时间:
2014-11-09 11:19:15
阅读次数:
239
连接到远程节点Interacting with a running server program is traditionally done in one of two ways. One is to do it through an interactive shell kept available by using a screen or tmux session that runs in th...
分类:
其他好文 时间:
2014-11-09 09:56:37
阅读次数:
127
while命令有点象if-then和for循环的结合。while测试命令返回0退出状态,就循环一组命令。while基本格式:whiletestcommanddoothercommandsdone示例:#!/bin/bashvarl=5while[$varl-gt0]doecho$varlvarl=$[$varl-1]done[root@localhost~]#./test10.sh54321注意:因为while是检测..
分类:
系统相关 时间:
2014-11-07 15:07:25
阅读次数:
159
shell中有许多奇特的语法:
比如有以下一段脚本;
#!/bin/sh
files=`find -name *.conifg`
for i in $files
do
name=${i#*/}
dir=${name%/*}
done
name和dir都代表什么呢?
假如
i=this/is/a/path.config
那么
name=is/a/path...
分类:
系统相关 时间:
2014-11-05 17:20:00
阅读次数:
279
当我们在一个控制视图上,在UITextField输入文字信息之后,希望可以使用键盘的Done触发一个 Done的UIButton,但是刚开始我直接在-(BOOL)textFieldShouldReturn:(UITextField *)textField 内调用按键的行为:- (IBAction)D...
HelloWorld是一个简单的应用程序,用于演示如何使用一个文本域使用软键盘输入文本,以及在一个文本标签中展示文本。HelloWorld应用呈现一个简单的用户界面,当应用程序启动时,它展示一个包含一个文本域的导航栏。单击文本域输入你的名字,轻按软键盘之上的Done按钮,以关闭键盘。然后应用程序就在...
分类:
其他好文 时间:
2014-11-04 18:51:19
阅读次数:
139
http://zh.wikipedia.org/wiki/GTD GTD是英文Getting Things Done的缩写,是一种行为管理的方法,也是David Allen写的一本书的书名。GTD的主要原则在于一个人需要通过记录的方式把头脑中的各种任务移出来。通过这样的方式,头脑可以不用塞满各种需要...
分类:
其他好文 时间:
2014-11-04 17:12:45
阅读次数:
161
http://www.tldp.org/LDP/abs/html/index.html 11.1. Loops tp://www.tldp.org/LDP/abs/html/loops1.html for a
do echo -n "$a "
done for 没有in ,直接操作$@命令行参数
分类:
其他好文 时间:
2014-11-04 17:05:13
阅读次数:
227
线程的生命周期1.新建 new Thread2.就绪 在就绪队列等待,等待cpu资源分配 start3.运行状态 do job run4.结束 job done ,或者其他因素导致的线程占用的cpu资源释放5.阻塞 job break ,run 过程中,暂停run,暂停的原因可能是优先级更高的线程抢...
分类:
编程语言 时间:
2014-11-04 12:52:34
阅读次数:
181