原创 MacOS 安裝 pyfasttext報錯解決方案

https://github.com/vrasneur/pyfasttext/issues/51 系統環境: MacOS Mojave 10.14.6 Python 3.6.8 按照 pyfasttext 給的方式安裝,均出

原创 崗位與候選人匹配查詢 - Job id and skill set query

Candidates CandidateId Skill 1 Sql 1 Dw 1 ssis 2 ssis 2 sql 2 vb Jobs JobId SkillReq 3 Sql

原创 單鏈表反轉-python實現

單鏈表反轉,可以使用 循環、遞歸 兩種方式 循環方式 class ListNode: def __init__(self, x): self.val = x self.next = None def non_recu

原创 MySQL Transaction Isolation Level

Isolation Level Phantom read Nonrepeatable read Dirty read Read uncommitted Possible Possible Possible Read

原创 OAuth 簡介

By ruanyifeng OAuth是一個關於授權(authorization)的開放網絡標準,在全世界得到廣泛應用,目前的版本是2.0版。 本文對OAuth 2.0的設計思路和運行流程,做一個簡明通俗的解釋,主要參考材料爲RFC

原创 Create a self-signed SSL Certificate with OpenSSL

Creating a self-signed certificate with OpenSSL by Mike Solomon OpenSSL comes installed with Mac OS X (but see below)

原创 數據結構——隊列

from https://blog.ansheng.me/article/python-algorithm-combat-series-queue 隊列(queue),是先進先出(FIFO, First-In-First-Out)的線性表

原创 The Flask Mega-Tutorial 之 Chapter 17:Deployment on Linux (部署)

創建 Ubuntu Server 申請了ali_ECS,系統配置 Ubuntu 16.04。 替代方案: 自己安裝 Vagrant 或 Virtualbox 使用 SSH Client Linux:內置 openssh Win:可

原创 The Flask Mega-Tutorial 之 Chapter 9: Pagination

小引 作爲 social network 的特性之一, Chapter 8 已經完成 “followers - followed” 的 db 設置。 前面幾節,一直使用 fake posts 作爲權宜之計;本節將去掉 fake post

原创 The Flask Mega-Tutorial 之 Chapter 15: A Better Application Structure (Blueprint)

Current Limitations 1、當前 application 含有多個 subsystems,但是相關 code 交錯分佈,無明確界限,難以複用。 User Authentication: app/routes.py ,部

原创 The Flask Mega-Tutorial 之 Chapter 10: Email Support

小引 很多網站都有給用戶發 email 的設置,很常規的一個目的是解決 authentication 相關的問題。 本節將添加 email support,基於此添加 password reset feature。 當 user 忘掉

原创 數據結構——棧

from https://blog.ansheng.me/article/python-algorithm-combat-series-stack 棧(stack)又稱之爲堆棧是一個特殊的有序表,其插入和刪除操作都在棧頂進行操作,並且按照

原创 The Flask Mega-Tutorial 之 Chapter 16:Full Text Search (全文搜索)

小引 爲 Microblog 添加 全文搜索 ,對於給定的搜索詞(search term),返回包含搜索詞的所有 posts,並按照相關度降序排列。 Intro to Full-Text Search Engines 1、開源 full

原创 The Flask Mega-Tutorial 之 Chapter 6: Profile Page and Avatars

Objective Add user profile pages to the application (generate profile pages for all users dynamically). Add a small

原创 The Flask Mega-Tutorial 之 Chapter 14: Ajax

小引 傳統情形: Client 向 Server 發送請求 → Server 返回相應的 page → Client 展示 page 。 即使 Client 端僅更新 page 局部信息,都需要請求 Server,然後用新返回的 pag