原创 c++ do while(0) 原理

It’s the only construct in C that you can use to #define a multistatement operation, put a semicolon after, and sti

原创 使用 pyenv 管理多個python版本

1 Install related 2 Install pyenv 2-1 Installing with homebrew 3 List all version and install certain version 4

原创 23設計模式總結

0 前言 0-1 設計模式的六大原則 0-1-1 單一職責原則 Single responsibility principle 0-1-2 里氏替換原則 Liskov Substitution Principle 0-1-3

原创 SSH Tutorial for linux

SSH Tutorial for linux 1 What is SSH 2 Getting Started 3 Generating a key 3-1 Installing your public key manually

原创 數據庫中的三種鏈接策略 hash join、merge join、 nested loop

1 嵌套連接nested loop join 2 合併連接merge join 3 hash連接hash join 1) 嵌套連接(nested loop join) Nested loops 工作方式是循環從一張表中讀

原创 MySQL 分區表

MySQL 分區表 轉載自:http://my.oschina.net/jasonultimate/blog/548745?fromerr=GbwoDMxI 以作備忘 1 什麼是表分區 2 表分區與分表的區別 3 表分區

原创 UML學習總結

面向對象的問題的處理的關鍵是建模問題。建模可以把在複雜世界的許多重要的細節給抽象出。許多建模工具封裝了UML(也就是Unified Modeling Language™)。 1 UML中的類圖 2 UML中的四種關係 2-1

原创 xcode的多版本管理

xcode的多版本管理工具 xcode-select 指定當前使用的xcode版本 xcode-select -s /Applications/Xcode.app/Contents/Developer 顯示當前使用的版本路徑 xc

原创 plist 文件詳解

plist文件詳解 info.plist 全稱 Information Property List Key Reference plist是xml結構的文件 文件中主要由兩個集合數據結構組成dict和array, 以及和各種數

原创 .bash_profile vs .bashrc

.bash_profile vs .bashrc 區別 WHEN working with Linux, Unix, and Mac OS X, I always forget which bash config file to

原创 值得一讀的好書

1 計算機原理 2 算法 3 C 4 C 5 操作系統計算機網絡 6 軟件工程 1) 計算機原理 深入理解計算機系統 9.5(1778) 編碼——隱匿在計算機軟硬件背後的語言(左飛.電子工業出版社:2010) 9.1(4

原创 postgresql 常用知識點總結列表

psql 常用命令 table 常用命令 postgres 查詢命令詳解 postgres 索引 postgres 從修改行返回數據 權限相關操作 行安全策略 事務 窗口函數 分區表 schema 繼承 postgres 併發控

原创 wget 常用例子

1 COMMON COMMANDS 1-1 Download a single file from the Internet 1-2 Download a file but save it locally under a di

原创 psql 常用命令

1) psql common commands 1-1) Connect to postgresql database psql -d dbname -U username -h host "sslmode=require" -W

原创 在mac上安裝postgres數據庫

在mac上安裝postgres數據庫 Install Homebrew brew install postgres initdb /usr/local/var/postgres To start server at startu