??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲AV网站在线观看,亚洲无码一区二区三区,亚洲成年人啊啊aa在线观看http://m.tkk7.com/wqnashqu/category/24621.html工作日志…? <!-- SiteSearch Google --> <form method="get" action="http://www.google.com/custom" target="_top"> <table border="0" bgcolor="#ffffff"> <tr><td nowrap="nowrap" valign="top" align="left" height="32"> </td> <td nowrap="nowrap"> <input type="hidden" name="domains" value="codesearch.google.com;m.tkk7.com;www.ibm.com"></input> <label for="sbi" style="display: none">输入您的搜烦字词</label> <input type="text" name="q" size="26" maxlength="255" value="" id="sbi"></input> <label for="sbb" style="display: none">提交搜烦表单</label> <input type="submit" name="sa" value="Google 搜烦" id="sbb"></input> </td></tr> <tr> <td>&nbsp;</td> <td nowrap="nowrap"> <table> <tr> <td> <input type="radio" name="sitesearch" value="" checked id="ss0"></input> <label for="ss0" title="搜烦|络"><font size="-1" color="#000000">Web</font></label></td> <td> <input type="radio" name="sitesearch" value="codesearch.google.com" id="ss1"></input> <label for="ss1" title="搜烦 codesearch.google.com"><font size="-1" color="#000000">codesearch.google.com</font></label></td> </tr> <tr> <td> <input type="radio" name="sitesearch" value="m.tkk7.com" id="ss2"></input> <label for="ss2" title="搜烦 m.tkk7.com"><font size="-1" color="#000000">m.tkk7.com</font></label></td> <td> <input type="radio" name="sitesearch" value="www.ibm.com" id="ss3"></input> <label for="ss3" title="搜烦 www.ibm.com"><font size="-1" color="#000000">www.ibm.com</font></label></td> </tr> </table> <input type="hidden" name="client" value="pub-5842524610105352"></input> <input type="hidden" name="forid" value="1"></input> <input type="hidden" name="ie" value="GB2312"></input> <input type="hidden" name="oe" value="GB2312"></input> <input type="hidden" name="cof" value="GALT:#008000;GL:1;DIV:#336699;VLC:663399;AH:center;BGC:FFFFFF;LBGC:336699;ALC:0000FF;LC:0000FF;T:000000;GFNT:0000FF;GIMP:0000FF;LH:45;LW:166;L:http://m.tkk7.com/images/logo.gif;S:http://m.tkk7.com/wqnashqu;FORID:1"></input> <input type="hidden" name="hl" value="zh_CN"></input> </td></tr></table> </form> <!-- SiteSearch Google -->zh-cnFri, 03 Aug 2007 17:06:43 GMTFri, 03 Aug 2007 17:06:43 GMT60焦点xhttp://m.tkk7.com/wqnashqu/archive/2007/05/31/121095.html曲强 Nicky曲强 NickyThu, 31 May 2007 03:03:00 GMThttp://m.tkk7.com/wqnashqu/archive/2007/05/31/121095.htmlhttp://m.tkk7.com/wqnashqu/comments/121095.htmlhttp://m.tkk7.com/wqnashqu/archive/2007/05/31/121095.html#Feedback0http://m.tkk7.com/wqnashqu/comments/commentRss/121095.htmlhttp://m.tkk7.com/wqnashqu/services/trackbacks/121095.htmlJavaFX当前是备受SUN推崇和重Ҏq的目之一Q也是Java技术l演化的内容之一?nbsp; 阅读全文

曲强 Nicky 2007-05-31 11:03 发表评论
]]>
F3(转http://blogs.sun.com/chrisoliver/entry/f3)http://m.tkk7.com/wqnashqu/archive/2007/05/07/115768.html曲强 Nicky曲强 NickyMon, 07 May 2007 14:30:00 GMThttp://m.tkk7.com/wqnashqu/archive/2007/05/07/115768.htmlhttp://m.tkk7.com/wqnashqu/comments/115768.htmlhttp://m.tkk7.com/wqnashqu/archive/2007/05/07/115768.html#Feedback0http://m.tkk7.com/wqnashqu/comments/commentRss/115768.htmlhttp://m.tkk7.com/wqnashqu/services/trackbacks/115768.html阅读全文

曲强 Nicky 2007-05-07 22:30 发表评论
]]>
Temple of Sun Contest(official rules)__I think it's really a simple contest for 5000$ huge prize!http://m.tkk7.com/wqnashqu/archive/2007/04/24/113120.html曲强 Nicky曲强 NickyTue, 24 Apr 2007 03:00:00 GMThttp://m.tkk7.com/wqnashqu/archive/2007/04/24/113120.htmlhttp://m.tkk7.com/wqnashqu/comments/113120.htmlhttp://m.tkk7.com/wqnashqu/archive/2007/04/24/113120.html#Feedback2http://m.tkk7.com/wqnashqu/comments/commentRss/113120.htmlhttp://m.tkk7.com/wqnashqu/services/trackbacks/113120.html阅读全文

曲强 Nicky 2007-04-24 11:00 发表评论
]]>
Sun device detection toolhttp://m.tkk7.com/wqnashqu/archive/2007/04/14/110717.html曲强 Nicky曲强 NickySat, 14 Apr 2007 15:52:00 GMThttp://m.tkk7.com/wqnashqu/archive/2007/04/14/110717.htmlhttp://m.tkk7.com/wqnashqu/comments/110717.htmlhttp://m.tkk7.com/wqnashqu/archive/2007/04/14/110717.html#Feedback0http://m.tkk7.com/wqnashqu/comments/commentRss/110717.htmlhttp://m.tkk7.com/wqnashqu/services/trackbacks/110717.html阅读全文

曲强 Nicky 2007-04-14 23:52 发表评论
]]>
Yestoday Testhttp://m.tkk7.com/wqnashqu/archive/2007/03/17/104393.html曲强 Nicky曲强 NickyFri, 16 Mar 2007 23:36:00 GMThttp://m.tkk7.com/wqnashqu/archive/2007/03/17/104393.htmlhttp://m.tkk7.com/wqnashqu/comments/104393.htmlhttp://m.tkk7.com/wqnashqu/archive/2007/03/17/104393.html#Feedback0http://m.tkk7.com/wqnashqu/comments/commentRss/104393.htmlhttp://m.tkk7.com/wqnashqu/services/trackbacks/104393.html

 


 




曲强 Nicky 2007-03-17 07:36 发表评论
]]>
OpenSolaris&&my Tech-talkhttp://m.tkk7.com/wqnashqu/archive/2007/03/12/103244.html曲强 Nicky曲强 NickyMon, 12 Mar 2007 03:01:00 GMThttp://m.tkk7.com/wqnashqu/archive/2007/03/12/103244.htmlhttp://m.tkk7.com/wqnashqu/comments/103244.htmlhttp://m.tkk7.com/wqnashqu/archive/2007/03/12/103244.html#Feedback0http://m.tkk7.com/wqnashqu/comments/commentRss/103244.htmlhttp://m.tkk7.com/wqnashqu/services/trackbacks/103244.htmlI very like OpenSolaris not only its security,its creative,convinient...whereas,its all:).The Java Desktop is cool and we may also use click to operate,well,I like the terminal more.Now I use Solaris as a developer desktop,it integrates the Netbeans to develop Java which is also a excellent enviroment to develop others after u plug in,Sun Studio,a platform to develop C/C++ &&fortan,with sun compiler,efficient.If u think Solaris is too big and Enterprise-heavy,u will make a mistake,Solaris is very small but excellent perform,:),U can try urself.
yestoday i make a techtalk about Sun openSolaris and Java,C/C++ development under it in my campus(DaLian University of Technology).To my surprise There were more students from the  disrelated computer science Department,more,even more girls.I saw a Linux teachers attending,I was very pleased,cos of Solaris is sure to attract the fancy of the Linux users,at least,It's better in my...our's eyes.:),as following I attach some of pics of my tech-talking to share with u.
   

