Skip to main content

Home/ InfokeyDEV/ Group items tagged 2016

Rss Feed Group items tagged

Benx Shen

John Resig - JavaScript as a Language - 2 views

  • I think we"ve seen the JavaScript language move through many individual phases: The "We need scripting for web pages" phase. (Netscape) The "We should standardize this" phase. (ECMAScript) The "JavaScript isn"t a toy" phase. (Ajax) The "JavaScript as a programming language" phase.
    • Benx Shen
       
      John Resig 認為,Javascript 歷經了這些成長階段: 1. "網頁所需的腳本(script)語言" (網景 Netscape) 2. "標準化" (ECMAScript) 3. "不只是玩具" (Ajax) 4. "成為真正的程式語言" (!?)
Benx Shen

Douglas Crockford's Wrrrld Wide Web - 0 views

Benx Shen

/* Position Is Everything */ - Modern browser bugs explained in detail! - 1 views

Benx Shen

openjfx: openjfx: JavaFX編程語言 - 0 views

  • JavaFX Script™ (下文中成為JavaFX)語言是一種聲明式的靜態類型編程語言。它具有第一級函數(first-class functions)、聲明式的語法、列表推導(list-comprehensions)及基於依賴關係的增量式求值(incremental dependency-based evaluation)等特徵。JavaFX 腳本式語言特別適用於Java2D swing GUI組件,它允許簡單地創建圖形界面。 譯者註:第一級函數指函數被當作對象對待,可以在運行時賦值、傳遞和返回。詳見wikipedia上的解釋。 譯者註:列表推導指一種在函數語言中的表達式,它表示了在一個或者多個列表的成員(被選擇的)進行某種操作的結果。它被稱為"syntactic sugar",即為開發者提供了便捷的多種函數的應用組合。詳見FOLDC對list comprehension的解釋。 本文檔給出了JavaFX 腳本式編程語言的非正式描述。
Benx Shen

從分佈式系統的角度看REST-企業應用-Java -JavaEye做最棒的軟件開發交流社區 - 0 views

  • 從REST具備的內在特徵來說,它包括了這些特徵: 1、基於HTTP的資源 2、以HTTP協議去操作 3、數據和表象分離
Benx Shen

Groovy - Groovy Categories - 0 views

  • import groovy.xml.* def html = DOMBuilder.newInstance().html { head { title (class:'mytitle', 'Test') } body { p (class:'mystyle', 'This is a test.') } } use (groovy.xml.dom.DOMCategory.class) { assert html.head.title.text() == 'Test' assert html.body.p.text() == 'This is a test.' assert html.find{ it.tagName == 'body' }.tagName == 'body' assert html.getElementsByTagName('*').grep{ it.'@class' }.size() == 2 }
    • Benx Shen
       
      這裡是一個範例,可以看到透過 DOMCategory 的協助,xml dom 元素的存取直接可以用 "expression" 的方式就可以很方便地取用,而不需要很囉唆地 getElement() 或之類的
Benx Shen

NetBeans 6.0預覽版讓Java開發者驚喜 - [Matrix - 與 Java 共舞] - 0 views

Benx Shen

Java object queries using JXPath - Java World - 0 views

  • Java object queries using JXPath Query complex Java object trees using the XPath expression language
Benx Shen

嵌入式Tomcat怎麼能讓Context自動reload-Tomcat-Java - 0 views

Benx Shen

Java 編程的動態性,第 1 部分: 類和類裝入 - 0 views

Benx Shen

Preventing Java's java.lang.OutOfMemoryError: PermGen space failure | Eric's Agile Answers - 0 views

  • The "OutOfMemoryError: PermGen space" message is normally encountered during development activites where a long-running JVM is asked to load/unload builds.
  • The message is a symptom of an incomplete garbage collection sweep where resources are not properly released upon unload/restart. There is no shortage of debate (Hibernate forum, Sun forum, Spring Framework forum ) regarding which codebase is responsible for this symptom, but the finger of blame has been pointed at CGLIB, Hibernate, Tomcat, and even Sun's JVM.
  • In my experience, the most pain-free method of resolving this issue is to switch from Sun's JDK implementation to BEA's freely available JRockit implementation.
  • ...1 more annotation...
  • On a recent project utilizing Tomcat 5.5.12 with Hibernate, I was plagued with this PermGen error, at times even experiencing it during web-based unit testing. Since making the switch to JRockit, I have not encountered this issue even once.
  •  
    又是一位和我一樣都慘遭 "PermGen Space" 錯誤的開發者了!
    很奇怪,為何會發生這樣的錯誤呢?
    其中這篇文章所提到的技術,恰巧都是我現在所發生問題的架構,像是 Hibernate, Spring, Tomcat 等,還有 Sun JVM.... Orz
    比較特別的是,多數提供的解決方式,都是去調整 JVM 的設定(-XX:MaxPermSize=256m)。這位老兄則是採用了 BEA JRockit 版本的 JVM 解決此問題,他表示至少這招對他是管用的!
    不過,軟體開發很多時候都會發生這種「魔咒」,這種狀況底下,就好像一個並無可醫的人,只好嘗試各種偏方了!

Benx Shen

jQuery Plugin - FlyDOM: Create DOM on the Fly - 0 views

  • FlyDOM aims to be an easy-to-use plugin for jQuery that makes generating dynamic content quick and easy.
Benx Shen

ThreadLocal與synchronized - 0 views

  •  
    對於 java synchronized 的機制多所討論,並且發文者 klyuan 提出了不少測試代碼嘗試讓讀者更能夠跟著學習測試,我覺得真的很棒。雖然,他對於 synchronized 和 threadlocal 的見解的確是有些小錯誤,threadlocal 確實不是在解決多執行緒中資源共享的問題,但我想 klyuan 其實是想使用 threadlocal 來解決「多執行緒中非共享資源的保護」問題。
Benx Shen

分析java.lang.OutOfMemoryError: PermGen space - 0 views

  • 發現很多人把問題歸因於: spring,hibernate,tomcat,因為他們動態產生類,導致JVM中的permanent heap溢出 。然後解決方法眾說紛紜,有人說升級 tomcat版本到最新甚至乾脆不用tomcat。還有人懷疑spring的問題,在spring論壇上討論很激烈,因為spring在AOP時使用CBLIB會動態產生很多類。
  • 於是有人對更基礎的JVM做了檢查,發現了問題的關鍵。原來SUN 的JVM把內存分了不同的區,其中一個就是permenter區用來存放用得非常多的類和類描述。
  • 對這個bug最徹底的解決辦法就是不要用SUN的JDK,而改用BEA的 JRokit.
Benx Shen

SQL Tag Library - 0 views

Benx Shen

EasyMock 2.2 Readme - 0 views

  • EasyMock 2 is a library that provides an easy way to use Mock Objects for given interfaces.
  • EasyMock 2 Benefits Hand-writing classes for Mock Objects is not needed. Supports refactoring-safe Mock Objects: test code will not break at runtime when renaming methods or reordering method parameters Supports return values and exceptions. Supports checking the order of method calls, for one or more Mock Objects.
Benx Shen

InfoQ: 時刻關注企業軟件開發領域的變化與創新 - 1 views

Benx Shen

城市胡同: JVM調優[轉] - 0 views

Benx Shen

Performance Research, Part 2: Browser Cache Usage - Exposed! » Yahoo! User In... - 0 views

Benx Shen

Groovy - User Guide - 0 views

« First ‹ Previous 141 - 160 of 190 Next › Last »
Showing 20 items per page