原创 Java使用PrintWriter更好地格式化待追加的文本

/* 使用PrintWriter可以更好地格式化要追加的文本內容 */ import java.io.*; public class Exercise { public static void main(String ar

原创 Java使用File的的delete()方法刪除文件

From: http://beginnersbook.com/2014/01/how-to-delete-file-in-java-delete-method/ /* 使用File的delete()方法刪除文件 */ import

原创 python將unicode和str互相轉化

問題一: 將u'\u810f\u4e71'轉換爲'\u810f\u4e71' 方法: s_unicode = u'\u810f\u4e71' s_str = s_unicode.encode('unicode-escape').deco

原创 滴滴雲安裝PyTorch GPU版本並連接本地PyCharm做代碼調試和同步

主題: 滴滴雲服務器上安裝PyTorch GPU版本 本機PyCharm連接雲服務器做代碼調試和同步(雲服務器不限於滴滴雲) 背景 做深度學習的實驗,尤其是涉及圖像的實驗,大的預訓練模型,如VGG、ResNet等配合規模不小的

原创 免費開放聚合的論文查詢下載網站推薦:查詢SCI、SSCI、EI、核心期刊、CCF會議論文列表,免費下載論文

應用場景1:大家在檢索論文時,需要知道該論文所在刊物的類別,對於期刊,我們一般關心其是否屬於SCI或者SSCI或者EI或者中文核心期刊等,對於計算機領域的會議論文,我們一般關注其是否屬於CCF推薦的會議,目的就是要看好論文,要模仿好論文寫

原创 Java8中使用filter()過濾列表,使用collect將stream轉化爲list

Reference: https://www.mkyong.com/java8/java-8-streams-filter-examples/ /* In Java 8, using stream.filter() to filter

原创 For A, B such that AB is square, prove trAB = trBA.

參考資料:https://math.vanderbilt.edu/sapirmv/msapir/prtrace.html Here is the theorem about traces.  Theorem. The following

原创 Java使用FileWriter和BufferedWriter添加內容到文件末尾

From: http://beginnersbook.com/2014/01/how-to-append-to-a-file-in-java/ /* 使用FileWriter 和 BufferedWriter將內容追加到文件末尾 */

原创 Java File renameTo方法重命名文件

From: http://beginnersbook.com/2014/07/how-to-compress-a-file-in-gzip-format/ /* 使用File的renameTo()方法重命名文件 */ import

原创 Ghostscript壓縮、分割、合併PDF

Ghostscript支持命令行操作PDF文件,便於在Linux系統上使用: 1. 現在有一本掃描電子書input.pdf(供306頁),原始大小爲114M,在不影響清晰度和閱讀的情況下,壓縮爲output.pdf,大小爲41.2M(僅爲

原创 Java static variable and static final variable

博文出處:http://beginnersbook.com/2013/05/static-variable/ Earlier we discussed static class, static methods and stati

原创 Java – Static Class, Block, Methods and Variables

In this tutorial we will discuss the use of static keyword in Java. It can be used along with Class name, Variables,

原创 Java8 中使用forEach + lambda expression/method reference 循環List和Map

Reference: http://www.mkyong.com/java8/java-8-foreach-examples/ /* Java8 中使用forEach + lambda expression/method refer

原创 實際工程中提升機器學習算法性能的建議

機器學習工程師Jason Brownlee提供的一份“ML Performance Improvement Cheat Sheet.”  點我下載 Jason Brownlee主張在實踐工程中“自頂向下”地學習機器學習,首先使用機器學習

原创 Python爬蟲小技巧(頁面解析,多進程,模擬瀏覽器,錯誤處理等)

本博文總結一些常用的爬蟲小技巧,不涉及任何爬蟲框架,適用於爲科學研究或者教育目的而從互聯網上爬取少量數據,內容較爲粗略,僅從較高抽象層次進行說明,涉及的模塊使用方法或者代碼實現可以另行搜索其他相關資料參考。   數據需求分析 首先,要明確