曲强 Nicky 2007-03-12 11:01 发表评论
]]>
Support for Scripting Languageshttp://m.tkk7.com/wqnashqu/archive/2007/03/07/102476.html曲强 Nicky曲强 NickyWed, 07 Mar 2007 13:49:00 GMThttp://m.tkk7.com/wqnashqu/archive/2007/03/07/102476.htmlhttp://m.tkk7.com/wqnashqu/comments/102476.htmlhttp://m.tkk7.com/wqnashqu/archive/2007/03/07/102476.html#Feedback0http://m.tkk7.com/wqnashqu/comments/commentRss/102476.htmlhttp://m.tkk7.com/wqnashqu/services/trackbacks/102476.html Most developers have heard of, and possibly used, scripting languages such as Ruby, JavaScript, and Python. These dynamic languages are enjoying a resurgence in popularity, largely because of their flexibility and simplicity, and the productivity gains they promise.

Java 6 comes with built-in support for scripting languages. You can embed scripts in various scripting languages into your Java applications, passing parameters, evaluating expressions, and retrieving results. And you can do it all pretty seamlessly.

First of all, you obtain a new ScriptEngine object from a ScriptEngineManager, as shown here:

ScriptEngineManager manager = new ScriptEngineManager();

ScriptEngine engine = manager.getEngineByName("js");

Each scripting language has its own unique identifier. The "js" here means you're dealing with JavaScript.

Now you can start having some fun. Interacting with a script is easy and intuitive. You can assign scripting variables using the put() method and evaluate the script using the eval() method,. which returns the most recently evaluated expression processed by the script. And that pretty much covers the essentials. Here's an example that puts it all together:

engine.put("cost", 1000);
String decision = (String) engine.eval(
"if ( cost >= 100){ " +
"decision = 'Ask the boss'; " +
"} else {" +
"decision = 'Buy it'; " +
"}");
assert ("Ask the boss".equals(decision));

You can do more than just pass variables to your scripts?you can also invoke Java classes from within your scripts. Using the importPackage() function enables you to import Java packages, as shown here:

				

engine.eval("importPackage(java.util); " +
"today = new Date(); " +
"print('Today is ' + today);");

Another cool feature is the Invocable interface, which lets you invoke a function by name within a script. This lets you write libraries in scripting languages, which you can use by calling key functions from your Java application. You just pass the name of the function you want to call, an array of Objects for the parameters, and you're done! Here's an example:

				

engine.eval("function calculateInsurancePremium(age) {...}");
Invocable invocable = (Invocable) engine;
Object result = invocable.invokeFunction("calculateInsurancePremium",
new Object[] {37});

You actually can do a fair bit more than what I've shown here. For example, you can pass a Reader object to the eval() method, which makes it easy to store scripts in external files, or bind several Java objects to JavaScript variables using a Map-like Binding object. You can also compile some scripting languages to speed up processing. But you probably get the idea that the integration with Java is smooth and well thought-out.



曲强 Nicky 2007-03-07 21:49 发表评论
]]>
Java6 MUstang新特性ȝQ摘录)http://m.tkk7.com/wqnashqu/archive/2007/02/08/98695.html曲强 Nicky曲强 NickyThu, 08 Feb 2007 03:18:00 GMThttp://m.tkk7.com/wqnashqu/archive/2007/02/08/98695.htmlhttp://m.tkk7.com/wqnashqu/comments/98695.htmlhttp://m.tkk7.com/wqnashqu/archive/2007/02/08/98695.html#Feedback0http://m.tkk7.com/wqnashqu/comments/commentRss/98695.htmlhttp://m.tkk7.com/wqnashqu/services/trackbacks/98695.html阅读全文

曲强 Nicky 2007-02-08 11:18 发表评论
]]>
NB“升U?/title><link>http://m.tkk7.com/wqnashqu/archive/2007/01/30/96802.html</link><dc:creator>曲强 Nicky</dc:creator><author>曲强 Nicky</author><pubDate>Tue, 30 Jan 2007 15:01:00 GMT</pubDate><guid>http://m.tkk7.com/wqnashqu/archive/2007/01/30/96802.html</guid><wfw:comment>http://m.tkk7.com/wqnashqu/comments/96802.html</wfw:comment><comments>http://m.tkk7.com/wqnashqu/archive/2007/01/30/96802.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.tkk7.com/wqnashqu/comments/commentRss/96802.html</wfw:commentRss><trackback:ping>http://m.tkk7.com/wqnashqu/services/trackbacks/96802.html</trackback:ping><description><![CDATA[<p>前几天好不容易下CJDK6mustangQ今天恰好有旉升了一下Netbeans默认的JDK版本。这里简单的说明一下升U的Ҏ。如果我 们不修改Netbeans的属性,需要在JavaPlatform manager中加入另一版本的类库。新建工E后如果要修改类库,q需要修攚w目的cd属性,现在通过修改默认的JDKcdQ便可方便很多,更不需要重? 安装NB?/p> <p>我的NB装在D盘中Q可以在该\径找到文件D:\Netbeans-5.5\etc\Netbeans.confQ我们将原有的默认类库netbeans_jdkhome="D:\Java\jdk1.5.0_07"修改? netbeans_jdkhome="D:\Java\jdk1.6.0"便轻杄完成了升U,当然在tools-〉JavaPlatform manager〉中当然也可以将我们惯用的D:\Java\jdk1.5.0_07加入为可选用cd?/p><img src ="http://m.tkk7.com/wqnashqu/aggbug/96802.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/wqnashqu/" target="_blank">曲强 Nicky</a> 2007-01-30 23:01 <a href="http://m.tkk7.com/wqnashqu/archive/2007/01/30/96802.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Visual Web Pack (Netbeans可视化化Web开?http://m.tkk7.com/wqnashqu/archive/2006/12/04/85327.html曲强 Nicky曲强 NickyMon, 04 Dec 2006 05:07:00 GMThttp://m.tkk7.com/wqnashqu/archive/2006/12/04/85327.htmlhttp://m.tkk7.com/wqnashqu/comments/85327.htmlhttp://m.tkk7.com/wqnashqu/archive/2006/12/04/85327.html#Feedback2http://m.tkk7.com/wqnashqu/comments/commentRss/85327.htmlhttp://m.tkk7.com/wqnashqu/services/trackbacks/85327.html
今天在sun的网站上转了一圈,{了好几天的Visual Web Packl于出来?
先介l一?/div>
Creates a new Visual Web Pack project containing an empty web application. This project enables you to use Visual Web Pack features like the Visual Designer to drag and drop JSF components, visual and dialog box support for binding components to data providers, and generation of Java code and Web XML files. The project uses the IDE-generated build script to build, run, and debug your project.
创徏一个可视化面工程?/strong> 包含一个空白页面应用程?q个工程能让你用可视化开发包的各U属性,诸如用可视化设计工具拖放JSF(java server face)lg,可视化的对话框支持将lg数据源(或者数据提供者)l定在一Pq且生成java代码和xml面文g。这一工程?strong>集成开发环境(IDEQ生成的构徏脚本来构造,执行和调试你的项目?/div>
(译的不好请见谅)
q支持ajaxQ呵~~呵~~~?/div>
最l装好的效果?
全面支持拖放Q呵呵,上次装了一个java studio creatorl果q行LL的,q一ơ把q一功能转移Cnetbeans挺好用,速度也不错,我这台笔记本都能来,台式Z计没什么问题?/div>
安装时要注意的地?
1.netbeans必须?.5正式版本Qbeta版本的检不到?a target="_blank">点击q入netbeans首页
2.下蝲JDK 5_60或者以后的版本我用的是JDK 5_09版本Q安装的时候最好不要把原来的卸载,有时候老程序不认新的JDK?a target="_blank">点击q入JDK下蝲面
点击q里q入Visual Web Pack 的下载页面?/div>


曲强 Nicky 2006-12-04 13:07 发表评论
]]>Sun studio 11 http://m.tkk7.com/wqnashqu/archive/2006/11/17/81871.html曲强 Nicky曲强 NickyFri, 17 Nov 2006 15:22:00 GMThttp://m.tkk7.com/wqnashqu/archive/2006/11/17/81871.htmlhttp://m.tkk7.com/wqnashqu/comments/81871.htmlhttp://m.tkk7.com/wqnashqu/archive/2006/11/17/81871.html#Feedback0http://m.tkk7.com/wqnashqu/comments/commentRss/81871.htmlhttp://m.tkk7.com/wqnashqu/services/trackbacks/81871.htmlSolaris和Linux 操作pȝ的开发工具――Sun Studio 11软gQ再ơ就标准性能评测公司(SPEC)提出的新的基准性能标准创立了破记录的性能记录。此外,Sunq发布了Sun Studio Express目Q采用C、C++和Fortan{编E语a的开发者可以通过该项目预览Sun Studio未来版本准备提供的新Ҏ。在q去?个月内,对Sun Studio 11软g的注册下载次数已过50,000ơ,Sun Studio Express目的创立响应了业界对Sun Studio 11软g的极大兴和q速采用的需求?

