在模拟器中:SharedPreferences将XML文件保存在/data/data//shared_prefs目录下,openFileOutput方法将文件保存在/data/data//files目录下SQLite数据库文件存放在/data/data//databases目录下
分类:
数据库 时间:
2014-07-25 19:08:31
阅读次数:
307
#mkdir /mnt/ISO#mount -o loop /root/CentOS-6.4-x86_64-bin-DVD1.iso /mnt/ISO/#mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo_ba...
分类:
其他好文 时间:
2014-07-25 14:24:31
阅读次数:
235
比较裸的题了。分解因数后消元便行了,答案就是2的自由元数量次方减一(因为空集不算答案) \(2^k-1\)//{HEADS#define FILE_IN_OUT#include #include #include #include #include #include #include #includ...
分类:
其他好文 时间:
2014-07-25 14:08:11
阅读次数:
258
首先所有目录都以 "File:///"开头,无论Mac或者Windows后面的路径Windows: E:/WorkGround/Txt.txt --> "File:///E:/WorkGround/Txt.txt"Mac: /User/eran/Documents/Txt.txt --> "Fil....
分类:
其他好文 时间:
2014-07-25 14:07:41
阅读次数:
209
public void Create( string mdbPath ){if( File.Exists(mdbPath) ) //检查数据库是否已存在{throw new Exception( "目标数据库已存在,无法创建 ");}// 可以加上密码,这样创建后的数据库必须输入密码后才能打开mdb...
分类:
数据库 时间:
2014-07-25 14:05:11
阅读次数:
429
写个 crontab ,命令是类似这样的/path/to/script `date +%Y-%m-%d`直接运行很正常,但是在 crotnab 里就出错。/bin/sh: -c: line 1: unexpected EOF while looking for matching ``'/bin/sh...
分类:
其他好文 时间:
2014-07-25 14:02:15
阅读次数:
225
题意:给你n,m 问你n-m中有多少个数首位等于末位。解题思路:数位DP,从0-n有多少个,这样分开计算,首先把每一位所有可能都枚举出来,然后在一位一位的比对DP解题代码: 1 // File Name: 204a.cpp 2 // Author: darkdream 3 // Created Ti...
分类:
其他好文 时间:
2014-07-25 14:01:21
阅读次数:
236
# starts the app server (non-daemonized)$ padrino start # starts the app server (daemonized) with given port, environment and adapter$ padrino start -...
分类:
其他好文 时间:
2014-07-25 13:59:31
阅读次数:
185
1、How Do I change extension of php file RewriteEngine?On
RewriteCond?%{REQUEST_FILENAME}?!-f
RewriteRule?^(.*)\.html$?$1.php?[L]...
分类:
其他好文 时间:
2014-07-25 11:39:41
阅读次数:
255
目标:局域网的人访问某个域名时,拦截下来到指定的ip,做缓存节省带宽 配置: 1;>yum install dnsmasq -y 2 ; >vi /etc/dnsmasq.conf resolve-file=/etc/dnsmasq.resolv.conf addn-hosts=/etc/dnsmasq.hosts r...
分类:
其他好文 时间:
2014-07-25 11:39:31
阅读次数:
866