Time of Update: 2018-12-05
iBATIS學習總結=========================== SqlMapConfig ===========================1、classpath依賴項目 下載最新 ibatis-x.x.x.xxx.zip 檔案,擷取最新的 ibatis-2.3.4.726.jar, 並根據其中 jar-dependencies 檔案的描述下載 iBATIS 依賴的 jar 包,把以上 jar 包添加到項目 classpath 中。 2、SQL Map
Time of Update: 2018-12-05
1.安裝CVS,在新立得包管理器裡面選中cvs(系統-系統管理-新立得軟體包管理器,在右邊的軟體包列表中隨便選中一個,然後鍵盤上按cvs這三個字母,就會定位到以這三個字母開頭的軟體包),然後點擊滑鼠右鍵,在菜單中選中標記以便安裝。然後點擊上方工具列中的應用,系統會自動下載包,然後安裝。2.安裝CVSD,同上,選中cvsd,安裝。安裝cvsd後,會提示設定repository的位置,這個地方只要輸入相對於RootJail的位置就可以。RootJail在/etc/cvsd/cvsd.conf中進行設
Time of Update: 2018-12-05
導致這個原因是升級了系統核心版本,並且當前使用的是升級後的核心版本,解決辦法是需要重新編譯virtual box.在終端輸入命令:VBox,將會提示你怎樣去做。 基本提示如下: ~$ VBoxWARNING: The vboxdrv kernel module is not loaded. Either there is no module available for the current kernel (2.6.24-21-generic) or it failed
Time of Update: 2018-12-05
1、要用到 SysTray for Java (http://systray.sourceforge.net/)2、請把引用的 dll 檔案放在工程的根目錄下3、請把圖片資源檔夾 icons 放在工程根目錄下面4、引入 systray4j.jar 包5、編寫如下java代碼 package com.tray;import java.awt.Dimension;import java.awt.GridLayout;import java.awt.Toolkit;import
Time of Update: 2018-12-05
1. Tomcat-5.5.17 環境配置 1.1 下載 Admin 模組, 把壓縮包裡面的 conf 和 server 檔案夾直接拷貝到 Tomcat 根目錄下. 1.2 增加 Tomcat 系統管理員角色和使用者.在 conf/tomcat-users.xml 檔案中增加如下內容: <role rolename="admin"/> <user username="admin" password="admin"
Time of Update: 2018-12-05
其實關閉的指令碼和IE瀏覽器都是一樣的window.open("http://www.google.com","contactWeb"+randomNumber(10000),"toolbar=0,location=0,status=0,menubar=0,scrollbars=auto,resizable=no,width="+loginWidth+",height="+loginHeight+",left="+x+",top="+y);window.opener = null;//
Time of Update: 2018-12-05
browser顯示網頁的時候,首先使用response中指定的編碼(jsp檔案頭指定的contentType最終也反映在response上),如果未指定,則會使用網頁中meta項指定中的contentType。 3.5. 幾處設定 對於web應用程式,和編碼有關的設定或者函數如下。 3.5.1. jsp編譯
Time of Update: 2018-12-05
<!-- copyright (c) 2009 Google inc. You are free to copy and use this sample. License can be found here: http://code.google.com/apis/ajaxsearch/faq/#license--><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/
Time of Update: 2018-12-05
// isPopupTrigger()返回此滑鼠事件是否為該平台的快顯功能表觸發事件。 private static class PopupMenuListener extends MouseAdapter { private final JPopupMenu menu; PopupMenuListener(JPopupMenu menu) { this.menu = menu; } public void
Time of Update: 2018-12-05
public static void main(String[] args) { // TODO 定義一個日曆對象 GregorianCalendar d = new GregorianCalendar(); // TODO 擷取當天資訊 int md = d.get(Calendar.DAY_OF_MONTH); int ym = d.get(Calendar.MONTH); /
Time of Update: 2018-12-05
1. Server package com.mengnew.server;import java.io.BufferedReader;import java.io.IOException;import java.io.InputStream;import java.io.InputStreamReader;import java.io.OutputStream;import java.io.PrintWriter;import java.net.ServerSocket;import
Time of Update: 2018-12-05
給出範例程式碼如下:sendemail.frmVERSION 5.00Begin VB.Form Form1 Caption = "Form1" ClientHeight = 5250 ClientLeft = 60 ClientTop = 345 ClientWidth = 5865 LinkTopic = "Form1" ScaleHeight = 5250
Time of Update: 2018-12-05
mencoder "/home/guo/Videos/hp/hp.flv" -o "/home/guo/Videos/hp/outfile.flv" -of lavf -oac mp3lame -lameopts abr:br=56 -ovc lavc -lavcopts vcodec=flv:vbitrate=5000:mbd=2:mv0:trell:v4mv:cbp:last_pred=3:dia=4:cmp=6:vb_strategy=1 -vf scale=512:-3 -ofps 12
Time of Update: 2018-12-05
今天碰到一個客戶在使用前一段編寫的工作流程設計工具的時候,在開啟設計器的時候出現如下異常資訊:Unable to load graphics library [GDI+ is required]滿頭霧水,google一下,有大俠提醒是可能OS缺少 GDI+運行庫造成的, 在Eclipse中使用Draw2D中的一些Graphics進階應用程式時候,比如使用Anti-alias,Alpha繪圖等等,在Windows中需要GDI+的支援,在Linux平台上也需要相應的運行庫(Cario for
Time of Update: 2018-12-05
//一段可以判斷瀏覽器類型和版本的代碼window["MzBrowser"]={};(function(){ if(MzBrowser.platform) return; var ua = window.navigator.userAgent; MzBrowser.platform = window.navigator.platform; MzBrowser.firefox = ua.indexOf("Firefox")>0; MzBrowser.opera = typeof
Time of Update: 2018-12-05
package com.newbee.brooder;import java.io.File;import java.io.FileInputStream;import java.io.FileNotFoundException;import java.io.FileOutputStream;import java.io.IOException;import java.util.ArrayList;import java.util.Arrays;import
Time of Update: 2018-12-05
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd , ww, E"); //sdf.format("2009-12-31"); Calendar cl = Calendar.getInstance(); cl.setFirstDayOfWeek(GregorianCalendar.SUNDAY);// 每周以周日開始
Time of Update: 2018-12-05
1、切換到root使用者 $sudo -s 2、共用庫的安裝 #apt-get install libxml2-dev#apt-get install libgtk2.0-dev#apt-get install libssl-dev 3、下載軟體包 openfetion-1.8.tar.gz,並解壓縮 #tar xzf openfetion-1.8.tar.gz 4、進入解壓後的檔案夾 openfetion-1.8 #cd
Time of Update: 2018-12-05
1、介面定義import java.util.concurrent.ExecutionException;public interface Computable<A,V> {V compute(A arg) throws InterruptedException, ExecutionException;}2、類實現import java.util.concurrent.Callable;import
Time of Update: 2018-12-05
在Visual Basic 6.0類的技術與應用(上)(以下簡稱上文)中,我們討論了類的理論、類的建立和類的方法的編程實踐,實際上,類之所以能夠在軟體工程中廣泛應用,最主要的一點是它可以非常方便的封裝許多編程需要的屬性,這不僅使程式員在一定程度上克服控制項(ocx)和連結庫(dll)設計和調試中的複雜性,而且能夠提高程式碼的簡潔和高效性——本文將討論完整的類的編程,包括方法、屬性和基本事件。 (一)類的屬性的特徵和定義; 類似於標準控制項的屬性,類的屬性允許使用者在指定的資料範圍內進行賦值,