Sun在基于AMD Opteron和UltraSPARC®处理器的pȝ上,采用Sun Studio 11和Solaris 10软gQ创立了四大基准性能试中的三项性能试(SPECint2006、SPECfp2006和SPECint_rate2006)的最高记录,? 立了Sun在标准性能斚w的领导地位。采用Sun Studio 11软g所h的先q性能Q如自^行技?Auto-Parallelism Technology)Q基于AMD Opteron处理器的Sun Fire X4200服务器,其性能越了基于Intel处理器的竞争Ҏ的系l,如HP ProLiant DL380 G4服务器和HP ProLiant DL385服务器。Sunq公布了其旗C品Sun Fire E25K服务器的优异性能Q兑C它曾寚w端商务计领域做出的承诺。据IDC公司2006q第二季度全球服务器市场季度报告得知QSun的高端系l针? Sun Studio软g做了优化Q这帮助Sun成ؓ了这一季度内取得市Z额增长的唯一的服务器厂商?

所创立的SPEC CPU2006基准性能的测试记录是2006q??4日发布的。这一记录是上个最高记录的4倍。该基准性能试针对了各U各L负蝲Q得C实际应用? 更好的适用性结果。这一新的基准性能试在各U计密集的负蝲上测试了计算机处理器、内存架构和~译器的性能Q这些负载应用包括有Q蛋白质排序、MPEG -4~码、XML处理、流体动力学、结构性力学和语音识别{?

“Sun Studio软gl箋昄了在帮助开发商最大化其应用程序性能的能力上的领导地位,”Sun公司开发工具高UȝDon Kretsch_“6个月?0,000ơ下载,佉K用Sun Studio 11软g的企业开源开发者们获得了诸多好处:减少了开发时_提高了便携性,q改善了他们所开发的应用E序的性能?#8221;

Sun Studio 11软g为开发者带来的最大好处之一是各个lg之间的集成性非常好Q这些组件包括有Q编译器优化lg、多U程警示调试器、性能分析工具和一个基? NetBeans的集成开发环?IDE)。这些工L件还可以在其他的~译器上工作Q这׃开发者们可以很容易地Sun Studio工具与他们现有的开发环境؜和在一起用。新发布的Sun Studio Express目Ҏ在研发中的Sun Studio未来版本的主要特性将定期予以提供。包括针对Linux的编译器优化lg在内的最新的一些性能在最q于旧金׃D行的2006 LinuxWorld上做了演C。此外,新的Data Race Detection Tool(数据族探查工?对现有的多线E库、多U程工具和编译器优化{特性是一个重要的补充Q可使多U程应用的开发变得更加简化和Ҏ?

开发者可从网?a >http://developers.sun.com/sunstudio下蝲免费的、无限制的Sun Studio软g?br>
技术规?/div>
  • 产品pȝ要求:

    SPARC q_

    • 内存Q至ؓ 512 MB 内存Q徏议?1 GB
    • 盘I间Q?.7 GB
    • 安装光盘

    x86/x64 q_

    • 内存Q至ؓ 512 MB 内存Q徏议?1 GB
    • 盘I间 (Solaris OS)Q?.1 GB
    • 盘I间 (Linux OS)Q?.6 GB
    • 安装光盘
  • 支持的操作系l::

    Solaris OS

    Solaris 8? ?10 操作pȝ整个 Solaris 软gl、整?Solaris 软gl加 OEM 支持或者开发h?Solaris 软gl?/p>

    Linux OS

    • Sun Java Desktop SystemQ版?3
    • SUSE Linux Enterprise Server 9
    • Red Hat Enterprise Linux 4
  • 许可要求Q?/strong>:

    免许可费的运行时?(.so) 分发

  • 使用限制Q?/strong>:

    您应承诺软g不会被设计、许可或计划用于M核设施的设计、修建、操作或l护?/p>

  • 支持的相x准::

    CQ?/p>

    • ISO/IEC 9899:1999Q编E语a - C ("C99")
    • ISO/IEC 9899:1996QC
    • FIPS 160 标准?/li>
    • K&R C
    • OpenMP C API Version 2.5

    C++Q?/p>

    • ISO/IEC 14992:2003 C++ 标准
    • OpenMP C++ API 2.5 ?/li>

    FortranQ?/p>

    • ANSI X3.198-1992 Fortran 90
    • ISO 1539:1991 Fortran
    • ISO/IEC 1539-1:1997 Fortran 95
    • OpenMP Fortran API 2.5 ?/li>
  • W三方兼容应用程序::

    GNU Compiler CollectionQLinux q_Q?/p>

  • 升计划Q?/strong>:

    源和目标U与以前版本的兼Ҏ以?GNU C/C++ 兼容性功能,化升U和采用?/p>




曲强 Nicky 2006-11-17 23:22 发表评论
]]>javaMe开源实?/title><link>http://m.tkk7.com/wqnashqu/archive/2006/11/15/81354.html</link><dc:creator>曲强 Nicky</dc:creator><author>曲强 Nicky</author><pubDate>Wed, 15 Nov 2006 11:46:00 GMT</pubDate><guid>http://m.tkk7.com/wqnashqu/archive/2006/11/15/81354.html</guid><wfw:comment>http://m.tkk7.com/wqnashqu/comments/81354.html</wfw:comment><comments>http://m.tkk7.com/wqnashqu/archive/2006/11/15/81354.html#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://m.tkk7.com/wqnashqu/comments/commentRss/81354.html</wfw:commentRss><trackback:ping>http://m.tkk7.com/wqnashqu/services/trackbacks/81354.html</trackback:ping><description><![CDATA[     摘要: 今天译了一实录,先发到自qblog上吧Q呵?开放Javaq_QMicro EditionQ微型版Q源码:对话Sun公司Ud&嵌入式^台高U主香?林奇 ?006q?月的JavaOne会议上,Sun微系l公司宣布即开放Java技术的源码。目前,Sun已经计划开攑֤部分Javaq_的源码,包括?006q末之前开放Micro Edition (Java ME)和Javaq?..  <a href='http://m.tkk7.com/wqnashqu/archive/2006/11/15/81354.html'>阅读全文</a><img src ="http://m.tkk7.com/wqnashqu/aggbug/81354.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/wqnashqu/" target="_blank">曲强 Nicky</a> 2006-11-15 19:46 <a href="http://m.tkk7.com/wqnashqu/archive/2006/11/15/81354.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>ZFSQ全球最先进的文档系l?(?http://m.tkk7.com/wqnashqu/archive/2006/10/30/77987.html曲强 Nicky曲强 NickyMon, 30 Oct 2006 02:19:00 GMThttp://m.tkk7.com/wqnashqu/archive/2006/10/30/77987.htmlhttp://m.tkk7.com/wqnashqu/comments/77987.htmlhttp://m.tkk7.com/wqnashqu/archive/2006/10/30/77987.html#Feedback0http://m.tkk7.com/wqnashqu/comments/commentRss/77987.htmlhttp://m.tkk7.com/wqnashqu/services/trackbacks/77987.html

Sun发布Solaris ZFSQ全球最先进的文档系l?/strong>
Solaris 10 OS最新升U版包括Solaris ZFS 1.0文档pȝ
提供了端到端的数据完整性,重新定义~放能力Q大大降低数据管理成?/p>


