原创 android 存儲結構與存儲方法

1. android的存儲方式主要分爲:1)本地的文本存儲;2)數據庫存儲     存儲方法:1)SharedPreference 存儲:適用於簡單的數據保存例如屬性文件                     2)文件存儲數據:常用方

原创 example for document classify use nltk and python

1. get the movie comment and classify it into pos or neg     code like below: 點擊(此處)摺疊或打開 >>> import nltki>>> import

原创 how to use BaiduMap in android studio under ubuntu

1. get the key     1) the address : http://lbsyun.baidu.com/apiconsole/key     2) and the help view :http://developer.

原创 搭建spark cluster過程中 scp傳送文件 文件權限管理 磁盤及文件使用情況

1. scp就是ssh-copy,我是這麼理解的。。。     用於不同系統之間拷貝文件或者目錄     指令格式     scp [options] file_source file_target     例如:從本地複製到遠程   

原创 搭建spark cluster過程中遇到的網絡問題

1. 虛擬機之間ping不通     虛擬機的網絡模式設置成橋接模式,網卡選擇eth0,而且要爲虛擬機設置不同的ip地址;     如果虛擬機需要網絡連接,則把網絡模式設置成NAT模式。     在我的一片文章中有詳細設置過程,http

原创 find the install path of some software in linux (ubuntu)

find the install path of some software    like python:     點擊(此處)摺疊或打開 dpkg -L python     or the start path: 點擊(此

原创 setup cluster -- configure hadoop

after above two step now we can configure our hadoop at first we must install the "jdk" and then we can install hadoop

原创 setup cluster -- ssh to each other with no key ssh免密鑰登陸配置

聲明:文章原創,轉載需註明出處。由於文章大多是學習過程中的記錄內容,技術能力有限,希望大家指出其中錯誤,共同交流進步。由此原因,文章會不定期改善,看原文最新內容,請到:http://blog.chinaunix.net/uid/29454

原创 Android 隨筆雜記

1. final關鍵字概念     在Java中聲明屬性、方法和類時,可使用關鍵字final來修飾。     final變量即爲常量,只能賦值一次;final方法不能被子類重寫;final類不能被繼承。功能類似於C++中的const。

原创 manage .deb package in linux (ubuntu) dpkg

manage .deb package in ubuntu     install a source package : 點擊(此處)摺疊或打開 warrior@warrior:~/Downloads$ sudo dpkg -i

原创 Spark 中算子功能與分類介紹

    最近看了一些SPARK資料,還沒有系統性的整理,這裏先歸納一下spark中算子的總結。如有什麼錯誤或者不妥之處,希望大神們指出,相互交流共同

原创 The error in python :ImportError: No module named xxx

        只要出現ImportError 錯誤就說明有一個包缺失。在本例中,我們安裝的networkx 模塊有一個未作處理的依賴項——nump

原创 Android 中 SQLite 的應用總結

通過一個demo程序測試了SQLite的語句應用。裏面涉及到,數據庫建立,表的建立,表中數據的添加,更改,刪除,查詢1. 數據庫的建立     Android中集成了SQLite數據庫,但是不回自動提供數據庫,所以我們想應用的話第一步是

原创 note of code in python

1.different of assignment variable and list     for variable: just copy the content of the other     like below: 點擊(此處

原创 install android studio in ubuntu linux

1 install jdk-7 use below command in terminal: 點擊(此處)摺疊或打開 sudo apt-get install openjdk-7-jdk  when install java c