原创 curl 抓取google簡體中文

<?php header("Content-Type: text/html;charset=utf-8"); $content="中國人民銀行"; $url = "http://www.google.com.hk/search?hl=zh

原创 MPMoviePlayerViewController 問題

- (void)playVideo:(NSString*)url { NSLog(@"play~"); if(![PlayUrl isEqualToString:url]){ player

原创 mac os x el capitan 10.11 對系統文件的讀寫權限問題

今日升級了os 10.11 發現不管普通管理員還是root 都不能更改系統文件的讀寫權限與更改組權限 比如 /usr/lib/php/extensions/ 目錄死活都修改不了。 找了幾個方法 第1方法 :終端輸入 >sudo nvr

原创 微服務架構

使用清單 開發語言:java 框架:spring-boot 中間件/rpc協議:dubbo/dubbo-rpc rpc管理平臺:dubbo-admin 操作系統:centos7 項目管理:maven maven本地私服:nexus(Son

原创 mac os 搭建golang與使用eclipse插件開發golang

1. 下載: golang安裝包:https://code.google.com/p/go/downloads/detail?name=go1.1.2.darwin-amd64.pkg&can=2&q= eclipse 工具:http:

原创 nginx 400 Bad Request

nginx  400 Bad Request  應該是COOKIE 過多造成, 清理一下COOKIE  ,搞定

原创 ios,xmpp 添加好友與好友請求處理

XMPPStream *xmppStream; XMPPReconnect *xmppReconnect; XMPPRoster *xmppRoster;//用戶對象 //需要添加的對象 /

原创 CodeIgniter,smarty的使用

<?php defined('BASEPATH') or die('Access restricted!'); class Test extends Controller { function __construct() { p

原创 點擊按鈕使用線程執行UIActivityIndicatorView

@interface ViewController : UIViewController  { UIActivityIndicatorView *ActivityView; } -(void)ActivityLoad; -(IBActio

原创 php判斷是否有權限下載

<?php if($_GET['id']==2) { //$file_name = "info_check.exe"; //$file_dir = "/public/www/download/"; $dir='maze.png';

原创 .properties讀取

  String DBhost=""; int selectCount;         Properties prop = new Properties();         InputStream in;         in

原创 分隔連續數字

$data = array(0,1,2,3,6,7,8,9,10,12,14,16,17,18,19,20,23,28,29,30,35,36,37); //print_r($data);   $y=0; foreach($data as

原创 servlet目錄結構

serlvet--------index.jsp | ----WEB-INF----classes----*.java *.class                                   |              

原创 CodeIgniter整合smarty

  CodeIgniter整合smarty,實現view與代碼分離(根目錄平級)       iapp/libraries/CISmarty.php     <?php defined('BASEPATH') or die('Access

原创 tomcat安全管理策略

這段時間在使用apache.xmlrpc和pgsql-jdbc碰到tomcat安全問題   HTTP Status 500 - type Exception report message description The server e