原创 PostGIS安裝

PostGIS安裝 sudo apt-get install PostGIS sudo apt-get install postgresql-9.3-postgis-2.1 PostGIS使用 使用方式: 創建數據庫 CREATE D

原创 ftp服務器配置用戶權限(系統用戶)

Ubuntu 用vsftpd 配置FTP服務器 安裝ftp sudo apt-get install vsftpd 配置vsftpd.conf sudo vim /etc/vsftpd.conf #禁止匿名訪問 anonymous_ena

原创 python報錯MemoryError

python報錯MemoryError python 32bit 最大隻能使用 2G 內存,坑爹之處,超過 2G 報錯MemoryError。 而 64bit python則無此限制,所以建議使用 64bit python。 可能存在的

原创 MapReduce倒排索引實現

輸入數據 輸出數據 代碼 package com.test.ReversedIndex; import java.io.IOException; import java.util.StringTokenizer; import

原创 postgresql安裝

1.安裝postgresql sudo apt-get install postgresql 2.修改postgresql數據庫默認用戶postgres密碼 sudo -u postgres psql ALTER USER postgre

原创 怎樣合併字典最符合Python語言習慣?

轉自EarlGrey的文章 http://codingpy.com/article/the-idiomatic-way-to-merge-dicts-in-python/ 這篇教程探討了哪種合併字典的方式纔是最符合Python語言習