0%

youtube-dl is an open-source software project that downloads video and audio primarily from YouTube, but also supports other websites. It uses the Unlicense software license.
As of October 2020 the project was one of the most starred projects on GitHub, with over 72,000 stars. The project also had 84 dependent packages and 1.43k dependent repositories according to libraries.io.

Wikipedia ── youtube-dl

Introduction

在七月份的時候,我們介紹了一款開源與命令行介面的程式碼專案 youtube-dl,但就在 2020 年 10 月 23 日,這項開源程式碼專案被 RIAA 根據 DMCI 請求 GitHub 下架,其中包括 youtube-dl 以及其分支,在請求書中,RIAA 引用了 DMCA-1201,聲稱用戶會使用該儲存庫來下載對社會不公平的影片,並侵犯了版權。

Read more »

Introduction

Flask 是一個使用 Python 編寫的輕量級 Web 應用框架,由於其輕量特性,也被稱為 micro-framework。雖然我們在完成一個 Flask 應用程式後可以通過 python3 api.py 來啟動伺服器,但這只適合用於測試環境中,正式發佈的服務需要一個穩定而持續的伺服器,例如 Apache、Nginx 等。其中 Nginx 是一款面向效能設計的 HTTP 伺服器,相較於 Apache、lighttpd 具有占有記憶體少,穩定性高等優勢,此外,Nginx 的優點還包括:高度模組化的設計,模組編寫簡單,以及設定檔簡潔。

因此在本篇文章,我們將結合先前的 PyTorch 實戰 - 高鐵驗證碼辨識,實作一個辨識驗證碼的 Flask API──通過傳入圖片在辨識完成後回傳驗證碼──,並部署於 CentOS 7 上,

architecture

Read more »

Types of Keyboard

鍵盤依結構主要可分為五種,而市面上主要以薄膜鍵盤(Membrane Keyboard)、機械鍵盤(Mechanical Keyboard)最為常見,其它還包括靜電容式鍵盤、光學鍵盤、霍爾效應鍵盤等。

Read more »

Introduction

An uninterruptible power supply or uninterruptible power source (UPS) is an electrical apparatus that provides emergency power to a load when the input power source or mains power fails. A UPS differs from an auxiliary or emergency power system or standby generator in that it will provide near-instantaneous protection from input power interruptions, by supplying energy stored in batteries, supercapacitors, or flywheels. The on-battery run-time of most uninterruptible power sources is relatively short (only a few minutes) but sufficient to start a standby power source or properly shut down the protected equipment. It is a type of continual power system.

Wikipedia ── Uninterruptible power supply

meme-no-ups

Reason for Purchase

原本在 2017 年時購入了 UPS CP1000AVRLCD,結果這兩天搬家,插頭重新插上後 Overloads 警告作響,參考了官方與其他文章的解決辦法依然無解,只好正式宣告他壽終正寢。但已經習慣有 UPS 的我,沒了這個總是心慌慌,尤其在最近又買了新螢幕(AOC CU32V3)、新鍵盤(Leopold FC900R PD Sky)、新滑鼠(Logitech G304)、新音響(Edifier),總覺得該善待一下他們,於是又再買了台 UPS。

Read more »

Introduction

在預設情況下,Windows 10 檔案總管會在側邊欄中顯示網路圖示,雖然這對於經常使用區域網路的人非常有效率,但卻對大多數──例如僅有一台個人電腦、不使用 Windows SMB 協定或使用其他網路共享模式──的使用者毫無用處。此篇文章中將會說明如何從檔案總管中移除網路圖示。

Read more »

Introduction

youtube-dl is a command-line program to download videos from YouTube.com and a few more sites. It requires the Python interpreter, version 2.6, 2.7, or 3.2+, and it is not platform specific. It should work on your Unix box, on Windows or on macOS. It is released to the public domain, which means you can modify it, redistribute it or use it however you like.

youtube-dl ── ytdl-org/youtube-dl

youtube-dl 是一個開源程式碼專案,,可以從 Youtube 或是許多網站上下載影片。由於是基於 Python 開發,使得 youtube-dl 並不限定於特定平台使用。在本篇文章中將簡單介紹幾個 youtube-dl 用法。

Read more »

Introduction

