]]>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.
]]>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();
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:
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.
]]>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>
]]>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额增长的唯一的服务器厂商?
“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程应用的开发变得更加简化和Ҏ?
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 Substance plug-in. To use Substance with IDE 4.1 or any other Swing-based application, refer to Spicing Up Your Swing GUI With Substance.
The Substance Look and Feel NBM works with JDK 5.0+ in NetBeans IDE 5.0 (development version).
If
you want to integrate a watermark into your Swing application, you need
a suitable (wide) wallpaper image file. Download this aquamarine JPG from digitalblasphemy as a sample.
For some features, you need to know how to access your operating system's commandline
To install the substance-netbeans plugin into NetBeans IDE 5.0,
download substance-netbeans.nbm from Kirill's project page and save the NBM file to your home directory. For this tutorial, I am using version 2.1_02.
To plug the module in, open NetBeans IDE, and choose Tools > Update Center from the menu. In the Update Wizard window, check the box next to Install Manually Downloaded Modules (.nbm files), and then click the Next button.
In the next screen, click the Add Button and select the substance-netbeans NBM file you just downloaded, then click OK. The NBM file shows up in the list of modules to install. Click the Next button.
Make sure the NBM is visible in the field labelled Include to Install, then click the Next button. If a license agreement comes up, click Accept and then Next to proceed.
A screen with the download progress bar appears. Again click the Next button.
Check the Include
box next to the line saying "NetBeans-Substance". If you are asked
whether you really want to install an unsigned module, click Yes to proceed.
Click the Finish button. If you are told that the IDE must be restarted, check the box saying Restart the IDE and then click the OK button.
After the IDE has restarted, look into the View menu: If you see four new menu items, Button Shapes, Colors, Themes, and Watermarks, the plugin was installed successfully.