發表文章

目前顯示的是有「拾人牙慧」標籤的文章

Ubuntu 18.04.1 mysql password settings, and can be set without sudo login

Description: After installing Ubuntu 18.04.1 , you cannot execute the mysql command as a user.  You must use sudo to execute the mysql directive, and any php program may not be able to connect to mysql. Step1: Login to the mysql interface example: Sudo mysql -uroot -p Enter password: [press Enter directly] Step2:  Modify the account management mode and change password mysql>  Use mysql; mysql>  Update user SET plugin='mysql_native_password' WHERE User='root'; mysql>  Update user set authentication_string=password('root new password') where user='root'; mysql>  Flush privileges; Step3:  After logging out, you can use the following mysql command without adding sudo

Hide black console window

Step1: First package according to common procedures Need pyinstaller example: First reach the location of this scripts cd C:\Python27\Scripts Then enter pyinstaller -F D:\Wayne\file.py --distpath D:\Wayne At this time, the folder will be generated on the desktop. build, dist There is also a protagonist of "Archive.spec" Open "Profile.spec" with Notepad One of them is like this Exe = EXE(pyz,           A.scripts,           A.binaries,           A.zipfiles,           A.datas,           [],           Name='my file',           Debug=False,           Bootloader_ignore_signals=False,           Strip=False,           Upx=True,           Runtime_tmpdir=None,           Conso...
圖片
Gojko Adzic 是眾所皆知的名作者 . 他所撰寫的 impact mapping, specification by example ( 有中譯本 ), Fifty Quick Ideas To Improve Your Tests, 和  Fifty Quick Ideas To Improve Your User Stories, 在市場上很受到歡迎 . 這次他在 Agile Singapore 2016 介紹測試自動化的未來 , 真的很值得一聽 .  Video link: https://www.youtube.com/watch?v=eXjxPuMcubQ&t=305s 以下是我記錄到一些有關 Gojko Adzic  目前看到的狀況 : 1. 平臺爆炸化 (Platform Fragmentation) 以前 PC 是主流的用戶端 , 而現在 mobile 才是王道 . 大家都知道 , Android, Apple 以及其他不知名牌子 , 他們的 devices 有成千上萬 , 即使你只處理主流的系統 Apple, 三星或是華為的 , 也是多到不行 . 你不可能在這些 devices 上 , 一一測試你產品的正確性 . 2. 雲端技術盛行   雲端技術已經由早期採用者 (early adopters),   進入到晚期大眾 (late majority) 的階段 . IDC 預測在 2017 年時 , 公司的 IT 內會將近一半使用雲端技術 . 這表示測試人員要面對這樣的系統架構 , 以及運作環境 . 你需要不同的測試方法或工具 . 3. 前端複雜化 以前前端技術很單純 , 只是應用系統表面的薄薄一層 . 以前 , 自動化金字塔說我們只需要做單元和中間層的自動化就好 , 不需要在 UI 端花心思 . 可是現在 singel page 技術 , HTML5 等等層出不窮前端技術 , 我們無法只靠手動測試就能把它測試的很完整了 . 未來可能的趨勢 : 1. 雲端平臺農場測試工具的崛起 以下是一些工具可以讓你測...

Python 的虛擬環境及多版本開發利器─Virtualenv 與 Pythonbrew

作者是 Mosky Virtualenv 和 Pythonbrew 都是可以創造虛擬(獨立)Python 環境的工具,只是虛擬(獨立)標的不同。 Virtualenv 可以隔離函數庫需求不同的專案,讓它們不會互相影響。在建立並啟動虛擬環境後,透過  pip  安裝的套件會被放在虛擬環境中,專案就可以擁有一個獨立的環境。 簡而言之,Virtualenv 可以幫你做到: 在沒有權限的情況下安裝新套件 不同專案可以使用不同版本的相同套件 套件版本升級時不會影響其他專案 Pythonbrew 則可以在家目錄中安裝多個 Python,並迅速地切換版本;也可以在指定的 Python 版本下批次測試你的 Python 程式;另外更整合了 Virtualenv。 這篇文章會詳細介紹這兩個工具,讓你在多人開發及多版本開發的環境中更得心應手。 事前準備 Python 的 package 通常會上傳至  PyPI ,有很多工具都可以從  PyPI  安裝 package。下面會使用 easy_install  這個工具(由  setuptools  提供)來安裝 Virtualenv 和 Pythonbrew。 01. Linux 如果不知道  easy_install  或還沒安裝 setuptools,在 Debian/Ubuntu 可以用下列指令安裝: $ sudo apt-get install python-setuptools 在 Fedora/CentOS/Redhat/openSUSE,則可以使用: $ su - # yum install python-setuptools 02. Windows 在 Windows 則可以從  setuptools  的頁面找到  *.exe  格式的安裝檔案。安裝完後,可以在 C:\PythonX.Y\Scripts\ (X.Y 是 Python 的版本)下找到  easy_install.exe 。記得把這個路徑放進 Windows 環境變數中的 PATH。 接著就可以輕鬆安裝任何在  PyPI ...