Microsoft Edge is a web browser developed by Microsoft. It was first released for Windows 10 and Xbox One in 2015, then for Android and iOS in 2017, and for macOS in 2019.

Edge includes integration with Cortana and has extensions hosted on the Microsoft Store. Unlike Internet Explorer, Edge does not support the legacy ActiveX and BHO technologies.

Originally built with Microsoft’s own proprietary browser engine EdgeHTML and their Chakra JavaScript engine, Edge was rebuilt as a Chromium-based browser in 2019, using the Blink and V8 engines. As part of this change (codenamed Anaheim), Microsoft made preview builds of Edge available on Windows 7, 8, 8.1 and macOS, in addition to Windows 10. The first public release followed on January 15, 2020. In June of 2020 Microsoft began automatic rollout of Edge via Windows Update for Windows 7, 8.1 and all Windows 10 versions from version 1803 to version 2004.

Wikipedia ── Microsoft Edge

遙想當年 Internet Explorer (IE) 叱吒風雲,在被 Google Chrome 殺入後一蹶不振,而 Chrome 亦以 69.18% 的市佔率遙遙領先其他瀏覽器。然而,Chrome 在開啟後所消耗的記憶體使用量為人詬病,龐大的資源使用量使得部分電腦不堪負荷,而 Google 在 Chrome 上建立了良好且完整的生態圈,使得使用者難以跳入其他瀏覽器,強化了使用者黏著度。

而新版 Microsoft Edge 基於 Chromium 開發,除了容許了來自 Chrome Web Store 的擴充元件,成為 Chrome 使用者跳入 Edge 的一大誘因外,由於針對 Windows 10 進行最佳化,在資源使用率與執行效能上會較 Chrome 表現來得更為優秀。

Read more »

Introduction

Powerline is a statusline plugin for vim, and provides statuslines and prompts for several other applications, including zsh, bash, fish, tmux, IPython, Awesome, i3 and Qtile.

powerline── powerline

雖然透過 PIP 安裝 Powerline 極為方便,然而 CentOS 7 下安裝並使用於 C Shell 時會有一些小細節與問題需要注意,本篇文章將紀錄如何由 CentOS 7 下安裝 Powerline 並成功應用於 C Shell 下。

Read more »

最近我的 Windows 10 電腦,檔案總管並不會自動更新資料夾,必須按下 F5 手動刷新。舉例而言,當在桌面按下右鍵 -> New -> Folder,或是透過瀏覽器下載檔案後,桌面並不會馬上出現應顯示的新增資料夾或檔案,而是必須透過 F5 手動刷新。此外發現這樣的情況不僅限於 Windows 10,包括 Windows 7、8、8.1 等版本都有可能存在。

Read more »

Introduction

A CAPTCHA (/kæp.tʃə/, an acronym for “completely automated public Turing test to tell computers and humans apart”) is a type of challenge–response test used in computing to determine whether or not the user is human.

The term was coined in 2003 by Luis von Ahn, Manuel Blum, Nicholas J. Hopper, and John Langford. The most common type of CAPTCHA (displayed as Version 1.0) was first invented in 1997 by two groups working in parallel. This form of CAPTCHA requires that the user type the letters of a distorted image, sometimes with the addition of an obscured sequence of letters or digits that appears on the screen. Because the test is administered by a computer, in contrast to the standard Turing test that is administered by a human, a CAPTCHA is sometimes described as a reverse Turing test.

Wikipedia ── CAPTCHA

驗證碼的主要目的在於辨別人類與電腦,目前主流為圖形文字認證,也就是顯示一張背景干擾、文字扭曲的英數圖片,要求使用者填入圖片中的文字,並在比對確認無誤後才可進行接下來的操作(如留言、交易等)。在過往,由於影像的破損,使電腦因為無法從背景的雜訊中讀出這些字母而難以辨識,但受惠於硬體效能的提升與深度學習的崛起,使電腦得以透過機器學習來辨識驗證碼影像並帶有高準確率。目前主流的機器學習庫包含 PyTorch、Tensorflow(with Keras)等,在本文中,我們選擇 PyTorch 作為使用的機器學習庫,並以此建立一神經網路對台灣高鐵網站上的驗證碼進行訓練與辨識。

Read more »