關於網路那些事...

Marketing, SEO, Web trends, Programming tutorial, Web design, and Life event...

解決 push 發生 Someone has already registered that SSH key 問題

解決 push 發生 Someone has already registered that SSH key 問題

在 Bitbucket 設定 ssh 如果沒有在帳號 ssh 綁定,而是直接在 repository 綁定

但是,直接綁定在 Repository 的 SSH key ,該組 Key 只能用於 pull ,不能執行 push。

在後續維護專案需要在帳號綁定 ssh 時,會出現以下警示

Someone has already registered that SSH key

Continue Reading

中國區域 Zoom 問題排解

在中国的 Zoom 软件安装后,会分别有国内及国外两种选项,在近期因中国国家安全政策,考量Zoom 软件对外沟通方面因为无法确定是谁对国外发起会议,因此进行屏蔽。针对这个变动,在第一时间进行处理,帮助排除问题的解决方式进行纪录

Q: 如何确保软件有更新?

请检查相关装置的 Zoom 版本有高于以下版本: Windows 软件: 5.0.41687.0910 Apple 软件: 5.0.41687.0910 苹果 APP Store: 4.5.2 安卓: 4.5.3

Q: 如何卸载 Zoom 软件?

可以点选 Windows > 控制面板 > 卸载程序 > 在软件滑鼠右键点击出现卸载弹窗 > 点击卸载

https://jingyan.baidu.com/article/5d368d1eb2270f3f60c057b0.html

Q: 去哪儿下载Zoom 软件?

首先,卸载本地的 Zoom 软件,前往官方下载最新软件。 下载安装 Zoom : https://www.zoomvip.cn/download.html

Q: 遇到 Zoom 无法进入会议时,怎么办?

(1) 请家长提供 Zoom 软件登入会议的画面。 (2) 使用的装置型号,在提供给技术判断。 (3) 询问家长是否有其他装置可以先进入会议。

Q: 学生无法听到学霸声音?

(1) 请家长提供 Zoom 软件登入会议的画面。 (2) 手机或平板请检查是否关到静音键。 (3) 桌机请开启扬声器设置,检查 Zoom 软件扬声器是否开启。 (4) 询问家长是否有其他装置可以先进入会议。

Continue Reading

解決 Vim 貼上後,格式跑掉問題

Vim 如果直接接上代碼,出現格式跑掉(自動縮排)

則可透過以下方式解決

關閉縮排

:set paste

如果要開啟縮排,可以輸入

:set nopaste

Continue Reading

Laravel 上線環境設定

Laravel 上線環境設定

這裡記錄一下 Laravel專案上線常用設定

Continue Reading

推薦幾個 Python 深度學習入門 Libraries

推薦幾個 Python 深度學習入門 Libraries

最近在研究語音辨識,順帶看了一下 Python,這裡大概就介紹一下在學習 Python 深度學習推薦入門的幾個 Libraries。

簡介

Python 運用在深度學習算相當具有優勢,支援的 libraries 相當豐富,在這裡推薦幾個 Libraries ,進行介紹。

在了解及初次熟悉這些 Libraries 時,建議可以透過以下方式:

  • 透過 Jupyter Notebook 來引入 Library
  • 一步步的跟著文檔中的快速起步流程,先理解方向
  • 用30分鐘來閱讀文檔,來確實理解 Library 的 modules 用法

如果是透過 Anaconda 啟用 Jupyther Notebook ,則可以參考這部影片 https://www.youtube.com/watch?v=-MyjG00la2k

Continue Reading

推薦幾個 Python 資料科學計算入門 Libraries

推薦幾個 Python 資料科學計算入門 Libraries

最近在研究語音辨識,順帶看了一下 Python,這裡大概就介紹一下在學習 Python 資料科學計算推薦入門的幾個 Libraries。

簡介

Python 運用在科學資料計算相當具有優勢,支援的 libraries 相當豐富,在這裡推薦幾個 Libraries ,進行介紹。

在了解及初次熟悉這些 Libraries 時,建議可以透過以下方式:

  • 透過 Jupyter Notebook 來引入 Library
  • 一步步的跟著文檔中的快速起步流程,先理解方向
  • 用30分鐘來閱讀文檔,來確實理解 Library 的 modules 用法

