原创 android 中在代碼中設置dp單位的組件高度

原文地址:http://write.blog.csdn.net/postedit     DisplayMetrics metrics = new DisplayMetrics() getWindowManager().getDefaul

原创 一個web版outlook的實現

原文地址:http://write.blog.csdn.net/postedit   該系統實現類型outlook的功能,能將用戶各個郵箱的郵件及時的同步並整理,同時可以通過用戶設置的發送郵箱在系統進行發送郵件   系統組件 1. Ema

原创 webmagic實戰使用

一.引入依賴包 <dependency> <groupId>us.codecraft</groupId> <artifactId>webmagic-core</artifactId> <version>0.4.3</vers

原创 android控件佔滿剩餘高度

原文地址: http://write.blog.csdn.net/postedit   <ListView         android:id="@+id/map_poi_list"         android:divider="@

原创 dubbo使用記錄

一.引入相關包 <dependency> <groupId>org.apache.zookeeper</groupId> <artifactId>zookeeper</artifactId> <version>3.4.6</versio

原创 ReentrantLock控制線程池

webmagic每次在爬取一個網頁時都會將他丟到線程池中的線程去處理,線程池有相應的大小閥值,其中用到了ReentrantLock 重入鎖機制控,在超出閥值後等待,防止過多的任務進入   將目標url(request)放入線程池中執行

原创 spring中RestTemplate的使用

一.導入依賴 ​ <dependency> <groupId>org.springframework</groupId> <artifactId>spring-web</artifac

原创 springcloud中zuul的應用

zuul常用作網關服務,本例使用zuul作爲網關限流服務 一.pom.xml依賴   <dependencyManagement> <dependencies> <dependency>

原创 springboot中使用RestTemplate

一。導入依賴  pom.xml    <dependency> <groupId>org.apache.httpcomponents</groupId> <artifactId>htt

原创 下拉刷新組件 PullToRefreshListView的使用

1.導入庫   下載 Android-PullToRefresh-master.zip 包    解壓後將裏面的library 作爲android 項目導入    然後把library 作爲工程的依賴       2.佈局文件     

原创 android帶勾選項的列表

一.列表中每項的佈局文件 <?xml version= "1.0" encoding ="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/a

原创 android 拍照與相冊使用總結

一.拍照 發起拍照動作 public void photo() { try{ Intent openCameraIntent = new Intent(MediaStore.ACTION_IMAG

原创 人工智能--人類的二次進化

      人工智能近些年以可見的速度在發展,人類社會也正迎來一場新的變革。       現在的人工智能早在70,80年代就已興起,隨着雲計算,大數據的興起,人工智能重新升溫。我們現在看到的人工智能其實離真正的人工智能還很遠, 例如人類在

原创 android樹形列表實現

一. 實現方法      1.列表中每項的佈局文件    <?xml version= "1.0" encoding ="utf-8"?> <RelativeLayout xmlns:android="http://schemas.and

原创 android 文件上傳與下載(帶進度條)

原文地址:http://write.blog.csdn.net/postedit              private void uploadAttachment (final String path) {