發表文章

目前顯示的是 3月, 2019的文章

if your using notepad++ as python editor, it's can save space instead tab. Notepad++如何設定將tab取代為空白?

圖片
Notepad++如何設定將tab取代為空白? if you want save files as space to instead tab. you can do following setting in notepad++ Settings=>Preferences=>Language=>check the Replace by space check box .. that's it.

source code compare tool in UBUNTU, Diffuse is an example

if you want install source code compare tools in UBUNTU you can try this command: sudo apt-get update sudo apt-get install diffuse

使用visual studio code 作為python 編輯器

圖片
在windows環境中,我們除了可以使用一般如notepad++等編輯器來編輯python外,最近我還試用了Visual Studio Code這個由微軟開發的開放原始碼,支援windows, Linux環境的編輯器。 可從官網下載: https://code.visualstudio.com/download visual studio code可以在它自帶的terminal中執行python,且執行環境還能使用Anaconda製作出的多個虛擬環境,唯獨在windows環境中,需要等一下子所有的Anaconda虛擬環境才會都出現,第一次使用時,有時會因為找不到Anaconda的虛擬環境而不知所措,只需要等一下子,Visual Studio Code就會偵測出所有的python 虛擬環境。如下圖所示:

windows 環境建置Anaconda python 機器學習環境,並且安裝openCV

圖片
Anaconda 環境是python 機器學習常用的套件。 在windows 環境也可輕鬆建置相關環境。如果不設定gpu,只用cpu也可輕鬆建置。 我的notebook是用windows 10環境建置。步驟如下: 1. 到官網下載Anaconda:我是下載Anaconda3 安裝完成後可以看到windows 開始選單會有Anaconda相關已經安裝好的資料夾, 接著開啟Anaconda3(64bit) -> Anaconda Navigator Anaconda Navigator開啟後左邊有Environments選項: 可以在這邊設定您的虛擬環境。如您可以設定要python 2.7的環境或您要python 3.6的環境..等等都可在這邊建置。建置好虛擬環境後,如下圖開啟虛擬環境: 如果要在windows下安裝openCV套件,可在cmd指令下用下面指令: 安裝openCV binary套件(測試畫面如下,我的版本為openCV 3.4.1): conda install - c menpo opencv 安裝完後測試openCV版本: Python 3.7.1 (default, Dec 10 2018, 22:54:23) [MSC v.1915 64 bit (AMD64)] :: Ana conda, Inc. on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import cv2 >>> print(cv2.__version) Traceback (most recent call last): File "<stdin>", line 1, in <module> AttributeError: module 'cv2' has no attribute '__version' >>> print(cv2.__version__) 3.4.1 >>> 如果要安

將 eclipse 放到menu, UBUNTU 16.04

圖片
將 eclipse 放到 menu Writing the  .destkop  file Open your text editor and type something like the following: [Desktop Entry] Version=1.0 Type=Application Name=<name-of-the-app> Exec=<path-to-executable-file> Icon=<path-to-icon-file> Categories=<list-of-;-separated-categories> What to change in the above template: Name  — put here the name of the application. This will be displayed in the menu; Exec  — path to the executable file. For example  /opt/clion-2016.2/bin/clion.sh ; Icon  — path to the icon file. Example:  /opt/clion-2016.2/bin/clion.svg ; Categories  — semicolon-separated list of categories.  Here  is a list of what you can choose from. There are several additional parameters you can add, but what you see above should be enough. The last step: put that file somewhere useful, so that the system can be aware of it and update the menu accordingly. Place the  .desktop  file in the right place You can place that file

how to install notepadqq via PPA repository on Ubuntu 16.04

圖片
如何通過PPA存儲庫安裝Notepadqq: 該軟件有一個  官方PPA  ,其中包含所有當前Ubuntu版本的傳統.deb軟件包。 1.  通過Ctrl + Alt + T或從應用啟動器搜索“終端”打開終端。 打開時,運行命令添加PPA: sudo add-apt-repository ppa:notepadqq-team/notepadqq 在提示時輸入您的密碼(在輸入時沒有視覺反饋)並按Enter鍵繼續。 2.  然後通過Synaptic包管理器或在終端中運行命令來安裝編輯器: sudo apt-get update sudo apt-get install notepadqq-gtk 安裝完成後,從應用程序啟動器啟動編輯器並享受!

如何在Ubuntu系統上安裝Notepad ++ (Install Notepad++ On Ubuntu 16.04 / 17.10 / 18.04 / 20.04)

圖片
Install Notepad++ On Ubuntu 16.04 / 17.10 / 18.04 / 20.04 需要注意的一點是,Notepad ++的開源版本使用帶有notepad ++ portable和Win32 API的wine-i386來使其在Linux上運行......這個版本可能不如Windows和Mac系統那樣穩定...... 如果您來自Windows和Mac OS世界,並希望在Ubuntu上安裝您的fovarite代碼編輯器,那麼以下步驟是一個很好的起點.. 這個簡短的教程將向學生和新用戶展示如何在Snap的幫助下在Ubuntu 16.04 / 17.10和18.04上安裝Notepad ++。 要開始安裝此代碼編輯器,請按照以下步驟操作: 第1步:獲取 Snap 如果您的系統上沒有Snap,則必須在安裝Notepad ++之前安裝它... Snap是一個功能強大的Linux用戶包管理系統......它可能是在Linux機器上安裝軟件包的最佳和最簡單的方法,包括Ubuntu。 安裝Snap,請運行以下命令 sudo apt-get install snapd snapd-xdg-open 第2步:安裝NOTEPAD ++ 現在已經安裝了Snap,運行以下命令在Ubuntu上安裝Notepad ++ ... 要安裝Notepad ++,請運行以下命令 sudo snap install notepad-plus-plus 安裝軟件包後,您應該會看到如下所示的消息 安裝'mmtrt'時記事本加上7.5.6 安裝包後,運行以下命令安裝mandetory插件... sudo snap connect notepad-plus-plus:process-control 也可能安裝下面的可選插件。 sudo snap connect notepad-plus-plus:removable-media sudo snap connect notepad-plus-plus:hardware-observe sudo snap connect notepad-plus-plus:cups-control 接下來轉到您的   活動概述   並蒐索,然後查