上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 24 下一页
摘要: curl -T fie-name ftp://server-address --user user:password 阅读全文
posted @ 2015-07-06 18:34 GreatK 阅读(1829) 评论(2) 推荐(0)
摘要: ### enable firewall systemctl enable firewalld### start firewall systemctl start firewalld### check firewall status systemctl status firewall... 阅读全文
posted @ 2015-07-06 17:53 GreatK 阅读(352) 评论(0) 推荐(0)
摘要: 找出所有使用中的port netstat tulpn 输出 Active Internet connections (only servers) Proto Recv Q Send Q Local Address Foreign Address State PID/Program na... 阅读全文
posted @ 2015-07-04 20:12 GreatK 阅读(640) 评论(0) 推荐(0)
摘要: 直接上代码: /// /// 根据指定压缩比率压缩图片 /// /// /// /// public static void CompressToQuality(Image original,... 阅读全文
posted @ 2015-07-04 17:45 GreatK 阅读(783) 评论(0) 推荐(0)
摘要: 直接上代码: /// /// 根据指定宽度等比例缩放图片 /// /// /// /// /// public static Bitmap ResizeImage(Image ... 阅读全文
posted @ 2015-07-04 17:44 GreatK 阅读(1011) 评论(0) 推荐(0)
摘要: 当从iPhone等手机上传图片到服务器后,通常需要进行旋转处理,否则在进行图片压缩、缩放处理后会丢失正确的位置信息,导致显示的图片不处于正确的位置上。处理的做法就是读取照片的Exif信息,并旋转到正确位置。代码如下: /// /// 将图片旋转到正确位置 ... 阅读全文
posted @ 2015-07-04 17:43 GreatK 阅读(3301) 评论(1) 推荐(0)
摘要: cat src.txt | grep '\S' > dist.txt 阅读全文
posted @ 2015-07-01 14:34 GreatK 阅读(845) 评论(0) 推荐(0)
摘要: ### Android录音 /** * 开始录音 */ private void startRecording() { mRecorder = new MediaRecorder(); mRecorder.setAudioSource(Medi... 阅读全文
posted @ 2015-06-29 14:06 GreatK 阅读(196) 评论(0) 推荐(0)
摘要: ### 长按及松开处理 // 长按触发handle final Handler handler = new Handler(); final Runnable mLongPressed = new Runnable() { public... 阅读全文
posted @ 2015-06-29 14:03 GreatK 阅读(1944) 评论(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 阅读(264) 评论(0) 推荐(0)
上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 24 下一页