06 2015 档案

摘要:### Android录音 /** * 开始录音 */ private void startRecording() { mRecorder = new MediaRecorder(); mRecorder.setAudioSource(Medi... 阅读全文
posted @ 2015-06-29 14:06 GreatK 阅读(190) 评论(0) 推荐(0) 编辑
摘要:### 长按及松开处理 // 长按触发handle final Handler handler = new Handler(); final Runnable mLongPressed = new Runnable() { public... 阅读全文
posted @ 2015-06-29 14:03 GreatK 阅读(1928) 评论(0) 推荐(0) 编辑
摘要:1. 百度地图座标拾取[http://api.map.baidu.com/lbsapi/getpoint/index.html](http://api.map.baidu.com/lbsapi/getpoint/index.html) 阅读全文
posted @ 2015-06-28 12:59 GreatK 阅读(258) 评论(0) 推荐(0) 编辑
摘要:18 ~ 3{"50m","100m","200m","500m","1km","2km","5km","10km","20km","25km","50km","100km","200km","500km","1000km","2000km"} 阅读全文
posted @ 2015-06-26 15:07 GreatK 阅读(684) 评论(0) 推荐(0) 编辑
摘要:### 上传指定后缀名文件 svn st | grep swift | cut -d' ' -f8- > targets.txt svn ci -m "comments" --targets targets.txt### 上传新增和修改文件 svn st |... 阅读全文
posted @ 2015-06-26 13:18 GreatK 阅读(3306) 评论(0) 推荐(0) 编辑
摘要:1. 查看当前时区和时间 $ date $ ls -l /etc/localtime2. 查看所有可用时区 $ timedatectl list-timezones | grep Asia3. 设置时区 $ timedatectl set-timezone time_zone... 阅读全文
posted @ 2015-06-24 20:14 GreatK 阅读(415) 评论(0) 推荐(0) 编辑
摘要:### Install yum install screen### Useful screen commands**List a particular users screen sessions:** screen -list username/ (the for... 阅读全文
posted @ 2015-06-24 11:48 GreatK 阅读(151) 评论(0) 推荐(0) 编辑
摘要:当ScrollView中有类似GridView的控件时,当数据加载后ScrollView会自动滚动。要阻止这种事情发生,我们需要做的是在ScrollView的下层容器中添加android:descendantFocusability="blocksDescendants"属性。例如: 阅读全文
posted @ 2015-06-17 17:30 GreatK 阅读(396) 评论(0) 推荐(0) 编辑
摘要:Intent intent = new Intent(); intent.setClass(SetActivity.this, RegisterLoginActivity.class); intent.setFlags(Intent.FLA... 阅读全文
posted @ 2015-06-17 14:08 GreatK 阅读(471) 评论(0) 推荐(0) 编辑
摘要:SELECT X - Select database (the X must be int)CONFIG GET databases - Get databases numberINFO keyspace - List Databases infoLUSHDB - Remov... 阅读全文
posted @ 2015-06-05 16:14 GreatK 阅读(200) 评论(0) 推荐(0) 编辑
摘要:edit /etc/redis.confAdd below line after bind 127.0.0.1, then try redis-cli -h xxx.xxx.xxx.xxx ping, it should work now.bind 0.0.0.0 阅读全文
posted @ 2015-06-04 17:55 GreatK 阅读(238) 评论(0) 推荐(0) 编辑
摘要:如下代码获取一个String?的结果let s = NSString(data: data, encoding: encoding)return s as? String 阅读全文
posted @ 2015-06-03 16:12 GreatK 阅读(2189) 评论(0) 推荐(0) 编辑
摘要:Clojure寻找项目依赖项目:lein deps :tree 阅读全文
posted @ 2015-06-02 18:20 GreatK 阅读(357) 评论(0) 推荐(0) 编辑
摘要:How to install redis server on CentOS 7 / RHEL 7October 4, 2014bysharad chhetriLeave a CommentIn this tutorial we will learn, how to install redis ser... 阅读全文
posted @ 2015-06-01 17:35 GreatK 阅读(418) 评论(0) 推荐(0) 编辑
摘要:Install vsftpd All commands should be run with ‘root’ user. Run the following command in terminal to install vsftpd package: Configure vsftpd Edit vsf 阅读全文
posted @ 2015-06-01 17:07 GreatK 阅读(343) 评论(0) 推荐(0) 编辑
摘要:Installnginx-clojure on CentOS 71. install open-jdk-7sudo yum install java-1.7.0-openjdk-devel2. download nginx-clojurehttps://nginx-clojure.github.io... 阅读全文
posted @ 2015-06-01 14:56 GreatK 阅读(634) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示