Time of Update: 2018-08-18
angular 調試小技巧: 在這個方法中加入console </pre><pre name="code" class="javascript"> function minErr(module, ErrorConstructor) { ErrorConstructor = ErrorConstructor || Error; return function() { var SKIP_INDEXES = 2;
Time of Update: 2018-08-18
問題描述 在安裝完drupal 8 後遠程登入上去測試drush命令報以上錯誤。 問題產生的原因是因為drush版本的問題,drush 6及以下版本與最新的drupal 8 可能不相容,需要通過composer這一php包管理器安裝。 安裝流程 . First install Composer globally$ curl -sS https://getcomposer.org/installer | php$ sudo mv composer.phar
Time of Update: 2018-08-18
轉自GuGoo雲之Summary Web伺服器Nginx的安裝與配置 卸載老版本的Nginx sudo apt-get --purge remove nginxsudo apt-get autoremovedpkg --get-selections|grep nginx//將羅列出與nginx相關的軟體,如nginx-common一併刪除sudo apt-get --prege remove nginx-common 安裝Nginx
Time of Update: 2018-08-18
最近在通過node簡單的實現mock虛擬資料的方法,其實可以通過node的fs模組,來讀取和寫入我們本地的檔案,來實現mock的功能: 我們可以制定一個JS檔案,專門封裝一個簡單的讀寫檔案的功能。 JS代碼如下: let fs = require('fs');let dealFn = {/** * [通過Promise寫入資料] * @param {String} file [檔案名稱] * @param {Object} obj [寫入的資料(對象)] *
Time of Update: 2018-08-18
1. 我們可以先將目錄都改成英文的。 export LANG=en_US 執行 xdg-user-dirs-gtk-update 這時會彈出一個配置介面,將所有中文的使用者目錄切換到英文。選中不再提示,確定。 這時,會刪除沒有內容的使用者目錄,但有內容的使用者目錄會保持。並建立相應的英文目錄: Desktop/Download/Templates/Public/Documents/Music/Pictures/Videos
Time of Update: 2018-08-18
原文:https://docs.docker.com/engine/admin/start-containers-automatically/#use-a-process-manager 容器自啟動 Docker提供了restart policy機制,可以在容器退出或者Docker重啟時控制容器能夠自啟動。這種Restart
Time of Update: 2018-08-18
1、使用ststemctl命令 systemctl enable docker 2、將Docker的 docker.service服務移動到系統服務中 # cp /usr/lib/systemd/system/docker.service /etc/systemd/system/# systemctl daemon-reload# systemctl restart
Time of Update: 2018-08-18
設定開機啟動 [root@localhost ~]# systemctl enable dockerCreated symlink from /etc/systemd/system/multi-user.target.wants/docker.service to /usr/lib/systemd/system/docker.service. 然後 [root@localhost ~]#shutdown -r now 重新啟動 [root@
Time of Update: 2018-08-18
Docker容器內應用服務自啟動 如果想把Docker容器內的應用服務隨著容器開啟時自啟動。只需要將服務啟動的指令碼寫在Dockerfile裡,然後用Dockerfile重構鏡像即可實現: 編寫應用服務自啟動指令碼 編寫Dockerfile 重構鏡像 開啟容器 編寫服務自啟動指令碼(dockerd) (tomcat為例) #!/bin/bash## ## chkconfig: 345 98 30# description:
Time of Update: 2018-08-18
部署專案服務器時,為了應對停電等情況影響正常web項目的訪問,會把Docker容器設定為開機自動啟動。 在使用docker run啟動容器時,使用--restart參數來設定: [plain] view plain copy
Time of Update: 2018-08-18
https://ethereum.gitbooks.io/frontier-guide/content/using_docker.html Running in DockerWe keep a Docker image with recent snapshot builds from the develop branch on DockerHub. Run this first:+docker pull ethereum/client-goStart a node with:docker
Time of Update: 2018-08-18
一、建立eurekaServer 1、建立第一個server,建立一個springboot工程 1)java代碼如下,使用連接埠7070: @EnableEurekaServer@SpringBootApplication@RestControllerpublic class EurekaserverApplication {@RequestMapping("/exec") public String execInfo()
Time of Update: 2018-08-18
1、首先得AOT 按照官網的例子 https://www.angular.cn/docs/ts/latest/cookbook/aot-compiler.html 注意 "module": "es2015", 這裡一定要es2015不要commonjs 然後配置main.ts,編譯成aot方式 js裡面是 import { platformBrowser } from
Time of Update: 2018-08-18
本來想寫echarts初始化函數的,但最近因為要寫一個地圖與柱狀圖的混合方式,也就是每個省的地圖上要有柱狀圖顯示。於是仔細使用了一下地圖。 1、地圖的一些基本屬性就不介紹了,還是那些style 2、地圖資料的擷取以及Series的載入和其他沒有什麼大的差異。地圖資料都在map.js中,都可以自己看,也可以自己根據格式擷取響應的資料。 這裡主要想處理的是圖例顏色與地圖底圖顏色怎麼設定的問題。 1、圖例的顏色代碼 refresh: function (newOption)
Time of Update: 2018-08-18
擷取某個字串中某一部分的字元內容,通常大家會首先想到使用String.substring方法,但String.substring方法對於某些包含特殊字元和HTML標籤的處理不是很完善。例如如下字串,想要擷取sign中的字元,用String.subString方法雖然也能拿到sign中的內容,但有缺陷.... String str="<form id='frmBankID' name='frmBankName' method='post'
Time of Update: 2018-08-18
暗黑系 動機 如果你滿足以下條件,我建議你閱讀這篇教程: 你想瞭解更多有關表面著色器的細節知識。 你想實現一個入門層級的卡通效果shader(Toon Shader)。 你想知道漸層紋理(ramp texture)的使用方式。 你想瞭解邊緣光照(rim lighting)的知識。 準備工作 我們想實現一個toon shader -
Time of Update: 2018-08-18
原文地址:http://blog.csdn.net/dingkun520wy/article/details/49471789 1、Canvas的屬性配置 2、Canvas Scaler的屬性配置 3、根據不同的螢幕的比例動態修改縮放基準 void Start () { float standard_width = 960f; //初始寬度 float standard_height = 640f;
Time of Update: 2018-08-18
1,動畫系統配置,2,代碼控制動畫 原文地址: http://blog.csdn.net/dingkun520wy/article/details/51247487 1,動畫系統配置 建立遊戲對象並添加Animation組件,然後將動畫檔案拖入組件。 進入動畫檔案的Debug屬性面板 選中Legacy屬性 選中遊戲對象,開啟Animation編輯視窗 添加動畫變化屬性 需改主要畫面格的屬性值
Time of Update: 2018-08-18
轉載請註明,原文地址: http://blog.csdn.net/musicvs/article/details/8242963 1. 按鈕建立 [cpp] view plain copy print ? /* 正常狀態下的按鈕圖片 */ &
Time of Update: 2018-08-18
關於資料結構的內容可以查看之前的文章 http://blog.csdn.net/jason_520/article/details/54173685。 LuaFramework_UGUI中有一個list.lua,它是一個雙向鏈表,即一個元素有兩個指標,指向它的前一個元素和後一個元素。這裡的元素指的是table,擷取值的方式是:xxx.value。同C#的鏈表類似。 本文筆者參考學習文章http://blog.csdn.net/lyh916/article/details/5104304