原创 the archive which is referenced by ...問題解決方案 原

"the archive which is referenced by the classpath,does not exist"解決辦法: 1、在Eclipse 的Project Explorer 視圖中右鍵項目 選“properties

原创 mysql 刪除重複數據 原

DELETE FROM 表0 WHERE id NOT IN ( select id from ( SELECT id FROM 表0 GROUP BY 字段0, 字段1) t );

原创 window批量清除指定後綴類型文件 原

例: del e:\目錄\*.log /f /s /q

原创 java語言實現將mysql的linestring、point 數據類型解析成double類型 原

mysql的linestring、point從jdbc讀入爲byte[] 類型,下面的java代碼實現逐次讀取經緯度數據,返回double數組:   public static double[] bytestoPoints(by

原创 maven 項目deploy報400錯誤解決 原

如下圖將 Deployment policy 設置爲 Allow Redeploy ------------------- 另,自動部署到nexus: 在項目pom.xml中添加     <distributionManagement>

原创 ToolProvider.getSystemJavaCompiler 返回null解決辦法 原

選擇菜單“Run”->"Run configurations",在Classpath中Bootstrap Entries 添加 tools.jar,如下圖  

原创 python根據經緯度計算兩點距離 原

import math pi=3.1415926 earthRadius=6378137 def rad(d):     return d *pi  / 180.0 def getDistance(lng1, lat1, lng2, lat

原创 oracle 時間戳(timestamp)字段比較 原

select   round(     (cast(timefield0 as date) - cast(timefield1 as date))     * 24 * 60   ) as diff_minutes from table

原创 linux 下用匯編獲取cpu id 原

#include <stdio.h> int main(int argc, char * argv[]) {          unsigned int s1 = 0;     unsigned int s2 = 0;     asm vo

原创 maven 複製依賴包到指定目錄 原

<plugin>                 <groupId>org.apache.maven.plugins</groupId>                 <artifactId>maven-dependency-plugin

原创 java執行指定的jpython函數(帶參數) 原

//PythonInterpreter interpreter ,python模擬器 java執行指定的jpython函數(帶參數) PyFunction func = (PyFunction) interpreter.get(“func1