一、背景系统管理员经常需要SSH 或者telent 远程登录到Linux 服务器,经常运行一些需要很长时间才能完成的任务,比如系统备份、ftp 传输等等。通常情况下我们都是为每一个这样的任务开一个远程终端窗口,因为它们执行的时间太长了。必须等待它们执行完毕,在此期间不能关掉窗口或者断开连接,否则这个...
分类:
系统相关 时间:
2015-05-08 12:32:38
阅读次数:
242
//判断是否为iPad#define ISIPAD [[[UIDevice currentDevice].model substringToIndex:4] isEqualToString:@"iPad"]//屏幕高度#define SCREEN_HEIGHT ( ISIPAD ? 480 : [[...
分类:
其他好文 时间:
2015-05-06 17:31:52
阅读次数:
108
<style>
@media screen and (max-width: 960px) {...}
@media screen and (min-width: 960px) and (max-width: 1024px) {...}
@media screen and (min-width: 1025px) and (max-width: 1280px) {...}
@media s...
分类:
其他好文 时间:
2015-05-06 15:30:23
阅读次数:
132
If you choose to create a window in Interface Builder, be sure to select the Full Screen at Launch option in the Attributes inspector so that the wind...
在写自适应网页的时候,我们需要网页有几种显示方式,我们可以用CSS实现这个功能使用CSS提供的媒体查询,我们可以根据屏幕分辨率来使用相应的CSS样式@media screen and (max-width: 1000px) {/*此条件表示最大宽度为1000,也就是如果宽度小于1000则执行以下CS...
分类:
Web程序 时间:
2015-05-06 10:29:06
阅读次数:
138
屏幕锁屏以及解锁时会分别发送两个广播SCREEN_ON和SCREEN_OFF,但是这两个action只能通过代码的形式注册才能被监听到,在AndroidManifest.xml中注册根本监听不到。public class ScreenActionReceiver extends BroadcastR...
分类:
其他好文 时间:
2015-05-05 19:22:16
阅读次数:
105
dstat& sariostat, vmstat, ifstat and much more in one.slurm网络流量图形化工具vim&emacs这个没人不知道吧~screen, dtach,tmux, byobu保持你的终端连接活跃。multitail在不同的窗口查看日志文件。tpp命令行...
分类:
系统相关 时间:
2015-05-05 18:44:51
阅读次数:
279
n my previousblogi discussed how to install devstack based openstack. Now if I need to restart individual services of openstack, in a typical openstac...
分类:
其他好文 时间:
2015-05-04 23:57:34
阅读次数:
378
Objective - c Chapter 1 Hello world 1.1 1.2.On the Welcome screen, click "Create a new Xcode project" (see Figure 2-1), or just chooseFile ->New ->N.....
分类:
其他好文 时间:
2015-05-04 23:43:17
阅读次数:
257
首先说下让自己的程序支持iPhone6和6+,第一种使用官方提供的launch screen.xib,这个直接看官方文档即可,这里不再多述;第二种方法是和之前iPhone5的类似,比较简单,为iPhone6和6+添加两张特殊的png
iPhone6:命名:Default-375w-667h@2x.png 分辨率:750*1334
6+ 命名:Default-414w-736h@3x...
分类:
移动开发 时间:
2015-05-04 18:05:24
阅读次数:
135