系统管理员经常需要SSH 或者telent 远程登录到Linux 服务器,经常运行一些需要很长时间才能完成的任务,比如系统备份、ftp 传输等等。通常情况下我们都是为每一个这样的任务开一个远程终端窗口,因为它...
分类:
其他好文 时间:
2015-08-19 21:26:29
阅读次数:
154
在mac上出现这种错误,多是与文件夹的权限有关,有人建议把~/.meteor目录删除,重新下载安装。在墙内重新下载安装的代价非常之大。简单的解决方法,便是把~/.meteor,以及当前项目目录的权限完全放开chmod -R 777 *在build过程中遇到未名的错误,可以尝试把cordova plu...
分类:
移动开发 时间:
2015-08-19 20:17:18
阅读次数:
134
一、设置meta标签见文知意允许全屏模式浏览状态条样式忽略数字识别为电话号码安卓自动禁用,IOS不会自动识别邮件地址二、使用百分比布局,使用rem单位和mediaQueryhtml { font-size: 62.5%; /* 10÷16=62.5% */}@media only screen...
分类:
移动开发 时间:
2015-08-19 19:31:05
阅读次数:
134
如果没有screen命令,那么需要装一下第一步安装yyum install screen然后rpm -qa|grep screenscreen-4.0.3-4.el5这个是我安装的截图好了,过程中有个要输入y和N的,输入y即可。最后我们看到了Complete! 哈哈安装成功了。 下面说说这个命令的用...
分类:
系统相关 时间:
2015-08-19 19:12:10
阅读次数:
149
解决办法(不完美,至少比每次开机手工调亮度好。):
1.
代码:
sudo apt-get install xbacklight
2.
代码:
gnome-session-properties
3.
附件:
参考:http://www.maketecheasier.com/configure-screen-brightness-in-ubuntu/
...
分类:
系统相关 时间:
2015-08-18 22:55:49
阅读次数:
189
经常为不同分辨率设备或不同窗口大小下布局错位而头疼,可以利用@media screen实现网页布局的自适应,但是怎样兼容所有主流设备就成了问题。到底分辨率是多少的时候设置呢?先看下面的代码,这是从bootstrap中遍历出来的,min-width来确认分别是768、 992、1200。当然了过去也有...
分类:
Web程序 时间:
2015-08-18 15:34:57
阅读次数:
123
@media?screen?and?(min-width:1080px){
.box{?width:?1080px;}.content{width:?1040px;}
.img{height:180px;}
.img{font-size:?48px;line-height:?180px;}
.title{font-size:?46px;line-height:?100px...
分类:
Web程序 时间:
2015-08-18 12:29:50
阅读次数:
268
Implement the following operations of a queue using stacks.push(x) -- Push element x to the back of queue.pop() -- Removes the element from in front o...
分类:
其他好文 时间:
2015-08-18 06:33:25
阅读次数:
112
Implement the following operations of a stack using queues.push(x) -- Push element x onto stack.pop() -- Removes the element on top of the stack.top()...
分类:
其他好文 时间:
2015-08-18 06:32:36
阅读次数:
90
方法一:screenOrientation=application.getResources().getConfiguration().orientation;方法二:screenOrientation=activity.getRequestedOrientation();获取当前activity的横竖方向动态设置屏幕横竖屏:setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);..
分类:
移动开发 时间:
2015-08-17 19:45:14
阅读次数:
275