(2006q??5日讯) Sun Microsystems公司发布了一个具有革命性的新的文档pȝSolaris ZFS 1.0Q它提供了多突破性的功能Q包括公q理Q务的自动化、保护数据免受非法行为的侵害Q以及提供实际上无限的羃放能力。Solaris ZFS 1.0作为我们这个星球上最先进的操作系lSolaris 10 OS的下一个商业版本的一个组成部分在今年6月䆾对外正式提供。此外,Solaris 10 OS的最新版本Solaris 10 6/06先q的前摄性自愈技术和联网技术,与对PostgreSQL开源数据库的全面支持结合v来,q一步强化了Solaris 10 OS作ؓ宿主高性能的关键数据库解决Ҏ的首选^台的C?br>
作ؓ世界上最先进的文档系l,Solaris ZFS可以自动和修改l小的数据错误或遭遇意外侵害的数据,以提供信息的完整性。Solaris ZFSq因Z需要卷宗管理器而大大简化了数据的管理,而卷宗管理器是今天数据管理事务中最耗时、最贚w的部分。例如,今天Q一典型的pȝ理d可能 需?0多分钟来完成Q但是采用Solaris ZFSQ仅仅需要几U钟的时_且没有系l宕机的危险Q从而大大降低了数据理的成本费用。此外,Solaris ZFSq是世界上第一?28位的文档pȝQ这使系l具有了实际上无限的数据定w。Solaris ZFS提供的先q的~放能力和管理能力,使它成ؓ许许多多传统UNIX?文档pȝ的理x代品?

Solaris是宿主高性能数据库的杰出q_。最q,Oracle指名Solaris 10 OS作ؓ其开?4位开发和部v环境的理惛_^台。现在,Sunq将开源PostgreSQL数据库集成在Solaris 10 OS的最新版本内Q对PostgreSQL数据库提供全面支持。Sun与PostgreSQLC֛开展合作,让他们采用Solaris 10 OS提供的各U先q技术,如前摄性自愈技术、Solaris分区Ҏ和Solaris动态跟t能?DTrace){?

“面对不断增长的依性要求,今天的数据量??2个月pȝQ但今天的文档系l还植根在上世纪70q代的技术之中,”Sun公司ȝpȝ软g部的 副总裁Tom Goguen_“Solaris ZFS从设计之初就是要q接今天数据理的挑战,它的预期寿命?0?0q。这一128位的文档pȝ所能存储的自愈数据是今天已有文档系l的160? 倍,同时q大大简化了卷宗的管理。Solaris ZFS是今年内发布的最重要的创新技术之一?#8221;

Solaris 10是我们这个星球上最先进的操作系l,它可?50多款SPARC和x64/x86q_上运行,获得来自独立软g厂商?,200多种应用E序的支持? 其无与u比的功能性和gq_的支持,加上它所提供的行业唯一的应用兼Ҏ保证,加快了Solaris 10 OS在全球的应用步伐Q目前Solaris 10 OS的注册许可数已超q?50万?br>
h革命性的新的文档pȝ技?/strong>

Solaris ZFS 1.0hM其他商用文档pȝ技术所无法Ҏ的优异性能。客户可以从Solaris ZFS技术中享用到先q的数据完整性技术、用和理的简易性、难以置信的高性能Q以及实际上无限的羃放能力?

  • 端到端的数据完整?/strong>―? Z校验和与事务性写入复?copy-on-write)机制的突破性的l合QSolaris ZFS可提供满CIO和系l管理员要求的数据准性。Solaris ZFS拥有先进的错误检机Ӟ能识别被损坏的数据,q将之在q行中修改过来。例如,镜像的一侧被意外地重写,ZFS可以对之、修补和恢复Q且完全? q扰服务的进行?
  • 化的理――Solaris ZFS提供了一U基于共享的架构模式Q所有的׃n数据和功能纳入虚拟内存管理。Solaris ZFS文档pȝ可以自动地增长或收羃Q而无需占据额外存储I间的卷宗管理器。Solaris ZFSq提供了在Q何时间点上对文档pȝq行瞬间快照的能力,q就大大节约了一般系l管理员手工恢复文档所p的时间和资源?
  • 性能的巨大提?/strong>――Solaris ZFS的架构设计有助于提高速度。写入复制的设计可将随意写入转变为快速连l写入。其输入/输出(I/O)带宽在有数据存储时可自动加大。无论工作量? 何,多种字区寸会自动做出最佳配合。智能化的预取感式读取可加快q行速度。而且Q它的高U的、可扩展的I/O子系l设计采用了记分板式的流水线操作和依 赖性时序安排,同样提供了极大的性能提升?
  • 无限的数据容?/strong>――Solaris ZFS是世界上W一?28位文档系l,h实际上无限的数据定w?br>
Solaris 10 OS是Solaris Enterprise System的组成部分。Solaris Enterprise Systemq包括Sun Java Enterprise System (Java ES)、Sun N1 System Manager软g和Sun Studio Software Developer工具Q这些Y仉可免Ҏ供用于开发和部v。正是具有这么多软gQSolaris Enterprise System成ؓ今天可采用的唯一的综合性开放架构的软gq_。欲了解更多的相关信息或得到相关新闻EgQ请讉Khttp: //www.sun.com/aboutsun/media/presskits/networkcomputing06q2?

Sun公司?/strong>

一个独L色的理念―?#8220;|络是计算?#8221;Q指引着Sun各项技术的发展Qؓ全球各个重要的市场增L力。Sun׃n创新和创建社团的思想体系处于? 一代网l计-参与时代Q的最前沿。Sun的qw及全?00多个国家和地区,其互联网的网址为http://www.sun.com。Sun公司的中 文网址?a >http://www.sun.com.cn?/p>

ZFS是第一?28位的文gpȝQ同时ZFS又被Sun MicrosystemsUC史上最后一个文件系l。因个文件系l含有多创新技术,不仅成功地解决现有文件系l的问题和陋习,而且前瞻性地考量了未 来对存储I间的需求,单个文gpȝ可以辑ֈ256 quadrillionQ?64Q?ZettabytesQ?21Q? ZFS不仅W合POSIX文gpȝ的标准,而且提供了许多高U功能比如:Quota(配额)QReservation(预留), Compression(压羃)Q? Snapshot(快照)QCloneQ克隆){。如果你q在坚持使用现有32位或?4位的文gpȝQ如果你q在“痛ƈ不快乐着”地用着各式各样? Volume ManagerQ那很值得看看q里列出的用ZFS的十条理由?br>
1. 再也不需要fsck, scandisk

不管你是在用LinuxQUNIXq是WindowsQ相信大安有过cM的体会:当系l意外断甉|者非法关机,pȝ重v后发现文件系l有 inconsistent的问题,q时 候就需要fsck或者scandisk 来修复,q段旉是非常耗时而且最后不一定能够修复成功。更p糕的是Q如果这是一台服务器需要做fsck的时候,只能offlineQ下U)Q而且现有? 用往往都是大硬盘,相应fsck? 复时间也很长Q这对许多用该服务器的用户来说几乎不能忍受的。而用ZFS后大家可以彻底抛弃fsckq种工具Q因为ZFS是一个基于COWQCopy on WriteQ机制的文gpȝ。COW是不会对盘上现有的文gq行重写Q保证所有硬盘上的文仉是有效的。所以不会有q种inconsistent的概 念,自然׃需要这U工具了?br>
2. 理?br>
  ZFS作ؓ一个全新的文gpȝQ全面抛弃传lFile System + Volume Manager + Storage的架构,所有的存储讑֤是通过ZFS Poolq行理Q只要把各种存储讑֤?入同一个ZFS PoolQ大家就可以L的在q个ZFS Pool理配置文gpȝ。大家再也不用牢记各U专业概念,各种命onewfs, metinit及各UVolume Manager的用法。在ZFS中我们只需要两个命令,zpool(?对ZFS Pool理)和zfs(针对ZFS文gpȝ的管?Q就可以L理128位的文gpȝ。D个例子,我们l常会遇到系l数据增长过 快,现有存储定w不够Q需要添加硬盘,如果依照传统的Volume Manager理方式Q那? 们需要预先要考虑很多现有因素Q还要预先根据应用计出需要配|的各种参数。在ZFS情况下,我们的系l管理员可以d解放Q再也不需要这Uh为的复杂 考虑和计,我们可以把这些交lZFSQ因为ZFS Pool会自动调节,动态适应需求。我们只需一个简单的命o?q个ZFS Pool加入新的盘可以了Q?br>
zpool add zfs_pool mirror c4t0d0 c5t0d0

  Zq个动态调节的ZFS Pool之上的所有的文gpȝ可以立即用到q个新的盘Qƈ且会自动的选择最优化的参数?br>
  而且ZFS同时也提供图形化的管理界面,下面是一个ZFS囑Ş化管理的一个截屏:

[attachment=2119]

3. 没有M定w限制

ZFSQZettabyte File SystemQ文件系l就如其名字所预示Q可以提供真正的量存储Q在现实中几乎不可能遇到定w问题。在现有?4位kernelQ内 核)下,它可以容U?6 Exabytes(264)大小的单个文Ӟ可以使用264个存储设备,可以创徏264个文件系l?br>
4. 完全保证 数据 的正和完整

