缘起:想获取字符串中指定的字符,考虑用正则表达式,遂写了如下的代码:[cpp]view plaincopyNSString*htmlStr=@"oauth_token=1a1de4ed4fca40599c5e5cfe0f4fba97&oauth_token_secret=3118a84ad91096...
分类:
其他好文 时间:
2015-03-13 18:38:00
阅读次数:
205
yuminstallmysqlyuminstallmysql-serveryuminstallmysql-develchgrp-Rmysql/var/lib/mysqlchmod-R770/var/lib/mysqlservicemysqldstartmysqlSETPASSWORDFOR‘root‘@‘localhost‘=PASSWORD(‘secret_password‘);1.新建用户。//登录MYSQL@>mysql-uroot-p@>密码//创建用户mysql..
分类:
数据库 时间:
2015-03-13 02:04:33
阅读次数:
196
1、注册Stripe账号 https://stripe.com初始时账号是TEST模式,需要激活账号才能进入LIVE模式;点击 "Your Account" -> "Account Settings",出现如下弹出框:如果是TEST模式,请使用Test Secret Key和Test Publish...
分类:
Web程序 时间:
2015-03-12 12:50:22
阅读次数:
308
命令:su - postgresCREATE USER foo WITH PASSWORD 'secret';====================1、2个配置修改postgresql.conf:修改listen_addresses = '*'pg_hba.conf:增加# IPv4 local ...
分类:
数据库 时间:
2015-03-09 22:17:13
阅读次数:
9006
TR133919中给出GAA的架构
其中,GBA包括HTTP Digest, Pre-Shared Key TLS, IKE with pre-shared secret and a priori any mechanism based on username...
分类:
其他好文 时间:
2015-03-07 11:41:00
阅读次数:
244
问题:我使用expressjs和mongostore来管理session。下面是expressjs中的设置。app.configure(function(){ app.use(express.session({ secret:conf.secret, maxAge:newDate(Date....
分类:
Web程序 时间:
2015-03-03 20:18:40
阅读次数:
140
Ancient CipherAncient Roman empire had a strong government system with various departments, including a secret service department. Important documents...
分类:
其他好文 时间:
2015-03-03 13:20:38
阅读次数:
187
Time Limit:1000MS Memory Limit:32768KBDescriptionContest time again! How excited it is to see balloons floating around. But to tell you a secret, the ...
#Java使用HMAC-SHA1算法 ``` String secret = mConsumerSecret + "&" + mOauthToken; SecretKey secretKey = new SecretKeySpec(secret.getBytes("US-ASCII"), "HmacSHA1"); Mac mac = Mac.getInstance("HmacSHA1...
分类:
编程语言 时间:
2015-02-21 06:34:01
阅读次数:
352
Master-Mind HintsMasterMind is a game for two players. One of them,Designer, selects a secret code. The other,Breaker, tries to break it. A code is no...
分类:
其他好文 时间:
2015-02-19 19:46:36
阅读次数:
165