如果是透過 Anaconda 啟用 Jupyther Notebook ,則可以參考這部影片 https://www.youtube.com/watch?v=-MyjG00la2k

Continue Reading

Centos7 新增靜態路由的幾種方法

Centos7 新增靜態路由的幾種方法

方法一、直接設定路由

vim cd /etc/sysconfig/network-scripts/route-eno1

增加內容

Continue Reading

No module named Keras.models 錯誤的幾種解決方式

No module named Keras.models 錯誤的幾種解決方式

在執行 Python Keras過程,如果出現錯誤提示:

ModuleNotFoundError: No module named ‘keras.models’; ‘keras’ is not a package

解決方式一

如果中間過程提示缺少套件,缺什麼就安裝什麼

pip3 install keras

可以查看自己目前安裝的套件有哪些

pip3 list

解決方式二

如果安裝後仍出現 No module named 'eras.models'… 那這時請確認一下是否你有將檔案名稱命名為 keras.py

如果有,這表示 Python 在執行過程會認為你是要將這個檔案 import

因此,解決方式是將檔案名稱更換掉就可以

Continue Reading

MFCC 音波比對實測結果

MFCC 音波比對實測結果

最近在嘗試幾種音波比對的方向,大致測試過幾種技術,

這裡主要紀錄音波轉成 MFCC 之後,進行實測的一些過程及觀察數據,

首先,根據不同狀況錄製了不同的音頻,接著就直接針對音頻進行比較,

(免責聲明!以下測試並無使用正規統計方式評測,僅供參考)

Continue Reading

AudioDiff 實測

本篇主要針對 AudioDiff 在音檔比對的實測

Continue Reading

AudioCompare (base on Shazam ) 實測

下載AudioCompare

git clone https://github.com/charlesconnell/AudioCompare.git

進行比對

./audiomatch -f howareudoing.wav -f howareudo.wav
# MATCH howareudoing.wav howareudo.wav (39)

./audiomatch -f howareudoing.wav -f howsgoingtoday.wav
# MATCH howareudoing.wav howsgoingtoday.wav (13)

./audiomatch -f howareudoing.wav -f howareudoing.wav
# MATCH howareudoing.wav howareudoing.wav (112)

./audiomatch -f application.wav -f howareudo.wav
# NO MATCH

目前測試結果,準確性相當低

透過文字自動生成的音檔,可比對出匹配指數 但是透過實際發音的檔案,同樣唸法仍無法匹配出來

Continue Reading

解決 Mac - ERROR: No matching distribution found for MySQLdb

Mac - ERROR: No matching distribution found for MySQLdb

在 Mac 直接透過 brew 安裝 MySQLdb,會出現錯誤提示:No matching distribution found for MySQLdb

解決方式:

brew install mysql-connector-c  

pip install mysqlclient  

這時會出現錯誤,請前往

cd /usr/local/Cellar/mysql-connector-c/6.1.11/bin/  
cp  mysql_config mysql_config.bak #備份
chmod u+w mysql_config  
vi mysql_config  

將 114 行的 ```libs="$libs

接著再執行安裝就成功了

CVT2HUGO: -l "``` 改為 ```libs="$libs -lmysqlclient -lssl -lcrypto"```
pip install mysqlclient  

Continue Reading

CentOS7 安裝 ffmpeg

CentOS7 安裝 ffmpeg

安裝 EPEL 來使用其他 repo 資源

yum install -y epel-release

sudo rpm –import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7

sudo rpm –import http://li.nux.ro/download/nux/RPM-GPG-KEY-nux.ro

sudo rpm -Uvh http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-1.el7.nux.noarch.rpm

yum repolist 

接著執行

yum install -y ffmpeg

查看版本

ffmpeg -version 

Continue Reading

[解決] CentOS7 - PocketSphinx 安裝過程狀況排解

##[解決] CentOS7 - PocketSphinx 安裝過程狀況排解

在安裝 PocketSphinx 過程中

pip install PocketSphinx

發生了安裝錯誤訊息:

error: command ‘swig’ failed with exit status

這部分處理很簡單,缺什麼安裝什麼:

先來安裝 swig

yum  install swig -y

接著再進行安裝,出現另一個錯誤:

**include <pulse/pulseaudio.h>

解決方式:

CVT2HUGO: error: command 'gcc' failed with exit status 1**
yum install python34-devel -y
yum install alsa-lib-devel alsa-utils

