var userF = new List(); User m1 = new User() { Id =
"0" }; userF.Add(m1); var us...
分类:
其他好文 时间:
2014-05-09 04:26:48
阅读次数:
280
如何判断是否是 iPad 浏览器呢,关键是看它的 User Agent 中是否有 iPad。iPad
使用的是 Safari Mobile 浏览器,他的的 User Agent 是:Mozilla/5.0 (iPad; U; CPU OS 3_2 like
Mac OS X; en-us) Appl...
分类:
移动开发 时间:
2014-05-09 04:22:25
阅读次数:
502
1、Ubuntu12.04 安装nginx+php+mysql
(lnmp)的web服务器环境http://blog.db89.org/ubuntu12-04-install-nginx-php-mysql-lnmp-of-the-web-server-environment/2、Ubuntu
12...
分类:
数据库 时间:
2014-05-09 03:57:10
阅读次数:
308
Ubuntu14.04下:1. 安装cups
和cups-pdf,其中cups-pdf是虚拟打印的主要模块: sudo apt-get install cups-pdf2. cups-pdf 的
backend 要求 root 权限,所以设置一下权限: sudo chmod 4755 /usr/.....
分类:
其他好文 时间:
2014-05-09 03:50:52
阅读次数:
271
SEAndroid(Security-Enhanced Android),是将原本运用在Linux操作系统上的MAC强制存取控管套件SELinux,移植到Android平台上。可以用来强化Android操作系统对App的存取控管,建立类似沙箱的执行隔离效果,来确保每一个App之间的独立运作,也因此可以阻止恶意App对系统或其它应用程序的攻击。
SEAndroid的中心理念是,即使root权限被篡...
分类:
移动开发 时间:
2014-05-08 17:28:51
阅读次数:
442
1、目标物理机sshallowall,默认22端口;2、OptionsAdvanced:Reconfiguredestinationvm关闭3、HelperVMnetworkconfiguration必须填写可通IP地址(重要)4、修复grub>#fdisk-l#查看第几块硬盘上的第几分区挂载到了/boot上,对应到下面的root(hd0,0)这里。
>#chroot/mnt/s..
分类:
系统相关 时间:
2014-05-08 17:03:05
阅读次数:
490
swap分区交换空间,正是因为交换空间的存在,使我们的内存可以过载使用。在物理买内存不足的情况下,拿swap来应急。free:查看当前系统上物理内存和交换空间的使用情况。-m[root@vim-ap~]#freetotalusedfreesharedbufferscachedMem:1026868419232607636023704284224-/+buffers/..
分类:
系统相关 时间:
2014-05-08 16:55:16
阅读次数:
435
建立403error页面,403.html<!DOCTYPEhtmlPUBLIC"-//W3C//DTDXHTML1.0Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html><head><title>Error403</title></head><body><b><fontsize=5>S..
分类:
其他好文 时间:
2014-05-08 16:42:09
阅读次数:
541
使用shell判断系统时区if[[!`grep-aCST-8/etc/localtime`]];then
rm-rf/etc/localtime
ln-s/usr/share/zoneinfo/Asia/Shanghai/etc/localtime
fiNginx日志切割脚本#!/bin/bash
logs_path="/alidata/server/log/nginx/"
mv${logs_path}access.log${logs_path}access_$(date-d"ye..
分类:
系统相关 时间:
2014-05-08 16:41:18
阅读次数:
403
Sencha removed the refreshFn from the pullrefresh plugin in ST 2.2. Here is an user extension with gives the old
functionality back to you.
/**
* This user extension gives st 2.3.0 Pullrefresh the...
分类:
其他好文 时间:
2014-05-08 16:15:05
阅读次数:
390