原创 加載laptop Aspire one (acer) 的wifi內核模塊
查找laptop的wifi內核模塊: $ modprobe -l | grep wifi 加載相對應的模塊: $ sudo modprobe iwlwifi $ sudo iwlist scan
原创 刪除(解除)當前目錄的svn記錄
$rm -rf `find . -name .svn`
原创 關於Ph.D的那些事
1. 3 qualities of successful Ph.D. students: Perseverance, tenacity and cogency 2. Academic job search advice 3. So
原创 PSQL快速入門(二)
1. 數據庫的讀取用戶必須和建立用戶是用一個,才能夠正常檢索到數據. 2. PSQL是可以通過large objects的方式存儲大數據在表中. (相關介紹如下:) http://michael.otacoo.com/postgresq
原创 PgAdmin3訪問遠程server database
如圖所示,單擊左上角的類似電源插頭的按鈕,出現上層的對話框,如圖填寫信息,添加遠程server的數據庫。
原创 遠程訪問postgresql數據庫
1: ssh 登錄遠程的PostgreSQL database server: ssh username@ipaddress2: Enable client authentication: 編輯 /etc/postgresql/9.1
原创 pickle 用法 reference
http://oldj.net/article/python-pickle/ 寫的比較清楚, 而且有例子. http://docs.python.org/2/library/pickle.html#module-cPickle Pyth
原创 解決: could not write bytes broken pipe ubuntu
在window, ubuntu的雙系統中,grub無法正常進入ubuntu, 報如題的錯誤,解決辦法: sudo apt-get update sudo apt-get purge nvidia-* sudo apt-get instal
原创 NetString in Twisted
1. 在 $vi /usr/share/pyshared/twisted/protocols/basic.py,那裏是具體各個協議的定義 2. 52行起是Netstring的定義,可以看到裏面每個方法都是怎麼定義的。 3. 167行,就是
原创 python3-postgresql
import pg (postgres) in python codes, you need to install 'python3-postgresql' or search it as follows: $ sudo apt-cach
原创 Python: Sort a dictionary by value
http://stackoverflow.com/questions/613183/python-sort-a-dictionary-by-value import operator x = {1: 2, 3: 4, 4:3, 2:1
原创 Python: .encode方法
官方教程: http://docs.python.org/2/howto/unicode.html 方法.encode([encoding], [errors='strict']), 返回一個 8-bit string version
原创 一個很好的Python library reference
http://docs.python.org/2.3/lib/typesmapping.html
原创 svn: warning: '.' is not a working copy
- Delete all local contents $ rm -rf content - update to the svn server $ svn up 點贊 收藏 分享 文章舉報
原创 matlab plot
% bw1=load('c1/bw_logger_9_17_18_16.log'); % bw2=load('c2/bw_logger_9_17_18_38.log'); % bw3=load('c3/bw_logger_9_17_18_