最後執行安裝~完成

pip install PocketSphinx

Continue Reading

解決 Python [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed

解決 Python [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed

最近在測試 wit.ai 語音辨識過程出現 CERTIFICATE_VERIFY_FAILED 錯誤,原因是 Python 3.6 之後的版本更改了 OpenSSL 協定,因此需要手動進行更新

Could not request results ; recognition connection failed: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1056) Could not request results from Wit.ai service; recognition connection failed: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1056)

Continue Reading

CentOS7 安裝 PyAudio 發生錯誤[解決]

CentOS7 安裝 PyAudio 發生錯誤[解決]

執行

pip install PyAudio

如果出現以下次錯誤


Collecting PyAudio
  Downloading https://files.pythonhosted.org/packages/ab/42/b4f04721c5c5bfc196ce156b3c768998ef8c0ae3654ed29ea5020c749a6b/PyAudio-0.2.11.tar.gz
Building wheels for collected packages: PyAudio
  Building wheel for PyAudio (setup.py) ... error
  ERROR: Complete output from command /opt/rh/rh-python36/root/usr/bin/python3 -u -c 'import setuptools, tokenize;__file__='"'"'/tmp/pip-install-aqdgoicv/PyAudio/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-3dqdycqf --python-tag cp36:
  ERROR: running bdist_wheel
  running build
  running build_py

原因在於,需要安裝 portaudio ,解決方式如下:

wget http://portaudio.com/archives/pa_stable_v190600_20161030.tgz
tar -xvf pa_stable_v190600_20161030.tgz
cd portaudio
./configure

接著在執行安裝,應該就會正常

pip install PyAudio

Continue Reading

CentOS7 安裝 Python3

CentOS7 安裝 Python3

在這裡紀錄如何在 CentOS7 安裝 Python3 ,主要透過 Software Collections(SCL)來安裝 python3

vim  /etc/yum.repos.d/CentOS-Base.repo

尋找 extras

Continue Reading

Command line 快捷鍵

Command Editing Shortcuts Ctrl + a – go to the start of the command line Ctrl + e – go to the end of the command line Ctrl + k – delete from cursor to the end of the command line Ctrl + u – delete from cursor to the start of the command line Ctrl + w – delete from cursor to start of word (i.e. delete backwards one word) Ctrl + y – paste word or text that was cut using one of the deletion shortcuts (such as the one above) after the cursor Ctrl + xx – move between start of command line and current cursor position (and back again) Alt + b – move backward one word (or go to start of word the cursor is currently on) Alt + f – move forward one word (or go to end of word the cursor is currently on) Alt + d – delete to end of word starting at cursor (whole word if cursor is at the beginning of word) Alt + c – capitalize to end of word starting at cursor (whole word if cursor is at the beginning of word) Alt + u – make uppercase from cursor to end of word Alt + l – make lowercase from cursor to end of word Alt + t – swap current word with previous Ctrl + f – move forward one character Ctrl + b – move backward one character Ctrl + d – delete character under the cursor Ctrl + h – delete character before the cursor Ctrl + t – swap character under cursor with the previous one Command Recall Shortcuts Ctrl + r – search the history backwards Ctrl + g – escape from history searching mode Ctrl + p – previous command in history (i.e. walk back through the command history) Ctrl + n – next command in history (i.e. walk forward through the command history) Alt + . – use the last word of the previous command Command Control Shortcuts Ctrl + l – clear the screen Ctrl + s – stops the output to the screen (for long running verbose command) Ctrl + q – allow output to the screen (if previously stopped using command above) Ctrl + c – terminate the command Ctrl + z – suspend/stop the command

Continue Reading

Golang - Gin router 基本介紹

Go - Gin router 基本介紹

這裡針對 Gin routers 進行基本介紹,後續會針對個部分進行探討。

Gin 基本的一個架構如下方代碼:

Continue Reading

Golang - Go Module 套件管理 & 初始化及安裝 gin

Go - go module 初始化及安裝 gin

Gin 是一個 Golang 網頁架構,具有相當好的效能,高於 httprouter 40 倍的速度,是一個兼具效能與實用的架構。

這裡首先會針對 go module 初始化 如何透過 Go Module 管理套件,以及說明如何透過 Go Module 安裝 gin 的流程。

Continue Reading