调试so手机需要root权限,同时开启调试模式。
1、上传android_server到/data/local/tmp
adb push android_server /data/local/tmp
2、root权限执行./android_server,结果如下root@android:/data/local/tmp # ./android_server
./android_server
ID...
分类:
移动开发 时间:
2015-08-04 17:15:04
阅读次数:
256
server{listen80;server_name~^(?<subdomain>.+)\.youwebname\.com$;indexindex.htmlindex.htmindex.php;root/wwwroot/$subdomain;error_page404=/404.html;location~.*\.(php|php5)?${#fastcgi_passunix:/tmp/php-cgi.sock;fastcgi_pass127.0.0.1:9000;fastcgi_indexind..
分类:
其他好文 时间:
2015-08-04 16:02:24
阅读次数:
129
在Ubuntu 14.04使用cron实现作业自动化作者:chszs,版权所有,未经同意,不得转载。博主主页:http://blog.csdn.net/chszsCron是Linux系统中最有用的工具之一,cron作业是在指定时间到来时被调度执行的作业。
最常见的自动化系统管理和自动维护工作,比如每天发出的按计划完成了备份的通知,或者是按计划定时清理/tmp/目录的通知。还有很多Web应用程序也需要...
分类:
系统相关 时间:
2015-08-04 15:43:31
阅读次数:
157
只有管理员才可以改变文件属主:chownusernamefile...把文件的属主改为username-R修改目录及其内部文件的属主--reference=/path/to/somefilefile1引用参考,将file1文件的属主改为somefile的属主chgrpGRPNAMEfile,。。。改变文件属组-R也可以同时改,如下:chownroot:root/tmp/..
分类:
其他好文 时间:
2015-08-03 14:59:05
阅读次数:
127
use rc GODECLARE @nnn varchar(100)DECLARE cur1 cursor forselect [name] from sys.tableswhere name LIKE 'index_%'drop table #Tmp --删除临时表#Tmpcreate tab.....
分类:
数据库 时间:
2015-08-03 13:04:14
阅读次数:
334
1、交集 #方法一:
a=[2,3,4,5]
b=[2,5,8]
tmp?=?[val?for?val?in?a?if?val?in?b]
print?tmp
#[2,?5]
#方法二
print?list(set(a).intersection(set(b))) 2、并集 print?list(set(a).union(set(b))...
分类:
其他好文 时间:
2015-08-02 13:52:07
阅读次数:
395
1. Linux 参考: archlinux fstab和Solid State Drives 1) 修改fstab开启Trim /dev/sda1 / ext4 noatime,discard 0 1
tmpfs /tmp tmpfs nodev,nosuid,noexec,relatime,mode=1777,size=15% 0 0
tmpfs ...
分类:
其他好文 时间:
2015-08-01 22:10:04
阅读次数:
238
#include#includeusing namespace std;void findOddMin(vector> &a, int m, int n, vector &r){ int len = r.size(); vector tmp; for (int i = 0; i 0) b = r[i...
分类:
其他好文 时间:
2015-07-31 21:42:39
阅读次数:
104
1.shell 命令选项: 选项是一个破折号,选项是可有可无的,有可能需要加上参数,不需要加上参数的可以合并 2.$patch --verbose --backup -p1</tmp/xxx-patch 长选项的开头是一个破折号还是两个破折号,视程序而定...
分类:
系统相关 时间:
2015-07-31 18:47:30
阅读次数:
161
//给n种箱子子
//买下每种箱子后才能买需要这种箱子能装的物品
//依赖背包
#include
#include
#include
using namespace std ;
const int maxn = 100010 ;
int dp[maxn] ;
int tmp[maxn] ;
int main()
{
int n , m ;...
分类:
其他好文 时间:
2015-07-31 16:26:26
阅读次数:
125