׃ZFS所有的数据操作都是?于TransactionQ事务)Q一l相应的操作会被ZFS? 析ؓ一个事务操作,事务的操作就代表着一l操作要么一起失败,要么一h功。而且如前所_ZFS?所有的操作是基于COWQCopy on WriteQ, 从而保证设备上的数 据始l都是有效的Q再也不会因为系l崩溃或者意外掉电导致数据文件的inconsistent?br>
q有一U潜在威?数据的可能是来自于硬件设备的问题Q比如磁 盘,RAID卡的g问题或者驱动bug。现有文件系l通常遇到q个问题Q往往只是单的把错误数据直接交l上层应用,通常我们把这个问题称? Silent Data Corruption。而在ZFS中,Ҏ有数据不是用户数据q是文gpȝ自n的metadata? 据都q行256位的ChecksumQ校 验)Q当ZFS在提交数据时会进行校验,d杜绝q种Silent Data Corruption情况?br>
5. 提供优异 性能和扩展?br>
  和传lFile System + Volume Manager + Storage架构不同QZFS则是直接Z存储讑֤提供所有的功能Q因此有自己独有的创新特性,性能自然非比d?br>
  * Dynamic Striping vs. Static Striping

׃ZFS是基于COW和一个全局动态的ZFS PoolQQ何一ơ写 操作Q都是对一块新数据块(BlockQ的一ơ写操作。ZFS从ZFS Pool中动态挑选出一个最优的讑֤Qƈ且以一个transactionQ事 务)U性写入,充分有效地利用了现有讑֤的带宽,我们把这个特性称为Dynamic Striping。而相对应的Static Striping则是传统文gpȝ所使用的方式,Static Striping需要管理员预先对这lStripeq行正确地计h? 讄Q而且如果加入新的讑֤则需要再ơh为的计算和设|,更ؓ严重的是如果Zؓ计算错误Q则会直接媄响系l的性能。而在使用Dynamic Stripingq种Ҏ之后,我们Ҏ不需要hZ入,ZFS会自动调_的ؓ?提供最佳的讑֤Q最快的操作方式?br>
  * 支持多种 大小的数据块QMultiple Block SizeQ?

  ZFS支持多种大小的数据块定义Q从512字节?M字节。和传统文gpȝ往往都是固定大小数据块不同,ZFS则是可以动态的Ҏ不同 大小的文件进行计,动态的选择最佳的数据块?br>
因ؓ不同大小数据 块,直接影响到实际用硬盘容量和d速度。如果用较的数据块,存储文g所D的碎片则较少Q读写小文g更快一些,但是会导致需要创建更多的 metadataQ读写大文g则会更费时。如果用较大的数据块,使用的metadata较少Q更利于d大文Ӟ但是会导致更多的片。ZFSҎ实际 调查现有文g?用的情况Q分析出一个选择数据块大的法Q动态的Ҏ实际文g大小定最佳的数据块。所以ZFS? 非常的,在不需要系l管理员介入Q就可以得到一个自我调优的l果。当然ZFS也支持用户对单个文g或者整个文件系l? 所使用的数据块大小的自定义讄?br>
  * 预读取(Intelligent PrefetchQ?

  多数的操作系 l都 有这U将数据预先d的功能,而ZFS则是建立在文件系l上直接提供的一U更加智能的数据预读取功能。它不仅可以地识别出多种d模式Q?q? 行提前读取数据,而且可以Ҏ个读取数据流q行q种预读取智能识别,q个对许多流媒体提供者来说是仉常好的事情?br>
  在扩展性上Q和现有文gpȝ多是Z一个受限的静态模型不同,ZFS是采用ZFS Poolq个动态概念,它的metadata也是动态,q且d操作都是可ƈ行的Qƈ且具有优先概念Q所以即使在大数据量Q多讑֤的情况下仍可以保证性能的线性增ѝ?br>
6. 自我修复功能

  * ZFS Mirror ?RAID-Z

传统的硬盘Mirror及RAID 4QRAID 5阵列方式都会遇到前面提到q的问题QSilent Data Corruption。如果发生了某块盘物理问题D数据错误Q现有的MirrorQ包括RAID 4QRAID 5阵列会默默地把这个错误数据提交给上层应用。如果这个错误发生在Metadata中,则会直接Dpȝ的Panic? 而且q有一U更Z重的情况是:在RAID 4和RAID 5阵列中,如果pȝ正在计算Parity数|q再ơ写入新数据和新Parity值的时候发生断电,那么整个阵列的所有存储的数据都毫无意义了?br>
在ZFS中则提出了相对应的ZFS Mirror和RAID-Z方式Q它在负责读取数据的时候会自动?56位校验码q行校验Q会d发现q种Silent Data CorruptionQ然后通过相应的Mirror? 盘或者通过RAID-Z阵列中其他硬盘得到正的数据q回l上层应用,q且同时自动修复原硬盘的Data Corruption ?br>
  * Fault Manager

在Solaris 10中,包含 一个ZFS诊断引擎和Solaris?Fault ManagerQ这也是Solaris 10? 另一个新Ҏ)交互Q可以实时地诊断分析q且报告ZFS Pool和存储设备的错误Q用户可以通过Fault Manager及时得到一个非常友善的消息。这个诊断引擎虽然不会采取主动的行ؓM复或者解? 问题Q但是会在消息中提示pȝ理员可采取的动作。类g面一个ZFS报错消息Q其中REC-ACTION是采取的动作:

SUNW-MSG-ID: ZFS-8000-D3, TYPE: Fault, VER: 1, SEVERITY: Major

EVENT-TIME: Fri Mar 10 11:09:06 MST 2006

PLATFORM: SUNW,Ultra-60, CSN: -, HOSTNAME: neo

SOURCE: zfs-diagnosis, REV: 1.0

EVENT-ID: b55ee13b-cd74-4dff-8aff-ad575c372ef8

DESC: A ZFS device failed. Refer to http://sun.com/msg/ZFS-8000-D3 for more information.

AUTO-RESPONSE: No automated response will occur.

IMPACT: Fault tolerance of the pool maybe compromised.

REC-ACTION: Run ’zpool status -x’ and replace the bad device.

7. 安全

  在安全上QZFS支持cMNT风格NFSv4版的ACLQ读取控制列表)。而且前面所提到?56位验证码Q用户可选择多种验证方式Q包括SHA-256验证法Q从而在物理存储单元U别上保证数据的安全性?br>
8. 强功能

