weidagang2046的專欄

          物格而后知致
          隨筆 - 8, 文章 - 409, 評論 - 101, 引用 - 0
          數據加載中……

          我的評論

          re: 位圖排序[未登錄] weidagang2046 2008-01-07 20:17  
          10^7 bit和1M誰更大?
          re: 數據挖掘數據集網站 weidagang2046 2007-03-15 16:02  
          http://www.sogou.com/labs/dl/q.html

          不知道這個對你是否有用。
          re: 芒果軟件XMIND 2007 weidagang2046 2007-01-16 20:20  
          試用了一下,是個不錯的創意,但現在還比較簡陋,需要繼續努力!
          因為Bookmark Servlet對javascript一無所知,只當成一般的網頁文本返回,所以我認為和一般瀏覽器的訪問沒有區別,用session維護狀態是完全可以的。
          創建javascript對象的時候指定id屬性可以避免覆蓋;也可以按id查找對象來判斷是否已經返回,如果找到的話就可以看情況刪除。關于id的維護問題辦法應該很多。比如,維護一個全局計數器。

          如果一定要同步的話(比如,第一次返回才能發第二次),建議看看javascript的wait()函數。

          ps: 我的javascript經驗也不多,上面的建議還需要實踐檢驗。歡迎交流!
          re: 如何用jsp寫一個ajax跨域代理? weidagang2046 2006-12-16 14:17  
          需求還不太明確,ajax跨域類型比較多,不知道你具體要做成怎樣的。
          re: Ruby真有那么好嗎? weidagang2046 2006-12-11 20:09  
          不看好Ruby,理由是和C編碼風格類似的語言才可能有廣大的群眾基礎,尤其在中國。
          re: 編碼問題 weidagang2046 2006-12-08 00:27  
          上次看你另一篇文章,對編碼分析得很詳細,很有幫助。再接再厲!
          re: Maven2快速入門教程 weidagang2046 2006-12-02 16:17  
          比較關心Maven能不能方便地與eclipse集成?
          re: JDK 在linux下支持epoll了 weidagang2046 2006-11-20 09:53  
          能否介紹一下5種模型?
          re: 獲取象素的RGB weidagang2046 2006-11-16 17:06  
          原理很簡單,只需要簡要的三步。既:獲取屏幕DC、得到當前鼠標所在的像素值、分解出像素值中的紅、綠、藍三色既可,很簡單吧!

          關鍵代碼實現:
          1、 獲取屏幕DC


          HDC hDC = ::GetDC(NULL); //獲取屏幕DC
          2、 獲取當前鼠標位置像素值


          CPoint pt;
          GetCursorPos(&pt);        //得到當前鼠標所在位置
          COLORREF clr = ::GetPixel(hDC, pt.x, pt.y); //獲取當前鼠標點像素值
          3、 分解出像素點中的紅、綠、藍顏色值

          CString ClrText;
          ClrText.Format("%d",GetRValue(clr));     //分解出紅色值
          ClrText.Format("%d",GetGValue(clr)); //分解出綠色值
          ClrText.Format("%d",GetBValue(clr)); //分解出藍色值
          ::ReleaseDC(NULL, hDC); //釋放屏幕DC
          re: google的可怕之處 weidagang2046 2006-11-15 18:15  
          Google不如騰訊厲害。如果某一天有人比Google做得更好,我們可以馬上不用google,但是不管誰做出比騰訊更好的系統都沒有人會拋棄QQ。知識關聯的價值還無法與人的關聯的價值相比。
          有沒有文檔之類的?
          希望能出一篇文章講講分析過程。
          re: DND入門學習 weidagang2046 2006-09-05 05:26  
          作為插件運行還需要創建plugin.xml文件,用PDE創建plugin project with view可得。

          <?xml version="1.0" encoding="UTF-8"?>
          <?eclipse version="3.0"?>
          <plugin>

          <extension
          point="org.eclipse.ui.views">
          <category
          name="DND Category"
          id="com.blogspot.weidagang2046.dnd">
          </category>
          <view
          name="DND View"
          icon="icons/sample.gif"
          category="com.blogspot.weidagang2046.dnd"
          class="com.blogspot.weidagang2046.dnd.views.DNDView"
          id="com.blogspot.weidagang2046.dnd.views.DNDView">
          </view>
          </extension>
          <extension
          point="org.eclipse.ui.perspectiveExtensions">
          <perspectiveExtension
          targetID="org.eclipse.ui.resourcePerspective">
          <view
          ratio="0.5"
          relative="org.eclipse.ui.views.TaskList"
          relationship="right"
          id="com.blogspot.weidagang2046.dnd.views.DNDView">
          </view>
          </perspectiveExtension>
          </extension>

          </plugin>
          re: Perl 模塊多平臺下安裝方法 weidagang2046 2006-05-16 18:43  
          set HTTP_PROXY=http://hostname:8080中http://不能省略,否則會報Error: 501 Protocol scheme '' is not supported。
          re: vi中如何使用:s 命令實現字串的替換 weidagang2046 2006-02-10 11:50  
          :%s/str1/str2/g 實現全局替換。
          re: 對于關于EJB3.0隨筆的感觸 weidagang2046 2006-02-07 20:46  
          不錯,支持你!
          re: 怎樣把一個二維數組寫入文件 weidagang2046 2006-01-19 15:49  
          map(...)
          map(function, sequence[, sequence, ...]) -> list

          Return a list of the results of applying the function to the items of
          the argument sequence(s). If more than one sequence is given, the
          function is called with an argument list consisting of the corresponding
          item of each sequence, substituting None for missing values when not all
          sequences have the same length. If the function is None, return a list of
          the items of the sequence (or a list of tuples if more than one sequence).
          re: 問個昨天的MSN面試題 weidagang2046 2005-11-11 23:12  
          a[n][n]為矩陣,查找x

          for(i=0,j=n-1;i<n && j>=0 && a[i][j]!=x;i+=a[i][j]<x,j-=a[i][j]>x);
          re: Java中存儲數據的地方 weidagang2046 2005-10-28 21:51  
          關于你的舉例,你怎么確定一個在堆棧,一個在堆的?請教!
          re: Multiple inheritance and the this pointer weidagang2046 2005-10-25 21:36  
          寫了個小小的測試程序:

          #include<cstdio>
          #include<algorithm>

          using namespace std;

          class A
          {
          private:
          int a;

          public:
          A()
          {
          printf("A: %p\n", this);
          }
          };

          class B
          {
          private:
          int b;

          public:
          B()
          {
          printf("B: %p\n", this);
          }
          };

          class C : public A, public B
          {
          private:
          int c;

          public:
          C()
          {
          printf("C: %p\n", this);
          }

          };

          int main()
          {
          C objC;
          return 0;
          }
          自己測試了一下,下面是我的web.xml配置文件:

          <?xml version="1.0" encoding="ISO-8859-1"?>

          <web-app xmlns="http://java.sun.com/xml/ns/j2ee"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
          version="2.4">

          <security-constraint>
          <web-resource-collection>
          <display-name>Example Security Constraint</display-name>
          <web-resource-name>welcome_info</web-resource-name>
          <url-pattern>/*</url-pattern>
          </web-resource-collection>
          <auth-constraint>
          <role-name>role1</role-name>
          <role-name>tomcat</role-name>
          </auth-constraint>
          </security-constraint>
          <login-config>
          <auth-method>BASIC</auth-method>
          <realm-name>welcome_info</realm-name>
          </login-config>
          </web-app>

          注意這里的url-pattern <url-pattern>/ddly/admin/*</url-pattern>其實是以本web app為根的相對路徑。
          re: C/C++數組名與指針區別深入探索 weidagang2046 2005-08-24 12:45  
          真慚愧,一直沒有弄清楚數組名和指針的區別,現在終于撥云見日了!
          寫得不錯,支持!
          re: Introduction to DOM weidagang2046 2005-04-23 16:59  
          寫得很不錯!DOM的概念講得很透徹。DOM只是一系列與獨立于實現的interfaces,它提供了訪問和修改Document Object的接口。
          re: 如何使用線程 weidagang2046 2005-04-21 04:10  
          Timer部分對我來說比較新鮮
          第一次聽說class constructor的概念
          主站蜘蛛池模板: 如东县| 任丘市| 富源县| 扬中市| 绥宁县| 颍上县| 阿鲁科尔沁旗| 新密市| 延吉市| 肇源县| 安福县| 鄯善县| 方正县| 东辽县| 册亨县| 七台河市| 饶平县| 准格尔旗| 九江县| 大邑县| 连州市| 柞水县| 玉门市| 班戈县| 东莞市| 池州市| 中卫市| 阿坝县| 浦县| 正镶白旗| 吉木乃县| 安新县| 日土县| 奉化市| 吐鲁番市| 岳池县| 芜湖市| 剑阁县| 屯门区| 静海县| 湖北省|