Time of Update: 2018-12-06
public function LTrim(s : String):String{ var i : Number = 0; while(s.charCodeAt(i) == 32 || s.charCodeAt(i) == 13 || s.charCodeAt(i) == 10 || s.charCodeAt(i) == 9) { i++; } return s.substring(i,s.length);} public function RTrim(s :
Time of Update: 2018-12-06
下面我介紹一下在使用Hibernate 3.0做資料執久層解決方案時,怎麼配置Proxool 0.8.3資料庫連接池的方法。 1、將proxool-0.8.3.jar以及串連資料庫用到的jar檔案包含在你的項目的classpath或者WEB-INF/lib下面,本例使用的是MS Sqlserver資料庫。 2、在和hibernate.cfg.xml平級的目錄建立一個proxoolconf.xml檔案,添加以下檔案內容: <?xml version="1.0" encoding="ut
Time of Update: 2018-12-06
<form name="search" onSubmit="return findInPage();"> <input type="text" id="searchstr" name="searchstr" size="20" value="請輸入基金代碼或簡稱" onClick="javascript:if(this.value=='請輸入基金代碼或簡稱')this.value='';" /> <input type="submit"
Time of Update: 2018-12-06
JAVA語言的開放性,吸引了很多公司和個人作者對JAVA的效能作不斷地完善。JDOM 是兩位著名的 Java 開發人員兼作者,Brett Mclaughlin 和 Jason Hunter 的創作成果,它致力於建立一個完整的基於 Java 平台的解決方案,通過 Java 代碼來訪問、操作並輸出 XML 資料。JDOM可以從http://jdom.com網站上下載,目前最新的版本是beta9.0。一、用JDOM建立XML文檔我們想建立一個形如下文的XML文檔:1.xml<?xml
Time of Update: 2018-12-06
從WebBrowser中取得Cookie 的代碼CookieContainer myCookieContainer = new CookieContainer(); string cookieStr = webBrowser1.Document.Cookie; string[] cookstr = cookieStr.Split(';'); foreach (string str in cookstr) {
Time of Update: 2018-12-06
將2張jpg產生GIF的例子:CodeCode highlighting produced by Actipro CodeHighlighter
Time of Update: 2018-12-06
"100" : Continue "101" : witching Protocols "200" : OK "201" : Created "202" : Accepted "203" : Non-Authoritative Information "204" : No Content "205" : Reset Content "206" : Partial Content "300" : Multiple Choices "301" : Moved Permanently "302" :
Time of Update: 2018-12-06
#region 圖片旋轉函數 /// <summary> /// 以逆時針為方向對映像進行旋轉 /// </summary> /// <param name="b">位元影像流</param> /// <param name="angle">旋轉角度[0,360](前台給的)</param> /// <returns>
Time of Update: 2018-12-06
protected void Button1_Click(object sender, EventArgs e) { Response.Clear(); Response.Buffer = true; Response.Charset = "GB2312"; Response.AppendHeader("Content-Disposition", "attachment;filename=FileName.xls");
Time of Update: 2018-12-06
一個類似於windows的ping程式。using System;using System.Drawing;using System.Collections;using System.ComponentModel;using System.Windows.Forms;using System.Data;using System.Net;using System.Net.Sockets;namespace Ping{ /// <summary> /// Form1 的摘要說明。 ///
Time of Update: 2018-12-06
簡介:Jdom是用Java語言讀、寫、操作XML的新API函數。Jason Hunter 和 Brett McLaughlin公開發布了它的1.0版本。在直覺、簡單和高效的前提下,這些API函數被最大限度的最佳化。在接下來的篇幅裡將介紹怎麼用Jdom去讀寫一個已經存在的XML文檔。關鍵詞:Java、JDOM、XML
Time of Update: 2018-12-06
org.apache.commons.httpclient.HttpClient hc = new org.apache.commons.httpclient.HttpClient(); hc.getHostConfiguration().setHost("localhost", 80); org.apache.commons.httpclient.methods.MultipartPostMethod mpm = new
Time of Update: 2018-12-06
CodeCode highlighting produced by Actipro CodeHighlighter
Time of Update: 2018-12-06
一時熱血沸騰,搞了一個開源項目(關於 GTA IV 的,喜歡 Mod 的朋友有空可以去看看)。 很自然,我就用上了SVN,對於用戶端,我本來首選是 VS2008 的 Team Explorer 的,並打算在 CodePlex 上主持這個項目,可惜我在教育網訪問的速度巨慢,放棄了,選用 Google Code 作為平台,但是 Google Code 不是用 TFS 的,就是說不能用 Team Explorer 了。之後看到 Google Code 上面的一篇協助文章介紹
Time of Update: 2018-12-06
您點擊50 ads 每天= $0.50! 25 下線點擊50 ads 每天= $12.50! 您的每周收入= $91.00! 您的月度收入= $364.00! 現在更改為普通會員每天可以點10-15個廣告了,減少了很多,但是很有信譽註冊過程:註冊:直接點下面串連 http://adbux.org/ (註冊此站的時候可以同時關注linkgrand和Payerpour,同種類型,高分值點擊) 進入註冊頁面,點擊頁面Register按鈕開啟新的一頁,出現 RegisterChoose a
Time of Update: 2018-12-06
Nginx以其良好的並發效能,目前正在逐漸取代Apache成為大家的Web server首選,但是Nginx目前的中文資料很少,需要大家努力貢獻。下面我介紹一下Nginx的Rewrite模組設定及Wordpress和Discuz的樣本。Nginx的Rewrite規則比Apache的簡單靈活多了,從下面介紹可見一斑。首先,Nginx可以用if進行條件匹配,文法規則類似C,舉例如下:if ($http_user_agent ~ MSIE) {rewrite ^(.*)$ /msie/$1
Time of Update: 2018-12-06
1. Filter概述Filter是一個COM組件,由一個或多個Pin組成。Pin也是一個COM組件。Filter檔案的副檔名為.ax,但也可以是.dll。Filter根據其包含Input pin或Output pin的情況(或在Filter Graph的位置),大致可分為三類:Source Filter(僅有Output pin)、Transform Filter(同時具有Input pin和Output pin)和Renderer Filter(僅有Input
Time of Update: 2018-12-06
IV Scripting.Net A .Net infrastructure for GTA IV script modding.- Visit Project HomeThis project offer a .Net infrastructure for GTA IV script modding, which enables the devlopers to leverage their knowledge of .Net programming and take
Time of Update: 2018-12-06
在看文章前請先看以下的兩個成語: 鑿壁借光 匡衡少家貧,好讀書,夜無油。鄰舍秉燭,衡鑿壁引光讀書。[白話]西漢人匡衡,小時家裡很窮,非常喜歡讀書,但晚上家裡沒有油點燈。鄰居房裡點著燈,匡衡就把牆壁鑿一個洞,讓燈光從洞裡透過來照著讀書。
Time of Update: 2018-12-06
1.燒一根不均勻的繩,從頭燒到尾總共需要1個小時。現在有若干條材質相同的繩子,問如何用燒繩的方法來計時一個小時十五分鐘呢?(這道題我當初想了一個小時)2.你有一桶果凍,其中有黃色、綠色、紅色三種,閉上眼睛抓取同種顏色的兩個。抓取多少個就可以確定你肯定有兩個同一顏色的果凍?(5秒-1分鐘)3.如果你有無窮多的水,一個3公升的提捅,一個5公升的提捅,兩隻提捅形狀上下都不均勻,問你如何才能準確稱出4公升的水?(40秒-3分鐘)4.一個岔路口分別通向誠實國和說謊國。來了兩個人,已知一個是誠實國的,另一個