ZFS作ؓ“最后一个文件系l?#8221;Q涵盖了基本的文件系l和Volume理的功能,同时 一q提供许多企业别的强功能QQuota(配额)QReservation(预留), Compression(?~?Q? Snapshot(快照)QCloneQ克隆)。ƈ且速度非常快。有了这个文件系l,大家再也不需要Q何Volume Manager了?br>
9. 兼容?br>
ZFS是一个完全兼容POSIX规范的文件系l,所以处于上层的应用E序是完全不受媄响。ZFS也提供一个Emulated Volume模块Q可以把M一个ZFS文gpȝ作ؓ普通的块设备用。同时ZFS也可以用基于Volume Manager构徏的Volume作ؓ存储讑֤?元。这样在不需要修改应用程序,不修改已有文件系l下Q给了大家最大的自由度去获得ZFS提供的各 U特性?br>
10. 开?br>
  ZFS是Sun Microsystems?怽为OpenSolaris的一个开源项目运作ƈ且完全免费用,点击q里(http://www.opensolaris.org/os/community/zfs/source/) 可以直接览到ZFS的代码?q就代表着我们不仅同时可以享受商业公司的高质量Q也可以获得开源模式的优点?br>
虽然目前只有Solaris支持该文件系l,但是q种开源的模式必定会促q更多基于ZFS的应用。现在已l有国外开发者正在将ZFSUL到Linux? Mac OS上来。如果想要体验一下ZFSQ由于目前它和Solaris 10l定在一P所以需要下载最新版的Solaris 10 6/06 (http://www.sun.com/software/solaris/get.jsp)?br>
参?

Solaris ZFS Administration Guide: http://docs.sun.com/app/docs/doc/819-5461?l=zh&q=ZFS

Solaris 10 Zone FAQ: http://www.sun.com/software/solaris/faqs/zfs.xml

Automatic Performance Tuning in the Zettabyte File System: http://tesla.hpl.hp.com/self-manage03/Finals/henson-self-tune.pdf





曲强 Nicky 2006-10-30 10:19 发表评论
]]>
Solaris10 下挂载U?/title><link>http://m.tkk7.com/wqnashqu/archive/2006/10/22/76595.html</link><dc:creator>曲强 Nicky</dc:creator><author>曲强 Nicky</author><pubDate>Sun, 22 Oct 2006 00:50:00 GMT</pubDate><guid>http://m.tkk7.com/wqnashqu/archive/2006/10/22/76595.html</guid><wfw:comment>http://m.tkk7.com/wqnashqu/comments/76595.html</wfw:comment><comments>http://m.tkk7.com/wqnashqu/archive/2006/10/22/76595.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.tkk7.com/wqnashqu/comments/commentRss/76595.html</wfw:commentRss><trackback:ping>http://m.tkk7.com/wqnashqu/services/trackbacks/76595.html</trackback:ping><description><![CDATA[ <span style="font-size: 13px;"> <font size="3"> vold存在于进E之中,我们可以通过ps -ef命oq行查询Q它的存在得插上U盘后Q系l可以自动识别设备?br>  如果无法自动识别Q我们可以尝试重新启动voldQ操作方法如下:pkill -HUP vold q个时候插上U盘,是否U盘灯亮了Q?br>  如果q不亮,h行rmformat命oQ这个东西类似Windows中的查硬件改变操作,它可以自动查出刚刚插上的U盘(极个别品牌U盘例外,依照以往l验……爱国者的U盘最Ҏ被识别)?br>   pȝ识别了U盘,接下来我们就要mount一下了Q具体操作是Qmount -F pcfs -o ro /dev/dsk/</font><font color="#ff3300" size="3">c2t0d0p0</font><font size="3">:c /mntQ不q你的U盘是不是c2t0d0p0q个讑֤Q我q里可是说不好,你自p验一下吧 用mount查一下就OK了?br><br></font></span> <font class="f14" id="zoom" size="3">1、直接插上u盘,然后ls -l /dev/usb,看是否发现usb讑֤?/font> <font size="3"> <span style="font-size: 13px;">不过今天?ls -l |grep usb 自动p别咯。(Netac朗科Q?/span> </font> <font class="f14" id="zoom" size="3"> 2、在/etc/dsk里查询到usb对应的设备名Uͼls -l /dev/dsk) 3、直接mount -F pcfs /dev/dsk/c1t0d0s0 /mnt 然后可以了? q?mnt目录。ls可以查看到u盘里的内容了?/font> <br> <br># rmformat<br>姝e湪鏌ユ壘璁惧?..<br>     1. Logical Node: /dev/rdsk/c3t0d0s2<br>        Physical Node: /pci@0,0/pci1028,182@1d,2/storage@1/disk@0,0<br>        Connected Device: Netac    OnlyDisk         1.21<br>        Device Type: Removable<br>     2. Logical Node: /dev/rdsk/c3t0d0p0<br>        Physical Node: /pci@0,0/pci1028,182@1d,2/storage@1/disk@0,0<br>        Connected Device: Netac    OnlyDisk         1.21<br>        Device Type: Removable<br># mount -f pcfs /dev/dsk/c3t0d0s2:c /usb<br>mount: No such device or address<br># mount -f pcfs /dev/rdsk/c3t0d0p0:c /usb<br>mount: Block device required<br># mount -f pcfs /dev/rdsk/c3t0d0s2 /usb<br>mount: Block device required<br># mount -f pcfs /dev/rdsk/c3t0d0s2:c /usb<br>mount: Block device required<br># mount -f pcfs /dev/dsk/c3t0d0p0:c /usb<br><span style="font-size: 13px;"></span><br>卸蝲 #umount /usb<br>     #eject /dev/rdsk/c3t0d0p0<br><br><br><br>今天q发玎ͼQ朗U)u?在用h销重新登陆Ӟ可以自动挂蝲<br> <img src ="http://m.tkk7.com/wqnashqu/aggbug/76595.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/wqnashqu/" target="_blank">曲强 Nicky</a> 2006-10-22 08:50 <a href="http://m.tkk7.com/wqnashqu/archive/2006/10/22/76595.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Solaris10http://m.tkk7.com/wqnashqu/archive/2006/10/20/76285.html曲强 Nicky曲强 NickyFri, 20 Oct 2006 00:09:00 GMThttp://m.tkk7.com/wqnashqu/archive/2006/10/20/76285.htmlhttp://m.tkk7.com/wqnashqu/comments/76285.htmlhttp://m.tkk7.com/wqnashqu/archive/2006/10/20/76285.html#Feedback0http://m.tkk7.com/wqnashqu/comments/commentRss/76285.htmlhttp://m.tkk7.com/wqnashqu/services/trackbacks/76285.html   其它的Y件安装: |站Qsun软g包最主要的网站是http://www.sunfreeware.com,其次是各开源网站如http://mirror.vmmatrix.net Q还有其他一些(如apache 的网?www.apache.orgQ。如果不知道某个软g的下载地址Q可以在 www.google.com里搜索?/span>安装包下载到本地盘Q必Lq些包存攑ֈq行 solaris10的机器上。Wgetg是一个很受欢q的下蝲工具Q情况也是如此。不巧的是,solaris10本n不带wgetq个工具Q所以初始安 装的pȝq不能用这个便利。有的网友先把文件下载到windowsQ然后用ssh secure file transfer把它传输到solaris 10的某个目录?br>1、wget下蝲。例如下载apache到当前目录的命o为:wget ftp://ftp.sunfreeware.com/pub/freeware/intel/10/apache-2.2.0-sol10-x86-local.gz ?br>下蝲完成后,用命? ls -al查看当前目录是否有刚才现在的文g存在?br>   2、用ssh secure file transfer传送。这个比较简单,不再多说?br>当然Q我也认Z用挂载也是完全可以的?br>    Solaris10 安装软g包的Ҏ主要有三U:solaris包、二q制源码、安装脚本。接下来分别介绍q几U安装方法?br>    1、solaris 10包。Solaris包的文g格式大致?-local.gz ,如apache的包文gapache-2.2.0-sol10-x86-local.gz。在安装一个包之前Q我们应当先查看pȝ中是否已l安装了该Y 件包Q通过q行包管理工具pkginfo来了解系l中已安装的包。运?# pkginfo 可能有较长的输出Q以至于需要多屏才能显C完_为方侉K读,最好在后面加一道Q? pkginfo | moreQ。如果所需的包没有安装到系l,执行下面两个命o来安装(此处以包wgetZQ:# gzip –d wget-1.10.2-sol10-x86-local.gz   //把包解开Q解开后原压羃包自动删除,当前目录下生成文件wget-1.10.2-sol10-x86-local?br># pkgadd –d wget-1.10.2-sol10-x86-local //执行后会有交互命令,h据具体的环境做出选择.在回{了包管理管理器若干问题之后Q一个Y件包安装到pȝ上,再运行包理命o # pkginfo –l | grep <包名>查看详细的安装信息。从q个q程我们可以知道Q安装solaris包确实是很容易的事情Q但W者认为,在安装过E中Q它会把解开后的 文g复制C同的目录Q位|)Q究竟都复制了那些文件到那些目录Qƈ不是一个容易弄清楚的?br>   2、二q制源码。二q制源码是通用的linux/unix软g包安装方法,也是理员最q安装手段。相对于solaris包而言Q二q制源码包的数量q? q大于前者(有很多GNU软gq不提供solaris 包)Q这也是选择二进制源码安装的原因Q当Ӟ用二q制源码安装Q得整个操作更LzL。在q里我们以web服务器apache的安装ؓ例?br># gzip –d httpd-2.2.0.tar.gz  
# tar xvf httpd-2.2.0.tar
# cd httpd-2.2.0      
# ./configure –prefix=/usr/local/apache2 –enable-so //配置操作Q具体的选项可以通过执行命o# ./configure –help查看。此处指定了安装apache的\径及模块的加载方?br># make                 //配置q程利完成后,才可以l这个编译过E?br># make install             //同样需要等到编译操?make)完成再进行安装,q一步是把文件及目录复制到指定的安装目录?br>   q个例子是通用的linux/unix软g安装步骤Q但不要认ؓ所以的二进制源码都是这L安装操作Q请注意Q这只是一般情况)Q一个好的习惯就是:在把 下蝲的源码包文g解压成目录后Q打开里面的文件README或INSTALL文本文gQ就可能看到安装软g包的ҎQ至于更多细节,可以d该Y件的发布 |站查询相关文档。在执行配置操作Ӟ如果不指定安装\径的话,在安装结束以后,文g会分散到pȝ目录的各个角落(比如执行脚本会复制到 /usr/sbinQ配|文件可能会在目?etc中找刎ͼ{等Q,Z方便理l护Q强烈徏议配|时指定安装目录?br>   3、安装脚本。大型的软gZ方便用户的安装,往往提供一个安装脚本,比如sybase、oracle{。这U安装方法本w很单,只需执行q个安装脚本? Ԍ接着安装E序会跟用户交互Q比如指定安装\径等。不q,有些软g在执行安装前Q需要配|环境变量诸如此cȝ预处理,以满Y件安装的Ҏ需求。就拿数 据库服务器oracle 10gZQ在执行安装脚本前,必配|环境变量和更改内核参数以及d用户{预处理操作?br>   
软g包的卸蝲。Solaris包:执行命o # pkgrm <package name>。二q制源码Q直接删除安装目录?br>脚本方式安装Q卸载脚本或直接删除安装目录?/span>

