原创 寶塔安裝的mongodb添加用戶名和密碼

1、在寶塔界面打開安裝的mongodb的配置文件修改 security: authorization: disabled 把其中的disabled 修改爲enabled 2、在服務器中輸入命令,啓動客戶端 cd /www/s

原创 設計模式-單例模式-php實現

class Uni{ // 創建靜態私有的變量保存該對象 static private $instance; // 參數 private $config; private functi

原创 mac 下安裝php5.6

嘗試了brew tap 修改源,但是會報錯,去了提示的githup裏尋找,有人提了issue,但是沒有被解決。所以嘗試用brew install php56 的話,基本上沒戲。嘗試失敗 所以採用源碼安裝 環境:mac pro,系統

原创 創建spring boot 應用並導入

1、訪問 http://start.spring.io/ ,點擊生成 generate.得到項目代碼包 2、打開 IntelliJ IDEA 軟件,選擇 New->Project from Existing Sources-

原创 php Call to undefined function bcsub()

安裝完php5.6以後,安裝文章鏈接 https://blog.csdn.net/wangxinxinsj/article/details/101672343 把項目引入,項目中提示這個錯誤 點擊方法進去,發現是bcmath擴展

原创 phpstorm設置 phalcon volt模板引擎高亮

電腦:mac 工具:phpstorm 這是phpstorm 打開 index.volt 文件顯示的,此時 volt 文件暫時 打開 phpstorm->preferences->File Types->選擇 Twig->點擊 +

原创 mac 下源碼編譯安裝 postgresql

1、下載 https://ftp.postgresql.org/pub/source/v10.7/postgresql-10.7.tar.gz 文檔 http://www.postgres.cn/docs/10/index.htm

原创 php curl 訪問出錯

在自己電腦上面 crul get 正常獲取信息,到同事的電腦上面死活都不正常,返回false 然後各種提示都沒有,問了同事,說經常是60錯誤 百度 curl get 60錯誤,找到了是因爲證書原因,我的域名是https,同事的域名

原创 ios 報錯

System group container for systemgroup.com.apple.configurationprofiles path is /Users/wxx/Library/Developer/CoreSim

原创 ios開發 :CUICatalog: Invalid asset name supplied: '(null)'

_iconImage.image = [UIImage imageNamed:sourceDic[@“image”]]; 明明有圖片,但還是提示這個圖片名稱不存在 報錯 CUICatalog: Invalid asset name

原创 AppCode 設置 getter 模板

-(UILabel *)toastLabel { if(!_toastLabel){ _toastLabel = [[UILabel alloc] init]; _toastLabel.te

原创 mac 下利用 xdebug生成性能報告

1、安裝 xdebug https://blog.csdn.net/wangxinxinsj/article/details/104991257 [xdebug] zend_extension=xdebug.so xdebug.r

原创 phpstorm 自動補全(代碼片斷)

環境: mac,phpstorm 寫代碼經常出現一此常用的場景,每次手打其實也挺浪費時間的,其實我們可以定義一些常用模塊,給它們設置個快捷鍵, 比如這段代碼 $cond = ['conditions' => 'title like

原创 php面試題:一張表中,id 是主鍵索引,name是普通索引,下列語句都只取一條,分別有什麼不同

一張表中,id 是主鍵索引,name是普通索引,下列語句都只取一條,分別有什麼不同 select * from table_name where name='smith' select * from table_name whe

原创 php遍歷數組有幾種方式?

for 對於純數字索引的數組可以通過for循環來遍歷數組,但是要注意的是數字索引必須是連續的,否則會獲取不到數組中的部分數據。遍歷不受數組內部指針影響。 <?php $ar1=range('a','e'); $len=count(