06 2015 档案
摘要:### Android录音 /** * 开始录音 */ private void startRecording() { mRecorder = new MediaRecorder(); mRecorder.setAudioSource(Medi...
阅读全文
摘要:### 长按及松开处理 // 长按触发handle final Handler handler = new Handler(); final Runnable mLongPressed = new Runnable() { public...
阅读全文
摘要:1. 百度地图座标拾取[http://api.map.baidu.com/lbsapi/getpoint/index.html](http://api.map.baidu.com/lbsapi/getpoint/index.html)
阅读全文
摘要:18 ~ 3{"50m","100m","200m","500m","1km","2km","5km","10km","20km","25km","50km","100km","200km","500km","1000km","2000km"}
阅读全文
摘要:### 上传指定后缀名文件 svn st | grep swift | cut -d' ' -f8- > targets.txt svn ci -m "comments" --targets targets.txt### 上传新增和修改文件 svn st |...
阅读全文
摘要:1. 查看当前时区和时间 $ date $ ls -l /etc/localtime2. 查看所有可用时区 $ timedatectl list-timezones | grep Asia3. 设置时区 $ timedatectl set-timezone time_zone...
阅读全文
摘要:### Install yum install screen### Useful screen commands**List a particular users screen sessions:** screen -list username/ (the for...
阅读全文
摘要:当ScrollView中有类似GridView的控件时,当数据加载后ScrollView会自动滚动。要阻止这种事情发生,我们需要做的是在ScrollView的下层容器中添加android:descendantFocusability="blocksDescendants"属性。例如:
阅读全文
摘要:Intent intent = new Intent(); intent.setClass(SetActivity.this, RegisterLoginActivity.class); intent.setFlags(Intent.FLA...
阅读全文
摘要:SELECT X - Select database (the X must be int)CONFIG GET databases - Get databases numberINFO keyspace - List Databases infoLUSHDB - Remov...
阅读全文
摘要: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
阅读全文
摘要:如下代码获取一个String?的结果let s = NSString(data: data, encoding: encoding)return s as? String
阅读全文
摘要:Clojure寻找项目依赖项目:lein deps :tree
阅读全文
摘要: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...
阅读全文
摘要:Install vsftpd All commands should be run with ‘root’ user. Run the following command in terminal to install vsftpd package: Configure vsftpd Edit vsf
阅读全文
摘要:Installnginx-clojure on CentOS 71. install open-jdk-7sudo yum install java-1.7.0-openjdk-devel2. download nginx-clojurehttps://nginx-clojure.github.io...
阅读全文