曲强 Nicky 2006-10-20 08:09 发表评论
]]>
Sun 培训体会http://m.tkk7.com/wqnashqu/archive/2006/08/05/61930.html曲强 Nicky曲强 NickySat, 05 Aug 2006 06:36:00 GMThttp://m.tkk7.com/wqnashqu/archive/2006/08/05/61930.htmlhttp://m.tkk7.com/wqnashqu/comments/61930.htmlhttp://m.tkk7.com/wqnashqu/archive/2006/08/05/61930.html#Feedback0http://m.tkk7.com/wqnashqu/comments/commentRss/61930.htmlhttp://m.tkk7.com/wqnashqu/services/trackbacks/61930.html    对于J2EE的框架理忉|感觉q次没有q行深入的介l,或与也是我感觉比较遗憄一点了?br>下面l大家介l一点JDK1.5U新引入的泛型:


以下代码摘自java.util包的List接口和Iterator接口的定?

public interface List<E> {
  void add(E x);
  Iterator<E> iterator();
}
public interface Iterator<E> {
  E next();
  boolean hasNext();
}

cd参数

与尖括号有关的一些东西是JDK 5引入的新东西, 它们是List和Iterator接口的Ş式的cd参数(U类型Ş?声明.
而在Ҏ型声明Listq行调用?例如: List<Integer>), 所有出现的cd形参(?
E)的地? 都会被实际的cd参数(U类型实? ?Integer)所替换?

虽然与C++中的模板机制在Ş式上很想? 但必需注意, Java中的泛型声明决不会在调用时被展成多䆾副本: 不论是在源码U? 二进制, q是在磁盘或内存? 都不会被展开!

泛型声明只会也只需~译一? q生成一个类文g(class文g), q一点跟普通的cL接口完全一?

cd参数其实跟方法或构造器中所用的通常参数相类? 一个方法中可以声明它用以处理的形式的值参? 怼? 泛型声明也有其Ş式的cd参数; 当方法被调用? 实际参数会替换Ş式参? 然后执行Ҏ? 同样, 当泛型声明被调用? 实际的类型参C替换掉Ş式的cd参数.

关于命名U定的备? 推荐使用_而简?? 单个字符)的方式ؓ形式的类型参数命? 最好避免用小写字W? 以便与普通的cL接口的参数相区分开? 许多宣传品类型?E 表示其元素的cd形参.




先看以下两行代码是否合法:
List<String> ls = new ArrayList<String>(); // 1
List<Object> lo = ls; // 2
W一行没问题, 关键在第二行代码, 大多Ch会认? 一个String的List自然更是一个Object的List, 因此, W?行没问题.

? 接着看以下代?
lo.add(new Object()); // 3
String s = ls.get(0); // 4: 试图一个Object赋给一个String!

可见, 通过别名lo, 我们能对ls, 一个String的列? q行数据操作(特别是插入一个Object), 从而导致ls不仅仅是容纳了String对象! q是Java~译器不容许? ~译? W?行会报告一个编译错误的.

通常, 若Foo是Bar的一个子cd(子类或子接口), G是某个泛型声? 则G<Foo>q不是G<Bar>的一个子cd.

q一点往往是最难以理解? 因ؓ它和通常的直观相? 在直观的理解? 我们实际上假定了集合是不会变动的, 但java语言中则非如?




假定要输Z个集合中的所有元? 以下分别是旧版本及新版本(JDK 1.5)中的写法:

void printCollection(Collection c) {
  Iterator i = c.iterator();
  for( k = 0; k < c.size(); k++) {
    System.out.println( i.next() );
}}

void printCollection(Collection<Object> c) {
  for(Object e : c) {
    System.out.println(e);
}}

问题在于, 新版本反而不如旧版本更有用些. 因ؓ旧版本能使用各种cd的集合作为参? 但新版本则只能用Collection<Object>. 而正如上节看到的, Collection<Object>q不是其它各U集合的类?父类?.

所有集合的类型应该写? Collection<?>, M: collection of unknown(未知集合), 即一个集? 其元素类型可以与Mcd相匹? 因此U这U类型ؓ通配cd.

正确实现上述旧版本的代码可以q么?
void printCollection(Collection<?> c) {
  for(Object e : c) {
    System.out.println(e);
}}

q时, 可以用Q意类型的集合来调用此Ҏ. 注意在方法体? 仍然?c 中读入元素ƈ赋给了Object, q是没有错误? 因此不论cd实参是何U集? 它的元素都是object. 然? 如果Ll它增加一个object则是不安全的:

Collection<?> c = new ArrayList<String>();
c.add(new Object()); // ~译时的错误

׃我们不知道c的元素类型是什? 所以不能给它增加一个object. Ҏadd()接受一个类型E的参? 而E与集合的元素cd相同. 当类型实参是?? 它表C未知的cd, 我们传递给add的参数必Lq个未知cd的子cd. 不幸的是, 既然cd未知, 也就无法军_其子cd, 于是什么也不能作ؓ其参? 唯一的例外是null, 因ؓnull是所有类型的一个成?

另一斚w, 如果l了一个List<?>, 我们可以调用get()Ҏq用其q回的元? 虽然q回的元素类型是未知cd, 但它d是一个object, 因此get()q回的元素赋l一个Objectcd的变? 或将其传递给一个可接受Object的参数都是安全的.



