1. Basic Regular Expression a. "^" matching the head of a line. "^" must be the first character in a regular expression ,else it only a common ch...
分类:
其他 时间:
2014-09-27 18:33:01
收藏:
0 评论:
0 赞:
0 阅读:
260
Android系统中的联系人也是通过ContentProvider来对外提供数据的,我们这里实现获取所有联系人、通过电话号码获取联系人、添加联系人、使用事务添加联系人。 获取所有联系人 1. Android系统中的联系人也是通过Con...
分类:
移动平台 时间:
2014-09-27 17:31:31
收藏:
0 评论:
0 赞:
0 阅读:
284
https://www.gitbook.io/book/abcfy2/redis-in-action-reading-notes 最近在学习redis,正在看这本书,以笔记的形式记录下这本书,方便以后翻阅。 这本书介绍很不错,入门很值得参考,图文并茂解说redis的存储数据...
分类:
其他 时间:
2014-09-27 17:31:21
收藏:
0 评论:
0 赞:
0 阅读:
291
移动充值卡开通面额: 10元20元30元50元100元300元500元 联通充值卡开通面额: 20元30元50元100元300元500元 电信充值卡开通面额: 10元20元30元50元100元200元300元500元 服务商 ? ? ? 卡号位数 密码位数 江苏...
分类:
移动平台 时间:
2014-09-27 17:31:11
收藏:
0 评论:
0 赞:
0 阅读:
245
方法是别人提供给我但,但我还时间测试,先记录下。 安装最新的5.02版本,需要对 make.sh 做一点小修改 具体如下: 1、在make.sh的84行左右添加一个操作系统的判断,mac使用的是kqueue,其中的Darwin根据自己系统...
分类:
其他 时间:
2014-09-27 17:31:01
收藏:
0 评论:
0 赞:
0 阅读:
455
$str?=?preg_replace(?"@<script(.*?)</script>@is",?"",?$str?);?
$str?=?preg_replace(?"@<iframe(.*?)</iframe>@is",?"",?$str?);?
$str?=?preg_replace(?"@<style(.*?)</style>@is",?"",?...
分类:
Web开发 时间:
2014-09-27 17:30:31
收藏:
0 评论:
0 赞:
0 阅读:
228
编辑数据包的默认存储引擎,然后重新启动Mysql服务。 mysql数据库配置文件放在服务器的什么地方 在?MySQL?安装路径下
Linux?是?/etc/my.cnf
Windows?是?my.ini...
分类:
数据库技术 时间:
2014-09-27 17:30:21
收藏:
0 评论:
0 赞:
0 阅读:
309
#!/usr/bin/envpython
importrandom
importstring
importsys
similar_char=‘0OoiI1LpP‘
upper=‘‘.join(set(string.uppercase)-set(similar_char))
lower=‘‘.join(set(string.lowercase)-set(similar_char))
symbols=‘!#$%&\*+,-./:;=?@^_`~‘
numbers=‘123456789‘
group=(..
分类:
编程语言 时间:
2014-09-27 17:29:31
收藏:
0 评论:
0 赞:
0 阅读:
305
#!/usr/bin/envpython2.7
importsys
fromosimportpath
importos
importMySQLdb
DIRNAME=path.dirname(__file__)
OPSTOOLS_DIR=path.abspath(path.join(DIRNAME,‘..‘))
sys.path.append(OPSTOOLS_DIR)
fromlibrary.mysqlimportMySQLDConfig,getMyVariables
fromoptparseimport..
分类:
数据库技术 时间:
2014-09-27 17:29:01
收藏:
0 评论:
0 赞:
0 阅读:
395
nmcliconaddcon-nameeno1typeethernetifnameeno1nmcliconshownmcliconshoweno1nmcliconmodeno1ipv4.addresses192.168.0.100/24nmcliconmodeno1ipv4.methodmanualnmcliconmodeno1ipv6.addressesfddb:fe2a:ab1e::c0a8:64/64nmcliconmodeno1ipv6.methodmanualnmclicondowneno1nmcl..
分类:
其他 时间:
2014-09-27 17:28:51
收藏:
0 评论:
0 赞:
0 阅读:
621
#!/usr/bin/envpython
importsys
importdatetime
importsocket
fromfile_backwardsimport*
MONTH={
‘Jan‘:1,
‘Feb‘:2,
‘Mar‘:3,
‘Apr‘:4,
‘May‘:5,
‘Jue‘:6,
‘Jul‘:7,
‘Aug‘:8,
‘Sep‘:9,
‘Oct‘:10,
‘Nov‘:11,
‘Dec‘:12,
}
defparse_apache_date(datestr):
day,..
分类:
编程语言 时间:
2014-09-27 17:28:21
收藏:
0 评论:
0 赞:
0 阅读:
293
#!/usr/bin/envpython
importdatetime
importre
importsys
REG_SYSLOG=re.compile(r‘(?P<logtime>\w+\d+[\d:]+)(?P<hostname>[\d\w.]+)(?P<progname>\w+)(\[\d*\])?:(?P<msg>.*)‘)
DELTA=datetime.timedelta(minutes=3)
MONTH_MAPPING={"Jan":1,"F..
分类:
移动平台 时间:
2014-09-27 17:28:11
收藏:
0 评论:
0 赞:
0 阅读:
336
#!/usr/bin/envpython
importsys
fromoptparseimportOptionParser
importstring
OK=0
WARNING=1
CRITICAL=2
UNKNOWN=3
unit={‘t‘:2**40,‘g‘:2**30,‘m‘:2**20,‘k‘:2**10,‘b‘:1}
defopt():
parser=OptionParser(usage="usage:%prog-wWARNING-cCRITICAL")
parser.add_option("..
分类:
移动平台 时间:
2014-09-27 17:28:01
收藏:
0 评论:
0 赞:
0 阅读:
324
#!/usr/bin/envpython
fromsubprocessimportPopen,PIPE
importurllib,urllib2
importshlex,re
defgetIfconfig():
p=Popen([‘ifconfig‘],stdout=PIPE)
returnp.stdout.read().split(‘\n\n‘)
defparseIfconfig(data):
macaddr=data.split(‘\n‘)[0].split()[-1]
ipaddr=data.spl..
分类:
编程语言 时间:
2014-09-27 17:27:51
收藏:
0 评论:
0 赞:
0 阅读:
353
#!/usr/bin/envpython
importshlex
fromsubprocessimportPopen,PIPE
defget_ps():
cmd=‘psax-opid,ppid,cmd‘
p=Popen(shlex.split(cmd),stdout=PIPE)
returnp.stdout.readlines()[1:]
defsplit(s):
s=s.split()
returns[0],s[1],‘‘.join(s[2:])
defparser_ps(data):
p..
分类:
编程语言 时间:
2014-09-27 17:27:41
收藏:
0 评论:
0 赞:
0 阅读:
382
#!/usr/bin/python
importlibvirt
conn=libvirt.open(‘qemu:///system‘)
xmldesc=‘‘‘
<domaintype=‘kvm‘>
<name>centos_6.5</name>
<memoryunit=‘KiB‘>524288</memory>
<currentMemoryunit=‘KiB‘>524288</currentMemory>
<vcpupl..
分类:
编程语言 时间:
2014-09-27 17:27:32
收藏:
0 评论:
0 赞:
0 阅读:
291
vs2010+opencv2.4.8配置,希望可以帮助那些跟我一样的opencv入门新手...
分类:
其他 时间:
2014-09-27 17:26:51
收藏:
0 评论:
0 赞:
0 阅读:
232
1、关于android.permission.STOP_APP_SWITCHES权限
http://blog.csdn.net/ixiaobu/article/details/18226917
如果你想通过Service把home到后台的Activity启动到前台来,你有两种办法:
1)、startActivity(i)的方法
Intent i = new Inte...
分类:
移动平台 时间:
2014-09-27 17:26:41
收藏:
0 评论:
0 赞:
0 阅读:
305
??
ORACLE编译失效对象
数据库对象失效原因
数据库对象失效的原因很多,下面大致归纳了一些常见的原因:
1: 当被引用对象的结构变更时,都会使得相关的依赖对象转变为INVALID状态。
数据库中的对象(存储过程,函数,包,视图,触发器),它们往往需要直接或者间接的引用其它对象,对象的依赖包括直接和间接二种,其中直接依赖是指存储对象直接依赖于被引用对象,而间接依赖是指对象...
分类:
数据库技术 时间:
2014-09-27 17:26:31
收藏:
0 评论:
0 赞:
0 阅读:
260
#include
#include
#include
#include
#include
#include
using namespace std;
#define MAXN 9999
#define MAXSIZE 10
#define DLEN 4
class BigNum
{
private:
int a[500]...
分类:
其他 时间:
2014-09-27 17:26:21
收藏:
0 评论:
0 赞:
0 阅读:
256