原创 vsCode更新之後變成中文版,怎麼設置英文。Mac配置中文不起作用

可配置 中文版 按 ctrl+shift+p  搜索:Configore Display Language  修改"locale":"zh-CN"爲"locale":"en-Us" 如需配置中文輸入:   zh-CN   Mac配置中文不

原创 MAC 錯誤處理:dyld: Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib

錯誤信息:dyld: Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib 首先打開文件位置 /usr/local/opt/openssl/ 發現有兩個版本,

原创 如何用git命令將本地的代碼上傳到github

1.首先在GitHub上創建倉庫 Repository name: 倉庫名稱 Description(可選): 倉庫描述介紹 Public, Private : 倉庫權限(公開共享,私有或指定合作者) Initialize this re

原创 EditText輸入密碼隱藏或顯示文本

1、最基本的是佈局文件直接設置EditText輸入類型 [java] view plain copy   android:inputType="textPassword"   2、使用代碼設置隱藏或顯示密文

原创 Ionic頁面的生命週期

官方文檔 如官網文檔所示,常用的生命週期有如下6個: Event Desc ionViewDidLoad 當頁面加載的時候觸發,僅在頁面創建的時候觸發一次,如果被緩存了,那麼下次再打開這個頁面則不會觸發 ionViewW

原创 Ionic2 start app error: Error with start undefined

   This problem is solved by using the Taobao image。     Install Taobao image     E:>npm install -g cnpm --registry=ht

原创 Mac搭建nginx+rtmp服務器,ffmpeg實現視頻推流

一、clone nginx到本地,執行 brew tap denji/homebrew-nginx 二、安裝nginx,執行 brew install nginx-full --with-rtmp-module 執行:nginx,在瀏覽器

原创 Mac OS 手機投屏插件Vysor Pro破解

破解方法一: 進入 /Applications/Vysor.app/Contents/Resources/app/unpacked-crx: 打開 uglify-list.js,搜索”Vysor Pro users”,找到之後,往前數行找

原创 Mac下Gradle配置及錯 bash: gradle: command not found / gradle: Permission denied 錯誤處理

(一)找到gradle的路徑 注意:android studio應用顯示包內容,將路徑拿到,記得 Android 後面的空格要加 \ 轉義 (二)配置環境變量 啓動終端Terminal 如果首次配置環境變量需要創建配置文件  //

原创 解決Mac上adb: command not found問題

使用mac進行開發的時候,有時候需要使用adb指令來進行一些操作,但是如果沒有配置過Android環境變量,可能會出現adb: command not found的問題,查了一些資料,這裏記錄一下mac上配置Android環境變量的方法:

原创 Mac安裝Tomcat服務 錯誤:-bash: ./startup.sh: /bin/sh: bad interpreter: Operation not permitted

Tomcat啓動遇到錯誤:-bash: ./startup.sh: /bin/sh: bad interpreter: Operation not permitted   說明這個文件被隔離了 然後執行:xattr -d com.appl

原创 雙擊判斷工具類

public final class DoubleClickHelper { private static final long[] TIME_ARRAY = new long[2]; // 數組的長度爲2代表只記錄雙擊操作

原创 Excel文件讀取

項目結構: xml文件內容: 讀取代碼: private void ReaderXml() { InputStream is = null; try { is = getAs

原创 DataBinding進階(四)

自定義屬性: Databinding提供了@BindingAdapter(“屬性名”)註解來完成自定義屬性。 如果要綁定多個屬性,屬性之間用英文的逗號隔開,例如@BindingAdapter(“bind:image” , “bind:te

原创 DataBinding使用(二)

佈局中添加DataBinding Data標籤Class屬性 <data class="TestDataBinding2"> 生成指定的名稱的Binding對象。 什麼是Bind對象呢?來回顧之前的一句代碼 ViewDataBind