曲强 Nicky 2006-08-05 14:36 发表评论
]]>
修改netbeans的外?/title><link>http://m.tkk7.com/wqnashqu/archive/2006/07/22/59562.html</link><dc:creator>曲强 Nicky</dc:creator><author>曲强 Nicky</author><pubDate>Sat, 22 Jul 2006 09:24:00 GMT</pubDate><guid>http://m.tkk7.com/wqnashqu/archive/2006/07/22/59562.html</guid><wfw:comment>http://m.tkk7.com/wqnashqu/comments/59562.html</wfw:comment><comments>http://m.tkk7.com/wqnashqu/archive/2006/07/22/59562.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.tkk7.com/wqnashqu/comments/commentRss/59562.html</wfw:commentRss><trackback:ping>http://m.tkk7.com/wqnashqu/services/trackbacks/59562.html</trackback:ping><description><![CDATA[<p>只对5以上的版本有效,官方|站上有的,不过很多人没看到|了</p> <p> <!-- Begin Content Area --> </p> <h1>Spicing Up Your NetBeans IDE 5.0 With Substance</h1> <p> </p> <div id="l7f9t99" class="articledate" style="margin-left: 0px;">Contributed by <script language="JavaScript" type="text/javascript" _base_><!-- var user =" "ruth.kusterer"; var" domain =" "sun.com"; var" at =" "@"; document.write('<a" href="mailto:' + user + at + domain + '" href_cetemp="mailto:' + user + at + domain + '">Ruth Kusterer</a>'); //--></script><a href="mailto:ruth.kusterer@sun.com" _base_>Ruth Kusterer</a><a href="mailto:ruth.kusterer@sun.com" _base_>Ruth Kusterer</a><noscript></noscript></div> <p> </p> <p>This tech tip shows you how you can spice up your NetBeans IDE 5.0's look and feel with color themes, custom button-shapes and watermarks (wallpapers) using <a _base_s <a _base_>Substance</a> plug-in. To use Substance with IDE 4.1 or any other Swing-based application, refer to <a _base_>Spicing Up Your Swing GUI With Substance</a>. </p> <p> </p> <table _base_ width="500"> <tbody _base_> <tr _base_> <td _base_> <a _base_> <img alt="IDE with beyonce watermark" src="http://www.netbeans.org/images/screenshots/4.1/netbeans-beyonce_thumb.png" _base_ align="right" border="0" height="150" width="200"> </a> </td> <td _base_> <ul> <li> <a _base_>Preparations</a> </li> <li> <a _base_>Getting to Know Different Themes</a> </li> <li> <a _base_>Creating Your Own Look and Feel</a> </li> <li> <a _base_>Competition!</a> </li> <li> <a _base_>Related Links</a> </li> </ul> </td> </tr> </tbody> </table> <h2> <a name="preparations" _base_>Preparations</a> </h2> <ul> <li>The Substance Look and Feel NBM works with JDK 5.0+ in NetBeans IDE 5.0 (development version). </li> <li>If you want to integrate a watermark into your Swing application, you need a suitable (wide) wallpaper image file. Download this <a _base_>aquamarine JPG</a> from <a _base_>digitalblasphemy</a> as a sample. </li> <li>For some features, you need to know how to access your operating system's commandline </li> </ul> <p>To install the <tt>substance-netbeans</tt> plugin into NetBeans IDE 5.0, </p> <ol> <li> <a _base_>download substance-netbeans.nbm</a> from Kirill's project page and save the NBM file to your home directory. For this tutorial, I am using version 2.1_02. </li> <li>To plug the module in, open NetBeans IDE, and choose <strong>Tools > Update Center</strong> from the menu. In the Update Wizard window, check the box next to <strong>Install Manually Downloaded Modules (.nbm files)</strong>, and then click the <strong>Next</strong> button. </li> <li>In the next screen, click the <strong>Add</strong> Button and select the substance-netbeans NBM file you just downloaded, then click <strong>OK</strong>. The NBM file shows up in the list of modules to install. Click the <strong>Next</strong> button. </li> <li>Make sure the NBM is visible in the field labelled Include to Install, then click the <strong>Next</strong> button. If a license agreement comes up, click <strong>Accept</strong> and then <strong>Next</strong> to proceed. </li> <li>A screen with the download progress bar appears. Again click the <strong>Next</strong> button. </li> <li>Check the <strong>Include</strong> box next to the line saying "NetBeans-Substance". If you are asked whether you really want to install an unsigned module, click <strong>Yes</strong> to proceed. </li> <li>Click the <strong>Finish</strong> button. If you are told that the IDE must be restarted, check the box saying <strong>Restart the IDE</strong> and then click the <strong>OK</strong> button. </li> <li>After the IDE has restarted, look into the <strong>View</strong> menu: If you see four new menu items, Button Shapes, Colors, Themes, and Watermarks, the plugin was installed successfully. </li> </ol> <p> <a _base_>http://www.netbeans.org/kb/50/substance-look-and-feel.html#creating</a> </p> 按着步骤作就行了Q先要下载一?nbm的插件?<img src ="http://m.tkk7.com/wqnashqu/aggbug/59562.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/wqnashqu/" target="_blank">曲强 Nicky</a> 2006-07-22 17:24 <a href="http://m.tkk7.com/wqnashqu/archive/2006/07/22/59562.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss> <footer> <div class="friendship-link"> <p>лǵվܻԴȤ</p> <a href="http://m.tkk7.com/" title="亚洲av成人片在线观看">亚洲av成人片在线观看</a> <div class="friend-links"> </div> </div> </footer> վ֩ģ壺 <a href="http://fdhkauto.com" target="_blank">AVƬɫ߹ۿ</a>| <a href="http://mordernshasha.com" target="_blank">ޱ龫Ʒһ</a>| <a href="http://worldbiao.com" target="_blank">1000ҹ </a>| <a href="http://tiantangapp.com" target="_blank">޳aƬ߹ۿƷ</a>| <a href="http://266hd.com" target="_blank">߹ۿլƵ</a>| <a href="http://ti166.com" target="_blank">aaaëƬѹۿ</a>| <a href="http://ikybh.com" target="_blank">츾avһ</a>| <a href="http://adcaes.com" target="_blank">޹ۺ</a>| <a href="http://ldcatv.com" target="_blank">޾ƷƵѿ</a>| <a href="http://kmrghj.com" target="_blank">fc2ѹƵվ</a>| <a href="http://www55nana.com" target="_blank">޾Ʒ456߲</a>| <a href="http://cshjjc.com" target="_blank">޹Ӱavַ</a>| <a href="http://bbyy7.com" target="_blank">ˬִ̼߳Ƶ</a>| <a href="http://kmrghj.com" target="_blank">ɫ͵͵˵ </a>| <a href="http://344zx.com" target="_blank">þþƷƵ</a>| <a href="http://8953y.com" target="_blank">ƷҹѸ</a>| <a href="http://91ggan.com" target="_blank">պƷƵ</a>| <a href="http://9844555.com" target="_blank">ѹۿƵ</a>| <a href="http://5gg1.com" target="_blank">ɫϰƵ߹</a>| <a href="http://583s.com" target="_blank">޾Ʒþþþþþþþþþ </a>| <a href="http://57798b.com" target="_blank">պһĺ</a>| <a href="http://54vpn.com" target="_blank">޳AVƬWWWɫè </a>| <a href="http://whknd.com" target="_blank">˳ۺ7777</a>| <a href="http://bwgdbjb.com" target="_blank">ҹӰѹۿ</a>| <a href="http://wwwp784.com" target="_blank">þþƷѹۿ</a>| <a href="http://28896543.com" target="_blank">AVɫ߹ۿ</a>| <a href="http://wwwnewhtbook.com" target="_blank">޹ۺһ </a>| <a href="http://kutuwo.com" target="_blank">ѲĻ</a>| <a href="http://njchxf.com" target="_blank">޾Ʒ</a>| <a href="http://nfrxfarm.com" target="_blank">aëƬƵ</a>| <a href="http://jj5c.com" target="_blank">ŮƵվ</a>| <a href="http://k8h9.com" target="_blank">AVӰ߹ۿ</a>| <a href="http://3344by.com" target="_blank">޳av</a>| <a href="http://0939666.com" target="_blank">޾Ʒרþͬ</a>| <a href="http://yinyinai155.com" target="_blank">ëƬƵ</a>| <a href="http://lidajc.com" target="_blank">2019Ļ6</a>| <a href="http://wwwseselu.com" target="_blank">ðѾƷƵ</a>| <a href="http://90hong.com" target="_blank">Ƶ</a>| <a href="http://liexion.com" target="_blank">޹AVһ</a>| <a href="http://www779rr.com" target="_blank">۲ӰԺ߹ۿ</a>| <a href="http://1314xxx.com" target="_blank">AVպAVһ</a>| <script> (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); </script> </body>