Time of Update: 2018-12-04
//有一word文檔表格//形如://姓名 ${name} //電話 ${tel} //從資料庫讀取記錄替換上述變數 import java.io.FileOutputStream;import java.util.HashMap;import java.util.Iterator;import java.util.List;import java.util.Map;import java.util.Map.Entry;import
Time of Update: 2018-12-04
今天閑來無事,弄了QTP11耍耍。。。。簡要記錄一下下。QTP11的:http://www.genilogix.com/downloads/unified-functional-testing/quicktest-professional-11.iso安裝:測試安裝在Window7 旗艦版
Time of Update: 2018-12-04
package com.wzs;import java.util.LinkedList;import java.util.Queue;// 圖的遍曆public class Graph {// 鄰接矩陣儲存圖// --A B C D E F G H I// A 0 1 0 0 0 1 1 0 0// B 1 0 1 0 0 0 1 0 1// C 0 1 0 1 0 0 0 0 1// D 0 0 1 0 1 0 1 1 1// E 0 0 0 1 0 1 0 1 0// F 1 0 0 0 1
Time of Update: 2018-12-04
package com.wzs;import java.util.ArrayList;import java.util.Arrays;import java.util.List;//求數組中最長遞增子序列public class Test{ public static void main(String[] args) { int a[] = { 1, -1, 2, -3, 4, -5, 6, -7 };
Time of Update: 2018-12-04
// 如何判斷一個字元是數字public class Test{ /* 測試函數 */ public static void main(String[] args) { char[] ch = { 'a', '1', 'b', '2', 'c', '3', 'd', '4', }; System.out.println(ch[0] + ": " + isDigitA(ch[0]));
Time of Update: 2018-12-04
public class Test{ public static void main(String[] args) { System.out.println(getSafeCommand("abcd&efg")); System.out.println(getSafePath("abcd/efg")); } /** * Get the safe path * @param filePath Enter the path
Time of Update: 2018-12-04
1. Draga) Then I drag from 5:40 to 95:40 moving with 60 steps It's a horizontal drag, one the first phone (HTC Legend -> screen size 3.2) it works but on the second phone (Sony Xperia -> screen size 4.2) it doesn't work because the scree size
Time of Update: 2018-12-04
// 數組迴圈移位// 數組長度為n,迴圈移位kpublic class Test{ public static void main(String[] args) { String str = "abcd1234"; for (int i = 1; i <= 10; i++) { rightShift1(str.toCharArray(), i); }
Time of Update: 2018-12-04
#include <opencv2/core/core.hpp>#include <opencv2/highgui//highgui.hpp>#include <opencv2/objdetect/objdetect.hpp>#include <string>#include <vector>using namespace std;int main() { cv::CascadeClassifier
Time of Update: 2018-12-04
word開啟很慢,機器也用了很久了(2年了),又不想重裝,重裝後很多東西都得裝過。把office2003卸掉換成2007,開啟還是很慢。難道是病毒?後來發現個解決辦法。用這篇文章開頭部分的解決辦法(紅色部分)就解決了我的問題解決開啟word文檔太慢問題的9個方法癥狀: 直接雙擊開啟很慢, 慢到不可思議!有時雙擊開啟一個文檔要5到10分鐘,以前一直是正常! 但是奇怪的是開啟word軟體後再用工具列上的開啟就正常,重裝office後還是這樣! 解決辦法:
Time of Update: 2018-12-04
package com.test;import java.util.Arrays;// 求最小產生樹----普裡姆演算法(Prim)public class MiniSpanTreePrim {public static void main(String[] args) {// 構造最小產生樹int vertexNumber = 9;// 定點數int arr[][] = new int[vertexNumber][vertexNumber];// 圖的鄰接矩陣for (int i = 0;
Time of Update: 2018-12-04
效能指標: 效能指MaxAvgMincpu佔用率 7% 每次回應時間(秒)27 秒3 秒0.06 秒每秒完成搜尋(個) 1.8個 結論跟據上述資料得出,每日可承受1.8個/秒*3600秒*10小時=6.4萬次搜尋目前線上每日搜尋次數在6-7千,而且線上硬體環境要遠遠好於測試環境,所以上線後各個指標肯定好於測試結果,但磁碟存在出現瓶徑的風險,見如下分析 測試對象:部落格搜尋使用sphinx測試環境:伺服器 192.168.15.224 (配置雙核1.8 記憶體1G. 頻寬為100M
Time of Update: 2018-12-04
CMD.EXE 命令提示字元程式發現不能輸入漢字,而且出現中文資訊就是"?"亂碼,DOS命令協助全成了英文,不能在 CMD 命令提示字元下輸入中文進入中文命名的檔案夾等中文字元的問題。1. 出現中文資訊就是"?"亂碼,DOS命令協助全成了英文解決方案就是將下面的內容複寫到記事本,另存新檔副檔名為“.reg”的檔案,雙擊匯入註冊表就完成了 CMD 命令提示字元下漢字輸入和漢字顯示的恢複Windows Registry Editor Version 5.00[HKEY_CURRENT_USER\
Time of Update: 2018-12-04
今天入手一個aigo MiniKing8G優盤,結果發現檔案不能複製,windows格式化失敗,四處找資料。首先使用ChipEasy晶片無憂 V1.5.4.1 正式版工具發現該隨身碟使用SM3255AB晶片。:然後下載SMI3255AB的量產工具(量產工具與晶片型號儘可能要匹配)。運行後,如: 量產需要5步:1.點擊重新整理scan
Time of Update: 2018-12-04
import java.awt.BorderLayout;import java.awt.Color;import java.awt.Dimension;import java.awt.Toolkit;import javax.swing.BorderFactory;import javax.swing.JFrame;import javax.swing.JPanel;import javax.swing.border.Border;import
Time of Update: 2018-12-04
今天在使用selenium +webdriver開啟chrome,代碼如下:from selenium import webdriverdriver=webdriver.Chrome()driver.get("www.google.com")運行代碼後會出現如下錯誤:Traceback (most recent call last): File "/Selenium_Python/selenium_python/forward_url.py", line 7, in
Time of Update: 2018-12-04
InSync02:使用RemoteObject事件 一、運行DEMO:1、運行程式:http://localhost:8400/spring-flex-testdrive/insync02/index.html;二、理解代碼: 1、insync02.mxml:<s:RemoteObject id="ro" destination="contactService" fault="faultHandler(event)"
Time of Update: 2018-12-04
先從最簡單的說明上來看,Web(HTTP/HTML): Emulation of communication between a browser and Web Server.Web(Click and Script):Emulation of the communication between a web browser and the web server at user-action level.從字面上來看,Web(Click and Script)就是多了 ”
Time of Update: 2018-12-04
使用loadrunner進行效能測試,以b/s系統為例,有典型的三層架構。1,用戶端,也就是loadrunner所安裝的機器。此機器大部分為windows2003系統,loadrunner9.5可以直接運行ie6.0瀏覽器。如果安裝在xp系統上,因為ie8瀏覽器,需要在我的電腦/右鍵屬性/進階/效能/資料執行防止下先第一項,才能正常啟動瀏覽器。另將註冊表中TcpTimedWaitDelay 改為
Time of Update: 2018-12-04
package com.test;import java.util.ArrayList;import java.util.Collections;import java.util.List;// 求最小產生樹----克魯斯卡爾演算法(Kruskal)public class MiniSpanTreeKruskal {public static void main(String[] args) {List<Edge> edges = new ArrayList<Edge>(